/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{convertToSpatialReferenceUnit as r}from"../../core/units.js";import{supportsCurves as t,execute as o,executeMany as e}from"./gx/operatorOffset.js";import{getSpatialReference as n,toGeometry as s,fromSpatialReference as i,fromGeometry as u}from"./support/apiConverter.js";const m={round:0,bevel:1,miter:2,square:3};function p(t,e,p={}){const{miterLimit:a=10,flattenError:c=0,joins:f="round",unit:j}=p,x=n(t);return j&&(e=r(e,j,x)),s(o(u(t),i(x),e,m[f],a,c),x)}function a(t,o,p={}){const{miterLimit:a=10,flattenError:c=0,joins:f="round",unit:j}=p,x=n(t);j&&(o=r(o,j,x));const d=t.map(u);return e(d,i(x),o,m[f],a,c).map(r=>s(r,x))}const c=t();export{p as execute,a as executeMany,c as supportsCurves};
