PageSourceSearch

https://www.volumn.ai/_next/static/chunks/75686-84fee1cf4d231bc3.js

js volumn.ai collected 2026-10-01 16:17:32 UTC 68,575 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75686],{9881:(e,t,n)=>{var r=n(56421);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},10062:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(56059).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},33004:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(56059).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},38925:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(56059).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},40187:(e,t,n)=>{let r;n.d(t,{UE:()=>eC,RK:()=>ey,ll:()=>eg,rD:()=>eT,UU:()=>eb,jD:()=>eS,mG:()=>eR,ER:()=>eA,cY:()=>ew,BN:()=>ex,Ej:()=>eE});let o=["top","right","bottom","left"],i=o.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),l=Math.min,a=Math.max,u=Math.round,s=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e,t,n){void 0===n&&(n=!1);let r=h(e),o=m(g(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=C(l)),[l,C(l)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],b=["right","left"],E=["top","bottom"],S=["bottom","top"];function C(e){let t=p(e);return d[t]+e.slice(t.length)}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(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 T(e,t,n){let r,{reference:o,floating:i}=e,l=g(t),a=m(g(t)),u=v(a),s=p(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,w=o[u]/2-i[u]/2;switch(s){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(h(t)){case"start":r[a]-=w*(n&&c?-1:1);break;case"end":r[a]+=w*(n&&c?-1:1)}return r}async function L(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),m=R(h),v=a[p?"floating"===d?"reference":"floating":d],g=A(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:s,rootBoundary:c,strategy:u})),w="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:u}):w);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:L},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=T(s,r,u),f=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:v,fn:g}=m,{x:w,y:y,data:x,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,d=null!=y?y:d,h[v]={...h[v],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=T(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return o.some(t=>e[t]>=0)}function D(e){let t=l(...e.map(e=>e.left)),n=l(...e.map(e=>e.top));return{x:t,y:n,width:a(...e.map(e=>e.right))-t,height:a(...e.map(e=>e.bottom))-n}}let M=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),u="y"===g(n),s=M.has(l)?-1:1,c=i&&u?-1:1,d=f(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:w}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof w&&(v="end"===a?-1*w:w),u?{x:v*c,y:m*s}:{x:m*s,y:v*c}}function O(){return"u">typeof window}function I(e){return H(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function F(e){var t;return null==(t=(H(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function H(e){return!!O()&&(e instanceof Node||e instanceof W(e).Node)}function B(e){return!!O()&&(e instanceof Element||e instanceof W(e).Element)}function K(e){return!!O()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function _(e){return!(!O()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function z(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function V(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,$=e=>!!e&&"none"!==e;function Y(e){let t=B(e)?Z(e):e;return $(t.transform)||$(t.translate)||$(t.scale)||$(t.rotate)||$(t.perspective)||!X()&&($(t.backdropFilter)||$(t.filter))||G.test(t.willChange||"")||U.test(t.contain||"")}function X(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function q(e){return/^(html|body|#document)$/.test(I(e))}function Z(e){return W(e).getComputedStyle(e)}function J(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||_(e)&&e.host||F(e);return _(t)?t.host:t}function ee(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Q(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&z(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=W(o);if(!i)return t.concat(o,ee(o,[],n));{let e=et(l);return t.concat(l,l.visualViewport||[],z(o)?o:[],e&&n?ee(e):[])}}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(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 er(e){return B(e)?e:e.contextElement}function eo(e){let t=er(e);if(!K(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=en(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 ei=c(0);function el(e){let t=W(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function ea(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=er(e),a=c(1);t&&(r?B(r)&&(a=eo(r)):a=eo(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===W(l))&&o)?el(l):c(0),s=(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=W(l),t=r&&B(r)?W(r):r,n=e,o=et(n);for(;o&&r&&t!==n;){let e=eo(o),t=o.getBoundingClientRect(),r=Z(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,d*=e.y,f*=e.x,p*=e.y,s+=i,d+=l,o=et(n=W(o))}}return A({width:f,height:p,x:s,y:d})}function eu(e,t){let n=J(e).scrollLeft;return t?t.left+n:ea(F(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eu(e,n),y:n.top+t.scrollTop}}function ec(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=W(e),r=F(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=X();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=eu(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t){let t,n,i,l,u,s,c;r=F(e),t=F(r),n=J(r),i=r.ownerDocument.body,l=a(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),u=a(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+eu(r),
1c=-n.scrollTop,"rtl"===Z(i).direction&&(s+=a(t.clientWidth,i.clientWidth)-l),o={width:l,height:u,x:s,y:c}}else if(B(t)){let e,r,i,l,a,u;r=(e=ea(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=K(t)?eo(t):c(1),a=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:a,height:u,x:i*l.x,y:r*l.y}}else{let n=el(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(o)}function ed(e){return"static"===Z(e).position}function ef(e,t){if(!K(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return F(e)===n&&(n=n.ownerDocument.body),n}function ep(e,t){var n;let r=W(e);if(V(e))return r;if(!K(e)){let t=Q(e);for(;t&&!q(t);){if(B(t)&&!ed(t))return t;t=Q(t)}return r}let o=ef(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(I(n)))&&ed(o);)o=ef(o,t);return o&&q(o)&&ed(o)&&!Y(o)?r:o||function(e){let t=Q(e);for(;K(t)&&!q(t);){if(Y(t))return t;if(V(t))break;t=Q(t)}return null}(e)||r}let eh=async function(e){let t=this.getOffsetParent||ep,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=F(t),i="fixed"===n,l=ea(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=c(0);if(r||!r&&!i)if(("body"!==I(t)||z(o))&&(a=J(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=eu(o));i&&!r&&o&&(u.x=eu(o));let s=!o||r||i?c(0):es(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.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}}},em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=F(r),a=!!t&&V(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=c(1),d=c(0),f=K(r);if((f||!f&&!i)&&(("body"!==I(r)||z(l))&&(u=J(r)),f)){let e=ea(r);s=eo(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!l||f||i?c(0):es(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+d.x+p.x,y:n.y*s.y-u.scrollTop*s.y+d.y+p.y}},getDocumentElement:F,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(e=>B(e)&&"body"!==I(e)),o=null,i="fixed"===Z(e).position,l=i?Q(e):e;for(;B(l)&&!q(l);){let t=Z(l),n=Y(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||z(l)&&!n&&function e(t,n){let r=Q(t);return!(r===n||!B(r)||q(r))&&("fixed"===Z(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=Q(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=ec(t,i[0],o),s=u.top,c=u.right,d=u.bottom,f=u.left;for(let e=1;e<i.length;e++){let n=ec(t,i[e],o);s=a(n.top,s),c=l(n.right,c),d=l(n.bottom,d),f=a(n.left,f)}return{width:c-f,height:d-s,x:f,y:s}},getOffsetParent:ep,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=en(e);return{width:t,height:n}},getScale:eo,isElement:B,isRTL:function(e){return"rtl"===Z(e).direction}};function ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eg(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=er(e),h=i||u?[...p?ee(p):[],...t?ee(t):[]]:[];h.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,o=F(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),i();let f=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=f;if(c||t(),!m||!v)return;let g={rootMargin:-s(h)+"px "+-s(o.clientWidth-(p+m))+"px "+-s(o.clientHeight-(h+v))+"px "+-s(p)+"px",threshold:a(0,l(1,d))||1},w=!0;function y(t){let r=t[0].intersectionRatio;if(r!==d){if(!w)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ev(f,e.getBoundingClientRect())||u(),w=!1}try{r=new IntersectionObserver(y,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),i}(p,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),t&&g.observe(t));let w=f?ea(e):null;return f&&function t(){let r=ea(e);w&&!ev(w,r)&&n(),w=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1h.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(o)}}let ew=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await j(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},ey=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,l;let{rects:a,middlewareData:u,placement:s,platform:c,elements:d}=t,{crossAxis:m=!1,alignment:v,allowedPlacements:g=i,autoAlignment:x=!0,...b}=f(e,t),E=void 0!==v||g===i?((l=v||null)?[...g.filter(e=>h(e)===l),...g.filter(e=>h(e)!==l)]:g.filter(e=>p(e)===e)).filter(e=>!l||h(e)===l||!!x&&y(e)!==e):g,S=await c.detectOverflow(t,b),C=(null==(n=u.autoPlacement)?void 0:n.index)||0,R=E[C];if(null==R)return{};let A=w(R,a,await (null==c.isRTL?void 0:c.isRTL(d.floating)));if(s!==R)return{reset:{placement:E[0]}};let T=[S[p(R)],S[A[0]],S[A[1]]],L=[...(null==(r=u.autoPlacement)?void 0:r.overflows)||[],{placement:R,overflows:T}],P=E[C+1];if(P)return{data:{index:C+1,overflows:L},reset:{placement:P}};let k=L.map(e=>{let t=h(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(o=k.filter(e=>e[2].slice(0,h(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||k[0][0];return N!==s?{data:{index:C+1,overflows:L},reset:{placement:N}}:{}}}},ex=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=f(e,t),h={x:n,y:r},v=await i.detectOverflow(t,d),w=g(p(o)),y=m(w),x=h[y],b=h[w];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+v[e],r=x-v[t];x=a(n,l(x,r))}if(s){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=b+v[e],r=b-v[t];b=a(n,l(b,r))}let E=c.fn({...t,[y]:x,[w]:b});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[y]:u,[w]:s}}}}}},eb=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let a,u,s,{placement:c,middlewareData:d,rects:m,initialPlacement:v,platform:R,elements:A}=t,{mainAxis:T=!0,crossAxis:L=!0,fallbackPlacements:P,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:D=!0,...M}=f(e,t);if(null!=(n=d.arrow)&&n.alignmentOffset)return{};let j=p(c),O=g(v),I=p(v)===v,W=await (null==R.isRTL?void 0:R.isRTL(A.floating)),F=P||(I||!D?[C(v)]:(a=C(v),[y(v),a,y(a)])),H="none"!==N;!P&&H&&F.push(...(u=h(v),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;case"left":case"right":return t?E:S;default:return[]}}(p(v),"start"===N,W),u&&(s=s.map(e=>e+"-"+u),D&&(s=s.concat(s.map(y)))),s));let B=[v,...F],K=await R.detectOverflow(t,M),_=[],z=(null==(r=d.flip)?void 0:r.overflows)||[];if(T&&_.push(K[j]),L){let e=w(c,m,W);_.push(K[e[0]],K[e[1]])}if(z=[...z,{placement:c,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=d.flip)?void 0:o.index)||0)+1,t=B[e];if(t&&("alignment"!==L||O===g(t)||z.every(e=>g(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(i=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(k){case"bestFit":{let e=null==(l=z.filter(e=>{if(H){let t=g(e.placement);return t===O||"y"===t}return!0}).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=v}if(c!==n)return{reset:{placement:n}}}return{}}}},eE=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:u,rects:s,platform:c,elements:d}=t,{apply:m=()=>{},...v}=f(e,t),w=await c.detectOverflow(t,v),y=p(u),x=h(u),b="y"===g(u),{width:E,height:S}=s.floating;"top"===y||"bottom"===y?(o=y,i=x===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(i=y,o="end"===x?"top":"bottom");let C=S-w.top-w.bottom,R=E-w.left-w.right,A=l(S-w[o],C),T=l(E-w[i],R),L=!t.middlewareData.shift,P=A,k=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=R),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=C),L&&!x){let e=a(w.left,0),t=a(w.right,0),n=a(w.top,0),r=a(w.bottom,0);b?k=E-2*(0!==e||0!==t?e+t:a(w.left,w.right)):P=S-2*(0!==n||0!==r?n+r:a(w.top,w.bottom))}await m({...t,availableWidth:k,availableHeight:P});let N=await c.getDimensions(d.floating);return E!==N.width||S!==N.height?{reset:{rects:!0}}:{}}}},eS=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=f(e,t);switch(o){case"referenceHidden":{let e=k(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=k(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}},eC=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:u,elements:s,middlewareData:c}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};let w=R(p),y={x:n,y:r},x=m(g(o)),b=v(x),E=await u.getDimensions(d),S="y"===x,C=S?"clientHeight":"clientWidth",A=i.reference[b]+i.reference[x]-y[x]-i.floating[b],T=y[x]-i.reference[x],L=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),P=L?L[C]:0;
1P&&await (null==u.isElement?void 0:u.isElement(L))||(P=s.floating[C]||i.floating[b]);let k=P/2-E[b]/2-1,N=l(w[S?"top":"left"],k),D=l(w[S?"bottom":"right"],k),M=P-E[b]-D,j=P/2-E[b]/2+(A/2-T/2),O=a(N,l(j,M)),I=!c.arrow&&null!=h(o)&&j!==O&&i.reference[b]/2-(j<N?N:D)-E[b]/2<0,W=I?j<N?j-N:j-M:0;return{[x]:y[x]+W,data:{[x]:O,centerOffset:j-O-W,...I&&{alignmentOffset:W}},reset:I}}}),eR=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:i,strategy:u}=t,{padding:s=2,x:c,y:d}=f(e,t),h=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),m=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>A(D(e)))}(h),v=A(D(h)),w=R(s),y=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=c&&null!=d)return m.find(e=>c>e.left-w.left&&c<e.right+w.right&&d>e.top-w.top&&d<e.bottom+w.bottom)||v;if(m.length>=2){if("y"===g(n)){let e=m[0],t=m[m.length-1],r="top"===p(n),o=e.top,i=t.bottom,l=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:l,right:a,width:a-l,height:i-o,x:l,y:o}}let e="left"===p(n),t=a(...m.map(e=>e.right)),r=l(...m.map(e=>e.left)),o=m.filter(n=>e?n.left===r:n.right===t),i=o[0].top,u=o[o.length-1].bottom;return{top:i,bottom:u,left:r,right:t,width:t-r,height:u-i,x:r,y:i}}return v}},floating:r.floating,strategy:u});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},eA=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=f(e,t),c={x:n,y:r},d=g(o),h=m(d),v=c[h],w=c[d],y=f(a,t),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+x.mainAxis,n=i.reference[h]+i.reference[e]-x.mainAxis;v<t?v=t:v>n&&(v=n)}if(s){var b,E;let e="y"===h?"width":"height",t=M.has(p(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[d])||0)+(t?0:x.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[d])||0)-(t?x.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[h]:v,[d]:w}}}},eT=(e,t,n)=>{let r=new Map,o={platform:em,...n},i={...o.platform,_c:r};return P(e,t,{...o,platform:i})}},56059:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(24361);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:u?24*Number(a)/Number(o):a,className:i("lucide",s),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"},...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...s}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,u),...s})});return n.displayName=o(e),n}},67658:(e,t,n)=>{let r;n.d(t,{UC:()=>t6,YJ:()=>t3,In:()=>t5,q7:()=>t8,VF:()=>nt,p4:()=>ne,JU:()=>t9,ZL:()=>t4,bL:()=>t0,wn:()=>nr,PP:()=>nn,wv:()=>no,l9:()=>t1,WT:()=>t2,LM:()=>t7});var o,i,l,a,u,s,c,d,f=n(24361),p=n(58428);function h(e,[t,n]){return Math.min(n,Math.max(t,e))}var m=n(74537),v=n(11654),g=n(40744),w=n(97770),y=n(42449),x=n(98467),b=n(61273),E=n(53757),S="dismissableLayer.update",C=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R=f.forwardRef((e,t)=>
1{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...u}=e,s=f.useContext(C),[d,p]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,v]=f.useState({}),w=(0,g.s)(t,e=>p(e)),y=Array.from(s.layers),[R]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),L=y.indexOf(R),P=d?y.indexOf(d):-1,k=s.layersWithOutsidePointerEventsDisabled.size>0,N=P>=L,D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis?.document,n=(0,b.c)(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){T("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}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=[...s.branches].some(e=>e.contains(t));N&&!n&&(o?.(e),l?.(e),e.defaultPrevented||a?.())},h),M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis?.document,n=(0,b.c)(e),r=f.useRef(!1);return f.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;![...s.branches].some(e=>e.contains(t))&&(i?.(e),l?.(e),e.defaultPrevented||a?.())},h);return!function(e,t=globalThis?.document){let n=(0,b.c)(e);f.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P===s.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},h),f.useEffect(()=>{if(d)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(c=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),A(),()=>{n&&1===s.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=c)}},[d,h,n,s]),f.useEffect(()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),A())},[d,s]),f.useEffect(()=>{let e=()=>v({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,E.jsx)(x.sG.div,{...u,ref:w,style:{pointerEvents:k?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,m.mK)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,m.mK)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,m.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function A(){let e=new CustomEvent(S);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,x.hO)(i,l):i.dispatchEvent(l)}R.displayName="DismissableLayer",f.forwardRef((e,t)=>{let n=f.useContext(C),r=f.useRef(null),o=(0,g.s)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,E.jsx)(x.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var L=0;function P(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var k="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",D={bubbles:!1,cancelable:!0},M=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,u]=f.useState(null),s=(0,b.c)(o),c=(0,b.c)(i),d=f.useRef(null),p=(0,g.s)(t,e=>u(e)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:I(d.current,{select:!0})},t=function(e){if(h.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,h.paused]),f.useEffect(()=>{if(a){W.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(k,D);a.addEventListener(k,s),a.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(I(r,{select:t}),document.activeElement!==n)return}(j(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&I(a))}return()=>{a.removeEventListener(k,s),setTimeout(()=>{let t=new CustomEvent(N,D);a.addEventListener(N,c),a.dispatchEvent(t),t.defaultPrevented||I(e??document.body,{select:!0}),a.removeEventListener(N,c),W.remove(h)}
1,0)}}},[a,s,c,h]);let m=f.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var i;let t,r=e.currentTarget,[l,a]=[O(t=j(i=r),i),O(t.reverse(),i)];l&&a?e.shiftKey||o!==a?e.shiftKey&&o===l&&(e.preventDefault(),n&&I(a,{select:!0})):(e.preventDefault(),n&&I(l,{select:!0})):o===r&&e.preventDefault()}},[n,r,h.paused]);return(0,E.jsx)(x.sG.div,{tabIndex:-1,...l,ref:p,onKeyDown:m})});function j(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 O(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function I(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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()}}M.displayName="FocusScope";var W=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=F(r,e)).unshift(e)},remove(e){r=F(r,e),r[0]?.resume()}});function F(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var H=n(32461),B=n(40187),K="u">typeof document?f.useLayoutEffect:function(){};function _(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(!_(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)&&!_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function z(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function V(e,t){let n=z(e);return Math.round(t*n)/n}function G(e){let t=f.useRef(e);return K(()=>{t.current=e}),t}var U=f.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,E.jsx)(x.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,E.jsx)("polygon",{points:"0,0 30,0 15,10"})})});U.displayName="Arrow";var $=n(77731),Y="Popper",[X,q]=(0,w.A)(Y),[Z,J]=X(Y),Q=e=>{let{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return(0,E.jsx)(Z,{scope:t,anchor:r,onAnchorChange:o,children:n})};Q.displayName=Y;var ee="PopperAnchor",et=f.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=J(ee,n),l=f.useRef(null),a=(0,g.s)(t,l),u=f.useRef(null);return f.useEffect(()=>{let e=u.current;u.current=r?.current||l.current,e!==u.current&&i.onAnchorChange(u.current)}),r?null:(0,E.jsx)(x.sG.div,{...o,ref:a})});et.displayName=ee;var en="PopperContent",[er,eo]=X(en),ei=f.forwardRef((e,t)=>{var n,r,o,i,l,a,u,s,c,d,h,m,v,w,y;let S,C,R,A,T,L,{__scopePopper:P,side:k="bottom",sideOffset:N=0,align:D="center",alignOffset:M=0,arrowPadding:j=0,avoidCollisions:O=!0,collisionBoundary:I=[],collisionPadding:W=0,sticky:F="partial",hideWhenDetached:H=!1,updatePositionStrategy:U="optimized",onPlaced:Y,...X}=e,q=J(en,P),[Z,Q]=f.useState(null),ee=(0,g.s)(t,e=>Q(e)),[et,eo]=f.useState(null),ei=function(e){let[t,n]=f.useState(void 0);return(0,$.N)(()=>{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}(et),el=ei?.width??0,ea=ei?.height??0,eu="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},ef=Array.isArray(I)?I:[I],ep=ef.length>0,eh={padding:eu,boundary:ef.filter(es),altBoundary:ep},{refs:em,floatingStyles:ev,placement:eg,isPositioned:ew,middlewareData:ey}=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:s}=e,[c,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=f.useState(r);_(h,r)||m(r);let[v,g]=f.useState(null),[w,y]=f.useState(null),x=f.useCallback(e=>
1{e!==C.current&&(C.current=e,g(e))},[]),b=f.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),E=i||v,S=l||w,C=f.useRef(null),R=f.useRef(null),A=f.useRef(c),T=null!=u,L=G(u),P=G(o),k=G(s),N=f.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),(0,B.rD)(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};D.current&&!_(A.current,t)&&(A.current=t,p.flushSync(()=>{d(t)}))})},[h,t,n,P,k]);K(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let D=f.useRef(!1);K(()=>(D.current=!0,()=>{D.current=!1}),[]),K(()=>{if(E&&(C.current=E),S&&(R.current=S),E&&S){if(L.current)return L.current(E,S,N);N()}},[E,S,N,L,T]);let M=f.useMemo(()=>({reference:C,floating:R,setReference:x,setFloating:b}),[x,b]),j=f.useMemo(()=>({reference:E,floating:S}),[E,S]),O=f.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=V(j.floating,c.x),r=V(j.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...z(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,j.floating,c.x,c.y]);return f.useMemo(()=>({...c,update:N,refs:M,elements:j,floatingStyles:O}),[c,N,M,j,O])}({strategy:"fixed",placement:k+("center"!==D?"-"+D:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,B.ll)(...t,{animationFrame:"always"===U})},elements:{reference:q.anchor},middleware:[(n={mainAxis:N+ea,alignmentAxis:M},{name:(S=(0,B.cY)(n)).name,fn:S.fn,options:[n,r]}),O&&(l={mainAxis:!0,crossAxis:!1,limiter:"partial"===F?{fn:(0,B.ER)(o).fn,options:[o,i]}:void 0,...eh},{name:(C=(0,B.BN)(l)).name,fn:C.fn,options:[l,a]}),O&&(u={...eh},{name:(R=(0,B.UU)(u)).name,fn:R.fn,options:[u,s]}),(c={...eh,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${l}px`)}},{name:(A=(0,B.Ej)(c)).name,fn:A.fn,options:[c,d]}),et&&{name:(T={name:"arrow",options:v=h={element:et,padding:j},fn(e){let{element:t,padding:n}="function"==typeof v?v(e):v;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?(0,B.UE)({element:t.current,padding:n}).fn(e):{}:t?(0,B.UE)({element:t,padding:n}).fn(e):{}}}).name,fn:T.fn,options:[h,m]},ec({arrowWidth:el,arrowHeight:ea}),H&&(w={strategy:"referenceHidden",...eh},{name:(L=(0,B.jD)(w)).name,fn:L.fn,options:[w,y]})]}),[ex,eb]=ed(eg),eE=(0,b.c)(Y);(0,$.N)(()=>{ew&&eE?.()},[ew,eE]);let eS=ey.arrow?.x,eC=ey.arrow?.y,eR=ey.arrow?.centerOffset!==0,[eA,eT]=f.useState();return(0,$.N)(()=>{Z&&eT(window.getComputedStyle(Z).zIndex)},[Z]),(0,E.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...ev,transform:ew?ev.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eA,"--radix-popper-transform-origin":[ey.transformOrigin?.x,ey.transformOrigin?.y].join(" "),...ey.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,E.jsx)(er,{scope:P,placedSide:ex,onArrowChange:eo,arrowX:eS,arrowY:eC,shouldHideArrow:eR,children:(0,E.jsx)(x.sG.div,{"data-side":ex,"data-align":eb,...X,ref:ee,style:{...X.style,animation:ew?void 0:"none"}})})})});ei.displayName=en;var el="PopperArrow",ea={top:"bottom",right:"left",bottom:"top",left:"right"},eu=f.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eo(el,n),i=ea[o.placedSide];return(0,E.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,E.jsx)(U,{...r,ref:t,style:{...r.style,display:"block"}})})});function es(e){return null!==e}eu.displayName=el;var ec=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,s]=ed(n),c={start:"0%",center:"50%",end:"100%"}[s],d=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===u?(p=i?c:`${d}px`,h=`${-a}px`):"top"===u?(p=i?c:`${d}px`,h=`${r.floating.height+a}px`):"right"===u?(p=`${-a}px`,h=i?c:`${f}px`):"left"===u&&(p=`${r.floating.width+a}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function ed(e){let[t,n="center"]=e.split("-");return[t,n]}var ef=f.forwardRef((e,t)=>
1{let{container:n,...r}=e,[o,i]=f.useState(!1);(0,$.N)(()=>i(!0),[]);let l=n||o&&globalThis?.document?.body;return l?p.createPortal((0,E.jsx)(x.sG.div,{...r,ref:t}),l):null});ef.displayName="Portal";var ep=n(54050),eh=n(22793),em=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});f.forwardRef((e,t)=>(0,E.jsx)(x.sG.span,{...e,ref:t,style:{...em,...e.style}})).displayName="VisuallyHidden";var ev=new WeakMap,eg=new WeakMap,ew={},ey=0,ex=function(e){return e&&(e.host||ex(e.parentNode))},eb=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ex(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});ew[n]||(ew[n]=new WeakMap);var i=ew[n],l=[],a=new Set,u=new Set(o),s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(ev.get(e)||0)+1,s=(i.get(e)||0)+1;ev.set(e,u),i.set(e,s),l.push(e),1===u&&o&&eg.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),ey++,function(){l.forEach(function(e){var t=ev.get(e)-1,o=i.get(e)-1;ev.set(e,t),i.set(e,o),t||(eg.has(e)||e.removeAttribute(r),eg.delete(e)),o||e.removeAttribute(n)}),--ey||(ev=new WeakMap,ev=new WeakMap,eg=new WeakMap,ew={})}},eE=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eb(r,o,n,"aria-hidden")):function(){return null}},eS=n(23540),eC="right-scroll-bar-position",eR="width-before-scroll-bar";function eA(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eT="u">typeof window?f.useLayoutEffect:f.useEffect,eL=new WeakMap,eP=(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=(0,eS.Cl)({async:!0,ssr:!1},o),u),ek=function(){},eN=f.forwardRef(function(e,t){var n,r,o,i,l=f.useRef(null),a=f.useState({onScrollCapture:ek,onWheelCapture:ek,onTouchMoveCapture:ek}),u=a[0],s=a[1],c=e.forwardProps,d=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,w=e.noRelative,y=e.noIsolation,x=e.inert,b=e.allowPinchZoom,E=e.as,S=e.gapMode,C=(0,eS.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[l,t],r=function(e){return n.forEach(function(t){return eA(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,eT(function(){var e=eL.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||eA(e,null)}),r.forEach(function(e){t.has(e)||eA(e,o)})}eL.set(i,n)},[n]),i),A=(0,eS.Cl)((0,eS.Cl)({},C),u);return f.createElement(f.Fragment,null,m&&f.createElement(g,{sideCar:eP,removeScrollBar:h,shards:v,noRelative:w,noIsolation:y,inert:x,setCallbacks:s,allowPinchZoom:!!b,lockRef:l,gapMode:S}),c?f.cloneElement(f.Children.only(d),(0,eS.Cl)((0,eS.Cl)({},A),{ref:R})):f.createElement(void 0===E?"div":E,(0,eS.Cl)({},A,{className:p,ref:R}),d))});eN.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eN.classNames={fullWidth:eR,zeroRight:eC};
1var eD=function(e){var t=e.sideCar,n=(0,eS.Tt)(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,(0,eS.Cl)({},n))};eD.isSideCarExport=!0;var eM=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)}}},ej=function(){var e=eM();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eO=function(){var e=ej();return function(t){return e(t.styles,t.dynamic),null}},eI={left:0,top:0,right:0,gap:0},eW=function(e){return parseInt(e||"",10)||0},eF=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[eW(n),eW(r),eW(o)]},eH=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eI;var t=eF(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])}},eB=eO(),eK="data-scroll-locked",e_=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(eK,"] {\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(eC," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(eR," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(eC," .").concat(eC," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(eR," .").concat(eR," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eK,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ez=function(){var e=parseInt(document.body.getAttribute(eK)||"0",10);return isFinite(e)?e:0},eV=function(){f.useEffect(function(){return document.body.setAttribute(eK,(ez()+1).toString()),function(){var e=ez()-1;e<=0?document.body.removeAttribute(eK):document.body.setAttribute(eK,e.toString())}},[])},eG=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eV();var i=f.useMemo(function(){return eH(o)},[o]);return f.createElement(eB,{styles:e_(i,!t,o,n?"":"!important")})},eU=!1;if("u">typeof window)try{var e$=Object.defineProperty({},"passive",{get:function(){return eU=!0,!0}});window.addEventListener("test",e$,e$),window.removeEventListener("test",e$,e$)}catch(e){eU=!1}var eY=!!eU&&{passive:!1},eX=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eq=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eZ(e,r)){var o=eJ(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eZ=function(e,t){return"v"===e?eX(t,"overflowY"):eX(t,"overflowX")},eJ=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eQ=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,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=eJ(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&eZ(e,u)&&(f+=v,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},e0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e1=function(e){return[e.deltaX,e.deltaY]},e2=function(e){return e&&"current"in e?e.current:e},e5=0,e4=[];let e6=(s=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(e5++)[0],i=f.useState(eO)[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=(0,eS.fX)([e.lockRef.current],(e.shards||[]).map(e2),!0).filter(
1Boolean);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=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=e0(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=eq(d,c);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=eq(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var m=r.current||o;return eQ(m,t,e,"h"===m?u:s,!0)},[]),u=f.useCallback(function(e){if(e4.length&&e4[e4.length-1]===i){var n="deltaY"in e?e1(e):e0(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[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(e2).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=f.useCallback(function(e){n.current=e0(e),r.current=void 0},[]),d=f.useCallback(function(t){s(t.type,e1(t),t.target,a(t,e.lockRef.current))},[]),p=f.useCallback(function(t){s(t.type,e0(t),t.target,a(t,e.lockRef.current))},[]);f.useEffect(function(){return e4.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eY),document.addEventListener("touchmove",u,eY),document.addEventListener("touchstart",c,eY),function(){e4=e4.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,eY),document.removeEventListener("touchmove",u,eY),document.removeEventListener("touchstart",c,eY)}},[]);var h=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?f.createElement(eG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eP.useMedium(s),eD);var e7=f.forwardRef(function(e,t){return f.createElement(eN,(0,eS.Cl)({},e,{ref:t,sideCar:e6}))});e7.classNames=eN.classNames;var e3=[" ","Enter","ArrowUp","ArrowDown"],e9=[" ","Enter"],e8="Select",[te,tt,tn]=(0,v.N)(e8),[tr,to]=(0,w.A)(e8,[tn,q]),ti=q(),[tl,ta]=tr(e8),[tu,ts]=tr(e8),tc=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:u,dir:s,name:c,autoComplete:d,disabled:p,required:h,form:m}=e,v=ti(t),[g,w]=f.useState(null),[x,b]=f.useState(null),[S,C]=f.useState(!1),R=(0,y.jH)(s),[A,T]=(0,eh.i)({prop:r,defaultProp:o??!1,onChange:i,caller:e8}),[L,P]=(0,eh.i)({prop:l,defaultProp:a,onChange:u,caller:e8}),k=f.useRef(null),N=!g||m||!!g.closest("form"),[D,M]=f.useState(new Set),j=Array.from(D).map(e=>e.props.value).join(";");return(0,E.jsx)(Q,{...v,children:(0,E.jsxs)(tl,{required:h,scope:t,trigger:g,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,H.B)(),value:L,onValueChange:P,open:A,onOpenChange:T,dir:R,triggerPointerDownPosRef:k,disabled:p,children:[(0,E.jsx)(te.Provider,{scope:t,children:(0,E.jsx)(tu,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:f.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,E.jsxs)(tq,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:d,value:L,onChange:e=>P(e.target.value),disabled:p,form:m,children:[void 0===L?(0,E.jsx)("option",{value:""}):null,Array.from(D)]},j):null]})})};tc.displayName=e8;var td="SelectTrigger",tf=f.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=ti(n),l=ta(td,n),a=l.disabled||r,u=(0,g.s)(t,l.onTriggerChange),s=tt(n),c=f.useRef("touch"),[d,p,h]=tJ(e=>{let t=s().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=tQ(t,e,n);void 0!==r&&l.onValueChange(r.value)}),v=e=>{a||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,E.jsx)(et,{asChild:!0,...i,children:(0,E.jsx)(x.sG.button,{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":tZ(l.value)?"":void 0,...o,ref:u,onClick:(0,m.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&v(e)}),onPointerDown:(0,m.mK)(o.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,m.mK)(o.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&e3.includes(e.key)&&(v(),e.preventDefault())})})})});tf.displayName=td;var tp="SelectValue",th=f.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=ta(tp,n),{onValueNodeHasChildrenChange:s}=u,c=void 0!==i,d=(0,g.s)(t,u.onValueNodeChange);return(0,$.N)(()=>{s(c)},[s,c]),(0,E.jsx)(x.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:tZ(u.value)?(0,E.jsx)(E.Fragment,{children:l}):i})});th.displayName=tp;var tm=f.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,E.jsx)(x.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});tm.displayName="SelectIcon";var tv=e=>(0,E.jsx)(ef,{asChild:!0,...e});tv.displayName="SelectPortal";var tg="SelectContent",tw=f.forwardRef((e,t)=>{let n=ta(tg,e.__scopeSelect),[r,o]=f.useState();return((0,$.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,E.jsx)(tE,{...e,ref:t}):r?p.createPortal((0,E.jsx)(ty,{scope:e.__scopeSelect,children:(0,E.jsx)(te.Slot,{scope:e.__scopeSelect,children:(0,E.jsx)("div",{children:e.children})})}),r):null});tw.displayName=tg;var[ty,tx]=tr(tg),tb=(0,ep.TL)("SelectContent.RemoveScroll"),tE=f.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:w,avoidCollisions:y,...x}=e,b=ta(tg,n),[S,C]=f.useState(null),[A,T]=f.useState(null),k=(0,g.s)(t,e=>C(e)),[N,D]=f.useState(null),[j,O]=f.useState(null),I=tt(n),[W,F]=f.useState(!1),H=f.useRef(!1);f.useEffect(()=>{if(S)return eE(S)},[S]),f.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??P()),document.body.insertAdjacentElement("beforeend",e[1]??P()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]);let B=f.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||(n?.scrollIntoView({block:"nearest"}),n===t&&A&&(A.scrollTop=0),n===r&&A&&(A.scrollTop=A.scrollHeight),n?.focus(),document.activeElement!==o))return},[I,A]),K=f.useCallback(()=>B([N,S]),[B,N,S]);f.useEffect(()=>{W&&K()},[W,K]);let{onOpenChange:_,triggerPointerDownPosRef:z}=b;f.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||_(!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]),f.useEffect(()=>{let e=()=>_(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[_]);let[V,G]=tJ(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tQ(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=f.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==b.value&&b.value===t||r)&&(D(e),r&&(H.current=!0))},[b.value]),$=f.useCallback(()=>S?.focus(),[S]),Y=f.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==b.value&&b.value===t||r)&&O(e)},[b.value]),X="popper"===r?tC:tS,q=X===tC?{side:a,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:w,avoidCollisions:y}:{};return(0,E.jsx)(ty,{scope:n,content:S,viewport:A,onViewportChange:T,itemRefCallback:U,selectedItem:N,onItemLeave:$,itemTextRefCallback:Y,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:W,searchRef:V,children:(0,E.jsx)(e7,{as:tb,allowPinchZoom:!0,children:(0,E.jsx)(M,{asChild:!0,trapped:b.o
1pen,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,m.mK)(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,E.jsx)(R,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,E.jsx)(X,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>F(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,m.mK)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(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(()=>B(t)),e.preventDefault()}})})})})})})});tE.displayName="SelectContentImpl";var tS=f.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,i=ta(tg,n),l=tx(tg,n),[a,u]=f.useState(null),[s,c]=f.useState(null),d=(0,g.s)(t,e=>c(e)),p=tt(n),m=f.useRef(!1),v=f.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:b,focusSelectedItem:S}=l,C=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&s&&w&&y&&b){let e=i.trigger.getBoundingClientRect(),t=s.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,u=e.width+l,s=Math.max(u,t.width),c=h(i,[10,Math.max(10,window.innerWidth-10-s)]);a.style.minWidth=u+"px",a.style.left=c+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,u=e.width+l,s=Math.max(u,t.width),c=h(i,[10,Math.max(10,window.innerWidth-10-s)]);a.style.minWidth=u+"px",a.style.right=c+"px"}let l=p(),u=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(s),f=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),x=f+v+c+parseInt(d.paddingBottom,10)+g,E=Math.min(5*y.offsetHeight,x),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),A=e.top+e.height/2-10,T=y.offsetHeight/2,L=f+v+(y.offsetTop+T);if(L<=A){let e=l.length>0&&y===l[l.length-1].ref.current;a.style.bottom="0px";let t=Math.max(u-A,T+(e?R:0)+(s.clientHeight-w.offsetTop-w.offsetHeight)+g);a.style.height=L+t+"px"}else{let e=l.length>0&&y===l[0].ref.current;a.style.top="0px";let t=Math.max(A,f+w.offsetTop+(e?C:0)+T);a.style.height=t+(x-L)+"px",w.scrollTop=L-A+w.offsetTop}a.style.margin="10px 0",a.style.minHeight=E+"px",a.style.maxHeight=u+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,a,s,w,y,b,i.dir,r]);(0,$.N)(()=>C(),[C]);let[R,A]=f.useState();(0,$.N)(()=>{s&&A(window.getComputedStyle(s).zIndex)},[s]);let T=f.useCallback(e=>{e&&!0===v.current&&(C(),S?.(),v.current=!1)},[C,S]);return(0,E.jsx)(tR,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,E.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,E.jsx)(x.sG.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});tS.displayName="SelectItemAlignedPosition";var tC=f.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=ti(n);return(0,E.jsx)(ei,{...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)"}})});tC.displayName="SelectPopperPosition";var[tR,tA]=tr(tg,{}),tT="SelectViewport",tL=f.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=tx(tT,n),l=tA(tT,n),a=(0,g.s)(t,i.onViewportChange),u=f.useRef(0);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("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}"},nonce:r}),(0,E.jsx)(te.Slot,{scope:n,children:(0,E.jsx)(x.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,m.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if(r?.current&&n){let e=Math.abs(u.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")}}}u.current=t.scrollTop})})})]})});tL.displayName=tT;
1var tP="SelectGroup",[tk,tN]=tr(tP),tD=f.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,H.B)();return(0,E.jsx)(tk,{scope:n,id:o,children:(0,E.jsx)(x.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tD.displayName=tP;var tM="SelectLabel",tj=f.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=tN(tM,n);return(0,E.jsx)(x.sG.div,{id:o.id,...r,ref:t})});tj.displayName=tM;var tO="SelectItem",[tI,tW]=tr(tO),tF=f.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=ta(tO,n),u=tx(tO,n),s=a.value===r,[c,d]=f.useState(i??""),[p,h]=f.useState(!1),v=(0,g.s)(t,e=>u.itemRefCallback?.(e,r,o)),w=(0,H.B)(),y=f.useRef("touch"),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,E.jsx)(tI,{scope:n,value:r,disabled:o,textId:w,isSelected:s,onItemTextChange:f.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,E.jsx)(te.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:(0,E.jsx)(x.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":p?"":void 0,"aria-selected":s&&p,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:v,onFocus:(0,m.mK)(l.onFocus,()=>h(!0)),onBlur:(0,m.mK)(l.onBlur,()=>h(!1)),onClick:(0,m.mK)(l.onClick,()=>{"mouse"!==y.current&&b()}),onPointerUp:(0,m.mK)(l.onPointerUp,()=>{"mouse"===y.current&&b()}),onPointerDown:(0,m.mK)(l.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:(0,m.mK)(l.onPointerMove,e=>{y.current=e.pointerType,o?u.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,m.mK)(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,m.mK)(l.onKeyDown,e=>{(u.searchRef?.current===""||" "!==e.key)&&(e9.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});tF.displayName=tO;var tH="SelectItemText",tB=f.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,l=ta(tH,n),a=tx(tH,n),u=tW(tH,n),s=ts(tH,n),[c,d]=f.useState(null),h=(0,g.s)(t,e=>d(e),u.onItemTextChange,e=>a.itemTextRefCallback?.(e,u.value,u.disabled)),m=c?.textContent,v=f.useMemo(()=>(0,E.jsx)("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=s;return(0,$.N)(()=>(w(v),()=>y(v)),[w,y,v]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(x.sG.span,{id:u.textId,...i,ref:h}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?p.createPortal(i.children,l.valueNode):null]})});tB.displayName=tH;var tK="SelectItemIndicator",t_=f.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tW(tK,n).isSelected?(0,E.jsx)(x.sG.span,{"aria-hidden":!0,...r,ref:t}):null});t_.displayName=tK;var tz="SelectScrollUpButton",tV=f.forwardRef((e,t)=>{let n=tx(tz,e.__scopeSelect),r=tA(tz,e.__scopeSelect),[o,i]=f.useState(!1),l=(0,g.s)(t,r.onScrollButtonChange);return(0,$.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,E.jsx)(t$,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tV.displayName=tz;var tG="SelectScrollDownButton",tU=f.forwardRef((e,t)=>{let n=tx(tG,e.__scopeSelect),r=tA(tG,e.__scopeSelect),[o,i]=f.useState(!1),l=(0,g.s)(t,r.onScrollButtonChange);return(0,$.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,E.jsx)(t$,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tU.displayName=tG;var t$=f.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=tx("SelectScrollButton",n),l=f.useRef(null),a=tt(n),u=f.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return f.useEffect(()=>()=>u(),[u]),(0,$.N)(()=>{let e=a().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[a]),(0,E.jsx)(x.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,m.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(r,50))}),onPointerMove:(0,m.mK)(o.onPointerMove,()=>{i.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(r,50))}),onPointerLeave:(0,m.mK)(o.onPointerLeave,()=>{u()})})}),tY=f.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return(0,E.jsx)(x.sG.div,{"aria-hidden":!0,...r,ref:t})});tY.displayName="SelectSeparator";var tX="SelectArrow";f.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ti(n),i=ta(tX,n),l=tx(tX,n);return i.open&&"popper"===l.position?(0,E.jsx)(eu,{...o,...r,ref:t}):null}).displayName=tX;var tq=f.forwardRef((e,t)=>{let n,{__scopeSelect:r,value:o,...i}=e,l=f.useRef(null),a=(0,g.s)(t,l),u=(n=f.useRef({value:o,previous:o}),f.useMemo(()=>(n.current.value!==o&&(n.current.previous=n.current.value,n.current.value=o),n.current.previous),[o]));return f.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==o&&t){let n=new Event("change",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,E.jsx)(x.sG.select,{...i,style:{...em,...i.style},ref:a,defaultValue:o})});function tZ(e){return""===e||void 0===e}function tJ(e){let t=(0,b.c)(e),n=f.useRef(""),r=f.useRef(0),o=f.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=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function tQ(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}tq.displayName="SelectBubbleInput";var t0=tc,t1=tf,t2=th,t5=tm,t4=tv,t6=tw,t7=tL,t3=tD,t9=tj,t8=tF,ne=tB,nt=t_,nn=tV,nr=tU,no=tY}}]);

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.