1import{a as e,i as t}from"./DaRRfdyu.js";import{n}from"./TnSGyCI0.js";import{m as r}from"./Dmkm3_8N.js";import{t as i}from"./C23_GVDD.js";import{t as a}from"./PeyIalYL.js";function o(){let{t:e,locale:t,defaultLocale:r}=n();return{blogBreadcrumbs:n=>[{title:e(`route_blog`),slug:`/blog`},...Array.isArray(n)?n:[]].filter(e=>!!(e.slug||e.relativeUrl)).map(e=>{let n=e.slug||e.relativeUrl||``;if(t.value!==r){let e=RegExp(`^/${t.value}`);n=n.replace(e,``)}return n=n.startsWith(`/blog`)?n:`/blog${n}`,{title:e.title||e.text,slug:n}})}}function s(n){let{$i18n:o}=t(),{public:{baseURL:s,siteName:c}}=e(),l=r(),u=i(),d=a();if(!Object.keys(n).length)return{};let{seo:f}=n||{seo:{}},p=n?.categories.edges.some(e=>e?.node.slug===`news`)??!1,m=n?.tags?.nodes?.map(e=>e?.name).filter(Boolean)??[],h={"@context":`https://schema.org`,"@type":p?`NewsArticle`:`BlogPosting`,headline:n?.title,description:f?.opengraphDescription||``,image:{"@type":`ImageObject`,url:n?.featuredImage?.node?.sourceUrl||f?.opengraphImage?.sourceUrl||`${d.origin}/images/og-image.jpg`,width:{"@type":`QuantitativeValue`,value:1200},height:{"@type":`QuantitativeValue`,value:630}},author:{"@type":`Person`,name:`${c?.split(`.`)?.[0]} team`,url:`${s}${u(`/blog`)}`},inLanguage:o.locale.value,datePublished:f?.opengraphPublishedTime,dateModified:f?.opengraphModifiedTime,mainEntityOfPage:{"@type":`WebPage`,"@id":`${s}${l.fullPath}`},isPartOf:{"@type":`WebSite`,name:c,url:`${s}${l.fullPath}`},publisher:{"@type":`Organization`,name:c,logo:{"@type":`ImageObject`,url:`${d.origin}/images/og-image.jpg`}},keywords:m.join(`, `),copyrightYear:new Date(f?.opengraphPublishedTime||Date.now()).getFullYear()};return n?.postRating?.count>0&&(h.aggregateRating={"@type":`AggregateRating`,itemReviewed:{"@type":`Organization`,name:c},ratingValue:n.postRating?.average||0,bestRating:5,worstRating:1,ratingCount:n.postRating?.count}),h}var c=(e,t)=>({"@type":`ListItem`,position:t+1,item:s(e)}),l=(e,t)=>
1({"@type":`ItemList`,...t?{name:t}:{},itemListElement:e?.map(c)||[]});function u(e){if(!e||typeof e!=`object`)return;let t=e;return t.statusCode??t.status??t.response?.status??t.data?.statusCode}function d(e){let t=u(e);return t==null||t>=500||t===408||t===429}export{o as i,s as n,l as r,d 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.