/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{S as e}from"../../chunks/SimpleGeometryCursor.js";import{O as o}from"../../chunks/OperatorIntegrate.js";import{fromGeometry as r,getSpatialReference as t,toGeometry as n}from"../../geometry/operators/support/apiConverter.js";import{fromSpatialReference as i}from"../../geometry/operators/support/jsonConverter.js";const s=new o,a={defaultBehavior:0,defaultBehaviorOnlyModified:1,defaultBehaviorOnlyModifiedWithSnapping:2,onlyCrackAndCluster:3};function p(o,p){const m=o.map(r),u=t(o),f=s.executeMany(new e(m),i(u),null,void 0!==p?a[p]:void 0),l=[];for(;;){const e=f.next();if(null===e)break;l.push({geometry:n(e,u),geometryIndex:f.getGeometryID()})}return l}export{p as extendedIntegrate};
