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]=`5a943ddc-2f28-4c34-8ba7-eceb358948f9`,e._sentryDebugIdIdentifier=`sentry-dbid-5a943ddc-2f28-4c34-8ba7-eceb358948f9`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{t}from"./useLocation-fu2554ly.js";import{Fg as n,Gp as r,Ig as i,Qp as a,hs as o}from"./entry.client-dr7r6s9a.js";var s=e(i(),1),c=n();function l(){let e=(0,c.c)(3),t=r(),n=a(),i;return e[0]!==n.history||e[1]!==t?(i=e=>{if(typeof e==`number`){n.history.back();return}t({to:e,search:e=>e})},e[0]=n.history,e[1]=t,e[2]=i):i=e[2],i}function u(){return a().history.back}function d(){let e=(0,c.c)(2),n=t(),r;e[0]===n.pathname?r=e[1]:(r=[n.pathname],e[0]=n.pathname,e[1]=r),(0,s.useEffect)(f,r)}function f(){o()}export{l as n,u as r,d as t};