define(["require","exports","esri/kernel"],function(i,r,n){"use strict";var s,o,e,V;function t(i){var r=null,i=(i="string"==typeof(i=void 0===i?n.version:i)?i:String(i)).match(/^\s*(\d+)\.(\d+)/);return r=i?{majorVersion:parseInt(i[1],10),minorVersion:parseInt(i[2],10)}:r}Object.defineProperty(r,"__esModule",{value:!0}),(o=s=r.ArcGisApiVersion||(r.ArcGisApiVersion={}))[o.Unknown=0]="Unknown",o[o.v3=1]="v3",o[o.v4=2]="v4",r.isArcGisApiVersionAtLeast=function(i){var r,n=(r=i,n=null,i=e=e||t(),r=t(r),i&&r?(r.majorVersion!==i.majorVersion?n=i.majorVersion<r.majorVersion?-1:1:r.minorVersion!==i.minorVersion&&(n=i.minorVersion<r.minorVersion?-1:1),n=n||0):n);return null!==n&&-1<n},r.arcGisApiVersion="4."===(V=n.version.substr(0,2))?s.v4:"3."===V?s.v3:s.Unknown,r.isArcGisApiVersion3x=r.arcGisApiVersion===s.v3,r.isArcGisApiVersion4x=r.arcGisApiVersion===s.v4,r.isUnknownArcGisApiVersion=r.arcGisApiVersion===s.Unknown});