"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/with-selector.production.js"),r=require("react");require("../../shim/index.js");var u=require("../../../../_virtual/index3.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n,i=t(r);
/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.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(){if(n)return e.__exports;n=1;var r=i.default,t=u.exports,o="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},a=t.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,f=r.useDebugValue;return e.__exports.useSyncExternalStoreWithSelector=function(e,r,u,t,n){var i=l(null);if(null===i.current){var v={hasValue:!1,value:null};i.current=v}else v=i.current;i=c((function(){function e(e){if(!l){if(l=!0,i=e,e=t(e),void 0!==n&&v.hasValue){var r=v.value;if(n(r,e))return a=r}return a=e}if(r=a,o(i,e))return r;var u=t(e);return void 0!==n&&n(r,u)?(i=e,r):(i=e,a=u)}var i,a,l=!1,s=void 0===u?null:u;return[function(){return e(r())},null===s?void 0:function(){return e(s())}]}),[r,u,t,n]);var d=a(e,i[0],i[1]);return s((function(){v.hasValue=!0,v.value=d}),[d]),f(d),d},e.__exports};
//# sourceMappingURL=with-selector.production.js.map
