"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[786],{78369:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(c),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};c.forEach(m);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},6088:function(e,t,n){n.d(t,{Z:function(){return q}});var r,o,i,l,a,u,c,s=function(){return(s=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}"function"==typeof SuppressedError&&SuppressedError;var f=n(2265),p="right-scroll-bar-position",m="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var h="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,w=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),l=[],a=!1,u={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=i(e,a);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){a=!0;var t=[];if(l.length){var n=l;l=[],n.forEach(e),t=l}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=s({async:!0,ssr:!1},o),u),y=function(){},b=f.forwardRef(function(e,t){var n,r,o,i,l=f.useRef(null),a=f.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),u=a[0],c=a[1],p=e.forwardProps,m=e.children,b=e.className,E=e.removeScrollBar,x=e.enabled,S=e.shards,C=e.sideCar,R=e.noIsolation,T=e.inert,P=e.allowPinchZoom,A=e.as,L=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),M=(n=[l,t],r=function(e){return n.forEach(function(t){return v(t,e)})},(o=(0,f.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,h(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}g.set(i,n)},[n]),i),O=s(s({},L),u);return f.createElement(f.Fragment,null,x&&f.createElement(C,{sideCar:w,removeScrollBar:E,shards:S,noIsolation:R,inert:T,setCallbacks:c,allowPinchZoom:!!P,lockRef:l}),p?f.cloneElement(f.Children.only(m),s(s({},O),{ref:M})):f.createElement(void 0===A?"div":A,s({},O,{className:b,ref:M}),m))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:m,zeroRight:p};var E=function(e){var t=e.sideCar,n=d(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 f.createElement(r,s({},n))};E.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S=function(){var e=x();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=S();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},T=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[T(n),T(r),T(o)]},A=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=P(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},L=C(),M="data-scroll-locked",O=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(m," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},k=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},D=function(){f.useEffect(function(){return document.body.setAttribute(M,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},I=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D();var i=f.useMemo(function(){return A(o)},[o]);return f.createElement(L,{styles:O(i,!t,o,n?"":"!important")})},W=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return W=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){W=!1}var _=!!W&&{passive:!1},V=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},H=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),F(e,n)){var r=B(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},F=function(e,t){return"v"===e?V(t,"overflowY"):V(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},Z=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var m=B(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&F(e,u)&&(f+=h,p+=v),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&0===f||!o&&a>f)?s=!0:!d&&(o&&0===p||!o&&-a>p)&&(s=!0),s},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},U=0,j=[],Y=(c=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(U++)[0],i=f.useState(function(){return C()})[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=H(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=H(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return Z(p,t,e,"h"===p?u:c,!0)},[]),u=f.useCallback(function(e){if(j.length&&j[j.length-1]===i){var n="deltaY"in e?$(e):K(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=f.useCallback(function(e){n.current=K(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,$(t),t.target,a(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,K(t),t.target,a(t,e.lockRef.current))},[]);f.useEffect(function(){return j.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,_),document.addEventListener("touchmove",u,_),document.addEventListener("touchstart",s,_),function(){j=j.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,_),document.removeEventListener("touchmove",u,_),document.removeEventListener("touchstart",s,_)}},[]);var m=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?f.createElement(I,{gapMode:"margin"}):null)},w.useMedium(c),E),X=f.forwardRef(function(e,t){return f.createElement(b,s({},e,{ref:t,sideCar:Y}))});X.classNames=b.classNames;var q=X},62361:function(e,t,n){n.d(t,{u:function(){return r}});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},90976:function(e,t,n){n.d(t,{B:function(){return a}});var r=n(2265),o=n(98324),i=n(1584),l=n(71538);function a(e){let t=e+"CollectionProvider",[n,a]=(0,o.b)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",d=r.forwardRef((e,t)=>{let{scope:n,children:o}=e,a=c(s,n),u=(0,i.e)(t,a.collectionRef);return r.createElement(l.g7,{ref:u},o)}),f=e+"CollectionItemSlot",p="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return r.createElement(u,{scope:t,itemMap:i,collectionRef:o},n)},Slot:d,ItemSlot:r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,u=r.useRef(null),s=(0,i.e)(t,u),d=c(f,n);return r.useEffect(()=>(d.itemMap.set(u,{ref:u,...a}),()=>void d.itemMap.delete(u))),r.createElement(l.g7,{[p]:"",ref:s},o)})},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},a]}},87513:function(e,t,n){n.d(t,{_9:function(){return i},gm:function(){return l}});var r=n(2265);let o=(0,r.createContext)(void 0),i=e=>{let{dir:t,children:n}=e;return(0,r.createElement)(o.Provider,{value:t},n)};function l(e){let t=(0,r.useContext)(o);return e||t||"ltr"}},53938:function(e,t,n){let r;n.d(t,{I0:function(){return g},XB:function(){return f},fC:function(){return h}});var o=n(22988),i=n(2265),l=n(78149),a=n(25171),u=n(1584),c=n(75137);let s="dismissableLayer.update",d=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,i.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:w,onDismiss:y,...b}=e,E=(0,i.useContext)(d),[x,S]=(0,i.useState)(null),C=null!==(n=null==x?void 0:x.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,R]=(0,i.useState)({}),T=(0,u.e)(t,e=>S(e)),P=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),L=P.indexOf(A),M=x?P.indexOf(x):-1,O=E.layersWithOutsidePointerEventsDisabled.size>0,k=M>=L,D=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(e),r=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){v("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!k||n||(null==h||h(e),null==w||w(e),e.defaultPrevented||null==y||y())},C),I=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(e),r=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!r.current&&v("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==y||y())},C);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{M!==E.layers.size-1||(null==p||p(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),(0,i.useEffect)(()=>{if(x)return f&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(x)),E.layers.add(x),m(),()=>{f&&1===E.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[x,C,f,E]),(0,i.useEffect)(()=>()=>{x&&(E.layers.delete(x),E.layersWithOutsidePointerEventsDisabled.delete(x),m())},[x,E]),(0,i.useEffect)(()=>{let e=()=>R({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,i.createElement)(a.WV.div,(0,o.Z)({},b,{ref:T,style:{pointerEvents:O?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,l.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,l.M)(e.onPointerDownCapture,D.onPointerDownCapture)}))}),p=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(d),r=(0,i.useRef)(null),l=(0,u.e)(t,r);return(0,i.useEffect)(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,i.createElement)(a.WV.div,(0,o.Z)({},e,{ref:l}))});function m(){let e=new CustomEvent(s);document.dispatchEvent(e)}function v(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}let h=f,g=p},20589:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(2265);let o=0;function i(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},80467:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(22988),i=n(2265),l=n(1584),a=n(25171),u=n(75137);let c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,i.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...w}=e,[y,b]=(0,i.useState)(null),E=(0,u.W)(f),x=(0,u.W)(g),S=(0,i.useRef)(null),C=(0,l.e)(t,e=>b(e)),R=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(r){function e(e){if(R.paused||!y)return;let t=e.target;y.contains(t)?S.current=t:v(S.current,{select:!0})}function t(e){if(R.paused||!y)return;let t=e.relatedTarget;null===t||y.contains(t)||v(S.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&&v(y)});return y&&n.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,y,R.paused]),(0,i.useEffect)(()=>{if(y){h.add(R);let e=document.activeElement;if(!y.contains(e)){let t=new CustomEvent(c,d);y.addEventListener(c,E),y.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(p(y).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(y))}return()=>{y.removeEventListener(c,E),setTimeout(()=>{let t=new CustomEvent(s,d);y.addEventListener(s,x),y.dispatchEvent(t),t.defaultPrevented||v(null!=e?e:document.body,{select:!0}),y.removeEventListener(s,x),h.remove(R)},0)}}},[y,E,x,R]);let T=(0,i.useCallback)(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&v(i,{select:!0})):(e.preventDefault(),n&&v(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,i.createElement)(a.WV.div,(0,o.Z)({tabIndex:-1},w,{ref:C,onKeyDown:T}))});function p(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 m(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 v(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()}}let h=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},53201:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(2265),i=n(1336);let l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>null!=e?e:String(a++))},[e]),e||(t?`radix-${t}`:"")}},25510:function(e,t,n){n.d(t,{ee:function(){return e$},Eh:function(){return eU},VY:function(){return ez},fC:function(){return eK},D7:function(){return eM}});var r=n(22988),o=n(2265);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,u=Math.round,c=Math.floor,s=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(m(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>f[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>d[e])}function E(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function S(e,t,n){let r,{reference:o,floating:i}=e,l=w(t),a=h(w(t)),u=g(a),c=m(t),s="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(v(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=S(c,r,u),f=r,p={},m=0;for(let n=0;ne[t]>=0)}async function A(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=m(n),a=v(n),u="y"===w(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,d=p(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof g&&(h="end"===a?-1*g:g),u?{x:h*s,y:f*c}:{x:f*c,y:h*s}}function L(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof M(e).Node}function D(e){return e instanceof Element||e instanceof M(e).Element}function I(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function W(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function _(e){let t=V(),n=F(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function H(e){return["html","body","#document"].includes(L(e))}function F(e){return M(e).getComputedStyle(e)}function B(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z(e){if("html"===L(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||O(e);return W(t)?t.host:t}function K(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Z(t);return H(n)?t.ownerDocument?t.ownerDocument.body:t.body:I(n)&&N(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=M(o);return i?t.concat(l,l.visualViewport||[],N(o)?o:[],l.frameElement&&n?K(l.frameElement):[]):t.concat(o,K(o,[],n))}function $(e){let t=F(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=u(n)!==i||u(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function z(e){return D(e)?e:e.contextElement}function U(e){let t=z(e);if(!I(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$(t),l=(i?u(n.width):n.width)/r,a=(i?u(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let j=s(0);function Y(e){let t=M(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:j}function X(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=z(e),a=s(1);t&&(r?D(r)&&(a=U(r)):a=U(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===M(l))&&o)?Y(l):s(0),c=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l){let e=M(l),t=r&&D(r)?M(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=U(o),t=o.getBoundingClientRect(),r=F(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=l,o=(n=M(o)).frameElement}}return x({width:f,height:p,x:c,y:d})}let q=[":popover-open",":modal"];function G(e){return q.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function J(e){return X(O(e)).left+B(e).scrollLeft}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=M(e),r=O(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=V();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=O(e),n=B(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+J(e),u=-n.scrollTop;return"rtl"===F(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(O(e));else if(D(t))r=function(e,t){let n=X(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?U(e):s(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=Y(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function ee(e){return"static"===F(e).position}function et(e,t){return I(e)&&"fixed"!==F(e).position?t?t(e):e.offsetParent:null}function en(e,t){let n=M(e);if(G(e))return n;if(!I(e)){let t=Z(e);for(;t&&!H(t);){if(D(t)&&!ee(t))return t;t=Z(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(L(r))&&ee(r);)r=et(r,t);return r&&H(r)&&ee(r)&&!_(r)?n:r||function(e){let t=Z(e);for(;I(t)&&!H(t);){if(_(t))return t;t=Z(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=I(t),o=O(t),i="fixed"===n,l=X(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i){if(("body"!==L(t)||N(o))&&(a=B(t)),r){let e=X(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=J(o))}return{x:l.left+a.scrollLeft-u.x,y:l.top+a.scrollTop-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=O(r),a=!!t&&G(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),f=I(r);if((f||!f&&!i)&&(("body"!==L(r)||N(l))&&(u=B(r)),I(r))){let e=X(r);c=U(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x,y:n.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?G(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=K(e,[],!1).filter(e=>D(e)&&"body"!==L(e)),o=null,i="fixed"===F(e).position,l=i?Z(e):e;for(;D(l)&&!H(l);){let t=F(l),n=_(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||N(l)&&!n&&function e(t,n){let r=Z(t);return!(r===n||!D(r)||H(r))&&("fixed"===F(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=Z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=i[0],c=i.reduce((e,n)=>{let r=Q(t,n,o);return e.top=a(r.top,e.top),e.right=l(r.right,e.right),e.bottom=l(r.bottom,e.bottom),e.left=a(r.left,e.left),e},Q(t,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=$(e);return{width:t,height:n}},getScale:U,isElement:D,isRTL:function(e){return"rtl"===F(e).direction}},ei=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:u,elements:c,middlewareData:s}=t,{element:d,padding:f=0}=p(e,t)||{};if(null==d)return{};let m=E(f),y={x:n,y:r},b=h(w(o)),x=g(b),S=await u.getDimensions(d),C="y"===b,R=C?"clientHeight":"clientWidth",T=i.reference[x]+i.reference[b]-y[b]-i.floating[x],P=y[b]-i.reference[b],A=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),L=A?A[R]:0;L&&await (null==u.isElement?void 0:u.isElement(A))||(L=c.floating[R]||i.floating[x]);let M=L/2-S[x]/2-1,O=l(m[C?"top":"left"],M),k=l(m[C?"bottom":"right"],M),D=L-S[x]-k,I=L/2-S[x]/2+(T/2-P/2),W=a(O,l(I,D)),N=!s.arrow&&null!=v(o)&&I!==W&&i.reference[x]/2-(I{let r=new Map,o={platform:eo,...n},i={...o.platform,_c:r};return C(e,t,{...o,platform:i})};var ea=n(54887),eu="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function ec(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ec(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ec(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function es(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(e,t){let n=es(e);return Math.round(t*n)/n}function ef(e){let t=o.useRef(e);return eu(()=>{t.current=e}),t}let ep=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ei({element:n.current,padding:r}).fn(t):{}:n?ei({element:n,padding:r}).fn(t):{}}}),em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await A(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=p(n,e),d={x:t,y:r},f=await R(e,s),v=w(m(o)),g=h(v),y=d[g],b=d[v];if(i){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+f[e],r=y-f[t];y=a(n,l(y,r))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+f[e],r=b-f[t];b=a(n,l(b,r))}let E=c.fn({...e,[g]:y,[v]:b});return{...E,data:{x:E.x-t,y:E.y-r}}}}),options:[e,t]}},eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=p(n,e),s={x:t,y:r},d=w(o),f=h(d),v=s[f],g=s[d],y=p(a,e),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+b.mainAxis,n=i.reference[f]+i.reference[e]-b.mainAxis;vn&&(v=n)}if(c){var E,x;let e="y"===f?"width":"height",t=["top","left"].includes(m(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(E=l.offset)?void 0:E[d])||0)+(t?0:b.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[d])||0)-(t?b.crossAxis:0);gr&&(g=r)}return{[f]:v,[d]:g}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=e,{mainAxis:E=!0,crossAxis:x=!0,fallbackPlacements:S,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...A}=p(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let L=m(a),M=m(s)===s,O=await (null==d.isRTL?void 0:d.isRTL(f.floating)),k=S||(M||!P?[b(s)]:function(e){let t=b(e);return[y(e),t,y(t)]}(s));S||"none"===T||k.push(...function(e,t,n,r){let o=v(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(s,P,T,O));let D=[s,...k],I=await R(e,A),W=[],N=(null==(r=u.flip)?void 0:r.overflows)||[];if(E&&W.push(I[L]),x){let e=function(e,t,n){void 0===n&&(n=!1);let r=v(e),o=h(w(e)),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=b(l)),[l,b(l)]}(a,c,O);W.push(I[e[0]],I[e[1]])}if(N=[...N,{placement:a,overflows:W}],!W.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(C){case"bestFit":{let e=null==(l=N.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:u,elements:c}=e,{apply:s=()=>{},...d}=p(n,e),f=await R(e,d),h=m(o),g=v(o),y="y"===w(o),{width:b,height:E}=i.floating;"top"===h||"bottom"===h?(t=h,r=g===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=h,t="end"===g?"top":"bottom");let x=E-f.top-f.bottom,S=b-f.left-f.right,C=l(E-f[t],x),T=l(b-f[r],S),P=!e.middlewareData.shift,A=C,L=T;if(y?L=g||P?l(T,S):S:A=g||P?l(C,x):x,P&&!g){let e=a(f.left,0),t=a(f.right,0),n=a(f.top,0),r=a(f.bottom,0);y?L=b-2*(0!==e||0!==t?e+t:a(f.left,f.right)):A=E-2*(0!==n||0!==r?n+r:a(f.top,f.bottom))}await s({...e,availableWidth:L,availableHeight:A});let M=await u.getDimensions(c.floating);return b!==M.width||E!==M.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=p(n,e);switch(r){case"referenceHidden":{let n=T(await R(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{let n=T(await R(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}}),options:[e,t]}},eb=(e,t)=>({...ep(e),options:[e,t]});var eE=n(25171);let ex=(0,o.forwardRef)((e,t)=>{let{children:n,width:i=10,height:l=5,...a}=e;return(0,o.createElement)(eE.WV.svg,(0,r.Z)({},a,{ref:t,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var eS=n(1584),eC=n(98324),eR=n(75137),eT=n(1336),eP=n(75238);let eA="Popper",[eL,eM]=(0,eC.b)(eA),[eO,ek]=eL(eA),eD=(0,o.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:i,...l}=e,a=ek("PopperAnchor",n),u=(0,o.useRef)(null),c=(0,eS.e)(t,u);return(0,o.useEffect)(()=>{a.onAnchorChange((null==i?void 0:i.current)||u.current)}),i?null:(0,o.createElement)(eE.WV.div,(0,r.Z)({},l,{ref:c}))}),eI="PopperContent",[eW,eN]=eL(eI),e_=(0,o.forwardRef)((e,t)=>{var n,i,u,s,d,f,p,m;let{__scopePopper:v,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:C="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:P,...A}=e,L=ek(eI,v),[M,k]=(0,o.useState)(null),D=(0,eS.e)(t,e=>k(e)),[I,W]=(0,o.useState)(null),N=(0,eP.t)(I),_=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,V=null!==(i=null==N?void 0:N.height)&&void 0!==i?i:0,H="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},F=Array.isArray(x)?x:[x],B=F.length>0,Z={padding:H,boundary:F.filter(eF),altBoundary:B},{refs:$,floatingStyles:U,placement:j,isPositioned:Y,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);ec(p,r)||m(r);let[v,h]=o.useState(null),[g,w]=o.useState(null),y=o.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),b=o.useCallback(e=>{e!==C.current&&(C.current=e,w(e))},[]),E=l||v,x=a||g,S=o.useRef(null),C=o.useRef(null),R=o.useRef(d),T=null!=c,P=ef(c),A=ef(i),L=o.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),el(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!ec(R.current,t)&&(R.current=t,ea.flushSync(()=>{f(t)}))})},[p,t,n,A]);eu(()=>{!1===s&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let M=o.useRef(!1);eu(()=>(M.current=!0,()=>{M.current=!1}),[]),eu(()=>{if(E&&(S.current=E),x&&(C.current=x),E&&x){if(P.current)return P.current(E,x,L);L()}},[E,x,L,P,T]);let O=o.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:b}),[y,b]),k=o.useMemo(()=>({reference:E,floating:x}),[E,x]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=ed(k.floating,d.x),r=ed(k.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...es(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,k.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:L,refs:O,elements:k,floatingStyles:D}),[d,L,O,k,D])}({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=z(e),m=i||u?[...p?K(p):[],...K(t)]:[];m.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let v=p&&d?function(e,t){let n,r=null,o=O(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(s,d){void 0===s&&(s=!1),void 0===d&&(d=1),i();let{left:f,top:p,width:m,height:v}=e.getBoundingClientRect();if(s||t(),!m||!v)return;let h=c(p),g=c(o.clientWidth-(f+m)),w={rootMargin:-h+"px "+-g+"px "+-c(o.clientHeight-(p+v))+"px "+-c(f)+"px",threshold:a(0,l(1,d))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==d){if(!y)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,w)}r.observe(e)}(!0),i}(p,n):null,h=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let w=f?X(e):null;return f&&function t(){let r=X(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===T}),elements:{reference:L.anchor},middleware:[em({mainAxis:g+V,alignmentAxis:y}),E&&ev({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?eh():void 0,...Z}),E&&eg({...Z}),ew({...Z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),I&&eb({element:I,padding:b}),eB({arrowWidth:_,arrowHeight:V}),R&&ey({strategy:"referenceHidden",...Z})]}),[G,J]=eZ(j),Q=(0,eR.W)(P);(0,eT.b)(()=>{Y&&(null==Q||Q())},[Y,Q]);let ee=null===(u=q.arrow)||void 0===u?void 0:u.x,et=null===(s=q.arrow)||void 0===s?void 0:s.y,en=(null===(d=q.arrow)||void 0===d?void 0:d.centerOffset)!==0,[er,eo]=(0,o.useState)();return(0,eT.b)(()=>{M&&eo(window.getComputedStyle(M).zIndex)},[M]),(0,o.createElement)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(f=q.transformOrigin)||void 0===f?void 0:f.x,null===(p=q.transformOrigin)||void 0===p?void 0:p.y].join(" ")},dir:e.dir},(0,o.createElement)(eW,{scope:v,placedSide:G,onArrowChange:W,arrowX:ee,arrowY:et,shouldHideArrow:en},(0,o.createElement)(eE.WV.div,(0,r.Z)({"data-side":G,"data-align":J},A,{ref:D,style:{...A.style,animation:Y?void 0:"none",opacity:null!==(m=q.hide)&&void 0!==m&&m.referenceHidden?0:void 0}}))))}),eV={top:"bottom",right:"left",bottom:"top",left:"right"},eH=(0,o.forwardRef)(function(e,t){let{__scopePopper:n,...i}=e,l=eN("PopperArrow",n),a=eV[l.placedSide];return(0,o.createElement)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(ex,(0,r.Z)({},i,{ref:t,style:{...i.style,display:"block"}})))});function eF(e){return null!==e}let eB=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=eZ(a),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(l=c.arrow)||void 0===l?void 0:l.y)&&void 0!==i?i:0)+f/2,w="",y="";return"bottom"===p?(w=s?v:`${h}px`,y=`${-f}px`):"top"===p?(w=s?v:`${h}px`,y=`${u.floating.height+f}px`):"right"===p?(w=`${-f}px`,y=s?v:`${g}px`):"left"===p&&(w=`${u.floating.width+f}px`,y=s?v:`${g}px`),{data:{x:w,y:y}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}let eK=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,o.useState)(null);return(0,o.createElement)(eO,{scope:t,anchor:r,onAnchorChange:i},n)},e$=eD,ez=e_,eU=eH},56935:function(e,t,n){n.d(t,{h:function(){return a}});var r=n(22988),o=n(2265),i=n(54887),l=n(25171);let a=(0,o.forwardRef)((e,t)=>{var n;let{container:a=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...u}=e;return a?i.createPortal((0,o.createElement)(l.WV.div,(0,r.Z)({},u,{ref:t})),a):null})},31383:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(2265),o=n(54887),i=n(1584),l=n(1336);let a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=(0,r.useState)(),c=(0,r.useRef)({}),s=(0,r.useRef)(e),d=(0,r.useRef)("none"),[f,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=u(c.current);d.current="mounted"===f?e:"none"},[f]),(0,l.b)(()=>{let t=c.current,n=s.current;if(n!==e){let r=d.current,o=u(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,l.b)(()=>{if(i){let e=e=>{let t=u(c.current).includes(e.animationName);e.target===i&&t&&(0,o.flushSync)(()=>p("ANIMATION_END"))},t=e=>{e.target===i&&(d.current=u(c.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(c.current=getComputedStyle(e)),a(e)},[])}}(t),c="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),s=(0,i.e)(a.ref,c.ref);return"function"==typeof n||a.isPresent?(0,r.cloneElement)(c,{ref:s}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},52431:function(e,t,n){n.d(t,{fC:function(){return y},z$:function(){return b}});var r=n(22988),o=n(2265),i=n(98324),l=n(25171);let a="Progress",[u,c]=(0,i.b)(a),[s,d]=u(a),f=(0,o.forwardRef)((e,t)=>{let{__scopeProgress:n,value:i,max:a,getValueLabel:u=m,...c}=e,d=g(a)?a:100,f=w(i,d)?i:null,p=h(f)?u(f,d):void 0;return(0,o.createElement)(s,{scope:n,value:f,max:d},(0,o.createElement)(l.WV.div,(0,r.Z)({"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":h(f)?f:void 0,"aria-valuetext":p,role:"progressbar","data-state":v(f,d),"data-value":null!=f?f:void 0,"data-max":d},c,{ref:t})))});f.propTypes={max(e,t,n){let r=e[t],o=String(r);return r&&!g(r)?Error(`Invalid prop \`max\` of value \`${o}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],o=String(r),i=g(e.max)?e.max:100;return null==r||w(r,i)?null:Error(`Invalid prop \`value\` of value \`${o}\` supplied to \`${n}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` if the progress is indeterminate. Defaulting to \`null\`.`)}};let p=(0,o.forwardRef)((e,t)=>{var n;let{__scopeProgress:i,...a}=e,u=d("ProgressIndicator",i);return(0,o.createElement)(l.WV.div,(0,r.Z)({"data-state":v(u.value,u.max),"data-value":null!==(n=u.value)&&void 0!==n?n:void 0,"data-max":u.max},a,{ref:t}))});function m(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function h(e){return"number"==typeof e}function g(e){return h(e)&&!isNaN(e)&&e>0}function w(e,t){return h(e)&&!isNaN(e)&&e<=t&&e>=0}let y=f,b=p},17549:function(e,t,n){n.d(t,{$G:function(){return eI},B4:function(){return eS},JO:function(){return eC},VY:function(){return eT},Z0:function(){return eW},ZA:function(){return eA},__:function(){return eL},ck:function(){return eM},eT:function(){return eO},fC:function(){return eE},h_:function(){return eR},l_:function(){return eP},u_:function(){return eD},wU:function(){return ek},xz:function(){return ex}});var r=n(22988),o=n(2265),i=n(54887),l=n(62361),a=n(78149),u=n(90976),c=n(1584),s=n(98324),d=n(87513),f=n(53938),p=n(20589),m=n(80467),v=n(53201),h=n(25510),g=n(56935),w=n(25171),y=n(71538),b=n(75137),E=n(91715),x=n(1336),S=n(47250),C=n(31725),R=n(78369),T=n(6088);let P=[" ","Enter","ArrowUp","ArrowDown"],A=[" ","Enter"],L="Select",[M,O,k]=(0,u.B)(L),[D,I]=(0,s.b)(L,[k,h.D7]),W=(0,h.D7)(),[N,_]=D(L),[V,H]=D(L),F=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...l}=e,u=W(n),s=_("SelectTrigger",n),d=s.disabled||i,f=(0,c.e)(t,s.onTriggerChange),p=O(n),[m,v,g]=ey(e=>{let t=p().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=eb(t,e,n);void 0!==r&&s.onValueChange(r.value)}),y=()=>{d||(s.onOpenChange(!0),g())};return(0,o.createElement)(h.ee,(0,r.Z)({asChild:!0},u),(0,o.createElement)(w.WV.button,(0,r.Z)({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eg(s.value)?"":void 0},l,{ref:f,onClick:(0,a.M)(l.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,a.M)(l.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(y(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,a.M)(l.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(y(),e.preventDefault())})})))}),B=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,className:i,style:l,children:a,placeholder:u="",...s}=e,d=_("SelectValue",n),{onValueNodeHasChildrenChange:f}=d,p=void 0!==a,m=(0,c.e)(t,d.onValueNodeChange);return(0,x.b)(()=>{f(p)},[f,p]),(0,o.createElement)(w.WV.span,(0,r.Z)({},s,{ref:m,style:{pointerEvents:"none"}}),eg(d.value)?(0,o.createElement)(o.Fragment,null,u):a)}),Z=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,children:i,...l}=e;return(0,o.createElement)(w.WV.span,(0,r.Z)({"aria-hidden":!0},l,{ref:t}),i||"▼")}),K="SelectContent",$=(0,o.forwardRef)((e,t)=>{let n=_(K,e.__scopeSelect),[l,a]=(0,o.useState)();return((0,x.b)(()=>{a(new DocumentFragment)},[]),n.open)?(0,o.createElement)(j,(0,r.Z)({},e,{ref:t})):l?(0,i.createPortal)((0,o.createElement)(z,{scope:e.__scopeSelect},(0,o.createElement)(M.Slot,{scope:e.__scopeSelect},(0,o.createElement)("div",null,e.children))),l):null}),[z,U]=D(K),j=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:s,side:d,sideOffset:v,align:h,alignOffset:g,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:x,hideWhenDetached:S,avoidCollisions:C,...P}=e,A=_(K,n),[L,M]=(0,o.useState)(null),[k,D]=(0,o.useState)(null),I=(0,c.e)(t,e=>M(e)),[W,N]=(0,o.useState)(null),[V,H]=(0,o.useState)(null),F=O(n),[B,Z]=(0,o.useState)(!1),$=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(L)return(0,R.Ry)(L)},[L]),(0,p.EW)();let U=(0,o.useCallback)(e=>{let[t,...n]=F().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[F,k]),j=(0,o.useCallback)(()=>U([W,L]),[U,W,L]);(0,o.useEffect)(()=>{B&&j()},[B,j]);let{onOpenChange:q,triggerPointerDownPosRef:G}=A;(0,o.useEffect)(()=>{if(L){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=G.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=G.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():L.contains(n.target)||q(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[L,q,G]),(0,o.useEffect)(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[J,Q]=ey(e=>{let t=F().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eb(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=(0,o.useCallback)((e,t,n)=>{let r=!$.current&&!n;(void 0!==A.value&&A.value===t||r)&&(N(e),r&&($.current=!0))},[A.value]),et=(0,o.useCallback)(()=>null==L?void 0:L.focus(),[L]),en=(0,o.useCallback)((e,t,n)=>{let r=!$.current&&!n;(void 0!==A.value&&A.value===t||r)&&H(e)},[A.value]),er="popper"===i?X:Y;return(0,o.createElement)(z,{scope:n,content:L,viewport:k,onViewportChange:D,itemRefCallback:ee,selectedItem:W,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:j,selectedItemText:V,position:i,isPositioned:B,searchRef:J},(0,o.createElement)(T.Z,{as:y.g7,allowPinchZoom:!0},(0,o.createElement)(m.M,{asChild:!0,trapped:A.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.M)(l,e=>{var t;null===(t=A.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},(0,o.createElement)(f.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>A.onOpenChange(!1)},(0,o.createElement)(er,(0,r.Z)({role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:e=>e.preventDefault()},P,er===X?{side:d,sideOffset:v,align:h,alignOffset:g,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:x,hideWhenDetached:S,avoidCollisions:C}:{},{onPlaced:()=>Z(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:(0,a.M)(P.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})}))))))}),Y=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,u=_(K,n),s=U(K,n),[d,f]=(0,o.useState)(null),[p,m]=(0,o.useState)(null),v=(0,c.e)(t,e=>m(e)),h=O(n),g=(0,o.useRef)(!1),y=(0,o.useRef)(!0),{viewport:b,selectedItem:E,selectedItemText:S,focusSelectedItem:C}=s,R=(0,o.useCallback)(()=>{if(u.trigger&&u.valueNode&&d&&p&&b&&E&&S){let e=u.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=u.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==u.dir){let o=r.left-t.left,i=n.left-o,a=e.left-i,u=e.width+a,c=Math.max(u,t.width),s=window.innerWidth-10,f=(0,l.u)(i,[10,s-c]);d.style.minWidth=u+"px",d.style.left=f+"px"}else{let o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,u=e.width+a,c=Math.max(u,t.width),s=window.innerWidth-10,f=(0,l.u)(i,[10,s-c]);d.style.minWidth=u+"px",d.style.right=f+"px"}let o=h(),a=window.innerHeight-20,c=b.scrollHeight,s=window.getComputedStyle(p),f=parseInt(s.borderTopWidth,10),m=parseInt(s.paddingTop,10),v=parseInt(s.borderBottomWidth,10),w=f+m+c+parseInt(s.paddingBottom,10)+v,y=Math.min(5*E.offsetHeight,w),x=window.getComputedStyle(b),C=parseInt(x.paddingTop,10),R=parseInt(x.paddingBottom,10),T=e.top+e.height/2-10,P=E.offsetHeight/2,A=f+m+(E.offsetTop+P);if(A<=T){let e=E===o[o.length-1].ref.current;d.style.bottom="0px";let t=p.clientHeight-b.offsetTop-b.offsetHeight;d.style.height=A+Math.max(a-T,P+(e?R:0)+t+v)+"px"}else{let e=E===o[0].ref.current;d.style.top="0px";let t=Math.max(T,f+b.offsetTop+(e?C:0)+P);d.style.height=t+(w-A)+"px",b.scrollTop=A-T+b.offsetTop}d.style.margin="10px 0",d.style.minHeight=y+"px",d.style.maxHeight=a+"px",null==i||i(),requestAnimationFrame(()=>g.current=!0)}},[h,u.trigger,u.valueNode,d,p,b,E,S,u.dir,i]);(0,x.b)(()=>R(),[R]);let[T,P]=(0,o.useState)();(0,x.b)(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);let A=(0,o.useCallback)(e=>{e&&!0===y.current&&(R(),null==C||C(),y.current=!1)},[R,C]);return(0,o.createElement)(q,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:g,onScrollButtonChange:A},(0,o.createElement)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T}},(0,o.createElement)(w.WV.div,(0,r.Z)({},a,{ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))}),X=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,align:i="start",collisionPadding:l=10,...a}=e,u=W(n);return(0,o.createElement)(h.VY,(0,r.Z)({},u,a,{ref:t,align:i,collisionPadding:l,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[q,G]=D(K,{}),J="SelectViewport",Q=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e,l=U(J,n),u=G(J,n),s=(0,c.e)(t,l.onViewportChange),d=(0,o.useRef)(0);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,o.createElement)(M.Slot,{scope:n},(0,o.createElement)(w.WV.div,(0,r.Z)({"data-radix-select-viewport":"",role:"presentation"},i,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,a.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(null!=r&&r.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o0?a:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})}))))}),[ee,et]=D("SelectGroup"),en=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e,l=(0,v.M)();return(0,o.createElement)(ee,{scope:n,id:l},(0,o.createElement)(w.WV.div,(0,r.Z)({role:"group","aria-labelledby":l},i,{ref:t})))}),er=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e,l=et("SelectLabel",n);return(0,o.createElement)(w.WV.div,(0,r.Z)({id:l.id},i,{ref:t}))}),eo="SelectItem",[ei,el]=D(eo),ea=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,value:i,disabled:l=!1,textValue:u,...s}=e,d=_(eo,n),f=U(eo,n),p=d.value===i,[m,h]=(0,o.useState)(null!=u?u:""),[g,y]=(0,o.useState)(!1),b=(0,c.e)(t,e=>{var t;return null===(t=f.itemRefCallback)||void 0===t?void 0:t.call(f,e,i,l)}),E=(0,v.M)(),x=()=>{l||(d.onValueChange(i),d.onOpenChange(!1))};if(""===i)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,o.createElement)(ei,{scope:n,value:i,disabled:l,textId:E,isSelected:p,onItemTextChange:(0,o.useCallback)(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},(0,o.createElement)(M.ItemSlot,{scope:n,value:i,disabled:l,textValue:m},(0,o.createElement)(w.WV.div,(0,r.Z)({role:"option","aria-labelledby":E,"data-highlighted":g?"":void 0,"aria-selected":p&&g,"data-state":p?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1},s,{ref:b,onFocus:(0,a.M)(s.onFocus,()=>y(!0)),onBlur:(0,a.M)(s.onBlur,()=>y(!1)),onPointerUp:(0,a.M)(s.onPointerUp,x),onPointerMove:(0,a.M)(s.onPointerMove,e=>{if(l){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.M)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}}),onKeyDown:(0,a.M)(s.onKeyDown,e=>{var t;(null===(t=f.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(A.includes(e.key)&&x()," "===e.key&&e.preventDefault())})}))))}),eu="SelectItemText",ec=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,className:l,style:a,...u}=e,s=_(eu,n),d=U(eu,n),f=el(eu,n),p=H(eu,n),[m,v]=(0,o.useState)(null),h=(0,c.e)(t,e=>v(e),f.onItemTextChange,e=>{var t;return null===(t=d.itemTextRefCallback)||void 0===t?void 0:t.call(d,e,f.value,f.disabled)}),g=null==m?void 0:m.textContent,y=(0,o.useMemo)(()=>(0,o.createElement)("option",{key:f.value,value:f.value,disabled:f.disabled},g),[f.disabled,f.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=p;return(0,x.b)(()=>(b(y),()=>E(y)),[b,E,y]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(w.WV.span,(0,r.Z)({id:f.textId},u,{ref:h})),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?(0,i.createPortal)(u.children,s.valueNode):null)}),es=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e;return el("SelectItemIndicator",n).isSelected?(0,o.createElement)(w.WV.span,(0,r.Z)({"aria-hidden":!0},i,{ref:t})):null}),ed="SelectScrollUpButton",ef=(0,o.forwardRef)((e,t)=>{let n=U(ed,e.__scopeSelect),i=G(ed,e.__scopeSelect),[l,a]=(0,o.useState)(!1),u=(0,c.e)(t,i.onScrollButtonChange);return(0,x.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){a(t.scrollTop>0)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,o.createElement)(ev,(0,r.Z)({},e,{ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}),ep="SelectScrollDownButton",em=(0,o.forwardRef)((e,t)=>{let n=U(ep,e.__scopeSelect),i=G(ep,e.__scopeSelect),[l,a]=(0,o.useState)(!1),u=(0,c.e)(t,i.onScrollButtonChange);return(0,x.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,o.createElement)(ev,(0,r.Z)({},e,{ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null}),ev=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...l}=e,u=U("SelectScrollButton",n),c=(0,o.useRef)(null),s=O(n),d=(0,o.useCallback)(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return(0,o.useEffect)(()=>()=>d(),[d]),(0,x.b)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[s]),(0,o.createElement)(w.WV.div,(0,r.Z)({"aria-hidden":!0},l,{ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,a.M)(l.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(i,50))}),onPointerMove:(0,a.M)(l.onPointerMove,()=>{var e;null===(e=u.onItemLeave)||void 0===e||e.call(u),null===c.current&&(c.current=window.setInterval(i,50))}),onPointerLeave:(0,a.M)(l.onPointerLeave,()=>{d()})}))}),eh=(0,o.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e;return(0,o.createElement)(w.WV.div,(0,r.Z)({"aria-hidden":!0},i,{ref:t}))});function eg(e){return""===e||void 0===e}let ew=(0,o.forwardRef)((e,t)=>{let{value:n,...i}=e,l=(0,o.useRef)(null),a=(0,c.e)(t,l),u=(0,S.D)(n);return(0,o.useEffect)(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[u,n]),(0,o.createElement)(C.T,{asChild:!0},(0,o.createElement)("select",(0,r.Z)({},i,{ref:a,defaultValue:n})))});function ey(e){let t=(0,b.W)(e),n=(0,o.useRef)(""),r=(0,o.useRef)(0),i=(0,o.useCallback)(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=(0,o.useCallback)(()=>{n.current="",window.clearTimeout(r.current)},[]);return(0,o.useEffect)(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function eb(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}ew.displayName="BubbleSelect";let eE=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:s,name:f,autoComplete:p,disabled:m,required:g}=e,w=W(t),[y,b]=(0,o.useState)(null),[x,S]=(0,o.useState)(null),[C,R]=(0,o.useState)(!1),T=(0,d.gm)(s),[P=!1,A]=(0,E.T)({prop:r,defaultProp:i,onChange:l}),[L,O]=(0,E.T)({prop:a,defaultProp:u,onChange:c}),k=(0,o.useRef)(null),D=!y||!!y.closest("form"),[I,_]=(0,o.useState)(new Set),H=Array.from(I).map(e=>e.props.value).join(";");return(0,o.createElement)(h.fC,w,(0,o.createElement)(N,{required:g,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,v.M)(),value:L,onValueChange:O,open:P,onOpenChange:A,dir:T,triggerPointerDownPosRef:k,disabled:m},(0,o.createElement)(M.Provider,{scope:t},(0,o.createElement)(V,{scope:e.__scopeSelect,onNativeOptionAdd:(0,o.useCallback)(e=>{_(t=>new Set(t).add(e))},[]),onNativeOptionRemove:(0,o.useCallback)(e=>{_(t=>{let n=new Set(t);return n.delete(e),n})},[])},n)),D?(0,o.createElement)(ew,{key:H,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:L,onChange:e=>O(e.target.value),disabled:m},void 0===L?(0,o.createElement)("option",{value:""}):null,Array.from(I)):null))},ex=F,eS=B,eC=Z,eR=e=>(0,o.createElement)(g.h,(0,r.Z)({asChild:!0},e)),eT=$,eP=Q,eA=en,eL=er,eM=ea,eO=ec,ek=es,eD=ef,eI=em,eW=eh},31725:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(22988),o=n(2265),i=n(25171);let l=(0,o.forwardRef)((e,t)=>(0,o.createElement)(i.WV.span,(0,r.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),a=l}}]);