const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/inject-Szx_wJN0.js","bundle.css"])))=>i.map(i=>d[i]); const h="modulepreload",E=function(s){return"https://cdn.aimlapi.com/assets/snippets/"+s},l={},v=function(u,i,y){let c=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),t=(e==null?void 0:e.nonce)||(e==null?void 0:e.getAttribute("nonce"));c=Promise.allSettled(i.map(n=>{if(n=E(n),n in l)return;l[n]=!0;const o=n.endsWith(".css"),m=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="proxy.php?url=https%3A%2F%2Fcdn.aimlapi.com%2F%24%7Bn%7D"]${m}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":h,o||(r.as="script"),r.crossOrigin="",r.href=n,t&&r.setAttribute("nonce",t),document.head.appendChild(r),o)return new Promise((f,p)=>{r.addEventListener("load",f),r.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${n}`)))})}))}function a(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return c.then(e=>{for(const t of e||[])t.status==="rejected"&&a(t.reason);return u().catch(a)})},d=async()=>{(await v(()=>import("./assets/inject-Szx_wJN0.js"),__vite__mapDeps([0,1]))).inject()};["complete","loaded","interactive"].includes(document.readyState)?d():document.addEventListener("DOMContentLoaded",()=>d());export{v as _};