1import{u as b,v as $,x as S,h as i}from"./BRP_d_3g.js";import{u as U}from"./CnAvM6Fr.js";function L(l,f){const h=b(),g=S(),c=String(g.public.siteUrl||"").replace(/\/$/,""),a=i(()=>`${c}${h.path}`),u=i(()=>{var e,t,n,r;return((t=(e=l.value)==null?void 0:e.name)==null?void 0:t.trim())||((r=(n=l.value)==null?void 0:n.title)==null?void 0:r.trim())||""}),o=i(()=>{var e,t;return((t=(e=l.value)==null?void 0:e.metaTitle)==null?void 0:t.trim())||u.value}),s=i(()=>{var e,t,n,r;return((t=(e=l.value)==null?void 0:e.metaDescription)==null?void 0:t.trim())||((r=(n=l.value)==null?void 0:n.description)==null?void 0:r.trim())||u.value}),m=i(()=>{var e,t;return((t=(e=l.value)==null?void 0:e.metaKeywords)==null?void 0:t.trim())||""});function y(e){return/^https?:\/\//i.test(e)?e:e?`${c}${e.startsWith("/")?"":"/"}${e}`:c}const v=i(()=>{if(!l.value)return null;const e={"@type":"CollectionPage","@id":`${a.value}#collection-page`,url:a.value};return(o.value||u.value)&&(e.name=o.value||u.value),s.value&&(e.description=s.value),e}),p=i(()=>{const e=f.value.filter(t=>{var n;return(n=t.name)==null?void 0:n.trim()}).map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name.trim(),item:y(t.url)}));return e.length?{"@type":"BreadcrumbList","@id":`${a.value}#breadcrumbs`,itemListElement:e}:null}),d=i(()=>{const e=[];return v.value&&e.push(v.value),p.value&&e.push(p.value),e.length?{"@context":"https://schema.org","@graph":e}:null});U({title:()=>o.value,description:()=>s.value,ogType:"website",ogTitle:()=>o.value,ogDescription:()=>s.value,ogUrl:()=>a.value}),$(()=>({link:[{rel:"canonical",href:a.value}],meta:m.value?[{name:"keywords",content:m.value}]:[],script:d.value?[{key:"collection-page-jsonld",type:"application/ld+json",children:JSON.stringify(d.value)}]:[]}))}export{L as u};
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.