1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9413735,7772441,1683122,e=>{"use strict";var t=e.i(5271645);let n=t.createContext(void 0);e.s(["ComboboxChipsContext",0,n,"useComboboxChipsContext",0,function(){return t.useContext(n)}],9413735);var o=e.i(733332);let i=t.createContext(void 0);e.s(["ComboboxPositionerContext",0,i,"useComboboxPositionerContext",0,function(e){let n=t.useContext(i);if(void 0===n&&!e)throw Error((0,o.default)(21));return n}],7772441);var r=e.i(7828918),l=e.i(2502077),u=e.i(7540886),a=e.i(2675606),s=e.i(56434),c=e.i(3202672),d=e.i(7843476);let p=t.forwardRef(function(e,t){let n=(0,c.useComboboxRootContext)(),{buttonRef:o,getButtonProps:i}=(0,u.useButton)({native:!1}),p=(0,r.useMergedRefs)(t,o),f=i({onClick:function(e){n.context.setOpen(!1,(0,a.createChangeEventDetails)(s.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,d.jsx)("span",{ref:p,...f,"aria-label":"Dismiss",tabIndex:void 0,style:l.visuallyHiddenInput})});e.s(["ComboboxInternalDismissButton",0,p],1683122)},9717088,e=>{"use strict";e.i(6247167);var t=e.i(5271645),n=e.i(3202672),o=e.i(5552245),i=e.i(7540886),r=e.i(8469690),l=e.i(7223910),u=e.i(3474354),a=e.i(1137584),s=e.i(2675606),c=e.i(56434),d=e.i(6879938);let p={...u.transitionStatusMapping,...d.triggerOpenStateMapping},f=t.forwardRef(function(e,t){let{render:u,className:d,disabled:f=!1,nativeButton:m=!0,keepMounted:x=!1,style:v,...b}=e,{disabled:C}=(0,r.useFieldRootContext)(),g=(0,n.useComboboxRootContext)(),S=g.useState("selectionMode"),h=g.useState("disabled"),I=g.useState("readOnly"),E=g.useState("open"),R=g.useState("selectedValue"),y=g.useState("hasSelectionChips"),A=(0,n.useComboboxInputValueContext)(),O=!1;O="none"===S?""!==A:"single"===S?null!=R:y;let P=C||h||f,{buttonRef:M,getButtonProps:D}=(0,i.useButton)({native:m,disabled:P}),{mounted:w,transitionStatus:k,setMounted:V}=(0,l.useTransitionStatus)(O),T={disabled:P,visible:O,open:E,transitionStatus:k};(0,a.useOpenChangeComplete)({open:O,ref:g.context.clearRef,onComplete(){O||V(!1)}});let N=(0,o.useRenderElement)("button",e,{state:T,ref:[t,M,g.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(P||I)return;let t=g.context.keyboardActiveRef.current?c.REASONS.keyboard:c.REASONS.pointer;g.context.setInputValue("",(0,s.createChangeEventDetails)(c.REASONS.clearPress,e.nativeEvent)),"none"!==S?(g.context.setSelectedValue(Array.isArray(R)?[]:null,(0,s.createChangeEventDetails)(c.REASONS.clearPress,e.nativeEvent)),g.context.setIndices({activeIndex:null,selectedIndex:null,type:t})):g.context.setIndices({activeIndex:null,type:t}),g.context.inputRef.current?.focus()}},b,D],stateAttributesMapping:p});return x||w?N:null});e.s(["ComboboxClear",0,f])},7800111,4136760,63948,2244013,8953590,4351614,e=>{"use strict";var t=e.i(5271645),n=e.i(5552245),o=e.i(733332);let i=t.createContext(void 0);var r=e.i(3976459),l=e.i(3202672),u=e.i(7843476);let a=t.forwardRef(function(e,o){let{render:a,className:s,style:c,items:d,...p}=e,f=(0,l.useComboboxRootContext)().useState("grid"),[m,x]=t.useState(),v=t.useMemo(()=>({labelId:m,setLabelId:x,items:d}),[m,x,d]),b=(0,n.useRenderElement)("div",e,{ref:o,props:[{role:f?"rowgroup":"group","aria-labelledby":m},p]}),C=(0,u.jsx)(i.Provider,{value:v,children:b});return d?(0,u.jsx)(r.GroupCollectionProvider,{items:d,children:C}):C});e.s(["ComboboxGroup",0,a],7800111);var s=e.i(8146376),c=e.i(2788015);let d=t.forwardRef(function(e,r){let{render:l,className:u,style:a,id:d,...p}=e,{setLabelId:f}=function(){let e=t.useContext(i);if(void 0===e)throw Error((0,o.default)(18));return e}(),m=(0,c.useBaseUiId)(d);return(0,s.useIsoLayoutEffect)(()=>(f(m),()=>{f(e=>e===m?void 0:e)}),[m,f]),(0,n.useRenderElement)("div",e,{ref:r,props:[{id:m,"aria-hidden":!0},p]})});e.s(["ComboboxGroupLabel",0,d],4136760);var p=e.i(7174080),f=e.i(9673553);let m=t.createContext(void 0);e.s(["ComboboxItemContext",0,m,"useComboboxItemContext",0,function(){let e=t.useContext(m);if(!e)throw Error((0,o.default)(19));return e}],63948);var x=e.i(7540886);let v=t.createContext(!1);var b=e.i(8484325);
1function C(e){let{componentProps:o,forwardedRef:i,virtualized:r,indexFromFilter:a}=e,{render:c,className:d,style:C,value:g=null,index:S,disabled:h=!1,nativeButton:I=!1,...E}=o,R=t.useRef(null),y=(0,f.useCompositeListItem)({guess:!0,index:S,textRef:R}),A=(0,l.useComboboxRootContext)(),O=t.useContext(v),P=(0,l.useComboboxHasItemsContext)(),M=A.useState("selectionMode"),D=A.useState("disabled"),w=A.useState("readOnly"),k=A.useState("isItemEqualToValue"),V=D||h,T="none"!==M,N=S??a??y.index,L=-1!==N,F=A.useState("id"),j=A.useState("isActive",N),q=A.useState("isSelected",g),B=A.useState("itemProps"),H=t.useRef(null),_=null!=F&&L?`${F}-${N}`:void 0,G=q&&T;(0,s.useIsoLayoutEffect)(()=>{if(!(L&&(r||null!=S)))return;let e=A.context.listRef.current;return e[N]=H.current,()=>{delete e[N]}},[L,r,N,S,A]),(0,s.useIsoLayoutEffect)(()=>{if(!L||P)return;let e=A.context.valuesRef.current;return e[N]=g,()=>{delete e[N]}},[L,P,N,g,A]),(0,s.useIsoLayoutEffect)(()=>{if(!L||P)return;let e=A.state.selectedValue,t=A.state.selectedIndex;"multiple"===A.state.selectionMode&&Array.isArray(e)?t=(0,b.resolveSelectedIndex)(N,g,A.context.valuesRef.current,e,k,t):(0,b.compareItemEquality)(g,e,k)&&(t=N),A.set("selectedIndex",t)},[L,P,A,N,g,k]);let{getButtonProps:K,buttonRef:U}=(0,x.useButton)({disabled:V,focusableWhenDisabled:!0,native:I,composite:!0});function W(e){function t(){A.context.handleSelection(e,g)}A.state.submitOnItemClick?(p.flushSync(t),A.context.requestSubmit()):t()}let Y=(0,n.useRenderElement)("div",o,{ref:[U,i,y.ref,H],state:{disabled:V,selected:G,highlighted:j},props:[B,{id:_,role:O?"gridcell":"option","aria-selected":T?G:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(A.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){V||w||W(e.nativeEvent)},onMouseUp(e){let t=A.context.pointerDownItemRef.current===e.currentTarget;A.context.pointerDownItemRef.current=null,V||w||0!==e.button||t||!j||W(e.nativeEvent)}},E,K]}),z=t.useMemo(()=>({selected:G,textRef:R}),[G,R]);return(0,u.jsx)(m.Provider,{value:z,children:Y})}function g(e){let{componentProps:t,forwardedRef:n}=e,o=(0,l.useComboboxRootContext)().useState("isItemEqualToValue"),{flatFilteredValues:i}=(0,l.useComboboxDerivedItemsContext)(),r=t.value??null,a=(0,b.findItemIndex)(i,r,o);return(0,u.jsx)(C,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:a})}let S=t.memo(t.forwardRef(function(e,t){let n=(0,l.useComboboxRootContext)().useState("virtualized");return n&&null==e.index?(0,u.jsx)(g,{componentProps:e,forwardedRef:t}):(0,u.jsx)(C,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})}));e.s(["ComboboxItem",0,S],2244013);let h=t.forwardRef(function(e,t){let{render:o,className:i,style:r,...l}=e,a=(0,n.useRenderElement)("div",e,{ref:t,props:[{role:"row"},l]});return(0,u.jsx)(v.Provider,{value:!0,children:a})});e.s(["ComboboxRow",0,h],8953590);var I=e.i(2331766);let E=t.forwardRef(function(e,t){let{render:o,className:i,style:r,children:u,...a}=e,{filteredItems:s}=(0,l.useComboboxDerivedItemsContext)(),c=(0,l.useComboboxRootContext)(),d=(0,I.useInitialLiveRegionTextMutation)(),p=0===s.length?u:null;return(0,n.useRenderElement)("div",e,{ref:[t,c.context.emptyRef,d],props:[{children:p,role:"status","aria-live":"polite","aria-atomic":!0},a]})});e.s(["ComboboxEmpty",0,E],4351614)},5554463,e=>{"use strict";e.i(6247167);var t=e.i(5271645),n=e.i(5552245);let o=t.forwardRef(function(e,t){let{render:o,className:i,style:r,...l}=e;return(0,n.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,children:"â¼"},l]})});e.s(["ComboboxIcon",0,o])},4669534,7722994,4793798,e=>{"use strict";var t=e.i(5271645),n=e.i(8667865),o=e.i(2328744),i=e.i(2788015),r=e.i(5552245),l=e.i(3202672),u=e.i(6002672),a=e.i(8469690),s=e.i(8875812),c=e.i(5825322),d=e.i(9413735),p=e.i(3157940),f=e.i(7772441),m=e.i(2675606),x=e.i(56434),v=e.i(3872855),b=e.i(1683122),C=e.i(697464),g=e.i(7843476);let S=t.forwardRef(function(e,S){let{render:h,className:I,disabled:E=!1,id:R,style:y,...A}=e,{state:O,disabled:P,setTouched:M,setFocused:D,validationMode:w,validation:k}=(0,a.useFieldRootContext)(),{labelId:V}=(0,c.useLabelableContext)(),T=(0,d.useComboboxChipsContext)(),N=!!(0,f.useComboboxPositionerContext)(!0),L=(0,l.useComboboxRootContext)(),F=(0,l.useComboboxInputValueContext)(),j=(0,v.useDirection)(),q=L.useState("required"),B=L.useState("disabled"),H=L.useState("readOnly"),_=L.useState("name"),G=L.useState("form"),K=L.useState("selectionMode"),U=L.useState("autoHighlight"),W=L.useState("inputProps"),Y=L.useState("triggerProps"),z=L.useState("open"),$=L.useState("mounted"),J=L.useState("selectedValue"),Q=L.useState("id"),
1X=L.useState("inline"),Z=L.useState("modal"),ee=!!U,et=(0,C.usePopupSide)(L),en=P||B||E,eo=(0,C.useListEmpty)(),ei=N||X,er=(0,i.useBaseUiId)(R??(ei?void 0:Q)),el=N?s.DEFAULT_FIELD_STATE_ATTRIBUTES:O,[eu,ea]=t.useState(null),es=t.useRef(!1),ec=t.useRef(null),ed=t.useRef(!1),ep="none"===K&&!N,ef=(0,n.useStableCallback)(e=>{let t=N||L.state.inline;t&&!L.state.hasInputValue&&L.context.setInputValue("",(0,m.createChangeEventDetails)(x.REASONS.none)),L.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ep})}),em=N?A:k.getValidationProps(en,A);function ex(){L.context.setIndices({activeIndex:null,selectedIndex:null,type:L.context.keyboardActiveRef.current?x.REASONS.keyboard:x.REASONS.pointer})}function ev(){L.context.keyboardActiveRef.current=!1}let eb={...el,open:z,disabled:en,readOnly:H,popupSide:et,listEmpty:eo},eC=(0,r.useRenderElement)("input",e,{state:eb,ref:[S,L.context.inputRef,ef],props:[W,Y,{value:eu??F,"aria-readonly":H||void 0,"aria-required":q||void 0,"aria-labelledby":V,disabled:en,readOnly:H,required:"none"===K?q:void 0,form:G,...ep&&_&&{name:_},id:er,onFocus(){if(D(!0),!X||!ed.current)return;ed.current=!1;let e=ec.current;null!=e&&Object.hasOwn(L.context.valuesRef.current,e)&&L.context.setIndices({activeIndex:e})},onBlur(){M(!0),D(!1);let e=L.state.activeIndex;if(X&&null!==e&&"always"!==U&&(ec.current=e,ed.current=!0,L.context.setIndices({activeIndex:null})),"onBlur"===w){let e="none"===K?F:J;k.commit(e)}},onCompositionStart(e){o.platform.os.android||(es.current=!0,ea(e.currentTarget.value))},onCompositionEnd(e){es.current=!1;let t=e.currentTarget.value;ea(null),L.context.setInputValue(t,(0,m.createChangeEventDetails)(x.REASONS.inputChange,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,o=es.current||!(!n||"insertReplacementText"===n);function i(e){!H&&!en&&e&&o&&(L.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.inputChange,t)),ee||ex())}if(es.current){let n=e.currentTarget.value;ea(n),""!==n||L.state.openOnInputClick||L.state.inputInsidePopup||L.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.inputClear,t));let o=n.trim(),r=ee&&""!==o;i(o),z&&null!==L.state.activeIndex&&!r&&ex();return}let r=(0,m.createChangeEventDetails)(x.REASONS.inputChange,t);if(L.context.setInputValue(e.currentTarget.value,r),r.isCanceled)return;let l=""===e.currentTarget.value,u=(0,m.createChangeEventDetails)(x.REASONS.inputClear,t);l&&!L.state.inputInsidePopup&&("single"===K&&L.context.setSelectedValue(null,u),L.state.openOnInputClick||L.context.setOpen(!1,u)),i(e.currentTarget.value.trim()),z&&null!==L.state.activeIndex&&!ee&&ex()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(L.context.keyboardActiveRef.current=!0,en||H){H&&"Enter"===e.key&&z&&null!==L.state.activeIndex&&(0,p.stopEvent)(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,i="rtl"===j;if("Home"===e.key){(0,p.stopEvent)(e);let n=o.platform.engine.gecko&&i?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,p.stopEvent)(e);let r=o.platform.engine.gecko&&i?0:t.value.length;t.setSelectionRange(r,r),t.scrollLeft=i?-n:n;return}if(!$&&"Escape"===e.key){let t="multiple"===K&&Array.isArray(J)?0===J.length:null===J,n=(0,m.createChangeEventDetails)(x.REASONS.escapeKey,e.nativeEvent);L.context.setInputValue("",n),L.context.setSelectedValue("multiple"===K?[]:null,n),t||L.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(T&&"Backspace"===e.key&&""===t.value&&void 0===T.highlightedChipIndex&&Array.isArray(J)&&J.length>0){let t=T.chipsRef.current.length,n=t>0?t-1:J.length-1,o=J.filter((e,t)=>t!==n);ex(),L.context.setSelectedValue(o,(0,m.createChangeEventDetails)(x.REASONS.none,e.nativeEvent));return}let r=T?.highlightedChipIndex!==void 0,l=function(e){let t;if(!T)return;let{highlightedChipIndex:n}=T,o=T.chipsRef.current.length,[i,r]=(0,C.getChipNavigationKeys)(j);return void 0!==n?e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===r?(e.preventDefault(),t=n<o-1?n+1:void 0):("Backspace"===e.key||"Delete"===e.key)&&(e.preventDefault(),t=(0,C.getIndexAfterChipRemoval)(n,J.length),ex()):e.key===i&&(e.currentTarget.selectionStart??0)===0&&J.length>0&&(e.preventDefault(),t=o>0?o-1:void 0),t}(e);if(T?.setHighlightedChipIndex(l),void 0!==l?T?.chipsRef.current[l]?.focus():r&&L.context.
1inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&z){let t=L.state.activeIndex,n=e.nativeEvent;if(null===t){if(X)return;L.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.none,n));return}(0,p.stopEvent)(e),(0,C.clickHighlightedItem)(L,t,n)}},onPointerMove:ev,onPointerDown:ev},em],stateAttributesMapping:u.triggerStateAttributesMapping}),eg=N?(0,g.jsx)(a.FieldRootContext.Provider,{value:a.DEFAULT_FIELD_ROOT_CONTEXT,children:eC}):eC;return(0,g.jsxs)(t.Fragment,{children:[z&&(!ei||Z)&&(0,g.jsx)(b.ComboboxInternalDismissButton,{ref:L.context.startDismissRef}),eg]})});e.s(["ComboboxInput",0,S],4669534);var h=e.i(229315),I=e.i(9584446),E=e.i(7596296);function R(e,t,n,o){if(e.baseUIHandlerPrevented)return;let i=(0,I.getTarget)(e.nativeEvent),r=(0,h.isElement)(i)?i:null;r!==e.currentTarget&&(o?.(r)||(0,E.isInteractiveElement)(r))||(e.preventDefault(),!n&&(t.context.inputRef.current?.focus(),t.state.openOnInputClick&&t.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.inputPress,e.nativeEvent))))}e.s(["handleInputPress",0,R],7722994);let y=t.forwardRef(function(e,t){let{render:o,className:i,style:s,...c}=e,{state:d}=(0,a.useFieldRootContext)(),p=(0,l.useComboboxRootContext)(),f=p.useState("open"),m=p.useState("disabled"),x=p.useState("readOnly"),v=p.useState("hasSelectedValue"),b=p.useState("selectionMode"),g=(0,C.usePopupSide)(p),S=(0,C.useListEmpty)(),h={...d,open:f,disabled:m,readOnly:x,popupSide:g,listEmpty:S,placeholder:"none"!==b&&!v},E=(0,n.useStableCallback)(e=>{p.set("inputGroupElement",e)});return(0,r.useRenderElement)("div",e,{ref:[t,E],props:[{role:"group",onMouseDown(e){R(e,p,m,e=>(0,I.contains)(p.context.chipsContainerRef.current,e))}},c],state:h,stateAttributesMapping:u.triggerStateAttributesMapping})});e.s(["ComboboxInputGroup",0,y],4793798)},4005627,3976459,5487445,2331766,5224889,2089102,2618118,6698108,6860375,4437642,e=>{"use strict";var t=e.i(5271645),n=e.i(8667865),o=e.i(5552245),i=e.i(3202672),r=e.i(7772441),l=e.i(7843476);let u=t.createContext(null);function a(){return t.useContext(u)}function s(e){let{children:n}=e,{filteredItems:o}=(0,i.useComboboxDerivedItemsContext)(),r=a(),u=r?r.items:o;return(0,l.jsx)(t.Fragment,{children:u.map(n)})}e.s(["GroupCollectionProvider",0,function(e){let{children:n,items:o}=e,i=t.useMemo(()=>({items:o}),[o]);return(0,l.jsx)(u.Provider,{value:i,children:n})},"useGroupCollectionContext",0,a],3976459),e.s(["ComboboxCollection",0,s],5487445);var c=e.i(6053687),d=e.i(3157940),p=e.i(697464);let f=t.forwardRef(function(e,u){var a;let{render:f,className:m,style:x,children:v,...b}=e,C=(0,i.useComboboxRootContext)(),g=(0,i.useComboboxFloatingContext)(),S=!!(0,r.useComboboxPositionerContext)(!0),{filteredItems:h,hasItems:I}=(0,i.useComboboxDerivedItemsContext)(),E=C.useState("selectionMode"),R=C.useState("grid"),y=C.useState("readOnly"),A=C.useState("listProps"),O=C.useState("virtualized"),P=C.useState("forceMounted"),M=0===h.length,D=(0,n.useStableCallback)(e=>{C.set("positionerElement",e)}),w=(0,n.useStableCallback)(e=>{C.set("listElement",e)}),k=t.useMemo(()=>"function"==typeof v?a||(a=(0,l.jsx)(s,{children:v})):v,[v]),V=g.useState("floatingId"),T=(0,o.useRenderElement)("div",e,{state:{empty:M},ref:[u,w,S?null:D],props:[A,{children:k,tabIndex:-1,id:V,role:R?"grid":"listbox","aria-multiselectable":"multiple"===E?"true":void 0,"aria-readonly":!R&&!!y||void 0,onKeyDown(e){if(!C.state.disabled&&!C.state.readOnly&&"Enter"===e.key){let t=C.state.activeIndex;null!=t&&((0,d.stopEvent)(e),(0,p.clickHighlightedItem)(C,t,e.nativeEvent))}},onKeyDownCapture(){C.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){C.context.keyboardActiveRef.current=!1}},b]});if(O)return T;let N=I&&!P?void 0:C.context.labelsRef;
1return(0,l.jsx)(c.CompositeList,{elementsRef:C.context.listRef,labelsRef:N,children:T})});e.s(["ComboboxList",0,f],4005627);var m=e.i(2328744),x=e.i(5439957);function v(){let e=(0,x.useTimeout)(),n=t.useRef(null);return t.useEffect(()=>{if(m.platform.os.ios)return;let t=n.current;if(null==t)return;let o=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;""!==e.nodeValue&&(n=e)}return n}(t);if(null==o)return;let i=o.data,r=`${i}\u2060`;return o.nodeValue=r,e.start(200,()=>{o.nodeValue===r&&(o.nodeValue=i)}),()=>{e.clear(),o.nodeValue===r&&(o.nodeValue=i)}},[n,e]),n}e.s(["useInitialLiveRegionTextMutation",0,v],2331766);let b=t.forwardRef(function(e,t){let{render:n,className:i,style:r,children:l,...u}=e,a=v();return(0,o.useRenderElement)("div",e,{ref:[t,a],props:[{children:l,role:"status","aria-live":"polite","aria-atomic":!0},u]})});e.s(["ComboboxStatus",0,b],5224889);var C=e.i(8726674),g=e.i(733332);let S=t.createContext(void 0),h=t.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,r=(0,i.useComboboxRootContext)(),u=r.useState("mounted"),a=r.useState("forceMounted");return u||n||a?(0,l.jsx)(S.Provider,{value:n,children:(0,l.jsx)(C.FloatingPortal,{ref:t,...o})}):null});e.s(["ComboboxPortal",0,h],2089102);var I=e.i(6879938),E=e.i(3474354);let R={...I.popupStateMapping,...E.transitionStatusMapping},y=t.forwardRef(function(e,t){let{render:n,className:r,style:l,...u}=e,a=(0,i.useComboboxRootContext)(),s=a.useState("open"),c=a.useState("mounted"),d=a.useState("transitionStatus");return(0,o.useRenderElement)("div",e,{state:{open:s,transitionStatus:d},ref:t,stateAttributesMapping:R,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},u]})});e.s(["ComboboxBackdrop",0,y],2618118);var A=e.i(8146376),O=e.i(9144394),P=e.i(7923706),M=e.i(3638396),D=e.i(4000426),w=e.i(4789579),k=e.i(4033383);let V=t.forwardRef(function(e,o){let{render:u,className:a,anchor:s,positionMethod:c,side:d,align:f,sideOffset:m,alignOffset:x,collisionBoundary:v="clipping-ancestors",collisionPadding:b,arrowPadding:C,sticky:h,disableAnchorTracking:I=!1,collisionAvoidance:E=M.DROPDOWN_COLLISION_AVOIDANCE,style:R,...y}=e,V=(0,i.useComboboxRootContext)(),T=(0,i.useComboboxFloatingContext)(),N=function(){let e=t.useContext(S);if(void 0===e)throw Error((0,g.default)(20));return e}(),L=V.useState("modal"),F=V.useState("open"),j=V.useState("mounted"),q=V.useState("openMethod"),B=V.useState("positionerElement"),H=V.useState("triggerElement"),_=V.useState("inputElement"),G=V.useState("inputGroupElement"),K=V.useState("inputInsidePopup"),U=V.useState("transitionStatus"),W=(0,p.useListEmpty)(),Y=(0,P.useAnchorPositioning)({anchor:s??(K?H:G??_),floatingRootContext:T,positionMethod:c,mounted:j,side:d,sideOffset:m,align:f,alignOffset:x,arrowPadding:C,collisionBoundary:v,collisionPadding:b,sticky:h,disableAnchorTracking:I,keepMounted:N,collisionAvoidance:E,lazyFlip:!0});(0,k.useAnchoredPopupScrollLock)(F&&L,"touch"===q,B,H);let z={open:F,side:Y.side,align:Y.align,anchorHidden:Y.anchorHidden,empty:W};(0,A.useIsoLayoutEffect)(()=>{V.set("popupSide",Y.side)},[V,Y.side]);let $=(0,n.useStableCallback)(e=>{V.set("positionerElement",e)}),J=(0,w.usePositioner)(e,z,{styles:Y.positionerStyles,transitionStatus:U,props:y,refs:[o,$],hidden:!j,inert:!F});return(0,l.jsxs)(r.ComboboxPositionerContext.Provider,{value:Y,children:[j&&L&&(0,l.jsx)(D.InternalBackdrop,{inert:(0,O.inertValue)(!F),cutout:G??_??H}),J]})});e.s(["ComboboxPositioner",0,V],6698108);var T=e.i(8061487),N=e.i(1137584),L=e.i(9584446),F=e.i(1253984),j=e.i(1683122),q=e.i(2036523);let B={...I.popupStateMapping,...E.transitionStatusMapping},H=t.forwardRef(function(e,n){let{render:u,className:a,style:s,initialFocus:c,finalFocus:d,...f}=e,m=(0,i.useComboboxRootContext)(),x=(0,r.useComboboxPositionerContext)(),v=(0,i.useComboboxFloatingContext)(),b=m.useState("mounted"),C=m.useState("open"),g=m.useState("openMethod"),S=m.useState("popupProps"),h=m.useState("transitionStatus"),I=m.useState("inputInsidePopup"),E=m.useState("inputElement"),R=m.useState("modal"),y=m.useState("id"),O=(0,p.useListEmpty)(),P=f.id??(I?(0,q.getComboboxPopupId)(y):void 0);(0,A.useIsoLayoutEffect)(()=>
1(m.set("popupId",m.context.popupRef.current?.id||P),()=>{m.set("popupId",void 0)}),[m,P]),(0,N.useOpenChangeComplete)({open:C,ref:m.context.popupRef,onComplete(){C&&m.context.onOpenChangeComplete(!0)}});let M={open:C,side:x.side,align:x.align,anchorHidden:x.anchorHidden,transitionStatus:h,empty:O},D=(0,o.useRenderElement)("div",e,{state:M,ref:[n,m.context.popupRef],props:[S,{id:P,role:I?"dialog":"presentation",onFocus(e){let t=(0,L.getTarget)(e.nativeEvent);"touch"!==g&&((0,L.contains)(m.state.listElement,t)||t===e.currentTarget)&&m.context.inputRef.current?.focus()}},(0,F.getDisabledMountTransitionStyles)(h),f],stateAttributesMapping:B}),w=!!I&&(e=>"touch"===e?m.context.popupRef.current:E),k=!I||R;return(0,l.jsx)(T.FloatingFocusManager,{context:v,disabled:!b,modal:k,openInteractionType:g,initialFocus:void 0===c?w:c,returnFocus:null!=d?d:!!I&&void 0,getInsideElements:()=>[m.context.startDismissRef.current,m.context.endDismissRef.current],children:(0,l.jsxs)(t.Fragment,{children:[D,k&&(0,l.jsx)(j.ComboboxInternalDismissButton,{ref:m.context.endDismissRef})]})})});e.s(["ComboboxPopup",0,H],6860375);let _=t.forwardRef(function(e,t){let{render:n,className:l,style:u,...a}=e,s=(0,i.useComboboxRootContext)(),{arrowRef:c,side:d,align:p,arrowUncentered:f,arrowStyles:m}=(0,r.useComboboxPositionerContext)(),x=s.useState("open");return(0,o.useRenderElement)("div",e,{ref:[c,t],stateAttributesMapping:I.popupStateMapping,state:{open:x,side:d,align:p,uncentered:f},props:{style:m,"aria-hidden":!0,...a}})});e.s(["ComboboxArrow",0,_],4437642)},4942593,3202672,2036523,4156970,1491786,6002672,e=>{"use strict";var t=e.i(733332),n=e.i(5271645),o=e.i(8951437),i=e.i(8146376),r=e.i(4713203),l=e.i(8667865),u=e.i(7828918),a=e.i(2446265),s=e.i(2502077),c=e.i(6388940),d=e.i(7301252),p=e.i(5956789),f=e.i(229315),m=e.i(1017989),x=e.i(9265858),v=e.i(260891),b=e.i(385689),C=e.i(1621082);function g(e,t,n,o,i,r,l,u,a,s=2){let c=(0,C.getGridNavigatedIndex)(n.current,{event:e,orientation:o,loopFocus:i,rtl:r,cols:s,disabledIndices:l,minIndex:u,maxIndex:a,prevIndex:t>a?u:t,stopEvent:!0});return(0,C.isIndexOutOfListBounds)(n.current,c)?void 0:c}var S=e.i(9584446),h=e.i(2675606),I=e.i(56434);let E=n.createContext(void 0),R=n.createContext(void 0),y=n.createContext(void 0),A=n.createContext(!1),O=n.createContext("");e.s(["ComboboxDerivedItemsContext",0,y,"ComboboxFloatingContext",0,R,"ComboboxHasItemsContext",0,A,"ComboboxInputValueContext",0,O,"ComboboxRootContext",0,E,"useComboboxDerivedItemsContext",0,function(){let e=n.useContext(y);if(!e)throw Error((0,t.default)(24));return e},"useComboboxFloatingContext",0,function(){let e=n.useContext(R);if(!e)throw Error((0,t.default)(23));return e},"useComboboxHasItemsContext",0,function(){return n.useContext(A)},"useComboboxInputValueContext",0,function(){return n.useContext(O)},"useComboboxRootContext",0,function(){let e=n.useContext(E);if(!e)throw Error((0,t.default)(22));return e}],3202672);var P=e.i(8484325),M=e.i(8042191);let D={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},hasNullItemLabel:(e,t)=>!!t&&(0,M.hasNullItemLabel)(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,o=e.selectedValue;return Array.isArray(o)?o.some(e=>(0,P.compareItemEquality)(t,e,n)):(0,P.compareItemEquality)(t,o,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};var w=e.i(1137584),k=e.i(8469690),V=e.i(1381104),T=e.i(2884708),N=e.i(8538489);function L(e,t){return(n,o)=>null!=n&&e.contains(n,o,t)}function F(e,t,n){return(o,i)=>{if(null==o)return!1;if(!i)return!0;let r=t?.selected??t,l=null!=n?(0,M.stringifyAsLabel)(n,r):"";return!!(l&&e.contains(l,i))&&l.length===i.length||e.contains(o,i,t)}}e.s(["createCollatorItemFilter",0,L,"createSingleSelectionCollatorFilter",0,F,"getComboboxPopupId",0,function(e){return null==e?void 0:`${e}-popup`}],2036523);var j=e.i(8293452);let q=new Map;function B(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${(0,j.stringifyLocale)(e.locale)}|${JSON.stringify(t)}`,o=q.get(n);if(o)return o;let i=new Intl.Collator(e.locale,t),r={contains(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n);for(let e=0;e<=o.length-t.length;e+=1)if(0===i.compare(o.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n);return 0===i.compare(o.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n),r=t.length;return o.length>=r&&0===i.compare(o.slice(o.length-r),t)}};return q.set(n,r),r}e.s(["useComboboxFilter",0,function(e={}){let{multiple:t=!1,value:o,...i}=e,r=B(i),l=n.useCallback((e,n,i)=>t?L(r,i)(e,n):F(r,i,o)(e,n),[r,o,t]);return n.useMemo(()=>({...r,contains:l}),[l,r])},"useCoreFilter",0,B],4156970);var H=e.i(7223910),_=e.i(32199),G=e.i(8496545),K=e.i(4606039),U=e.i(9264111),W=e.i(9176782);let Y=Symbol("none"),z={value:Y,index:-1};var $=e.i(3872855);function J(e,t,n){let o=e.get(t);if(void 0!==o||n===P.defaultItemEquality)return o;for(let[o,i]of e)if((0,P.compareItemEquality)(o,t,n))return i}e.s(["findCollectionItem",0,J],1491786);var Q=e.i(7843476);
1e.s(["AriaCombobox",0,function(e){let C,{id:F,onOpenChangeComplete:j,defaultSelectedValue:q=null,selectedValue:X,onSelectedValueChange:Z,defaultInputValue:ee,inputValue:et,open:en,defaultOpen:eo=!1,selectionMode:ei,onItemHighlighted:er,name:el,form:eu,disabled:ea=!1,readOnly:es=!1,required:ec=!1,inputRef:ed,grid:ep=!1,items:ef,filteredItems:em,filter:ex,filterQuery:ev,openOnInputClick:eb=!0,autoHighlight:eC=!1,keepHighlight:eg=!1,highlightItemOnHover:eS=!0,loopFocus:eh=!0,itemToStringLabel:eI,itemToStringValue:eE,isItemEqualToValue:eR=P.defaultItemEquality,virtualized:ey=!1,inline:eA=!1,fillInputOnItemPress:eO=!0,modal:eP=!1,limit:eM=-1,autoComplete:eD="list",formAutoComplete:ew,locale:ek,submitOnItemClick:eV=!1}=e,{clearErrors:eT}=(0,T.useFormContext)(),{setDirty:eN,validityData:eL,setFilled:eF,name:ej,disabled:eq,setTouched:eB,setFocused:eH,validationMode:e_,validation:eG}=(0,k.useFieldRootContext)(),eK=(0,$.useDirection)(),eU=(0,N.useLabelableId)({id:F}),eW=B({locale:ek}),eY=Array.isArray(ef)?null:ef;if(eY&&"function"!=typeof eY.label)throw Error((0,t.default)(100));let ez=eY?eY.data:ef,e$=eY?.value,eJ=e$?void 0:ez,eQ=n.useMemo(()=>{let e;if(!em||!e$)return;let t=(0,M.flattenLeafItems)(em),n=t.map(e$);return{values:n,findItem(o,i){if(!e){e=new Map;for(let o=0;o<n.length;o+=1)e.has(n[o])||e.set(n[o],t[o])}return J(e,o,i)}}},[em,e$]),eX=n.useMemo(()=>eY?e=>eY.label(e,eR,e=>{let t=eQ?.findItem(e,eR);return null!=t?eY.itemLabel(t):(0,M.stringifyAsLabel)(e,eI)}):eI,[eY,eI,eQ,eR]),eZ=n.useMemo(()=>eY?Object.assign(e=>eY.itemLabel(e),{selected:e=>(0,M.stringifyAsLabel)(e,eX)}):eI,[eY,eX,eI]);function e0(e){return(0,M.stringifyAsLabel)(e,eX)}let[e1,e2]=n.useState(!1),[e4,e6]=n.useState(null),e7=n.useRef(e4),e5=n.useRef([]),e8=n.useRef([]),e3=n.useRef(null),e9=n.useRef(null),te=n.useRef(null),tt=n.useRef(null),tn=n.useRef(null),to=n.useRef(!0),ti=n.useRef(!1),tr=n.useRef(null),tl=n.useRef(null),tu=n.useRef(null),ta=n.useRef(z),ts=n.useRef(null),tc=n.useRef([]),td=n.useRef(null),tp=eq||ea,tf=ej??el,tm="multiple"===ei,tx="single"===ei,tv=void 0!==et||void 0!==ee,tb=void 0!==ez,tC=void 0!==em;C="always"===eC?"always":!!eC&&"input-change";let[tg,tS]=(0,o.useControlled)({controlled:X,default:tm?q??p.EMPTY_ARRAY:q,name:"Combobox",state:"selectedValue"}),th=n.useMemo(()=>null===ex?()=>!0:void 0!==ex?ex:L(eW,eZ),[ex,eW,eZ]),tI=(0,c.useRefWithInit)(()=>tv?ee??"":tx?e0(tg):"").current,[tE,tR]=(0,o.useControlled)({controlled:et,default:tI,name:"Combobox",state:"inputValue"}),[ty,tA]=(0,o.useControlled)({controlled:en,default:eo,name:"Combobox",state:"open"}),tO=(0,M.isGroupedItems)(ez),tP=ty||null===e4?String(tE).trim():e4,tM=tx?e0(tg):"",tD=tx&&!e1&&""!==tP&&tM.length===tP.length&&eW.contains(tM,tP),tw=tD?"":ev??tP,tk=tb&&tC&&tD&&(!eY||eY.hasValue(tg,eR)),tV=n.useMemo(()=>ez?(0,M.flattenLeafItems)(ez):p.EMPTY_ARRAY,[ez]),tT=n.useMemo(()=>{if(em&&!tk)return em;if(!ez)return p.EMPTY_ARRAY;if(tO){let e=[],t=0;for(let n of ez){if(eM>-1&&t>=eM)break;let o=eM>-1?eM-t:1/0,i=""===tw?n.items.slice(0,o):[];if(""!==tw)for(let e of n.items){if(i.length>=o)break;th(e,tw,eZ)&&i.push(e)}if(i.length>0){let o={...n,items:i};e.push(o),t+=i.length}}return e}if(""===tw)return eM>-1?tV.slice(0,eM):tV;let e=[];for(let t of tV){if(eM>-1&&e.length>=eM)break;th(t,tw,eZ)&&e.push(t)}return e},[em,tk,ez,tO,tw,eM,th,eZ,tV]),tN=n.useMemo(()=>{if(eQ&&tT===em)return eQ.values;let e=(0,M.flattenLeafItems)(tT);return e$?e.map(e=>e$(e)):e},[tT,em,eQ,e$]),tL=(0,c.useRefWithInit)(()=>{let e=null;return eA&&ty&&tb&&"none"!==ei&&(e=(0,P.findSelectionIndex)(tN,tg,eR,tm)),new d.ReactStore({id:eU,labelId:void 0,selectedValue:tg,open:ty,items:eJ,selectionMode:ei,name:tf,form:eu,disabled:tp,readOnly:es,required:ec,grid:ep,virtualized:ey,openOnInputClick:eb,itemToStringLabel:eX,isItemEqualToValue:eR,modal:eP,autoHighlight:C,submitOnItemClick:eV,hasInputValue:tv,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eA,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:p.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===ei},{onOpenChangeComplete:p.NOOP,setOpen:p.NOOP,setInputValue:p.NOOP,setSelectedValue:p.NOOP,setIndices:p.NOOP,handleSelection:p.NOOP,forceMount:p.NOOP,requestSubmit:p.NOOP,listRef:e5,labelsRef:e8,popupRef:e3,emptyRef:tn,inputRef:e9,startDismissRef:te,endDismissRef:tt,keyboardActiveRef:to,chipsContainerRef:tr,clearRef:tl,valuesRef:tc,pointerDownItemRef:td,selectionEventRef:tu},D)}).current,tF="none"===ei?tE:tg,tj=n.useMemo(()=>"none"===ei?tF:Array.isArray(tg)?tg.map(e=>(0,M.stringifyAsValue)(e,eE)):(0,M.stringifyAsValue)(tg,eE),[tF,eE,ei,tg]),tq=(0,l.useStableCallback)(er),tB=(0,l.useStableCallback)(j),tH=tL.useState("activeIndex"),t_=tL.useState("selectedIndex"),tG=tL.use
1State("positionerElement"),tK=tL.useState("listElement"),tU=tL.useState("triggerElement"),tW=tL.useState("inputElement"),tY=tL.useState("inputGroupElement"),tz=tL.useState("inline"),t$=tL.useState("inputInsidePopup"),tJ=tL.useState("inputOwnsFormValue"),tQ=tx&&!t$&&tE===tM,tX=(0,a.useValueAsRef)(tU),{mounted:tZ,setMounted:t0,transitionStatus:t1}=(0,H.useTransitionStatus)(ty),{openMethod:t2,triggerProps:t4}=(0,_.useOpenInteractionType)(ty),t6=(0,l.useStableCallback)(()=>tj);(0,V.useRegisterFieldControl)(t$?tX:e9,eU,tF,t6,!tp,el);let t7=(0,l.useStableCallback)(()=>{ez?e8.current=tN.map(e0):tL.set("forceMounted",!0)}),t5=(0,l.useStableCallback)((e,t,n)=>{if(-1===t){if(ta.current===z)return;ta.current=z}else ta.current={value:e,index:t};tq(e,(0,h.createGenericEventDetails)(n,void 0,{index:t}))}),t8=(0,l.useStableCallback)(e=>{let t={};void 0!==e.activeIndex&&(t.activeIndex=e.activeIndex),void 0!==e.selectedIndex&&(t.selectedIndex=e.selectedIndex),tL.update(t);let n=e.activeIndex;if(void 0===n)return;let o=e.type||I.REASONS.none;null===n?t5(void 0,-1,o):t5(tc.current[n],n,o)}),t3=(0,l.useStableCallback)((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(ti.current=n.reason===I.REASONS.inputClear,n.reason===I.REASONS.inputChange){ty&&null!==e4&&e6(null);let e=n.event,o=e.inputType;if("compositionend"===e.type||null!=o&&""!==o&&"insertReplacementText"!==o){let e=""!==t.trim();e&&e2(!0),ts.current={hasQuery:e};let n=tL.state.listElement;if(!tL.state.virtualized&&n){let e=e3.current;for(let t of(0,f.getOverflowAncestors)(n.firstElementChild??n)){if(!(0,f.isHTMLElement)(t)||(e?!(0,S.contains)(e,t):"dialog"===t.getAttribute("role")))break;if((0,G.isScrollableY)(t)){t.scrollTop=0;break}}}e&&C&&null==tL.state.activeIndex&&(ty||tz)&&tL.set("activeIndex",0)}}else n.reason===I.REASONS.inputClear&&""===t&&tL.state.inputInsidePopup&&(ts.current={hasQuery:!1,selection:!0}
1);tR(t)}}),t9=(0,l.useStableCallback)(e=>{let t=!e&&t$&&!tz&&""!==tE&&(String(tE).trim()===e4||tE===tM);!e&&(t||""===tE||tQ)&&e2(!1),e6(null),t&&t3("",(0,h.createChangeEventDetails)(I.REASONS.inputClear))}),ne=(0,l.useStableCallback)((t,n)=>{if(ty!==t&&(n.reason===I.REASONS.escapeKey&&tb&&0===tN.length&&!tn.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&null!==e4&&t9(n.reason===I.REASONS.inputChange),!t&&e1&&(tx?(tz||e6(tP),""===tP&&e2(!1)):tm&&(tz||e6(tP),t$&&t8({activeIndex:null}),(!t$||tz)&&t3("",(0,h.createChangeEventDetails)(I.REASONS.inputClear,n.event,void 0,{isItemPress:n.reason===I.REASONS.itemPress})))),tA(t),!t&&t$&&(n.reason===I.REASONS.focusOut||n.reason===I.REASONS.outsidePress))&&(eB(!0),eH(!1),"onBlur"===e_))){let e="none"===ei?tE:tg;eG.commit(e)}}),nt=(0,l.useStableCallback)((e,t)=>{Z?.(e,t),t.isCanceled||(tS(e),("none"===ei&&e3.current&&eO||tx&&!tL.state.inputInsidePopup)&&t3(e0(e),(0,h.createChangeEventDetails)(t.reason,t.event)))}),nn=(0,l.useStableCallback)((e,t)=>{let n=(0,S.getTarget)(e),o=tu.current??e;tu.current=null;let i=(0,h.createChangeEventDetails)(I.REASONS.itemPress,o),r=n?.closest("a")?.getAttribute("href");if(r){r.startsWith("#")&&ne(!1,i);return}if(tm){let e=Array.isArray(tg)?tg:[],n=(0,P.selectedValueIncludes)(e,t,eR);if(nt(n?(0,P.removeItem)(e,t,eR):[...e,t],i),i.isCanceled||!(e9.current&&""!==e9.current.value.trim()))return;if(tL.state.inputInsidePopup){t3("",(0,h.createChangeEventDetails)(I.REASONS.inputClear,i.event,void 0,{isItemPress:!0}));let e=ts.current;e&&!n&&(e.toggledValue=t)}else ne(!1,i)}else{if(nt(t,i),i.isCanceled)return;ne(!1,i)}}),no=(0,l.useStableCallback)(()=>{let e=eG.inputRef.current?.form??tL.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),ni=(0,l.useStableCallback)(()=>{if(t0(!1),tB?.(!1),e2(!1),e6(null),"none"===ei?t8({activeIndex:null,selectedIndex:null}):t8({activeIndex:null}),tm&&e9.current&&""!==e9.current.value&&!ti.current&&t3("",(0,h.createChangeEventDetails)(I.REASONS.inputClear)),tx)if(tL.state.inputInsidePopup)e9.current&&""!==e9.current.value&&t3("",(0,h.createChangeEventDetails)(I.REASONS.inputClear));else{let e=e0(tg);if(e9.current&&e9.current.value!==e){let t=""===e?I.REASONS.inputClear:I.REASONS.none;t3(e,(0,h.createChangeEventDetails)(t))}}}),nr=n.useMemo(()=>tz&&tG?{current:tG.closest('[role="dialog"]')}:e3,[tz,tG]);(0,w.useOpenChangeComplete)({enabled:!e.actionsRef,open:ty,ref:nr,onComplete(){ty||ni()}}),n.useImperativeHandle(e.actionsRef,()=>({unmount:ni}),[ni]),(0,i.useIsoLayoutEffect)(function(){let e=null!==e7.current&&null===e4;if(e7.current=e4,ty&&(!e||!tb)||(ty||(td.current=null),"none"===ei))return;let t=tb?tN:tc.current;t8({selectedIndex:(0,P.findSelectionIndex)(t,tg,eR,tm)})},[ty,e4,tg,ei,tm,tb,tN,eR,t8]),(0,i.useIsoLayoutEffect)(()=>{ez&&(tc.current=tN,e5.current.length=tN.length)},[ez,tN]),(0,i.useIsoLayoutEffect)(()=>{let e=ts.current;if(e){let t=ty||tz||tL.state.positionerElement?.hidden===!1;if(e.hasQuery)C&&t&&tL.set("activeIndex",0),ts.current=null;else if(""===String(tE).trim()&&(ts.current=null,t)){let t=e.selection;"always"!==C||t||"none"!==tL.state.selectionMode||tL.set("activeIndex",0),queueMicrotask(()=>{if(!tL.state.open&&!tL.state.inline||e9.current&&""!==e9.current.value.trim())return;let n=tL.state.selectedValue,o="multiple"===tL.state.selectionMode;if(o&&Array.isArray(n)?n.length>0:"none"!==tL.state.selectionMode&&null!=n){let t=tb||tC?tN:tc.current,i=(0,P.findItemIndex)(t,e.toggledValue,tL.state.isItemEqualToValue);tL.set("activeIndex",-1!==i?i:(0,P.findSelectionIndex)(t,n,tL.state.isItemEqualToValue,o))}else t?tL.set("activeIndex",null):"always"===C&&tL.set("activeIndex",0)})}}if(!ty&&!tz)return;let t=tb||tC?tN:tc.current,n=tL.state.activeIndex;if(null==n)return"always"===C&&t.length>0?void tL.set("activeIndex",0):void t5(void 0,-1,I.REASONS.none);if(n>=t.length){t5(void 0,-1,I.REASONS.none),tL.set("activeIndex",null);return}let o=t[n],i=ta.current.value,r=i!==Y&&(0,P.compareItemEquality)(o,i,tL.state.isItemEqualToValue);ta.current.index===n&&r||t5(o,n,I.REASONS.none)},[tH,C,t5,tC,tb,tN,tz,ty,tL,tE]),(0,i.useIsoLayoutEffect)(()=>{"none"===ei?eF(""!==String(tE)):eF(tm?Array.isArray(tg)&&tg.length>0:null!=tg)},[eF,ei,tE,tg,tm]),n.useEffect(()=>{tb&&C&&0===tN.length&&t8({activeIndex:null})},[tb,C,tN.length,t8]);let nl=!1;function nu(){nl||tE===tM||(nl=!0,t3(tM,(0,h.createChangeEventDetails)(I.REASONS.none)))}function na(){!tx||tv||t$||e1||nu()}(0,K.useValueChanged)(tP,function(){ty&&""!==tP&&tP!==String(tI)&&!tQ&&e2(!0)}),(0,K.useValueChanged)(ty,function(){ty&&null!==e4&&t9(!1)}),(0,K.useValueChanged)(tg,function(){"none"!==ei&&(eT(tf),eN((0,P.isSelectedValueDirty)(tg,eL.initialValue,eR)),eG.change(tg),!tx||tv||t$||nu())}),(0,K.useValueChanged)(tM,na),(0,K.useValueChanged)(ez,na),(0,K.useValueChanged)(tE,function(){"none"===ei&&
1(eT(tf),eN(tE!==eL.initialValue),eG.change(tE))});let ns=(0,x.useFloatingRootContext)({open:!!tz||ty,onOpenChange:ne,elements:{reference:t$?tU:tW,floating:tG}}),nc=ep?"grid":"listbox",nd=ty||tz,np=nd?"true":"false",nf=n.useMemo(()=>{let e=tW?.tagName==="INPUT",t=null==tW||e,n=t||nd,o=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(o.role="combobox",o["aria-expanded"]=np,o["aria-haspopup"]=nc,o["aria-controls"]=nd?tK?.id:void 0,o["aria-autocomplete"]=es?"none":eD),{reference:o,floating:{role:"presentation"}}},[tW,nd,np,nc,tK?.id,eD,es]),nm=(0,b.useClick)(ns,{enabled:!tp&&eb,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!t$,reason:I.REASONS.inputPress}),nx=(0,m.useDismiss)(ns,{enabled:!tp&&!tz,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tz||void 0,outsidePress(e){let t=(0,S.getTarget)(e);return!(0,S.contains)(tU,t)&&!(0,S.contains)(tl.current,t)&&!(0,S.contains)(tr.current,t)&&!(0,S.contains)(tY,t)}}),nv=(0,v.useListNavigation)(ns,{enabled:!tp,id:eU,listRef:e5,activeIndex:tH,selectedIndex:t_,virtual:!0,loopFocus:eh,allowEscape:eh&&!C,focusItemOnOpen:!e1&&("none"!==ei||!!C)&&"auto",focusItemOnHover:eS,resetOnPointerLeave:!eg,orientation:ep?"horizontal":void 0,rtl:"rtl"===eK,disabledIndices:p.EMPTY_ARRAY,grid:ep?g:void 0,onNavigate(e,t){(t||ty)&&"ending"!==t1&&(t?t8({activeIndex:e,type:to.current?I.REASONS.keyboard:I.REASONS.pointer}):t8({activeIndex:e}))}}),nb=n.useMemo(()=>(0,W.mergeProps)(nv.reference,{onKeyDown(e){ep&&null==tL.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},nx.reference,nm.reference,nf.reference),[nv.reference,nx.reference,nm.reference,nf.reference,ep,tL]),nC=n.useMemo(()=>(0,W.mergeProps)(U.FOCUSABLE_POPUP_PROPS,nx.floating),[nx.floating]),ng=n.useMemo(()=>(0,W.mergeProps)(nv.floating,nf.floating),[nv.floating,nf.floating]),nS=n.useMemo(()=>{let e=nv.item;return e?{...e,onFocus:void 0}:p.EMPTY_OBJECT},[nv.item]);tL.useContextCallback("setOpen",ne),tL.useContextCallback("setInputValue",t3),tL.useContextCallback("setSelectedValue",nt),tL.useContextCallback("setIndices",t8),tL.useContextCallback("handleSelection",nn),tL.useContextCallback("forceMount",t7),tL.useContextCallback("requestSubmit",no),tL.useContextCallback("onOpenChangeComplete",j),(0,r.useOnFirstRender)(()=>{tL.update({inline:eA,popupProps:nC,listProps:ng,inputProps:nb,triggerProps:t4,itemProps:nS})});let nh={id:eU,selectedValue:tg,open:ty,mounted:tZ,transitionStatus:t1,items:eJ,inline:eA,popupProps:nC,listProps:ng,inputProps:nb,triggerProps:t4,itemProps:nS,openMethod:t2,selectionMode:ei,name:tf,form:eu,disabled:tp,readOnly:es,required:ec,grid:ep,virtualized:ey,openOnInputClick:eb,itemToStringLabel:eX,modal:eP,autoHighlight:C,isItemEqualToValue:eR,submitOnItemClick:eV,hasInputValue:tv};(0,i.useIsoLayoutEffect)(()=>{tL.update({...nh,inputOwnsFormValue:"none"===ei&&(eA||!tL.state.inputInsidePopup)})},[tL,...Object.values(nh)]);let nI=(0,u.useMergedRefs)(ed,eG.inputRef),nE=n.useMemo(()=>({query:tP,hasItems:tb,filteredItems:tT,flatFilteredValues:tN}),[tP,tb,tT,tN]),nR=n.useMemo(()=>Array.isArray(tF)?"":(0,M.stringifyAsValue)(tF,eE),[tF,eE]),ny=tm&&Array.isArray(tg)&&tg.length>0,nA=tm||"none"===ei&&tJ?void 0:tf,nO=n.useMemo(()=>tm&&Array.isArray(tg)&&tf?tg.map(e=>{let t=(0,M.stringifyAsValue)(e,eE);return(0,Q.jsx)("input",{type:"hidden",form:eu,name:tf,value:t,disabled:tp},t)}):null,[tm,tg,eu,tf,eE,tp]),nP=(0,Q.jsxs)(n.Fragment,{children:[e.children,(0,Q.jsx)("input",{...eG.getValidationProps(tp,{onFocus(){t$?tU?.focus():(e9.current||tU)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||tp||es)return;let t=e.currentTarget.value,n=t.toLowerCase(),o=(0,h.createChangeEventDetails)(I.REASONS.none,e.nativeEvent),i=()=>tc.current.findIndex(e=>(0,M.stringifyAsValue)(e,eE).toLowerCase()===n||e0(e).toLowerCase()===n);tx&&(t7(),ez&&-1===i()&&tL.set("forceMounted",!0)),queueMicrotask(function(){if(tm)return;if("none"===ei)return void t3(t,o);let e=i();-1===e&&(e=tc.current.findIndex((e,t)=>{let o=e8.current[t];return null!=o&&o.toLowerCase()===n}));let r=-1===e?void 0:tc.current[e];null!=r&&nt?.(r,o)})}}),id:eU&&null==nA?`${eU}-hidden-input`:void 0,form:eu,name:nA,autoComplete:ew,disabled:tp,required:ec&&!ny,readOnly:es,value:nR,ref:nI,style:nA?s.visuallyHiddenInput:s.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nO]});return(0,Q.jsx)(E.Provider,{value:tL,children:(0,Q.jsx)(R.Provider,{value:ns,children:(0,Q.jsx)(A.Provider,{value:tb,children:(0,Q.jsx)(y.Provider,{value:nE,children:(0,Q.jsx)(O.Provider,{value:tE,children:nP})})})})})}],4942593);var X=e.i(6879938),Z=e.i(8875812),ee=e.i(2145147);ee.CommonTriggerDataAttributes.popupOpen,ee.CommonTriggerDataAttributes.pressed;let et={...X.pressableTriggerOpenStateMapping,...Z.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};e.s(["triggerStateAttributesMapping",0,et],6002672)},2782149,e=>{"use strict";var t=e.i(3202672);e.s(["useFilteredItems",0,function(){return(0,t.useComboboxDerivedItemsContext)().filteredItems}])},5556212,e=>{"use strict";e.i(6247167);var t=e.i(5271645),n=e.i(8667865),o=e.i(5439957),i=e.i(1108868),r=e.i(5552245),l=e.i(7540886),u=e.i(3202672),a=e.i(6002672),s=e.i(8469690),c=e.i(5825322),d=e.i(3157940),p=e.i(9584446),f=e.i(8264042),m=e.i(2675606),x=e.i(56434),v=e.i(385689),b=e.i(1736760),C=e.i(8538489),g=e.i(7450001),S=e.i(2036523),h=e.i(697464);let I=t.forwardRef(function(e,I){let E,{render:R,className:y,nativeButton:A=!0,disabled:O=!1,id:P,style:M,...D}=e,{state:w,disabled:k,setTouched:V,setFocused:T,validationMode:N,validation:L}=(0,s.useFieldRootContext)(),{labelId:F}=(0,c.useLabelableContext)(),j=(0,u.useComboboxRootContext)(),q=j.useState("selectionMode"),B=j.useState("disabled"),H=j.useState("readOnly"),_=j.useState("required"),G=j.useState("positionerElement"),K=j.useState("listElement"),U=j.useState("popupId"),W=j.useState("triggerProps"),Y=j.useState("inputInsidePopup"),z=j.useState("id"),$=j.useState("labelId"),J=j.useState("open"),Q=j.useState("selectedValue"),X=j.useState("activeIndex"),Z=j.useState("selectedIndex"),ee=j.useState("hasSelectedValue"),et=(0,u.useComboboxFloating
1Context)(),en=(0,u.useComboboxInputValueContext)(),eo=(0,o.useTimeout)(),ei=k||B||O,er=(0,h.useListEmpty)(),el=(0,h.usePopupSide)(j);(0,C.useLabelableId)({id:Y?P:void 0});let eu=Y?P??z:P,ea=(0,g.resolveAriaLabelledBy)(F,$);J&&Y?E=U??(0,S.getComboboxPopupId)(z):J&&(E=K?.id);let es=t.useRef("");function ec(e){es.current=e.pointerType}let{reference:ed}=(0,b.useTypeahead)(et,{enabled:!J&&!H&&!B&&"single"===q,listRef:j.context.labelsRef,activeIndex:X,selectedIndex:Z,onMatch(e){let t=j.context.valuesRef.current[e];void 0!==t&&j.context.setSelectedValue(t,(0,m.createChangeEventDetails)(x.REASONS.none))}}),{reference:ep}=(0,v.useClick)(et,{enabled:!B,event:"mousedown"}),{buttonRef:ef,getButtonProps:em}=(0,l.useButton)({native:A,disabled:ei}),ex={...w,readOnly:H,open:J,disabled:ei,popupSide:el,listEmpty:er,placeholder:"none"!==q&&!ee},ev=(0,n.useStableCallback)(e=>{j.set("triggerElement",e)});return(0,r.useRenderElement)("button",e,{ref:[I,ef,ev],state:ex,props:[W,ep,ed,{id:eu,tabIndex:Y?0:-1,role:Y?"combobox":void 0,"aria-expanded":J,"aria-haspopup":Y?"dialog":"listbox","aria-controls":E,"aria-required":Y&&_||void 0,"aria-readonly":Y&&H||void 0,"aria-labelledby":ea,onPointerDown:ec,onPointerEnter:ec,onFocus(){T(!0),ei||eo.start(0,j.context.forceMount)},onBlur(e){(0,p.contains)(G,e.relatedTarget)||(V(!0),T(!1),"onBlur"===N&&L.commit("none"===q?en:Q))},onMouseDown(e){if(ei||(Y||et.set("domReferenceElement",e.currentTarget),j.context.forceMount(),"touch"!==es.current&&(j.context.inputRef.current?.focus(),Y||e.preventDefault()),J))return;let t=(0,i.ownerDocument)(e.currentTarget);Y&&t.addEventListener("mouseup",function(e){let t=j.state.triggerElement;if(!t)return;let n=(0,p.getTarget)(e),o=j.state.positionerElement,i=j.state.listElement;(0,p.contains)(t,n)||(0,p.contains)(o,n)||(0,p.contains)(i,n)||(0,f.isMouseWithinBounds)(e,t)||j.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.cancelOpen,e))},{once:!0})},onKeyDown(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,d.stopEvent)(e),j.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.listNavigation,e.nativeEvent)),j.context.inputRef.current?.focus())}},L.getValidationProps(ei,D),em],stateAttributesMapping:a.triggerStateAttributesMapping})});e.s(["ComboboxTrigger",0,I])},697464,e=>{"use strict";var t=e.i(3202672);e.s(["clickHighlightedItem",0,function(e,t,n){let o=e.context.listRef.current[t];o&&(e.context.selectionEventRef.current=n,o.click(),e.context.selectionEventRef.current=null)},"getChipNavigationKeys",0,function(e){return"rtl"===e?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]},"getIndexAfterChipRemoval",0,function(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0},"useListEmpty",0,function(){return 0===(0,t.useComboboxDerivedItemsContext)().filteredItems.length},"usePopupSide",0,function(e){let t=e.useState("mounted"),n=e.useState("popupSide"),o=e.useState("positionerElement");return t&&o?n:null}])}]);
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.