import{B as e,Bt as t,F as n,L as r,N as i,Nt as a,Pt as o,Vt as s,X as c,Y as l,_t as u,a as d,at as f,ft as p,g as m,ht as h,it as g,o as _,ot as v,u as y,vt as b}from"./xY0c-UfG.js";import"./xihTtKlq.js";import"./9K8VREGP.js";import{c as x}from"./CW-Ov0pM2.js";import{s as S}from"./CIfkrRcg2.js";var C=e(`<title> </title>`),w=e(`<svg><!><path d="M6 18 7.41 19.41 15 11.83 15 30 17 30 17 11.83 24.59 19.41 26 18 16 8 6 18z"></path><path d="M6,8V4H26V8h2V4a2,2,0,0,0-2-2H6A2,2,0,0,0,4,4V8Z"></path></svg>`);function T(e,h){let x=d(h,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(x,[`size`,`title`]);o(h,!1);let T=u(),E=u(),D=_(h,`size`,8,16),O=_(h,`title`,8,void 0);g(()=>(l(x),l(O())),()=>{b(T,x[`aria-label`]||x[`aria-labelledby`]||O())}),g(()=>(c(T),l(x)),()=>{b(E,{"aria-hidden":c(T)?void 0:!0,role:c(T)?`img`:void 0,focusable:Number(x.tabindex)===0?!0:void 0})}),f(),y();var k=w();m(k,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:D(),height:D(),...c(E),...S}));var A=p(k),j=e=>{var t=C(),i=p(t,!0);s(t),v(()=>n(i,O())),r(e,t)};i(A,e=>{O()&&e(j)}),t(2),s(k),r(e,k),a()}var E=h({folders:[],assets:[],loaded:!1,error:null}),D=null,O=!1;function k(){return D?(O=!0,D):(D=S().then(e=>{E.folders=e.folders,E.assets=x(e.assets),E.loaded=!0,E.error=null}).catch(e=>{E.error=e?.message??`Failed to load assets`}).finally(()=>{D=null,O&&(O=!1,k())}),D)}function A(){return E.loaded?(k(),Promise.resolve()):k()}export{T as i,E as n,k as r,A as t};