import{a as m}from"./chunk-CP4WO7MM.mjs";import{a as f}from"./chunk-IHX4EDUF.mjs";var a=(r,o)=>{let t=new Date(r),e=new Date;return t.toLocaleDateString("en-US",{day:"numeric",month:"long",...t.getUTCFullYear()!==e.getUTCFullYear()?{year:"numeric"}:{},...o})};function y({domain:r,key:o,pretty:t,searchParams:e}){if(!r)return"";let p=`https://${f(r)}${o&&o!=="_root"?`/${f(o)}`:""}`;if(e){let n=new URLSearchParams;for(let[x,i]of Object.entries(e))n.set(x,i);p+=`?${n.toString()}`}return t?p.replace(/^https?:\/\//,""):p}function F({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var cr=r=>!r.periodStart||!r.periodEnd?"-":`${m(r.periodStart,{month:"short",year:new Date(r.periodStart).getUTCFullYear()===new Date(r.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${m(r.periodEnd,{month:"short",timeZone:"utc"})}`;export{a,cr as b,y as c,F as d};
