import{r as M}from"./index-D0OPOe3j.js";var R={exports:{}},b={};var D;function U(){if(D)return b;D=1;var n=M();function S(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var m=typeof Object.is=="function"?Object.is:S,h=n.useState,p=n.useEffect,E=n.useLayoutEffect,y=n.useDebugValue;function w(e,r){var u=r(),o=h({inst:{value:u,getSnapshot:r}}),t=o[0].inst,f=o[1];return E(function(){t.value=u,t.getSnapshot=r,l(t)&&f({inst:t})},[e,u,r]),p(function(){return l(t)&&f({inst:t}),e(function(){l(t)&&f({inst:t})})},[e]),y(u),u}function l(e){var r=e.getSnapshot;e=e.value;try{var u=r();return!m(e,u)}catch{return!0}}function i(e,r){return r()}var a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:w;return b.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:a,b}var O;function g(){return O||(O=1,R.exports=U()),R.exports}var V={exports:{}},_={};var z;function G(){if(z)return _;z=1;var n=M(),S=g();function m(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var h=typeof Object.is=="function"?Object.is:m,p=S.useSyncExternalStore,E=n.useRef,y=n.useEffect,w=n.useMemo,l=n.useDebugValue;return _.useSyncExternalStoreWithSelector=function(i,a,e,r,u){var o=E(null);if(o.current===null){var t={hasValue:!1,value:null};o.current=t}else t=o.current;o=w(function(){function j(c){if(!x){if(x=!0,v=c,c=r(c),u!==void 0&&t.hasValue){var s=t.value;if(u(s,c))return d=s}return d=c}if(s=d,h(v,c))return s;var W=r(c);return u!==void 0&&u(s,W)?(v=c,s):(v=c,d=W)}var x=!1,v,d,q=e===void 0?null:e;return[function(){return j(a())},q===null?void 0:function(){return j(q())}]},[a,e,r,u]);var f=p(i,o[0],o[1]);return y(function(){t.hasValue=!0,t.value=f},[f]),l(f),f},_}var I;function L(){return I||(I=1,V.exports=G()),V.exports}var k=L();export{g as r,k as w};
//# sourceMappingURL=with-selector-DSiGdb7-.js.map
