1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[722],{6206:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}},5936:function(e,t,n){n.d(t,{B:function(){return a}});var r=n(7294),o=n(5360),i=n(8771),l=n(8426);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]}},5360:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(7294);function o(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=(0,r.createContext)(o),l=n.length;function a(t){let{scope:n,children:o,...a}=t,u=(null==n?void 0:n[e][l])||i,c=(0,r.useMemo)(()=>a,Object.values(a));return(0,r.createElement)(u.Provider,{value:c},o)}return n=[...n,o],a.displayName=t+"Provider",[a,function(n,a){let u=(null==a?void 0:a[e][l])||i,c=(0,r.useContext)(u);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}},8990:function(e,t,n){n.d(t,{gm:function(){return i}});var r=n(7294);let o=(0,r.createContext)(void 0);function i(e){let t=(0,r.useContext)(o);return e||t||"ltr"}},1276:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(7294),i=n(9981);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}`:"")}},9722:function(e,t,n){let r,o;n.d(t,{VY:function(){return nF},ZA:function(){return nB},JO:function(){return nN},ck:function(){return nz},eT:function(){return nK},__:function(){return nZ},h_:function(){return nH},fC:function(){return nW},$G:function(){return nj},u_:function(){return n$},Z0:function(){return nq},xz:function(){return n_},B4:function(){return nI},l_:function(){return nV}});var i,l,a,u,c,s,d,f=n(7462),p=n(7294),m=n(3935);function v(e,[t,n]){return Math.min(n,Math.max(t,e))}var h=n(6206),g=n(5936),w=n(8771),y=n(5360),b=n(8990),E=n(9602),x=n(9698);let S="dismissableLayer.update",C=(0,p.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R=(0,p.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...s}=e,d=(0,p.useContext)(C),[m,v]=(0,p.useState)(null),g=null!==(n=null==m?void 0:m.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,y]=(0,p.useState)({}),b=(0,w.e)(t,e=>v(e)),R=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),L=R.indexOf(k),A=m?R.indexOf(m):-1,M=d.layersWithOutsidePointerEventsDisabled.size>0,O=A>=L,D=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,x.W)(e),r=(0,p.useRef)(!1),o=(0,p.useRef)(()=>{});return(0,p.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){T("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=[...d.branches].some(e=>e.contains(t));!O||n||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==c||c())},g),W=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,x.W)(e),r=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{let e=e=>{e.target&&!r.current&&T("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;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==c||c())},g);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,x.W)(e);(0,p.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{A!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},g),(0,p.useEffect)(()=>
1{if(m)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),P(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=r)}},[m,g,o,d]),(0,p.useEffect)(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),P())},[m,d]),(0,p.useEffect)(()=>{let e=()=>y({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,p.createElement)(E.WV.div,(0,f.Z)({},s,{ref:b,style:{pointerEvents:M?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,h.M)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:(0,h.M)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:(0,h.M)(e.onPointerDownCapture,D.onPointerDownCapture)}))});function P(){let e=new CustomEvent(S);document.dispatchEvent(e)}function T(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,E.jH)(o,i):o.dispatchEvent(i)}let k=0;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}let A="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},D=(0,p.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,u]=(0,p.useState)(null),c=(0,x.W)(o),s=(0,x.W)(i),d=(0,p.useRef)(null),m=(0,w.e)(t,e=>u(e)),v=(0,p.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,p.useEffect)(()=>{if(r){function e(e){if(v.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:I(d.current,{select:!0})}function t(e){if(v.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||I(d.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&&I(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,v.paused]),(0,p.useEffect)(()=>{if(a){N.add(v);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(A,O);a.addEventListener(A,c),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(I(r,{select:t}),document.activeElement!==n)return}(W(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&I(a))}return()=>{a.removeEventListener(A,c),setTimeout(()=>{let t=new CustomEvent(M,O);a.addEventListener(M,s),a.dispatchEvent(t),t.defaultPrevented||I(null!=e?e:document.body,{select:!0}),a.removeEventListener(M,s),N.remove(v)},0)}}},[a,c,s,v]);let h=(0,p.useCallback)(e=>{if(!n&&!r||v.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=W(e);return[_(t,e),_(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&I(i,{select:!0})):(e.preventDefault(),n&&I(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,p.createElement)(E.WV.div,(0,f.Z)({tabIndex:-1},l,{ref:m,onKeyDown:h}))});function W(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 _(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 I(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 N=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=H(o,e)).unshift(e)},remove(e){var t;null===(t=(o=H(o,e))[0])||void 0===t||t.resume()}});function H(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var F=n(1276);let V=["top","right","bottom","left"],B=Math.min,Z=Math.max,z=Math.round,K=Math.floor,$=e=>({x:e,y:e}
1),j={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function Y(e,t){return"function"==typeof e?e(t):e}function U(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function G(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function Q(e){return["top","bottom"].includes(U(e))?"y":"x"}function ee(e){return e.replace(/start|end/g,e=>q[e])}function et(e){return e.replace(/left|right|bottom|top/g,e=>j[e])}function en(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function er(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 eo(e,t,n){let r,{reference:o,floating:i}=e,l=Q(t),a=G(Q(t)),u=J(a),c=U(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(X(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let ei=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}=eo(c,r,u),f=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:h,y:g,data:w,reset:y}=await v({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=h?h:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...w}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:s,y:d}=eo(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function el(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Y(t,e),m=en(p),v=a[f?"floating"===d?"reference":"floating":d],h=er(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=er(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:u}):g);return{top:(h.top-b.top+m.top)/y.y,bottom:(b.bottom-h.bottom+m.bottom)/y.y,left:(h.left-b.left+m.left)/y.x,right:(b.right-h.right+m.right)/y.x}}function ea(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eu(e){return V.some(t=>e[t]>=0)}async function ec(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=U(n),a=X(n),u="y"===Q(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,d=Y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function es(e){return ep(e)?(e.nodeName||"").toLowerCase():"#document"}function ed(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ef(e){var t;return null==(t=(ep(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ep(e){return e instanceof Node||e instanceof ed(e).Node}function em(e){return e instanceof Element||e instanceof ed(e).Element}function ev(e){return e instanceof HTMLElement||e instanceof ed(e).HTMLElement}function eh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ed(e).ShadowRoot)}function eg(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eE(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ew(e){let t=ey(),n=eE(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 ey(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function eb(e){return["html","body","#document"].includes(es(e))}function eE(e){return ed(e).getComputedStyle(e)}function ex(e){return em(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eS(e){if("html"===es(e))return e;let t=e.assignedSlot||e.parentNode||eh(e)&&e.host||ef(e);return eh(t)?t.host:t}function eC(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eS(t);return eb(n)?t.ownerDocument?t.ownerDocument.body:t.body:ev(n)&&eg(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ed(o);return i?t.concat(l,l.visualViewport||[],eg(o)?o:[],l.frameElement&&n?eC(l.frameElement):[]):t.concat(o,eC(o,[],n))}function eR(e){let t=eE(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ev(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=z(n)!==i||z(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eP(e){return em(e)?e:e.contextElement}function eT(e){let t=eP(e);if(!ev(t))return $(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eR(t),l=(i?z(n.width):n.width)/r,a=(i?z(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ek=$(0);function eL(e){let t=ed(e);return ey()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ek}function eA(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eP(e),a=$(1);t&&(r?em(r)&&(a=eT(r)):a=eT(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===ed(l))&&o)?eL(l):$(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=ed(l),t=r&&em(r)?ed(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=eT(o),t=o.getBoundingClientRect(),r=eE(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=(n=ed(o)).frameElement}}return er({width:d,height:f,x:c,y:s})}let eM=[":popover-open",":modal"];function eO(e){return eM.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eD(e){return eA(ef(e)).left+ex(e).scrollLeft}function eW(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=ed(e),r=ef(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=ey();(!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=ef(e),n=ex(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eD(e),a=-n.scrollTop;return"rtl"===eE(r).direction&&(l+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ef(e));else if(em(t))r=function(e,t){let n=eA(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ev(e)?eT(e):$(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=eL(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return er(r)}function e_(e){return"static"===eE(e).position}function eI(e,t){return ev(e)&&"fixed"!==eE(e).position?t?t(e):e.offsetParent:null}function eN(e,t){let n=ed(e);if(eO(e))return n;if(!ev(e)){let t=eS(e);for(;t&&!eb(t);){if(em(t)&&!e_(t))return t;t=eS(t)}return n}let r=eI(e,t);for(;r&&["table","td","th"].includes(es(r))&&e_(r);)r=eI(r,t);return r&&eb(r)&&e_(r)&&!ew(r)?n:r||function(e){let t=eS(e);for(;ev(t)&&!eb(t);){if(ew(t))return t;t=eS(t)}return null}(e)||n}let eH=async function(e){let t=this.getOffsetParent||eN,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ev(t),o=ef(t),i="fixed"===n,l=eA(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=$(0);if(r||!r&&!i){if(("body"!==es(t)||eg(o))&&(a=ex(t)),r){let e=eA(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eD(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}}},eF={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ef(r),a=!!t&&eO(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=$(1),s=$(0),d=ev(r);
1if((d||!d&&!i)&&(("body"!==es(r)||eg(l))&&(u=ex(r)),ev(r))){let e=eA(r);c=eT(r),s.x=e.x+r.clientLeft,s.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+s.x,y:n.y*c.y-u.scrollTop*c.y+s.y}},getDocumentElement:ef,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eO(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eC(e,[],!1).filter(e=>em(e)&&"body"!==es(e)),o=null,i="fixed"===eE(e).position,l=i?eS(e):e;for(;em(l)&&!eb(l);){let t=eE(l),n=ew(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||eg(l)&&!n&&function e(t,n){let r=eS(t);return!(r===n||!em(r)||eb(r))&&("fixed"===eE(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eS(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eW(t,n,o);return e.top=Z(r.top,e.top),e.right=B(r.right,e.right),e.bottom=B(r.bottom,e.bottom),e.left=Z(r.left,e.left),e},eW(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eN,getElementRects:eH,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eR(e);return{width:t,height:n}},getScale:eT,isElement:em,isRTL:function(e){return"rtl"===eE(e).direction}},eV=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=Y(e,t)||{};if(null==c)return{};let d=en(s),f={x:n,y:r},p=G(Q(o)),m=J(p),v=await l.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],y=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),E=b?b[g]:0;E&&await (null==l.isElement?void 0:l.isElement(b))||(E=a.floating[g]||i.floating[m]);let x=E/2-v[m]/2-1,S=B(d[h?"top":"left"],x),C=B(d[h?"bottom":"right"],x),R=E-v[m]-C,P=E/2-v[m]/2+(w/2-y/2),T=Z(S,B(P,R)),k=!u.arrow&&null!=X(o)&&P!==T&&i.reference[m]/2-(P<S?S:C)-v[m]/2<0,L=k?P<S?P-S:P-R:0;return{[p]:f[p]+L,data:{[p]:T,centerOffset:P-T-L,...k&&{alignmentOffset:L}},reset:k}}}),eB=(e,t,n)=>{let r=new Map,o={platform:eF,...n},i={...o.platform,_c:r};return ei(e,t,{...o,platform:i})},eZ=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?eV({element:n.current,padding:r}).fn(t):{}:n?eV({element:n,padding:r}).fn(t):{}}});var ez="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function eK(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(!eK(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)&&!eK(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e$(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ej(e,t){let n=e$(e);return Math.round(t*n)/n}function eq(e){let t=p.useRef(e);return ez(()=>{t.current=e}),t}let eY=(0,p.forwardRef)((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,p.createElement)(E.WV.svg,(0,f.Z)({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,p.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var eU=n(9981);let eX="Popper",[eG,eJ]=(0,y.b)(eX),[eQ,e0]=eG(eX),e1=(0,p.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=e0("PopperAnchor",n),l=(0,p.useRef)(null),a=(0,w.e)(t,l);return(0,p.useEffect)(()=>{i.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,p.createElement)(E.WV.div,(0,f.Z)({},o,{ref:a}))}),e2="PopperContent",[e9,e7]=eG(e2),e6=(0,p.forwardRef)((e,t)=>{var n,r,o,i,l,a,u,c,s,d,v,h,g,y;let{__scopePopper:b,side:S="bottom",sideOffset:C=0,align:R="center",alignOffset:P=0,arrowPadding:T=0,avoidCollisions:k=!0,collisionBoundary:L=[],collisionPadding:A=0,sticky:M="partial",hideWhenDetached:O=!1,updatePositionStrategy:D="optimized",onPlaced:W,..._}=e,I=e0(e2,b),[N,H]=(0,p.useState)(null),F=(0,w.e)(t,e=>H(e)),[V,z]=(0,p.useState)(null),$=function(e){let[t,n]=(0,p.useState)(void 0);return(0,eU.b)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(V),j=null!==(n=null==$?void 0:$.width)&&void 0!==n?n:0,q=null!==(r=null==$?void 0:$.height)&&void 0!==r?r:0,en="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},er=Array.isArray(L)?L:[L],eo=er.length>0,ei={padding:en,boundary:er.filter(e5),altBoundary:eo},{refs:es,floatingStyles:ed,placement:ep,isPositioned:em,middlewareData:ev}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[s,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=p.useState(r);eK(f,r)||v(r);let[h,g]=p.useState(null),[w,y]=p.useState(null),b=p.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),E=p.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=i||h,S=l||w,C=p.useRef(null),R=p.useRef(null),P=p.useRef(s),T=null!=u,k=eq(u),L=eq(o),A=p.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:f};L.current&&(e.platform=L.current),eB(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!eK(P.current,t)&&(P.current=t,m.flushSync(()=>{d(t)}))})},[f,t,n,L]);ez(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let M=p.useRef(!1);ez(()=>(M.current=!0,()=>{M.current=!1}),[]),ez(()=>{if(x&&(C.current=x),S&&(R.current=S),x&&S){if(k.current)return k.current(x,S,A);A()}},[x,S,A,k,T]);let O=p.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:E}),[b,E]),D=p.useMemo(()=>({reference:x,floating:S}),[x,S]),W=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ej(D.floating,s.x),r=ej(D.floating,s.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...e$(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,s.x,s.y]);return p.useMemo(()=>({...s,update:A,refs:O,elements:D,floatingStyles:W}),[s,A,O,D,W])}({strategy:"fixed",placement:S+("center"!==R?"-"+R:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eP(e),d=i||l?[...s?eC(s):[],...eC(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=ef(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let{left:c,top:s,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let p=K(s),m=K(o.clientWidth-(c+d)),v={rootMargin:-p+"px "+-m+"px "+-K(o.clientHeight-(s+f))+"px "+-K(c)+"px",threshold:Z(0,B(1,u))||1},h=!0;function g(e){let t=e[0].intersectionRatio;if(t!==u){if(!h)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}h=!1}try{r=new IntersectionObserver(g,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),i}(s,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),m.observe(t));let v=c?eA(e):null;return c&&function t(){let r=eA(e);v&&(r.x!==v.x||r.y!==v.y||r.width!==v.width||r.height!==v.height)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===D}),elements:{reference:I.anchor},middleware:[{name:"offset",options:s={mainAxis:C+q,alignmentAxis:P},async fn(e){var t,n;let{x:r,y:o,placement:i,middlewareData:l}=e,a=await ec(e,s);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:i}}}},k&&{name:"shift",options:v={mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(void 0===d&&(d={}),{options:d,fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Y(d,e),c={x:t,y:n},s=Q(r),f=G(s),p=c[f],m=c[s],v=Y(l,e),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+h.mainAxis,n=o.reference[f]+o.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,w;let e="y"===f?"width":"height",t=["top","left"].includes(U(r)),n=o.reference[s]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[s])||0)+(t?0:h.crossAxis),l=o.reference[s]+o.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[s])||0)-(t?h.crossAxis:0);m<n?m=n:m>l&&(m=l)}return{[f]:p,[s]:m}}}):void 0,...ei},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=Y(v,e),u={x:t,y:n},c=await el(e,a),s=Q(U(r)),d=G(s),f=u[d],p=u[s];if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=f+c[e],r=f-c[t];f=Z(n,B(f,r))}if(i){let e="y"===s?"top":"left",t="y"===s?"bottom":"right",n=p+c[e],r=p-c[t];p=Z(n,B(p,r))}let m=l.fn({...e,[d]:f,[s]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}},k&&{name:"flip",options:h={...ei},async fn(e){var t,n,r,o,i;let{placement:l,middlewareData:a,rects:u,initialPlacement:c,platform:s,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=Y(h,e);if(null!=(t=a.arrow)&&t.alignmentOffset)return{};let b=U(l),E=U(c)===c,x=await (null==s.isRTL?void 0:s.isRTL(d.floating)),S=m||(E||!w?[et(c)]:function(e){let t=et(e);return[ee(e),t,ee(t)]}(c));m||"none"===g||S.push(...function(e,t,n,r){let o=X(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[]}}(U(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ee)))),i}(c,w,g,x));let C=[c,...S],R=await el(e,y),P=[],T=(null==(n=a.flip)?void 0:n.overflows)||[];if(f&&P.push(R[b]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=X(e),o=G(Q(e)),i=J(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=et(l)),[l,et(l)]}(l,u,x);P.push(R[e[0]],R[e[1]])}if(T=[...T,{placement:l,overflows:P}],!P.every(e=>e<=0)){let e=((null==(r=a.flip)?void 0:r.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(o=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(i=T.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:i[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:g={...ei,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`)}},async fn(e){let t,n;let{placement:r,rects:o,platform:i,elements:l}=e,{apply:a=()=>{},...u}=Y(g,e),c=await el(e,u),s=U(r),d=X(r),f="y"===Q(r),{width:p,height:m}=o.floating;"top"===s||"bottom"===s?(t=s,n=d===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=s,t="end"===d?"top":"bottom");let v=m-c[t],h=p-c[n],w=!e.middlewareData.shift,y=v,b=h;if(f){let e=p-c.left-c.right;b=d||w?B(h,e):e}else{let e=m-c.top-c.bottom;y=d||w?B(v,e):e}if(w&&!d){let e=Z(c.left,0),t=Z(c.right,0),n=Z(c.top,0),r=Z(c.bottom,0);f?b=p-2*(0!==e||0!==t?e+t:Z(c.left,c.right)):y=m-2*(0!==n||0!==r?n+r:Z(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:y});let E=await i.getDimensions(l.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}},V&&eZ({element:V,padding:T}),e3({arrowWidth:j,arrowHeight:q}),O&&{name:"hide",options:y={strategy:"referenceHidden",...ei},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=Y(y,e);switch(n){case"referenceHidden":{let n=ea(await el(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:eu(n)}}}case"escaped":{let n=ea(await el(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:eu(n)}}}default:return{}}}}]}),[eh,eg]=e8(ep),ew=(0,x.W)(W);(0,eU.b)(()=>{em&&(null==ew||ew())},[em,ew]);let ey=null===(o=ev.arrow)||void 0===o?void 0:o.x,eb=null===(i=ev.arrow)||void 0===i?void 0:i.y,eE=(null===(l=ev.arrow)||void 0===l?void 0:l.centerOffset)!==0,[ex,eS]=(0,p.useState)();return(0,eU.b)(()=>{N&&eS(window.getComputedStyle(N).zIndex)},[N]),(0,p.createElement)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:em?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ex,"--radix-popper-transform-origin":[null===(a=ev.transformOrigin)||void 0===a?void 0:a.x,null===(u=ev.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,p.createElement)(e9,{scope:b,placedSide:eh,onArrowChange:z,arrowX:ey,arrowY:eb,shouldHideArrow:eE},(0,p.createElement)(E.WV.div,(0,f.Z)({"data-side":eh,"data-align":eg},_,{ref:F,style:{..._.style,animation:em?void 0:"none",opacity:null!==(c=ev.hide)&&void 0!==c&&c.referenceHidden?0:void 0}}))))}),e4={top:"bottom",right:"left",bottom:"top",left:"right"};function e5(e){return null!==e}let e3=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]=e8(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 e8(e){let[t,n="center"]=e.split("-");return[t,n]}let te=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,p.useState)(null);return(0,p.createElement)(eQ,{scope:t,anchor:r,onAnchorChange:o},n)},tt=(0,p.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...o}=e;return r?m.createPortal((0,p.createElement)(E.WV.div,(0,f.Z)({},o,{ref:t})),r):null});var tn=n(8426),tr=n(7342);let to=(0,p.forwardRef)((e,t)=>(0,p.createElement)(E.WV.span,(0,f.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}})));var ti=new WeakMap,tl=new WeakMap,ta={},tu=0,tc=function(e){return e&&(e.host||tc(e.parentNode))},ts=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tc(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});ta[n]||(ta[n]=new WeakMap);var i=ta[n],l=[],a=new Set,u=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(ti.get(e)||0)+1,c=(i.get(e)||0)+1;ti.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tl.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),a.clear(),tu++,function(){l.forEach(function(e){var t=ti.get(e)-1,o=i.get(e)-1;ti.set(e,t),i.set(e,o),t||(tl.has(e)||e.removeAttribute(r),tl.delete(e)),o||e.removeAttribute(n)}),--tu||(ti=new WeakMap,ti=new WeakMap,tl=new WeakMap,ta={})}},td=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]"))),ts(r,o,n,"aria-hidden")):function(){return null}},tf=function(){return(tf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var tm="right-scroll-bar-position",tv="width-before-scroll-bar";function th(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tg="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,tw=new WeakMap,ty=(void 0===i&&(i={}),(void 0===l&&(l=function(e){return e}),a=[],u=!1,c={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=l(e,u);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){u=!0;var t=[];if(a.length){var n=a;
1a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=tf({async:!0,ssr:!1},i),c),tb=function(){},tE=p.forwardRef(function(e,t){var n,r,o,i,l=p.useRef(null),a=p.useState({onScrollCapture:tb,onWheelCapture:tb,onTouchMoveCapture:tb}),u=a[0],c=a[1],s=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,v=e.enabled,h=e.shards,g=e.sideCar,w=e.noIsolation,y=e.inert,b=e.allowPinchZoom,E=e.as,x=tp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[l,t],r=function(e){return n.forEach(function(t){return th(t,e)})},(o=(0,p.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,tg(function(){var e=tw.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||th(e,null)}),r.forEach(function(e){t.has(e)||th(e,o)})}tw.set(i,n)},[n]),i),C=tf(tf({},x),u);return p.createElement(p.Fragment,null,v&&p.createElement(g,{sideCar:ty,removeScrollBar:m,shards:h,noIsolation:w,inert:y,setCallbacks:c,allowPinchZoom:!!b,lockRef:l}),s?p.cloneElement(p.Children.only(d),tf(tf({},C),{ref:S})):p.createElement(void 0===E?"div":E,tf({},C,{className:f,ref:S}),d))});tE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tE.classNames={fullWidth:tv,zeroRight:tm};var tx=function(e){var t=e.sideCar,n=tp(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 p.createElement(r,tf({},n))};tx.isSideCarExport=!0;var tS=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tC=function(){var e=tS();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tR=function(){var e=tC();return function(t){return e(t.styles,t.dynamic),null}},tP={left:0,top:0,right:0,gap:0},tT=function(e){return parseInt(e||"",10)||0},tk=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[tT(n),tT(r),tT(o)]},tL=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tP;var t=tk(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])}},tA=tR(),tM="data-scroll-locked",tO=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(tM,"] {\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(tm," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tv," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tm," .").concat(tm," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tv," .").concat(tv," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tM,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},tD=function(){var e=parseInt(document.body.getAttribute(tM)||"0",10);return isFinite(e)?e:0},tW=function(){p.useEffect(function(){return document.body.setAttribute(tM,(tD()+1).toString()),function(){var e=tD()-1;e<=0?document.body.removeAttribute(tM):document.body.setAttribute(tM,e.toString())}},[])},t_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tW();var i=p.useMemo(function(){return tL(o)},[o]);return p.createElement(tA,{styles:tO(i,!t,o,n?"":"!important")})},tI=!1;if("undefined"!=typeof window)try{var tN=Object.defineProperty({},"passive",{get:function(){return tI=!0,!0}});window.addEventListener("test",tN,tN),window.removeEventListener("test",tN,tN)}catch(e){tI=!1}var tH=!!tI&&{passive:!1},tF=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},tV=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tB(e,n)){var r=tZ(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tB=function(e,t){return"v"===e?tF(t,"overflowY"):tF(t,"overflowX")},tZ=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tz=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=tZ(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&tB(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},tK=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t$=function(e){return[e.deltaX,e.deltaY]},tj=function(e){return e&&"current"in e?e.current:e},tq=0,tY=[],tU=(s=function(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(tq++)[0],i=p.useState(function(){return tR()})[0],l=p.useRef(e);p.useEffect(function(){l.current=e},[e]),p.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;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(tj),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=tK(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=tV(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tV(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 tz(p,t,e,"h"===p?u:c,!0)},[]),u=p.useCallback(function(e){if(tY.length&&tY[tY.length-1]===i){var n="deltaY"in e?t$(e):tK(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(tj).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=p.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=p.useCallback(function(e){n.current=tK(e),r.current=void 0},[]),d=p.useCallback(function(t){c(t.type,t$(t),t.target,a(t,e.lockRef.current))},[]),f=p.useCallback(function(t){c(t.type,tK(t),t.target,a(t,e.lockRef.current))},[]);p.useEffect(function(){return tY.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,tH),document.addEventListener("touchmove",u,tH),document.addEventListener("touchstart",s,tH),function(){tY=tY.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,tH),document.removeEventListener("touchmove",u,tH),document.removeEventListener("touchstart",s,tH)}},[]);var m=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?p.createElement(t_,{gapMode:"margin"}):null)},ty.useMedium(s),tx),tX=p.forwardRef(function(e,t){return p.createElement(tE,tf({},e,{ref:t,sideCar:tU}))});tX.classNames=tE.classNames;let tG=[" ","Enter","ArrowUp","ArrowDown"],tJ=[" ","Enter"],tQ="Select",[t0,t1,t2]=(0,g.B)(tQ),[t9,t7]=(0,y.b)(tQ,[t2,eJ]),t6=eJ(),[t4,t5]=t9(tQ),[t3,t8]=t9(tQ),ne=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=t6(n),l=t5("SelectTrigger",n),a=l.disabled||r,u=(0,w.e)(t,l.onTriggerChange),c=t1(n),[s,d,m]=nO(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=nD(t,e,n);void 0!==r&&l.onValueChange(r.value)}),v=()=>{a||(l.onOpenChange(!0),m())};return(0,p.createElement)(e1,(0,f.Z)({asChild:!0},i),(0,p.createElement)(E.WV.button,(0,f.Z)({type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":nA(l.value)?"":void 0},o,{ref:u,onClick:(0,h.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,h.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(v(),l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,h.M)(o.onKeyDown,e=>{let t=""!==s.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||d(e.key),(!t||" "!==e.key)&&tG.includes(e.key)&&(v(),e.preventDefault())})})))}),nt=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=t5("SelectValue",n),{onValueNodeHasChildrenChange:c}=u,s=void 0!==i,d=(0,w.e)(t,u.onValueNodeChange);return(0,eU.b)(()=>{c(s)},[c,s]),(0,p.createElement)(E.WV.span,(0,f.Z)({},a,{ref:d,style:{pointerEvents:"none"}}
1),nA(u.value)?(0,p.createElement)(p.Fragment,null,l):i)}),nn=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,p.createElement)(E.WV.span,(0,f.Z)({"aria-hidden":!0},o,{ref:t}),r||"â¼")}),nr="SelectContent",no=(0,p.forwardRef)((e,t)=>{let n=t5(nr,e.__scopeSelect),[r,o]=(0,p.useState)();return((0,eU.b)(()=>{o(new DocumentFragment)},[]),n.open)?(0,p.createElement)(na,(0,f.Z)({},e,{ref:t})):r?(0,m.createPortal)((0,p.createElement)(ni,{scope:e.__scopeSelect},(0,p.createElement)(t0.Slot,{scope:e.__scopeSelect},(0,p.createElement)("div",null,e.children))),r):null}),[ni,nl]=t9(nr),na=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:u,align:c,alignOffset:s,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:b,...E}=e,x=t5(nr,n),[S,C]=(0,p.useState)(null),[P,T]=(0,p.useState)(null),A=(0,w.e)(t,e=>C(e)),[M,O]=(0,p.useState)(null),[W,_]=(0,p.useState)(null),I=t1(n),[N,H]=(0,p.useState)(!1),F=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(S)return td(S)},[S]),(0,p.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()),k++,()=>{1===k&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),k--}},[]);let V=(0,p.useCallback)(e=>{let[t,...n]=I().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&&P&&(P.scrollTop=0),n===r&&P&&(P.scrollTop=P.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[I,P]),B=(0,p.useCallback)(()=>V([M,S]),[V,M,S]);(0,p.useEffect)(()=>{N&&B()},[N,B]);let{onOpenChange:Z,triggerPointerDownPosRef:z}=x;(0,p.useEffect)(()=>{if(S){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=z.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=z.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||Z(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,Z,z]),(0,p.useEffect)(()=>{let e=()=>Z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[Z]);let[K,$]=nO(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=nD(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),j=(0,p.useCallback)((e,t,n)=>{let r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&(O(e),r&&(F.current=!0))},[x.value]),q=(0,p.useCallback)(()=>null==S?void 0:S.focus(),[S]),Y=(0,p.useCallback)((e,t,n)=>{let r=!F.current&&!n;(void 0!==x.value&&x.value===t||r)&&_(e)},[x.value]),U="popper"===r?nc:nu;return(0,p.createElement)(ni,{scope:n,content:S,viewport:P,onViewportChange:T,itemRefCallback:j,selectedItem:M,onItemLeave:q,itemTextRefCallback:Y,focusSelectedItem:B,selectedItemText:W,position:r,isPositioned:N,searchRef:K},(0,p.createElement)(tX,{as:tn.g7,allowPinchZoom:!0},(0,p.createElement)(D,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,h.M)(o,e=>{var t;null===(t=x.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},(0,p.createElement)(R,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1)},(0,p.createElement)(U,(0,f.Z)({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault()},E,U===nc?{side:a,sideOffset:u,align:c,alignOffset:s,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:b}:{},{onPlaced:()=>H(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,h.M)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().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(()=>V(t)),e.preventDefault()}})}))))))}),nu=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,i=t5(nr,n),l=nl(nr,n),[a,u]=(0,p.useState)(null),[c,s]=(0,p.useState)(null),d=(0,w.e)(t,e=>s(e)),m=t1(n),h=(0,p.useRef)(!1),g=(0,p.useRef)(!0),{viewport:y,selectedItem:b,selectedItemText:x,focusSelectedItem:S}=l,C=(0,p.useCallback)(()=>{if(i.trigger&&i.valueNode&&a&&c&&y&&b&&x){let e=i.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,u=e.width+l,c=Math.max(u,t.width),s=v(i,[10,window.innerWidth-10-c]);a.style.minWidth=u+"px",a.style.left=s+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,u=e.width+l,c=Math.max(u,t.width),s=v(i,[10,window.innerWidth-10-c]);a.style.minWidth=u+"px",a.style.right=s+"px"}let l=m(),u=window.innerHeight-20,s=y.scrollHeight,d=window.getComputedStyle(c),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),w=f+p+s+parseInt(d.paddingBottom,10)+g,E=Math.min(5*b.offsetHeight,w),S=window.getComputedStyle(y),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),P=e.top+e.height/2-10,T=b.offsetHeight/2,k=f+p+(b.offsetTop+T);if(k<=P){let e=b===l[l.length-1].ref.current;a.style.bottom="0px";let t=c.clientHeight-y.offsetTop-y.offsetHeight;a.style.height=k+Math.max(u-P,T+(e?R:0)+t+g)+"px"}else{let e=b===l[0].ref.current;a.style.top="0px";let t=Math.max(P,f+y.offsetTop+(e?C:0)+T);a.style.height=t+(w-k)+"px",y.scrollTop=k-P+y.offsetTop}a.style.margin="10px 0",a.style.minHeight=E+"px",a.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame(()=>h.current=!0)}},[m,i.trigger,i.valueNode,a,c,y,b,x,i.dir,r]);(0,eU.b)(()=>C(),[C]);let[R,P]=(0,p.useState)();(0,eU.b)(()=>{c&&P(window.getComputedStyle(c).zIndex)},[c]);let T=(0,p.useCallback)(e=>{e&&!0===g.current&&(C(),null==S||S(),g.current=!1)},[C,S]);return(0,p.createElement)(ns,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:T},(0,p.createElement)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R}},(0,p.createElement)(E.WV.div,(0,f.Z)({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),nc=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=t6(n);return(0,p.createElement)(e6,(0,f.Z)({},l,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}}))}),[ns,nd]=t9(nr,{}),nf="SelectViewport",np=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=nl(nf,n),i=nd(nf,n),l=(0,w.e)(t,o.onViewportChange),a=(0,p.useRef)(0);return(0,p.createElement)(p.Fragment,null,(0,p.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,p.createElement)(t0.Slot,{scope:n},(0,p.createElement)(E.WV.div,(0,f.Z)({"data-radix-select-viewport":"",role:"presentation"},r,{ref:l,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:(0,h.M)(r.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){let e=Math.abs(a.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}a.current=t.scrollTop})}))))}),[nm,nv]=t9("SelectGroup"),nh=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,F.M)();return(0,p.createElement)(nm,{scope:n,id:o},(0,p.createElement)(E.WV.div,(0,f.Z)({role:"group","aria-labelledby":o},r,{ref:t})))}),ng=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=nv("SelectLabel",n);return(0,p.createElement)(E.WV.div,(0,f.Z)({id:o.id},r,{ref:t}))}),nw="SelectItem",[ny,nb]=t9(nw),nE=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=t5(nw,n),u=nl(nw,n),c=a.value===r,[s,d]=(0,p.useState)(null!=i?i:""),[m,v]=(0,p.useState)(!1),g=(0,w.e)(t,e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)}),y=(0,F.M)(),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> 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,p.createElement)(ny,{scope:n,value:r,disabled:o,textId:y,isSelected:c,onItemTextChange:(0,p.useCallback)(e=>{d(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},(0,p.createElement)(t0.ItemSlot,{scope:n,value:r,disabled:o,textValue:s},(0,p.createElement)(E.WV.div,(0,f.Z)({role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},l,{ref:g,onFocus:(0,h.M)(l.onFocus,()=>v(!0)),onBlur:(0,h.M)(l.onBlur,()=>v(!1)),onPointerUp:(0,h.M)(l.onPointerUp,b),onPointerMove:(0,h.M)(l.onPointerMove,e=>{if(o){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}
1else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,h.M)(l.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}}),onKeyDown:(0,h.M)(l.onKeyDown,e=>{var t;(null===(t=u.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(tJ.includes(e.key)&&b()," "===e.key&&e.preventDefault())})}))))}),nx="SelectItemText",nS=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,l=t5(nx,n),a=nl(nx,n),u=nb(nx,n),c=t8(nx,n),[s,d]=(0,p.useState)(null),v=(0,w.e)(t,e=>d(e),u.onItemTextChange,e=>{var t;return null===(t=a.itemTextRefCallback)||void 0===t?void 0:t.call(a,e,u.value,u.disabled)}),h=null==s?void 0:s.textContent,g=(0,p.useMemo)(()=>(0,p.createElement)("option",{key:u.value,value:u.value,disabled:u.disabled},h),[u.disabled,u.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=c;return(0,eU.b)(()=>(y(g),()=>b(g)),[y,b,g]),(0,p.createElement)(p.Fragment,null,(0,p.createElement)(E.WV.span,(0,f.Z)({id:u.textId},i,{ref:v})),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?(0,m.createPortal)(i.children,l.valueNode):null)}),nC="SelectScrollUpButton",nR=(0,p.forwardRef)((e,t)=>{let n=nl(nC,e.__scopeSelect),r=nd(nC,e.__scopeSelect),[o,i]=(0,p.useState)(!1),l=(0,w.e)(t,r.onScrollButtonChange);return(0,eU.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){i(t.scrollTop>0)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.createElement)(nk,(0,f.Z)({},e,{ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}),nP="SelectScrollDownButton",nT=(0,p.forwardRef)((e,t)=>{let n=nl(nP,e.__scopeSelect),r=nd(nP,e.__scopeSelect),[o,i]=(0,p.useState)(!1),l=(0,w.e)(t,r.onScrollButtonChange);return(0,eU.b)(()=>{if(n.viewport&&n.isPositioned){let t=n.viewport;function e(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.createElement)(nk,(0,f.Z)({},e,{ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null}),nk=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=nl("SelectScrollButton",n),l=(0,p.useRef)(null),a=t1(n),u=(0,p.useCallback)(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return(0,p.useEffect)(()=>()=>u(),[u]),(0,eU.b)(()=>{var e;let t=a().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[a]),(0,p.createElement)(E.WV.div,(0,f.Z)({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,h.M)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(r,50))}),onPointerMove:(0,h.M)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===l.current&&(l.current=window.setInterval(r,50))}),onPointerLeave:(0,h.M)(o.onPointerLeave,()=>{u()})}))}),nL=(0,p.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,p.createElement)(E.WV.div,(0,f.Z)({"aria-hidden":!0},r,{ref:t}))});function nA(e){return""===e||void 0===e}let nM=(0,p.forwardRef)((e,t)=>{let{value:n,...r}=e,o=(0,p.useRef)(null),i=(0,w.e)(t,o),l=function(e){let t=(0,p.useRef)({value:e,previous:e});return(0,p.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n);return(0,p.useEffect)(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[l,n]),(0,p.createElement)(to,{asChild:!0},(0,p.createElement)("select",(0,f.Z)({},r,{ref:i,defaultValue:n})))});function nO(e){let t=(0,x.W)(e),n=(0,p.useRef)(""),r=(0,p.useRef)(0),o=(0,p.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]),i=(0,p.useCallback)(()=>{n.current="",window.clearTimeout(r.current)},[]);return(0,p.useEffect)(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function nD(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}nM.displayName="BubbleSelect";let nW=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:u,dir:c,name:s,autoComplete:d,disabled:f,required:m}=e,v=t6(t),[h,g]=(0,p.useState)(null),[w,y]=(0,p.useState)(null),[E,x]=(0,p.useState)(!1),S=(0,b.gm)(c),[C=!1,R]=(0,tr.T)({prop:r,defaultProp:o,onChange:i}),[P,T]=(0,tr.T)({prop:l,defaultProp:a,onChange:u}),k=(0,p.useRef)(null),L=!h||!!h.closest("form"),[A,M]=(0,p.useState)(new Set),O=Array.from(A).map(e=>e.props.value).join(";");
1return(0,p.createElement)(te,v,(0,p.createElement)(t4,{required:m,scope:t,trigger:h,onTriggerChange:g,valueNode:w,onValueNodeChange:y,valueNodeHasChildren:E,onValueNodeHasChildrenChange:x,contentId:(0,F.M)(),value:P,onValueChange:T,open:C,onOpenChange:R,dir:S,triggerPointerDownPosRef:k,disabled:f},(0,p.createElement)(t0.Provider,{scope:t},(0,p.createElement)(t3,{scope:e.__scopeSelect,onNativeOptionAdd:(0,p.useCallback)(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:(0,p.useCallback)(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[])},n)),L?(0,p.createElement)(nM,{key:O,"aria-hidden":!0,required:m,tabIndex:-1,name:s,autoComplete:d,value:P,onChange:e=>T(e.target.value),disabled:f},void 0===P?(0,p.createElement)("option",{value:""}):null,Array.from(A)):null))},n_=ne,nI=nt,nN=nn,nH=e=>(0,p.createElement)(tt,(0,f.Z)({asChild:!0},e)),nF=no,nV=np,nB=nh,nZ=ng,nz=nE,nK=nS,n$=nR,nj=nT,nq=nL},9698:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(7294);function o(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},7342:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(7294),o=n(9698);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[i]=n,l=(0,r.useRef)(i),a=(0,o.W)(t);return(0,r.useEffect)(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,c=(0,o.W)(n);return[u,(0,r.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else l(t)},[a,e,l,c])]}},9981:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(7294);let o=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.