(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,543836,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),r=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return n(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!r)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function u(e){return"IFRAME"===e.tagName}n(o,"composeEventHandlers"),n(function(e){if(!r)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:r}=i(t);if(!r?.nodeName)return null;if(u(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=i(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),n(u,"isFrame"),e.s(["composeEventHandlers",0,o])},271359,e=>{"use strict";var t=e.i(592121),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(592121),n=e.i(699173),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,r=[]){let a=[];function c(r,i){let u=t.createContext(i);u.displayName=r+"Context";let c=a.length;a=[...a,i];let s=o(r=>{let{scope:o,children:i,...a}=r,s=o?.[e]?.[c]||u,l=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(s.Provider,{value:l,children:i})},"Provider");function l(n,o,a={}){let{optional:s=!1}=a,d=o?.[e]?.[c]||u,f=t.useContext(d);if(f)return f;if(void 0!==i)return i;if(!s)throw Error(`\`${n}\` must be used within \`${r}\``)}return s.displayName=r+"Provider",o(l,"useContext"),[s,l]}o(c,"createContext");let s=o(()=>{let n=a.map(e=>t.createContext(e));return o(function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return s.scopeName=e,[c,u(s,...r)]}function u(...e){let n=e[0];if(1===e.length)return n;let r=o(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}o(function(e,r){let i=t.createContext(r);i.displayName=e+"Context";let u=o(e=>{let{children:r,...o}=e,u=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:u,children:r})},"Provider");function a(n,o={}){let{optional:u=!1}=o,c=t.useContext(i);if(c)return c;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${e}\``)}return u.displayName=e+"Provider",o(a,"useContext"),[u,a]},"createContext"),o(i,"createContextScope"),o(u,"composeContextScopes"),e.s(["createContextScope",0,i])},942928,e=>{"use strict";var t=e.i(592121),n=e.i(798973),r=e.i(982538),o=e.i(699173),i=Object.defineProperty,u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,r.createSlot)(`Primitive.${n}`),u=t.forwardRef((e,t)=>{let{asChild:r,...u}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?i:n,{...u,ref:t})});return u.displayName=`Primitive.${n}`,{...e,[n]:u}},{});function a(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}i(a,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,u,"dispatchDiscreteCustomEvent",0,a])},698900,843265,e=>{"use strict";var t,n=e.i(592121),r=e.i(543836),o=e.i(942928),i=e.i(271359);function u(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(u,"name",{value:"useCallbackRef",configurable:!0}),e.s(["useCallbackRef",0,u],843265);var a=e.i(699173),c=Object.defineProperty,s=(e,t)=>c(e,"name",{value:t,configurable:!0}),l="dismissableLayer.update",d=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),f=n.forwardRef(s(function(e,c){let{disableOutsidePointerEvents:f=!1,deferPointerDownOutside:m=!1,onEscapeKeyDown:v,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:g,onDismiss:w,...C}=e,S=n.useContext(d),[O,P]=n.useState(null),R=O?.ownerDocument??globalThis?.document,[,N]=n.useState({}),L=(0,i.useComposedRefs)(c,P),T=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),k=M?T.indexOf(M):-1,D=O?T.indexOf(O):-1,A=S.layersWithOutsidePointerEventsDisabled.size>0,x=D>=k,I=n.useRef(!1),F=p(e=>{b?.(e),g?.(e),e.defaultPrevented||w?.()},{ownerDocument:R,deferPointerDownOutside:m,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return x&&!t},[S.branches,x])}),j=h(e=>{if(m&&I.current)return;let t=e.target;![...S.branches].some(e=>e.contains(t))&&(E?.(e),g?.(e),e.defaultPrevented||w?.())},R),_=!!O&&D===T.length-1,W=u(e=>{"Escape"===e.key&&(v?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))});return n.useEffect(()=>{if(_)return R.addEventListener("keydown",W,{capture:!0}),()=>R.removeEventListener("keydown",W,{capture:!0})},[R,_,W]),n.useEffect(()=>{if(O)return f&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(O)),S.layers.add(O),y(),()=>{f&&(S.layersWithOutsidePointerEventsDisabled.delete(O),0===S.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t))}},[O,R,f,S]),n.useEffect(()=>()=>{O&&(S.layers.delete(O),S.layersWithOutsidePointerEventsDisabled.delete(O),y())},[O,S]),n.useEffect(()=>{let e=s(()=>N({}),"handleUpdate");return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,a.jsx)(o.Primitive.div,{...C,ref:L,style:{pointerEvents:A?x?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,F.onPointerDownCapture)})},"DismissableLayer"));function m(){let e=n.useContext(d),[t,r]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}s(m,"useDismissableLayerSurface");var v=s(()=>!0,"IS_TRUE");function p(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:c=v}=t,l=u(e),d=n.useRef(!1),f=n.useRef(!1),m=n.useRef(new Map),p=n.useRef(()=>{});return n.useEffect(()=>{function e(){f.current=!1,i.current=!1,m.current.clear()}function t(){return Array.from(m.current.values()).some(Boolean)}function n(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||m.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&p.current()},0)}function u(e){f.current&&m.current.set(e.type,!1)}s(e,"resetOutsideInteraction"),s(t,"isOutsideInteractionIntercepted"),s(n,"handleInteractionCapture"),s(u,"handleInteractionBubble");let v=s(n=>{if(n.target&&!d.current){let u=function(){r.removeEventListener("click",p.current);let n=t();e(),n||b("dismissableLayer.pointerDownOutside",l,a,{discrete:!0})};if(s(u,"handleAndDispatchPointerDownOutsideEvent"),!c(n.target)){r.removeEventListener("click",p.current),e(),d.current=!1;return}let a={originalEvent:n};f.current=!0,i.current=o&&0===n.button,m.current.clear(),o&&0===n.button?(r.removeEventListener("click",p.current),p.current=u,r.addEventListener("click",p.current,{once:!0})):u()}else r.removeEventListener("click",p.current),e();d.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)r.addEventListener(e,n,!0),r.addEventListener(e,u);let y=window.setTimeout(()=>{r.addEventListener("pointerdown",v)},0);return()=>{for(let e of(window.clearTimeout(y),r.removeEventListener("pointerdown",v),r.removeEventListener("click",p.current),h))r.removeEventListener(e,n,!0),r.removeEventListener(e,u)}},[r,l,o,i,a,c]),{onPointerDownCapture:s(()=>d.current=!0,"onPointerDownCapture")}}function h(e,t=globalThis?.document){let r=u(e),o=n.useRef(!1);return n.useEffect(()=>{let e=s(e=>{e.target&&!o.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:s(()=>o.current=!0,"onFocusCapture"),onBlurCapture:s(()=>o.current=!1,"onBlurCapture")}}function y(){let e=new CustomEvent(l);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){let i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,u):i.dispatchEvent(u)}s(p,"usePointerDownOutside"),s(h,"useFocusOutside"),s(y,"dispatchUpdate"),s(b,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,f,"useDismissableLayerSurface",0,m],698900)},235453,e=>{"use strict";var t=e.i(592121),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),o=0,i=null;function u(){t.useEffect(()=>{i||(i={start:a(),end:a()});let{start:e,end:t}=i;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),o++,()=>{1===o&&(i?.start.remove(),i?.end.remove(),i=null),o=Math.max(0,o-1)}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}r(function(e){return u(),e.children},"FocusGuards"),r(u,"useFocusGuards"),r(a,"createFocusGuard"),e.s(["useFocusGuards",0,u])},714035,e=>{"use strict";var t=e.i(592121),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},296994,e=>{"use strict";var t=e.i(592121),n=e.i(714035),r=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function u(e){let[r,u]=t.useState(o());return(0,n.useLayoutEffect)(()=>{e||u(e=>e??String(i++))},[e]),e||(r?`radix-${r}`:"")}r(u,"name",{value:"useId",configurable:!0}),e.s(["useId",0,u])},546504,778469,e=>{"use strict";var t=e.i(592121),n=e.i(271359),r=e.i(942928),o=e.i(843265),i=e.i(699173),u=Object.defineProperty,a=(e,t)=>u(e,"name",{value:t,configurable:!0}),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},d=t.forwardRef(a(function(e,u){let{loop:d=!1,trapped:p=!1,onMountAutoFocus:h,onUnmountAutoFocus:y,...g}=e,[w,S]=t.useState(null),O=(0,o.useCallbackRef)(h),P=(0,o.useCallbackRef)(y),R=t.useRef(null),N=(0,n.useComposedRefs)(u,S),L=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(p){let e=function(e){if(L.paused||!w)return;let t=e.target;w.contains(t)?R.current=t:b(R.current,{select:!0})},t=function(e){if(L.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||b(R.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&b(w)};a(e,"handleFocusIn"),a(t,"handleFocusOut"),a(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return w&&r.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[p,w,L.paused]),t.useEffect(()=>{if(w){E.add(L);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,l);w.addEventListener(c,O),w.dispatchEvent(t),t.defaultPrevented||(f(C(v(w)),{select:!0}),document.activeElement===e&&b(w))}return()=>{w.removeEventListener(c,O),setTimeout(()=>{let t=new CustomEvent(s,l);w.addEventListener(s,P),w.dispatchEvent(t),t.defaultPrevented||b(e??document.body,{select:!0}),w.removeEventListener(s,P),E.remove(L)},0)}}},[w,O,P,L]);let T=t.useCallback(e=>{if(!d&&!p||L.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,o]=m(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),d&&b(o,{select:!0})):(e.preventDefault(),d&&b(r,{select:!0})):n===t&&e.preventDefault()}},[d,p,L.paused]);return(0,i.jsx)(r.Primitive.div,{tabIndex:-1,...g,ref:N,onKeyDown:T})},"FocusScope"));function f(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(b(r,{select:t}),document.activeElement!==n)return}function m(e){let t=v(e);return[p(t,e),p(t.reverse(),e)]}function v(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):h(r,{upTo:t})))return r}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function y(e){return e instanceof HTMLInputElement&&"select"in e}function b(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&y(e)&&t&&e.select()}}a(f,"focusFirst"),a(m,"getTabbableEdges"),a(v,"getTabbableCandidates"),a(p,"findVisible"),a(h,"isHidden"),a(y,"isSelectableInput"),a(b,"focus");var E=g();function g(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=w(e,t)).unshift(t)},remove(t){e=w(e,t),e[0]?.resume()}}}function w(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function C(e){return e.filter(e=>"A"!==e.tagName)}a(g,"createFocusScopesStack"),a(w,"arrayRemove"),a(C,"removeLinks"),e.s(["FocusScope",0,d],546504);var S=e.i(798973),O=e.i(714035),P=Object.defineProperty,R=t.forwardRef(P(function(e,n){let{container:o,...u}=e,[a,c]=t.useState(!1);(0,O.useLayoutEffect)(()=>c(!0),[]);let s=o||a&&globalThis?.document?.body;return s?S.createPortal((0,i.jsx)(r.Primitive.div,{...u,ref:n}),s):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,R],778469)},312610,e=>{"use strict";var t=e.i(592121),n=e.i(714035),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}o(i,"useStateMachine");var u=o(e=>{let{present:n,children:r}=e,o=a(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),u=s(o.ref,d(i));return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:u}):null},"Presence");function a(e){let[r,u]=t.useState(),a=t.useRef(null),c=t.useRef(e),s=t.useRef("none"),d=t.useRef(void 0),[f,m]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(s.current=d.current??l(a.current),d.current=void 0):s.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=a.current,n=c.current;if(n!==e){let r=s.current,o=l(t);e?(d.current=o,m("MOUNT")):"none"===o||t?.display==="none"?m("UNMOUNT"):n&&r!==o?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=o(n=>{let o=l(a.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(m("ANIMATION_END"),!c.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},"handleAnimationEnd"),i=o(e=>{e.target===r&&(s.current=l(a.current))},"handleAnimationStart");return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}m("ANIMATION_END")},[r,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);a.current=t,d.current=l(t)}else a.current=null;u(e)},[])}}function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,r=!1,o=t.map(t=>{let n=c(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},803976,e=>{"use strict";var t=e.i(592121),n=e.i(899300),r=e.i(714035),o=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],u=t[" useInsertionEffect ".trim().toString()];function a(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{n.current=e}):(0,r.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}o(a,"name",{value:"useEffectEvent",configurable:!0});var c=Object.defineProperty,s=(e,t)=>c(e,"name",{value:t,configurable:!0}),l=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function d({prop:e,defaultProp:r,onChange:o=s(()=>{},"onChange"),caller:i}){let[u,a,c]=f({defaultProp:r,onChange:o}),l=void 0!==e,v=l?e:u;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,i])}return[v,t.useCallback(t=>{if(l){let n=m(t)?t(e):t;n!==e&&c.current?.(n)}else a(t)},[l,e,a,c])]}function f({defaultProp:e,onChange:n}){let[r,o]=t.useState(e),i=t.useRef(r),u=t.useRef(n);return l(()=>{u.current=n},[n]),t.useEffect(()=>{i.current!==r&&(u.current?.(r),i.current=r)},[r,i]),[r,o,u]}function m(e){return"function"==typeof e}s(d,"useControllableState"),s(f,"useUncontrolledState"),s(m,"isFunction");var v=Symbol("RADIX:SYNC_STATE");s(function(e,r,o,i){let{prop:u,defaultProp:c,onChange:s,caller:l}=r,d=void 0!==u,f=a(s);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==u);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${l} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,l])}let m=[{...o,state:c}];i&&m.push(i);let[p,h]=t.useReducer((t,n)=>{if(n.type===v)return{...t,state:n.state};let r=e(t,n);return d&&!Object.is(r.state,t.state)&&f(r.state),r},...m),y=p.state,b=t.useRef(y);t.useEffect(()=>{b.current!==y&&(b.current=y,d||f(y))},[y,b,d]);let E=t.useMemo(()=>void 0!==u?{...p,state:u}:p,[p,u]);return t.useEffect(()=>{d&&!Object.is(u,p.state)&&h({type:v,state:u})},[u,p.state,d]),[E,h]},"useControllableStateReducer"),e.s(["useControllableState",0,d],803976)},73772,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,i=function(e){return e&&(e.host||i(e.parentNode))},u=function(e,u,a,c){var s=(Array.isArray(e)?e:[e]).map(function(e){if(u.contains(e))return e;var t=i(e);return t&&u.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",u,". Doing nothing"),null)}).filter(function(e){return!!e});r[a]||(r[a]=new WeakMap);var l=r[a],d=[],f=new Set,m=new Set(s),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};s.forEach(v);var p=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))p(e);else try{var r=e.getAttribute(c),o=null!==r&&"false"!==r,i=(t.get(e)||0)+1,u=(l.get(e)||0)+1;t.set(e,i),l.set(e,u),d.push(e),1===i&&o&&n.set(e,!0),1===u&&e.setAttribute(a,"true"),o||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return p(u),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=l.get(e)-1;t.set(e,r),l.set(e,o),r||(n.has(e)||e.removeAttribute(c),n.delete(e)),o||e.removeAttribute(a)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"{"use strict";var t,n,r,o,i,u,a,c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var l=("function"==typeof SuppressedError&&SuppressedError,e.i(592121)),d="right-scroll-bar-position",f="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="u">typeof window?l.useLayoutEffect:l.useEffect,p=new WeakMap,h=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},u=function(){return Promise.resolve().then(i)};u(),r={push:function(e){t.push(e),u()},filter:function(e){return t=t.filter(e),r}}}}).options=c({async:!0,ssr:!1},t),i),y=function(){},b=l.forwardRef(function(e,t){var n,r,o,i,u=l.useRef(null),a=l.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),d=a[0],f=a[1],b=e.forwardProps,E=e.children,g=e.className,w=e.removeScrollBar,C=e.enabled,S=e.shards,O=e.sideCar,P=e.noRelative,R=e.noIsolation,N=e.inert,L=e.allowPinchZoom,T=e.as,M=e.gapMode,k=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[u,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,v(function(){var e=p.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}p.set(i,n)},[n]),i),A=c(c({},k),d);return l.createElement(l.Fragment,null,C&&l.createElement(O,{sideCar:h,removeScrollBar:w,shards:S,noRelative:P,noIsolation:R,inert:N,setCallbacks:f,allowPinchZoom:!!L,lockRef:u,gapMode:M}),b?l.cloneElement(l.Children.only(E),c(c({},A),{ref:D})):l.createElement(void 0===T?"div":T,c({},A,{className:g,ref:D}),E))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:f,zeroRight:d};var E=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,c({},n))};E.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=g();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},O=function(e){return parseInt(e||"",10)||0},P=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[O(n),O(r),O(o)]},R=function(e){if(void 0===e&&(e="margin"),"u"