1const M=()=>{function m(e){return e?new Date(e).toLocaleDateString([],{year:"numeric",month:"long",day:"numeric"}):""}function c(e){return e?new Date(new Date(e).setMinutes(new Date(e).getTimezoneOffset())).toLocaleDateString([],{year:"numeric",month:"long",day:"numeric"}):""}function D(e){return e?new Date(new Date(e).setMinutes(new Date(e).getTimezoneOffset())).toLocaleDateString([],{weekday:"long",year:"numeric",month:"long",day:"numeric"}):""}function l(e){return e?new Date(e).toLocaleDateString([],{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",weekday:"long",timeZoneName:"short"}):""}function f(e){return new Date>new Date(Date.parse(e))}function s(e){const r=typeof e=="string"?new Date(e):e;return new Date<r}function g(e){return e?new Date(e).toLocaleString([],{hour:"numeric",minute:"numeric"}):""}function w(e){return e?new Date(new Date(e).setMinutes(new Date(e).getTimezoneOffset())).toLocaleDateString([],{year:"numeric",month:"long",day:"numeric",weekday:"long"}):""}function y(e){return e?new Date(new Date("1970-01-01T"+e+"Z")).toLocaleTimeString([],{timeZone:"UTC",hour12:!0,hour:"numeric",minute:"numeric"}):""}function h(e,r){const t=typeof e=="string"?a(e):e,n=typeof r=="string"?a(r):r;if(isNaN(t.getTime())||isNaN(n.getTime()))throw new Error("Invalid date value");const o=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric"}),F=new Intl.DateTimeFormat("en-US",{day:"numeric"}),i=o.format(t),S=F.format(n);if(t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())return`${i.split(" ")[0]} ${t.getDate()}-${S}, ${t.getFullYear()}`;if(t.getFullYear()===n.getFullYear())return`${i} - ${o.format(n)}, ${t.getFullYear()}`;{const u=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}),$=u.format(t),L=u.format(n);return`${$} - ${L}`}}function T(e){if(e<=0)return"PT0S";const r=Math.floor(e/3600),t=Math.floor(e%3600/60),n=e%60;let o="PT";return r>0&&(o+=`${r}H`),t>0&&(o+=`${t}M`),n>0&&(o+=`${n}S`),o}function a(e){const[r,t,n]=e.split("-").map(Number);return new Date(r,t-1,n)}return{convertDateToShortDate:m,convertDateToUTCShortDate:c,convertDateToUTCShortDateWithWeekDay:D,convertDateToLongDate:l,isDateInPast:f,getTimeOfLongDate:g,convertDateToLongDateNoTime:w,formattedTime:y,isDateInFuture:s,formatDateRange:h,convertToISO8601Duration:T}};export{M as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.