/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{load as o,supportsCurves as e,execute as r,executeMany as t,isLoaded 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&&n()}async function l(){if(!f()){const[r,t]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),o()]);s=r.fromGeometry,i=r.fromSpatialReference,p=r.getSpatialReference,c=r.toGeometry,m=t.createProjectionTransformation,u=e()}}function j(o,e,t){const n=p(o),u=m(i(n),i(e),t),f=c(r(s(o),u),e);return!t?.zConversionDisabled&&f?.hasZ&&a([f],n,e),f}function d(o,e,r){const n=o.map(s),u=p(o),f=m(i(u),i(e),r),l=t(n,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};
