1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,300033,e=>{"use strict";var t=e.i(843476);e.i(564623);var n=e.i(271645),r=e.i(502077),l=e.i(828918),o=e.i(388940),i=e.i(713203),s=e.i(394258),a=e.i(590803),u=e.i(951437),c=e.i(146376),d=e.i(667865),f=e.i(446265),p=e.i(301252),m=e.i(956789),g=e.i(385689),h=e.i(17989),x=e.i(265858),S=e.i(260891),v=e.i(736760),b=e.i(703902),R=e.i(469690),y=e.i(381104),C=e.i(538489),w=e.i(223910),E=e.i(484325),I=e.i(186698);function A(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function M(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,I.serializeValue)(e)}function T(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,I.serializeValue)(e.value):(0,I.serializeValue)(e)}function P(e,t,n){if(n&&null!=e)return n(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??M(e,n);if(Array.isArray(t)){let r=A(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:M(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return M(e,n)}let O={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return null!=t&&(n&&Array.isArray(t)?t.length>0:""!==T(t,r))},hasNullItemLabel:(e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(A(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>(0,E.compareItemEquality)(t,e,n)):(0,E.compareItemEquality)(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var V=e.i(675606),j=e.i(56434),D=e.i(137584),N=e.i(884708),L=e.i(606039),F=e.i(32199);function k(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function H(e,t){return Math.max(0,e-t)}function U(e,t){if(t<=0)return 0;let n=k(e,0,t),r=t-n,l=n<=1,o=r<=1;return l&&o?n<=r?0:t:l?0:o?t:n}var B=e.i(264111),W=e.i(176782),Y=e.i(552245),q=e.i(875812),$=e.i(229315),_=e.i(108868),z=e.i(584446),K=e.i(788015),G=e.i(247778);let J=n.forwardRef(function(e,t){let{render:n,className:r,style:l,...o}=e;delete o.id;let i=(0,R.useFieldRootContext)(),s=(0,b.useSelectRootContext)(),a=s.useState("triggerElement"),u=s.useState("id"),f=function(e={}){let t,{id:n,fallbackControlId:r,native:l=!1,setLabelId:o,focusControl:i}=e,{controlId:s,setLabelId:a}=(0,G.useLabelableContext)(),u=(0,d.useStableCallback)(e=>{a(e),o?.(e)}),f=(t=(0,K.useBaseUiId)(n),(0,c.useIsoLayoutEffect)(()=>(u(t),()=>{u(e=>e===t?void 0:e)}),[t,u]),t),p=s??r;function m(e){let t=(0,z.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),l||function(e){if(i)return i(e,p);if(!p)return;let t=(0,_.ownerDocument)(e.currentTarget).getElementById(p);(0,$.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return l?{id:f,htmlFor:p,onMouseDown:m}:{id:f,onClick:m,onPointerDown(e){e.preventDefault()}}}({id:null==u?void 0:`${u}-label`,fallbackControlId:a?.id??u,setLabelId(e){let t="function"==typeof e?e(s.state.labelId):e;s.set("labelId",t)}});return(0,Y.useRenderElement)("div",e,{ref:t,state:i.state,props:[f,o],stateAttributesMapping:q.fieldValidityMapping})});var X=e.i(439957),Q=e.i(879938),Z=e.i(264042),ee=e.i(596296),et=e.i(540886),en=e.i(145147);en.CommonTriggerDataAttributes.popupOpen,en.CommonTriggerDataAttributes.pressed;let er={...Q.pressableTriggerOpenStateMapping,...q.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},el=n.forwardRef(function(e,t){let{render:r,className:l,id:o,disabled:i=!1,nativeButton:s=!0,style:a,...u}=e,{setTouched:c,setFocused:d,validationMode:p,validation:m,state:g,disabled:h}=(0,R.useFieldRootContext)(),{labelId:x}=(0,G.useLabelableContext)(),S=(0,b.useSelectRootContext)(),{readOnly:v,required:y,disabled:w}=(0,b.useSelectRootPropsContext)(),E=h||w||i,I=S.useState("open"),A=S.useState("mounted"),M=S.useState("value"),T=S.useState("triggerProps"),P=S.useState("positionerElement"),O=S.useState("listElement"),D=S.useState("popupSide"),N=S.useState("id"),L=S.useState("labelId"),F=S.useState("hasSelectedValue"),k=A&&P?D:null;(0,C.useLabelableId)({id:o});let H=(0,f.useValueAsRef)(P),U=n.useRef(null),{getButtonProps:B,buttonRef:q}=(0,et.useButton)({disabled:E,native:s}),$=S.useStateSetter("triggerElement"),K=(0,X.useTimeout)(),J=(0,X.useTimeout)(),Q=(0,X.useTimeout)();n.useEffect(()=>{if(I)return Q.start(400,()=>{S.context.selectionRef.current.allowUnselectedMouseUp=!0,S.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{Q.clear()};S.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},J.clear()},[I,S,J,Q]);let en=(0,W.mergeProps)(T,{id:o??N,role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-controls":I?O?.id??(0,ee.getFloatingFocusElement)(P)?.id:void 0,"aria-labelledby":x??L,"aria-readonly":v||void 0,"aria-required":y||void 0,tabIndex:E?-1:0,onFocus(e){d(!0),I&&S.context.alignItemWithTriggerActiveRef.current&&S.c
1ontext.setOpen(!1,(0,V.createChangeEventDetails)(j.REASONS.none,e.nativeEvent)),K.start(0,()=>{S.set("forceMount",!0)})},onBlur(e){(0,z.contains)(P,e.relatedTarget)||(c(!0),d(!1),"onBlur"===p&&m.commit(M))},onMouseDown(e){if(I)return;let t=(0,_.ownerDocument)(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;(0,z.contains)(U.current,t)||(0,z.contains)(H.current,t)||(0,Z.isMouseWithinBounds)(e,U.current)||S.context.setOpen(!1,(0,V.createChangeEventDetails)(j.REASONS.cancelOpen,e))}J.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},u,B),el=m.getValidationProps(E,en);el.role="combobox";let eo={...g,open:I,disabled:E,value:M,readOnly:v,popupSide:k,placeholder:!F};return(0,Y.useRenderElement)("button",e,{ref:[t,U,q,$],state:eo,stateAttributesMapping:er,props:el})}),eo={value:()=>null},ei=n.forwardRef(function(e,r){let{className:l,render:o,children:i,placeholder:s,style:a,...u}=e,c=(0,b.useSelectRootContext)(),d=c.useState("value"),f=c.useState("items"),p=c.useState("itemToStringLabel"),m=c.useState("hasSelectedValue"),g=!m&&null!=s&&null==i,h=c.useState("hasNullItemLabel",g),x=null;if("function"==typeof i)x=i(d);else if(null!=i)x=i;else if(g&&!h)x=s;else if(Array.isArray(d))x=d.reduce((e,r,l)=>(l>0&&e.push(", "),e.push((0,t.jsx)(n.Fragment,{children:P(r,f,p)},l)),e),[]);else x=P(d,f,p);return(0,Y.useRenderElement)("span",e,{state:{value:d,placeholder:!m},ref:[r,c.context.valueRef],props:[{children:x},u],stateAttributesMapping:eo})}),es=n.forwardRef(function(e,t){let{render:n,className:r,style:l,...o}=e,i=(0,b.useSelectRootContext)().useState("open");return(0,Y.useRenderElement)("span",e,{state:{open:i},ref:t,props:[{"aria-hidden":!0,children:"â¼"},o],stateAttributesMapping:Q.triggerOpenStateMapping})});var ea=e.i(726674);let eu=n.forwardRef(function(e,n){let r=(0,b.useSelectRootContext)(),l=r.useState("mounted"),o=r.useState("forceMount");return l||o?(0,t.jsx)(ea.FloatingPortal,{ref:n,...e}):null});var ec=e.i(474354);let ed={...Q.popupStateMapping,...ec.transitionStatusMapping},ef=n.forwardRef(function(e,t){let{render:n,className:r,style:l,...o}=e,i=(0,b.useSelectRootContext)(),s=i.useState("open"),a=i.useState("mounted"),u=i.useState("transitionStatus");return(0,Y.useRenderElement)("div",e,{state:{open:s,transitionStatus:u},ref:t,props:[{role:"presentation",hidden:!a,style:{userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:ed})});var ep=e.i(144394),em=e.i(53687),eg=e.i(923706),eh=e.i(733332);let ex=n.createContext(void 0);function eS(){let e=n.useContext(ex);if(!e)throw Error((0,eh.default)(59));return e}var ev=e.i(426),eb=e.i(638396);function eR(e,t){e&&Object.assign(e.style,t)}let ey={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eC=e.i(789579),ew=e.i(33383);let eE={position:"fixed"},eI=n.forwardRef(function(e,r){let{anchor:l,className:o,render:i,positionMethod:s,side:a,align:u,sideOffset:f,alignOffset:p,collisionBoundary:m="clipping-ancestors",collisionPadding:g,arrowPadding:h,sticky:x,disableAnchorTracking:S,alignItemWithTrigger:v=!0,collisionAvoidance:R=eb.DROPDOWN_COLLISION_AVOIDANCE,style:y,...C}=e,w=(0,b.useSelectRootContext)(),I=(0,b.useSelectFloatingContext)(),A=w.useState("open"),M=w.useState("mounted"),T=w.useState("modal"),P=w.useState("value"),O=w.useState("openMethod"),D=w.useState("positionerElement"),N=w.useState("triggerElement"),L=w.useState("isItemEqualToValue"),F=w.useState("transitionStatus"),k=n.useRef(null),H=n.useRef(null),[U,B]=n.useState(v),W=M&&U&&"touch"!==O;M||U===v||B(v),n.useImperativeHandle(w.context.alignItemWithTriggerActiveRef,()=>W),(0,ew.useAnchoredPopupScrollLock)((W||T)&&A,"touch"===O,D,N);let Y=(0,eg.useAnchorPositioning)({anchor:l,floatingRootContext:I,positionMethod:s,mounted:M,side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,disableAnchorTracking:S??W,collisionAvoidance:R,keepMounted:!0}),q=W?"none":Y.side,$=W?eE:Y.positionerStyles,_={open:A,side:q,align:Y.align,anchorHidden:Y.anchorHidden};(0,c.useIsoLayoutEffect)(()=>{w.set("popupSide",Y.side)},[w,Y.side]);let z=w.useStateSetter("positionerElement"),K=(0,eC.usePositioner)(e,_,{styles:$,transitionStatus:F,props:C,refs:[r,z],hidden:!M,inert:!A}),G=n.useRef(0),J=(0,d.useStableCallback)(e=>{if(0===w.context.valuesRef.current.length)return;let t=G.current;G.current=e.size;let n=(0,V.createChangeEventDetails)(j.REASONS.none);if(0!==t&&!w.state.multiple&&null!==P&&-1===(0,E.findItemIndex)(w.context.valuesRef.current,P,L)){let e=w.context.
1initialValueRef.current,t=null!=e&&-1!==(0,E.findItemIndex)(w.context.valuesRef.current,e,L)?e:null;w.context.setValue(t,n),null===t&&(w.set("selectedIndex",null),w.context.selectedItemTextRef.current=null)}if(0!==t&&w.state.multiple&&Array.isArray(P)){let e=P.filter(e=>-1!==(0,E.findItemIndex)(w.context.valuesRef.current,e,L));e.length!==P.length&&(w.context.setValue(e,n),0===e.length&&(w.set("selectedIndex",null),w.context.selectedItemTextRef.current=null))}if(A&&W){w.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};eR(D,e),eR(w.context.popupRef.current,e)}}),X=n.useMemo(()=>({...Y,side:q,alignItemWithTriggerActive:W,setControlledAlignItemWithTrigger:B,scrollUpArrowRef:k,scrollDownArrowRef:H}),[Y,q,W,B]);return(0,t.jsx)(em.CompositeList,{elementsRef:w.context.listRef,labelsRef:w.context.labelsRef,onMapChange:J,children:(0,t.jsxs)(ex.Provider,{value:X,children:[M&&T&&(0,t.jsx)(ev.InternalBackdrop,{inert:(0,ep.inertValue)(!A),cutout:N}),K]})})});var eA=e.i(343084),eM=e.i(574735),eT=e.i(328744),eP=e.i(333848),eO=e.i(708445),eV=e.i(61487),ej=e.i(27788);let eD="base-ui-disable-scrollbar";var eN=e.i(96533),eL=e.i(673327),eF=e.i(253984),ek=e.i(172410),eH=e.i(872855);let eU="--transform-origin",eB={...Q.popupStateMapping,...ec.transitionStatusMapping},eW=n.forwardRef(function(e,r){let l,{render:o,className:i,style:s,finalFocus:a,...u}=e,f=(0,b.useSelectRootContext)(),{multiple:p,readOnly:m,highlightItemOnHover:g}=(0,b.useSelectRootPropsContext)(),h=(0,b.useSelectFloatingContext)(),{side:x,align:S,alignItemWithTriggerActive:v,isPositioned:R,setControlledAlignItemWithTrigger:y}=eS(),C=null!=(0,eN.useToolbarRootContext)(!0),w=(0,eH.useDirection)(),{nonce:E,disableStyleElements:I}=(0,ek.useCSPContext)(),A=f.useState("id"),M=f.useState("open"),T=f.useState("openMethod"),P=f.useState("mounted"),O=f.useState("popupProps"),N=f.useState("transitionStatus"),L=f.useState("triggerElement"),F=f.useState("positionerElement"),H=f.useState("listElement"),U=n.useRef(!1),B=n.useRef(!1),W=n.useRef({}),q=(0,eO.useAnimationFrame)(),$=(0,d.useStableCallback)(e=>{var t;if(!F||!f.context.popupRef.current||!B.current)return;let n="0px"===F.style.top,r="0px"===F.style.bottom;if(U.current||!v||!n&&!r)return void f.context.handleScrollArrowVisibility(e);let l=e$(F),o=(t=F.getBoundingClientRect().height,t/l.y),i=(0,_.ownerDocument)(F),s=(0,eP.ownerWindow)(F),a=s.getComputedStyle(F),u=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),d=eY(s.getComputedStyle(f.context.popupRef.current)),p=Math.min(i.documentElement.clientHeight-u-c,d),m=e.scrollTop,g=eq(e),h=null,x=e=>{F.style.height=`${e}px`},S=n?g-m:m,b=Math.min(o+S,p);if(S<=1){let t=k(S,0,p-o);t>0&&x(o+t),e.scrollTop=n?g:0,p-(o+t)<=1&&(U.current=!0),f.context.handleScrollArrowVisibility(e);return}if(p-b>1)h=n?1/0:0;else if(r&&m<g){let e=o+S-p;h=m-(S-e)}let R=Math.ceil(b);if(0!==R&&x(R),null!=h){let t=k(h,0,eq(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}R>=p-1&&(U.current=!0),f.context.handleScrollArrowVisibility(e)});n.useImperativeHandle(f.context.scrollHandlerRef,()=>$,[$]),(0,D.useOpenChangeComplete)({open:M,ref:f.context.popupRef,onComplete(){M&&f.context.onOpenChangeComplete(!0)}}),(0,c.useIsoLayoutEffect)(()=>{F&&f.context.popupRef.current&&!Object.keys(W.current).length&&(W.current={top:F.style.top||"0",left:F.style.left||"0",right:F.style.right,height:F.style.height,bottom:F.style.bottom,minHeight:F.style.minHeight,maxHeight:F.style.maxHeight,marginTop:F.style.marginTop,marginBottom:F.style.marginBottom})},[f,F]),(0,c.useIsoLayoutEffect)(()=>{M||v||(B.current=!1,U.current=!1,eR(F,W.current))},[M,v,F]),(0,c.useIsoLayoutEffect)(()=>{let e=f.context.popupRef.current;if(!M||!L||!F||!e||v&&!R||"ending"===f.state.transitionStatus)return;if(B.current=!0,e.style.removeProperty(eU),!v)return void q.request(()=>f.context.handleScrollArrowVisibility(H||e));let t=function(e){let{style:t}=e,n={};for(let[e,r]of ez)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of ez){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);try{let t,n=f.context.selectedItemTextRef.current;n?.isConnected||(n=!f.select("hasSelectedValue")&&f.context.firstItemTextRef.current?.isConnected?f.context.firstItemTextRef.current:null);let r=f.context.valueRef.current,l=(0,eP.ownerWindow)(F),o=l.getComputedStyle(F),i=l.getComputedStyle(e),s=(0,_.ownerDocument)(L),a=e$(L),u=e_(L.getBoundingClientRect(),a),c=e_(F.getBoundingClientRect(),a),d=u.he
1ight,p=H||e,m=p.scrollHeight,h=parseFloat(i.borderBottomWidth),x=parseFloat(o.marginTop)||10,S=parseFloat(o.marginBottom)||10,v=parseFloat(o.minHeight)||100,b=eY(i),R=s.documentElement.clientHeight-x-S,C=s.documentElement.clientWidth,E=R-u.bottom+d,I="rtl"===w?u.right-c.width:u.left,A=0;if(n&&r){let e=e_(r.getBoundingClientRect(),a);t=e_(n.getBoundingClientRect(),a),I=c.left+("rtl"===w?e.right-t.right:e.left-t.left);let l=e.top-u.top+e.height/2;A=t.top-c.top+t.height/2-l}let M=E+A+S+h,T=Math.min(R,M),P=R-x-S,O=M-T;F.style.left=`${k(I,5,C-5-c.width)}px`,F.style.height=`${T}px`,F.style.maxHeight="none",F.style.marginTop=`${x}px`,F.style.marginBottom=`${S}px`,e.style.height="100%";let V=eq(p),j=O>=V-1;j&&(T=Math.min(R,c.height)-(O-V));let D=u.top<20||u.bottom>R-20||Math.ceil(T)+1<Math.min(m,v),N=(l.visualViewport?.scale??1)!==1&&eT.platform.engine.webkit;if(D||N){eR(F,W.current),y(!1);return}let B=Math.max(v,T);if(j){let e=Math.max(0,R-M);F.style.top=c.height>=P?"0":`${e}px`,F.style.height=`${T}px`,p.scrollTop=eq(p)}else F.style.bottom="0",p.scrollTop=O;if(t){let n=c.top,r=c.height,l=t.top+t.height/2,o=k(r>0?(l-n)/r*100:50,0,100);e.style.setProperty(eU,`50% ${o}%`)}(B===R||T>=b)&&(U.current=!0),f.context.handleScrollArrowVisibility(p),g&&null===f.state.selectedIndex&&null===f.state.activeIndex&&null!=f.context.listRef.current[0]&&f.set("activeIndex",0)}finally{t()}},[f,M,F,L,v,y,q,H,g,w,R]),n.useEffect(()=>{if(!v||!F||!M)return;let e=(0,eP.ownerWindow)(F);return(0,eM.addEventListener)(e,"resize",function(e){f.context.setOpen(!1,(0,V.createChangeEventDetails)(j.REASONS.windowResize,e))})},[f,v,F,M]);let z={...H?{role:"presentation"}:{role:"listbox","aria-multiselectable":p||void 0,"aria-readonly":m||void 0,id:`${A}-list`},onKeyDown(e){C&&eL.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onScroll(e){H||$(e.currentTarget)},...v&&{style:H?{height:"100%"}:ey},className:!H&&v?eD:void 0},K=(0,Y.useRenderElement)("div",e,{ref:[r,f.context.popupRef],state:{open:M,transitionStatus:N,side:x,align:S},stateAttributesMapping:eB,props:[O,z,(0,eF.getDisabledMountTransitionStyles)(N),u]});return(0,t.jsxs)(n.Fragment,{children:[!I&&(l=E,(0,t.jsx)("style",{nonce:l,href:eD,precedence:"base-ui:low",children:`.${eD}{scrollbar-width:none}.${eD}::-webkit-scrollbar{display:none}`})),(0,t.jsx)(eV.FloatingFocusManager,{context:h,modal:!1,disabled:!P,openInteractionType:T,returnFocus:a,restoreFocus:!0,children:K})]})});function eY(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function eq(e){return H(e.scrollHeight,e.clientHeight)}function e$(e){return ej.platform.getScale(e)}function e_(e,t){return(0,eA.rectToClientRect)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let ez=[["transform","none"],["scale","1"],["translate","0 0"]],eK=n.forwardRef(function(e,t){let{render:n,className:r,style:l,...o}=e,i=(0,b.useSelectRootContext)(),{multiple:s,readOnly:a}=(0,b.useSelectRootPropsContext)(),{alignItemWithTriggerActive:u}=eS(),c=i.useState("hasScrollArrows"),d=i.useState("openMethod"),f=i.useState("id"),p={id:`${f}-list`,role:"listbox","aria-multiselectable":s||void 0,"aria-readonly":a||void 0,onScroll(e){i.context.scrollHandlerRef.current?.(e.currentTarget)},...u&&{style:ey},className:c&&"touch"!==d?eD:void 0},m=i.useStateSetter("listElement");return(0,Y.useRenderElement)("div",e,{ref:[t,m],props:[p,o]})});var eG=e.i(673553);let eJ=n.createContext(void 0);function eX(){let e=n.useContext(eJ);if(!e)throw Error((0,eh.default)(57));return e}var eQ=e.i(157940);let eZ=n.memo(n.forwardRef(function(e,r){let{render:l,className:o,style:i,value:s=null,label:a,disabled:u=!1,nativeButton:d=!1,...f}=e,p=n.useRef(null),m=(0,eG.useCompositeListItem)({guess:!0,label:a,textRef:p}),g=(0,b.useSelectRootContext)(),{itemProps:h,multiple:x,disabled:S,readOnly:v}=(0,b.useSelectRootPropsContext)(),R=S||u,y=g.useState("isActive",m.index),C=g.useState("open"),w=g.useState("isSelected",s),I=g.useState("isSelectedByFocus",m.index),A=g.useState("isItemEqualToValue"),M=m.index,T=n.useRef(null);(0,c.useIsoLayoutEffect)(()=>{let e=g.context.valuesRef.current;return e[M]=s,()=>{delete e[M]}},[M,s,g]),(0,c.useIsoLayoutEffect)(()=>{let e,t=g.state.value,n=g.state.selectedIndex,r=n;x&&Array.isArray(t)?(e=(r=(0,E.resolveSelectedIndex)(M,s,g.context.valuesRef.current,t,A,n))===M,M!==n||e||(g.context.selectedItemTextRef.current=null)):(e=void 0!==t&&(0,E.c
1ompareItemEquality)(s,t,A))&&(r=M),g.set("selectedIndex",r),e&&p.current&&(g.context.selectedItemTextRef.current=p.current)},[M,x,A,g,s]);let P=n.useRef("mouse"),O=n.useRef(!1),{getButtonProps:D,buttonRef:N}=(0,et.useButton)({disabled:R,focusableWhenDisabled:!0,native:d,composite:!0});function L(){g.context.selectionRef.current.dragY=0}let F=(0,Y.useRenderElement)("div",e,{ref:[N,r,m.ref,T],state:{disabled:R,selected:w,highlighted:y},props:[h,{role:"option","aria-selected":w,tabIndex:C&&y?0:-1,onKeyDown(e){g.set("activeIndex",M)," "===e.key&&g.context.typingRef.current&&e.preventDefault()},onClick(e){let t="touch"!==P.current,n=e.nativeEvent.pointerType,r=t&&(0,eQ.isVirtualClick)(e.nativeEvent)&&(void 0!==n||y),l=t&&!r&&!O.current;O.current=!1,R||l||function(e){if(S||v)return;let t=g.state.value;if(x){let n=Array.isArray(t)?t:[],r=w?(0,E.removeItem)(n,s,A):[...n,s];g.context.setValue(r,(0,V.createChangeEventDetails)(j.REASONS.itemPress,e))}else g.context.setValue(s,(0,V.createChangeEventDetails)(j.REASONS.itemPress,e)),g.context.setOpen(!1,(0,V.createChangeEventDetails)(j.REASONS.itemPress,e))}(e.nativeEvent)},onPointerEnter(e){P.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=g.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){P.current=e.pointerType,O.current=!0,L()},onMouseUp(){if(L(),R||"touch"===P.current||O.current)return;let e=!g.context.selectionRef.current.allowSelectedMouseUp&&w,t=!g.context.selectionRef.current.allowUnselectedMouseUp&&!w;e||t||(O.current=!0,T.current?.click(),O.current=!1)}},f,D]}),k=n.useMemo(()=>({selected:w,index:M,textRef:p,selectedByFocus:I}),[w,M,p,I]);return(0,t.jsx)(eJ.Provider,{value:k,children:F})})),e0=n.forwardRef(function(e,n){let{selected:r}=eX();return e.keepMounted||r?(0,t.jsx)(e1,{...e,ref:n}):null}),e1=n.memo(n.forwardRef((e,t)=>{let{render:r,className:l,style:o,keepMounted:i,...s}=e,{selected:a}=eX(),u=n.useRef(null),{transitionStatus:c,setMounted:d}=(0,w.useTransitionStatus)(a),f=(0,Y.useRenderElement)("span",e,{ref:[t,u],state:{selected:a,transitionStatus:c},props:[{"aria-hidden":!0,children:"âï¸"},s],stateAttributesMapping:ec.transitionStatusMapping});return(0,D.useOpenChangeComplete)({batch:!0,enabled:!a,open:a,ref:u,onComplete(){a||d(!1)}}),f})),e3=n.memo(n.forwardRef(function(e,t){let{index:r,textRef:l,selectedByFocus:o}=eX(),i=(0,b.useSelectRootContext)(),{render:s,className:a,style:u,...c}=e,d=n.useCallback(e=>{e&&(0===r&&(i.context.firstItemTextRef.current=e),o&&(i.context.selectedItemTextRef.current=e))},[i,r,o]);return(0,Y.useRenderElement)("div",e,{ref:[d,t,l],props:c})})),e4=n.forwardRef(function(e,t){let{render:n,className:r,style:l,...o}=e,i=(0,b.useSelectRootContext)(),{side:s,align:a,arrowRef:u,arrowStyles:c,arrowUncentered:d,alignItemWithTriggerActive:f}=eS(),p=i.useState("open"),m=(0,Y.useRenderElement)("div",e,{state:{open:p,side:s,align:a,uncentered:d},ref:[u,t],props:[{style:c,"aria-hidden":!0},o],stateAttributesMapping:Q.popupTransitionStateMapping});return f?null:m}),e5=n.forwardRef(function(e,t){let{render:n,className:r,style:l,direction:o,keepMounted:i,...s}=e,a="up"===o,u=(0,b.useSelectRootContext)(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:p}=eS(),m=u.useState(a?"scrollUpArrowVisible":"scrollDownArrowVisible"),g=u.useState("openMethod"),h=m&&"touch"!==g,x=(0,X.useTimeout)(),S=a?p:f,{mounted:v,transitionStatus:R,setMounted:y}=(0,w.useTransitionStatus)(h);(0,c.useIsoLayoutEffect)(()=>(u.context.scrollArrowsMountedCountRef.current+=1,u.set("hasScrollArrows",!0),()=>{u.context.scrollArrowsMountedCountRef.current=Math.max(0,u.context.scrollArrowsMountedCountRef.current-1),0===u.context.scrollArrowsMountedCountRef.current&&u.set("hasScrollArrows",!1)}),[u]),(0,D.useOpenChangeComplete)({open:h,ref:S,onComplete(){h||y(!1)}});let C=(0,Y.useRenderElement)("div",e,{ref:[t,S],state:{direction:o,visible:h,side:d,transitionStatus:R},props:[{"aria-hidden":!0,children:a?"â²":"â¼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||x.isStarted()||(u.set("activeIndex",null),x.start(40,function e(){let t=u.state.listElement??u.context.popupRef.current;if(!t)return;u.set("activeIndex",null),u.context.handleScrollArrowVisibility(t);let n=H(t.scrollHeight,t.clientHeight),r=U(t.scrollTop,n),l=r===(a?0:n),o=u.context.listRef.current;if(r!==t.scrollTop&&(t.scrollTop=r),l)return void x.clear();if(o.length>0){let e=S.current?.offsetHeight||0;t.scrollTop=function(e,t,n,r,l,o){if(t){let t=0,r=n+l-1;for(let n=0;n<e.length;n+=1){let l=e[n];if(l&&l.offsetTop>=r){t=n;break}}let i=Math.max(0,t-1),s=e[i];return i<t&&s?U(s.offsetTop-l,o):0}let i=e.length-1,s=n+r-l+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){i=Math.max(0,t-1);break}}let a=Math.min(e.length-1,i+1),u=e[a];return a>i&&u?U(u.offsetTop+u.offsetHeight-r+l,o):o}(o,a,r,t.clientHeight,e,n)}x.start(40,e)}))},onMouseLeave(){x.clear()}},s],stateAttributesMapping:ec.transitionStatusMapping});return v||i?C:null}),e8=n.forwardRef(function(e,n){return(0,t.jsx)(e5,{...e,ref:n,direction:"down"})}),e6=n.forwardRef(function(e,n){return(0,t.jsx)(e5,{...e,ref:n,direction:"up"})}),e2=n.createContext(void 0),e7=n.forwardRef(function(e,r){let{render:l,className:o,style:i,...s}=e,[a,u]=n.useState(),c=n.useMemo(()=>({labelId:a,setLabelId:u}),[a,u]),d=(0,Y.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":a},s]});return(0,t.jsx)(e2.Provider,{value:c,children:d})}),e9=n.forwardRef(function(e,t){let{render:r,className:l,style:o,id:i,...s}=e,{setLabelId:a}=function(){let e=n.useContext(e2);if(void 0===e)throw Error((0,eh.default)(56));return e}(),u=(0,K.useBaseUiId)(i);return(0,c.useIsoLayoutEffect)(()=>(a(u),()=>{a(e=>e===u?void 0:e)}),[u,a]),(0,Y.useRenderElement)("div",e,{ref:t,props:[{id:u,"aria-hidden":!0},s]})}),te=n.forwardRef(function(e,t){let{className:n,render:r,orientation:l="horizontal",style:o,...i}=e;return(0,Y.useRenderElement)("div",e,{state:{orientation:l},ref:t,props:[{role:"presentation"},i]})});e.s(["Arrow",0,e4,"Backdrop",0,ef,"Group",0,e7,"GroupLabel",0,e9,"Icon",0,es,"Item",0,eZ,"ItemIndicator",0,e0,"ItemText",0,e3,"Label",0,J,"List",0,eK,"Popup",0,eW,"Portal",0,eu,"Positioner",0,eI,"Root",0,function(e){let{id:I,value:A,defaultValue:P=null,onValueChange:k,open:Y,defaultOpen:q=!1,onOpenChange:$,name:_,form:z,autoComplete:K,disabled:G=!1,readOnly:J=!1,required:X=!1,modal:Q=!0,actionsRef:Z,inputRef:ee,onOpenChangeComplete:et,items:en,multiple:er=!1,itemToStringLabel:el,itemToStringValue:eo,isItemEqualToValue:ei=E.defaultItemEquality,highlightItemOnHover:es=!0,children:ea}=e,{clearErrors:eu}=(0,N.useFormContext)(),{setDirty:ec,setTouched:ed,setFocused:ef,validityData:ep,setFilled:em,name:eg,disabled:eh,validation:ex,validationMode:eS}=(0,R.useFieldRootContext)(),ev=(0,C.useLabelableId)({id:I}),eb=eh||G,eR=eg??_,[ey,eC]=(0,u.useControlled)({controlled:A,default:er?P??m.EMPTY_ARRAY:P,name:"Select",state:"value"}),[ew,eE]=(0,u.useControlled)({controlled:Y,default:q,name:"Select",state:"open"}),eI=n.useRef([]),eA=n.useRef([]),eM=n.useRef(null),eT=n.useRef(null),eP=n.useRef(0),eO=n.useRef(null),eV=n.useRef([]),ej=n.useRef(!1),eD=n.useRef(null),eN=n.useRef(null),eL=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),eF=n.useRef(!1),ek=n.useRef(ey),{mounted:eH,setMounted:eU,transitionStatus:eB}=(0,w.useTransitionStatus)(ew),{openMethod:eW,triggerProps:eY}=(0,F.useOpenInteractionType)(ew),eq=(0,o.useRefWithInit)(()=>new p.ReactStore({id:ev,labelId:void 0,modal:Q,multiple:er,itemToStringLabel:el,itemToStringValue:eo,isItemEqualToValue:ei,value:ey,open:ew,mounted:eH,transitionStatus:eB,items:en,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:m.EMPTY_OBJECT,triggerProps:m.EMPTY_OBJECT,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:m.NOOP,setOpen:m.NOOP,handleScrollArrowVisibility:m.NOOP,onOpenChangeComplete:m.NOOP,listRef:eI,popupRef:eM,scrollHandlerRef:eT,scrollArrowsMountedCountRef:eP,valueRef:eO,valuesRef:eV,labelsRef:eA,typingRef:ej,selectionRef:eL,firstItemTextRef:eD,selectedItemTextRef:eN,alignItemWithTriggerActiveRef:eF,initialValueRef:ek},O)).current,e$=eq.useState("activeIndex"),e_=eq.useState("selectedIndex"),ez=eq.useState("triggerElement"),eK=eq.useState("positionerElement"),eG=(0,s.usePreviousValue)(eW),eJ=eW??eG,eX=n.useMemo(()=>er?"":T(ey,eo),[er,ey,eo]),eQ=n.useMemo(()=>er&&Array.isArray(ey)?ey.map(e=>
1T(e,eo)):T(ey,eo),[er,ey,eo]),eZ=(0,f.useValueAsRef)(ez),e0=(0,d.useStableCallback)(()=>eQ);(0,y.useRegisterFieldControl)(eZ,ev,ey,e0,!eb,_);let e1=er?Array.isArray(ey)&&ey.length>0:null!=ey&&""!==eX;(0,c.useIsoLayoutEffect)(()=>{em(e1)},[e1,em]),(0,c.useIsoLayoutEffect)(function(){let e=(0,E.findSelectionIndex)(eV.current,ey,ei,er);null===e&&(eN.current=null),ew||eq.set("selectedIndex",e)},[er,ew,ey,ei,eq]),(0,L.useValueChanged)(ey,()=>{eu(eR),ec((0,E.isSelectedValueDirty)(ey,ep.initialValue,ei)),ex.change(ey)});let e3=(0,d.useStableCallback)((e,t)=>{$?.(e,t),!t.isCanceled&&(eE(e),e||t.reason!==j.REASONS.focusOut&&t.reason!==j.REASONS.outsidePress||(ed(!0),ef(!1),"onBlur"===eS&&ex.commit(ey)))}),e4=(0,d.useStableCallback)(()=>{eU(!1),eq.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),et?.(!1)});(0,D.useOpenChangeComplete)({enabled:!Z,open:ew,ref:eM,onComplete(){ew||e4()}}),n.useImperativeHandle(Z,()=>({unmount:e4}),[e4]);let e5=(0,d.useStableCallback)((e,t)=>{k?.(e,t),t.isCanceled||eC(e)}),e8=(0,d.useStableCallback)(e=>{let t=H(e.scrollHeight,e.clientHeight),n=U(e.scrollTop,t);eq.set("scrollUpArrowVisible",n>0),eq.set("scrollDownArrowVisible",n<t)}),e6=(0,x.useFloatingRootContext)({open:ew,onOpenChange:e3,elements:{reference:ez,floating:eK}}),e2=(0,g.useClick)(e6,{enabled:!eb,event:"mousedown"}),e7=(0,h.useDismiss)(e6),e9=(0,S.useListNavigation)(e6,{enabled:!eb,listRef:eI,activeIndex:e$,selectedIndex:e_,disabledIndices:m.EMPTY_ARRAY,onNavigate(e){(null!==e||ew)&&eq.set("activeIndex",e)},focusItemOnHover:es}),te=(0,v.useTypeahead)(e6,{enabled:!eb&&(ew||!J&&!er),listRef:eA,activeIndex:e$,selectedIndex:e_,disabledIndices:e=>(0,a.isElementDisabled)(eI.current[e]),onMatch(e){ew?eq.set("activeIndex",e):e5(eV.current[e],(0,V.createChangeEventDetails)(j.REASONS.none))},onTyping(e){ej.current=e}}),tt=n.useMemo(()=>(0,W.mergeProps)(te.reference,e9.reference,e7.reference,e2.reference,eY),[e2.reference,te.reference,e9.reference,e7.reference,eY]),tn=n.useMemo(()=>(0,W.mergeProps)(B.FOCUSABLE_POPUP_PROPS,te.floating,e9.floating,e7.floating),[te.floating,e9.floating,e7.floating]),tr=e9.item??m.EMPTY_OBJECT;eq.useContextCallback("setValue",e5),eq.useContextCallback("setOpen",e3),eq.useContextCallback("handleScrollArrowVisibility",e8),eq.useContextCallback("onOpenChangeComplete",et),(0,i.useOnFirstRender)(()=>{eq.update({popupProps:tn,triggerProps:tt})}),eq.useSyncedValues({id:ev,modal:Q,multiple:er,value:ey,open:ew,mounted:eH,transitionStatus:eB,popupProps:tn,triggerProps:tt,items:en,itemToStringLabel:el,itemToStringValue:eo,isItemEqualToValue:ei,openMethod:eJ});let tl=n.useMemo(()=>({disabled:eb,readOnly:J,required:X,multiple:er,highlightItemOnHover:es,itemProps:tr}),[eb,J,X,er,es,tr]),to=(0,l.useMergedRefs)(ee,ex.inputRef),ti=er?void 0:eR,ts=n.useMemo(()=>er&&Array.isArray(ey)&&eR?ey.map(e=>{let n=T(e,eo);return(0,t.jsx)("input",{type:"hidden",form:z,name:eR,value:n,disabled:eb},n)}):null,[er,ey,z,eR,eo,eb]);return(0,t.jsxs)(b.SelectRootContext.Provider,{value:eq,children:[(0,t.jsx)(b.SelectRootPropsContext.Provider,{value:tl,children:(0,t.jsx)(b.SelectFloatingContext.Provider,{value:e6,children:ea})}),(0,t.jsx)("input",{...ex.getValidationProps(eb,{onFocus(){eq.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||eb||J)return;let t=e.currentTarget.value,n=(0,V.createChangeEventDetails)(j.REASONS.none,e.nativeEvent);eq.set("forceMount",!0),queueMicrotask(function(){if(er)return;let e=t.toLowerCase(),r=eV.current.findIndex(t=>T(t,eo).toLowerCase()===e||M(t,el).toLowerCase()===e);-1===r&&(r=eV.current.findIndex((t,n)=>{let r=eA.current[n];return null!=r&&r.toLowerCase()===e}));let l=eV.current[r];null!=l&&e5(l,n)})}}),id:ev&&null==ti?`${ev}-hidden-input`:void 0,form:z,name:ti,autoComplete:K,value:eX,disabled:eb,required:X&&!(er&&e1),readOnly:J,ref:to,style:eR?r.visuallyHiddenInput:r.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ts]})},"ScrollDownArrow",0,e8,"ScrollUpArrow",0,e6,"Separator",0,te,"Trigger",0,el,"Value",0,ei],574786);var tt=e.i(574786),tt=tt,tn=e.i(689664),tr=e.i(716327),tl=e.i(456539),to=e.i(577255);let ti=tt.Root;function ts({className:e,...n}){return(0,t.jsx)(tt.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:(0,to.cn)("absolute top-0 left-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1",e),...n,children:(0,t.jsx)(tl.ChevronUp,{className:"h-4 w-4"})})}function ta({className:e,...n}){return(0,t.jsx)(tt.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:(0,to.cn)("absolute bottom-0 left-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1",e),...n,children:(0,t.jsx)(tr.ChevronDown,{className:"h-4 w-4"})})}e.s(["Select",0,ti,"SelectContent",0,function({className:e,children:n,side:r="bottom",sideOffset:l=4,align:o="center",alignOffset:i=0,alignItemWithTrigger:s=!1,...a}){return(0,t.jsx)(tt.Portal,{children:(0,t.jsx)(tt.Positioner,{side:r,sideOffset:l,align:o,alignOffset:i,alignItemWithTrigger:s,className:"pointer-events-auto isolate z-50",children:(0,t.jsxs)(tt.Popup,{"data-slot":"select-content","data-align-trigger":s,className:(0,to.cn)("relative isolate z-50 min-w-[max(8rem,var(--anchor-width))] origin-[var(--transform-origin)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",e),...a,children:[(0,t.jsx)(ts,{}),(0,t.jsx)(tt.List,{className:"max-h-[min(var(--available-height),24rem)] overflow-y-auto p-1",children:n}),(0,t.jsx)(ta,{})]})})})},"SelectItem",0,function({className:e,children:n,...r}){return(0,t.jsxs)(tt.Item,{"data-slot":"select-item",className:(0,to.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-accent data-highlighted:text-accent-foreground",e),...r,children:[(0,t.jsx)(tt.ItemText,{className:"shrink-0 whitespace-nowrap",children:n}),(0,t.jsx)(tt.ItemIndicator,{render:(0,t.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"}),children:(0,t.jsx)(tn.Check,{className:"h-4 w-4"})})]})},"SelectTrigger",0,function({className:e,children:n,...r}){return(0,t.jsxs)(tt.Trigger,{"data-slot":"select-trigger",className:(0,to.cn)("flex h-10 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background outline-none transition-[color,box-shadow] data-placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:flex-1",e),...r,children:[n,(0,t.jsx)(tt.Icon,{render:(0,t.jsx)(tr.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})})]})},"SelectValue",0,function({className:e,...n}){return(0,t.jsx)(tt.Value,{"data-slot":"select-value",className:(0,to.cn)("truncate",e),...n})}],300033)},186698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},564623,713203,265858,703902,484325,e=>{"use strict";e.s([],564623);var t=e.i(271645);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}],713203);var n=e.i(229315),r=e.i(883977),l=e.i(146376),o=e.i(388940),i=e.i(990627),s=e.i(46420),a=e.i(156341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:u,elements:c={}}=e,d=(0,r.useId)(),f=null!=(0,s.useFloatingParentNodeId)(),p=(0,o.useRefWithInit)(()=>new a.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:u,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new i.PopupTriggerMap,floatingId:d,syncOnly:!1,nested:f})).current;return(0,l.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:d};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,n.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),p.update(e)},[t,d,c.reference,c.floating,p]),p.context.onOpenChange=u,p.context.nested=f,p}],265858);var u=e.i(733332);let c=t.createContext(void 0),d=t.createContext(void 0),f=t.createContext(void 0);e.s(["SelectFloatingContext",0,f,"SelectRootContext",0,c,"SelectRootPropsContext",0,d,"useSelectFloatingContext",0,function(){let e=t.useContext(f);if(void 0===e)throw Error((0,u.default)(61));return e},"useSelectRootContext",0,function(){let e=t.useContext(c);if(void 0===e)throw Error((0,u.default)(60));return e},"useSelectRootPropsContext",0,function(){let e=t.useContext(d);if(void 0===e)throw Error((0,u.default)(101));return e}],703902);let p=(e,t)=>Object.is(e,t);function m(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function g(e,t,n){return!!e&&e.some(e=>void 0!==e&&m(t,e,n))}function h(e,t,n){return e?e.findIndex(e=>void 0!==e&&m(e,t,n)):-1}function x(e,t,n,r){let l=r&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==p)return n=>g(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,n)):h(e,t,n);return -1===l?null:l}e.s(["compareItemEquality",0,m,"defaultItemEquality",0,p,"findItemIndex",0,h,"findSelectionIndex",0,x,"isSelectedValueDirty",0,function(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let l=0;l<r;l+=1)if(!n(e[l],t[l]))return!1;return!0}(e,t,(e,t)=>m(e,t,n)):e!==t},"removeItem",0,function(e,t,n){return e.filter(e=>!m(t,e,n))},"resolveSelectedIndex",0,function(e,t,n,r,l,o){return g(r,t,l)?null!=o&&e>o&&g(r,n[o],l)?o:e:e===o?x(n,r,l,!0):o}],484325)}]);
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.