(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))l(t);new MutationObserver(t=>{for(const e of t)if(e.type==="childList")for(const r of e.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function i(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?e.credentials="include":t.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function l(t){if(t.ep)return;t.ep=!0;const e=i(t);fetch(t.href,e)}})();const p="modulepreload",h=function(c){return"https://www.ikea.com/mx/es/local-modules/ikano-sitewide-banner/"+c},a={},y=function(o,i,l){let t=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),r=(e==null?void 0:e.nonce)||(e==null?void 0:e.getAttribute("nonce"));t=Promise.all(i.map(n=>{if(n=h(n),n in a)return;a[n]=!0;const u=n.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${d}`))return;const s=document.createElement("link");if(s.rel=u?"stylesheet":p,u||(s.as="script",s.crossOrigin=""),s.href=n,r&&s.setAttribute("nonce",r),document.head.appendChild(s),u)return new Promise((f,m)=>{s.addEventListener("load",f),s.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${n}`)))})}))}return t.then(()=>o()).catch(e=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=e,window.dispatchEvent(r),!r.defaultPrevented)throw e})},w=(c,o)=>{if(window.ikea.cookieConsent.hasConsent(c))o();else{const i=window.ikea.pubsub.subscribe("cookieConsent",l=>{l[c]&&(i.unsubscribe(),o())})}};w(2,()=>y(()=>import("./app-tHB9vl1q.js"),[]));