const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-DdRJODKl.js","assets/main-U6rWkXzo.css"])))=>i.map(i=>d[i]);
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const g="modulepreload",y=function(t){return"/"+t},m={},O=function(e,n,l){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=y(c),c in m)return;m[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const a=document.createElement("link");if(a.rel=u?"stylesheet":g,u||(a.as="script"),a.crossOrigin="",a.href=c,i&&a.setAttribute("nonce",i),document.head.appendChild(a),u)return new Promise((_,p)=>{a.addEventListener("load",_),a.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return e().catch(s)})},w=window.__OBOHR_CONFIG__||{},E=w.apiUrl||"http://127.0.0.1:8000",d=t=>{try{fetch(E+"/ui/heartbeat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:"error",details:t})}).catch(function(){})}catch{}},f=t=>{try{var e=document.querySelector("#fallback .card");if(!e)return;var n=document.createElement("p");n.className="muted",n.textContent="Erreur: "+t,e.appendChild(n)}catch{}},P=t=>new Promise((e,n)=>setTimeout(()=>n(new Error("timeout")),t));async function v(){try{const t=await Promise.race([fetch("/src/main.tsx",{cache:"no-store"}),P(3e3)]);if(!t||!t.ok){const e={stage:"module_fetch_failed",status:t&&t.status,statusText:t&&t.statusText};return window.__OBOHR_BOOT_FAILED=!0,d(e),f("module_fetch_failed "+(e.status||"")),!1}return!0}catch(t){const e={stage:"module_fetch_failed",message:t&&t.message?t.message:String(t)};return window.__OBOHR_BOOT_FAILED=!0,d(e),f(e.message||"module_fetch_failed"),!1}}(async()=>await v()&&O(()=>import("./main-DdRJODKl.js").then(e=>e.m),__vite__mapDeps([0,1])).catch(e=>{const n={stage:"module_import_failed",message:e&&e.message?e.message:String(e)};window.__OBOHR_BOOT_FAILED=!0,d(n),f(n.message||"module_import_failed")}))();export{O as _};
