/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{a as r,c as e}from"../../chunks/Geometry.js";import{D as t}from"../../chunks/Distance2DCalculator-DjIp2uQi.js";import{convertToSpatialReferenceUnit as s}from"../../core/units.js";import{getSpatialReference as n,fromGeometry as o}from"./support/apiConverter.js";class u{getOperatorType(){return 10}accelerateGeometry(r,e,t){return!1}canAccelerateGeometry(r){return!1}supportsCurves(){return!0}execute(s,n,o,u){if(s.isEmpty()||n.isEmpty())return!1;o<0&&r("distance"),e(s),e(n);const c=s,a=n;Number.isNaN(o)&&(o=Number.POSITIVE_INFINITY);return new t(o,u).isNear(c,a)}}const c=new u;function a(r,e,t,u={}){const{unit:a}=u;if(a){const e=n(r);t=s(t,a,e)}return c.execute(o(r),o(e),t,null)}const i=c.supportsCurves();export{a as execute,i as supportsCurves};
