import{a as e,t}from"./rolldown-runtime-DAXXjFlN.js";import{p as n,u as r}from"./compat.module-C8KToj4y.js";var i=t((t=>{var i=(n(),e(r));function a(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var o=typeof Object.is==`function`?Object.is:a,s=i.useState,c=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue;function d(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return l(function(){i.value=n,i.getSnapshot=t,f(i)&&a({inst:i})},[e,n,t]),c(function(){return f(i)&&a({inst:i}),e(function(){f(i)&&a({inst:i})})},[e]),u(n),n}function f(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function p(e,t){return t()}var m=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?p:d;t.useSyncExternalStore=i.useSyncExternalStore===void 0?m:i.useSyncExternalStore})),a=t(((e,t)=>{t.exports=i()}));export{a as t};