var e=()=>{let e=new Date;return e.getMonth()==0?{month:0,year:e.getFullYear()-1}:{month:e.getMonth(),year:e.getFullYear()}};function t(e){let t=Math.floor((new Date().getTime()-e.getTime())/1e3),n=[{label:`year`,seconds:31536e3},{label:`month`,seconds:2592e3},{label:`week`,seconds:604800},{label:`day`,seconds:86400},{label:`hour`,seconds:3600},{label:`minute`,seconds:60},{label:`second`,seconds:1}];if(t>86400)return`${e.toLocaleDateString([],{month:`numeric`,year:`2-digit`,day:`numeric`})} ${e.toLocaleTimeString([],{timeStyle:`short`})}`;for(let e of n){let n=Math.floor(t/e.seconds);if(n>=1)return`${n} ${e.label}${n===1?``:`s`} ago`}return`just now`}var n=e=>e?`${Math.floor(e/60)} minutes listened`:``;export{n,t as r,e as t};