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]=`5c87a2c3-17e5-4fea-933e-ac32e221609e`,e._sentryDebugIdIdentifier=`sentry-dbid-5c87a2c3-17e5-4fea-933e-ac32e221609e`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,an as n,jg as r}from"./entry.client-mpghtlrl.js";var i=t(),a=e(r(),1),o=e=>{let t=(0,i.c)(5),r=(0,a.useContext)(n)?.stateRestorationManager,o=(0,a.useId)(),s,c;t[0]!==r||t[1]!==e||t[2]!==o?(s=()=>{if(r)return e?r.addLoadingRef(o):r.removeLoadingRef(o),()=>{r.removeLoadingRef(o)}},c=[o,e,r],t[0]=r,t[1]=e,t[2]=o,t[3]=s,t[4]=c):(s=t[3],c=t[4]),(0,a.useEffect)(s,c)};export{o as t};