1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8250],{77534:function(e,t,n){let o,i,l,s,r;n.d(t,{hQ:function(){return eD},gA:function(){return eP},O2:function(){return eF},L5:function(){return e_}});var a=n(7775),u=n(18419),d=n(67294),c=n(73935);function p(e,t,n){let o,i=n.initialDeps??[];return()=>{var l,s,r,a;let u,d;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(u=Date.now());let c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return o;if(i=c,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(d=Date.now()),o=t(...c),n.key&&(null==(r=n.debug)?void 0:r.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-d)*100)/100,o=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${i(t,5)} /${i(e,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(a=null==n?void 0:n.onChange)||a.call(n,o),o}}function h(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let m=(e,t)=>
41>Math.abs(e-t),f=(e,t,n)=>{let o;return function(...i){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,i),n)}},v=e=>e,b=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let e=t;e<=n;e++)o.push(e);return o},g=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let i=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(i(n.getBoundingClientRect()),!o.ResizeObserver)return()=>{};let l=new o.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){i({width:e.inlineSize,height:e.blockSize});return}}i(n.getBoundingClientRect())});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},x={passive:!0},E="undefined"==typeof window||"onscrollend"in window,S=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let i=0,l=e.options.useScrollendEvent&&E?()=>void 0:f(o,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=o=>()=>{let{horizontal:s,isRtl:r}=e.options;i=s?n.scrollLeft*(r&&-1||1):n.scrollTop,l(),t(i,o)},r=s(!0),a=s(!1);return a(),n.addEventListener("scroll",r,x),n.addEventListener("scrollend",a,x),()=>{n.removeEventListener("scroll",r),n.removeEventListener("scrollend",a)}},O=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])}
4,T=(e,{adjustments:t=0,behavior:n},o)=>{var i,l;null==(l=null==(i=o.scrollElement)?void 0:i.scrollTo)||l.call(i,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class I{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:v,rangeExtractor:b,onChange:()=>{},measureElement:O,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=p(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let l=o.get(t.lane);if(null==l||t.end>l.end?o.set(t.lane,t):t.end<l.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i}),{key:!1}),this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i},l)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let r=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){let e=o(i),s=1===this.options.lanes?r[i-1]:this.getFurthestMeasurement(r,i),a=s?s.end+this.options.gap:t+n,u=l.get(e),d="number"==typeof u?u:this.options.estimateSize(i),c=a+d,p=s?s.lane:i%this.options.lanes;r[i]={index:i,start:a,size:d,end:c,key:e,lane:p}}return this.measurementsCache=r,r},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){let o=e.length-1,i=y(0,o,t=>e[t].start,n),l=i;for(;l<o&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=p(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,o)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),o=this.measurementsCache[n];if(!o)return;let i=o.key,l=this.elementsCache.get(i);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=p(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,i=e.length;o<i;o++){let i=t[e[o]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return h(t[y(0,t.length-1,e=>h(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>
4{let n=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e<=o?"start":e>=o+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));let i=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let o=this.getSize(),i=this.getScrollOffset();if("auto"===t){if(n.end>=i+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}}let l="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let o=this.getOffsetForIndex(e,t);if(!o)return;let[i,l]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=h(this.getOffsetForIndex(e,l));m(t,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:n})}else this.scrollToIndex(e,{align:l,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let y=(e,t,n,o)=>{for(;e<=t;){let i=(e+t)/2|0,l=n(i);if(l<o)e=i+1;else{if(!(l>o))return i;t=i-1}}return e>0?e-1:0},C="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var w=n(13006),R=n(13252),M=n(15232),z=n(11523),P=n(20626),k=n(32023),_=n(46978),F=n(62815),D=n(62922),A=n(83579),L=n(9601),B=n(44441),V=n(84305),j=n(84113);function N(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,j.O)(e,"blur",e=>{let n=e.target;n instanceof HTMLInputElement&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,_.z)(()=>{if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var W=n(65141),$=n(62265),U=n(78405),Z=n(32990),H=n(73730),q=n(6746),K=n(71492),G=n(56382),J=n(86605),X=n(87051),Q=n(75733),Y=n(29160),ee=n(20476),et=n(26516),en=n(83596),eo=n(64908),ei=n(87112),el=n(4918),es=n(28277),er=n(15021),ea=n(5750),eu=n(12508),ed=n(72118),ec=n(37308),ep=((o=ep||{})[o.Left=0]="Left",o[o.Right=2]="Right",o),eh=n(77192),em=((i=em||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),ef=((l=ef||{})[l.Single=0]="Single",l[l.Multi=1]="Multi",l),ev=((s=ev||{})[s.Pointer=0]="Pointer",s[s.Focus=1]="Focus",s[s.Other=2]="Other",s),eb=((r=eb||{})[r.OpenCombobox=0]="OpenCombobox",r[r.CloseCombobox=1]="CloseCombobox",r[r.GoToOption=2]="GoToOption",r[r.SetTyping=3]="SetTyping",r[r.RegisterOption=4]="RegisterOption",r[r.UnregisterOption=5]="UnregisterOption",r[r.SetActivationTrigger=6]="SetActivationTrigger",r[r.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",r[r.SetInputElement=8]="SetInputElement",r[r.SetButtonElement=9]="SetButtonElement",r[r.SetOptionsElement=10]="SetOptionsElement",r);function eg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),i=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,el.z2)(o,e=>e.dataRef.current.domRef.current),l=n?i.indexOf(n):null;return -1===l&&(l=null),{options:i,activeOptionIndex:l}}let ex={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,i,l;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:o}=e.virtual,l=t.focus===eo.T.Specific?t.idx:(0,eo.d)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?i:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),s=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===l&&e.activationTrigger===s?e:{...e,activeOptionIndex:l,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=eg(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let r=t.focus===eo.T.Specific?t.idx:(0,eo.d)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(l=t.trigger)?l:2;return e.activeOptionIndex===r&&e.activationTrigger===a?e:{...e,...s,isTyping:!1,activeOptionIndex:r,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,o,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,s=eg(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(o=e.dataRef.current)&&o.isSelected(t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(l));let r={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=eg(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n,o;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}}},8:(e,t)=>
4e.inputElement===t.element?e:{...e,inputElement:t.element},9:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},10:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},eE=(0,d.createContext)(null);function eS(e){let t=(0,d.useContext)(eE);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eS),t}return t}eE.displayName="ComboboxActionsContext";let eO=(0,d.createContext)(null);function eT(e){let t=ey("VirtualProvider"),{options:n}=t.virtual,[o,i]=(0,d.useMemo)(()=>{let e=t.optionsElement;if(!e)return[0,0];let n=window.getComputedStyle(e);return[parseFloat(n.paddingBlockStart||n.paddingTop),parseFloat(n.paddingBlockEnd||n.paddingBottom)]},[t.optionsElement]),l=function(e){let t=d.useReducer(()=>({}),{})[1],n={...e,onChange:(n,o)=>{var i;o?(0,c.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,o)}},[o]=d.useState(()=>new I(n));return o.setOptions(n),d.useEffect(()=>o._didMount(),[]),C(()=>o._willUpdate()),o}({observeElementRect:g,observeElementOffset:S,scrollToFn:T,enabled:0!==n.length,scrollPaddingStart:o,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.optionsElement,overscan:12}),[s,r]=(0,d.useState)(0);(0,D.e)(()=>{r(e=>e+1)},[n]);let a=l.getVirtualItems();return 0===a.length?null:d.createElement(eO.Provider,{value:l},d.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=>{e&&0!==t.activationTrigger&&null!==t.activeOptionIndex&&n.length>t.activeOptionIndex&&l.scrollToIndex(t.activeOptionIndex)}},a.map(t=>{var o;return d.createElement(d.Fragment,{key:t.key},d.cloneElement(null==(o=e.children)?void 0:o.call(e,{...e.slot,option:n[t.index]}),{key:`${s}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let eI=(0,d.createContext)(null);function ey(e){let t=(0,d.useContext)(eI);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ey),t}return t}function eC(e,t){return(0,es.E)(t.type,ex,e,t)}eI.displayName="ComboboxDataContext";let ew=d.Fragment,eR=ea.VN.RenderStrategy|ea.VN.Static,eM=(0,ea.yV)(function(e,t){var n,o;let i=(0,G.B)(),{value:l,defaultValue:s,onChange:r,form:a,name:u,by:c,disabled:p=i||!1,onClose:h,__demoMode:m=!1,multiple:f=!1,immediate:v=!1,virtual:b=null,nullable:g,...x}=e,E=(0,z.L)(s),[S=f?[]:void 0,O]=(0,M.q)(l,r,E),[T,I]=(0,d.useReducer)(eC,{dataRef:(0,d.createRef)(),comboboxState:m?0:1,isTyping:!1,options:[],virtual:b?{options:b.options,disabled:null!=(n=b.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:m}),y=(0,d.useRef)(!1),C=(0,d.useRef)({static:!1,hold:!1}),w=(0,R.J)(c),P=(0,_.z)(e=>b?null===c?b.options.indexOf(e):b.options.findIndex(t=>w(t,e)):T.options.findIndex(t=>w(t.dataRef.current.value,e))),k=(0,d.useCallback)(e=>(0,es.E)(A.mode,{1:()=>S.some(t=>w(t,e)),0:()=>w(S,e)}),[S]),F=(0,_.z)(e=>T.activeOptionIndex===P(e)),A=(0,d.useMemo)(()=>({...T,immediate:v,optionsPropsRef:C,value:S,defaultValue:E,disabled:p,mode:f?1:0,virtual:b?T.virtual:null,get activeOptionIndex(){if(y.current&&null===T.activeOptionIndex&&(b?b.options.length>0:T.options.length>0)){if(b){let e=b.options.findIndex(e=>{var t,n;return!(null!=(n=null==(t=b.disabled)?void 0:t.call(b,e))&&n)});if(-1!==e)return e}let e=T.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return T.activeOptionIndex},calculateIndex:P,compare:w,isSelected:k,isActive:F}),[S,E,p,f,m,T,b]);(0,D.e)(()=>{var e;b&&I({type:7,options:b.options,disabled:null!=(e=b.disabled)?e:null})},[b,null==b?void 0:b.options,null==b?void 0:b.disabled]),(0,D.e)(()=>{T.dataRef.current=A},[A]);let L=0===A.comboboxState;(0,B.O)(L,[A.buttonElement,A.inputElement,A.optionsElement],()=>et.closeCombobox());let V=(0,d.useMemo)(()=>{var e,t,n;return{open:0===A.comboboxState,disabled:p,activeIndex:A.activeOptionIndex,activeOption:null===A.activeOptionIndex?null:A.virtual?A.virtual.options[null!=(e=A.activeOptionIndex)?e:0]:null!=(n=null==(t=A.options[A.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:S}},[A,p,S]),j=(0,_.z)(()=>
4{if(null!==A.activeOptionIndex){if(et.setIsTyping(!1),A.virtual)H(A.virtual.options[A.activeOptionIndex]);else{let{dataRef:e}=A.options[A.activeOptionIndex];H(e.current.value)}et.goToOption(eo.T.Specific,A.activeOptionIndex)}}),N=(0,_.z)(()=>{I({type:0}),y.current=!0}),W=(0,_.z)(()=>{I({type:1}),y.current=!1,null==h||h()}),$=(0,_.z)(e=>{I({type:3,isTyping:e})}),U=(0,_.z)((e,t,n)=>(y.current=!1,e===eo.T.Specific?I({type:2,focus:eo.T.Specific,idx:t,trigger:n}):I({type:2,focus:e,trigger:n}))),Z=(0,_.z)((e,t)=>(I({type:4,payload:{id:e,dataRef:t}}),()=>{A.isActive(t.current.value)&&(y.current=!0),I({type:5,id:e})})),H=(0,_.z)(e=>(0,es.E)(A.mode,{0:()=>null==O?void 0:O(e),1(){let t=A.value.slice(),n=t.findIndex(t=>w(t,e));return -1===n?t.push(e):t.splice(n,1),null==O?void 0:O(t)}})),q=(0,_.z)(e=>{I({type:6,trigger:e})}),K=(0,_.z)(e=>{I({type:8,element:e})}),Q=(0,_.z)(e=>{I({type:9,element:e})}),Y=(0,_.z)(e=>{I({type:10,element:e})}),et=(0,d.useMemo)(()=>({onChange:H,registerOption:Z,goToOption:U,setIsTyping:$,closeCombobox:W,openCombobox:N,setActivationTrigger:q,selectActiveOption:j,setInputElement:K,setButtonElement:Q,setOptionsElement:Y}),[]),[en,ei]=(0,ec.bE)(),el=(0,d.useCallback)(()=>{if(void 0!==E)return null==O?void 0:O(E)},[O,E]),er=(0,ea.L6)();return d.createElement(ei,{value:en,props:{htmlFor:null==(o=A.inputElement)?void 0:o.id},slot:{open:0===A.comboboxState,disabled:p}},d.createElement(J.HO,null,d.createElement(eE.Provider,{value:et},d.createElement(eI.Provider,{value:A},d.createElement(ee.up,{value:(0,es.E)(A.comboboxState,{0:ee.ZM.Open,1:ee.ZM.Closed})},null!=u&&d.createElement(X.Mt,{disabled:p,data:null!=S?{[u]:S}:{},form:a,onReset:el}),er({ourProps:null===t?{}:{ref:t},theirProps:x,slot:V,defaultTag:ew,name:"Combobox"}))))))}),ez=(0,ea.yV)(function(e,t){var n;let o=ey("Combobox.Button"),i=eS("Combobox.Button"),l=(0,U.T)(t,i.setButtonElement),s=(0,d.useId)(),{id:r=`headlessui-combobox-button-${s}`,disabled:p=o.disabled||!1,autoFocus:h=!1,...m}=e,f=N(o.inputElement),v=(0,_.z)(e=>{switch(e.key){case ed.R.Space:case ed.R.Enter:e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(0,c.flushSync)(()=>i.openCombobox()),f();return;case ed.R.ArrowDown:e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&((0,c.flushSync)(()=>i.openCombobox()),o.value||i.goToOption(eo.T.First)),f();return;case ed.R.ArrowUp:e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&((0,c.flushSync)(()=>i.openCombobox()),o.value||i.goToOption(eo.T.Last)),f();return;case ed.R.Escape:if(0!==o.comboboxState)return;e.preventDefault(),o.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,c.flushSync)(()=>i.closeCombobox()),f();return;default:return}}),b=(0,_.z)(e=>{e.preventDefault(),(0,en.P)(e.currentTarget)||(e.button===ep.Left&&(0===o.comboboxState?i.closeCombobox():i.openCombobox()),f())}),g=(0,ec.wp)([r]),{isFocusVisible:x,focusProps:E}=(0,a.F)({autoFocus:h}),{isHovered:S,hoverProps:O}=(0,u.X)({isDisabled:p}),{pressed:T,pressProps:I}=(0,w.x)({disabled:p}),y=(0,d.useMemo)(()=>({open:0===o.comboboxState,active:T||0===o.comboboxState,disabled:p,value:o.value,hover:S,focus:x}),[o,S,x,T,p]),C=(0,ea.dG)({ref:l,id:r,type:(0,W.f)(e,o.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsElement)?void 0:n.id,"aria-expanded":0===o.comboboxState,"aria-labelledby":g,disabled:p||void 0,autoFocus:h,onMouseDown:b,onKeyDown:v},E,O,I);return(0,ea.L6)()({ourProps:C,theirProps:m,slot:y,defaultTag:"button",name:"Combobox.Button"})}),eP=(0,ea.yV)(function(e,t){var n,o,i,l,s;let r=ey("Combobox.Input"),p=eS("Combobox.Input"),h=(0,d.useId)(),m=(0,Y.Q)(),{id:f=m||`headlessui-combobox-input-${h}`,onChange:v,displayValue:b,disabled:g=r.disabled||!1,autoFocus:x=!1,type:E="text",...S}=e,O=(0,d.useRef)(null),T=(0,U.T)(O,t,(0,J.AZ)(),p.setInputElement),I=(0,V.i)(r.inputElement),y=(0,P.G)(),C=(0,_.z)(()=>{p.onChange(null),r.optionsElement&&(r.optionsElement.scrollTop=0),p.goToOption(eo.T.Nothing)}),w=(0,d.useMemo)(()=>{var e;return"function"==typeof b&&void 0!==r.value?null!=(e=b(r.value))?e:"":"string"==typeof r.value?r.value:""},[r.value,b]);(0,K.q)((e,t)=>
4{let[n,o]=e,[i,l]=t;if(r.isTyping)return;let s=O.current;s&&((0===l&&1===o||n!==i)&&(s.value=n),requestAnimationFrame(()=>{if(r.isTyping||!s||(null==I?void 0:I.activeElement)!==s)return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[w,r.comboboxState,I,r.isTyping]),(0,K.q)((e,t)=>{let[n]=e,[o]=t;if(0===n&&1===o){if(r.isTyping)return;let e=O.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,o,i):e.setSelectionRange(n,o)}},[r.comboboxState]);let R=(0,d.useRef)(!1),M=(0,_.z)(()=>{R.current=!0}),z=(0,_.z)(()=>{y.nextFrame(()=>{R.current=!1})}),k=(0,_.z)(e=>{switch(p.setIsTyping(!0),e.key){case ed.R.Enter:if(0!==r.comboboxState||R.current)return;if(e.preventDefault(),e.stopPropagation(),null===r.activeOptionIndex){p.closeCombobox();return}p.selectActiveOption(),0===r.mode&&p.closeCombobox();break;case ed.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,es.E)(r.comboboxState,{0:()=>p.goToOption(eo.T.Next),1:()=>p.openCombobox()});case ed.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,es.E)(r.comboboxState,{0:()=>p.goToOption(eo.T.Previous),1:()=>{(0,c.flushSync)(()=>p.openCombobox()),r.value||p.goToOption(eo.T.Last)}});case ed.R.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),p.goToOption(eo.T.First);case ed.R.PageUp:return e.preventDefault(),e.stopPropagation(),p.goToOption(eo.T.First);case ed.R.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),p.goToOption(eo.T.Last);case ed.R.PageDown:return e.preventDefault(),e.stopPropagation(),p.goToOption(eo.T.Last);case ed.R.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),0===r.mode&&null===r.value&&C(),p.closeCombobox());case ed.R.Tab:if(0!==r.comboboxState)return;0===r.mode&&1!==r.activationTrigger&&p.selectActiveOption(),p.closeCombobox()}}),F=(0,_.z)(e=>{null==v||v(e),0===r.mode&&""===e.target.value&&C(),p.openCombobox()}),D=(0,_.z)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:et.m.find(t=>t!==e.currentTarget);if(!(null!=(n=r.optionsElement)&&n.contains(i))&&!(null!=(o=r.buttonElement)&&o.contains(i))&&0===r.comboboxState)return e.preventDefault(),0===r.mode&&null===r.value&&C(),p.closeCombobox()}),A=(0,_.z)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:et.m.find(t=>t!==e.currentTarget);null!=(n=r.buttonElement)&&n.contains(i)||null!=(o=r.optionsElement)&&o.contains(i)||r.disabled||r.immediate&&0!==r.comboboxState&&y.microTask(()=>{(0,c.flushSync)(()=>p.openCombobox()),p.setActivationTrigger(1)})}),L=(0,ec.wp)(),B=(0,eu.zH)(),{isFocused:j,focusProps:N}=(0,a.F)({autoFocus:x}),{isHovered:W,hoverProps:$}=(0,u.X)({isDisabled:g}),Z=(0,d.useMemo)(()=>({open:0===r.comboboxState,disabled:g,hover:W,focus:j,autofocus:x}),[r,W,j,x,g]),H=(0,ea.dG)({ref:T,id:f,role:"combobox",type:E,"aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.comboboxState,"aria-activedescendant":null===r.activeOptionIndex?void 0:r.virtual?null==(o=r.options.find(e=>!e.dataRef.current.disabled&&r.compare(e.dataRef.current.value,r.virtual.options[r.activeOptionIndex])))?void 0:o.id:null==(i=r.options[r.activeOptionIndex])?void 0:i.id,"aria-labelledby":L,"aria-describedby":B,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(l=e.defaultValue)?l:void 0!==r.defaultValue?null==b?void 0:b(r.defaultValue):null)?s:r.defaultValue,disabled:g||void 0,autoFocus:x,onCompositionStart:M,onCompositionEnd:z,onKeyDown:k,onChange:F,onFocus:A,onBlur:D},N,$);return(0,ea.L6)()({ourProps:H,theirProps:S,slot:Z,defaultTag:"input",name:"Combobox.Input"})}),ek=ec.__,e_=(0,ea.yV)(function(e,t){var n,o,i;let l=(0,d.useId)(),{id:s=`headlessui-combobox-options-${l}`,hold:r=!1,anchor:a,portal:u=!1,modal:c=!0,transition:p=!1,...h}=e,m=ey("Combobox.Options"),f=eS("Combobox.Options"),v=(0,J.Vy)(a);v&&(u=!0);let[b,g]=(0,J.ES)(v),[x,E]=(0,d.useState)(null),S=(0,J.U8)(),O=(0,U.T)(t,v?b:null,f.setOptionsElement,E),T=(0,V.i)(m.optionsElement),I=(0,ee.oJ)(),[y,C]=(0,H.Y)(p,x,null!==I?(I&ee.ZM.Open)===ee.ZM.Open:0===m.comboboxState);(0,L.m)(y,m.inputElement,f.closeCombobox);let w=!m.__demoMode&&c&&0===m.comboboxState;(0,$.P)(w,T);let R=!m.__demoMode&&c&&0===m.comboboxState;(0,F.s)(R,{allowed:(0,d.useCallback)(()=>[m.inputElement,m.buttonElement,m.optionsElement],[m.inputElement,m.buttonElement,m.optionsElement])}),(0,D.e)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,D.e)(()=>{m.optionsPropsRef.current.hold=r},[m.optionsPropsRef,r]),(0,q.B)(0===m.comboboxState,{container:m.optionsElement,accept:e=>
4"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let M=(0,ec.wp)([null==(n=m.buttonElement)?void 0:n.id]),z=(0,d.useMemo)(()=>({open:0===m.comboboxState,option:void 0}),[m.comboboxState]),P=(0,_.z)(()=>{f.setActivationTrigger(0)}),A=(0,_.z)(e=>{e.preventDefault(),f.setActivationTrigger(0)}),B=(0,ea.dG)(v?S():{},{"aria-labelledby":M,role:"listbox","aria-multiselectable":1===m.mode||void 0,id:s,ref:O,style:{...h.style,...g,"--input-width":(0,k.h)(m.inputElement,!0).width,"--button-width":(0,k.h)(m.buttonElement,!0).width},onWheel:0===m.activationTrigger?void 0:P,onMouseDown:A,...(0,H.X)(C)}),j=y&&1===m.comboboxState,N=(0,Q._)(j,null==(o=m.virtual)?void 0:o.options),W=(0,Q._)(j,m.value),Z=(0,_.z)(e=>m.compare(W,e));if(m.virtual){if(void 0===N)throw Error("Missing `options` in virtual mode");Object.assign(h,{children:d.createElement(eI.Provider,{value:N!==m.virtual.options?{...m,virtual:{...m.virtual,options:N}}:m},d.createElement(eT,{slot:z},h.children))})}let K=(0,ea.L6)();return d.createElement(eh.h_,{enabled:!!u&&(e.static||y)},d.createElement(eI.Provider,{value:1===m.mode?m:{...m,isSelected:Z}},K({ourProps:B,theirProps:{...h,children:d.createElement(Q.F,{freeze:j},"function"==typeof h.children?null==(i=h.children)?void 0:i.call(h,z):h.children)},slot:z,defaultTag:"div",features:eR,visible:y,name:"Combobox.Options"}
4)))}),eF=(0,ea.yV)(function(e,t){var n,o,i,l;let s=ey("Combobox.Option"),r=eS("Combobox.Option"),a=(0,d.useId)(),{id:u=`headlessui-combobox-option-${a}`,value:c,disabled:p=null!=(i=null==(o=null==(n=s.virtual)?void 0:n.disabled)?void 0:o.call(n,c))&&i,order:h=null,...m}=e,f=N(s.inputElement),v=s.virtual?s.activeOptionIndex===s.calculateIndex(c):null!==s.activeOptionIndex&&(null==(l=s.options[s.activeOptionIndex])?void 0:l.id)===u,b=s.isSelected(c),g=(0,d.useRef)(null),x=(0,A.E)({disabled:p,value:c,domRef:g,order:h}),E=(0,d.useContext)(eO),S=(0,U.T)(t,g,E?E.measureElement:null),O=(0,_.z)(()=>{r.setIsTyping(!1),r.onChange(c)});(0,D.e)(()=>r.registerOption(u,x),[x,u]);let T=(0,d.useRef)(!(s.virtual||s.__demoMode));(0,D.e)(()=>{if(!s.virtual&&!s.__demoMode)return(0,ei.k)().requestAnimationFrame(()=>{T.current=!0})},[s.virtual,s.__demoMode]),(0,D.e)(()=>{if(T.current&&0===s.comboboxState&&v&&0!==s.activationTrigger)return(0,ei.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[g,v,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let I=(0,_.z)(e=>{e.preventDefault(),e.button===ep.Left&&(p||(O(),(0,er.tq)()||requestAnimationFrame(()=>f()),0===s.mode&&r.closeCombobox()))}),y=(0,_.z)(()=>{if(p)return r.goToOption(eo.T.Nothing);let e=s.calculateIndex(c);r.goToOption(eo.T.Specific,e)}),C=(0,Z.g)(),w=(0,_.z)(e=>C.update(e)),R=(0,_.z)(e=>{if(!C.wasMoved(e)||p||v)return;let t=s.calculateIndex(c);r.goToOption(eo.T.Specific,t,0)}),M=(0,_.z)(e=>{C.wasMoved(e)&&(p||v&&(s.optionsPropsRef.current.hold||r.goToOption(eo.T.Nothing)))}),z=(0,d.useMemo)(()=>({active:v,focus:v,selected:b,disabled:p}),[v,b,p]);return(0,ea.L6)()({ourProps:{id:u,ref:S,role:"option",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,"aria-selected":b,disabled:void 0,onMouseDown:I,onFocus:y,onPointerEnter:w,onMouseEnter:w,onPointerMove:R,onMouseMove:R,onPointerLeave:M,onMouseLeave:M},theirProps:m,slot:z,defaultTag:"div",name:"Combobox.Option"})}),eD=Object.assign(eM,{Input:eP,Button:ez,Label:ek,Options:e_,Option:eF})},42510:function(e,t,n){var o=n(67294);let i=o.forwardRef(function(e,t){let{title:n,titleId:i,...l}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},l),n?o.createElement("title",{id:i},n):null,o.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z",clipRule:"evenodd"}))});t.Z=i},25509:function(e,t,n){var o=n(67294);let i=o.forwardRef(function(e,t){let{title:n,titleId:i,...l}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},l),n?o.createElement("title",{id:i},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"}))});t.Z=i},26010:function(e,t,n){var o=n(67294);let i=o.forwardRef(function(e,t){let{title:n,titleId:i,...l}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},l),n?o.createElement("title",{id:i},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=i}}]); 5//# sourceMappingURL=8250-8fd726f1e24eb45a.js.map
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.