1 line
68 KiB
JavaScript
1 line
68 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[533],{38:(e,t,n)=>{n.d(t,{f:()=>g});var r=n(12115),l=n(86545),o=n(33747),i=n(39972),u=n(27222),c=n(53414),a=n(81636),s=n(77818),f=n(87711),d=n(65116),p=n(60855);let g=r.forwardRef(function(e,t){let{render:n,className:r,style:g,direction:h,keepMounted:m=!1,...v}=e,y="up"===h,{store:x,popupRef:w,listRef:b,handleScrollArrowVisibility:R,scrollArrowsMountedCountRef:T}=(0,u.ll)(),{side:M,scrollDownArrowRef:P,scrollUpArrowRef:E}=(0,c.H)(),A=y?p.T.scrollUpArrowVisible:p.T.scrollDownArrowVisible,S=(0,o.P)(x,A),C=(0,o.P)(x,p.T.openMethod),k=S&&"touch"!==C,I=(0,l.Z)(),V=y?E:P,{transitionStatus:L,setMounted:O}=(0,a.$)(k);(0,i.g)(()=>(T.current+=1,x.state.hasScrollArrows||x.set("hasScrollArrows",!0),()=>{T.current=Math.max(0,T.current-1),0===T.current&&x.state.hasScrollArrows&&x.set("hasScrollArrows",!1)}),[x,T]),(0,s.v)({open:k,ref:V,onComplete(){k||O(!1)}});let q=(0,f.o)("div",e,{ref:[t,V],state:{direction:h,visible:k,side:M,transitionStatus:L},props:[{"aria-hidden":!0,children:y?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||I.isStarted()||(x.set("activeIndex",null),I.start(40,function e(){var t,n;let r=null!=(t=x.state.listElement)?t:w.current;if(!r)return;x.set("activeIndex",null),R();let l=(0,d.XF)(r.scrollHeight,r.clientHeight),o=(0,d.Qw)(r.scrollTop,l),i=o===(y?0:l),u=b.current;if(o!==r.scrollTop&&(r.scrollTop=o),0===u.length&&x.set(y?"scrollUpArrowVisible":"scrollDownArrowVisible",!i),i)return void I.clear();if(u.length>0){let e=(null==(n=V.current)?void 0:n.offsetHeight)||0;r.scrollTop=function(e,t,n,r,l,o){if(t){let t=0,r=n+l-d.Pv;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),u=e[i];return i<t&&u?(0,d.Qw)(u.offsetTop-l,o):0}let i=e.length-1,u=n+r-l+d.Pv;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>u){i=Math.max(0,t-1);break}}let c=Math.min(e.length-1,i+1),a=e[c];return c>i&&a?(0,d.Qw)(a.offsetTop+a.offsetHeight-r+l,o):o}(u,y,o,r.clientHeight,e,l)}I.start(40,e)}))},onMouseLeave(){I.clear()}},v]});return k||m?q:null})},217:(e,t,n)=>{n.d(t,{H:()=>Y});var r=n(12115),l=n(35600),o=n(86764),i=n(77509),u=n(33007),c=n(12612),a=n(39972),s=n(7546),f=n(90416),d=n(18614),p=n(33747),g=n(60204),h=n(8098),m=n(58261),v=n(86545),y=n(18162),x=n(47031),w=n(32587),b=n(14043),R=n(85753),T=n(61095),M=n(2066),P=n(24758),E=n(78368),A=n(20798),S=n(39071),C=n(66162);function k(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function I(e,t){return k(t,e===C.il||e===C.Jd,e===C.eR||e===C.RJ)}function V(e,t,n){return k(t,e===C.Jd,n?e===C.eR:e===C.RJ)||"Enter"===e||" "===e||""===e}var L=n(21348),O=n(27222),q=n(68419),D=n(51840),j=n(65489),F=n(81636),H=n(60855),B=n(77818),U=n(25972),z=n(51214),W=n(22597),K=n(5374),J=n(91165),N=n(65116),_=n(21083),G=n(95155);function Y(e){let{id:t,value:n,defaultValue:Y=null,onValueChange:Z,open:$,defaultOpen:X=!1,onOpenChange:Q,name:ee,form:et,autoComplete:en,disabled:er=!1,readOnly:el=!1,required:eo=!1,modal:ei=!0,actionsRef:eu,inputRef:ec,onOpenChangeComplete:ea,items:es,multiple:ef=!1,itemToStringLabel:ed,itemToStringValue:ep,isItemEqualToValue:eg=W.jd,highlightItemOnHover:eh=!0,children:em}=e,{clearErrors:ev}=(0,U.x)(),{setDirty:ey,setTouched:ex,setFocused:ew,shouldValidateOnChange:eb,validityData:eR,setFilled:eT,name:eM,disabled:eP,validation:eE,validationMode:eA}=(0,q.V)(),eS=(0,j.l)({id:t}),eC=eP||er,ek=null!=eM?eM:ee,[eI,eV]=(0,c.q)({controlled:n,default:ef?null!=Y?Y:g.Ml:Y,name:"Select",state:"value"}),[eL,eO]=(0,c.q)({controlled:$,default:X,name:"Select",state:"open"}),eq=r.useRef([]),eD=r.useRef([]),ej=r.useRef(null),eF=r.useRef(null),eH=r.useRef(0),eB=r.useRef(null),eU=r.useRef([]),ez=r.useRef(!1),eW=r.useRef(!1),eK=r.useRef(null),eJ=r.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),eN=r.useRef(!1),{mounted:e_,setMounted:eG,transitionStatus:eY}=(0,F.$)(eL),{openMethod:eZ,triggerProps:e$}=(0,J.G)(eL),eX=(0,i.useRefWithInit)(()=>new d.i({id:eS,labelId:void 0,modal:ei,multiple:ef,itemToStringLabel:ed,itemToStringValue:ep,isItemEqualToValue:eg,value:eI,open:eL,mounted:e_,transitionStatus:eY,items:es,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eQ=(0,p.P)(eX,H.T.activeIndex),e0=(0,p.P)(eX,H.T.selectedIndex),e1=(0,p.P)(eX,H.T.triggerElement),e2=(0,p.P)(eX,H.T.positionerElement),e5=function(e){let[t,n]=r.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}(eZ),e7=null!=eZ?eZ:e5,e6=r.useMemo(()=>ef&&Array.isArray(eI)&&0===eI.length?"":(0,z.T)(eI,ep),[ef,eI,ep]),e3=r.useMemo(()=>ef&&Array.isArray(eI)?eI.map(e=>(0,z.T)(e,ep)):(0,z.T)(eI,ep),[ef,eI,ep]),e8=(0,f.u)(eX.state.triggerElement),e4=(0,s.K)(()=>e3);(0,D.I)(e8,{id:eS,value:eI,getValue:e4});let e9=r.useRef(eI);(0,a.g)(()=>{eI!==e9.current&&eX.set("forceMount",!0)},[eX,eI]),(0,a.g)(()=>{eT(ef?Array.isArray(eI)&&eI.length>0:null!=eI)},[ef,eI,eT]),(0,a.g)(function(){if(eL)return;let e=eU.current;if(ef){let t=Array.isArray(eI)?eI:[];if(0===t.length)return void eX.set("selectedIndex",null);let n=t[t.length-1],r=(0,W.Vz)(e,n,eg);return void eX.set("selectedIndex",-1===r?null:r)}let t=(0,W.Vz)(e,eI,eg);eX.set("selectedIndex",-1===t?null:t)},[ef,eL,eI,eU,eg,eX]),(0,K.x)(eI,()=>{ev(ek),ey(eI!==eR.initialValue),eb()?eE.commit(eI):eE.commit(eI,!0)});let te=(0,s.K)((e,t)=>{if(null==Q||Q(e,t),!t.isCanceled&&(eO(e),e||t.reason!==R.Xn&&t.reason!==R.Np||(ex(!0),ew(!1),"onBlur"===eA&&eE.commit(eI)),!e&&null!==eX.state.activeIndex)){let e=eq.current[eX.state.activeIndex];queueMicrotask(()=>{null==e||e.setAttribute("tabindex","-1")})}}),tt=(0,s.K)(()=>{eG(!1),eX.update({activeIndex:null,openMethod:null}),null==ea||ea(!1)});(0,B.v)({enabled:!eu,open:eL,ref:ej,onComplete(){eL||tt()}}),r.useImperativeHandle(eu,()=>({unmount:tt}),[tt]);let tn=(0,s.K)((e,t)=>{null==Z||Z(e,t),t.isCanceled||eV(e)}),tr=(0,s.K)(()=>{let e=eX.state.listElement||ej.current;if(!e)return;let t=(0,N.XF)(e.scrollHeight,e.clientHeight),n=(0,N.Qw)(e.scrollTop,t),r=n>0,l=n<t;eX.state.scrollUpArrowVisible!==r&&eX.set("scrollUpArrowVisible",r),eX.state.scrollDownArrowVisible!==l&&eX.set("scrollDownArrowVisible",l)}),tl=(0,h.P)({open:eL,onOpenChange:te,elements:{reference:e1,floating:e2}}),to=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="rootStore"in e?e.rootStore:e,l=n.context.dataRef,{enabled:o=!0,event:i="click",toggle:u=!0,ignoreMouse:c=!1,stickIfOpen:a=!0,touchOpenDelay:s=0,reason:f=R.Ui}=t,d=r.useRef(void 0),p=(0,m.N)(),h=(0,v.Z)(),T=r.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,r=e.nativeEvent,o=n.select("open");if(0!==e.button||"click"===i||(0,w.Go)(t,!0)&&c)return;let g=l.current.openEvent,m=null==g?void 0:g.type,v=n.select("domReferenceElement")!==e.currentTarget,R=o&&v||!(o&&u&&(!g||!a||"click"===m||"mousedown"===m)),T=(0,y.EW)(r);if((0,x.$u)(T)){let e=(0,b.d)(f,r,T);R&&"touch"===t&&s>0?h.start(s,()=>{n.setOpen(!0,e)}):n.setOpen(R,e);return}let M=e.currentTarget;p.request(()=>{let e=(0,b.d)(f,r,M);R&&"touch"===t&&s>0?h.start(s,()=>{n.setOpen(!0,e)}):n.setOpen(R,e)})},onClick(e){if("mousedown-only"===i)return;let t=d.current;if("mousedown"===i&&t){d.current=void 0;return}if((0,w.Go)(t,!0)&&c)return;let r=n.select("open"),o=l.current.openEvent,p=n.select("domReferenceElement")!==e.currentTarget,g=r&&p||!(r&&u&&(!o||!a||(0,w.Ev)(o))),m=(0,b.d)(f,e.nativeEvent,e.currentTarget);g&&"touch"===t&&s>0?h.start(s,()=>{n.setOpen(!0,m)}):n.setOpen(g,m)},onKeyDown(){d.current=void 0}}),[l,i,c,n,a,u,p,h,s,f]);return r.useMemo(()=>o?{reference:T}:g.t0,[o,T])}(tl,{enabled:!el&&!eC,event:"mousedown"}),ti=(0,T.s)(tl,{bubbles:!1}),tu=function(e,t){let n="rootStore"in e?e.rootStore:e,l=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),u=n.context.dataRef,{listRef:c,activeIndex:d,onNavigate:p=()=>{},enabled:g=!0,selectedIndex:h=null,allowEscape:m=!1,loopFocus:v=!1,nested:T=!1,rtl:L=!1,virtual:O=!1,focusItemOnOpen:q="auto",focusItemOnHover:D=!0,openOnArrowKeyDown:j=!0,disabledIndices:F,orientation:H="vertical",parentOrientation:B,cols:U=1,id:z,resetOnPointerLeave:W=!0,externalTree:K}=t,J=(0,x.nd)(o),N=(0,f.u)(J),_=(0,A.R1)(),G=(0,A.cq)(K);(0,a.g)(()=>{u.current.orientation=H},[u,H]);let Y=(0,x.WZ)(i),Z=r.useRef(q),$=r.useRef(null!=h?h:-1),X=r.useRef(null),Q=r.useRef(!0),ee=(0,s.K)(e=>{p(-1===$.current?null:$.current,e)}),et=r.useRef(ee),en=r.useRef(!!o),er=r.useRef(l),el=r.useRef(!1),eo=r.useRef(!1),ei=r.useRef(null),eu=(0,f.u)(F),ec=(0,f.u)(l),ea=(0,f.u)(h),es=(0,f.u)(W),ef=(0,s.K)(()=>{function e(e){O?null==G||G.events.emit("virtualfocus",e):ei.current=(0,S.p)(e,{sync:el.current,preventScroll:!0})}let t=c.current[$.current],n=eo.current;t&&e(t),(el.current?e=>e():requestAnimationFrame)(()=>{let r=c.current[$.current]||t;if(r&&(t||e(r),eg&&(n||!Q.current))){var l;null==(l=r.scrollIntoView)||l.call(r,{block:"nearest",inline:"nearest"})}})});(0,a.g)(()=>{g&&(l&&o?($.current=null!=h?h:-1,Z.current&&null!=h&&(eo.current=!0,ee())):en.current&&($.current=-1,et.current()))},[g,l,o,h,ee]),(0,a.g)(()=>{if(g){if(!l){el.current=!1;return}if(o)if(null==d){if(el.current=!1,null!=ea.current)return;if(en.current&&($.current=-1,ef()),(!er.current||!en.current)&&Z.current&&(null!=X.current||!0===Z.current&&null==X.current)){let e=0,t=()=>{null==c.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):($.current=null==X.current||V(X.current,H,L)||T?(0,E.Zb)(c):(0,E.vB)(c),X.current=null,ee())};t()}}else(0,E.du)(c.current,d)||($.current=d,ef(),eo.current=!1)}},[g,l,o,d,ea,T,c,H,L,ee,ef,eu]),(0,a.g)(()=>{var e,t;if(!g||o||!G||O||!en.current)return;let n=G.nodesRef.current,r=null==(t=n.find(e=>e.id===_))||null==(e=t.context)?void 0:e.elements.floating,l=(0,y.RS)((0,P.R)(o)),i=n.some(e=>e.context&&(0,y.gR)(e.context.elements.floating,l));r&&!i&&Q.current&&r.focus({preventScroll:!0})},[g,o,G,_,O]),(0,a.g)(()=>{et.current=ee,er.current=l,en.current=!!o}),(0,a.g)(()=>{l||(X.current=null,Z.current=q)},[l,q]);let ed=null!=d,ep=(0,s.K)(e=>{if(!ec.current)return;let t=c.current.indexOf(e.currentTarget);-1!==t&&($.current!==t||d!==t)&&($.current=t,ee(e))}),eg=r.useMemo(()=>({onFocus(e){el.current=!0,ep(e)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(e){el.current=!0,eo.current=!1,D&&ep(e)},onPointerLeave(e){var t;if(!ec.current||!Q.current||"touch"===e.pointerType)return;el.current=!0;let n=e.relatedTarget;if(!(!D||c.current.includes(n))&&es.current&&(null==(t=ei.current)||t.call(ei),ei.current=null,$.current=-1,ee(e),!O)){let e=N.current,t=(0,y.RS)((0,P.R)(e));e&&(0,y.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[ep,ec,N,D,c,ee,es,O]),eh=r.useCallback(()=>{var e,t,n;return null!=B?B:null==G||null==(n=G.nodesRef.current.find(e=>e.id===_))||null==(t=n.context)||null==(e=t.dataRef)?void 0:e.current.orientation},[_,G,B]),em=(0,s.K)(e=>{if(Q.current=!1,el.current=!0,229===e.which||!ec.current&&e.currentTarget===N.current)return;if(T&&function(e,t,n,r){let l=n?e===C.RJ:e===C.eR,o=e===C.il;return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:k(t,l,o)}(e.key,H,L,U)){I(e.key,eh())||(0,w.jo)(e),n.setOpen(!1,(0,b.d)(R.Dq,e.nativeEvent)),(0,M.sb)(i)&&(O?null==G||G.events.emit("virtualfocus",i):i.focus());return}let t=$.current,r=(0,E.Zb)(c,F),o=(0,E.vB)(c,F);if(Y||("Home"===e.key&&((0,w.jo)(e),$.current=r,ee(e)),"End"===e.key&&((0,w.jo)(e),$.current=o,ee(e))),U>1){let t=Array.from({length:c.current.length},()=>({width:1,height:1})),n=(0,E.zf)(t,U,!1),l=n.findIndex(e=>null!=e&&!(0,E.FP)(c.current,e,F)),i=n.reduce((e,t,n)=>null==t||(0,E.FP)(c.current,t,F)?e:n,-1),u=n[(0,E.Kg)(n.map(e=>null!=e?c.current[e]:null),{event:e,orientation:H,loopFocus:v,rtl:L,cols:U,disabledIndices:(0,E.Y3)([...("function"!=typeof F?F:null)||c.current.map((e,t)=>(0,E.FP)(c.current,t,F)?t:void 0),void 0],n),minIndex:l,maxIndex:i,prevIndex:(0,E.fl)($.current>o?r:$.current,t,n,U,e.key===C.Jd?"bl":e.key===(L?C.eR:C.RJ)?"tr":"tl"),stopEvent:!0})];if(null!=u&&($.current=u,ee(e)),"both"===H)return}if(I(e.key,H)){if((0,w.jo)(e),l&&!O&&(0,y.RS)(e.currentTarget.ownerDocument)===e.currentTarget){$.current=V(e.key,H,L)?r:o,ee(e);return}V(e.key,H,L)?v?t>=o?m&&t!==c.current.length?$.current=-1:(el.current=!1,$.current=r):$.current=(0,E.BF)(c.current,{startingIndex:t,disabledIndices:F}):$.current=Math.min(o,(0,E.BF)(c.current,{startingIndex:t,disabledIndices:F})):v?t<=r?m&&-1!==t?$.current=c.current.length:(el.current=!1,$.current=o):$.current=(0,E.BF)(c.current,{startingIndex:t,decrement:!0,disabledIndices:F}):$.current=Math.max(r,(0,E.BF)(c.current,{startingIndex:t,decrement:!0,disabledIndices:F})),(0,E.du)(c.current,$.current)&&($.current=-1),ee(e)}}),ev=r.useMemo(()=>O&&l&&ed&&{"aria-activedescendant":"".concat(z,"-").concat(d)},[O,l,ed,z,d]),ey=r.useMemo(()=>({"aria-orientation":"both"===H?void 0:H,...!Y?ev:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&l&&!O){let t=(0,y.EW)(e.nativeEvent);if(t&&!(0,y.gR)(N.current,t))return;(0,w.jo)(e),n.setOpen(!1,(0,b.d)(R.Xn,e.nativeEvent)),(0,M.sb)(i)&&i.focus();return}em(e)},onPointerMove(){Q.current=!0}}),[ev,em,N,H,Y,n,l,O,i]),ex=r.useMemo(()=>{function e(e){"auto"===q&&(0,w.YF)(e.nativeEvent)&&(Z.current=!O)}function t(e){Z.current=q,"auto"===q&&(0,w.Pg)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(e){var t,r;let l=n.select("open");Q.current=!1;let o=e.key.startsWith("Arrow"),i=(t=e.key,r=eh(),k(r,L?t===C.eR:t===C.RJ,t===C.Jd)),u=I(e.key,H),a=(T?i:u)||"Enter"===e.key||""===e.key.trim();if(O&&l)return em(e);if(l||j||!o){if(a){let t=I(e.key,eh());X.current=T&&t?null:e.key}if(T){i&&((0,w.jo)(e),l?($.current=(0,E.Zb)(c,eu.current),ee(e)):n.setOpen(!0,(0,b.d)(R.Dq,e.nativeEvent,e.currentTarget)));return}u&&(null!=ea.current&&($.current=ea.current),(0,w.jo)(e),!l&&j?n.setOpen(!0,(0,b.d)(R.Dq,e.nativeEvent,e.currentTarget)):em(e),l&&ee(e))}},onFocus(e){n.select("open")&&!O&&($.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[em,eu,q,c,T,ee,n,j,H,eh,L,ea,O]),ew=r.useMemo(()=>({...ev,...ex}),[ev,ex]);return r.useMemo(()=>g?{reference:ew,floating:ey,item:eg,trigger:ex}:{},[g,ew,ey,ex,eg])}(tl,{enabled:!el&&!eC,listRef:eq,activeIndex:eQ,selectedIndex:e0,disabledIndices:g.Ml,onNavigate(e){(null!==e||eL)&&eX.set("activeIndex",e)},focusItemOnHover:eh}),tc=function(e,t){var n;let l="rootStore"in e?e.rootStore:e,o=l.context.dataRef,i=l.useState("open"),{listRef:u,elementsRef:c,activeIndex:f,onMatch:d,onTypingChange:p,enabled:g=!0,resetMs:h=750,selectedIndex:m=null}=t,x=(0,v.Z)(),b=r.useRef(""),R=r.useRef(null!=(n=null!=m?m:f)?n:-1),T=r.useRef(null);(0,a.g)(()=>{(i||null===m)&&(x.clear(),T.current=null,""!==b.current&&(b.current=""))},[i,m,x]),(0,a.g)(()=>{if(i&&""===b.current){var e;R.current=null!=(e=null!=m?m:f)?e:-1}},[i,m,f]);let M=(0,s.K)(e=>{e?o.current.typing||(o.current.typing=e,null==p||p(e)):o.current.typing&&(o.current.typing=e,null==p||p(e))}),P=(0,s.K)(e=>{var t,n;function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return -1;let r=(n%e.length+e.length)%e.length,l=t.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length,o=e[n];if((null==o?void 0:o.toLocaleLowerCase().startsWith(l))&&function(e){let t=null==c?void 0:c.current[e];return!t||(0,E.J9)(t)}(n))return n}return -1}let l=u.current;if(b.current.length>0&&" "===e.key&&((0,w.jo)(e),M(!0)),b.current.length>0&&" "!==b.current[0]&&-1===r(l,b.current)&&" "!==e.key&&M(!1),null==l||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;i&&" "!==e.key&&((0,w.jo)(e),M(!0));let o=""===b.current;o&&(R.current=null!=(t=null!=m?m:f)?t:-1),l.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&b.current===e.key&&(b.current="",R.current=T.current),b.current+=e.key,x.start(h,()=>{b.current="",R.current=T.current,M(!1)});let a=o?null!=(n=null!=m?m:f)?n:-1:R.current,s=r(l,b.current,(null!=a?a:0)+1);-1!==s?(null==d||d(s),T.current=s):" "!==e.key&&(b.current="",M(!1))}),A=(0,s.K)(e=>{let t=e.relatedTarget,n=l.select("domReferenceElement"),r=l.select("floatingElement"),o=(0,y.gR)(n,t),i=(0,y.gR)(r,t);o||i||(x.clear(),b.current="",R.current=T.current,M(!1))}),S=r.useMemo(()=>({onKeyDown:P,onBlur:A}),[P,A]),C=r.useMemo(()=>({onKeyDown:P,onBlur:A}),[P,A]);return r.useMemo(()=>g?{reference:S,floating:C}:{},[g,S,C])}(tl,{enabled:!el&&!eC&&(eL||!ef),listRef:eD,activeIndex:eQ,selectedIndex:e0,onMatch(e){eL?eX.set("activeIndex",e):tn(eU.current[e],(0,b.d)("none"))},onTypingChange(e){ez.current=e}}),{getReferenceProps:ta,getFloatingProps:ts,getItemProps:tf}=(0,L.b)([to,ti,tu,tc]),td=r.useMemo(()=>(0,_.v6)(ta(),e$,eS?{id:eS}:g.t0),[ta,e$,eS]);(0,u.j)(()=>{eX.update({popupProps:ts(),triggerProps:td})}),(0,a.g)(()=>{eX.update({id:eS,modal:ei,multiple:ef,value:eI,open:eL,mounted:e_,transitionStatus:eY,popupProps:ts(),triggerProps:td,items:es,itemToStringLabel:ed,itemToStringValue:ep,isItemEqualToValue:eg,openMethod:e7})},[eX,eS,ei,ef,eI,eL,e_,eY,ts,td,es,ed,ep,eg,e7]);let tp=r.useMemo(()=>({store:eX,name:ek,required:eo,disabled:eC,readOnly:el,multiple:ef,highlightItemOnHover:eh,setValue:tn,setOpen:te,listRef:eq,popupRef:ej,scrollHandlerRef:eF,handleScrollArrowVisibility:tr,scrollArrowsMountedCountRef:eH,getItemProps:tf,events:tl.context.events,valueRef:eB,valuesRef:eU,labelsRef:eD,typingRef:ez,selectionRef:eJ,selectedItemTextRef:eK,validation:eE,onOpenChangeComplete:ea,keyboardActiveRef:eW,alignItemWithTriggerActiveRef:eN,initialValueRef:e9}),[eX,ek,eo,eC,el,ef,eh,tn,te,tf,tl.context.events,eE,ea,tr]),tg=(0,o.a)(ec,eE.inputRef),th=ef&&Array.isArray(eI)&&eI.length>0,tm=ef?void 0:ek,tv=r.useMemo(()=>ef&&Array.isArray(eI)&&ek?eI.map(e=>{let t=(0,z.T)(e,ep);return(0,G.jsx)("input",{type:"hidden",form:et,name:ek,value:t},t)}):null,[ef,eI,et,ek,ep]);return(0,G.jsx)(O.CG.Provider,{value:tp,children:(0,G.jsxs)(O.iP.Provider,{value:tl,children:[em,(0,G.jsx)("input",{...eE.getInputValidationProps({onFocus(){var e;null==(e=eX.state.triggerElement)||e.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=(0,b.d)(R.dv,e.nativeEvent);eX.set("forceMount",!0),queueMicrotask(function(){if(ef)return;let e=eU.current.find(e=>(0,z.T)(e,ep).toLowerCase()===t.toLowerCase()||(0,z.yg)(e,ed).toLowerCase()===t.toLowerCase());null!=e&&(ey(e!==eR.initialValue),tn(e,n),eb()&&eE.commit(e))})}}),id:eS&&null==tm?"".concat(eS,"-hidden-input"):void 0,form:et,name:tm,autoComplete:en,value:e6,disabled:eC,required:eo&&!th,readOnly:el,ref:tg,style:ek?l.a:l.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tv]})})}},8098:(e,t,n)=>{n.d(t,{P:()=>s});var r=n(2066),l=n(59715),o=n(77509),i=n(39972),u=n(20798),c=n(74981),a=n(15787);function s(e){let{open:t=!1,onOpenChange:n,elements:s={}}=e,f=(0,l.B)(),d=null!=(0,u.R1)(),p=(0,o.useRefWithInit)(()=>{var e,r;return new c.K({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:null!=(e=s.reference)?e:null,floatingElement:null!=(r=s.floating)?r:null,triggerElements:new a.Z,floatingId:f,syncOnly:!1,nested:d})}).current;return(0,i.g)(()=>{let e={open:t,floatingId:f};void 0!==s.reference&&(e.referenceElement=s.reference,e.domReferenceElement=(0,r.vq)(s.reference)?s.reference:null),void 0!==s.floating&&(e.floatingElement=s.floating),p.update(e)},[t,f,s.reference,s.floating,p]),p.context.onOpenChange=n,p.context.nested=d,p}},8147:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(60204),l=n(16275);function o(e){return"starting"===e?l.K2:r.t0}},9106:(e,t,n)=>{n.d(t,{h:()=>s});var r=n(12115),l=n(34852),o=n(81636),i=n(77818),u=n(87711),c=n(62840),a=n(95155);let s=r.forwardRef(function(e,t){var n;let r=null!=(n=e.keepMounted)&&n,{selected:o}=(0,l.G)();return r||o?(0,a.jsx)(f,{...e,ref:t}):null}),f=r.memo(r.forwardRef((e,t)=>{let{render:n,className:a,style:s,keepMounted:f,...d}=e,{selected:p}=(0,l.G)(),g=r.useRef(null),{transitionStatus:h,setMounted:m}=(0,o.$)(p),v=(0,u.o)("span",e,{ref:[t,g],state:{selected:p,transitionStatus:h},props:[{"aria-hidden":!0,children:"✔️"},d],stateAttributesMapping:c.G});return(0,i.v)({open:p,ref:g,onComplete(){p||m(!1)}}),v}))},17578:(e,t,n)=>{n.d(t,{t:()=>j});var r=n(12115),l=n(10208),o=n(32614),i=n(7036),u=n(7546),c=n(24758),a=n(2066),s=n(39972),f=n(33747),d=n(58261),p=n(78517),g=n(20861),h=n(27222),m=n(10130),v=n(53414),y=n(61361),x=n(62840),w=n(77818),b=n(87711),R=n(60855),T=n(29538),M=n(14043),P=n(85753),E=n(13309);let A=r.createContext(void 0);var S=n(94769),C=n(8147),k=n(20017),I=n(65116);let V=r.createContext(void 0),L={disableStyleElements:!1};var O=n(58154),q=n(95155);let D={...m.GW,...x.G},j=r.forwardRef(function(e,t){var n;let{render:l,className:g,style:m,finalFocus:x,...j}=e,{store:W,popupRef:K,onOpenChangeComplete:J,setOpen:N,valueRef:_,selectedItemTextRef:G,keyboardActiveRef:Y,multiple:Z,handleScrollArrowVisibility:$,scrollHandlerRef:X,listRef:Q,highlightItemOnHover:ee}=(0,h.ll)(),{side:et,align:en,alignItemWithTriggerActive:er,isPositioned:el,setControlledAlignItemWithTrigger:eo,scrollDownArrowRef:ei,scrollUpArrowRef:eu}=(0,v.H)(),ec=null!=function(e){let t=r.useContext(A);if(void 0===t&&!e)throw Error((0,E.A)(69));return t}(!0),ea=(0,h.hG)(),es=(0,O.j)(),{nonce:ef,disableStyleElements:ed}=null!=(n=r.useContext(V))?n:L,ep=(0,f.P)(W,R.T.id),eg=(0,f.P)(W,R.T.open),eh=(0,f.P)(W,R.T.mounted),em=(0,f.P)(W,R.T.popupProps),ev=(0,f.P)(W,R.T.transitionStatus),ey=(0,f.P)(W,R.T.triggerElement),ex=(0,f.P)(W,R.T.positionerElement),ew=(0,f.P)(W,R.T.listElement),eb=r.useRef(!1),eR=r.useRef(!1),eT=r.useRef({}),eM=(0,d.N)(),eP=(0,u.K)(e=>{var t;if(!ex||!K.current||!eR.current)return;if(eb.current||!er)return void $();let n="0px"===ex.style.top,r="0px"===ex.style.bottom;if(!n&&!r)return void $();let l=B(ex),o=(t=ex.getBoundingClientRect().height,t/l.y),i=(0,c.R)(ex),u=getComputedStyle(ex),a=parseFloat(u.marginTop),s=parseFloat(u.marginBottom),f=F(getComputedStyle(K.current)),d=Math.min(i.documentElement.clientHeight-a-s,f),p=e.scrollTop,g=H(e),h=0,m=null,v=!1,y=!1,x=e=>{ex.style.height="".concat(e,"px")},w=n?g-p:p,b=Math.min(o+w,d);if(h=b,w<=I.Pv)return void((t,n)=>{let r=(0,k.q)(t,0,d-o);r>0&&x(o+r),e.scrollTop=n,d-(o+r)<=I.Pv&&(eb.current=!0),$()})(w,n?g:0);if(d-b>I.Pv)n?y=!0:m=0;else if(v=!0,r&&p<g){let e=o+w-d;m=p-(w-e)}if(0!==(h=Math.ceil(h))&&x(h),y||null!=m){let t=H(e),n=y?t:(0,k.q)(m,0,t);Math.abs(e.scrollTop-n)>I.Pv&&(e.scrollTop=n)}(v||h>=d-I.Pv)&&(eb.current=!0),$()});r.useImperativeHandle(X,()=>eP,[eP]),(0,w.v)({open:eg,ref:K,onComplete(){eg&&(null==J||J(!0))}}),(0,s.g)(()=>{ex&&K.current&&!Object.keys(eT.current).length&&(eT.current={top:ex.style.top||"0",left:ex.style.left||"0",right:ex.style.right,height:ex.style.height,bottom:ex.style.bottom,minHeight:ex.style.minHeight,maxHeight:ex.style.maxHeight,marginTop:ex.style.marginTop,marginBottom:ex.style.marginBottom})},[K,ex]),(0,s.g)(()=>{eg||er||(eR.current=!1,eb.current=!1,(0,T.Y)(ex,eT.current))},[eg,er,ex,K]),(0,s.g)(()=>{let e=K.current;if(!eg||!ey||!ex||!e||er&&!el||"ending"===W.state.transitionStatus)return;if(!er){eR.current=!0,eM.request($),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,n={};for(let[e,r]of z)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of z){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{var n,r;let t,l=G.current,o=_.current,u=getComputedStyle(ex),s=getComputedStyle(e),f=(0,c.R)(ey),d=(0,a.zk)(ex),p=B(ey),g=U(ey.getBoundingClientRect(),p),h=U(ex.getBoundingClientRect(),p),m=g.height,v=ew||e,y=v.scrollHeight,x=parseFloat(s.borderBottomWidth),w=parseFloat(u.marginTop)||10,b=parseFloat(u.marginBottom)||10,R=parseFloat(u.minHeight)||100,M=F(s),P=f.documentElement.clientHeight-w-b,E=f.documentElement.clientWidth,A=P-g.bottom+m,S="rtl"===es?g.right-h.width:g.left,C=0;if(l&&o){let e=U(o.getBoundingClientRect(),p);t=U(l.getBoundingClientRect(),p),S=h.left+("rtl"===es?e.right-t.right:e.left-t.left);let n=e.top-g.top+e.height/2;C=t.top-h.top+t.height/2-n}let V=A+C+b+x,L=Math.min(P,V),O=P-w-b,q=V-L;ex.style.left="".concat((0,k.q)(S,5,E-5-h.width),"px"),ex.style.height="".concat(L,"px"),ex.style.maxHeight="auto",ex.style.marginTop="".concat(w,"px"),ex.style.marginBottom="".concat(b,"px"),e.style.height="100%";let D=H(v),j=q>=D-I.Pv;j&&(L=Math.min(P,h.height)-(q-D));let z=g.top<20||g.bottom>P-20||Math.ceil(L)+I.Pv<Math.min(y,R),K=(null!=(r=null==(n=d.visualViewport)?void 0:n.scale)?r:1)!==1&&i.Tc;if(z||K){eR.current=!0,(0,T.Y)(ex,eT.current),eo(!1);return}let J=Math.max(R,L);if(j){let e=Math.max(0,P-V);ex.style.top=h.height>=O?"0":"".concat(e,"px"),ex.style.height="".concat(L,"px"),v.scrollTop=H(v)}else ex.style.bottom="0",v.scrollTop=q;if(t){let n=h.top,r=h.height,l=t.top+t.height/2,o=(0,k.q)(r>0?(l-n)/r*100:50,0,100);e.style.setProperty("--transform-origin","50% ".concat(o,"%"))}(J===P||L>=M)&&(eb.current=!0),$(),ee&&null===W.state.selectedIndex&&null===W.state.activeIndex&&null!=Q.current[0]&&W.set("activeIndex",0),eR.current=!0}finally{t()}},[W,eg,ex,ey,_,G,K,$,er,eo,eM,ei,eu,ew,Q,ee,es,el]),r.useEffect(()=>{if(!er||!ex||!eg)return;let e=(0,a.zk)(ex);return(0,o.q)(e,"resize",function(e){N(!1,(0,M.d)(P.L5,e))})},[N,er,ex,eg]);let eE={...ew?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":Z||void 0,id:"".concat(ep,"-list")},onKeyDown(e){Y.current=!0,ec&&S.jF.has(e.key)&&e.stopPropagation()},onMouseMove(){Y.current=!1},onScroll(e){ew||eP(e.currentTarget)},...er&&{style:ew?{height:"100%"}:T.O}},eA=(0,b.o)("div",e,{ref:[t,K],state:{open:eg,transitionStatus:ev,side:et,align:en},stateAttributesMapping:D,props:[em,eE,(0,C.d)(ev),{className:!ew&&er?y.E.className:void 0},j]});return(0,q.jsxs)(r.Fragment,{children:[!ed&&y.E.getElement(ef),(0,q.jsx)(p.s,{context:ea,modal:!1,disabled:!eh,returnFocus:x,restoreFocus:!0,children:eA})]})});function F(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function H(e){return(0,I.XF)(e.scrollHeight,e.clientHeight)}function B(e){return g.iD.getScale(e)}function U(e,t){return(0,l.B1)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let z=[["transform","none"],["scale","1"],["translate","0 0"]]},20017:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},20861:(e,t,n)=>{n.d(t,{ll:()=>A,rD:()=>O,UU:()=>k,jD:()=>V,ER:()=>L,cY:()=>S,iD:()=>P,BN:()=>C,Ej:()=>I});var r=n(10208);function l(e,t,n){let l,{reference:o,floating:i}=e,u=(0,r.TV)(t),c=(0,r.Dz)(t),a=(0,r.sq)(c),s=(0,r.C0)(t),f="y"===u,d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,g=o[a]/2-i[a]/2;switch(s){case"top":l={x:d,y:o.y-i.height};break;case"bottom":l={x:d,y:o.y+o.height};break;case"right":l={x:o.x+o.width,y:p};break;case"left":l={x:o.x-i.width,y:p};break;default:l={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":l[c]-=g*(n&&f?-1:1);break;case"end":l[c]+=g*(n&&f?-1:1)}return l}async function o(e,t){var n;void 0===t&&(t={});let{x:l,y:o,platform:i,rects:u,elements:c,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=(0,r._3)(t,e),h=(0,r.nI)(g),m=c[p?"floating"===d?"reference":"floating":d],v=(0,r.B1)(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:f,strategy:a})),y="floating"===d?{x:l,y:o,width:u.floating.width,height:u.floating.height}:u.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=(0,r.B1)(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:x,strategy:a}):y);return{top:(v.top-b.top+h.top)/w.y,bottom:(b.bottom-v.bottom+h.bottom)/w.y,left:(v.left-b.left+h.left)/w.x,right:(b.right-v.right+h.right)/w.x}}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:c}=n,a=c.detectOverflow?c:{...c,detectOverflow:o},s=await (null==c.isRTL?void 0:c.isRTL(t)),f=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=l(f,r,s),g=r,h=0,m={};for(let n=0;n<u.length;n++){let o=u[n];if(!o)continue;let{name:v,fn:y}=o,{x:x,y:w,data:b,reset:R}=await y({x:d,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:m,rects:f,platform:a,elements:{reference:e,floating:t}});d=null!=x?x:d,p=null!=w?w:p,m[v]={...m[v],...b},R&&h<50&&(h++,"object"==typeof R&&(R.placement&&(g=R.placement),R.rects&&(f=!0===R.rects?await c.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:d,y:p}=l(f,g,s)),n=-1)}return{x:d,y:p,placement:g,strategy:i,middlewareData:m}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(e){return r.r_.some(t=>e[t]>=0)}let a=new Set(["left","top"]);async function s(e,t){let{placement:n,platform:l,elements:o}=e,i=await (null==l.isRTL?void 0:l.isRTL(o.floating)),u=(0,r.C0)(n),c=(0,r.Sg)(n),s="y"===(0,r.TV)(n),f=a.has(u)?-1:1,d=i&&s?-1:1,p=(0,r._3)(t,e),{mainAxis:g,crossAxis:h,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),s?{x:h*d,y:g*f}:{x:g*f,y:h*d}}var f=n(2066);function d(e){let t=(0,f.L9)(e),n=parseFloat(t.width)||0,l=parseFloat(t.height)||0,o=(0,f.sb)(e),i=o?e.offsetWidth:n,u=o?e.offsetHeight:l,c=(0,r.LI)(n)!==i||(0,r.LI)(l)!==u;return c&&(n=i,l=u),{width:n,height:l,$:c}}function p(e){return(0,f.vq)(e)?e:e.contextElement}function g(e){let t=p(e);if(!(0,f.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:l,height:o,$:i}=d(t),u=(i?(0,r.LI)(n.width):n.width)/l,c=(i?(0,r.LI)(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),c&&Number.isFinite(c)||(c=1),{x:u,y:c}}let h=(0,r.Jx)(0);function m(e){let t=(0,f.zk)(e);return(0,f.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function v(e,t,n,l){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),u=p(e),c=(0,r.Jx)(1);t&&(l?(0,f.vq)(l)&&(c=g(l)):c=g(e));let a=(void 0===(o=n)&&(o=!1),l&&(!o||l===(0,f.zk)(u))&&o)?m(u):(0,r.Jx)(0),s=(i.left+a.x)/c.x,d=(i.top+a.y)/c.y,h=i.width/c.x,v=i.height/c.y;if(u){let e=(0,f.zk)(u),t=l&&(0,f.vq)(l)?(0,f.zk)(l):l,n=e,r=(0,f._m)(n);for(;r&&l&&t!==n;){let e=g(r),t=r.getBoundingClientRect(),l=(0,f.L9)(r),o=t.left+(r.clientLeft+parseFloat(l.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,d*=e.y,h*=e.x,v*=e.y,s+=o,d+=i,n=(0,f.zk)(r),r=(0,f._m)(n)}}return(0,r.B1)({width:h,height:v,x:s,y:d})}function y(e,t){let n=(0,f.CP)(e).scrollLeft;return t?t.left+n:v((0,f.ep)(e)).left+n}function x(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-y(e,n),y:n.top+t.scrollTop}}function w(e,t,n){let l;if("viewport"===t)l=function(e,t){let n=(0,f.zk)(e),r=(0,f.ep)(e),l=n.visualViewport,o=r.clientWidth,i=r.clientHeight,u=0,c=0;if(l){o=l.width,i=l.height;let e=(0,f.Tc)();(!e||e&&"fixed"===t)&&(u=l.offsetLeft,c=l.offsetTop)}let a=y(r);if(a<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),l="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-l);i<=25&&(o-=i)}else a<=25&&(o+=a);return{width:o,height:i,x:u,y:c}}(e,n);else if("document"===t)l=function(e){let t=(0,f.ep)(e),n=(0,f.CP)(e),l=e.ownerDocument.body,o=(0,r.T9)(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),i=(0,r.T9)(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),u=-n.scrollLeft+y(e),c=-n.scrollTop;return"rtl"===(0,f.L9)(l).direction&&(u+=(0,r.T9)(t.clientWidth,l.clientWidth)-o),{width:o,height:i,x:u,y:c}}((0,f.ep)(e));else if((0,f.vq)(t))l=function(e,t){let n=v(e,!0,"fixed"===t),l=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,f.sb)(e)?g(e):(0,r.Jx)(1),u=e.clientWidth*i.x,c=e.clientHeight*i.y;return{width:u,height:c,x:o*i.x,y:l*i.y}}(t,n);else{let n=m(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(l)}function b(e){return"static"===(0,f.L9)(e).position}function R(e,t){if(!(0,f.sb)(e)||"fixed"===(0,f.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,f.ep)(e)===n&&(n=n.ownerDocument.body),n}function T(e,t){let n=(0,f.zk)(e);if((0,f.Tf)(e))return n;if(!(0,f.sb)(e)){let t=(0,f.$4)(e);for(;t&&!(0,f.eu)(t);){if((0,f.vq)(t)&&!b(t))return t;t=(0,f.$4)(t)}return n}let r=R(e,t);for(;r&&(0,f.Lv)(r)&&b(r);)r=R(r,t);return r&&(0,f.eu)(r)&&b(r)&&!(0,f.sQ)(r)?n:r||(0,f.gJ)(e)||n}let M=async function(e){let t=this.getOffsetParent||T,n=this.getDimensions,l=await n(e.floating);return{reference:function(e,t,n){let l=(0,f.sb)(t),o=(0,f.ep)(t),i="fixed"===n,u=v(e,!0,i,t),c={scrollLeft:0,scrollTop:0},a=(0,r.Jx)(0);if(l||!l&&!i)if(("body"!==(0,f.mq)(t)||(0,f.ZU)(o))&&(c=(0,f.CP)(t)),l){let e=v(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=y(o));i&&!l&&o&&(a.x=y(o));let s=!o||l||i?(0,r.Jx)(0):x(o,c);return{x:u.left+c.scrollLeft-a.x-s.x,y:u.top+c.scrollTop-a.y-s.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},P={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:l,strategy:o}=e,i="fixed"===o,u=(0,f.ep)(l),c=!!t&&(0,f.Tf)(t.floating);if(l===u||c&&i)return n;let a={scrollLeft:0,scrollTop:0},s=(0,r.Jx)(1),d=(0,r.Jx)(0),p=(0,f.sb)(l);if((p||!p&&!i)&&(("body"!==(0,f.mq)(l)||(0,f.ZU)(u))&&(a=(0,f.CP)(l)),p)){let e=v(l);s=g(l),d.x=e.x+l.clientLeft,d.y=e.y+l.clientTop}let h=!u||p||i?(0,r.Jx)(0):x(u,a);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+d.x+h.x,y:n.y*s.y-a.scrollTop*s.y+d.y+h.y}},getDocumentElement:f.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:l,strategy:o}=e,i=[..."clippingAncestors"===n?(0,f.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,f.v9)(e,[],!1).filter(e=>(0,f.vq)(e)&&"body"!==(0,f.mq)(e)),l=null,o="fixed"===(0,f.L9)(e).position,i=o?(0,f.$4)(e):e;for(;(0,f.vq)(i)&&!(0,f.eu)(i);){let t=(0,f.L9)(i),n=(0,f.sQ)(i);n||"fixed"!==t.position||(l=null),(o?n||l:!(!n&&"static"===t.position&&l&&("absolute"===l.position||"fixed"===l.position)||(0,f.ZU)(i)&&!n&&function e(t,n){let r=(0,f.$4)(t);return!(r===n||!(0,f.vq)(r)||(0,f.eu)(r))&&("fixed"===(0,f.L9)(r).position||e(r,n))}(e,i)))?l=t:r=r.filter(e=>e!==i),i=(0,f.$4)(i)}return t.set(e,r),r}(t,this._c):[].concat(n),l],u=w(t,i[0],o),c=u.top,a=u.right,s=u.bottom,d=u.left;for(let e=1;e<i.length;e++){let n=w(t,i[e],o);c=(0,r.T9)(n.top,c),a=(0,r.jk)(n.right,a),s=(0,r.jk)(n.bottom,s),d=(0,r.T9)(n.left,d)}return{width:a-d,height:s-c,x:d,y:c}},getOffsetParent:T,getElementRects:M,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=d(e);return{width:t,height:n}},getScale:g,isElement:f.vq,isRTL:function(e){return"rtl"===(0,f.L9)(e).direction}};function E(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A(e,t,n,l){let o;void 0===l&&(l={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,d=p(e),g=i||u?[...d?(0,f.v9)(d):[],...t?(0,f.v9)(t):[]]:[];g.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=d&&a?function(e,t){let n,l=null,o=(0,f.ep)(e);function i(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}return!function u(c,a){void 0===c&&(c=!1),void 0===a&&(a=1),i();let s=e.getBoundingClientRect(),{left:f,top:d,width:p,height:g}=s;if(c||t(),!p||!g)return;let h=(0,r.RI)(d),m=(0,r.RI)(o.clientWidth-(f+p)),v={rootMargin:-h+"px "+-m+"px "+-(0,r.RI)(o.clientHeight-(d+g))+"px "+-(0,r.RI)(f)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,a))||1},y=!0;function x(t){let r=t[0].intersectionRatio;if(r!==a){if(!y)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||E(s,e.getBoundingClientRect())||u(),y=!1}try{l=new IntersectionObserver(x,{...v,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(x,v)}l.observe(e)}(!0),i}(d,n):null,m=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),d&&!s&&y.observe(d),t&&y.observe(t));let x=s?v(e):null;return s&&function t(){let r=v(e);x&&!E(x,r)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,s&&cancelAnimationFrame(o)}}let S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:l,y:o,placement:i,middlewareData:u}=t,c=await s(t,e);return i===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:l+c.x,y:o+c.y,data:{...c,placement:i}}}}},C=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:l,placement:o,platform:i}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=(0,r._3)(e,t),f={x:n,y:l},d=await i.detectOverflow(t,s),p=(0,r.TV)((0,r.C0)(o)),g=(0,r.PG)(p),h=f[g],m=f[p];if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=h+d[e],l=h-d[t];h=(0,r.qE)(n,h,l)}if(c){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+d[e],l=m-d[t];m=(0,r.qE)(n,m,l)}let v=a.fn({...t,[g]:h,[p]:m});return{...v,data:{x:v.x-n,y:v.y-l,enabled:{[g]:u,[p]:c}}}}}},k=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,l,o,i,u;let{placement:c,middlewareData:a,rects:s,initialPlacement:f,platform:d,elements:p}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...w}=(0,r._3)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let b=(0,r.C0)(c),R=(0,r.TV)(f),T=(0,r.C0)(f)===f,M=await (null==d.isRTL?void 0:d.isRTL(p.floating)),P=m||(T||!x?[(0,r.bV)(f)]:(0,r.WJ)(f)),E="none"!==y;!m&&E&&P.push(...(0,r.lP)(f,x,y,M));let A=[f,...P],S=await d.detectOverflow(t,w),C=[],k=(null==(l=a.flip)?void 0:l.overflows)||[];if(g&&C.push(S[b]),h){let e=(0,r.w7)(c,s,M);C.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:c,overflows:C}],!C.every(e=>e<=0)){let e=((null==(o=a.flip)?void 0:o.index)||0)+1,t=A[e];if(t&&("alignment"!==h||R===(0,r.TV)(t)||k.every(e=>(0,r.TV)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(i=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(u=k.filter(e=>{if(E){let t=(0,r.TV)(e.placement);return t===R||"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:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(c!==n)return{reset:{placement:n}}}return{}}}},I=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,l;let o,i,{placement:u,rects:c,platform:a,elements:s}=t,{apply:f=()=>{},...d}=(0,r._3)(e,t),p=await a.detectOverflow(t,d),g=(0,r.C0)(u),h=(0,r.Sg)(u),m="y"===(0,r.TV)(u),{width:v,height:y}=c.floating;"top"===g||"bottom"===g?(o=g,i=h===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(i=g,o="end"===h?"top":"bottom");let x=y-p.top-p.bottom,w=v-p.left-p.right,b=(0,r.jk)(y-p[o],x),R=(0,r.jk)(v-p[i],w),T=!t.middlewareData.shift,M=b,P=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=w),null!=(l=t.middlewareData.shift)&&l.enabled.y&&(M=x),T&&!h){let e=(0,r.T9)(p.left,0),t=(0,r.T9)(p.right,0),n=(0,r.T9)(p.top,0),l=(0,r.T9)(p.bottom,0);m?P=v-2*(0!==e||0!==t?e+t:(0,r.T9)(p.left,p.right)):M=y-2*(0!==n||0!==l?n+l:(0,r.T9)(p.top,p.bottom))}await f({...t,availableWidth:P,availableHeight:M});let E=await a.getDimensions(s.floating);return v!==E.width||y!==E.height?{reset:{rects:!0}}:{}}}},V=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:l}=t,{strategy:o="referenceHidden",...i}=(0,r._3)(e,t);switch(o){case"referenceHidden":{let e=u(await l.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case"escaped":{let e=u(await l.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:l,placement:o,rects:i,middlewareData:u}=t,{offset:c=0,mainAxis:s=!0,crossAxis:f=!0}=(0,r._3)(e,t),d={x:n,y:l},p=(0,r.TV)(o),g=(0,r.PG)(p),h=d[g],m=d[p],v=(0,r._3)(c,t),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+y.mainAxis,n=i.reference[g]+i.reference[e]-y.mainAxis;h<t?h=t:h>n&&(h=n)}if(f){var x,w;let e="y"===g?"width":"height",t=a.has((0,r.C0)(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(x=u.offset)?void 0:x[p])||0)+(t?0:y.crossAxis),l=i.reference[p]+i.reference[e]+(t?0:(null==(w=u.offset)?void 0:w[p])||0)-(t?y.crossAxis:0);m<n?m=n:m>l&&(m=l)}return{[g]:h,[p]:m}}}},O=(e,t,n)=>{let r=new Map,l={platform:P,...n},o={...l.platform,_c:r};return i(e,t,{...l,platform:o})}},22597:(e,t,n)=>{n.d(t,{Ai:()=>u,Vz:()=>i,jd:()=>r,kJ:()=>o,tl:()=>l});let r=(e,t)=>Object.is(e,t);function l(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function o(e,t,n){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&l(t,e,n))}function i(e,t,n){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&l(e,t,n)):-1}function u(e,t,n){return e.filter(e=>!l(t,e,n))}},23916:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(13185).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},25352:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(13185).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},26435:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(12115),l=n(38),o=n(95155);let i=r.forwardRef(function(e,t){return(0,o.jsx)(l.f,{...e,ref:t,direction:"down"})})},27222:(e,t,n)=>{n.d(t,{CG:()=>o,hG:()=>c,iP:()=>i,ll:()=>u});var r=n(13309),l=n(12115);let o=l.createContext(null),i=l.createContext(null);function u(){let e=l.useContext(o);if(null===e)throw Error((0,r.A)(60));return e}function c(){let e=l.useContext(i);if(null===e)throw Error((0,r.A)(61));return e}},27813:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(12115),l=n(33747),o=n(7352);let i=r.createContext(void 0);var u=n(27222),c=n(60855),a=n(95155);let s=r.forwardRef(function(e,t){let{store:n}=(0,u.ll)(),r=(0,l.P)(n,c.T.mounted),s=(0,l.P)(n,c.T.forceMount);return r||s?(0,a.jsx)(i.Provider,{value:!0,children:(0,a.jsx)(o.XF,{ref:t,...e})}):null})},29538:(e,t,n)=>{function r(e,t){e&&Object.assign(e.style,t)}n.d(t,{O:()=>l,Y:()=>r});let l={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"}},34385:(e,t,n)=>{n.d(t,{e:()=>v});var r=n(12115),l=n(39972),o=n(90416),i=n(33747),u=n(27222),c=n(80510),a=n(87711),s=n(34852),f=n(60855),d=n(64960),p=n(14043),g=n(85753),h=n(22597),m=n(95155);let v=r.memo(r.forwardRef(function(e,t){let{render:n,className:v,value:y=null,label:x,disabled:w=!1,nativeButton:b=!1,style:R,...T}=e,M=r.useRef(null),P=(0,c.q)({label:x,textRef:M,indexGuessBehavior:c.G.GuessFromOrder}),{store:E,getItemProps:A,setOpen:S,setValue:C,selectionRef:k,typingRef:I,valuesRef:V,multiple:L,selectedItemTextRef:O}=(0,u.ll)(),q=(0,i.P)(E,f.T.isActive,P.index),D=(0,i.P)(E,f.T.isSelected,P.index,y),j=(0,i.P)(E,f.T.isSelectedByFocus,P.index),F=(0,i.P)(E,f.T.isItemEqualToValue),H=P.index,B=-1!==H,U=r.useRef(null),z=(0,o.u)(H);(0,l.g)(()=>{if(!B)return;let e=V.current;return e[H]=y,()=>{delete e[H]}},[B,H,y,V]),(0,l.g)(()=>{if(!B)return;let e=E.state.value,t=e;L&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&(0,h.tl)(y,t,F)&&(E.set("selectedIndex",H),M.current&&(O.current=M.current))},[B,H,L,F,E,y,O]);let W=A({active:q,selected:D});W.id=void 0;let K=r.useRef(null),J=r.useRef("mouse"),N=r.useRef(!1),{getButtonProps:_,buttonRef:G}=(0,d.s)({disabled:w,focusableWhenDisabled:!0,native:b,composite:!0}),Y=(0,a.o)("div",e,{ref:[G,t,P.ref,U],state:{disabled:w,selected:D,highlighted:q},props:[W,{role:"option","aria-selected":D,tabIndex:q?0:-1,onTouchStart(){k.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){K.current=e.key,E.set("activeIndex",H)," "===e.key&&I.current&&e.preventDefault()},onClick(e){if((N.current=!1,"keydown"!==e.type||null!==K.current)&&!w&&("keydown"!==e.type||" "!==K.current||!I.current)&&("touch"===J.current||q)){K.current=null;var t=e.nativeEvent;let n=E.state.value;if(L){let e=Array.isArray(n)?n:[];C(D?(0,h.Ai)(e,y,F):[...e,y],(0,p.d)(g.Bo,t))}else C(y,(0,p.d)(g.Bo,t)),S(!1,(0,p.d)(g.Bo,t))}},onPointerEnter(e){J.current=e.pointerType},onPointerDown(e){J.current=e.pointerType,N.current=!0},onMouseUp(){var e;if(w)return;if(N.current){N.current=!1;return}let t=!k.current.allowSelectedMouseUp&&D,n=!k.current.allowUnselectedMouseUp&&!D;t||n||"touch"!==J.current&&!q||null==(e=U.current)||e.click()}},T,_]}),Z=r.useMemo(()=>({selected:D,indexRef:z,textRef:M,selectedByFocus:j,hasRegistered:B}),[D,z,M,j,B]);return(0,m.jsx)(s.z.Provider,{value:Z,children:Y})}))},34852:(e,t,n)=>{n.d(t,{G:()=>i,z:()=>o});var r=n(13309),l=n(12115);let o=l.createContext(void 0);function i(){let e=l.useContext(o);if(!e)throw Error((0,r.A)(57));return e}},45423:(e,t,n)=>{n.d(t,{B:()=>d});var r=n(12115),l=n(7546),o=n(33747),i=n(27222),u=n(53414),c=n(87711),a=n(61361),s=n(29538),f=n(60855);let d=r.forwardRef(function(e,t){let{className:n,render:r,style:d,...p}=e,{store:g,scrollHandlerRef:h}=(0,i.ll)(),{alignItemWithTriggerActive:m}=(0,u.H)(),v=(0,o.P)(g,f.T.hasScrollArrows),y=(0,o.P)(g,f.T.openMethod),x=(0,o.P)(g,f.T.multiple),w=(0,o.P)(g,f.T.id),b={id:"".concat(w,"-list"),role:"listbox","aria-multiselectable":x||void 0,onScroll(e){var t;null==(t=h.current)||t.call(h,e.currentTarget)},...m&&{style:s.O},className:v&&"touch"!==y?a.E.className:void 0},R=(0,l.K)(e=>{g.set("listElement",e)});return(0,c.o)("div",e,{ref:[t,R],props:[b,p]})})},51214:(e,t,n)=>{n.d(t,{Dp:()=>u,u:()=>f,Md:()=>s,yg:()=>c,T:()=>a});var r=n(12115);function l(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}var o=n(95155);function i(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function u(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(i(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}function c(e,t){if(t&&null!=e){var n;return null!=(n=t(e))?n:""}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 l(e)}function a(e,t){if(t&&null!=e){var n;return null!=(n=t(e))?n:""}return e&&"object"==typeof e&&"value"in e&&"label"in e?l(e.value):l(e)}function s(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)){var r;return null!=(r=t[e])?r:c(e,n)}if(Array.isArray(t)){let r=i(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:c(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 c(e,n)}function f(e,t,n){return e.reduce((e,l,i)=>(i>0&&e.push(", "),e.push((0,o.jsx)(r.Fragment,{children:s(l,t,n)},i)),e),[])}},53414:(e,t,n)=>{n.d(t,{H:()=>i,i:()=>o});var r=n(13309),l=n(12115);let o=l.createContext(void 0);function i(){let e=l.useContext(o);if(!e)throw Error((0,r.A)(59));return e}},53769:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(12115),l=n(33747),o=n(87711),i=n(27222),u=n(10130),c=n(60855);let a=r.forwardRef(function(e,t){let{className:n,render:r,style:a,...s}=e,{store:f}=(0,i.ll)(),d=(0,l.P)(f,c.T.open);return(0,o.o)("span",e,{state:{open:d},ref:t,props:[{"aria-hidden":!0,children:"▼"},s],stateAttributesMapping:u.qV})})},57419:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(13185).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},59569:(e,t,n)=>{n.d(t,{w:()=>i});var r=n(12115),l=n(38),o=n(95155);let i=r.forwardRef(function(e,t){return(0,o.jsx)(l.f,{...e,ref:t,direction:"up"})})},60855:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(6968),l=n(22597),o=n(51214);let i={id:(0,r.M)(e=>e.id),labelId:(0,r.M)(e=>e.labelId),modal:(0,r.M)(e=>e.modal),multiple:(0,r.M)(e=>e.multiple),items:(0,r.M)(e=>e.items),itemToStringLabel:(0,r.M)(e=>e.itemToStringLabel),itemToStringValue:(0,r.M)(e=>e.itemToStringValue),isItemEqualToValue:(0,r.M)(e=>e.isItemEqualToValue),value:(0,r.M)(e=>e.value),hasSelectedValue:(0,r.M)(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return null!=t&&(n&&Array.isArray(t)?t.length>0:""!==(0,o.T)(t,r))}),hasNullItemLabel:(0,r.M)((e,t)=>!!t&&(0,o.Dp)(e.items)),open:(0,r.M)(e=>e.open),mounted:(0,r.M)(e=>e.mounted),forceMount:(0,r.M)(e=>e.forceMount),transitionStatus:(0,r.M)(e=>e.transitionStatus),openMethod:(0,r.M)(e=>e.openMethod),activeIndex:(0,r.M)(e=>e.activeIndex),selectedIndex:(0,r.M)(e=>e.selectedIndex),isActive:(0,r.M)((e,t)=>e.activeIndex===t),isSelected:(0,r.M)((e,t,n)=>{let r=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(e=>(0,l.tl)(n,e,r)):e.selectedIndex===t&&null!==e.selectedIndex||(0,l.tl)(n,o,r)}),isSelectedByFocus:(0,r.M)((e,t)=>e.selectedIndex===t),popupProps:(0,r.M)(e=>e.popupProps),triggerProps:(0,r.M)(e=>e.triggerProps),triggerElement:(0,r.M)(e=>e.triggerElement),positionerElement:(0,r.M)(e=>e.positionerElement),listElement:(0,r.M)(e=>e.listElement),scrollUpArrowVisible:(0,r.M)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,r.M)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,r.M)(e=>e.hasScrollArrows)}},61361:(e,t,n)=>{n.d(t,{E:()=>o});var r=n(95155);let l="base-ui-disable-scrollbar",o={className:l,getElement:e=>(0,r.jsx)("style",{nonce:e,href:l,precedence:"base-ui:low",children:`.${l}{scrollbar-width:none}.${l}::-webkit-scrollbar{display:none}`})}},65116:(e,t,n)=>{n.d(t,{Pv:()=>l,Qw:()=>i,XF:()=>o});var r=n(20017);let l=1;function o(e,t){return Math.max(0,e-t)}function i(e,t){if(t<=0)return 0;let n=(0,r.q)(e,0,t),o=t-n,i=n<=l,u=o<=l;return i&&u?n<=o?0:t:i?0:u?t:n}},72276:(e,t,n)=>{n.d(t,{h:()=>u});var r=n(12115),l=n(27222),o=n(34852),i=n(87711);let u=r.memo(r.forwardRef(function(e,t){let{indexRef:n,textRef:u,selectedByFocus:c,hasRegistered:a}=(0,o.G)(),{selectedItemTextRef:s}=(0,l.ll)(),{className:f,render:d,style:p,...g}=e,h=r.useCallback(e=>{if(!e||!a)return;let t=null===s.current||!s.current.isConnected;(c||t&&0===n.current)&&(s.current=e)},[s,n,c,a]);return(0,i.o)("div",e,{ref:[h,t,u],props:g})}))},75828:(e,t,n)=>{n.d(t,{l:()=>W});var r=n(12115),l=n(48542),o=n(39972),i=n(7546),u=n(33747),c=n(27222),a=n(3290),s=n(10208),f=n(24758),d=n(2066),p=n(90416),g=n(20861),h=n(47650),m="undefined"!=typeof document?r.useLayoutEffect:function(){};function v(e,t){let n,r,l;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(!v(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!v(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function y(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function x(e,t){let n=y(e);return Math.round(t*n)/n}function w(e){let t=r.useRef(e);return m(()=>{t.current=e}),t}var b=n(20798),R=n(8098),T=n(58154);let M={name:"hide",async fn(e){let{width:t,height:n,x:r,y:l}=e.rects.reference,o=await ((e,t)=>{let n=(0,g.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}})().fn(e);return{data:{referenceHidden:o.data?.referenceHidden||0===t&&0===n&&0===r&&0===l}}}},P={sideX:"left",sideY:"top"};function E(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function A(e,t,n){let{rects:r,placement:l}=e;return{side:E(t,(0,s.C0)(l),n),align:(0,s.Sg)(l)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function S(e){return null!=e&&"current"in e}var C=n(53414),k=n(44184),I=n(16275),V=n(29538),L=n(60855),O=n(14043),q=n(85753),D=n(22597),j=n(10130),F=n(87711),H=n(8147),B=n(42864),U=n(95155);let z={position:"fixed"},W=r.forwardRef(function(e,t){let{anchor:n,positionMethod:W="absolute",className:K,render:J,side:N="bottom",align:_="center",sideOffset:G=0,alignOffset:Y=0,collisionBoundary:Z="clipping-ancestors",collisionPadding:$,arrowPadding:X=5,sticky:Q=!1,disableAnchorTracking:ee,alignItemWithTrigger:et=!0,collisionAvoidance:en=I.uD,style:er,...el}=e,{store:eo,listRef:ei,labelsRef:eu,alignItemWithTriggerActiveRef:ec,selectedItemTextRef:ea,valuesRef:es,initialValueRef:ef,popupRef:ed,setValue:ep}=(0,c.ll)(),eg=(0,c.hG)(),eh=(0,u.P)(eo,L.T.open),em=(0,u.P)(eo,L.T.mounted),ev=(0,u.P)(eo,L.T.modal),ey=(0,u.P)(eo,L.T.value),ex=(0,u.P)(eo,L.T.openMethod),ew=(0,u.P)(eo,L.T.positionerElement),eb=(0,u.P)(eo,L.T.triggerElement),eR=(0,u.P)(eo,L.T.isItemEqualToValue),eT=(0,u.P)(eo,L.T.transitionStatus),eM=r.useRef(null),eP=r.useRef(null),[eE,eA]=r.useState(et),eS=em&&eE&&"touch"!==ex;em||eE===et||eA(et),(0,o.g)(()=>{!em&&(L.T.scrollUpArrowVisible(eo.state)&&eo.set("scrollUpArrowVisible",!1),L.T.scrollDownArrowVisible(eo.state)&&eo.set("scrollDownArrowVisible",!1))},[eo,em]),r.useImperativeHandle(ec,()=>eS),function(e,t,n,l){let[i,u]=r.useState(!1);(0,o.g)(()=>{if(!e||!t||null==n)return void u(!1);let r=(0,f.R)(n).documentElement.clientWidth,l=n.offsetWidth;u(r>0&&l>0&&l>=r-20)},[e,t,n]),(0,B.K)(e&&(!t||i),l)}((eS||ev)&&eh,"touch"===ex,ew,eb);let eC=function(e){var t,n;let l,u,{anchor:c,positionMethod:a="absolute",side:C="bottom",sideOffset:k=0,align:I="center",alignOffset:V=0,collisionBoundary:L,collisionPadding:O=5,sticky:q=!1,arrowPadding:D=5,disableAnchorTracking:j=!1,keepMounted:F=!1,floatingRootContext:H,mounted:B,collisionAvoidance:U,shiftCrossAxis:z=!1,nodeId:W,adaptiveOrigin:K,lazyFlip:J=!1,externalTree:N}=e,[_,G]=r.useState(null);B||null===_||G(null);let Y=U.side||"flip",Z=U.align||"flip",$=U.fallbackAxisSide||"end",X="function"==typeof c?c:void 0,Q=(0,i.K)(X),ee=X?Q:c,et=(0,p.u)(c),en=(0,p.u)(B),er="rtl"===(0,T.j)(),el=_||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":er?"left":"right","inline-start":er?"right":"left"})[C],eo="center"===I?el:"".concat(el,"-").concat(I),ei=O,eu=+("bottom"===C),ec=+("top"===C),ea=+("right"===C),es=+("left"===C);"number"==typeof ei?ei={top:ei+eu,right:ei+es,bottom:ei+ec,left:ei+ea}:ei&&(ei={top:(ei.top||0)+eu,right:(ei.right||0)+es,bottom:(ei.bottom||0)+ec,left:(ei.left||0)+ea});let ef={boundary:"clipping-ancestors"===L?"clippingAncestors":L,padding:ei},ed=r.useRef(null),ep=(0,p.u)(k),eg=(0,p.u)(V),eh=[((e,t)=>{let n=(0,g.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{let t=A(e,C,er),n="function"==typeof ep.current?ep.current(t):ep.current,r="function"==typeof eg.current?eg.current(t):eg.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},["function"!=typeof k?k:0,"function"!=typeof V?V:0,er,C])],em="none"===Z&&"shift"!==Y,ev=!em&&(q||z||"shift"===Y),ey="none"===Y?null:((e,t)=>{let n=(0,g.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ef,padding:{top:ei.top+1,right:ei.right+1,bottom:ei.bottom+1,left:ei.left+1},mainAxis:!z&&"flip"===Y,crossAxis:"flip"===Z&&"alignment",fallbackAxisSideDirection:$}),ex=em?null:((e,t)=>{let n=(0,g.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{var t,n;let r=(0,f.R)(e.elements.floating).documentElement;return{...ef,rootBoundary:z?{x:0,y:0,width:r.clientWidth,height:r.clientHeight}:void 0,mainAxis:"none"!==Z,crossAxis:ev,limiter:q||z?void 0:(t=e=>{if(!ed.current)return{};let{width:t,height:n}=ed.current.getBoundingClientRect(),r=(0,s.TV)((0,s.C0)(e.placement)),l="y"===r?ei.left+ei.right:ei.top+ei.bottom;return{offset:("y"===r?t:n)/2+l/2}},{fn:(0,g.ER)(t).fn,options:[t,n]})}},[ef,q,z,ei,Z]);"shift"===Y||"shift"===Z||"center"===I?eh.push(ex,ey):eh.push(ey,ex),eh.push(((e,t)=>{let n=(0,g.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ef,apply(e){let{elements:{floating:t},availableWidth:n,availableHeight:r,rects:l}=e;if(!en.current)return;let o=t.style;o.setProperty("--available-width","".concat(n,"px")),o.setProperty("--available-height","".concat(r,"px"));let i=(0,d.zk)(t).devicePixelRatio||1,{x:u,y:c,width:a,height:s}=l.reference,f=(Math.round((u+a)*i)-Math.round(u*i))/i,p=(Math.round((c+s)*i)-Math.round(c*i))/i;o.setProperty("--anchor-width","".concat(f,"px")),o.setProperty("--anchor-height","".concat(p,"px"))}}),(l=()=>({element:ed.current||(0,f.R)(ed.current).createElement("div"),padding:D,offsetParent:"floating"}),u=[D],{name:"arrow",options:l,async fn(e){let{x:t,y:n,placement:r,rects:o,platform:i,elements:u,middlewareData:c}=e,{element:a,padding:f=0,offsetParent:d="real"}=(0,s._3)(l,e)||{};if(null==a)return{};let p=(0,s.nI)(f),g={x:t,y:n},h=(0,s.Dz)(r),m=(0,s.sq)(h),v=await i.getDimensions(a),y="y"===h,x=y?"clientHeight":"clientWidth",w=o.reference[m]+o.reference[h]-g[h]-o.floating[m],b=g[h]-o.reference[h],R="real"===d?await i.getOffsetParent?.(a):u.floating,T=u.floating[x]||o.floating[m];T&&await i.isElement?.(R)||(T=u.floating[x]||o.floating[m]);let M=T/2-v[m]/2-1,P=Math.min(p[y?"top":"left"],M),E=Math.min(p[y?"bottom":"right"],M),A=T-v[m]-E,S=T/2-v[m]/2+(w/2-b/2),C=(0,s.qE)(P,S,A),k=!c.arrow&&null!=(0,s.Sg)(r)&&S!==C&&o.reference[m]/2-(S<P?P:E)-v[m]/2<0,I=k?S<P?S-P:S-A:0;return{[h]:g[h]+I,data:{[h]:C,centerOffset:S-C-I,...k&&{alignmentOffset:I}},reset:k}},options:[l,u]}),{name:"transformOrigin",fn(e){var t,n,r;let{elements:l,middlewareData:o,placement:i,rects:u,y:c}=e,a=(0,s.C0)(i),f=(0,s.TV)(a),d=ed.current,p=(null==(t=o.arrow)?void 0:t.x)||0,g=(null==(n=o.arrow)?void 0:n.y)||0,h=(null==d?void 0:d.clientWidth)||0,m=(null==d?void 0:d.clientHeight)||0,v=p+h/2,y=g+m/2,x=Math.abs((null==(r=o.shift)?void 0:r.y)||0),w=u.reference.height/2,b="function"==typeof k?k(A(e,C,er)):k,R=x>b,T={top:"".concat(v,"px calc(100% + ").concat(b,"px)"),bottom:"".concat(v,"px ").concat(-b,"px"),left:"calc(100% + ".concat(b,"px) ").concat(y,"px"),right:"".concat(-b,"px ").concat(y,"px")}[a],M="".concat(v,"px ").concat(u.reference.y+w-c,"px");return l.floating.style.setProperty("--transform-origin",ev&&"y"===f&&R?M:T),{}}},M,K),(0,o.g)(()=>{!B&&H&&H.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[B,H]);let ew=r.useMemo(()=>({elementResize:!j&&"undefined"!=typeof ResizeObserver,layoutShift:!j&&"undefined"!=typeof IntersectionObserver}),[j]),{refs:eb,elements:eR,x:eT,y:eM,middlewareData:eP,update:eE,placement:eA,context:eS,isPositioned:eC,floatingStyles:ek}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nodeId:t,externalTree:n}=e,l=(0,R.P)(e),i=e.rootContext||l,u={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[c,a]=r.useState(null),s=r.useRef(null),f=(0,b.cq)(n);(0,o.g)(()=>{u.domReference&&(s.current=u.domReference)},[u.domReference]);let p=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:o,elements:{reference:i,floating:u}={},transform:c=!0,whileElementsMounted:a,open:s}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,b]=r.useState(l);v(p,l)||b(l);let[R,T]=r.useState(null),[M,P]=r.useState(null),E=r.useCallback(e=>{e!==k.current&&(k.current=e,T(e))},[]),A=r.useCallback(e=>{e!==I.current&&(I.current=e,P(e))},[]),S=i||R,C=u||M,k=r.useRef(null),I=r.useRef(null),V=r.useRef(f),L=null!=a,O=w(a),q=w(o),D=w(s),j=r.useCallback(()=>{if(!k.current||!I.current)return;let e={placement:t,strategy:n,middleware:p};q.current&&(e.platform=q.current),(0,g.rD)(k.current,I.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};F.current&&!v(V.current,t)&&(V.current=t,h.flushSync(()=>{d(t)}))})},[p,t,n,q,D]);m(()=>{!1===s&&V.current.isPositioned&&(V.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let F=r.useRef(!1);m(()=>(F.current=!0,()=>{F.current=!1}),[]),m(()=>{if(S&&(k.current=S),C&&(I.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,L]);let H=r.useMemo(()=>({reference:k,floating:I,setReference:E,setFloating:A}),[E,A]),B=r.useMemo(()=>({reference:S,floating:C}),[S,C]),U=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=x(B.floating,f.x),r=x(B.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...y(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,B.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:H,elements:B,floatingStyles:U}),[f,j,H,B,U])}({...e,elements:{...u,...c&&{reference:c}}}),T=r.useCallback(e=>{let t=(0,d.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),p.refs.setReference(t)},[p.refs]),[M,P]=r.useState(void 0),[E,A]=r.useState(null);i.useSyncedValue("referenceElement",null!=M?M:null);let S=(0,d.vq)(M)?M:null;i.useSyncedValue("domReferenceElement",void 0===M?u.domReference:S),i.useSyncedValue("floatingElement",E);let C=r.useCallback(e=>{((0,d.vq)(e)||null===e)&&(s.current=e,P(e)),((0,d.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,d.vq)(e))&&p.refs.setReference(e)},[p.refs,P]),k=r.useCallback(e=>{A(e),p.refs.setFloating(e)},[p.refs]),I=r.useMemo(()=>({...p.refs,setReference:C,setFloating:k,setPositionReference:T,domReference:s}),[p.refs,C,k,T]),V=r.useMemo(()=>({...p.elements,domReference:u.domReference}),[p.elements,u.domReference]),L=i.useState("open"),O=i.useState("floatingId"),q=r.useMemo(()=>({...p,dataRef:i.context.dataRef,open:L,onOpenChange:i.setOpen,events:i.context.events,floatingId:O,refs:I,elements:V,nodeId:t,rootStore:i}),[p,I,V,t,i,L,O]);return(0,o.g)(()=>{i.context.dataRef.current.floatingContext=q;let e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=q)}),r.useMemo(()=>({...p,context:q,refs:I,elements:V,rootStore:i}),[p,I,V,q,i])}({rootContext:H,open:F?B:void 0,placement:eo,middleware:eh,strategy:a,whileElementsMounted:F?void 0:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,g.ll)(...t,ew)},nodeId:W,externalTree:N}),{sideX:eI,sideY:eV}=eP.adaptiveOrigin||P,eL=eC?a:"fixed",eO=r.useMemo(()=>{let e=K?{position:eL,[eI]:eT,[eV]:eM}:{position:eL,...ek};return eC||(e.opacity=0),e},[K,eL,eI,eT,eV,eM,ek,eC]),eq=r.useRef(null);(0,o.g)(()=>{if(!B)return;let e=et.current,t="function"==typeof e?e():e,n=(S(t)?t.current:t)||null;n!==eq.current&&(eb.setPositionReference(n),eq.current=n)},[B,eb,ee,et]),r.useEffect(()=>{if(!B)return;let e=et.current;"function"!=typeof e&&S(e)&&e.current!==eq.current&&(eb.setPositionReference(e.current),eq.current=e.current)},[B,eb,ee,et]),r.useEffect(()=>{if(F&&B&&eR.domReference&&eR.floating)return(0,g.ll)(eR.domReference,eR.floating,eE,ew)},[F,B,eR,eE,ew]);let eD=(0,s.C0)(eA),ej=E(C,eD,er),eF=(0,s.Sg)(eA)||"center",eH=!!(null==(t=eP.hide)?void 0:t.referenceHidden);(0,o.g)(()=>{J&&B&&eC&&G(eD)},[J,B,eC,eD]);let eB=r.useMemo(()=>{var e,t;return{position:"absolute",top:null==(e=eP.arrow)?void 0:e.y,left:null==(t=eP.arrow)?void 0:t.x}},[eP.arrow]),eU=(null==(n=eP.arrow)?void 0:n.centerOffset)!==0;return r.useMemo(()=>({positionerStyles:eO,arrowStyles:eB,arrowRef:ed,arrowUncentered:eU,side:ej,align:eF,physicalSide:eD,anchorHidden:eH,refs:eb,context:eS,isPositioned:eC,update:eE}),[eO,eB,ed,eU,ej,eF,eD,eH,eb,eS,eC,eE])}({anchor:n,floatingRootContext:eg,positionMethod:W,mounted:em,side:N,sideOffset:G,align:_,alignOffset:Y,arrowPadding:X,collisionBoundary:Z,collisionPadding:$,sticky:Q,disableAnchorTracking:null!=ee?ee:eS,collisionAvoidance:en,keepMounted:!0}),ek=eS?"none":eC.side,eI=eS?z:eC.positionerStyles,eV=function(e,t,n){let{styles:r,transitionStatus:l,props:o,refs:i,hidden:u,inert:c=!1}=n,a={...r};return c&&(a.pointerEvents="none"),(0,F.o)("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:u,style:a},(0,H.d)(l),o],stateAttributesMapping:j.GW})}(e,{open:eh,side:ek,align:eC.align,anchorHidden:eC.anchorHidden},{styles:eI,transitionStatus:eT,props:el,refs:[t,(0,i.K)(e=>{eo.set("positionerElement",e)})],hidden:!em,inert:!eh}),eL=r.useRef(0),eO=(0,i.K)(e=>{if(0===e.size&&0===eL.current||0===es.current.length)return;let t=eL.current;if(eL.current=e.size,e.size===t)return;let n=(0,O.d)(q.dv);if(0!==t&&!eo.state.multiple&&null!==ey&&-1===(0,D.Vz)(es.current,ey,eR)){let e=ef.current,t=null!=e&&-1!==(0,D.Vz)(es.current,e,eR)?e:null;ep(t,n),null===t&&(eo.set("selectedIndex",null),ea.current=null)}if(0!==t&&eo.state.multiple&&Array.isArray(ey)){let e=ey.filter(e=>-1!==(0,D.Vz)(es.current,e,eR));(e.length!==ey.length||e.some(e=>!(0,D.kJ)(ey,e,eR)))&&(ep(e,n),0===e.length&&(eo.set("selectedIndex",null),ea.current=null))}if(eh&&eS){eo.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};(0,V.Y)(ew,e),(0,V.Y)(ed.current,e)}}),eq=r.useMemo(()=>({...eC,side:ek,alignItemWithTriggerActive:eS,setControlledAlignItemWithTrigger:eA,scrollUpArrowRef:eM,scrollDownArrowRef:eP}),[eC,ek,eS,eA]);return(0,U.jsx)(a.u,{elementsRef:ei,labelsRef:eu,onMapChange:eO,children:(0,U.jsxs)(C.i.Provider,{value:eq,children:[em&&ev&&(0,U.jsx)(k.W,{inert:(0,l.Y)(!eh),cutout:eb}),eV]})})})},77261:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(12115),l=n(33747),o=n(87711),i=n(27222),u=n(51214),c=n(60855);let a={value:()=>null},s=r.forwardRef(function(e,t){let{className:n,render:r,children:s,placeholder:f,style:d,...p}=e,{store:g,valueRef:h}=(0,i.ll)(),m=(0,l.P)(g,c.T.value),v=(0,l.P)(g,c.T.items),y=(0,l.P)(g,c.T.itemToStringLabel),x=(0,l.P)(g,c.T.hasSelectedValue),w=(0,l.P)(g,c.T.hasNullItemLabel,!x&&null!=f&&null==s),b=null;return b="function"==typeof s?s(m):null!=s?s:x||null==f||w?Array.isArray(m)?(0,u.u)(m,v,y):(0,u.Md)(m,v,y):f,(0,o.o)("span",e,{state:{value:m,placeholder:!x},ref:[t,h],props:[{children:b},p],stateAttributesMapping:a})})},98593:(e,t,n)=>{n.d(t,{b:()=>E});var r=n(12115),l=n(24758),o=n(86545),i=n(7546),u=n(86764),c=n(90416),a=n(33747),s=n(27222),f=n(68419),d=n(92330),p=n(10130),g=n(42415),h=n(87711),m=n(60855),v=n(2066),y=n(47031),x=n(18162),w=n(21083),b=n(64960),R=n(14043),T=n(85753),M=n(65489);let P={...p.jL,...g.dc,value:()=>null},E=r.forwardRef(function(e,t){let{render:n,className:p,id:g,disabled:E=!1,nativeButton:A=!0,style:S,...C}=e,{setTouched:k,setFocused:I,validationMode:V,state:L,disabled:O}=(0,f.V)(),{labelId:q}=(0,d.H)(),{store:D,setOpen:j,selectionRef:F,validation:H,readOnly:B,required:U,alignItemWithTriggerActiveRef:z,disabled:W,keyboardActiveRef:K}=(0,s.ll)(),J=O||W||E,N=(0,a.P)(D,m.T.open),_=(0,a.P)(D,m.T.value),G=(0,a.P)(D,m.T.triggerProps),Y=(0,a.P)(D,m.T.positionerElement),Z=(0,a.P)(D,m.T.listElement),$=(0,a.P)(D,m.T.id),X=(0,a.P)(D,m.T.labelId),Q=(0,a.P)(D,m.T.hasSelectedValue),ee=!Q&&N,et=(0,a.P)(D,m.T.hasNullItemLabel,ee),en=null!=g?g:$;(0,M.l)({id:en});let er=(0,c.u)(Y),el=r.useRef(null),{getButtonProps:eo,buttonRef:ei}=(0,b.s)({disabled:J,native:A}),eu=(0,i.K)(e=>{D.set("triggerElement",e)}),ec=(0,u.a)(t,el,ei,eu),ea=(0,o.Z)(),es=(0,o.Z)(),ef=(0,o.Z)(),ed=(0,o.Z)();r.useEffect(()=>{if(N)return Q||et?ed.start(200,()=>{F.current.allowUnselectedMouseUp=!0,ef.start(200,()=>{F.current.allowSelectedMouseUp=!0})}):ef.start(400,()=>{F.current.allowUnselectedMouseUp=!0,F.current.allowSelectedMouseUp=!0}),()=>{ef.clear(),ed.clear()};F.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},es.clear()},[N,Q,et,F,es,ef,ed]);let ep=r.useMemo(()=>{var e,t;return null!=(t=null==Z?void 0:Z.id)?t:null==(e=(0,y.nd)(Y))?void 0:e.id},[Z,Y]),eg=(0,w.v6)(G,{id:en,role:"combobox","aria-expanded":N?"true":"false","aria-haspopup":"listbox","aria-controls":N?ep:void 0,"aria-labelledby":null!=q?q:X,"aria-readonly":B||void 0,"aria-required":U||void 0,tabIndex:J?-1:0,ref:ec,onFocus(e){I(!0),N&&z.current&&j(!1,(0,R.d)(T.dv,e.nativeEvent)),ea.start(0,()=>{D.set("forceMount",!0)})},onBlur(e){(0,x.gR)(Y,e.relatedTarget)||(k(!0),I(!1),"onBlur"===V&&H.commit(_))},onPointerMove(){K.current=!1},onKeyDown(){K.current=!0},onMouseDown(e){if(N)return;let t=(0,l.R)(e.currentTarget);function n(e){if(!el.current)return;let t=e.target;if((0,x.gR)(el.current,t)||(0,x.gR)(er.current,t)||t===el.current)return;let n=function(e){let t=e.getBoundingClientRect(),n=(0,v.zk)(e),r=n.getComputedStyle(e,"::before"),l=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===l.content)return t;let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0,u=parseFloat(l.width)||0,c=parseFloat(l.height)||0,a=Math.max(t.width,o,u),s=Math.max(t.height,i,c),f=a-t.width,d=s-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-d/2,bottom:t.bottom+d/2}}(el.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>=n.top-2&&e.clientY<=n.bottom+2||j(!1,(0,R.d)(T.LO,e))}es.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},H.getValidationProps,C,eo);eg.role="combobox";let eh={...L,open:N,disabled:J,value:_,readOnly:B,placeholder:!Q};return(0,h.o)("button",e,{ref:[t,el],state:eh,stateAttributesMapping:P,props:eg})})}}]); |