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