1import{_ as e,i as t,p as n}from"./BGmARPz2.js";import{t as r}from"./DYWcKvqL.js";import{t as i}from"./Ds9skkgH.js";import{a}from"./LEvys-hS.js";import{t as o}from"./m5ytnj8o.js";import{n as s}from"./B95nhwdc.js";import{h as c}from"./Dl0ELuBr.js";import{t as l}from"./D4tjTLo9.js";import{a as u}from"#entry";import{n as d}from"./DHmHNGWW.js";import{a as f,i as p,n as m,r as h,t as g}from"./DoKqVrJI.js";import{t as _}from"./BNpCYRAL.js";import{r as v}from"./C0CQrYJq.js";import{t as y}from"./DUmDR4Oe.js";var b=(r,i)=>{let a=n(r),o=t(a.search),s={};return s.w=i.width||o.w,s.h=i.height,s.ar=i.aspectRatio,s.fit=i.fit||`crop`,s.q=o.q,a.protocol+`//`+a.host+e(a.pathname,s)},x=()=>r(`default-schema-org-article`,()=>({})),S=e=>e?.replace(/<[^>]+(>|$)/g,``).trim()??``,C={express:[`https://de-de.facebook.com/EXPRESS.Koeln`,`https://twitter.com/express24`,`http://www.youtube.com/user/EXPRTV?sub_confirmation=1`,`https://www.instagram.com/expresskoeln/`,`https://www.tiktok.com/@express.queer`,`https://t.me/s/expressde`],ksta:[`https://de-de.facebook.com/ksta`,`https://twitter.com/KSTA`,`https://www.youtube.com/user/kstaTV`,`https://www.instagram.com/ksta_koeln`,`https://www.tiktok.com/@ksta.de`],"rundschau-online":[]},w=e=>{let t=[{aspectRatio:`1:1`,width:1200,height:1200},{aspectRatio:`4:3`,width:1200,height:900},{aspectRatio:`16:9`,width:1200,height:675}],n=[];if(e)for(let r of e)for(let e of t)r&&n.push(b(r,e));return n},T=()=>{let{t:e}=s();return{"@type":`ContactPoint`,email:e(`meta_parent_org.contact.email`),telephone:e(`meta_parent_org.contact.telephone`),faxNumber:e(`meta_parent_org.contact.faxNumber`)}},E=()=>{let{t:e}=s();return{"@type":`PostalAddress`,addressLocality:e(`meta_parent_org.address.addressLocality`),name:e(`meta_parent_org.address.name`),postalCode:e(`meta_parent_org.address.postalCode`),streetAddress:e(`meta_parent_org.address.streetAddress`),addressCountry:e(`meta_parent_org.address.addressCountry`)}},D=()=>{let{data:e}=a(u()),{t}=s(),{mandator:n}=i(),{chost:r}=o(),c=_(),l=C[n],d=e.value.siteName??t(`open_graph_site_name`),f=c?{"@type":`ImageObject`,"@id":r?`${r}#logo`:`#logo`,url:c,width:1200,height:630}:void 0,p=h({name:t(`meta_parent_org.name`),url:t(`meta_parent_org.url`),contactPoint:T(),address:E(),sameAs:l});return r?{"@type":`Organization`,"@id":`${r}#identity`,url:r,name:d,logo:f,description:e.value.description,parentOrganization:p}:h({"@type":`Organization`,name:d,logo:c||void 0,description:e.value.description,parentOrganization:p})},O=()=>{let{data:e}=a(u());return f({name:e.value.siteName})},k=({title:e,image:t,url:n,description:r=``,type:i=null,hasPart:a=null})=>{let o={name:e,image:t||``,url:n,description:r};return i&&(o[`@type`]=i),a&&(o.hasPart=a),p(o)},A=e=>{let{chost:t}=o();return e.map(e=>({"@type":`Person`,name:[e.prename,e.surname].filter(Boolean).join(` `)||void 0,image:e.img?.baseUrl?l()(e.img?.baseUrl,{width:1200,height:1200,format:`jpg`},{provider:`kdm-imgx`}):void 0,sameAs:e.urlPath?[`${t}${e.urlPath}`]:void 0}))},j=e=>{let{t}=s();return m({itemListElement:[{name:t(`breadcrumbs_home_route_label`),item:`/`},...e.map(({label:e,path:t})=>({name:e,item:t}))]})},M=e=>{if(!e.value)return;let t=x(),n=e.value.imgs?.length?e.value.imgs.filter(e=>e.baseUrl).map(e=>({"@type":`ImageObject`,url:l()(e.baseUrl,{width:1200,height:1200,format:`jpg`},{provider:`kdm-imgx`}),width:e.width,height:e.height,encodingFormat:e.mimeType||`image/jpeg`,alternateName:e.altText||void 0,caption:e.caption||void 0,copyrightHolder:e.copyrights?{"@type":`Organization`,name:e.copyrights}:void 0})):[],r={"@type":`ImageGallery`,name:e.value.title||`Fotogalerie`,image:n.length?n:void 0},i=t.value?.hasPart??[];return g({"@type":[`NewsArticle`],hasPart:[...i,r]})},N=(e,t)=>{let{chost:n}=o(),{t:r}=s(),i=_(),a=x(),u=e.value?.premium===!0,f=!u,p=[],m=e.value?.img?.baseUrl;m&&p.push(l()(m,{width:1200,height:630,format:`jpg`},{provider:`kdm-imgx`}));let h=e.value?.contentItems?.filter(e=>d(e)===`normal`);return h&&p.push(...h.filter(e=>e.content?.image?.url).map(e=>{let t=e.content?.image;return l()(t.url,{width:1200,height:1200,format:`jpg`},{provider:`kdm-imgx`})})),a.value={"@type":[`NewsArticle`],url:y(e.value?.canonicalUrl).value,headline:c(e.value?.seoTitle||``),image:w(p),description:e.value?.description,datePublished:v(e.value?.publishDate),dateModified:v(e.value?.publishDate),author:t.value.length>0?A(t.value)[0]:{"@type":`Organization`,name:r(`open_graph_site_name`),url:n,logo:i||void 0},publisher:{"@type":`Organization`,sameAs:n,logo:i||void 0,name:r(`open_graph_site_name`),contactPoint:T(),address:E()},isAccessibleForFree:f,hasPart:[u?{"@type":`WebPageElement`,cssSelector:`.dm-paywall-wrapper`,isAccessibleForFree:f}:{isAccessibleForFree:f}],articleBody:u?void 0:e.value?.contentItems?.filter(e=>[`p`,`quote`,`bullet-list`,`subtitle`].includes(d(e))).map(e=>{let t=d(e);return t===`p`?S(e.content?.text):t===`subtitle`?S(e.content?.title):t===`quote`?[e.content?.text,e.content?.author].filter(
1Boolean).join(` â `):t===`bullet-list`?(e.containers?.list)?.map(e=>S(e.content?.text)).join(` `)??``:``}).filter(Boolean).join(` `).slice(0,5e5)||void 0},g(a.value)};export{k as a,D as i,N as n,O as o,j as r,M as t};
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.