/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{G as e}from"./GeometryCursor.js";import{d as r,a as t,c as s}from"./Geometry.js";import{S as i}from"./SimpleGeometryCursor.js";import{s as m,t as n}from"./SpatialReference.js";class o{getOperatorType(){return 10104}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,r,t,s,i){return 5===m(e,r,t,s,i)}executeMany(e,r,t,s){return new u(e,r,t,s)}execute(e,t,s,m){const n=new i([e]),o=this.executeMany(n,t,s,m).next();return o||r("null output"),o}}class u extends e{constructor(e,r,s,i){super(),e||t(""),this.m_progressTracker=i,this.m_bForceSimplify=s,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=r}next(){const e=this.m_inputGeometryCursor.next();return e?(s(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){e||t("");return n(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}export{o as O};
