"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/with-selector.development.js"),r=require("react");require("../../shim/index.js");var t=require("../../../../_virtual/index3.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u,_=n(r);
/**
 * @license React
 * use-sync-external-store-shim/with-selector.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */exports.__require=function(){return u||(u=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=_.default,n=t.exports,u="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},o=n.useSyncExternalStore,i=r.useRef,l=r.useEffect,a=r.useMemo,O=r.useDebugValue;e.__exports.useSyncExternalStoreWithSelector=function(e,r,t,n,_){var f=i(null);if(null===f.current){var s={hasValue:!1,value:null};f.current=s}else s=f.current;f=a((function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==_&&s.hasValue){var r=s.value;if(_(r,e))return i=r}return i=e}if(r=i,u(o,e))return r;var t=n(e);return void 0!==_&&_(r,t)?(o=e,r):(o=e,i=t)}var o,i,l=!1,a=void 0===t?null:t;return[function(){return e(r())},null===a?void 0:function(){return e(a())}]}),[r,t,n,_]);var c=o(e,f[0],f[1]);return l((function(){s.hasValue=!0,s.value=c}),[c]),O(c),c},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),e.__exports};
//# sourceMappingURL=with-selector.development.js.map
