/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{cyclicalDegrees as r}from"./Cyclical.js";import{toUnit as t}from"./quantity.js";import{formatAngleDegrees as e,formatDecimal as a,formatMetricLength as n,formatImperialLength as u,formatMetricArea as i,formatImperialArea as c,formatImperialVerticalLength as o,formatMetricVerticalLength as l,formatMetricVolume as f,formatImperialVolume as m,formatRelativeDecimal as b,formatMetricRelativeLength as s,formatMetricRelativeVerticalLength as v,formatImperialRelativeLength as p,formatImperialRelativeVerticalLength as h,formatDMS as g,formatRelativeAngleDegrees as L}from"./unitFormatUtils.js";function d(r,e,n,u=2,i="abbr"){return a(r,t(e,n).value,n,u,i)}function M(r,e,a,n=2,u="abbr"){return b(r,t(e,a).value,a,n,u)}function w(r,t,e=2,a="abbr"){return n(r,t.value,t.unit,e,a)}function I(r,t,e=2,a="abbr"){return s(r,t.value,t.unit,e,a)}function V(r,t,e=2,a="abbr"){return l(r,t.value,t.unit,e,a)}function R(r,t,e=2,a="abbr"){return v(r,t.value,t.unit,e,a)}function y(r,t,e=2,a="abbr"){return i(r,t.value,t.unit,e,a)}function j(r,t,e=2,a="abbr"){return f(r,t.value,t.unit,e,a)}function D(r,t,e=2,a="abbr"){return u(r,t.value,t.unit,e,a)}function A(r,t,e=2,a="abbr"){return p(r,t.value,t.unit,e,a)}function T(r,t,e=2,a="abbr"){return o(r,t.value,t.unit,e,a)}function q(r,t,e=2,a="abbr"){return h(r,t.value,t.unit,e,a)}function x(r,t,e=2,a="abbr"){return c(r,t.value,t.unit,e,a)}function C(r,t,e=2,a="abbr"){return m(r,t.value,t.unit,e,a)}function F(r){return g(r.value,r.unit)}function S(t,a,n,u=r,i=!0){return e(t.value,t.unit,t.rotationType,a,n,u,i)}function U(r,t,e){return L(r.value,r.unit,r.rotationType,t,e??void 0)}function k(r,t,e,a,n="abbr"){switch(a=a??2,e){case"imperial":return D(r,t,a,n);case"metric":return w(r,t,a,n);default:return d(r,t,e,a,n)}}function z(r,t,e,a=2,n="abbr"){switch(e){case"imperial":return A(r,t,a,n);case"metric":return I(r,t,a,n);default:return M(r,t,e,a,n)}}function B(r,t,e,a=2,n="abbr"){switch(e){case"imperial":return T(r,t,a,n);case"metric":return V(r,t,a,n);default:return d(r,t,e,a,n)}}function E(r,t,e,a=2,n="abbr"){switch(e){case"imperial":return q(r,t,a,n);case"metric":return R(r,t,a,n);default:return M(r,t,e,a,n)}}function G(r,t,e,a=2,n="abbr"){switch(e){case"imperial":return x(r,t,a,n);case"metric":return y(r,t,a,n);default:return d(r,t,e,a,n)}}function H(r,t,e,a=2,n="abbr"){switch(e){case"imperial":return C(r,t,a,n);case"metric":return j(r,t,a,n);default:return d(r,t,e,a,n)}}export{S as formatAngle,G as formatArea,F as formatDMS,d as formatDecimal,x as formatImperialArea,D as formatImperialLength,A as formatImperialRelativeLength,q as formatImperialRelativeVerticalLength,T as formatImperialVerticalLength,C as formatImperialVolume,k as formatLength,y as formatMetricArea,w as formatMetricLength,I as formatMetricRelativeLength,R as formatMetricRelativeVerticalLength,V as formatMetricVerticalLength,j as formatMetricVolume,U as formatRelativeAngle,M as formatRelativeDecimal,z as formatRelativeLength,E as formatRelativeVerticalLength,B as formatVerticalLength,H as formatVolume};
