/*
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 e,isLoaded as t,supportsCurves as r,execute as o,executeMany as n}from"./gx/operatorShapePreservingProject.js";let a,i,s,m,p,c;function u(){return!!a&&t()}async function f(){if(!u()){const[t,o]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),e()]);a=t.fromGeometry,i=t.fromSpatialReference,s=t.getSpatialReference,m=t.toGeometry,p=o.createProjectionTransformation,c=r()}}function g(e,t,r){const n=s(e),c=p(i(n),i(t),r),u=r?.maxDeviationInSrTo??0,f=r?.minSegmentLengthInDegrees??0;return m(o(a(e),c,f,u),t)}function S(e,t,r){const o=e.map(a),c=s(e),u=p(i(c),i(t),r),f=r?.maxDeviationInSrTo??0;return n(o,u,r?.minSegmentLengthInDegrees??0,f).map(e=>m(e,t))}export{g as execute,S as executeMany,u as isLoaded,f as load,c as supportsCurves};
