vendor: 2,532 bytes, line 1
1import{j as a}from"./jsx-runtime-Cb1tMCpY.js";import{r as o}from"./chunk-LFPYN7LY-BRfYTAPZ.js";import{r as Re}from"./index-CsRrDkms.js";import{c as Te}from"./index-BdQq_4o_.js";import{P as j,c as R,u as z,a as be,b as ft,d as Ne}from"./index-De-NxDev.js";import{c as mt,u as ht}from"./index-CbM-W3lz.js";import{c as gt,u as V}from"./index-COlLbHky.js";import{P as vt,h as St,u as xt,R as wt,F as yt,D as Ct}from"./index-BrLf_bQ_.js";import{A as bt,c as Pe,C as It,R as Tt,a as Nt}from"./index-C60fSyxi.js";import{u as Rt}from"./index-BpqcTOEB.js";import{u as Pt}from"./index-bMUIWUhT.js";import{V as Et}from"./index-DYG4uaKI.js";import{a as G}from"./utils-Cf_6f8B1.js";import{C as Ee}from"./chevron-down-3YXDPTYe.js";import{C as _t}from"./chevron-up-DqTF3zJI.js";import{C as jt}from"./check-8DMqnnl3.js";function At(t){const n=Mt(t),e=o.forwardRef((s,r)=>{const{children:d,...c}=s,l=o.Children.toArray(d),i=l.find(Dt);if(i){const p=i.props.children,v=l.map(S=>S===i?o.Children.count(p)>1?o.Children.only(null):o.isValidElement(p)?p.props.children:null:S);return a.jsx(n,{...c,ref:r,children:o.isValidElement(p)?o.cloneElement(p,void 0,v):null})}return a.jsx(n,{...c,ref:r,children:d})});return e.displayName=`${t}.Slot`,e}function Mt(t){const n=o.forwardRef((e,s)=>{const{children:r,...d}=e;if(o.isValidElement(r)){const c=Vt(r),l=Lt(d,r.props);return r.type!==o.Fragment&&(l.ref=s?gt(s,c):c),o.cloneElement(r,l)}return o.Children.count(r)>1?o.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Ot=Symbol("radix.slottable");function Dt(t){return o.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ot}function Lt(t,n){const e={...n};for(const s in n){const r=t[s],d=n[s];/^on[A-Z]/.test(s)?r&&d?e[s]=(...l)=>{const i=d(...l);return r(...l),i}:r&&(e[s]=r):s==="style"?e[s]={...r,...d}:s==="className"&&(e[s]=[r,d].filter(Boolean).join(" "))}return{...t,...e}}function Vt(t){var s,r;let n=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?t.props.ref:t.props.ref||t.ref)}var kt=[" ","Enter","ArrowUp","ArrowDown"],Bt=[" ","Enter"],Q="Select",[ce,de,Ht]=mt(Q),[oe]=ft(Q,[Ht,Pe]),pe=Pe(),[Wt,Y]=oe(Q),[Ft,Ut]=oe(Q),_e=t=>{const{__scopeSelect:n,children:e,open:s,defaultOpen:r,onOpenChange:d,value:c,defaultValue:l,onValueChange:i,dir:p,name:v,autoComplete:S,disabled:T,required:N,form:I}
vendor: 2,946 bytes, line 1
1=t,u=pe(n),[g,y]=o.useState(null),[f,h]=o.useState(null),[A,M]=o.useState(!1),ne=ht(p),[P,D]=Ne({prop:s,defaultProp:r??!1,onChange:d,caller:Q}),[U,Z]=Ne({prop:c,defaultProp:l,onChange:i,caller:Q}),k=o.useRef(null),B=g?I||!!g.closest("form"):!0,[K,H]=o.useState(new Set),W=Array.from(K).map(E=>E.props.value).join(";");return a.jsx(Tt,{...u,children:a.jsxs(Wt,{required:N,scope:n,trigger:g,onTriggerChange:y,valueNode:f,onValueNodeChange:h,valueNodeHasChildren:A,onValueNodeHasChildrenChange:M,contentId:be(),value:U,onValueChange:Z,open:P,onOpenChange:D,dir:ne,triggerPointerDownPosRef:k,disabled:T,children:[a.jsx(ce.Provider,{scope:n,children:a.jsx(Ft,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(E=>{H(L=>new Set(L).add(E))},[]),onNativeOptionRemove:o.useCallback(E=>{H(L=>{const F=new Set(L);return F.delete(E),F})},[]),children:e})}),B?a.jsxs(et,{"aria-hidden":!0,required:N,tabIndex:-1,name:v,autoComplete:S,value:U,onChange:E=>Z(E.target.value),disabled:T,form:I,children:[U===void 0?a.jsx("option",{value:""}):null,Array.from(K)]},W):null]})})};_e.displayName=Q;var je="SelectTrigger",Ae=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:s=!1,...r}=t,d=pe(e),c=Y(je,e),l=c.disabled||s,i=V(n,c.onTriggerChange),p=de(e),v=o.useRef("touch"),[S,T,N]=ot(u=>{const g=p().filter(h=>!h.disabled),y=g.find(h=>h.value===c.value),f=nt(g,u,y);f!==void 0&&c.onValueChange(f.value)}),I=u=>{l||(c.onOpenChange(!0),N()),u&&(c.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return a.jsx(bt,{asChild:!0,...d,children:a.jsx(j.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":tt(c.value)?"":void 0,...r,ref:i,onClick:R(r.onClick,u=>{u.currentTarget.focus(),v.current!=="mouse"&&I(u)}),onPointerDown:R(r.onPointerDown,u=>{v.current=u.pointerType;const g=u.target;g.hasPointerCapture(u.pointerId)&&g.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(I(u),u.preventDefault())}),onKeyDown:R(r.onKeyDown,u=>{const g=S.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&T(u.key),!(g&&u.key===" ")&&kt.includes(u.key)&&(I(),u.preventDefault())})})})});Ae.displayName=je;var Me="SelectValue",Oe=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,children:d,placeholder:c="",...l}=t,i=Y(Me,e),{onValueNodeHasChildrenChange:p}=i,v=d!==void 0,S=V(n,i.onValueNodeChange);return z(()=>{p(v)},[p,v]),a.jsx(j.span,{...l,ref:S,style:{pointerEvents:"none"},children:tt(i.value)?a.jsx(a.Fragment,{children:c}):d})});Oe.displayName=Me;var Kt="SelectIcon",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:s,...r}=t;return a.jsx(j.span,{"aria-hidden":!0,...r,ref:n,children:s||"â¼"})});De.displayName=Kt;var $t="SelectPortal",Le=t=>a.jsx(vt,{asChild:!0,...t});
vendor: 14,837 bytes, line 1
1Le.displayName=$t;var ee="SelectContent",Ve=o.forwardRef((t,n)=>{const e=Y(ee,t.__scopeSelect),[s,r]=o.useState();if(z(()=>{r(new DocumentFragment)},[]),!e.open){const d=s;return d?Re.createPortal(a.jsx(ke,{scope:t.__scopeSelect,children:a.jsx(ce.Slot,{scope:t.__scopeSelect,children:a.jsx("div",{children:t.children})})}),d):null}return a.jsx(Be,{...t,ref:n})});Ve.displayName=ee;var O=10,[ke,q]=oe(ee),zt="SelectContentImpl",Gt=At("SelectContent.RemoveScroll"),Be=o.forwardRef((t,n)=>{const{__scopeSelect:e,position:s="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:d,onPointerDownOutside:c,side:l,sideOffset:i,align:p,alignOffset:v,arrowPadding:S,collisionBoundary:T,collisionPadding:N,sticky:I,hideWhenDetached:u,avoidCollisions:g,...y}=t,f=Y(ee,e),[h,A]=o.useState(null),[M,ne]=o.useState(null),P=V(n,m=>A(m)),[D,U]=o.useState(null),[Z,k]=o.useState(null),B=de(e),[K,H]=o.useState(!1),W=o.useRef(!1);o.useEffect(()=>{if(h)return St(h)},[h]),xt();const E=o.useCallback(m=>{const[b,..._]=B().map(w=>w.ref.current),[C]=_.slice(-1),x=document.activeElement;for(const w of m)if(w===x||(w==null||w.scrollIntoView({block:"nearest"}),w===b&&M&&(M.scrollTop=0),w===C&&M&&(M.scrollTop=M.scrollHeight),w==null||w.focus(),document.activeElement!==x))return},[B,M]),L=o.useCallback(()=>E([D,h]),[E,D,h]);o.useEffect(()=>{K&&L()},[K,L]);const{onOpenChange:F,triggerPointerDownPosRef:$}=f;o.useEffect(()=>{if(h){let m={x:0,y:0};const b=C=>{var x,w;m={x:Math.abs(Math.round(C.pageX)-(((x=$.current)==null?void 0:x.x)??0)),y:Math.abs(Math.round(C.pageY)-(((w=$.current)==null?void 0:w.y)??0))}},_=C=>{m.x<=10&&m.y<=10?C.preventDefault():h.contains(C.target)||F(!1),document.removeEventListener("pointermove",b),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_,{capture:!0})}}},[h,F,$]),o.useEffect(()=>{const m=()=>F(!1);return window.addEventListener("blur",m),window.addEventListener("resize",m),()=>{window.removeEventListener("blur",m),window.removeEventListener("resize",m)}},[F]);const[ue,le]=ot(m=>{const b=B().filter(x=>!x.disabled),_=b.find(x=>x.ref.current===document.activeElement),C=nt(b,m,_);C&&setTimeout(()=>C.ref.current.focus())}),fe=o.useCallback((m,b,_)=>{const C=!W.current&&!_;(f.value!==void 0&&f.value===b||C)&&(U(m),C&&(W.current=!0))},[f.value]),me=o.useCallback(()=>h==null?void 0:h.focus(),[h]),te=o.useCallback((m,b,_)=>{const C=!W.current&&!_;(f.value!==void 0&&f.value===b||C)&&k(m)},[f.value]),ae=s==="popper"?Se:He,re=ae===Se?{side:l,sideOffset:i,align:p,alignOffset:v,arrowPadding:S,collisionBoundary:T,collisionPadding:N,sticky:I,hideWhenDetached:u,avoidCollisions:g}:{};return a.jsx(ke,{scope:e,content:h,viewport:M,onViewportChange:ne,itemRefCallback:fe,selectedItem:D,onItemLeave:me,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:Z,position:s,isPositioned:K,searchRef:ue,children:a.jsx(wt,{as:Gt,allowPinchZoom:!0,children:a.jsx(yt,{asChild:!0,trapped:f.open,onMountAutoFocus:m=>{m.preventDefault()},onUnmountAutoFocus:R(r,m=>{var b;(b=f.trigger)==null||b.focus({preventScroll:!0}),m.preventDefault()}),children:a.jsx(Ct,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:m=>m.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:a.jsx(ae,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:m=>m.preventDefault(),...y,...re,onPlaced:()=>H(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:R(y.onKeyDown,m=>{const b=m.ctrlKey||m.altKey||m.metaKey;if(m.key==="Tab"&&m.preventDefault(),!b&&m.key.length===1&&le(m.key),["ArrowUp","ArrowDown","Home","End"].includes(m.key)){let C=B().filter(x=>!x.disabled).map(x=>x.ref.current);if(["ArrowUp","End"].includes(m.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(m.key)){const x=m.target,w=C.indexOf(x);C=C.slice(w+1)}setTimeout(()=>E(C)),m.preventDefault()}})})})})})})});Be.displayName=zt;var Yt="SelectItemAlignedPosition",He=o.forwardRef((t,n)=>{const{__scopeSelect:e,onPlaced:s,...r}=t,d=Y(ee,e),c=q(ee,e),[l,i]=o.useState(null),[p,v]=o.useState(null),S=V(n,P=>v(P)),T=de(e),N=o.useRef(!1),I=o.useRef(!0),{viewport:u,selectedItem:g,selectedItemText:y,focusSelectedItem:f}=c,h=o.useCallback(()=>{if(d.trigger&&d.valueNode&&l&&p&&u&&g&&y){const P=d.trigger.getBoundingClientRect(),D=p.getBoundingClientRect(),U=d.valueNode.getBoundingClientRect(),Z=y.getBoundingClientRect();if(d.dir!=="rtl"){const x=Z.left-D.left,w=U.left-x,X=P.left-w,J=P.width+X,he=Math.max(J,D.width),ge=window.innerWidth-O,ve=Te(w,[O,Math.max(O,ge-he)]);l.style.minWidth=J+"px",l.style.left=ve+"px"}else{const x=D.right-Z.right,w=window.innerWidth-U.right-x,X=window.innerWidth-P.right-w,J=P.width+X,he=Math.max(J,D.width),ge=window.innerWidth-O,ve=Te(w,[O,Math.max(O,ge-he)]);l.style.minWidth=J+"px",l.style.right=ve+"px"}const k=T(),B=window.innerHeight-O*2,K=u.scrollHeight,H=window.getComputedStyle(p),W=parseInt(H.borderTopWidth,10),E=parseInt(H.paddingTop,10),L=parseInt(H.borderBottomWidth,10),F=parseInt(H.paddingBottom,10),$=W+E+K+F+L,ue=Math.min(g.offsetHeight*5,$),le=window.getComputedStyle(u),fe=parseInt(le.paddingTop,10),me=parseInt(le.paddingBottom,10),te=P.top+P.height/2-O,ae=B-te,re=g.offsetHeight/2,m=g.offsetTop+re,b=W+E+m,_=$-b;if(b<=te){const x=k.length>0&&g===k[k.length-1].ref.current;l.style.bottom="0px";const w=p.clientHeight-u.offsetTop-u.offsetHeight,X=Math.max(ae,re+(x?me:0)+w+L),J=b+X;l.style.height=J+"px"}else{const x=k.length>0&&g===k[0].ref.current;l.style.top="0px";const X=Math.max(te,W+u.offsetTop+(x?fe:0)+re)+_;l.style.height=X+"px",u.scrollTop=b-te+u.offsetTop}l.style.margin=`${O}px 0`,l.style.minHeight=ue+"px",l.style.maxHeight=B+"px",s==null||s(),requestAnimationFrame(()=>N.current=!0)}},[T,d.trigger,d.valueNode,l,p,u,g,y,d.dir,s]);z(()=>h(),[h]);const[A,M]=o.useState();z(()=>{p&&M(window.getComputedStyle(p).zIndex)},[p]);const ne=o.useCallback(P=>{P&&I.current===!0&&(h(),f==null||f(),I.current=!1)},[h,f]);return a.jsx(Zt,{scope:e,contentWrapper:l,shouldExpandOnScrollRef:N,onScrollButtonChange:ne,children:a.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:a.jsx(j.div,{...r,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});He.displayName=Yt;var qt="SelectPopperPosition",Se=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:s="start",collisionPadding:r=O,...d}=t,c=pe(e);return a.jsx(It,{...c,...d,ref:n,align:s,collisionPadding:r,style:{boxSizing:"border-box",...d.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)"}})});Se.displayName=qt;var[Zt,Ie]=oe(ee,{}),xe="SelectViewport",We=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:s,...r}=t,d=q(xe,e),c=Ie(xe,e),l=V(n,d.onViewportChange),i=o.useRef(0);return a.jsxs(a.Fragment,{children:[a.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:s}),a.jsx(ce.Slot,{scope:e,children:a.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:R(r.onScroll,p=>{const v=p.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:T}=c;if(T!=null&&T.current&&S){const N=Math.abs(i.current-v.scrollTop);if(N>0){const I=window.innerHeight-O*2,u=parseFloat(S.style.minHeight),g=parseFloat(S.style.height),y=Math.max(u,g);if(y<I){const f=y+N,h=Math.min(I,f),A=f-h;S.style.height=h+"px",S.style.bottom==="0px"&&(v.scrollTop=A>0?A:0,S.style.justifyContent="flex-end")}}}i.current=v.scrollTop})})})]})});We.displayName=xe;var Fe="SelectGroup",[Xt,Jt]=oe(Fe),Qt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=be();return a.jsx(Xt,{scope:e,id:r,children:a.jsx(j.div,{role:"group","aria-labelledby":r,...s,ref:n})})});Qt.displayName=Fe;var Ue="SelectLabel",Ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=Jt(Ue,e);return a.jsx(j.div,{id:r.id,...s,ref:n})});Ke.displayName=Ue;var ie="SelectItem",[eo,$e]=oe(ie),ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,value:s,disabled:r=!1,textValue:d,...c}=t,l=Y(ie,e),i=q(ie,e),p=l.value===s,[v,S]=o.useState(d??""),[T,N]=o.useState(!1),I=V(n,f=>{var h;return(h=i.itemRefCallback)==null?void 0:h.call(i,f,s,r)}),u=be(),g=o.useRef("touch"),y=()=>{r||(l.onValueChange(s),l.onOpenChange(!1))};if(s==="")throw new 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 a.jsx(eo,{scope:e,value:s,disabled:r,textId:u,isSelected:p,onItemTextChange:o.useCallback(f=>{S(h=>h||((f==null?void 0:f.textContent)??"").trim())},[]),children:a.jsx(ce.ItemSlot,{scope:e,value:s,disabled:r,textValue:v,children:a.jsx(j.div,{role:"option","aria-labelledby":u,"data-highlighted":T?"":void 0,"aria-selected":p&&T,"data-state":p?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...c,ref:I,onFocus:R(c.onFocus,()=>N(!0)),onBlur:R(c.onBlur,()=>N(!1)),onClick:R(c.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:R(c.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:R(c.onPointerDown,f=>{g.current=f.pointerType}),onPointerMove:R(c.onPointerMove,f=>{var h;g.current=f.pointerType,r?(h=i.onItemLeave)==null||h.call(i):g.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(c.onPointerLeave,f=>{var h;f.currentTarget===document.activeElement&&((h=i.onItemLeave)==null||h.call(i))}),onKeyDown:R(c.onKeyDown,f=>{var A;((A=i.searchRef)==null?void 0:A.current)!==""&&f.key===" "||(Bt.includes(f.key)&&y(),f.key===" "&&f.preventDefault())})})})})});ze.displayName=ie;var se="SelectItemText",Ge=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:s,style:r,...d}=t,c=Y(se,e),l=q(se,e),i=$e(se,e),p=Ut(se,e),[v,S]=o.useState(null),T=V(n,y=>S(y),i.onItemTextChange,y=>{var f;return(f=l.itemTextRefCallback)==null?void 0:f.call(l,y,i.value,i.disabled)}),N=v==null?void 0:v.textContent,I=o.useMemo(()=>a.jsx("option",{value:i.value,disabled:i.disabled,children:N},i.value),[i.disabled,i.value,N]),{onNativeOptionAdd:u,onNativeOptionRemove:g}=p;return z(()=>(u(I),()=>g(I)),[u,g,I]),a.jsxs(a.Fragment,{children:[a.jsx(j.span,{id:i.textId,...d,ref:T}),i.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Re.createPortal(d.children,c.valueNode):null]})});Ge.displayName=se;var Ye="SelectItemIndicator",qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return $e(Ye,e).isSelected?a.jsx(j.span,{"aria-hidden":!0,...s,ref:n}):null});qe.displayName=Ye;var we="SelectScrollUpButton",Ze=o.forwardRef((t,n)=>{const e=q(we,t.__scopeSelect),s=Ie(we,t.__scopeSelect),[r,d]=o.useState(!1),c=V(n,s.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let l=function(){const p=i.scrollTop>0;d(p)};const i=e.viewport;return l(),i.addEventListener("scroll",l),()=>i.removeEventListener("scroll",l)}},[e.viewport,e.isPositioned]),r?a.jsx(Je,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:i}=e;l&&i&&(l.scrollTop=l.scrollTop-i.offsetHeight)}}):null});Ze.displayName=we;var ye="SelectScrollDownButton",Xe=o.forwardRef((t,n)=>{const e=q(ye,t.__scopeSelect),s=Ie(ye,t.__scopeSelect),[r,d]=o.useState(!1),c=V(n,s.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let l=function(){const p=i.scrollHeight-i.clientHeight,v=Math.ceil(i.scrollTop)<p;d(v)};const i=e.viewport;return l(),i.addEventListener("scroll",l),()=>i.removeEventListener("scroll",l)}},[e.viewport,e.isPositioned]),r?a.jsx(Je,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:i}=e;l&&i&&(l.scrollTop=l.scrollTop+i.offsetHeight)}}):null});Xe.displayName=ye;var Je=o.forwardRef((t,n)=>{const{__scopeSelect:e,onAutoScroll:s,...r}=t,d=q("SelectScrollButton",e),c=o.useRef(null),l=de(e),i=o.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return o.useEffect(()=>()=>i(),[i]),z(()=>{var v;const p=l().find(S=>S.ref.current===document.activeElement);(v=p==null?void 0:p.ref.current)==null||v.scrollIntoView({block:"nearest"})},[l]),a.jsx(j.div,{"aria-hidden":!0,...r,ref:n,style:{flexShrink:0,...r.style},onPointerDown:R(r.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:R(r.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:R(r.onPointerLeave,()=>{i()})})}),to="SelectSeparator",Qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t;return a.jsx(j.div,{"aria-hidden":!0,...s,ref:n})});Qe.displayName=to;var Ce="SelectArrow",oo=o.forwardRef((t,n)=>{const{__scopeSelect:e,...s}=t,r=pe(e),d=Y(Ce,e),c=q(Ce,e);return d.open&&c.position==="popper"?a.jsx(Nt,{...r,...s,ref:n}):null});oo.displayName=Ce;var no="SelectBubbleInput",et=o.forwardRef(({__scopeSelect:t,value:n,...e},s)=>{const r=o.useRef(null),d=V(s,r),c=Pt(n);return o.useEffect(()=>{const l=r.current;if(!l)return;const i=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(i,"value").set;if(c!==n&&v){const S=new Event("change",{bubbles:!0});v.call(l,n),l.dispatchEvent(S)}},[c,n]),a.jsx(j.select,{...e,style:{...Et,...e.style},ref:d,defaultValue:n})});et.displayName=no;function tt(t){return t===""||t===void 0}function ot(t){const n=Rt(t),e=o.useRef(""),s=o.useRef(0),r=o.useCallback(c=>{const l=e.current+c;n(l),(function i(p){e.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>i(""),1e3))})(l)},[n]),d=o.useCallback(()=>{e.current="",window.clearTimeout(s.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(s.current),[]),[e,r,d]}function nt(t,n,e){const r=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,d=e?t.indexOf(e):-1;let c=ro(t,Math.max(d,0));r.length===1&&(c=c.filter(p=>p!==e));const i=c.find(p=>p.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==e?i:void 0}function ro(t,n){return t.map((e,s)=>t[(n+s)%t.length])}var so=_e,rt=Ae,lo=Oe,ao=De,io=Le,st=Ve,co=We,lt=Ke,at=ze,po=Ge,uo=qe,it=Ze,ct=Xe,dt=Qe;const Oo=so,Do=lo,fo=o.forwardRef(({className:t,children:n,...e},s)=>a.jsxs(rt,{ref:s,translate:"no",className:G("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground text-muted-foreground focus:outline-none focus:border-primary focus-visible:outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...e,children:[n,a.jsx(ao,{asChild:!0,children:a.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));fo.displayName=rt.displayName;const pt=o.forwardRef(({className:t,...n},e)=>a.jsx(it,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:a.jsx(_t,{className:"h-4 w-4"})}));pt.displayName=it.displayName;const ut=o.forwardRef(({className:t,...n},e)=>a.jsx(ct,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:a.jsx(Ee,{className:"h-4 w-4"})}));ut.displayName=ct.displayName;const mo=o.forwardRef(({className:t,children:n,position:e="popper",...s},r)=>a.jsx(io,{children:a.jsxs(st,{ref:r,translate:"no",className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-white text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:e,...s,children:[a.jsx(pt,{}),a.jsx(co,{className:G("p-1 bg-white",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),a.jsx(ut,{})]})}));mo.displayName=st.displayName;const ho=o.forwardRef(({className:t,...n},e)=>a.jsx(lt,{ref:e,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n}));ho.displayName=lt.displayName;const go=o.forwardRef(({className:t,children:n,indicatorIcon:e,...s},r)=>a.jsxs(at,{ref:r,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none bg-white focus:bg-primary-100 focus:text-primary hover:bg-primary-100 hover:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...s,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(uo,{children:e?a.jsx(e,{className:"h-4 w-4"}):a.jsx(jt,{className:"h-4 w-4"})})}),a.jsx(po,{children:n})]}));go.displayName=at.displayName;const vo=o.forwardRef(({className:t,...n},e)=>a.jsx(dt,{ref:e,className:G("-mx-1 my-1 h-px bg-muted",t),...n}));vo.displayName=dt.displayName;export{Oo as S,fo as a,Do as b,mo as c,go as d,vo as e};
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.