nzambello.dev/functions/[[path]].js

200 lines
231 KiB
JavaScript
Raw Normal View History

2023-05-31 10:17:30 +02:00
globalThis.process = {
argv: [],
env: {},
};
var io=Object.create;var jn=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var ao=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var z=(t,e)=>()=>(t&&(e=t(t=0)),e);var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),it=(t,e)=>{for(var i in e)jn(t,i,{get:e[i],enumerable:!0})},uo=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ao(e))!oo.call(t,r)&&r!==i&&jn(t,r,{get:()=>e[r],enumerable:!(n=ro(e,r))||n.enumerable});return t};var q=(t,e,i)=>(i=t!=null?io(so(t)):{},uo(e||!t||!t.__esModule?jn(i,"default",{value:t,enumerable:!0}):i,t));var $n=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)};var m=(t,e,i)=>($n(t,e,"read from private field"),i?i.call(t):e.get(t)),j=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},R=(t,e,i,n)=>($n(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);var Ee=(t,e,i)=>($n(t,e,"access private method"),i);var Ce=V(Rn=>{"use strict";Rn.parse=lo;Rn.serialize=po;var co=Object.prototype.toString,sn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function lo(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var i={},n=e||{},r=n.decode||fo,a=0;a<t.length;){var s=t.indexOf("=",a);if(s===-1)break;var o=t.indexOf(";",a);if(o===-1)o=t.length;else if(o<s){a=t.lastIndexOf(";",s-1)+1;continue}var u=t.slice(a,s).trim();if(i[u]===void 0){var c=t.slice(s+1,o).trim();c.charCodeAt(0)===34&&(c=c.slice(1,-1)),i[u]=Do(c,r)}a=o+1}return i}function po(t,e,i){var n=i||{},r=n.encode||mo;if(typeof r!="function")throw new TypeError("option encode is invalid");if(!sn.test(t))throw new TypeError("argument name is invalid");var a=r(e);if(a&&!sn.test(a))throw new TypeError("argument val is invalid");var s=t+"="+a;if(n.maxAge!=null){var o=n.maxAge-0;if(isNaN(o)||!isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(o)}if(n.domain){if(!sn.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!sn.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){var u=n.expires;if(!ho(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+u.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority){var c=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(c){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var l=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function fo(t){return t.indexOf("%")!==-1?decodeURIComponent(t):t}function mo(t){return encodeURIComponent(t)}function ho(t){return co.call(t)==="[object Date]"||t instanceof Date}function Do(t,e){try{return e(t)}catch{return t}}});function I(t,e){let i=new RegExp(`\\x1b\\[${e}m`,"g"),n=`\x1B[${t}m`,r=`\x1B[${e}m`;return function(a){return!go.enabled||a==null?a:n+(~(""+a).indexOf(r)?a.replace(i,r+n):a)+r}}var In,Pi,Oi,Mi,Li,go,zi,Dt,Ui,Cp,wp,Fp,Ap,_p,kp,Vi,Sp,Tt,Tp,Np,qi,Bp,jp,$p,Rp,Ip,Pp,Op,Mp,Lp,zp,Up,he=z(()=>{Li=!0;typeof process<"u"&&({FORCE_COLOR:In,NODE_DISABLE_COLORS:Pi,NO_COLOR:Oi,TERM:Mi}=process.env||{},Li=process.stdout&&process.stdout.isTTY);go={enabled:!Pi&&Oi==null&&Mi!=="dumb"&&(In!=null&&In!=="0"||Li)};zi=I(0,0),Dt=I(1,22),Ui=I(2,22),Cp=I(3,23),wp=I(4,24),Fp=I(7,27),Ap=I(8,28),_p=I(9,29),kp=I(30,39),Vi=I(31,39),Sp=I(32,39),Tt=I(33,39),Tp=I(34,39),Np=I(35,39),qi=I(36,39),Bp=I(37,39),jp=I(90,39),$p=I(90,39),Rp=I(40,49),Ip=I(41,49),Pp=I(42,49),Op=I(43,49),Mp=I(44,49),Lp=I(45,49),zp=I(46,49),Up=I(47,49)});function xo(t){for(var e=[],i=0;i<t.length;){var n=t[i];if(n==="*"||n==="+"||n==="?"){e.push({t
`)}function No(t){let e=Object.entries(v).find(i=>i[1].code===t);if(e)return{name:e[0],data:e[1]}}function Bo(t,e){if(!e||e.line===void 0||e.column===void 0)return"";let i=To(t).split(`
`).map(s=>s.replace(/\t/g," ")),n=[];for(let s=-2;s<=2;s++)i[e.line+s]&&n.push(e.line+s);let r=0;for(let s of n){let o=`> ${s}`;o.length>r&&(r=o.length)}let a="";for(let s of n){let o=s===e.line-1;a+=o?"> ":" ",a+=`${s+1} | ${i[s]}
`,o&&(a+=`${Array.from({length:r}).join(" ")} | ${Array.from({length:e.column}).join(" ")}^
`)}return a}function jo(t){return!(t.length!==3||!t[0]||typeof t[0]!="object")}function Nr(t,e){var i;let n=((i=e?.split("/").pop())==null?void 0:i.replace(".astro",""))??"",r=(...a)=>{if(!jo(a))throw new S({...v.InvalidComponentArgs,message:v.InvalidComponentArgs.message(n)});return t(...a)};return Object.defineProperty(r,"name",{value:n,writable:!1}),r.isAstroComponentFactory=!0,r.moduleId=e,r}function $o(t){let e=Nr(t.factory,t.moduleId);return e.propagation=t.propagation,e}function De(t,e){return typeof t=="function"?Nr(t,e):$o(t)}function Ro(){return(e,i)=>{if(typeof e=="string")throw new S({...v.AstroGlobUsedOutside,message:v.AstroGlobUsedOutside.message(JSON.stringify(e))});let n=[...Object.values(e)];if(n.length===0)throw new S({...v.AstroGlobNoMatch,message:v.AstroGlobNoMatch.message(JSON.stringify(e))});return Promise.all(n.map(r=>r()))}}function Ne(t){return{site:t?new URL(t):void 0,generator:`Astro v${Br}`,glob:Ro()}}function Io(t,e){if(t[e])return t[e];if(e==="delete"&&t.del)return t.del;if(t.all)return t.all}async function or(t,e,i){var n;let{request:r,params:a,locals:s}=e,o=(n=r.method)==null?void 0:n.toLowerCase(),u=Io(t,o);if(!i&&i===!1&&o&&o!=="get"&&console.warn(`
${o} requests are not available when building a static site. Update your config to \`output: 'server'\` or \`output: 'hybrid'\` with an \`export const prerender = false\` to handle ${o} requests.`),!u||typeof u!="function")return new Response(null,{status:404,headers:{"X-Astro-Response":"Not-Found"}});u.length>1&&console.warn(`
API routes with 2 arguments have been deprecated. Instead they take a single argument in the form of:
export function get({ params, request }) {
//...
}
Update your code to remove this warning.`);let c=new Proxy(e,{get(l,p){return p in l?Reflect.get(l,p):p in a?(console.warn(`
API routes no longer pass params as the first argument. Instead an object containing a params property is provided in the form of:
export function get({ params }) {
// ...
}
Update your code to remove this warning.`),Reflect.get(a,p)):void 0}});return u.call(t,c,r)}function jr(t){let e={};return i(t),Object.keys(e).join(" ");function i(n){n&&typeof n.forEach=="function"?n.forEach(i):n===Object(n)?Object.keys(n).forEach(r=>{n[r]&&i(r)}):(n=n===!1||n==null?"":String(n).trim(),n&&n.split(/\s+/).forEach(r=>{e[r]=!0}))}}function li(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}async function*Gn(t){let e=t.getReader();try{for(;;){let{done:i,value:n}=await e.read();if(i)return;yield n}}finally{e.releaseLock()}}function vn(t){return Object.prototype.toString.call(t)==="[object HTMLString]"}function Po(t){return new cn(t)}function $r(t){return typeof t.getReader=="function"}async function*ur(t){if($r(t))for await(let e of Gn(t))yield It(e);else for await(let e of t)yield It(e)}function*Oo(t){for(let e of t)yield It(e)}function It(t){if(t&&typeof t=="object"){if(t instanceof Uint8Array)return Po(t);if(t instanceof Response&&t.body){let e=t.body;return ur(e)}else{if(typeof t.then=="function")return Promise.resolve(t).then(e=>It(e));if(Symbol.iterator in t)return Oo(t);if(Symbol.asyncIterator in t||$r(t))return ur(t)}}return N(t)}function zo(t){return t._metadata.hasHydrationScript?!1:t._metadata.hasHydrationScript=!0}function Uo(t,e){return t._metadata.hasDirectives.has(e)?!1:(t._metadata.hasDirectives.add(e),!0)}function cr(t,e){let n=t._metadata.clientDirectives.get(e);if(!n)throw new Error(`Unknown directive: ${e}`);return n}function Vo(t,e,i){switch(e){case"both":return`${Lo}<script>${cr(t,i)};${Mo}<\/script>`;case"directive":return`<script>${cr(t,i)}<\/script>`}return""}function Xo(t){var e;let i="";for(let[n,r]of Object.entries(t))i+=`const ${Go(n)} = ${(e=JSON.stringify(r))==null?void 0:e.replace(/<\/script>/g,"\\x3C/script>")};
`;return N(i)}function lr(t){return t.length===1?t[0]:`${t.slice(0,-1).join(", ")} or ${t[t.length-1]}`}function re(t,e,i=!0){if(t==null)return"";if(t===!1)return Ho.test(e)||Zo.test(e)?N(` ${e}="false"`):"";if(Wo.has(e))return console.warn(`[astro] The "${e}" directive cannot be applied dynamically at runtime. It will not be rendered as an attribute.
Make sure to use the static attribute syntax (\`${e}={value}\`) instead of the dynamic spread syntax (\`{...{ "${e}": value }}\`).`),"";if(e==="class:list"){let n=Nt(jr(t),i);return n===""?"":N(` ${e.slice(0,-5)}="${n}"`)}return e==="style"&&!(t instanceof ot)&&typeof t=="object"?N(` ${e}="${Nt(Jo(t),i)}"`):e==="className"?N(` class="${Nt(t,i)}"`):t===!0&&(e.startsWith("data-")||qo.test(e))?N(` ${e}`):N(` ${e}="${Nt(t,i)}"`)}function Jn(t,e=!0){let i="";for(let[n,r]of Object.entries(t))i+=re(r,n,e);return N(i)}function Le(t,{props:e,children:i=""},n=!0){let{lang:r,"data-astro-id":a,"define:vars":s,...o}=e;return s&&(t==="style"&&(delete o["is:global"],delete o["is:scoped"]),t==="script"&&(delete o.hoist,i=Xo(s)+`
`+i)),(i==null||i=="")&&pi.test(t)?`<${t}${Jn(o,n)} />`:`<${t}${Jn(o,n)}>${i}</${t}>`}function pr(t){t._metadata.hasRenderedHead=!0;let e=Array.from(t.styles).filter(Ln).map(a=>a.props.rel==="stylesheet"?Le("link",a):Le("style",a));t.styles.clear();let i=Array.from(t.scripts).filter(Ln).map((a,s)=>Le("script",a,!1)),r=Array.from(t.links).filter(Ln).map(a=>Le("link",a,!1)).join(`
`)+e.join(`
`)+i.join(`
`);if(t.extraHead.length>0)for(let a of t.extraHead)r+=a;return N(r)}function*Rr(t){yield{type:"head",result:t}}function*Be(t){t._metadata.hasRenderedHead||(yield{type:"maybe-head",result:t,scope:t.scope})}function yn(t){return typeof t=="object"&&!!t[Ir]}function Yo(t,e){return{[Ir]:!0,head:t,content:e}}function Or(t){return typeof t=="object"&&!!t[Pr]}async function*bn(t){for await(let e of t)if(e||e===0)for await(let i of ut(e))switch(i.type){case"directive":{yield i;break}default:{yield N(i);break}}}function Z(t,...e){return new Kn(t,e)}function Mr(t){return t==null?!1:t.isAstroComponentFactory===!0}async function Ko(t,e,i,n){let r=await e(t,i,n);if(r instanceof Response)throw r;let a=new wt,s=yn(r)?r.content:r;for await(let o of bn(s))a.append(o,t);return a.toString()}function Qo(t,e){let i=e.propagation||"none";return e.moduleId&&t.componentMetadata.has(e.moduleId)&&i==="none"&&(i=t.componentMetadata.get(e.moduleId).propagation),i==="in-tree"||i==="self"}function eu(t,e){if(t!=null)for(let i of Object.keys(t))i.startsWith("client:")&&console.warn(`You are attempting to render <${e} ${i} />, but ${e} is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.`)}function tu(t,e,i,n,r={}){eu(n,e);let a=new Qn(t,n,r,i);return Qo(t,i)&&!t.propagators.has(i)&&t.propagators.set(i,a),a}function di(t){return typeof t=="object"&&!!t[zr]}async function*ut(t){if(t=await t,t instanceof ln)t.instructions&&(yield*t.instructions),yield t;else if(vn(t))yield t;else if(Array.isArray(t))for(let e of t)yield N(await ut(e));else typeof t=="function"?yield*ut(t()):typeof t=="string"?yield N(Bt(t)):!t&&t!==0||(Or(t)?yield*bn(t):di(t)?yield*t.render():ArrayBuffer.isView(t)?yield t:typeof t=="object"&&(Symbol.asyncIterator in t||Symbol.iterator in t)?yield*t:yield t)}function nu(t){return!!t[Ur]}async function*Ht(t,e,i){e&&(yield*ut(typeof e=="function"?e(t):e)),i&&!e&&(yield*Ht(t,i))}async function Ct(t,e,i){let n="",r=null,a=Ht(t,e,i);for await(let s of a)typeof s.type=="string"?(r===null&&(r=[]),r.push(s)):n+=s;return N(new ln(n,r))}async function Vr(t,e={}){let i=null,n={};return e&&await Promise.all(Object.entries(e).map(([r,a])=>Ct(t,a).then(s=>{s.instructions&&(i===null&&(i=[]),i.push(...s.instructions)),n[r]=s}))),{slotInstructions:i,children:n}}function Zt(t,e){if(typeof e.type=="string"){let i=e;switch(i.type){case"directive":{let{hydration:n}=i,r=n&&zo(t),a=n&&Uo(t,n.directive),s=r?"both":a?"directive":null;if(s){let o=Vo(t,s,n.directive);return N(o)}else return""}case"head":return t._metadata.hasRenderedHead?"":pr(t);case"maybe-head":return t._metadata.hasRenderedHead||t._metadata.headInTree?"":pr(t)}}else{if(nu(e)){let i="",n=e;if(n.instructions)for(let r of n.instructions)i+=Zt(t,r);return i+=e.toString(),i}return e.toString()}}function au(t,e){if(e instanceof Uint8Array)return e;let i=Zt(t,e);return fi.encode(i.toString())}async function Ue(t,e){switch(!0){case e instanceof ot:return e.toString().trim()===""?"":e;case typeof e=="string":return N(Bt(e));case typeof e=="function":return e;case(!e&&e!==0):return"";case Array.isArray(e):return N((await Promise.all(e.map(n=>Ue(t,n)))).join(""))}let i;return e.props?e.props[ze.symbol]?i=e.props[ze.symbol]:i=new ze(e):i=new ze(e),ni(t,e,i)}async function ni(t,e,i){if(jt(e)){switch(!0){case!e.type:throw new Error(`Unable to render ${t._metadata.pathname} because it contains an undefined Component!
Did you forget to import the component or is it possible there is a typo?`);case e.type===Symbol.for("astro:fragment"):return Ue(t,e.props.children);case e.type.isAstroComponentFactory:{let n={},r={};for(let[s,o]of Object.entries(e.props??{}))s==="children"||o&&typeof o=="object"&&o.$$slot?r[s==="children"?"default":s]=()=>Ue(t,o):n[s]=o;return N(await Ko(t,e.type,n,r))}case(!e.type&&e.type!==0):return"";case(typeof e.type=="string"&&e.type!==fr):return N(await su(t,e.type,e.props??{}))}if(e.type){let n=function(l){if(Array.isArray(l))return l.map(p=>n(p));if(!jt(l)){s.default.push(l);return}if("slot"in l.props){s[l.props.slot]=[...s[l.props.slot]??[],l],delete l.props.slot;return}s.default.push(l)};if(typeof e.type=="function"&&e.type["astro:renderer"]&&i.increment(),typeof e.type=="function"&&e.props["server:root"]){let l=await e.type(e.props??{});return await Ue(t,l)}if(typeof e.type=="function")if(i.haveNoTried()||i.isCompleted()){uu();try{let l=await e.type(e.props??{}),p;if(l&&l[En])return p=await ni(t,l,i),p;if(!l)return p=await ni(t,l,i),p}catch(l){if(i.isCompleted())throw l;i.increment()}finally{cu()}}else i.increment();let{children:r=null,...a}=e.props??{},s={default:[]};n(r);for(let[l,p]of Object.entries(a))p.$$slot&&(s[l]=p,delete a[l]);let o=[],u={};for(let[l,p]of Object.entries(s))o.push(Ue(t,p).then(f=>{f.toString().trim().length!==0&&(u[l]=()=>f)}));await Promise.all(o),a[ze.symbol]=i;let c;if(e.type===fr&&e.props["client:only"]?c=await hr(t,e.props["client:display-name"]??"",null,a,u):c=await hr(t,typeof e.type=="function"?e.type.name:e.type,e.type,a,u),typeof c!="string"&&Symbol.asyncIterator in c){let l=new wt;for await(let p of c)l.append(p,t);return N(l.toString())}else return N(c)}}return N(`${e}`)}async function su(t,e,{children:i,...n}){return N(`<${e}${hi(n)}${N((i==null||i=="")&&pi.test(e)?"/>":`>${i==null?"":await Ue(t,ou(e,i))}</${e}>`)}`)}function ou(t,e){return typeof e=="string"&&(t==="style"||t==="script")?N(e):e}function uu(){if(mi++,!ti){ti=console.error;try{console.error=lu}catch{}}}function cu(){mi--}function lu(t,...e){mi>0&&typeof t=="string"&&t.includes("Warning: Invalid hook call.")&&t.includes("https://reactjs.org/link/invalid-hook-call")||ti(t,...e)}function zn(t,e={},i=new WeakSet){if(i.has(t))throw new Error(`Cyclic reference detected while serializing props for <${e.displayName} client:${e.hydrate}>!
Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);i.add(t);let n=t.map(r=>Hr(r,e,i));return i.delete(t),n}function qr(t,e={},i=new WeakSet){if(i.has(t))throw new Error(`Cyclic reference detected while serializing props for <${e.displayName} client:${e.hydrate}>!
Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);i.add(t);let n=Object.fromEntries(Object.entries(t).map(([r,a])=>[r,Hr(a,e,i)]));return i.delete(t),n}function Hr(t,e={},i=new WeakSet){switch(Object.prototype.toString.call(t)){case"[object Date]":return[se.Date,t.toISOString()];case"[object RegExp]":return[se.RegExp,t.source];case"[object Map]":return[se.Map,JSON.stringify(zn(Array.from(t),e,i))];case"[object Set]":return[se.Set,JSON.stringify(zn(Array.from(t),e,i))];case"[object BigInt]":return[se.BigInt,t.toString()];case"[object URL]":return[se.URL,t.toString()];case"[object Array]":return[se.JSON,JSON.stringify(zn(t,e,i))];case"[object Uint8Array]":return[se.Uint8Array,JSON.stringify(Array.from(t))];case"[object Uint16Array]":return[se.Uint16Array,JSON.stringify(Array.from(t))];case"[object Uint32Array]":return[se.Uint32Array,JSON.stringify(Array.from(t))];default:return t!==null&&typeof t=="object"?[se.Value,qr(t,e,i)]:[se.Value,t]}}function Zr(t,e){return JSON.stringify(qr(t,e))}function pu(t,e){let i={isPage:!1,hydration:null,props:{}};for(let[n,r]of Object.entries(t))if(n.startsWith("server:")&&n==="server:root"&&(i.isPage=!0),n.startsWith("client:"))switch(i.hydration||(i.hydration={directive:"",value:"",componentUrl:"",componentExport:{value:""}}),n){case"client:component-path":{i.hydration.componentUrl=r;break}case"client:component-export":{i.hydration.componentExport.value=r;break}case"client:component-hydration":break;case"client:display-name":break;default:{if(i.hydration.directive=n.split(":")[1],i.hydration.value=r,!e.has(i.hydration.directive)){let a=Array.from(e.keys()).map(s=>`client:${s}`).join(", ");throw new Error(`Error: invalid hydration directive "${n}". Supported hydration methods: ${a}`)}if(i.hydration.directive==="media"&&typeof i.hydration.value!="string")throw new S(v.MissingMediaQueryDirective);break}}else n==="class:list"?r&&(i.props[n.slice(0,-5)]=jr(r)):i.props[n]=r;for(let n of Object.getOwnPropertySymbols(t))i.props[n]=t[n];return i}async function du(t,e){let{renderer:i,result:n,astroId:r,props:a,attrs:s}=t,{hydrate:o,componentUrl:u,componentExport:c}=e;if(!c.value)throw new Error(`Unable to resolve a valid export for "${e.displayName}"! Please open an issue at https://astro.build/issues!`);let l={children:"",props:{uid:r}};if(s)for(let[f,x]of Object.entries(s))l.props[f]=Bt(x);l.props["component-url"]=await n.resolve(decodeURI(u)),i.clientEntrypoint&&(l.props["component-export"]=c.value,l.props["renderer-url"]=await n.resolve(decodeURI(i.clientEntrypoint)),l.props.props=Bt(Zr(a,e))),l.props.ssr="",l.props.client=o;let p=await n.resolve("astro:scripts/before-hydration.js");return p.length&&(l.props["before-hydration-url"]=p),l.props.opts=Bt(JSON.stringify({name:e.displayName,value:e.hydrateArgs||""})),l}function fu(t){let e=0;if(t.length===0)return e;for(let i=0;i<t.length;i++){let n=t.charCodeAt(i);e=(e<<5)-e+n,e=e&e}return e}function mu(t){let e,i="",n=fu(t),r=n<0?"Z":"";for(n=Math.abs(n);n>=Un;)e=n%Un,n=Math.floor(n/Un),i=ii[e]+i;return n>0&&(i=ii[n]+i),r+i}function hu(t){return typeof HTMLElement<"u"&&HTMLElement.isPrototypeOf(t)}async function Du(t,e,i,n){let r=gu(e),a="";for(let s in i)a+=` ${s}="${Nt(await i[s])}"`;return N(`<${r}${a}>${await Ct(t,n?.default)}</${r}>`)}function gu(t){let e=customElements.getName(t);return e||t.name.replace(/^HTML|Element$/g,"").replace(/[A-Z]/g,"-$&").toLowerCase().replace(/^-/,"html-")}function xu(t){switch(t?.split(".").pop()){case"svelte":return["@astrojs/svelte"];case"vue":return["@astrojs/vue"];case"jsx":case"tsx":return["@astrojs/react","@astrojs/preact","@astrojs/solid-js","@astrojs/vue (jsx)"];default:return["@astrojs/react","@astrojs/preact","@astrojs/solid-js","@astrojs/vue","@astrojs/svelte","@astrojs/lit"]}}function vu(t){return t===iu}function yu(t){return t&&typeof t=="object"&&t["astro:html"]}function Cu(t,e){let i=e?Eu:bu;return t.replace(i,"")}async function wu(t,e,i,n,r={}){var a,s,o;if(!i&&!n["client:only"])throw new Error(`Unable to render ${e} because it is ${i}!
Did you forget to import the component or is it possible there is a typo?`);let{renderers:u,clientDirectives:c}=t._metadata,l={astroStaticSlot:!0,displayName:e},{hydration:p,isPage:f,props:x}=pu(n,c),g="",_;p&&(l.hydrate=p.directive,l.hydrateArgs=p.value,l.componentExport=p.componentExport,l.componentUrl=p.componentUrl);let A=xu(l.componentUrl),M=u.filter(T=>T.name!=="astro:jsx"),{children:O,slotInstructions:$}=await Vr(t,r),k;if(l.hydrate!=="only"){let T=!1;try{T=i&&i[ei]}catch{}if(T){let L=i[ei];k=u.find(({name:J})=>J===L)}if(!k){let L;for(let J of u)try{if(await J.ssr.check.call({result:t},i,x,O)){k=J;break}}catch(Bn){L??(L=Bn)}if(!k&&L)throw L}if(!k&&typeof HTMLElement=="function"&&hu(i))return Du(t,i,n,r)}else{if(l.hydrateArgs){let T=l.hydrateArgs,L=mr.has(T)?mr.get(T):T;k=u.find(({name:J})=>J===`@astrojs/${L}`||J===L)}if(!k&&M.length===1&&(k=M[0]),!k){let T=(a=l.componentUrl)==null?void 0:a.split(".").pop();k=u.filter(({name:L})=>L===`@astrojs/${T}`||L===T)[0]}}if(k)l.hydrate==="only"?g=await Ct(t,r?.fallback):{html:g,attrs:_}=await k.ssr.renderToStaticMarkup.call({result:t},i,x,O,l);else{if(l.hydrate==="only")throw new S({...v.NoClientOnlyHint,message:v.NoClientOnlyHint.message(l.displayName),hint:v.NoClientOnlyHint.hint(A.map(T=>T.replace("@astrojs/","")).join("|"))});if(typeof i!="string"){let T=M.filter(J=>A.includes(J.name)),L=M.length>1;if(T.length===0)throw new S({...v.NoMatchingRenderer,message:v.NoMatchingRenderer.message(l.displayName,(s=l?.componentUrl)==null?void 0:s.split(".").pop(),L,M.length),hint:v.NoMatchingRenderer.hint(lr(A.map(J=>"`"+J+"`")))});if(T.length===1)k=T[0],{html:g,attrs:_}=await k.ssr.renderToStaticMarkup.call({result:t},i,x,O,l);else throw new Error(`Unable to render ${l.displayName}!
This component likely uses ${lr(A)},
but Astro encountered an error during server-side rendering.
Please ensure that ${l.displayName}:
1. Does not unconditionally access browser-specific globals like \`window\` or \`document\`.
If this is unavoidable, use the \`client:only\` hydration directive.
2. Does not conditionally return \`null\` or \`undefined\` when rendered on the server.
If you're still stuck, please open an issue on GitHub or join us at https://astro.build/chat.`)}}if(k&&!k.clientEntrypoint&&k.name!=="@astrojs/lit"&&l.hydrate)throw new S({...v.NoClientEntrypoint,message:v.NoClientEntrypoint.message(e,l.hydrate,k.name)});if(!g&&typeof i=="string"){let T=Fu(i),L=Object.values(O).join(""),J=bn(await Z`<${T}${Jn(x)}${N(L===""&&pi.test(T)?"/>":`>${L}</${T}>`)}`);g="";for await(let Bn of J)g+=Bn}if(!p)return async function*(){var T;$&&(yield*$),f||k?.name==="astro:jsx"?yield g:g&&g.length>0?yield N(Cu(g,((T=k?.ssr)==null?void 0:T.supportsAstroStaticSlot)??!1)):yield""}();let be=mu(`<!--${l.componentExport.value}:${l.componentUrl}-->
${g}
${Zr(x,l)}`),Y=await du({renderer:k,result:t,astroId:be,props:x,attrs:_},l),ie=[];if(g){if(Object.keys(O).length>0)for(let T of Object.keys(O)){let L=(o=k?.ssr)!=null&&o.supportsAstroStaticSlot?l.hydrate?"astro-slot":"astro-static-slot":"astro-slot",J=T==="default"?`<${L}>`:`<${L} name="${T}">`;g.includes(J)||ie.push(T)}}else ie=Object.keys(O);let an=ie.length>0?ie.map(T=>`<template data-astro-template${T!=="default"?`="${T}"`:""}>${O[T]}</template>`).join(""):"";Y.children=`${g??""}${an}`,Y.children&&(Y.props["await-children"]="");async function*Nn(){$&&(yield*$),yield{type:"directive",hydration:p,result:t},yield N(Le("astro-island",Y,!1))}return Nn()}function Fu(t){let e=/[&<>'"\s]+/g;return e.test(t)?t.trim().split(e)[0].trim():t}async function Au(t,e={}){let i=await Ct(t,e?.default);return i==null?i:N(i)}async function _u(t,e,i,n={}){let{slotInstructions:r,children:a}=await Vr(t,n),s=e.render({slots:a}),o=r?r.map(u=>Zt(t,u)).join(""):"";return N(o+s)}function W(t,e,i,n,r={}){return li(i)?Promise.resolve(i).then(a=>W(t,e,a,n,r)):vu(i)?Au(t,r):yu(i)?_u(t,i,n,r):Mr(i)?tu(t,e,i,n,r):wu(t,e,i,n,r)}function hr(t,e,i,n,r={}){let a=W(t,e,i,n,r);return di(a)?a.render():a}function ku(){var t,e,i;return pn=(i=class extends Response{constructor(r,a){let s=r instanceof ReadableStream;super(s?null:r,a);j(this,t,void 0);j(this,e,void 0);R(this,t,s),R(this,e,r)}get body(){return m(this,e)}async text(){if(m(this,t)&&ri){let r=new TextDecoder,a=m(this,e),s="";for await(let o of Gn(a))s+=r.decode(o);return s}return super.text()}async arrayBuffer(){if(m(this,t)&&ri){let r=m(this,e),a=[],s=0;for await(let c of Gn(r))a.push(c),s+=c.length;let o=new Uint8Array(s),u=0;for(let c of a)o.set(c,u),u+=c.length;return o}return super.arrayBuffer()}},t=new WeakMap,e=new WeakMap,i),pn}function Tu(t){return Dr in t&&!!t[Dr]}async function gr(t,e,i){let n=new wt,r=0;for await(let a of e)vn(a)&&r===0&&(r++,/<!doctype html/i.test(String(a))||(n.append(`<!DOCTYPE html>
`,t),i&&await i(n))),n.append(a,t);return n.toArrayBuffer()}async function Nu(t){let e=t.propagators.values();for(;;){let{value:i,done:n}=e.next();if(n)break;let r=await i.init(t);yn(r)&&t.extraHead.push(r.head)}}async function Bu(t,e,i,n,r,a){var s,o;if(!Mr(e)){t._metadata.headInTree=((s=t.componentMetadata.get(e.moduleId))==null?void 0:s.containsHead)??!1;let l={...i??{},"server:root":!0},p,f="";try{if(Tu(e)){let _=new wt;for await(let A of Be(t))_.append(A,t);f=_.toString()}let g=await W(t,e.name,e,l,null);di(g)?p=g.render():p=g}catch(g){throw S.is(g)&&!g.loc&&g.setLocation({file:a?.component}),g}let x=await gr(t,p,async g=>{g.append(f,t)});return new Response(x,{headers:new Headers([["Content-Type","text/html; charset=utf-8"],["Content-Length",x.byteLength.toString()]])})}t._metadata.headInTree=((o=t.componentMetadata.get(e.moduleId))==null?void 0:o.containsHead)??!1;let u=await e(t,i,n),c=yn(u);if(Or(u)||c){await Nu(t);let l=c?u.content:u,p=bn(l),f=t.response,x=new Headers(f.headers),g;return r?g=new ReadableStream({start(A){async function M(){let O=0;try{for await(let $ of p){if(vn($)&&O===0&&(/<!doctype html/i.test(String($))||A.enqueue(fi.encode(`<!DOCTYPE html>
`))),$ instanceof Response)throw new S({...v.ResponseSentError});let k=au(t,$);A.enqueue(k),O++}A.close()}catch($){S.is($)&&!$.loc&&$.setLocation({file:a?.component}),A.error($)}}M()}}):(g=await gr(t,p),x.set("Content-Length",g.byteLength.toString())),Su(g,{...f,headers:x})}if(!(u instanceof Response))throw new S({...v.OnlyResponseCanBeReturned,message:v.OnlyResponseCanBeReturned.message(a?.route,typeof u),location:{file:a?.component}});return u}function ju({props:t,children:e}){return Le("script",{props:t,children:e})}function xr(t,e){if(e.type==="external")return Array.from(t.styles).some(i=>i.props.href===e.src)?"":Le("link",{props:{rel:"stylesheet",href:e.src},children:""});if(e.type==="inline")return Array.from(t.styles).some(i=>i.children.includes(e.content))?"":Le("style",{props:{type:"text/css"},children:e.content})}function hi(t,e,{class:i}={}){let n="";i&&(typeof t.class<"u"?t.class+=` ${i}`:typeof t["class:list"]<"u"?t["class:list"]=[t["class:list"],i]:t.class=i);for(let[r,a]of Object.entries(t))n+=re(a,r,!0);return N(n)}function jt(t){return t&&typeof t=="object"&&t[En]}function $u(t){if(typeof t.type=="string")return t;let e={};if(jt(t.props.children)){let i=t.props.children;if(!jt(i)||!("slot"in i.props))return;let n=yr(i.props.slot);e[n]=[i],e[n].$$slot=!0,delete i.props.slot,delete t.props.children}Array.isArray(t.props.children)&&(t.props.children=t.props.children.map(i=>{if(!jt(i)||!("slot"in i.props))return i;let n=yr(i.props.slot);return Array.isArray(e[n])?e[n].push(i):(e[n]=[i],e[n].$$slot=!0),delete i.props.slot,vr}).filter(i=>i!==vr)),Object.assign(t.props,e)}function Wr(t){return typeof t=="string"?N(t):Array.isArray(t)?t.map(e=>Wr(e)):t}function Ru(t){if("set:html"in t.props||"set:text"in t.props){if("set:html"in t.props){let e=Wr(t.props["set:html"]);delete t.props["set:html"],Object.assign(t.props,{children:e});return}if("set:text"in t.props){let e=t.props["set:text"];delete t.props["set:text"],Object.assign(t.props,{children:e});return}}}function Iu(t,e){let i={[ei]:"astro:jsx",[En]:!0,type:t,props:e??{}};return Ru(i),$u(i),i}async function Pu(t,e,{default:i=null,...n}={}){if(typeof t!="function")return!1;let r={};for(let[a,s]of Object.entries(n)){let o=Gr(a);r[o]=s}try{return(await t({...e,...r,children:i}))[En]}catch{}return!1}async function Ou(t,e={},{default:i=null,...n}={}){let r={};for(let[o,u]of Object.entries(n)){let c=Gr(o);r[c]=u}let{result:a}=this;return{html:await Ue(a,Iu(t,{...e,...r,children:i}))}}function Di(t,e){Reflect.set(t,Yr,e)}function zu(t){let e=Reflect.get(t,Yr);if(e!=null)return e}function*Uu(t){let e=zu(t);if(!e)return[];for(let i of e.headers())yield i;return[]}function Kr(t,e,i,n){let r=t.level,a=t.dest,s={type:i,level:e,message:n};fn[r]>fn[e]||a.write(s)}function Ve(t,e,i){return Kr(t,"warn",e,i)}function qu(t,e,i){return Kr(t,"error",e,i)}function Hu(...t){"_astroGlobalDebug"in globalThis&&globalThis._astroGlobalDebug(...t)}async function Qr(t,e,i,n){new Promise(u=>{});let r=!1,a,o=e(i,async()=>(r=!0,a=n(),a));return await Promise.resolve(o).then(async u=>{if(Zu(u)&&Ve(t,"middleware",`Using simple endpoints can cause unexpected issues in the chain of middleware functions.
It's strongly suggested to use full ${Dt("Response")} objects.`),r)if(typeof u<"u"){if(!(u instanceof Response))throw new S(v.MiddlewareNotAResponse);return u}else{if(a)return a;throw new S(v.MiddlewareNotAResponse)}else{if(typeof u>"u")throw new S(v.MiddlewareNoDataOrNextCalled);if(u instanceof Response)return u;throw new S(v.MiddlewareNotAResponse)}})}function Zu(t){return!(t instanceof Response)&&typeof t=="object"&&typeof t.body=="string"}function ea({request:t,params:e,site:i,props:n,adapterName:r}){let a={cookies:new dn(t),request:t,params:e,site:i?new URL(i):void 0,generator:`Astro v${Br}`,props:n,redirect(s,o){return new Response(null,{status:o||302,headers:{Location:s}})},url:new URL(t.url),get clientAddress(){if(!(Er in t))throw r?new S({...v.ClientAddressNotAvailable,message:v.ClientAddressNotAvailable.message(r)}):new S(v.StaticClientAddressNotAvailable);return Reflect.get(t,Er)}};return Object.defineProperty(a,"locals",{get(){return Reflect.get(t,Cr)},set(s){if(typeof s!="object")throw new S(v.LocalsNotAnObject);Reflect.set(t,Cr,s)}}),a}async function Wu(t,e,i,n,r){var a;let s=ea({request:i.request,params:i.params,props:i.props,site:e.site,adapterName:e.adapterName}),o;if(r&&r.onRequest){let u=r.onRequest;o=await Qr(e.logging,u,s,async()=>await or(t,s,e.ssr))}else o=await or(t,s,e.ssr);return o instanceof Response?(Di(o,s.cookies),{type:"response",response:o}):(e.ssr&&!((a=i.route)!=null&&a.prerender)&&(o.hasOwnProperty("headers")&&Ve(n,"ssr","Setting headers is not supported when returning an object. Please return an instance of Response. See https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes for more information."),o.encoding&&Ve(n,"ssr","`encoding` is ignored in SSR. To return a charset other than UTF-8, please return an instance of Response. See https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes for more information.")),{type:"simple",body:o.body,encoding:o.encoding,cookies:s.cookies})}function mn(t){return t[0]==="/"?t:"/"+t}function ta(t){return t.endsWith("/")?t.slice(0,t.length-1):t}function Ju(t){return t.startsWith("/")?t.substring(1):t}function Xu(t){return t.replace(/^\/|\/$/g,"")}function Yu(t){return typeof t=="string"||t instanceof String}function Fr(...t){return t.filter(Yu).map((e,i)=>i===0?ta(e):i===t.length-1?Ju(e):Xu(e)).join("/")}function Qu([t,e],i){if(!Ku.includes(typeof e))throw new S({...v.GetStaticPathsInvalidRouteParam,message:v.GetStaticPathsInvalidRouteParam.message(t,e,typeof e),location:{file:i}})}function ec(t,{ssr:e,logging:i,route:n}){if(e&&t.getStaticPaths&&!n.prerender&&Ve(i,"getStaticPaths",`getStaticPaths() in ${Dt(n.component)} is ignored when "output: server" is set.`),(!e||n.prerender)&&!t.getStaticPaths)throw new S({...v.GetStaticPathsRequired,location:{file:n.component}})}function tc(t,e,i){if(!Array.isArray(t))throw new S({...v.InvalidGetStaticPathsReturn,message:v.InvalidGetStaticPathsReturn.message(typeof t),location:{file:i.component}});t.forEach(n=>{if(n.params===void 0||n.params===null||n.params&&Object.keys(n.params).length===0)throw new S({...v.GetStaticPathsExpectedParams,location:{file:i.component}});if(typeof n.params!="object")throw new S({...v.InvalidGetStaticPathParam,message:v.InvalidGetStaticPathParam.message(typeof n.params),location:{file:i.component}});for(let[r,a]of Object.entries(n.params))typeof a>"u"||typeof a=="string"||typeof a=="number"||Ve(e,"getStaticPaths",`invalid path param: ${r}. A string, number or undefined value was expected, but got \`${JSON.stringify(a)}\`.`),typeof a=="string"&&a===""&&Ve(e,"getStaticPaths",`invalid path param: ${r}. \`undefined\` expected for an optional param, but got empty string.`)})}function nc(t){return i=>{let n={};return t.forEach((r,a)=>{r.startsWith("...")?n[r.slice(3)]=i[a+1]?decodeURIComponent(i[a+1]):void 0:n[r]=decodeURIComponent(i[a+1])}),n}}function na(t,e){let i=Object.entries(t).reduce((n,r)=>{Qu(r,e);let[a,s]=r;return n[a]=s?.toString(),n},{});return JSON.stringify(i,Object.keys(t).sort())}function rc(t){return function(){switch(t){c
${n>0?`There ${i?"are":"is"} ${n} renderer${i?"s":""} configured in your \`astro.config.mjs\` file,
but ${i?"none were":"it was not"} able to server-side render \`${t}\`.`:`No valid renderer was found ${e?`for the \`.${e}\` file extension.`:"for this file extension."}`}`,hint:t=>`Did you mean to enable the ${t} integration?
See https://docs.astro.build/en/core-concepts/framework-components/ for more information on how to install and configure integrations.`},NoClientEntrypoint:{title:"No client entrypoint specified in renderer.",code:3008,message:(t,e,i)=>`\`${t}\` component has a \`client:${e}\` directive, but no client entrypoint was provided by \`${i}\`.`,hint:"See https://docs.astro.build/en/reference/integrations-reference/#addrenderer-option for more information on how to configure your renderer."},NoClientOnlyHint:{title:"Missing hint on client:only directive.",code:3009,message:t=>`Unable to render \`${t}\`. When using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.`,hint:t=>`Did you mean to pass \`client:only="${t}"\`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only`},InvalidGetStaticPathParam:{title:"Invalid value returned by a `getStaticPaths` path.",code:3010,message:t=>`Invalid params given to \`getStaticPaths\` path. Expected an \`object\`, got \`${t}\``,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},InvalidGetStaticPathsReturn:{title:"Invalid value returned by getStaticPaths.",code:3011,message:t=>`Invalid type returned by \`getStaticPaths\`. Expected an \`array\`, got \`${t}\``,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsRemovedRSSHelper:{title:"getStaticPaths RSS helper is not available anymore.",code:3012,message:"The RSS helper has been removed from `getStaticPaths`. Try the new @astrojs/rss package instead.",hint:"See https://docs.astro.build/en/guides/rss/ for more information."},GetStaticPathsExpectedParams:{title:"Missing params property on `getStaticPaths` route.",code:3013,message:"Missing or empty required `params` property on `getStaticPaths` route.",hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsInvalidRouteParam:{title:"Invalid value for `getStaticPaths` route parameter.",code:3014,message:(t,e,i)=>`Invalid getStaticPaths route parameter for \`${t}\`. Expected undefined, a string or a number, received \`${i}\` (\`${e}\`)`,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsRequired:{title:"`getStaticPaths()` function required for dynamic routes.",code:3015,message:"`getStaticPaths()` function is required for dynamic routes. Make sure that you `export` a `getStaticPaths` function from your dynamic route.",hint:'See https://docs.astro.build/en/core-concepts/routing/#dynamic-routes for more information on dynamic routes.\n\nAlternatively, set `output: "server"` in your Astro config file to switch to a non-static server build. This error can also occur if using `export const prerender = true;`.\nSee https://docs.astro.build/en/guides/server-side-rendering/ for more information on non-static rendering.'},ReservedSlotName:{title:"Invalid slot name.",code:3016,message:t=>`Unable to create a slot named \`${t}\`. \`${t}\` is a reserved slot name. Please update the name of this slot.`},NoAdapterInstalled:{title:"Cannot use Server-side Rendering without an adapter.",code:3017,message:"Cannot use `output: 'server'` or `output: 'hybrid'` without an adapter. Please install and configure the appropriate server adapter for your final deployment.",hint:"See https://docs.astro.build/en/guides/server-side-rendering/ for more information."},NoMatchingImport:{title:"No import found for component.",code:3018,message:t=>`Could not render \`${t}\`. No matching import has been found for \`${t}\`.`,hint:"Please make sure the component is properly imported."},InvalidPrerenderExport:{title:"Invalid prerender export.",code:3019,message:(t,e,i)=>{let n=i?"false":"true",r="A `prerender` export has been detected, but its value cannot be statically analyzed.";return t!=="const"&&(r+=`
Expected \`const\` declaration but got \`${t}\`.`),e!=="true"&&(r+=`
Expected \`${n}\` value but got \`${e}\`.`),r},hint:"Mutable values declared at runtime are not supported. Please make sure to use exactly `export const prerender = true`."},InvalidComponentArgs:{title:"Invalid component arguments.",code:3020,message:t=>`Invalid arguments passed to${t?` <${t}>`:""} component.`,hint:"Astro components cannot be rendered directly via function call, such as `Component()` or `{items.map(Component)}`."},PageNumberParamNotFound:{title:"Page number param not found.",code:3021,message:t=>`[paginate()] page number param \`${t}\` not found in your filepath.`,hint:"Rename your file to `[page].astro` or `[...page].astro`."},ImageMissingAlt:{title:"Missing alt property.",code:3022,message:"The alt property is required.",hint:"The `alt` property is important for the purpose of accessibility, without it users using screen readers or other assistive technologies won't be able to understand what your image is supposed to represent. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-alt for more information."},InvalidImageService:{title:"Error while loading image service.",code:3023,message:"There was an error loading the configured image service. Please see the stack trace for more information."},MissingImageDimension:{title:"Missing image dimensions",code:3024,message:(t,e)=>`Missing ${t==="both"?"width and height attributes":`${t} attribute`} for ${e}. When using remote images, both dimensions are always required in order to avoid CLS.`,hint:"If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets)."},UnsupportedImageFormat:{title:"Unsupported image format",code:3025,message:(t,e,i)=>`Received unsupported format \`${t}\` from \`${e}\`. Currently only ${i.join(", ")} are supported for optimization.`,hint:"If you do not need optimization, using an `img` tag directly instead of the `Image` component might be what you're looking for."},PrerenderDynamicEndpointPathCollide:{title:"Prerendered dynamic endpoint has path collision.",code:3026,message:t=>`Could not render \`${t}\` with an \`undefined\` param as the generated path will collide during prerendering. Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, or add an additional extension to the endpoint's filename.`,hint:t=>`Rename \`${t}\` to \`${t.replace(/\.(js|ts)/,e=>".json"+e)}\``},ExpectedImage:{title:"Expected src to be an image.",code:3027,message:t=>`Expected \`src\` property to be either an ESM imported image or a string with the path of a remote image. Received \`${t}\`.`,hint:"This error can often happen because of a wrong path. Make sure the path to your image is correct."},ExpectedImageOptions:{title:"Expected image options.",code:3028,message:t=>`Expected getImage() parameter to be an object. Received \`${t}\`.`},MarkdownImageNotFound:{title:"Image not found.",code:3029,message:(t,e)=>`Could not find requested image \`${t}\`${e?` at \`${e}\`.`:"."}`,hint:"This is often caused by a typo in the image path. Please make sure the file exists, and is spelled correctly."},ResponseSentError:{title:"Unable to set response.",code:3030,message:"The response has already been sent to the browser and cannot be altered."},MiddlewareNoDataOrNextCalled:{title:"The middleware didn't return a response or call `next`.",code:3031,message:"The middleware needs to either return a `Response` object or call the `next` function."},MiddlewareNotAResponse:{title:"The middleware returned something that is not a `Response` object.",code:3032,message:"Any data returned from middleware must be a valid `Response` object."},LocalsNotAnObject:{title:"Value assigned to `locals` is not accepted.",code:3033,message:"`locals` can only be assigned to an object. Other values like numbers, strings, etc. are not accepted.",hint:"If you tried to remove some information from the `locals` object, try to use `delete` or set the property to `undefined`."},LocalImageUsedWrongly:{title:"ESM imported
See https://astro.build/config for more information.`},UnknownCLIError:{title:"Unknown CLI Error.",code:8e3},GenerateContentTypesError:{title:"Failed to generate content types.",code:8001,message:t=>`\`astro sync\` command failed to generate content collection types: ${t}`,hint:"Check your `src/content/config.*` file for typos."},UnknownContentCollectionError:{title:"Unknown Content Collection Error.",code:9e3},InvalidContentEntryFrontmatterError:{title:"Content entry frontmatter does not match schema.",code:9001,message:(t,e,i)=>[`**${String(t)} \u2192 ${String(e)}** frontmatter does not match collection schema.`,...i.errors.map(n=>n.message)].join(`
`),hint:"See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas."},InvalidContentEntrySlugError:{title:"Invalid content entry slug.",code:9002,message:(t,e)=>`${String(t)} \u2192 ${String(e)} has an invalid slug. \`slug\` must be a string.`,hint:"See https://docs.astro.build/en/guides/content-collections/ for more on the `slug` field."},ContentSchemaContainsSlugError:{title:"Content Schema should not contain `slug`.",code:9003,message:t=>`A content collection schema should not contain \`slug\` since it is reserved for slug generation. Remove this from your ${t} collection schema.`,hint:"See https://docs.astro.build/en/guides/content-collections/ for more on the `slug` field."},CollectionDoesNotExistError:{title:"Collection does not exist",code:9004,message:t=>`The collection **${t}** does not exist. Ensure a collection directory with this name exists.`,hint:"See https://docs.astro.build/en/guides/content-collections/ for more on creating collections."},MixedContentDataCollectionError:{title:"Content and data cannot be in same collection.",code:9005,message:t=>`**${t}** contains a mix of content and data entries. All entries must be of the same type.`,hint:"Store data entries in a new collection separate from your content collection."},ContentCollectionTypeMismatchError:{title:"Collection contains entries of a different type.",code:9006,message:(t,e,i)=>`${t} contains ${e} entries, but is configured as a ${i} collection.`},DataCollectionEntryParseError:{title:"Data collection entry failed to parse.",code:9007,message:(t,e)=>`**${t}** failed to parse: ${e}`,hint:"Ensure your data entry is an object with valid JSON (for `.json` entries) or YAML (for `.yaml` entries)."},UnknownError:{title:"Unknown Error.",code:99999}};S=class extends Error{constructor(e,...i){var n;super(...i),this.type="AstroError";let{code:r,name:a,title:s,message:o,stack:u,location:c,hint:l,frame:p}=e;this.errorCode=r,a&&a!=="Error"?this.name=a:this.name=((n=No(this.errorCode))==null?void 0:n.name)??"UnknownError",this.title=s,o&&(this.message=o),this.stack=u||this.stack,this.loc=c,this.hint=l,this.frame=p}setErrorCode(e){this.errorCode=e}setLocation(e){this.loc=e}setName(e){this.name=e}setMessage(e){this.message=e}setHint(e){this.hint=e}setFrame(e,i){this.frame=Bo(e,i)}static is(e){return e.type==="AstroError"}};Br="2.5.6";Bt=sr,cn=class extends Uint8Array{};Object.defineProperty(cn.prototype,Symbol.toStringTag,{get(){return"HTMLBytes"}});ot=class extends String{get[Symbol.toStringTag](){return"HTMLString"}},N=t=>t instanceof ot?t:typeof t=="string"?new ot(t):t;Mo='(()=>{var l;{let c={0:t=>t,1:t=>JSON.parse(t,o),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(JSON.parse(t,o)),5:t=>new Set(JSON.parse(t,o)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(JSON.parse(t)),9:t=>new Uint16Array(JSON.parse(t)),10:t=>new Uint32Array(JSON.parse(t))},o=(t,s)=>{if(t===""||!Array.isArray(s))return s;let[e,n]=s;return e in c?c[e](n):void 0};customElements.get("astro-island")||customElements.define("astro-island",(l=class extends HTMLElement{constructor(){super(...arguments);this.hydrate=()=>{if(!this.hydrator||this.parentElement&&this.parentElement.closest("astro-island[ssr]"))return;let s=this.querySelectorAll("astro-slot"),e={},n=this.querySelectorAll("template[data-astro-template]");for(let r of n){let i=r.closest(this.tagName);!i||!i.isSameNode(this)||(e[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of s){let i=r.closest(this.tagName);!i||!i.isSameNode(this)||(e[r.getAttribute("name")||"default"]=r.innerHTML)}let a=this.hasAttribute("props")?JSON.parse(this.getAttribute("props"),o):{};this.hydrator(this)(this.Component,a,e,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),window.removeEventListener("astro:hydrate",this.hydrate),window.dispatchEvent(new CustomEvent("astro:hydrate"))}}connectedCallback(){!this.hasAttribute("await-children")||this.firstChild?this.childrenConnectedCallback():new MutationObserver((s,e)=>{e.disconnect(),this.childrenConnectedCallback
<a${re(r,"href")}${re([[a,{active:u}],"astro-EIMMU3LG"],"class:list")}${hi(s)}>
${Ht(t,i.default)}
</a>
</li>`},"/Users/nicola/workspace/nzambello.dev/src/components/HeaderLink.astro"),bc=Ne("https://example.com"),sa=De(async(t,e,i)=>{let n=t.createAstro(bc,e,i);return n.self=sa,Z`${Be(t)}<button id="themeToggle" class="astro-OEMX5LE4">
<svg width="30px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="astro-OEMX5LE4">
<path class="sun astro-OEMX5LE4" fill-rule="evenodd" d="M12 17.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zm0 1.5a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm12-7a.8.8 0 0 1-.8.8h-2.4a.8.8 0 0 1 0-1.6h2.4a.8.8 0 0 1 .8.8zM4 12a.8.8 0 0 1-.8.8H.8a.8.8 0 0 1 0-1.6h2.5a.8.8 0 0 1 .8.8zm16.5-8.5a.8.8 0 0 1 0 1l-1.8 1.8a.8.8 0 0 1-1-1l1.7-1.8a.8.8 0 0 1 1 0zM6.3 17.7a.8.8 0 0 1 0 1l-1.7 1.8a.8.8 0 1 1-1-1l1.7-1.8a.8.8 0 0 1 1 0zM12 0a.8.8 0 0 1 .8.8v2.5a.8.8 0 0 1-1.6 0V.8A.8.8 0 0 1 12 0zm0 20a.8.8 0 0 1 .8.8v2.4a.8.8 0 0 1-1.6 0v-2.4a.8.8 0 0 1 .8-.8zM3.5 3.5a.8.8 0 0 1 1 0l1.8 1.8a.8.8 0 1 1-1 1L3.5 4.6a.8.8 0 0 1 0-1zm14.2 14.2a.8.8 0 0 1 1 0l1.8 1.7a.8.8 0 0 1-1 1l-1.8-1.7a.8.8 0 0 1 0-1z"></path>
<path class="moon astro-OEMX5LE4" fill-rule="evenodd" d="M16.5 6A10.5 10.5 0 0 1 4.7 16.4 8.5 8.5 0 1 0 16.4 4.7l.1 1.3zm-1.7-2a9 9 0 0 1 .2 2 9 9 0 0 1-11 8.8 9.4 9.4 0 0 1-.8-.3c-.4 0-.8.3-.7.7a10 10 0 0 0 .3.8 10 10 0 0 0 9.2 6 10 10 0 0 0 4-19.2 9.7 9.7 0 0 0-.9-.3c-.3-.1-.7.3-.6.7a9 9 0 0 1 .3.8z"></path>
</svg>
</button>`},"/Users/nicola/workspace/nzambello.dev/src/components/ThemeIcon.astro"),Ec=Ne("https://example.com"),oa=De(async(t,e,i)=>{let n=t.createAstro(Ec,e,i);return n.self=oa,Z`${Be(t)}<header class="container astro-3EF6KSR2">
<nav class="astro-3EF6KSR2">
<ul class="astro-3EF6KSR2">
${W(t,"HeaderLink",Ft,{href:"/",class:"astro-3EF6KSR2"},{default:r=>Z`nzambello.dev`})}
</ul>
<ul class="astro-3EF6KSR2">
${W(t,"HeaderLink",Ft,{href:"/blog",class:"astro-3EF6KSR2"},{default:r=>Z`Blog`})}
${W(t,"HeaderLink",Ft,{href:"/about",class:"astro-3EF6KSR2"},{default:r=>Z`About`})}
${W(t,"HeaderLink",Ft,{href:"https://twitter.com/astrodotbuild",target:"_blank",class:"astro-3EF6KSR2"},{default:r=>Z`Twitter`})}
${W(t,"HeaderLink",Ft,{href:"https://github.com/withastro/astro",target:"_blank",class:"astro-3EF6KSR2"},{default:r=>Z`GitHub`})}
<li class="astro-3EF6KSR2">
${W(t,"ThemeIcon",sa,{class:"astro-3EF6KSR2"})}
</li>
</ul>
</nav>
</header>`},"/Users/nicola/workspace/nzambello.dev/src/components/Header.astro"),Cc=Ne("https://example.com"),ua=De(async(t,e,i)=>{let n=t.createAstro(Cc,e,i);n.self=ua;let r=new Date;return Z`${Be(t)}<footer class="astro-SZ7XMLTE">
&copy; ${r.getFullYear()} Nicola Zambello. No rights reserved.
</footer>`},"/Users/nicola/workspace/nzambello.dev/src/components/Footer.astro"),wc=Ne("https://example.com"),Jt=De(async(t,e,i)=>{let n=t.createAstro(wc,e,i);n.self=Jt;let{title:r,description:a,image:s="/placeholder-social.jpg"}=n.props,o=new URL(n.url.pathname,n.site);return Z`<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="application-name" content="nzambello.dev">
<meta name="og:type" content="website">
<meta name="generator"${re(n.generator,"content")}>
<link rel="canonical"${re(o,"href")}>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="format-detection" content="telephone=no">
<title>${r}</title>
<meta name="title"${re(r,"content")}>
<meta name="description"${re(a,"content")}>
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url"${re(n.url,"content")}>
<meta property="twitter:title"${re(r,"content")}>
<meta property="twitter:description"${re(a,"content")}>
<meta property="twitter:image"${re(new URL(s,n.url),"content")}>
${Rr(t)}</head>
<body>
${W(t,"Header",oa,{})}
<main class="container">
${Ht(t,i.default)}
</main>
${W(t,"Footer",ua,{})}
</body></html>`},"/Users/nicola/workspace/nzambello.dev/src/layouts/BaseLayout.astro"),At="My personal website.",_t="Welcome to my website!",Fc=Ne("https://example.com"),ca=De(async(t,e,i)=>{let n=t.createAstro(Fc,e,i);return n.self=ca,Z`${W(t,"BaseLayout",Jt,{title:At,description:_t,class:"astro-ZETDM5MD"},{default:r=>Z`
${Be(r)}<h1 class="astro-ZETDM5MD">Not found!</h1>
`})}`},"/Users/nicola/workspace/nzambello.dev/src/pages/404.astro"),Ac="/Users/nicola/workspace/nzambello.dev/src/pages/404.astro",_c="/404",kc=Object.freeze(Object.defineProperty({__proto__:null,default:ca,file:Ac,url:_c},Symbol.toStringTag,{value:"Module"}))});var da={};it(da,{default:()=>pa,file:()=>Tc,url:()=>Nc});var Fd,_d,Sc,pa,Tc,Nc,fa=z(()=>{"use strict";je();Cn();Fd=q(Ce(),1);he();_d=q(we(),1);Fe();Ae();_e();Sc=Ne("https://example.com"),pa=De(async(t,e,i)=>{let n=t.createAstro(Sc,e,i);return n.self=pa,Z`${W(t,"BaseLayout",Jt,{title:At,description:_t},{default:r=>Z`
${Be(r)}<h1>🧑🚀 Hello, Astronaut!</h1>
<p>
Welcome to the official <a href="https://astro.build/">Astro</a> blog starter template. This template serves as a lightweight,
minimally-styled starting point for anyone looking to build a personal website, blog, or portfolio with Astro.
</p>
<p>
This template comes with a few integrations already configured in your
<code>astro.config.mjs</code> file. You can customize your setup with
<a href="https://astro.build/integrations">Astro Integrations</a> to add tools like Tailwind, React, or Vue to your project.
</p>
<p>Here are a few ideas on how to get started with the template:</p>
<ul>
<li>Edit this page in <code>src/pages/index.astro</code></li>
<li>Edit the site header items in <code>src/components/Header.astro</code></li>
<li>Add your name to the footer in <code>src/components/Footer.astro</code></li>
<li>Check out the included blog posts in <code>src/pages/blog/</code></li>
<li>Customize the blog post page layout in <code>src/layouts/BlogPost.astro</code></li>
</ul>
<p>
Have fun! If you get stuck, remember to <a href="https://docs.astro.build/">read the docs</a> or <a href="https://astro.build/chat">join us on Discord</a> to ask questions.
</p>
<p>
Looking for a blog template with a bit more personality? Check out <a href="https://github.com/Charca/astro-blog-template">astro-blog-template
</a> by <a href="https://twitter.com/Charca">Maxi Ferreira</a>.
</p>
`})}`},"/Users/nicola/workspace/nzambello.dev/src/pages/index.astro"),Tc="/Users/nicola/workspace/nzambello.dev/src/pages/index.astro",Nc=""});var ma={};it(ma,{page:()=>Bc,renderers:()=>qe});var Bd,$d,Bc,ha=z(()=>{"use strict";Gt();je();Bd=q(Ce(),1);he();$d=q(we(),1);Fe();Ae();_e();Bc=()=>Promise.resolve().then(()=>(fa(),da))});var C={};it(C,{BRAND:()=>Ea,DIRTY:()=>yi,EMPTY_PATH:()=>ya,INVALID:()=>E,NEVER:()=>as,OK:()=>G,ParseStatus:()=>H,Schema:()=>w,ZodAny:()=>Ie,ZodArray:()=>ee,ZodBigInt:()=>fe,ZodBoolean:()=>He,ZodBranded:()=>en,ZodCatch:()=>ft,ZodDate:()=>xe,ZodDefault:()=>et,ZodDiscriminatedUnion:()=>pt,ZodEffects:()=>te,ZodEnum:()=>me,ZodError:()=>Q,ZodFirstPartyTypeKind:()=>b,ZodFunction:()=>Re,ZodIntersection:()=>Je,ZodIssueCode:()=>d,ZodLazy:()=>Ye,ZodLiteral:()=>Ke,ZodMap:()=>dt,ZodNaN:()=>mt,ZodNativeEnum:()=>Qe,ZodNever:()=>pe,ZodNull:()=>We,ZodNullable:()=>ye,ZodNumber:()=>de,ZodObject:()=>P,ZodOptional:()=>ce,ZodParsedType:()=>h,ZodPipeline:()=>tt,ZodPromise:()=>Pe,ZodRecord:()=>Xe,ZodSchema:()=>w,ZodSet:()=>ve,ZodString:()=>K,ZodSymbol:()=>ct,ZodTransformer:()=>te,ZodTuple:()=>ae,ZodType:()=>w,ZodUndefined:()=>Ze,ZodUnion:()=>Ge,ZodUnknown:()=>ge,ZodVoid:()=>lt,addIssueToContext:()=>D,any:()=>Na,array:()=>Ra,bigint:()=>Aa,boolean:()=>wi,coerce:()=>rs,custom:()=>bi,date:()=>_a,default:()=>qc,defaultErrorMap:()=>St,discriminatedUnion:()=>Ma,effect:()=>vi,enum:()=>Ga,function:()=>Ha,getErrorMap:()=>Xt,getParsedType:()=>$e,instanceof:()=>wa,intersection:()=>La,isAborted:()=>An,isAsync:()=>Qt,isDirty:()=>_n,isValid:()=>Kt,late:()=>Ca,lazy:()=>Za,literal:()=>Wa,makeIssue:()=>Yt,map:()=>Va,nan:()=>Fa,nativeEnum:()=>Ja,never:()=>ja,null:()=>Ta,nullable:()=>Ka,number:()=>Ci,object:()=>Ia,objectUtil:()=>Fn,oboolean:()=>is,onumber:()=>ns,optional:()=>Ya,ostring:()=>ts,pipeline:()=>es,preprocess:()=>Qa,promise:()=>Xa,quotelessJson:()=>ga,record:()=>Ua,set:()=>qa,setErrorMap:()=>va,strictObject:()=>Pa,string:()=>Ei,symbol:()=>ka,transformer:()=>vi,tuple:()=>za,undefined:()=>Sa,union:()=>Oa,unknown:()=>Ba,util:()=>B,void:()=>$a,z:()=>qc});function va(t){xa=t}function Xt(){return xa}function D(t,e){let i=Yt({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Xt(),St].filter(n=>!!n)});t.common.issues.push(i)}function F(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:r}=t;if(e&&(i||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:r}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:i??o.defaultError},description:r}}function Uc(t,e){return!!((e==="v4"||!e)&&Mc.test(t)||(e==="v6"||!e)&&Lc.test(t))}function Vc(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,r=i>n?i:n,a=parseInt(t.toFixed(r).replace(".","")),s=parseInt(e.toFixed(r).replace(".",""));return a%s/Math.pow(10,r)}function kt(t){if(t instanceof P){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=ce.create(kt(n))}return new P({...t._def,shape:()=>e})}else return t instanceof ee?new ee({...t._def,type:kt(t.element)}):t instanceof ce?ce.create(kt(t.unwrap())):t instanceof ye?ye.create(kt(t.unwrap())):t instanceof ae?ae.create(t.items.map(e=>kt(e))):t}function xi(t,e){let i=$e(t),n=$e(e);if(t===e)return{valid:!0,data:t};if(i===h.object&&n===h.object){let r=B.objectKeys(e),a=B.objectKeys(t).filter(o=>r.indexOf(o)!==-1),s={...t,...e};for(let o of a){let u=xi(t[o],e[o]);if(!u.valid)return{valid:!1};s[o]=u.data}return{valid:!0,data:s}}else if(i===h.array&&n===h.array){if(t.length!==e.length)return{valid:!1};let r=[];for(let a=0;a<t.length;a++){let s=t[a],o=e[a],u=xi(s,o);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return i===h.date&&n===h.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function ba(t,e){return new me({values:t,typeName:b.ZodEnum,...F(e)})}var B,Fn,h,$e,d,ga,Q,St,xa,Yt,ya,H,E,yi,G,An,_n,Kt,Qt,y,le,Da,w,jc,$c,Rc,Ic,Pc,Oc,Mc,Lc,zc,K,de,fe,He,xe,ct,Ze,W
`&&t[a]!=="\r";a++)u+=t[a];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),a--),!il(u)){let p;return u.trim().length===0?p="Invalid space after '<'.":p="Tag '"+u+"' is an invalid name.",U("InvalidTag",p,ne(t,a))}let c=Kc(t,a);if(c===!1)return U("InvalidAttr","Attributes for '"+u+"' have open quote.",ne(t,a));let l=c.value;if(a=c.index,l[l.length-1]==="/"){let p=a-l.length;l=l.substring(0,l.length-1);let f=ds(l,e);if(f===!0)n=!0;else return U(f.err.code,f.err.msg,ne(t,p+f.err.line))}else if(o)if(c.tagClosed){if(l.trim().length>0)return U("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",ne(t,s));{let p=i.pop();if(u!==p.tagName){let f=ne(t,p.tagStartPos);return U("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+u+"'.",ne(t,s))}i.length==0&&(r=!0)}}else return U("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",ne(t,a));else{let p=ds(l,e);if(p!==!0)return U(p.err.code,p.err.msg,ne(t,a-l.length+p.err.line));if(r===!0)return U("InvalidXml","Multiple possible root nodes found.",ne(t,a));e.unpairedTags.indexOf(u)!==-1||i.push({tagName:u,tagStartPos:s}),n=!0}for(a++;a<t.length;a++)if(t[a]==="<")if(t[a+1]==="!"){a++,a=ps(t,a);continue}else if(t[a+1]==="?"){if(a=ls(t,++a),a.err)return a}else break;else if(t[a]==="&"){let p=tl(t,a);if(p==-1)return U("InvalidChar","char '&' is not expected.",ne(t,a));a=p}else if(r===!0&&!cs(t[a]))return U("InvalidXml","Extra text at the end",ne(t,a));t[a]==="<"&&a--}}else{if(cs(t[a]))continue;return U("InvalidChar","char '"+t[a]+"' is not expected.",ne(t,a))}if(n){if(i.length==1)return U("InvalidTag","Unclosed tag '"+i[0].tagName+"'.",ne(t,i[0].tagStartPos));if(i.length>0)return U("InvalidXml","Invalid '"+JSON.stringify(i.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return U("InvalidXml","Start tag expected.",1);return!0};function cs(t){return t===" "||t===" "||t===`
`||t==="\r"}function ls(t,e){let i=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(i,e-i);if(e>5&&n==="xml")return U("InvalidXml","XML declaration allowed only at the start of the document.",ne(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function ps(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let i=1;for(e+=8;e<t.length;e++)if(t[e]==="<")i++;else if(t[e]===">"&&(i--,i===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Xc='"',Yc="'";function Kc(t,e){let i="",n="",r=!1;for(;e<t.length;e++){if(t[e]===Xc||t[e]===Yc)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){r=!0;break}i+=t[e]}return n!==""?!1:{value:i,index:e,tagClosed:r}}var Qc=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ds(t,e){let i=_i.getAllMatches(t,Qc),n={};for(let r=0;r<i.length;r++){if(i[r][1].length===0)return U("InvalidAttr","Attribute '"+i[r][2]+"' has no space in starting.",tn(i[r]));if(i[r][3]!==void 0&&i[r][4]===void 0)return U("InvalidAttr","Attribute '"+i[r][2]+"' is without value.",tn(i[r]));if(i[r][3]===void 0&&!e.allowBooleanAttributes)return U("InvalidAttr","boolean attribute '"+i[r][2]+"' is not allowed.",tn(i[r]));let a=i[r][2];if(!nl(a))return U("InvalidAttr","Attribute '"+a+"' is an invalid name.",tn(i[r]));if(!n.hasOwnProperty(a))n[a]=1;else return U("InvalidAttr","Attribute '"+a+"' is repeated.",tn(i[r]))}return!0}function el(t,e){let i=/\d/;for(t[e]==="x"&&(e++,i=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(i))break}return-1}function tl(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,el(t,e);let i=0;for(;e<t.length;e++,i++)if(!(t[e].match(/\w/)&&i<20)){if(t[e]===";")break;return-1}return e}function U(t,e,i){return{err:{code:t,msg:e,line:i.line||i,col:i.col}}}function nl(t){return _i.isName(t)}function il(t){return _i.isName(t)}function ne(t,e){let i=t.substring(0,e).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function tn(t){return t.startIndex+t[1].length}});var hs=V(Si=>{var ms={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,i){return t}},rl=function(t){return Object.assign({},ms,t)};Si.buildOptions=rl;Si.defaultOptions=ms});var gs=V((Vd,Ds)=>{"use strict";var Ti=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,i){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:i})}addChild(e){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]}):this.child.push({[e.tagname]:e.child})}};Ds.exports=Ti});var vs=V((qd,xs)=>{function al(t,e){let i={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,r=!1,a=!1,s="";for(;e<t.length;e++)if(t[e]==="<"&&!a){if(r&&ul(t,e))e+=7,[entityName,val,e]=sl(t,e+1),val.indexOf("&")===-1&&(i[entityName]={regx:RegExp(`&${entityName};`,"g"),val});else if(r&&cl(t,e))e+=8;else if(r&&ll(t,e))e+=8;else if(r&&pl(t,e))e+=9;else if(ol)a=!0;else throw new Error("Invalid DOCTYPE");n++,s=""}else if(t[e]===">"){if(a?t[e-1]==="-"&&t[e-2]==="-"&&(a=!1,n--):n--,n===0)break}else t[e]==="["?r=!0:s+=t[e];if(n!==0)throw new Error("Unclosed D
`);let e=new nn("!xml"),i=e,n="",r="";for(let a=0;a<t.length;a++)if(t[a]==="<")if(t[a+1]==="/"){let o=ht(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,o).trim();if(this.options.removeNSPrefix){let p=u.indexOf(":");p!==-1&&(u=u.substr(p+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),i&&(n=this.saveTextToParentTag(n,i,r));let c=r.substring(r.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);let l=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(l=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=r.lastIndexOf("."),r=r.substring(0,l),i=this.tagsNodeStack.pop(),n="",a=o}else if(t[a+1]==="?"){let o=Bi(t,a,!1,"?>");if(!o)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,i,r),!(this.options.ignoreDeclaration&&o.tagName==="?xml"||this.options.ignorePiTags)){let u=new nn(o.tagName);u.add(this.options.textNodeName,""),o.tagName!==o.tagExp&&o.attrExpPresent&&(u[":@"]=this.buildAttributesMap(o.tagExp,r,o.tagName)),this.addChild(i,u,r)}a=o.closeIndex+1}else if(t.substr(a+1,3)==="!--"){let o=ht(t,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){let u=t.substring(a+4,o-2);n=this.saveTextToParentTag(n,i,r),i.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}a=o}else if(t.substr(a+1,2)==="!D"){let o=gl(t,a);this.docTypeEntities=o.entities,a=o.i}else if(t.substr(a+1,2)==="!["){let o=ht(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,o);if(n=this.saveTextToParentTag(n,i,r),this.options.cdataPropName)i.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let c=this.parseTextData(u,i.tagname,r,!0,!1,!0);c==null&&(c=""),i.add(this.options.textNodeName,c)}a=o+2}else{let o=Bi(t,a,this.options.removeNSPrefix),u=o.tagName,c=o.tagExp,l=o.attrExpPresent,p=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),i&&n&&i.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,i,r,!1));let f=i;if(f&&this.options.unpairedTags.indexOf(f.tagname)!==-1&&(i=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),u!==e.tagname&&(r+=r?"."+u:u),this.isItStopNode(this.options.stopNodes,r,u)){let x="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)a=o.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)a=o.closeIndex;else{let _=this.readStopNodeData(t,u,p+1);if(!_)throw new Error(`Unexpected end of ${u}`);a=_.i,x=_.tagContent}let g=new nn(u);u!==c&&l&&(g[":@"]=this.buildAttributesMap(c,r,u)),x&&(x=this.parseTextData(x,u,r,!0,l,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),g.add(this.options.textNodeName,x),this.addChild(i,g,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),c=u):c=c.substr(0,c.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let x=new nn(u);u!==c&&l&&(x[":@"]=this.buildAttributesMap(c,r,u)),this.addChild(i,x,r),r=r.substr(0,r.lastIndexOf("."))}else{let x=new nn(u);this.tagsNodeStack.push(i),u!==c&&l&&(x[":@"]=this.buildAttributesMap(c,r,u)),this.addChild(i,x,r),i=x}n="",a=p}}else n+=t[a];return e.child};function Fl(t,e,i){let n=this.options.updateTag(e.tagname,i,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e))}var Al=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let i=this.docTypeEntities[e];t=t.replace(i.regx,i.val)}for(let e in this.lastEntities){let i=this.lastEntities[e];t=t.replace(i.regex,i.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let i=this.htmlEntities[e];t=t.replace(i.regex,i.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function _l(t,e,i,n){return t&&(n===void 0&&(n=Object.keys(e.child).length===0),t=this.parseTextData(t,e.tagname,i,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function kl(t,e,i){let n="*."+i;for(let r in t){let a=t[r];if(n===a||e===a)return!0}return!1}function Sl(t,e,i=">"){let n,r="";for(let a=e;a<t.length;a++){let s=t[a];if(n
`;function Ll(t,e){let i="";return e.format&&e.indentBy.length>0&&(i=Ml),Ts(t,e,"",i)}function Ts(t,e,i,n){let r="",a=!1;for(let s=0;s<t.length;s++){let o=t[s],u=zl(o),c="";if(i.length===0?c=u:c=`${i}.${u}`,u===e.textNodeName){let g=o[u];Ul(c,e)||(g=e.tagValueProcessor(u,g),g=Ns(g,e)),a&&(r+=n),r+=g,a=!1;continue}else if(u===e.cdataPropName){a&&(r+=n),r+=`<![CDATA[${o[u][0][e.textNodeName]}]]>`,a=!1;continue}else if(u===e.commentPropName){r+=n+`<!--${o[u][0][e.textNodeName]}-->`,a=!0;continue}else if(u[0]==="?"){let g=Ss(o[":@"],e),_=u==="?xml"?"":n,A=o[u][0][e.textNodeName];A=A.length!==0?" "+A:"",r+=_+`<${u}${A}${g}?>`,a=!0;continue}let l=n;l!==""&&(l+=e.indentBy);let p=Ss(o[":@"],e),f=n+`<${u}${p}`,x=Ts(o[u],e,c,l);e.unpairedTags.indexOf(u)!==-1?e.suppressUnpairedNode?r+=f+">":r+=f+"/>":(!x||x.length===0)&&e.suppressEmptyNode?r+=f+"/>":x&&x.endsWith(">")?r+=f+`>${x}${n}</${u}>`:(r+=f+">",x&&n!==""&&(x.includes("/>")||x.includes("</"))?r+=n+e.indentBy+x+n:r+=x,r+=`</${u}>`),a=!0}return r}function zl(t){let e=Object.keys(t);for(let i=0;i<e.length;i++){let n=e[i];if(n!==":@")return n}}function Ss(t,e){let i="";if(t&&!e.ignoreAttributes)for(let n in t){let r=e.attributeValueProcessor(n,t[n]);r=Ns(r,e),r===!0&&e.suppressBooleanAttributes?i+=` ${n.substr(e.attributeNamePrefix.length)}`:i+=` ${n.substr(e.attributeNamePrefix.length)}="${r}"`}return i}function Ul(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let i=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+i)return!0;return!1}function Ns(t,e){if(t&&t.length>0&&e.processEntities)for(let i=0;i<e.entities.length;i++){let n=e.entities[i];t=t.replace(n.regex,n.val)}return t}Bs.exports=Ll});var Rs=V((Yd,$s)=>{"use strict";var Vl=js(),ql={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function nt(t){this.options=Object.assign({},ql,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Wl),this.processTextOrObjNode=Hl,this.options.format?(this.indentate=Zl,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nt.prototype.build=function(t){return this.options.preserveOrder?Vl(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)};nt.prototype.j2x=function(t,e){let i="",n="";for(let r in t)if(!(typeof t[r]>"u"))if(t[r]===null)r[0]==="?"?n+=this.indentate(e)+"<"+r+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+r+"/"+this.tagEndChar;else if(t[r]instanceof Date)n+=this.buildTextValNode(t[r],r,"",e);else if(typeof t[r]!="object"){let a=this.isAttribute(r);if(a)i+=this.buildAttrPairStr(a,""+t[r]);else if(r===this.options.textNodeName){let s=this.options.tagValueProcessor(r,""+t[r]);n+=this.replaceEntitiesValue(s)}else n+=this.buildTextValNode(t[r],r,"",e)}else if(Array.isArray(t[r])){let a=t[r].length,s="";for(let o=0;o<a;o++){let u=t[r][o];typeof u>"u"||(u===null?r[0]==="?"?n+=this.indentate(e)+"<"+r+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+r+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?s+=this.j2x(u,e+1).val:s+=this.processTextOrObjNode(u,r,e):s+=this.buildTextValNode(u,r,"",e))}this.options.oneListGroup&&(s=this.buildObjectNode(s,r,"",e)),n+=s}else if(this.options.attributesGroupName&&r===this.options.attributesGroupName){let a=Object.keys(t[r]),s=a.length;for(let o=0;o<s;o++)i+=this.buildAttrPairStr(a[o],""+t[r][a[o]])}else n+=this.processTextOrObjNode(t[r],r,e);return{attrStr:i,val:n}};nt.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Hl(t,e,i){let n=this.j2x(t,i+1);return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,i):this.buildObjectNode(n.val,e,n.attrStr,i)}nt.prototype.buildObjectNode=function(t,e,i,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+i+"?"+this.tagEndChar:this.indentate(n)+"<"+e+i+this.closeTag(e)+this.tagEndChar;{let r="</"+e+this.tagEndChar,a="";return e[0]==="?"&&(a="?",r=""),i&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+i+a+">"+t+r:this.options.commentPropName!==!1&&e===this.options.commentPropName&&a.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+i+a+this.tagEndChar+t+this.indentate(n)+r}};nt.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nt.prototype.buildTextValNode=function(t,e,i,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+i+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(e,t);return r=this.replaceEntitiesValue(r),r===""?this.indentate(n)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+i+">"+r+"</"+e+this.tagEndChar}};nt.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t};function Zl(t){return this.options.indentBy.repeat(t)}function Wl(t){return t.startsWith(this.options.attributeNamePrefix)?t.substr(this.attrPrefixLen):!1}$s.exports=nt});var Ps=V((Kd,Is)=>{"use strict";var Gl=ki(),Jl=ks(),Xl=Rs();Is.exports={XMLParser:Jl,XMLValidator:Gl,XMLBuilder:Xl}});var Os,Ms=z(()=>{Fi();Os=C.object({title:C.string(),pubDate:C.union([C.string(),C.number(),C.date()]).transform(t=>new Date(t)).refine(t=>!isNaN(t.getTime())),description:C.string().optional(),customData:C.string().optional(),draft:C.boolean().optional(),categories:C.array(C.string()).optional(),author:C.string().optional(),commentsUrl:C.string().optional(),source:C.object({url:C.string().url(),title:C.string()})
`))}function np(t){return Promise.all(Object.entries(t).map(async([e,i])=>{let{url:n,frontmatter:r}=await i();if(n==null)throw new Error("[RSS] You can only glob entries within 'src/pages/' when passing import.meta.glob() directly. Consider mapping the result to an array of RSSFeedItems. See the RSS docs for usage examples: https://docs.astro.build/en/guides/rss/#2-list-of-rss-feed-objects");let a=zs.safeParse({...r,link:n},{errorMap:Ii});if(a.success)return a.data;let s=new Error([`[RSS] ${e} has invalid or missing frontmatter.
Fix the following properties:`,...a.error.errors.map(o=>o.message)].join(`
`));throw s.file=e,s}))}async function ip(t){var e;let{site:i}=t,n=t.drafts?t.items:t.items.filter(o=>!o.draft),r={ignoreAttributes:!1,suppressEmptyNode:!0,suppressBooleanAttributes:!1},a=new Sn.XMLParser(r),s={"?xml":{"@_version":"1.0","@_encoding":"UTF-8"}};if(typeof t.stylesheet=="string"){let o=/\.xsl$/i.test(t.stylesheet);s["?xml-stylesheet"]={"@_href":t.stylesheet,...o&&{"@_type":"text/xsl"}}}if(s.rss={"@_version":"2.0"},n.find(o=>o.content)){let o="http://purl.org/rss/1.0/modules/content/";s.rss["@_xmlns:content"]=o,(e=t.xmlns)!=null&&e.content&&t.xmlns.content===o&&delete t.xmlns.content}if(t.xmlns)for(let[o,u]of Object.entries(t.xmlns))s.rss[`@_xmlns:${o}`]=u;return s.rss.channel={title:t.title,description:t.description,link:rn(i,t.trailingSlash,void 0).href},typeof t.customData=="string"&&Object.assign(s.rss.channel,a.parse(`<channel>${t.customData}</channel>`).channel),s.rss.channel.item=n.map(o=>{let u=kn(o.link)?o.link:rn(o.link,t.trailingSlash,i).href,c={title:o.title,link:u,guid:{"#text":u,"@_isPermaLink":"true"}};if(o.description&&(c.description=o.description),o.pubDate&&(c.pubDate=o.pubDate.toUTCString()),typeof o.content=="string"&&(c["content:encoded"]=o.content),typeof o.customData=="string"&&Object.assign(c,a.parse(`<item>${o.customData}</item>`).item),Array.isArray(o.categories)&&(c.category=o.categories),typeof o.author=="string"&&(c.author=o.author),typeof o.commentsUrl=="string"&&(c.comments=kn(o.commentsUrl)?o.commentsUrl:rn(o.commentsUrl,t.trailingSlash,i).href),o.source&&(c.source=a.parse(`<source url="${o.source.url}">${o.source.title}</source>`).source),o.enclosure){let l=kn(o.enclosure.url)?o.enclosure.url:rn(o.enclosure.url,t.trailingSlash,i).href;c.enclosure=a.parse(`<enclosure url="${l}" length="${o.enclosure.length}" type="${o.enclosure.type}"/>`).enclosure}return c}),new Sn.XMLBuilder(r).build(s)}var Sn,zs,Ql,ep,Vs=z(()=>{Fi();Sn=q(Ps(),1);he();Ms();Ls();zs=Os.extend({link:C.string(),content:C.string().optional()}),Ql=C.record(C.function().returns(C.promise(C.any()))),ep=C.object({title:C.string(),description:C.string(),site:C.preprocess(t=>t instanceof URL?t.href:t,C.string().url()),items:C.array(zs).or(Ql).transform(t=>Array.isArray(t)?t:(console.warn(Tt("[RSS] Passing a glob result directly has been deprecated. Please migrate to the `pagesGlobToRssItems()` helper: https://docs.astro.build/en/guides/rss/")),np(t))),xmlns:C.record(C.string()).optional(),drafts:C.boolean().default(!1),stylesheet:C.union([C.string(),C.boolean()]).optional(),customData:C.string().optional(),trailingSlash:C.boolean().default(!0)})});var Ws={};it(Ws,{get:()=>lp});function sp(t){return async(e,i)=>{let n=Zs[e]?.entries[i];if(n)return t[e][n]}}async function lp(t){let e=await cp("blog");return Us({title:At,description:_t,site:t.site,items:e.map(i=>({...i.data,link:`/blog/${i.slug}/`}))})}var pf,ff,Tn,qs,rp,Hs,ap,Zs,op,up,cp,Gs=z(()=>{"use strict";Vs();je();Cn();pf=q(Ce(),1);he();ff=q(we(),1);Fe();Ae();_e();Tn="/src/content/",qs=Object.assign({}),rp=Wt({globResult:qs,contentDir:Tn}),Hs=Object.assign({}),ap=Wt({globResult:Hs,contentDir:Tn});Wt({globResult:{...qs,...Hs},contentDir:Tn});Zs={};Zs={};op=Object.assign({}),up=Wt({globResult:op,contentDir:Tn}),cp=aa({contentCollectionToEntryMap:rp,dataCollectionToEntryMap:ap,getRenderEntryImport:sp(up)})});var Js={};it(Js,{page:()=>pp,renderers:()=>qe});var xf,yf,pp,Xs=z(()=>{"use strict";Gt();je();xf=q(Ce(),1);he();yf=q(we(),1);Fe();Ae();_e();pp=()=>Promise.resolve().then(()=>(Gs(),Ws))});var Ys={};it(Ys,{page:()=>dp,renderers:()=>qe});var Af,kf,dp,Ks=z(()=>{"use strict";Gt();je();Af=q(Ce(),1);he();kf=q(we(),1);Fe();Ae();_e();dp=()=>Promise.resolve().then(()=>(Cn(),la)).then(t=>t._)});je();Gt();var Rf=q(we(),1),If=q(Ce(),1);he();Ae();Fe();_e();var fp=typeof process=="object"&&Object.prototype.toString.call(process)==="[object process]";function mp(){return new Proxy({},{get:(t,e)=>{console.warn(`Unable to access \`import.meta\0.env.${e.toString()}\` on initialization as the Cloudflare platform only provides the environment variables per request. Please move the env
2023-05-31 10:32:52 +02:00
`}],styles:[{type:"external",src:"/_astro/404.aac2b78d.css"}],routeData:{route:"/",type:"page",pattern:"^\\/$",segments:[],params:[],component:"src/pages/index.astro",pathname:"/",prerender:!1,_meta:{trailingSlash:"ignore"}}},{file:"",links:[],scripts:[],styles:[],routeData:{route:"/rss.xml",type:"endpoint",pattern:"^\\/rss\\.xml$",segments:[[{content:"rss.xml",dynamic:!1,spread:!1}]],params:[],component:"src/pages/rss.xml.js",pathname:"/rss.xml",prerender:!1,_meta:{trailingSlash:"ignore"}}},{file:"",links:[],scripts:[{type:"inline",value:`const t=(()=>typeof localStorage<"u"&&localStorage.getItem("theme")?localStorage.getItem("theme"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")();t==="light"?document.documentElement.setAttribute("data-theme","light"):document.documentElement.setAttribute("data-theme","dark");window.localStorage.setItem("theme",t||"dark");const m=()=>{const e=document.documentElement.getAttribute("data-theme")==="light"?"dark":"light";document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)};document.getElementById("themeToggle")?.addEventListener("click",m);
2023-05-31 10:36:20 +02:00
`}],styles:[{type:"external",src:"/_astro/404.aac2b78d.css"},{type:"external",src:"/_astro/404.48722ea1.css"}],routeData:{route:"/404",type:"page",pattern:"^\\/404\\/?$",segments:[[{content:"404",dynamic:!1,spread:!1}]],params:[],component:"src/pages/404.astro",pathname:"/404",prerender:!1,_meta:{trailingSlash:"ignore"}}}],site:"https://example.com",base:"/",markdown:{drafts:!1,syntaxHighlight:"shiki",shikiConfig:{langs:[],theme:"github-dark",wrap:!1},remarkPlugins:[],rehypePlugins:[],remarkRehype:{},gfm:!0,smartypants:!0},pageMap:null,componentMetadata:[["/Users/nicola/workspace/nzambello.dev/src/pages/404.astro",{propagation:"none",containsHead:!0}],["/Users/nicola/workspace/nzambello.dev/src/pages/index.astro",{propagation:"none",containsHead:!0}],["\0astro:content",{propagation:"in-tree",containsHead:!1}],["/Users/nicola/workspace/nzambello.dev/src/pages/rss.xml.js",{propagation:"in-tree",containsHead:!1}],["\0@astro-page:src/pages/rss.xml@_@js",{propagation:"in-tree",containsHead:!1}],["\0@astrojs-ssr-virtual-entry",{propagation:"in-tree",containsHead:!1}]],renderers:[],clientDirectives:[["idle",'(()=>{var i=t=>{let e=async()=>{await(await t())()};"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event("astro:idle"));})();'],["load",'(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();'],["media",'(()=>{var s=(i,t)=>{let a=async()=>{await(await i())()};if(t.value){let e=matchMedia(t.value);e.matches?a():e.addEventListener("change",a,{once:!0})}};(self.Astro||(self.Astro={})).media=s;window.dispatchEvent(new Event("astro:media"));})();'],["only",'(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();'],["visible",'(()=>{var r=(s,c,i)=>{let o=async()=>{await(await s())()},n=new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){n.disconnect(),o();break}});for(let e=0;e<i.children.length;e++){let t=i.children[e];n.observe(t)}};(self.Astro||(self.Astro={})).visible=r;window.dispatchEvent(new Event("astro:visible"));})();']],entryModules:{"\0@astrojs-ssr-virtual-entry":"_@astrojs-ssr-virtual-entry.mjs","\0@astro-renderers":"renderers.mjs","/src/pages/index.astro":"chunks/pages/index.astro.75709aca.mjs","/src/pages/rss.xml.js":"chunks/pages/rss.xml.js.1b504c56.mjs","\0@astro-page:src/pages/index@_@astro":"chunks/index@_@astro.41851f77.mjs","\0@astro-page:src/pages/rss.xml@_@js":"chunks/rss.362004a2.mjs","\0@astro-page:src/pages/404@_@astro":"chunks/404@_@astro.904ce62e.mjs","/astro/hoisted.js?q=0":"_astro/hoisted.d2cd76b1.js","astro:scripts/before-hydration.js":""},assets:["/_astro/404.48722ea1.css","/_astro/404.aac2b78d.css","/favicon.svg","/placeholder-about.jpg","/placeholder-hero.jpg","/placeholder-social.jpg","/$server_build/renderers.mjs","/$server_build/_astro/404.48722ea1.css","/$server_build/_astro/404.aac2b78d.css","/$server_build/chunks/404@_@astro.904ce62e.mjs","/$server_build/chunks/astro.cb607c45.mjs","/$server_build/chunks/index@_@astro.41851f77.mjs","/$server_build/chunks/rss.362004a2.mjs","/$server_build/chunks/pages/404.astro.3674b8b1.mjs","/$server_build/chunks/pages/index.astro.75709aca.mjs","/$server_build/chunks/pages/rss.xml.js.1b504c56.mjs"]}),{pageMap:xp,renderers:qe,undefined:void 0}),vp=void 0,yp=to(no),zf=yp.onRequest,eo="start";eo in Qs&&Qs[eo](no,vp);export{zf as onRequest,xp as pageMap};
2023-05-31 10:17:30 +02:00
/**
* shortdash - https://github.com/bibig/node-shorthash
*
* @license
*
* (The MIT License)
*
* Copyright (c) 2013 Bibig <bibig@me.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/*! Bundled license information:
cookie/index.js:
(*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/