try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b8424e7b-8f62-4772-8257-53a927a695bd`,e._sentryDebugIdIdentifier=`sentry-dbid-b8424e7b-8f62-4772-8257-53a927a695bd`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Bl as n,Vl as r,Wl as i,du as a,fu as o,hu as s,iu as c,jg as l,mu as u,ng as d,ni as f,nu as p,ou as m,su as h,ti as g,un as _}from"./entry.client-mpghtlrl.js";var v=t(),y=e(l(),1),b=d(),x=new Set,S=(e,t)=>{for(let n of x)n(e,t)},C=e=>(x.size===0&&c.addListener(p.Change,S),x.add(e),()=>{x.delete(e),x.size===0&&c.removeListener(p.Change,S)}),w=(0,y.forwardRef)((e,t)=>{let c=(0,v.c)(12),l,d;c[0]===e?(l=c[1],d=c[2]):({deps:l,...d}=e,c[0]=e,c[1]=l,c[2]=d);let p=(0,y.useRef)(null),x=(0,y.useRef)(),S=(0,y.useRef)(),w=_(),T,E;c[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>C((e,t)=>{t&&p.current&&m(p.current,t)&&(x.current=a(t),S.current=t)}),E=[],c[3]=T,c[4]=E):(T=c[3],E=c[4]),(0,y.useEffect)(T,E);let D,O;c[5]===w?(D=c[6],O=c[7]):(D=()=>{w&&m(u(p.current).body,w)&&(m(p.current,w)?(x.current=a(w),S.current=w):(x.current=void 0,S.current=void 0))},O=[w],c[5]=w,c[6]=D,c[7]=O),(0,y.useEffect)(D,O);let k;c[8]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>{let e=n(),t=u(p.current);if(x.current&&(!e||!m(t.body,e)||!s(e))&&p.current){if(!(e&&e===S.current)){let e=a(p.current),t=o();if(!(e.bottom>0&&e.top<t))return}let t=h([p.current],x.current);t&&r(t,!1,!1,!1)}},c[8]=k):k=c[8],i(k,l);let A=f(t,p),j;return c[9]!==A||c[10]!==d?(j=(0,b.jsx)(g,{ref:A,...d}),c[9]=A,c[10]=d,c[11]=j):j=c[11],j});export{w as t};