stat_ui / build /_app /immutable /chunks /CJtLV7Ma.js
Hanzo03's picture
initial
1f19ef0
raw
history blame
2 kB
import{o as P,p as E,q as T,E as w,C as L,H as R,D as C,F as I,G as b,I as $,x as S,J as q,U as x,K as D,L as F,M as U,A as j}from"./DxfgYVy1.js";function B(_,d,h=!1){E&&T();var o=_,l=null,i=null,t=x,s=h?w:0,u=!1;const m=(n,r=!0)=>{u=!0,c(r,n)};var e=null;function a(){e!==null&&(e.lastChild.remove(),o.before(e),e=null);var n=t?l:i,r=t?i:l;n&&F(n),r&&U(r,()=>{t?i=null:l=null})}const c=(n,r)=>{if(t===(t=n))return;let f=!1;if(E){const N=L(o)===R;!!t===N&&(o=C(),I(o),b(!1),f=!0)}var y=D(),v=o;if(y&&(e=document.createDocumentFragment(),e.append(v=$())),t?l??=r&&S(()=>r(v)):i??=r&&S(()=>r(v)),y){var p=q,g=t?l:i,k=t?i:l;g&&p.skipped_effects.delete(g),k&&p.skipped_effects.add(k),p.add_callback(a)}else a();f&&b(!0)};P(()=>{u=!1,d(m),u||c(null,null)},s),E&&(o=j)}const H="modulepreload",M=function(_,d){return new URL(_,d).href},A={},G=function(d,h,o){let l=Promise.resolve();if(h&&h.length>0){let m=function(e){return Promise.all(e.map(a=>Promise.resolve(a).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),u=s?.nonce||s?.getAttribute("nonce");l=m(h.map(e=>{if(e=M(e,o),e in A)return;A[e]=!0;const a=e.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(o)for(let r=t.length-1;r>=0;r--){const f=t[r];if(f.href===e&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${c}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":H,a||(n.as="script"),n.crossOrigin="",n.href=e,u&&n.setAttribute("nonce",u),document.head.appendChild(n),a)return new Promise((r,f)=>{n.addEventListener("load",r),n.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${e}`)))})}))}function i(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return l.then(t=>{for(const s of t||[])s.status==="rejected"&&i(s.reason);return d().catch(i)})};export{G as _,B as i};