import{t as e}from"./Da3zqOpz.mjs";var t=`noindex,nofollow`,n=()=>e.seo.indexing??`all`,r=e=>n()!==`all`&&!!e,i=()=>n()!==`allowlist`,a=()=>n()===`allowlist`,o=new Set([`index`,`noindex`,`all`,`none`]),s=e=>e.toLowerCase().split(`,`).some(e=>o.has(e.trim())),c=({allowIndexing:e,lang:n,robots:i,noindex:o,nofollow:c})=>{if(!e)return`noindex,follow`;if(r(n))return t;let l=a(),u=i?.trim();return u?l&&!s(u)?t:u:o?`noindex,${c?`nofollow`:`follow`}`:l?t:c?`index,nofollow`:`index,follow`};export{c as a,r as i,i as n,n as r,t};