Build 545032stable
Module 341221
1,065 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{Cc:()=>l,wR:()=>_});var i=n(64700);let r={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.createContext(r),a=i.createContext(!1),o=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),l="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)(_()),s=n?"react-aria":`react-aria${r.prefix}`;return e||`${s}-${t}`}:function(e){let t=(0,i.useContext)(s),n=function(e=!1){let t=(0,i.useContext)(s),n=(0,i.useRef)(null);if(null===n.current&&!e){var r,a;let e=null==(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=a.ReactCurrentOwner)?void 0:r.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function u(){return!1}function c(){return!0}function d(e){return()=>{}}function _(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(d,u,c):(0,i.useContext)(a)}}