1import{r as y}from"./index-CXi2yN65.js";const t=(e,r,n)=>{let o=document.head.querySelector(e);if(!o){o=document.createElement("meta");const[i,c]=e.replace(/[\[\]"]/g,"").split("=");o.setAttribute(i,c),document.head.appendChild(o)}o.setAttribute(r,n)},g=(e,r)=>{let n=document.head.querySelector(`link[rel="${e}"]`);n||(n=document.createElement("link"),n.setAttribute("rel",e),document.head.appendChild(n)),n.setAttribute("href",r)},w=({title:e,description:r,canonical:n,image:o,type:i="website",publishedTime:c,modifiedTime:m,author:p,section:d,keywords:l,jsonLd:s,noindex:f})=>(y.useEffect(()=>{document.title=e.length>60?e.slice(0,57)+"...":e,t('meta[name="description"]',"content",r.slice(0,160)),t('meta[name="twitter:card"]',"content","summary_large_image"),t('meta[name="robots"]',"content",f?"noindex, nofollow":"index, follow"),t('meta[property="og:site_name"]',"content","NoCognito"),t('meta[property="og:locale"]',"content","en_US"),t('meta[property="og:title"]',"content",e),t('meta[property="og:description"]',"content",r.slice(0,160)),t('meta[property="og:type"]',"content",i),t('meta[name="twitter:title"]',"content",e),t('meta[name="twitter:description"]',"content",r.slice(0,160)),l&&l.length&&t('meta[name="keywords"]',"content",l.join(", ")),o&&(t('meta[property="og:image"]',"content",o),t('meta[property="og:image:alt"]',"content",e),t('meta[name="twitter:image"]',"content",o)),c&&t('meta[property="article:published_time"]',"content",c),m&&t('meta[property="article:modified_time"]',"content",m),p&&t('meta[property="article:author"]',"content",p),d&&t('meta[property="article:section"]',"content",d);const u=n||(typeof window<"u"?window.location.href:"");u&&(g("canonical",u),t('meta[property="og:url"]',"content",u));let a=document.head.querySelector('script[data-seo-jsonld="true"]');s?(a||(a=document.createElement("script"),a.type="application/ld+json",a.setAttribute("data-seo-jsonld","true"),document.head.appendChild(a)),a.textContent=JSON.stringify(s)):a&&a.remove()},[e,r,n,o,i,c,m,p,d,l,s,f]),null);export{w as S};
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.