const t="https://www.allerin.com",e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","ref","session","debug","source","campaign"];function n(n){const r=n||window.location.pathname,i=new URL(r,t);if(e.forEach(t=>{i.searchParams.delete(t)}),r.startsWith("/roi-calculator"))return`${t}/roi-calculator`;if(r.startsWith("/outcomes"))return`${t}/outcomes`;let o=i.toString();return o.endsWith("/")&&o!==`${t}/`&&(o=o.slice(0,-1)),o}function r(e,n){return n?`${t}/og/${e}-${n}.webp`:`${t}/og/${e}.webp`}function i(t){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map((t,e)=>({"@type":"ListItem",position:e+1,name:t.name,...t.url&&{item:t.url}}))}}function o(t){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function s(t,e){return t.length<=e?t:t.slice(0,e-1).trim()+"…"}function a(t,e=!0){const n=" | Allerin";let r=s(t,e?50:60);return e&&(r+=n),r}function c(t){return s(t,155)}export{r as a,n as b,a as c,c as d,i as e,o as g};