{"version":3,"sources":["node_modules/@arcgis/core/geometry/support/jsonUtils.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport o from \"../Extent.js\";\nimport r from \"../Geometry.js\";\nimport e from \"../Multipoint.js\";\nimport i from \"../Point.js\";\nimport n from \"../Polygon.js\";\nimport t from \"../Polyline.js\";\nfunction m(o) {\n return void 0 !== o.xmin && void 0 !== o.ymin && void 0 !== o.xmax && void 0 !== o.ymax;\n}\nfunction l(o) {\n return void 0 !== o.points;\n}\nfunction u(o) {\n return void 0 !== o.x && void 0 !== o.y;\n}\nfunction s(o) {\n return void 0 !== o.paths;\n}\nfunction y(o) {\n return void 0 !== o.rings;\n}\nfunction f(f) {\n return null == f ? null : f instanceof r ? f : u(f) ? i.fromJSON(f) : s(f) ? t.fromJSON(f) : y(f) ? n.fromJSON(f) : l(f) ? e.fromJSON(f) : m(f) ? o.fromJSON(f) : null;\n}\nfunction p(o) {\n return o ? u(o) ? \"esriGeometryPoint\" : s(o) ? \"esriGeometryPolyline\" : y(o) ? \"esriGeometryPolygon\" : m(o) ? \"esriGeometryEnvelope\" : l(o) ? \"esriGeometryMultipoint\" : null : null;\n}\nconst G = {\n esriGeometryPoint: i,\n esriGeometryPolyline: t,\n esriGeometryPolygon: n,\n esriGeometryEnvelope: o,\n esriGeometryMultipoint: e,\n esriGeometryMultiPatch: n\n};\nfunction c(o) {\n return o && G[o] || null;\n}\nexport { f as fromJSON, c as getGeometryType, p as getJsonType, m as isExtent, l as isMultipoint, u as isPoint, y as isPolygon, s as isPolyline };"],"mappings":"4GAUA,SAASA,EAAE,EAAG,CACZ,OAAkB,EAAE,OAAb,QAAgC,EAAE,OAAb,QAAgC,EAAE,OAAb,QAAgC,EAAE,OAAb,MACxE,CACA,SAAS,EAAE,EAAG,CACZ,OAAkB,EAAE,SAAb,MACT,CACA,SAAS,EAAE,EAAG,CACZ,OAAkB,EAAE,IAAb,QAA6B,EAAE,IAAb,MAC3B,CACA,SAASC,EAAE,EAAG,CACZ,OAAkB,EAAE,QAAb,MACT,CACA,SAASC,EAAE,EAAG,CACZ,OAAkB,EAAE,QAAb,MACT,CACA,SAASC,EAAEA,EAAG,CACZ,OAAeA,GAAR,KAAY,KAAOA,aAAaC,EAAID,EAAI,EAAEA,CAAC,EAAIE,EAAE,SAASF,CAAC,EAAIF,EAAEE,CAAC,EAAIG,EAAE,SAASH,CAAC,EAAID,EAAEC,CAAC,EAAII,EAAE,SAASJ,CAAC,EAAI,EAAEA,CAAC,EAAIK,EAAE,SAASL,CAAC,EAAIH,EAAEG,CAAC,EAAIM,EAAE,SAASN,CAAC,EAAI,IACpK,CACA,SAASO,EAAE,EAAG,CACZ,OAAO,EAAI,EAAE,CAAC,EAAI,oBAAsBT,EAAE,CAAC,EAAI,uBAAyBC,EAAE,CAAC,EAAI,sBAAwBF,EAAE,CAAC,EAAI,uBAAyB,EAAE,CAAC,EAAI,yBAA2B,KAAO,IAClL,CACA,IAAMW,EAAI,CACR,kBAAmBN,EACnB,qBAAsBC,EACtB,oBAAqBC,EACrB,qBAAsBE,EACtB,uBAAwBD,EACxB,uBAAwBD,CAC1B,EACA,SAASK,EAAE,EAAG,CACZ,OAAO,GAAKD,EAAE,CAAC,GAAK,IACtB","names":["m","s","y","f","n","j","d","v","u","w","p","G","c"],"x_google_ignoreList":[0]}