const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/CocY7LrI.js","../chunks/B5gxx3nr.js","../chunks/DScGFiBY.js","../chunks/BlbL38UD.js"])))=>i.map(i=>d[i]);
var ot=Object.defineProperty;var Xe=r=>{throw TypeError(r)};var nt=(r,e,t)=>e in r?ot(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var w=(r,e,t)=>nt(r,typeof e!="symbol"?e+"":e,t),Fe=(r,e,t)=>e.has(r)||Xe("Cannot "+t);var b=(r,e,t)=>(Fe(r,e,"read from private field"),t?t.call(r):e.get(r)),A=(r,e,t)=>e.has(r)?Xe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var xe=(r,e,t)=>(Fe(r,e,"access private method"),t);import{c as S,_ as it}from"../chunks/B5gxx3nr.js";import"../chunks/Bzak7iHL.js";import{o as dt}from"../chunks/DzJWa70M.js";import{k,g as i,q,br as Q,p as O,h as P,i as _,j as l,m as T,o as U,as as Y,v as B,l as C,s as V,a as Ge,y as lt,w as Je,x as Ke,t as Qe}from"../chunks/DScGFiBY.js";import{s as ct}from"../chunks/B7h8GtFa.js";import{i as W}from"../chunks/BlbL38UD.js";import{d as z,b as X,c as K,r as ut,a as ht}from"../chunks/BPc-JNDc.js";import{s as ft,b as _e,c as $e,d as Z,f as y,m as G,g as Ye,h as mt,i as vt,j as gt,k as pt,L as _t,a as kt,e as bt}from"../chunks/B3aNbgJc.js";import{i as yt}from"../chunks/BuAKAdPx.js";import{p as v,r as I,b as $}from"../chunks/DoRZqEmo.js";import{C as et,D as Pt,w as wt,M as St,E as xt,S as Ct,n as Dt}from"../chunks/CaCQx3BS.js";import{k as qt}from"../chunks/BfWekp-4.js";import"../chunks/DAapakUx.js";import{i as Ot}from"../chunks/DjaSJnz7.js";import{a as Tt}from"../chunks/DTbYdmbV.js";import{D as Mt,a as At,b as Et,c as Ze,d as zt}from"../chunks/CFHX6GDu.js";const Or=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),It={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Rt=ft(It),Ee=$e({component:"avatar",parts:["root","image","fallback"]}),ze=new et("Avatar.Root");var ne;const Re=class Re{constructor(e){w(this,"opts");w(this,"domContext");w(this,"attachment");A(this,ne,k(()=>({id:this.opts.id.current,[Ee.root]:"","data-status":this.opts.loadingStatus.current,...this.attachment})));this.opts=e,this.domContext=new Pt(this.opts.ref),this.loadImage=this.loadImage.bind(this),this.attachment=_e(this.opts.ref)}static create(e){return ze.set(new Re(e))}loadImage(e,t,s){if(this.opts.loadingStatus.current==="loaded")return;let a;const c=new Image;return c.src=e,t!==void 0&&(c.crossOrigin=t),s&&(c.referrerPolicy=s),this.opts.loadingStatus.current="loading",c.onload=()=>{a=this.domContext.setTimeout(()=>{this.opts.loadingStatus.current="loaded"},this.opts.delayMs.current)},c.onerror=()=>{this.opts.loadingStatus.current="error"},()=>{a&&this.domContext.clearTimeout(a)}}get props(){return i(b(this,ne))}set props(e){q(b(this,ne),e)}};ne=new WeakMap;let Ce=Re;var ie;const je=class je{constructor(e,t){w(this,"opts");w(this,"root");w(this,"attachment");A(this,ie,k(()=>({id:this.opts.id.current,style:{display:this.root.opts.loadingStatus.current==="loaded"?"block":"none"},"data-status":this.root.opts.loadingStatus.current,[Ee.image]:"",src:this.opts.src.current,crossorigin:this.opts.crossOrigin.current,referrerpolicy:this.opts.referrerPolicy.current,...this.attachment})));this.opts=e,this.root=t,this.attachment=_e(this.opts.ref),wt.pre([()=>this.opts.src.current,()=>this.opts.crossOrigin.current],([s,a])=>{if(!s){this.root.opts.loadingStatus.current="error";return}this.root.loadImage(s,a,this.opts.referrerPolicy.current)})}static create(e){return new je(e,ze.get())}get props(){return i(b(this,ie))}set props(e){q(b(this,ie),e)}};ie=new WeakMap;let De=je;var de,le;const Le=class Le{constructor(e,t){w(this,"opts");w(this,"root");w(this,"attachment");A(this,de,k(()=>this.root.opts.loadingStatus.current==="loaded"?{display:"none"}:void 0));A(this,le,k(()=>({style:this.style,"data-status":this.root.opts.loadingStatus.current,[Ee.fallback]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=_e(this.opts.ref)}static create(e){return new Le(e,ze.get())}get style(){return i(b(this,de))}set style(e){q(b(this,de),e)}get props(){return i(b(this,le))}set props(e){q(b(this,le),e)}};de=new WeakMap,le=new WeakMap;let qe=Le;var jt=C("