{"version":3,"sources":["node_modules/@arcgis/core/geometry/support/zscale.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 { getMetersPerVerticalUnitForSR as n } from \"../../core/unitUtils.js\";\nimport { isSphericalPCPF as e } from \"../ellipsoidUtils.js\";\nimport { equals as t } from \"./spatialReferenceUtils.js\";\nfunction o(o, f, u) {\n if (null == f || null == u || u.vcsWkid || t(f, u) || e(f) || e(u)) return null;\n const a = n(f) / n(u);\n if (1 === a) return null;\n switch (o) {\n case \"point\":\n case \"esriGeometryPoint\":\n return n => r(n, a);\n case \"polyline\":\n case \"esriGeometryPolyline\":\n return n => l(n, a);\n case \"polygon\":\n case \"esriGeometryPolygon\":\n return n => i(n, a);\n case \"multipoint\":\n case \"esriGeometryMultipoint\":\n return n => s(n, a);\n case \"extent\":\n case \"esriGeometryEnvelope\":\n return n => c(n, a);\n default:\n return null;\n }\n}\nfunction r(n, e) {\n null != n?.z && (n.z *= e);\n}\nfunction i(n, e) {\n if (n) for (const t of n.rings) for (const n of t) n.length > 2 && (n[2] *= e);\n}\nfunction l(n, e) {\n if (n) for (const t of n.paths) for (const n of t) n.length > 2 && (n[2] *= e);\n}\nfunction s(n, e) {\n if (n) for (const t of n.points) t.length > 2 && (t[2] *= e);\n}\nfunction c(n, e) {\n n && null != n.zmin && null != n.zmax && (n.zmin *= e, n.zmax *= e);\n}\nexport { o as getGeometryZScaler };"],"mappings":"uDAOA,SAASA,EAAEA,EAAGC,EAAGC,EAAG,CAClB,GAAYD,GAAR,MAAqBC,GAAR,MAAaA,EAAE,SAAW,EAAED,EAAGC,CAAC,GAAKC,EAAEF,CAAC,GAAKE,EAAED,CAAC,EAAG,OAAO,KAC3E,IAAME,EAAIC,EAAEJ,CAAC,EAAII,EAAEH,CAAC,EACpB,GAAUE,IAAN,EAAS,OAAO,KACpB,OAAQJ,EAAG,CACT,IAAK,QACL,IAAK,oBACH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