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]=`37d94a85-c5af-4f1a-8c42-6ca4f31eea05`,e._sentryDebugIdIdentifier=`sentry-dbid-37d94a85-c5af-4f1a-8c42-6ca4f31eea05`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Bm as n,Ig as r,Sr as i,Ym as a,st as o}from"./entry.client-dr7r6s9a.js";var s=i(),c=e(r(),1),l=t(),u=`clientSideNavigate`,d=a(function(){let e=(0,s.c)(4),t=o(),r,i;e[0]===t?(r=e[1],i=e[2]):(r=()=>{let e=e=>{if(e.data){let{type:n,uri:r}=e.data;if(n===u){let e=window.location.origin,n=new URL(r,e);if(n.origin.toLocaleLowerCase()!==e.toLocaleLowerCase())throw Error(`CommercePerformanceOptimizationLayout: refusing to navigate to cross-origin uri "${r}" (expected origin "${e}").`);t(`${n.pathname}${n.search}${n.hash}`)}}};return window.chrome?.webview?.addEventListener(`message`,e),()=>{window.chrome?.webview?.removeEventListener(`message`,e)}},i=[t],e[0]=t,e[1]=r,e[2]=i),(0,c.useEffect)(r,i);let a;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(n,{}),e[3]=a):a=e[3],a});export{d as default};