/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../core/maybe","../../core/string","./SupportedGCSWkids","./WKIDUnitConversion"],(function(e,r,i,a,n){"use strict";const t={102113:!0,102100:!0,3857:!0,3785:!0},_={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},l='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',S=[-20037508.342788905,20037508.342788905],M=[-20037508.342787,20037508.342787],d={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:S,origin:M,dx:1e-5},102100:{wkTemplate:l,valid:S,origin:M,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:S,origin:M,dx:1e-5},3857:{wkTemplate:l,valid:S,origin:M,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function o(e,i){return!r.isNone(e)&&!r.isNone(i)&&(e===i||(null!=e.wkid||null!=i.wkid?e.wkid===i.wkid||k(e)&&k(i)||null!=i.latestWkid&&e.wkid===i.latestWkid||null!=e.latestWkid&&i.wkid===e.latestWkid:!(!e.wkt||!i.wkt)&&e.wkt.toUpperCase()===i.wkt.toUpperCase()))}function E(e){return W(e)&&e.wkid&&d[e.wkid]||null}function u(e){return!!W(e)&&(e.wkid?null==n[e.wkid]:!!e.wkt&&!!/^\s*GEOGCS/i.test(e.wkt))}function s(e){return!(T(e)||P(e))}function G(e){return W(e)&&4326===e.wkid}function R(e){return W(e)&&e.wkid===a.SupportedGCSWkids.CGCS2000}function k(e){return W(e)&&null!=e.wkid&&!0===t[e.wkid]}function A(e){return W(e)&&32662===e.wkid}function C(e){return e===a.SupportedGCSWkids.GCSMARS2000||e===a.SupportedGCSWkids.GCSMARS2000_SPHERE}function T(e){return W(e)&&null!=e.wkid&&C(e.wkid)}function w(e){return e===a.SupportedGCSWkids.GCSMOON2000}function P(e){return W(e)&&null!=e.wkid&&w(e.wkid)}function p(e){return W(e)&&null!=e.wkid&&!0===_[e.wkid]}function W(e){return r.isSome(e)&&(null!=e.wkid&&e.wkid>=2e3||null!=e.wkt)}const c={wkid:4326,wkt:i.replace(d[4326].wkTemplate,{Central_Meridian:"0.0"})},I={wkid:102100,latestWkid:3857},D={wkid:32662};e.PlateCarree=D,e.WGS84=c,e.WebMercator=I,e.equals=o,e.getInfo=E,e.isCGCS2000=R,e.isEarth=s,e.isGeographic=u,e.isMars=T,e.isMoon=P,e.isPlateCarree=A,e.isValid=W,e.isWGS84=G,e.isWKIDFromMars=C,e.isWKIDFromMoon=w,e.isWebMercator=k,e.isWrappable=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
