/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{c as r}from"../../../chunks/Geometry.js";import{p as s}from"../../../chunks/SpatialReference.js";import{Envelope2D as i}from"../../../chunks/Envelope2D.js";import{B as n}from"../../../chunks/Bufferer-Dw9Qi4T1.js";class m{getOperatorType(){return 10111}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,r,i,n,m,o,c,h,a,_){if(h){const h=new u(e,t,r,i,n,m,o,c,_);return(new s).executeMany(h,t,_,2)}return new u(e,t,r,i,n,m,o,c,_)}}class u extends t{constructor(e,t,r,s,m,u,o,c,h){super(),this.m_currentUnionEnvelope2D=new i,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=h,this.m_bufferer=new n(h),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=r,this.m_maxDeviation=o,this.m_maxVerticesInFullCircle=c,this.m_joins=s,this.m_caps=m,this.m_miterLimit=u}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return r(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const o=new m;function c(t,r,s,i,n,m,u,c,h){const a=o.executeMany(new e(t),r,s,i,n,m,u,c,h,0,null);return Array.from(a)}function h(){return o.supportsCurves()}export{c as executeMany,h as supportsCurves};
