import{isValidISODateTimeString as i}from"./kd/iso8601Utils.js";function t(t){return null!=t&&""!==t&&(isFinite(t)||i(t))}function n(i){return null!=i&&""!==i&&isFinite(i)&&Math.abs(i)<=90}function e(i){return null!=i&&""!==i&&isFinite(i)&&Math.abs(i)<=180}function r(i){return"string"==typeof i&&""!==i}function u(i){const t={weekday:i.weekday,era:i.era,year:i.year,month:i.month,day:i.day,hour:i.hour,hourCycle:void 0,hour12:void 0,minute:i.minute,second:i.second,timeZoneName:i.timeZoneName,timeZone:i.timeZone},{hour12:n}=i;return i._hour12Set&&(!1===n?t.hourCycle="h23":t.hour12=n),t}function o(i,n){const{value:e}=i;if(t(e)){const t=n(u(i),i.dateStyle).format(e);if(t)return t}return""}function a(i){const{latitude:t,longitude:r}=i;return n(t)&&e(r)?`${t}, ${r}`:""}function m(i,t){const{value:n}=i;if(null!=n&&""!==n&&isFinite(n)){const{formatStyle:e}=i,r={style:e,currency:i.currencyCode,currencyDisplay:i.currencyDisplayAs,minimumIntegerDigits:i.minimumIntegerDigits,minimumFractionDigits:i.minimumFractionDigits,maximumFractionDigits:i.maximumFractionDigits,minimumSignificantDigits:i.minimumSignificantDigits,maximumSignificantDigits:i.maximumSignificantDigits},u=String(n);let o=u;return"percent-fixed"===e&&(r.style="percent",o=parseFloat(n)/100,u.indexOf(".")>0&&u.indexOf("e")<0&&(o=o.toFixed(u.split(".")[1].length+2))),t(r).format(o)}return""}export{u as a,a as b,m as c,n as d,e,r as f,t as i,o as t};
