(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,251392,e=>{"use strict";var t=e.i(539922);e.s(["useRefMemo",0,e=>{let n=(0,t.useRef)(e);return n.current=e,n}])},60212,252960,e=>{"use strict";var t,n=e.i(539922),r=e.i(291967),o=e.i(556872),a=e.i(144977);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["useCallbackRef",0,i],252960);var s=e.i(648198),c="dismissableLayer.update",l=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),u=n.forwardRef((e,u)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:y,...b}=e,E=n.useContext(l),[w,x]=n.useState(null),C=w?.ownerDocument??globalThis?.document,[,R]=n.useState({}),D=(0,a.useComposedRefs)(u,e=>x(e)),S=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),j=S.indexOf(P),N=w?S.indexOf(w):-1,T=E.layersWithOutsidePointerEventsDisabled.size>0,k=N>=j,L=function(e,t=globalThis?.document){let r=i(e),o=n.useRef(!1),a=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let n=function(){f("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));k&&!n&&(m?.(e),g?.(e),e.defaultPrevented||y?.())},C),O=function(e,t=globalThis?.document){let r=i(e),o=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!o.current&&f("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(h?.(e),g?.(e),e.defaultPrevented||y?.())},C);return!function(e,t=globalThis?.document){let r=i(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{N===E.layers.size-1&&(v?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),n.useEffect(()=>{if(w)return p&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(w)),E.layers.add(w),d(),()=>{p&&1===E.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=t)}},[w,C,p,E]),n.useEffect(()=>()=>{w&&(E.layers.delete(w),E.layersWithOutsidePointerEventsDisabled.delete(w),d())},[w,E]),n.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(o.Primitive.div,{...b,ref:D,style:{pointerEvents:T?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,L.onPointerDownCapture)})});function d(){let e=new CustomEvent(c);document.dispatchEvent(e)}function f(e,t,n,{discrete:r}){let a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(a,i):a.dispatchEvent(i)}u.displayName="DismissableLayer",n.forwardRef((e,t)=>{let r=n.useContext(l),i=n.useRef(null),c=(0,a.useComposedRefs)(t,i);return n.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,s.jsx)(o.Primitive.div,{...e,ref:c})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,u],60212)},371353,e=>{"use strict";var t=e.i(539922),n=0;function r(){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}e.s(["useFocusGuards",0,function(){t.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??r()),document.body.insertAdjacentElement("beforeend",e[1]??r()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),n--}},[])}])},461194,e=>{"use strict";var t=e.i(539922),n=e.i(127864),r=t[" useId ".trim().toString()]||(()=>void 0),o=0;e.s(["useId",0,function(e){let[a,i]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||i(e=>e??String(o++))},[e]),e||(a?`radix-${a}`:"")}])},89535,614952,e=>{"use strict";let t;var n=e.i(539922),r=e.i(144977),o=e.i(556872),a=e.i(252960),i=e.i(648198),s="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},u=n.forwardRef((e,t)=>{let{loop:u=!1,trapped:m=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[b,E]=n.useState(null),w=(0,a.useCallbackRef)(h),x=(0,a.useCallbackRef)(g),C=n.useRef(null),R=(0,r.useComposedRefs)(t,e=>E(e)),D=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(m){let e=function(e){if(D.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(D.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[m,b,D.paused]),n.useEffect(()=>{if(b){v.add(D);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(s,l);b.addEventListener(s,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(d(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(s,w),setTimeout(()=>{let t=new CustomEvent(c,l);b.addEventListener(c,x),b.dispatchEvent(t),t.defaultPrevented||p(e??document.body,{select:!0}),b.removeEventListener(c,x),v.remove(D)},0)}}},[b,w,x,D]);let S=n.useCallback(e=>{if(!u&&!m||D.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r;let t,o=e.currentTarget,[a,i]=[f(t=d(r=o),r),f(t.reverse(),r)];a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),u&&p(i,{select:!0})):(e.preventDefault(),u&&p(a,{select:!0})):n===o&&e.preventDefault()}},[u,m,D.paused]);return(0,i.jsx)(o.Primitive.div,{tabIndex:-1,...y,ref:R,onKeyDown:S})});function d(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(let n of e)if(!function(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}(n,{upTo:t}))return n}function p(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}u.displayName="FocusScope";var v=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=m(t,e)).unshift(e)},remove(e){t=m(t,e),t[0]?.resume()}});function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",0,u],89535);var h=e.i(493449),g=e.i(127864),y=n.forwardRef((e,t)=>{let{container:r,...a}=e,[s,c]=n.useState(!1);(0,g.useLayoutEffect)(()=>c(!0),[]);let l=r||s&&globalThis?.document?.body;return l?h.default.createPortal((0,i.jsx)(o.Primitive.div,{...a,ref:t}),l):null});y.displayName="Portal",e.s(["Portal",0,y],614952)},73772,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,a=function(e){return e&&(e.host||a(e.parentNode))},i=function(e,i,s,c){var l=(Array.isArray(e)?e:[e]).map(function(e){if(i.contains(e))return e;var t=a(e);return t&&i.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",i,". Doing nothing"),null)}).filter(function(e){return!!e});r[s]||(r[s]=new WeakMap);var u=r[s],d=[],f=new Set,p=new Set(l),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};l.forEach(v);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var r=e.getAttribute(c),o=null!==r&&"false"!==r,a=(t.get(e)||0)+1,i=(u.get(e)||0)+1;t.set(e,a),u.set(e,i),d.push(e),1===a&&o&&n.set(e,!0),1===i&&e.setAttribute(s,"true"),o||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(i),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=u.get(e)-1;t.set(e,r),u.set(e,o),r||(n.has(e)||e.removeAttribute(c),n.delete(e)),o||e.removeAttribute(s)}),--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,a,i,s,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 u=("function"==typeof SuppressedError&&SuppressedError,e.i(539922)),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="u">typeof window?u.useLayoutEffect:u.useEffect,m=new WeakMap,h=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={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 a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=c({async:!0,ssr:!1},t),a),g=function(){},y=u.forwardRef(function(e,t){var n,r,o,a,i=u.useRef(null),s=u.useState({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:g}),d=s[0],f=s[1],y=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,x=e.enabled,C=e.shards,R=e.sideCar,D=e.noRelative,S=e.noIsolation,P=e.inert,j=e.allowPinchZoom,N=e.as,T=e.gapMode,k=l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[i,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(o=(0,u.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,a=o.facade,v(function(){var e=m.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,o)})}m.set(a,n)},[n]),a),O=c(c({},k),d);return u.createElement(u.Fragment,null,x&&u.createElement(R,{sideCar:h,removeScrollBar:w,shards:C,noRelative:D,noIsolation:S,inert:P,setCallbacks:f,allowPinchZoom:!!j,lockRef:i,gapMode:T}),y?u.cloneElement(u.Children.only(b),c(c({},O),{ref:L})):u.createElement(void 0===N?"div":N,c({},O,{className:E,ref:L}),b))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:d};var b=function(e){var t=e.sideCar,n=l(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 u.createElement(r,c({},n))};b.isSideCarExport=!0;var E=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=s||("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=E();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||"",10)||0},D=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[R(n),R(r),R(o)]},S=function(e){if(void 0===e&&(e="margin"),"u"