/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{load as o,isLoaded as e,supportsCurves as r,execute as t,executeMany as n}from"./gx/operatorProject.js";import{applyZConversionAfterProjection as a}from"./support/projectionZScaling.js";let s,i,p,c,m,u;function f(){return!!s&&e()}async function l(){if(!f()){const[e,t]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),o()]);s=e.fromGeometry,i=e.fromSpatialReference,p=e.getSpatialReference,c=e.toGeometry,m=t.createProjectionTransformation,u=r()}}function j(o,e,r){const n=p(o),u=m(i(n),i(e),r),f=c(t(s(o),u),e);return!r?.zConversionDisabled&&f?.hasZ&&a([f],n,e),f}function d(o,e,r){const t=o.map(s),u=p(o),f=m(i(u),i(e),r),l=n(t,f).map(o=>c(o,e));return!r?.zConversionDisabled&&l&&a(l,u,e),l}export{j as execute,d as executeMany,f as isLoaded,l as load,u as supportsCurves};
