Build 533169stable
Module 630124
747 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";var r=n(64700);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var s="function"==typeof Object.is?Object.is:i,a=r.useState,o=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function c(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return l(function(){i.value=n,i.getSnapshot=t,d(i)&&s({inst:i})},[e,n,t]),o(function(){return d(i)&&s({inst:i}),e(function(){d(i)&&s({inst:i})})},[e]),u(n),n}function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}function _(e,t){return t()}var f="u"<typeof window||void 0===window.document||void 0===window.document.createElement?_:c;t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f}