1var H=Object.defineProperty;var A=(t,e,r)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var p=(t,e,r)=>A(t,typeof e!="symbol"?e+"":e,r);import{R as f,r as M}from"./react-CKYODFb4.js";var C=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(C||{}),y={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}};Object.values(C);var O={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"};Object.entries(O).reduce((t,[e,r])=>(t[r]=e,t),{});var h="data-rh",E=t=>Array.isArray(t)?t.join(""):t,I=(t,e)=>{const r=Object.keys(t);for(let i=0;i<r.length;i+=1)if(e[r[i]]&&e[r[i]].includes(t[r[i]]))return!0;return!1},b=(t,e)=>Array.isArray(t)?t.reduce((r,i)=>(I(i,e)?r.priority.push(i):r.default.push(i),r),{priority:[],default:[]}):{default:t,priority:[]},P=["noscript","script","style"],$=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),k=t=>Object.keys(t).reduce((e,r)=>{const i=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${i}`:i},""),R=(t,e,r,i)=>{const n=k(r),s=E(e);return n?`<${t} ${h}="true" ${n}>${$(s,i)}</${t}>`:`<${t} ${h}="true">${$(s,i)}</${t}>`},L=(t,e,r=!0)=>e.reduce((i,n)=>{const s=n,o=Object.keys(s).filter(l=>!(l==="innerHTML"||l==="cssText")).reduce((l,u)=>{const g=typeof s[u]>"u"?u:`${u}="${$(s[u],r)}"`;return l?`${l} ${g}`:g},""),c=s.innerHTML||s.cssText||"",m=P.indexOf(t)===-1;return`${i}<${t} ${h}="true" ${o}${m?"/>":`>${c}</${t}>`}`},""),w=(t,e={})=>Object.keys(t).reduce((r,i)=>{const n=O[i];return r[n||i]=t[i],r},e),j=(t,e,r)=>{const i={key:e,[h]:!0},n=w(r,i);return[f.createElement("title",n,e)]},v=(t,e)=>e.map((r,i)=>{const n={key:i,[h]:!0};return Object.keys(r).forEach(s=>{const c=O[s]||s;if(c==="innerHTML"||c==="cssText"){const m=r.innerHTML||r.cssText;n.dangerouslySetInnerHTML={__html:m}}else n[c]=r[s]}),f.createElement(t,n)}),a=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>j(t,e.title,e.titleAttributes),toString:()=>R(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>w(e),toString:()=>k(e)};default:return{toComponent:()=>v(t,e),toString:()=>L(t,e,r)}}},U=({metaTags:t,linkTags:e,scriptTags:r,encode:i})=>{const n=b(t,y.meta),s=b(e,y.link),o=b(r,y.script);return{priorityMethods:{toComponent:()=>[...v("meta",n.priority),...v("link",s.priority),...v("script",o.priority)],toString:()=>`${a("meta",n.priority,i)} ${a("link",s.priority,i)} ${a("script",o.priority,i)}`},metaTags:n.default,linkTags:s.default,scriptTags:o.default}},q=t=>{const{baseTag:e,bodyAttributes:r,encode:i=!0,htmlAttributes:n,noscriptTags:s,styleTags:o,title:c="",titleAttributes:m,prioritizeSeoTags:l}=t;let{linkTags:u,metaTags:g,scriptTags:x}=t,S={toComponent:()=>{},toString:()=>""};return l&&({priorityMethods:S,linkTags:u,metaTags:g,scriptTags:x}=U(t)),{priority:S,base:a("base",e,i),bodyAttributes:a("bodyAttributes",r,i),htmlAttributes:a("htmlAttributes",n,i),link:a("link",u,i),meta:a("meta",g,i),noscript:a("noscript",s,i),script:a("script",x,i),style:a("style",o,i),title:a("title",{title:c,titleAttributes:m},i)}},B=q,T=[],D=!!(typeof window<"u"&&window.document&&window.document.createElement),F=class{constructor(t,e){p(this,"instances",[]);p(this,"canUseDOM",D);p(this,"context");p(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?T:this.instances,add:t=>{(this.canUseDOM?T:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?T:this.instances).indexOf(t);(this.canUseDOM?T:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Y={},z=f.createContext(Y),d,_=(d=class extends M.Component{constructor(r){super(r);p(this,"helmetData");this.helmetData=new F(this.props.context||{},d.canUseDOM)}render(){return f.createElement(z.Provider,{value:this.helmetData.value},this.props.children)}},p(d,"canUseDOM",D),d);export{_ as H};
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.