/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__addDisposableResource as r,__disposeResources as e}from"tslib";import{a as t,c as o}from"./Geometry.js";import{G as a,m as s}from"./GeodeticDistanceCalculator-zRp89-dW.js";class u{getOperatorType(){return 10316}supportsCurves(){return!0}accelerateGeometry(r,e,t){return!1}canAccelerateGeometry(r){return!1}execute(r,e,t,o,a){return this.executeEx(r,e,t,o,a,null,null,Number.NaN)}executeEx(u,n,c,i,m,l,p,y){const N={stack:[],error:void 0,hasError:!1};try{if(0===c.getCoordinateSystemType()&&t(""),o(u),o(n),u.isEmpty()||n.isEmpty())return Number.NaN;Number.isNaN(y)&&(y=Number.MAX_VALUE);const e=r(N,new a(c,i,m,y,1),!1),E=s(),x=s(),b=e.calculate(u,n,E,x);return l&&l.outPoint.assign(E.outPoint),p&&p.outPoint.assign(x.outPoint),b}catch(E){N.error=E,N.hasError=!0}finally{e(N)}}}export{u as OperatorGeodeticDistance,s as makeOutput};
