1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-DiVRNtpo.js";var n=Object.defineProperty,r=(e,t)=>n(e,`name`,{value:t,configurable:!0}),i=!!(typeof window<`u`&&window.document&&window.document.createElement);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return r(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}r(a,`composeEventHandlers`);function o(e){if(!i)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}r(o,`getOwnerWindow`);function s(e){if(!i)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}r(s,`getOwnerDocument`);function c(e,t=!1){let{activeElement:n}=s(e);if(!n?.nodeName)return null;if(l(n)&&n.contentDocument)return c(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=s(n).getElementById(e);if(t)return t}}return n}r(c,`getActiveElement`);function l(e){return e.tagName===`IFRAME`}r(l,`isFrame`);var u=e(t(),1),d=globalThis?.document?u.useLayoutEffect:()=>{},f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=u.useEffectEvent,h=u.useInsertionEffect;function g(e){if(typeof m==`function`)return m(e);let t=u.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof h==`function`?h(()=>{t.current=e}):d(()=>{t.current=e}),u.useMemo(()=>((...e)=>t.current?.(...e)),[])}p(g,`useEffectEvent`);var _=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0}),y=u.useInsertionEffect||d;function b({prop:e,defaultProp:t,onChange:n=v(()=>{},`onChange`),caller:r}){let[i,a,o]=x({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,u.useCallback(t=>{if(s){let n=S(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}v(b,`useControllableState`);function x({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),i=u.useRef(n),a=u.useRef(t);return y(()=>{a.current=t},[t]),u.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}v(x,`useUncontrolledState`);function S(e){return typeof e==`function`}v(S,`isFunction`);var C=Symbol(`RADIX:SYNC_STATE`);function w(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=g(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=u.useReducer((t,n)=>{if(n.type===C)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...d),m=f.state,h=u.useRef(m);u.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let _=u.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return u.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:C,state:i})},[i,f.state,c]),[_,p]}v(w,`useControllableStateReducer`);export{d as n,a as r,b as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.