1var c=["January","February","March","April","May","June","July","August","September","October","November","December"],m=class{static daysBetween(e,t){let n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=1e3*60*60*24,o=(a.getTime()-n.getTime())/r;return Math.floor(o)}static longFormat(e){let t=c[e.month-1],n=e.day+this.getOrdinal(e.day);return`${t} ${n} ${e.year}`}static shortFormat(e){let t=new Date(e),a=new Intl.DateTimeFormat(void 0,{day:"2-digit",month:"short",year:"2-digit"}).formatToParts(t),r=a.find(i=>i.type==="day")?.value??"1",s=this.getOrdinal(Number.parseInt(r)),o=a.find(i=>i.type==="month")?.value??"",u=a.find(i=>i.type==="year")?.value??"";return`${r}${s} ${o} ${u}`}static MARKET_TIME_ZONE="Europe/Dublin";static toMarketDateOnly(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let n=new Intl.DateTimeFormat("en-CA",{timeZone:this.MARKET_TIME_ZONE,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),a=r=>n.find(s=>s.type===r)?.value??"";return`${a("year")}-${a("month")}-${a("day")}`}static toMarketDisplay(e){let t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-IE",{timeZone:this.MARKET_TIME_ZONE,day:"numeric",month:"short",year:"numeric"}).format(t)}static dateToISOString(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)).toISOString()}static getOrdinal(e){let t=Number(e);if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}static getDateObject(e){let t=new Date(e);return{month:t.getMonth()+1,day:t.getDate(),year:t.getFullYear()}}static getMonth(e,t=!1){let n=c[e];return t?n.slice(0,3):n}static addDays(e,t){return e.setDate(e.getDate()+t),this.formatDate(e)}static formatDate(e){let t=new Date(e),n=""+(t.getMonth()+1),a=""+t.getDate(),r=t.getFullYear(),s=t.getHours(),o=t.getMinutes(),u=t.getSeconds();return a+"-"+n+"-"+r+" "+s+":"+o+":"+u}};export{m as a};
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.