// @bun
var{defineProperty:k,getOwnPropertyNames:q,getOwnPropertyDescriptor:u}=Object,v=Object.prototype.hasOwnProperty;function y(g){return this[g]}var C=(g)=>{var f=(l??=new WeakMap).get(g),h;if(f)return f;if(f=k({},"__esModule",{value:!0}),g&&typeof g==="object"||typeof g==="function"){for(var j of q(g))if(!v.call(f,j))k(f,j,{get:y.bind(g,j),enumerable:!(h=u(g,j))||h.enumerable})}return l.set(g,f),f},l;var z=(g)=>g;function A(g,f){this[g]=z.bind(null,f)}var D=(g,f)=>{for(var h in f)k(g,h,{get:f[h],enumerable:!0,configurable:!0,set:A.bind(f,h)})};var E=(g,f)=>()=>(g&&(f=g(g=0)),f);var F=import.meta.require;function H(g){let f=g.robots??"allow";if(f===!1)return null;if(typeof f==="string"&&f!=="allow"&&f!=="disallow")return f.endsWith(`
`)?f:`${f}
`;let h=g.sitemap!==!1?`Sitemap: ${g.url.replace(/\/$/,"")}/sitemap.xml
`:"";if(f==="disallow")return["User-agent: *","Disallow: /","",h].filter(Boolean).join(`
`);return["User-agent: *","Allow: /","",h].filter(Boolean).join(`
`)}export{H as generateRobots};
