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]=`b8f58e6f-76e8-4e8b-afe1-257c4fc768c1`,e._sentryDebugIdIdentifier=`sentry-dbid-b8f58e6f-76e8-4e8b-afe1-257c4fc768c1`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Gu as n,Qh as r,Um as i,jg as a}from"./entry.client-mpghtlrl.js";var o=t(),s=e(a(),1),c=[n.products.byProductId,n.stream.byProductId];function l(e){let t=(0,o.c)(10),n=i(),a;t[0]!==e||t[1]!==n.systems.catalog.queries.productInfo.basic?(a=n.systems.catalog.queries.productInfo.basic.getOptions({productId:e}),t[0]=e,t[1]=n.systems.catalog.queries.productInfo.basic,t[2]=a):a=t[2];let l=!!e,d;t[3]!==a||t[4]!==l?(d={...a,select:u,enabled:l},t[3]=a,t[4]=l,t[5]=d):d=t[5];let{data:f}=r(d),p,m;t[6]!==e||t[7]!==f?(p=()=>{if(!e||!f)return;let{pathname:t}=globalThis.window.location;for(let n of c){let r=n.$buildPathname({params:{productId:e,productName:void 0}});if(t.startsWith(r)){let r=n.$buildPathname({params:{productId:e,productName:f}});t!==r&&window.history.replaceState(window.history.state,``,r);return}}},m=[e,f],t[6]=e,t[7]=f,t[8]=p,t[9]=m):(p=t[8],m=t[9]),(0,s.useEffect)(p,m)}function u(e){let{title:t}=e;return t}export{l as t};