<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4379],{18698:function(){},92130:function(e,t,n){"use strict";n.d(t,{h:function(){return be}});var o=n(67294),i=n(73935);function r(e,t,n){let o,i=n.initialDeps??[];return()=&gt;{var r,l,s,a;let u;n.key&amp;&amp;(null==(r=n.debug)?void 0:r.call(n))&amp;&amp;(u=Date.now());const c=e();if(!(c.length!==i.length||c.some(((e,t)=&gt;i[t]!==e))))return o;let d;if(i=c,n.key&amp;&amp;(null==(l=n.debug)?void 0:l.call(n))&amp;&amp;(d=Date.now()),o=t(...c),n.key&amp;&amp;(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-u))/100,t=Math.round(100*(Date.now()-d))/100,o=t/16,i=(e,t)=&gt;{for(e=String(e);e.length&lt;t;)e=" "+e;return e};console.info(`%c\u23f1 ${i(t,5)} /${i(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            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 l(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const s=(e,t,n)=&gt;{let o;return function(...i){e.clearTimeout(o),o=e.setTimeout((()=&gt;t.apply(this,i)),n)}},a=e=&gt;e,u=e=&gt;{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let i=t;i&lt;=n;i++)o.push(i);return o},c=(e,t)=&gt;{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const i=e=&gt;{const{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(i(n.getBoundingClientRect()),!o.ResizeObserver)return()=&gt;{};const r=new o.ResizeObserver((e=&gt;{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void i({width:e.inlineSize,height:e.blockSize})}i(n.getBoundingClientRect())}));return r.observe(n,{box:"border-box"}),()=&gt;{r.unobserve(n)}},d={passive:!0},h="undefined"==typeof window||"onscrollend"in window,p=(e,t)=&gt;{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let i=0;const r=h?()=&gt;{}:s(o,(()=&gt;{t(i,!1)}),e.options.isScrollingResetDelay),l=o=&gt;()=&gt;{i=n[e.options.horizontal?"scrollLeft":"scrollTop"],r(),t(i,o)},a=l(!0),u=l(!1);return u(),n.addEventListener("scroll",a,d),n.addEventListener("scrollend",u,d),()=&gt;{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",u)}},f=(e,t,n)=&gt;{if(null==t?void 0:t.borderBoxSize){const 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"])},v=(e,{adjustments:t=0,behavior:n},o)=&gt;{var i,r;const l=e+t;null==(r=null==(i=o.scrollElement)?void 0:i.scrollTo)||r.call(i,{[o.options.horizontal?"left":"top"]:l,behavior:n})};class m{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=(()=&gt;{let e=null;const t=()=&gt;e||(this.targetWindow&amp;&amp;this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=&gt;{e.forEach((e=&gt;{this._measureElement(e.target,e)}))})):null);return{disconnect:()=&gt;{var e;return null==(e=t())?void 0:e.disconnect()},observe:e=&gt;{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=&gt;{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=&gt;{Object.entries(e).forEach((([t,n])=&gt;{"undefined"===typeof n&amp;&amp;delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:a,rangeExtractor:u,onChange:()=&gt;{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...e}},this.notify=(e,t)=&gt;{var n,o;const{startIndex:i,endIndex:r}=this.range??{startIndex:void 0,endIndex:void 0},l=this.calculateRange();(e||i!==(null==l?void 0:l.startIndex)||r!==(null==l?void 0:l.endIndex))&amp;&amp;(null==(o=(n=this.options).onChange)||o.call(n,this,t))},this.cleanup=()=&gt;{this.unsubs.filter(Boolean).forEach((e=&gt;e())),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=&gt;()=&gt;{this.cleanup()},this._willUpdate=()=&gt;{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.notify(!1,!1);this.scrollElement=t,this.scrollElement&amp;&amp;"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=&gt;{this.scrollRect=e,this.notify(!1,!1)}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=&gt;{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()&lt;e?"forward":"backward":null,this.scrollOffset=e;const n=this.isScrolling;this.isScrolling=t,this.notify(n!==t,t)})))}},this.getSize=()=&gt;this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=&gt;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)=&gt;{const n=new Map,o=new Map;for(let i=t-1;i&gt;=0;i--){const t=e[i];if(n.has(t.lane))continue;const r=o.get(t.lane);if(null==r||t.end&gt;r.end?o.set(t.lane,t):t.end&lt;r.end&amp;&amp;n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort(((e,t)=&gt;e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=r((()=&gt;[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,o,i)=&gt;(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i})),{key:!1}),this.getMeasurements=r((()=&gt;[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i},r)=&gt;{var l;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&amp;&amp;(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=&gt;{this.itemSizeCache.set(e.key,e.size)})));const s=this.pendingMeasuredCacheIndexes.length&gt;0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let u=s;u&lt;e;u++){let e=null==(l=this.measurementsCache[u])?void 0:l.measureElement;e||(e=e=&gt;{const t=o(u),n=this.elementsCache.get(t);e?(n!==e&amp;&amp;(n&amp;&amp;this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(t,e)),e.isConnected&amp;&amp;this.resizeItem(u,this.options.measureElement(e,void 0,this))):n&amp;&amp;(this.observer.unobserve(n),this.elementsCache.delete(t))});const i=o(u),s=1===this.options.lanes?a[u-1]:this.getFurthestMeasurement(a,u),c=s?s.end+this.options.gap:t+n,d=r.get(i),h="number"===typeof d?d:this.options.estimateSize(u),p=c+h,f=s?s.lane:u%this.options.lanes;a[u]={index:u,start:c,size:h,end:p,key:i,lane:f,measureElement:e}}return this.measurementsCache=a,a}),{key:!1,debug:()=&gt;this.options.debug}),this.calculateRange=r((()=&gt;[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((e,t,n)=&gt;this.range=e.length&gt;0&amp;&amp;t&gt;0?function({measurements:e,outerSize:t,scrollOffset:n}){const o=e.length-1,i=b(0,o,(t=&gt;e[t].start),n);let r=i;for(;r&lt;o&amp;&amp;e[r].end&lt;n+t;)r++;return{startIndex:i,endIndex:r}}({measurements:e,outerSize:t,scrollOffset:n}):null),{key:!1,debug:()=&gt;this.options.debug}),this.getIndexes=r((()=&gt;[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,n,o)=&gt;null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:o})),{key:!1,debug:()=&gt;this.options.debug}),this.indexFromElement=e=&gt;{const 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)=&gt;{const n=this.indexFromElement(e),o=this.getMeasurements()[n];if(!o||!e.isConnected)return void this.elementsCache.forEach(((t,n)=&gt;{t===e&amp;&amp;(this.observer.unobserve(e),this.elementsCache.delete(n))}));const i=this.elementsCache.get(o.key);i!==e&amp;&amp;(i&amp;&amp;this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o.key,e)),this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=&gt;{const n=this.getMeasurements()[e];if(!n)return;const o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&amp;&amp;((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start&lt;this.getScrollOffset()+this.scrollAdjustments)&amp;&amp;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(!0,!1))},this.measureElement=e=&gt;{e&amp;&amp;this._measureElement(e,void 0)},this.getVirtualItems=r((()=&gt;[this.getIndexes(),this.getMeasurements()]),((e,t)=&gt;{const n=[];for(let o=0,i=e.length;o&lt;i;o++){const i=t[e[o]];n.push(i)}return n}),{key:!1,debug:()=&gt;this.options.debug}),this.getVirtualItemForOffset=e=&gt;{const t=this.getMeasurements();if(0!==t.length)return l(t[b(0,t.length-1,(e=&gt;l(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=&gt;{const n=this.getSize(),o=this.getScrollOffset();"auto"===t&amp;&amp;(t=e&lt;=o?"start":e&gt;=o+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&amp;&amp;(e-=n/2));const i=this.options.horizontal?"scrollWidth":"scrollHeight",r=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n;return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=(e,t="auto")=&gt;{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getMeasurements()[e];if(!n)return;const o=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end&gt;=i+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start&lt;=i+this.options.scrollPaddingStart))return[i,t];t="start"}const r="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t),t]},this.isDynamicMode=()=&gt;this.elementsCache.size&gt;0,this.cancelScrollToIndex=()=&gt;{null!==this.scrollToIndexTimeoutId&amp;&amp;this.targetWindow&amp;&amp;(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=&gt;{this.cancelScrollToIndex(),"smooth"===n&amp;&amp;this.isDynamicMode()&amp;&amp;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}={})=&gt;{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&amp;&amp;this.isDynamicMode()&amp;&amp;console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(e,t);if(!o)return;const[i,r]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&amp;&amp;this.isDynamicMode()&amp;&amp;this.targetWindow&amp;&amp;(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=&gt;{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[i]=l(this.getOffsetForIndex(e,r));t=i,o=this.getScrollOffset(),Math.abs(t-o)&lt;1||this.scrollToIndex(e,{align:r,behavior:n})}else this.scrollToIndex(e,{align:r,behavior:n});var t,o})))},this.scrollBy=(e,{behavior:t}={})=&gt;{this.cancelScrollToIndex(),"smooth"===t&amp;&amp;this.isDynamicMode()&amp;&amp;console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=&gt;{var e;const t=this.getMeasurements();let n;return n=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=&gt;e.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:n})=&gt;{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=&gt;{var e,t;this.itemSizeCache=new Map,null==(t=(e=this.options).onChange)||t.call(e,this,!1)},this.setOptions(e)}}const b=(e,t,n,o)=&gt;{for(;e&lt;=t;){const i=(e+t)/2|0,r=n(i);if(r&lt;o)e=i+1;else{if(!(r&gt;o))return i;t=i-1}}return e&gt;0?e-1:0};const g="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;function x(e){const t=o.useReducer((()=&gt;({})),{})[1],n={...e,onChange:(n,o)=&gt;{var r;o?(0,i.flushSync)(t):t(),null==(r=e.onChange)||r.call(e,n,o)}},[r]=o.useState((()=&gt;new m(n)));return r.setOptions(n),o.useEffect((()=&gt;r._didMount()),[]),g((()=&gt;r._willUpdate())),r}var O=n(16723),I=n(3855);function R(e,t){let[n,i]=(0,o.useState)(e),r=(0,I.E)(e);return(0,O.e)((()=&gt;i(r.current)),[r,i,...t]),n}var S=n(73781);var T=n(94192),C=n(19946),y=n(39650),E=n(51074),M=n(14157),w=n(23784),z=n(40476),P=n(31591),A=n(96599),k=n(46045),F=n(16567),D=n(15597),_=n(64103),L=n(11497),V=n(9362),j=n(84575);function B(e={},t=null,n=[]){for(let[o,i]of Object.entries(e))W(n,$(t,o),i);return n}function $(e,t){return e?e+"["+t+"]":t}function W(e,t,n){if(Array.isArray(n))for(let[o,i]of n.entries())W(e,$(t,o.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):B(n,t,e)}var N,K,U=n(32984),q=n(78657),Y=n(12351),G=n(61363),Z=n(83454),H=(e=&gt;(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(H||{}),J=(e=&gt;(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(J||{}),Q=((K=Q||{})[K.Pointer=0]="Pointer",K[K.Focus=1]="Focus",K[K.Other=2]="Other",K),X=((N=X||{})[N.OpenCombobox=0]="OpenCombobox",N[N.CloseCombobox=1]="CloseCombobox",N[N.GoToOption=2]="GoToOption",N[N.RegisterOption=3]="RegisterOption",N[N.UnregisterOption=4]="UnregisterOption",N[N.RegisterLabel=5]="RegisterLabel",N[N.SetActivationTrigger=6]="SetActivationTrigger",N[N.UpdateVirtualOptions=7]="UpdateVirtualOptions",N);function ee(e,t=(e=&gt;e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),i=o.length&gt;0&amp;&amp;null!==o[0].dataRef.current.order?o.sort(((e,t)=&gt;e.dataRef.current.order-t.dataRef.current.order)):(0,j.z2)(o,(e=&gt;e.dataRef.current.domRef.current)),r=n?i.indexOf(n):null;return-1===r&amp;&amp;(r=null),{options:i,activeOptionIndex:r}}let te={1(e){var t;return null!=(t=e.dataRef.current)&amp;&amp;t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&amp;&amp;t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&amp;&amp;n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,o,i,r,l;if(null!=(n=e.dataRef.current)&amp;&amp;n.disabled||null!=(o=e.dataRef.current)&amp;&amp;o.optionsRef.current&amp;&amp;(null==(i=e.dataRef.current)||!i.optionsPropsRef.current.static)&amp;&amp;1===e.comboboxState)return e;if(e.virtual){let n=t.focus===L.T.Specific?t.idx:(0,L.d)(t,{resolveItems:()=&gt;e.virtual.options,resolveActiveIndex:()=&gt;{var t,n;return null!=(n=null!=(t=e.activeOptionIndex)?t:e.virtual.options.findIndex((t=&gt;!e.virtual.disabled(t))))?n:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),o=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===n&amp;&amp;e.activationTrigger===o?e:{...e,activeOptionIndex:n,activationTrigger:o}}let s=ee(e);if(null===s.activeOptionIndex){let e=s.options.findIndex((e=&gt;!e.dataRef.current.disabled));-1!==e&amp;&amp;(s.activeOptionIndex=e)}let a=t.focus===L.T.Specific?t.idx:(0,L.d)(t,{resolveItems:()=&gt;s.options,resolveActiveIndex:()=&gt;s.activeOptionIndex,resolveId:e=&gt;e.id,resolveDisabled:e=&gt;e.dataRef.current.disabled}),u=null!=(l=t.trigger)?l:2;return e.activeOptionIndex===a&amp;&amp;e.activationTrigger===u?e:{...e,...s,activeOptionIndex:a,activationTrigger:u}},3:(e,t)=&gt;{var n,o,i;if(null!=(n=e.dataRef.current)&amp;&amp;n.virtual)return{...e,options:[...e.options,t.payload]};let r=t.payload,l=ee(e,(e=&gt;(e.push(r),e)));null===e.activeOptionIndex&amp;&amp;null!=(o=e.dataRef.current)&amp;&amp;o.isSelected(t.payload.dataRef.current.value)&amp;&amp;(l.activeOptionIndex=l.options.indexOf(r));let s={...e,...l,activationTrigger:2};return null!=(i=e.dataRef.current)&amp;&amp;i.__demoMode&amp;&amp;void 0===e.dataRef.current.value&amp;&amp;(s.activeOptionIndex=0),s},4:(e,t)=&gt;{var n;if(null!=(n=e.dataRef.current)&amp;&amp;n.virtual)return{...e,options:e.options.filter((e=&gt;e.id!==t.id))};let o=ee(e,(e=&gt;{let n=e.findIndex((e=&gt;e.id===t.id));return-1!==n&amp;&amp;e.splice(n,1),e}));return{...e,...o,activationTrigger:2}},5:(e,t)=&gt;e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=&gt;e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=&gt;{var n;if((null==(n=e.virtual)?void 0:n.options)===t.options)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:Object.assign({},e.virtual,{options:t.options})}}},ne=(0,o.createContext)(null);function oe(e){let t=(0,o.useContext)(ne);if(null===t){let t=new Error(`&lt;${e} /&gt; is missing a parent &lt;Combobox /&gt; component.`);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(t,oe),t}return t}ne.displayName="ComboboxActionsContext";let ie=(0,o.createContext)(null);function re(e){var t;let n=se("VirtualProvider"),[i,r]=(0,o.useMemo)((()=&gt;{let e=n.optionsRef.current;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[n.optionsRef.current]),l=(u={scrollPaddingStart:i,scrollPaddingEnd:r,count:n.virtual.options.length,estimateSize:()=&gt;40,getScrollElement(){var e;return null!=(e=n.optionsRef.current)?e:null},overscan:12},x({observeElementRect:c,observeElementOffset:p,scrollToFn:v,...u})),[s,a]=(0,o.useState)(0);var u;return(0,O.e)((()=&gt;{a((e=&gt;e+1))}),[null==(t=n.virtual)?void 0:t.options]),o.createElement(ie.Provider,{value:l},o.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=&gt;{if(e){if("undefined"!=typeof Z&amp;&amp;void 0!==Z.env.JEST_WORKER_ID||0===n.activationTrigger)return;null!==n.activeOptionIndex&amp;&amp;n.virtual.options.length&gt;n.activeOptionIndex&amp;&amp;l.scrollToIndex(n.activeOptionIndex)}}},l.getVirtualItems().map((t=&gt;{var i;return o.createElement(o.Fragment,{key:t.key},o.cloneElement(null==(i=e.children)?void 0:i.call(e,{option:n.virtual.options[t.index],open:0===n.comboboxState}),{key:`${s}-${t.key}`,"data-index":t.index,"aria-setsize":n.virtual.options.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))}))))}let le=(0,o.createContext)(null);function se(e){let t=(0,o.useContext)(le);if(null===t){let t=new Error(`&lt;${e} /&gt; is missing a parent &lt;Combobox /&gt; component.`);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(t,se),t}return t}function ae(e,t){return(0,U.E)(t.type,te,e,t)}le.displayName="ComboboxDataContext";let ue=o.Fragment;let ce=Y.AN.RenderStrategy|Y.AN.Static;let de=(0,Y.yV)((function(e,t){let{value:n,defaultValue:i,onChange:r,form:l,name:s,by:a=null,disabled:u=!1,__demoMode:c=!1,nullable:d=!1,multiple:h=!1,immediate:p=!1,virtual:f=null,...v}=e,m=null,[b=(h?[]:void 0),g]=function(e,t,n){let[i,r]=(0,o.useState)(n),l=void 0!==e,s=(0,o.useRef)(l),a=(0,o.useRef)(!1),u=(0,o.useRef)(!1);return!l||s.current||a.current?!l&amp;&amp;s.current&amp;&amp;!u.current&amp;&amp;(u.current=!0,s.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,s.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:i,(0,S.z)((e=&gt;(l||r(e),null==t?void 0:t(e))))]}(n,r,i),[x,I]=(0,o.useReducer)(ae,{dataRef:(0,o.createRef)(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),R=(0,o.useRef)(!1),C=(0,o.useRef)({static:!1,hold:!1}),E=(0,o.useRef)(null),M=(0,o.useRef)(null),w=(0,o.useRef)(null),z=(0,o.useRef)(null),P=(0,S.z)("string"==typeof a?(e,t)=&gt;{let n=a;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:null!=a?a:(e,t)=&gt;e===t),A=(0,S.z)((e=&gt;x.options.findIndex((t=&gt;P(t.dataRef.current.value,e))))),D=(0,o.useCallback)((e=&gt;(0,U.E)(V.mode,{1:()=&gt;b.some((t=&gt;P(t,e))),0:()=&gt;P(b,e)})),[b]),_=(0,S.z)((e=&gt;x.activeOptionIndex===A(e))),V=(0,o.useMemo)((()=&gt;({...x,immediate:false,optionsPropsRef:C,labelRef:E,inputRef:M,buttonRef:w,optionsRef:z,value:b,defaultValue:i,disabled:u,mode:h?1:0,virtual:x.virtual,get activeOptionIndex(){if(R.current&amp;&amp;null===x.activeOptionIndex&amp;&amp;x.options.length&gt;0){m;let e=x.options.findIndex((e=&gt;!e.dataRef.current.disabled));if(-1!==e)return e}return x.activeOptionIndex},calculateIndex:A,compare:P,isSelected:D,isActive:_,nullable:d,__demoMode:c})),[b,i,u,h,d,c,x,m]);(0,O.e)((()=&gt;{}),[m,void 0]),(0,O.e)((()=&gt;{x.dataRef.current=V}),[V]),(0,y.O)([V.buttonRef,V.inputRef,V.optionsRef],(()=&gt;J.closeCombobox()),0===V.comboboxState);let j=(0,o.useMemo)((()=&gt;{var e,t,n;return{open:0===V.comboboxState,disabled:u,activeIndex:V.activeOptionIndex,activeOption:null===V.activeOptionIndex?null:V.virtual?V.virtual.options[null!=(e=V.activeOptionIndex)?e:0]:null!=(n=null==(t=V.options[V.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:b}}),[V,u,b]),$=(0,S.z)((()=&gt;{if(null!==V.activeOptionIndex){if(V.virtual)Z(V.virtual.options[V.activeOptionIndex]);else{let{dataRef:e}=V.options[V.activeOptionIndex];Z(e.current.value)}J.goToOption(L.T.Specific,V.activeOptionIndex)}})),W=(0,S.z)((()=&gt;{I({type:0}),R.current=!0})),N=(0,S.z)((()=&gt;{I({type:1}),R.current=!1})),K=(0,S.z)(((e,t,n)=&gt;(R.current=!1,e===L.T.Specific?I({type:2,focus:L.T.Specific,idx:t,trigger:n}):I({type:2,focus:e,trigger:n})))),q=(0,S.z)(((e,t)=&gt;(I({type:3,payload:{id:e,dataRef:t}}),()=&gt;{V.isActive(t.current.value)&amp;&amp;(R.current=!0),I({type:4,id:e})}))),G=(0,S.z)((e=&gt;(I({type:5,id:e}),()=&gt;I({type:5,id:null})))),Z=(0,S.z)((e=&gt;(0,U.E)(V.mode,{0:()=&gt;null==g?void 0:g(e),1(){let t=V.value.slice(),n=t.findIndex((t=&gt;P(t,e)));return-1===n?t.push(e):t.splice(n,1),null==g?void 0:g(t)}}))),H=(0,S.z)((e=&gt;{I({type:6,trigger:e})})),J=(0,o.useMemo)((()=&gt;({onChange:Z,registerOption:q,registerLabel:G,goToOption:K,closeCombobox:N,openCombobox:W,setActivationTrigger:H,selectActiveOption:$})),[]),Q=null===t?{}:{ref:t},X=(0,o.useRef)(null),ee=(0,T.G)();return(0,o.useEffect)((()=&gt;{X.current&amp;&amp;void 0!==i&amp;&amp;ee.addEventListener(X.current,"reset",(()=&gt;{null==g||g(i)}))}),[X,g]),o.createElement(ne.Provider,{value:J},o.createElement(le.Provider,{value:V},o.createElement(F.up,{value:(0,U.E)(V.comboboxState,{0:F.ZM.Open,1:F.ZM.Closed})},null!=s&amp;&amp;null!=b&amp;&amp;B({[s]:b}).map((([e,t],n)=&gt;o.createElement(k._,{features:k.A.Hidden,ref:0===n?e=&gt;{var t;X.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,Y.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,disabled:u,name:e,value:t})}))),(0,Y.sY)({ourProps:Q,theirProps:v,slot:j,defaultTag:ue,name:"Combobox"}))))})),he=(0,Y.yV)((function(e,t){var n;let i=se("Combobox.Button"),r=oe("Combobox.Button"),l=(0,w.T)(i.buttonRef,t),s=(0,C.M)(),{id:a=`headlessui-combobox-button-${s}`,...u}=e,c=(0,T.G)(),d=(0,S.z)((e=&gt;{switch(e.key){case G.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===i.comboboxState&amp;&amp;r.openCombobox(),c.nextFrame((()=&gt;{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case G.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===i.comboboxState&amp;&amp;(r.openCombobox(),c.nextFrame((()=&gt;{i.value||r.goToOption(L.T.Last)}))),c.nextFrame((()=&gt;{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case G.R.Escape:return 0!==i.comboboxState?void 0:(e.preventDefault(),i.optionsRef.current&amp;&amp;!i.optionsPropsRef.current.static&amp;&amp;e.stopPropagation(),r.closeCombobox(),c.nextFrame((()=&gt;{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),h=(0,S.z)((e=&gt;{if((0,_.P)(e.currentTarget))return e.preventDefault();0===i.comboboxState?r.closeCombobox():(e.preventDefault(),r.openCombobox()),c.nextFrame((()=&gt;{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),p=R((()=&gt;{if(i.labelId)return[i.labelId,a].join(" ")}),[i.labelId,a]),f=(0,o.useMemo)((()=&gt;({open:0===i.comboboxState,disabled:i.disabled,value:i.value})),[i]),v={ref:l,id:a,type:(0,M.f)(e,i.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.comboboxState,"aria-labelledby":p,disabled:i.disabled,onClick:h,onKeyDown:d};return(0,Y.sY)({ourProps:v,theirProps:u,slot:f,defaultTag:"button",name:"Combobox.Button"})})),pe=(0,Y.yV)((function(e,t){var n,i,r,l,s;let a=(0,C.M)(),{id:u=`headlessui-combobox-input-${a}`,onChange:c,displayValue:d,type:h="text",...p}=e,f=se("Combobox.Input"),v=oe("Combobox.Input"),m=(0,w.T)(f.inputRef,t),b=(0,E.i)(f.inputRef),g=(0,o.useRef)(!1),x=(0,T.G)(),O=(0,S.z)((()=&gt;{v.onChange(null),f.optionsRef.current&amp;&amp;(f.optionsRef.current.scrollTop=0),v.goToOption(L.T.Nothing)})),I=function(){var e;return"function"==typeof d&amp;&amp;void 0!==f.value?null!=(e=d(f.value))?e:"":"string"==typeof f.value?f.value:""}();(0,A.q)((([e,t],[n,o])=&gt;{if(g.current)return;let i=f.inputRef.current;i&amp;&amp;((0===o&amp;&amp;1===t||e!==n)&amp;&amp;(i.value=e),requestAnimationFrame((()=&gt;{if(g.current||!i||(null==b?void 0:b.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&amp;&amp;0===e&amp;&amp;i.setSelectionRange(i.value.length,i.value.length)})))}),[I,f.comboboxState,b]),(0,A.q)((([e],[t])=&gt;{if(0===e&amp;&amp;1===t){if(g.current)return;let e=f.inputRef.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)}}),[f.comboboxState]);let y=(0,o.useRef)(!1),M=(0,S.z)((()=&gt;{y.current=!0})),z=(0,S.z)((()=&gt;{x.nextFrame((()=&gt;{y.current=!1}))})),P=(0,S.z)((e=&gt;{switch(g.current=!0,e.key){case G.R.Enter:if(g.current=!1,0!==f.comboboxState||y.current)return;if(e.preventDefault(),e.stopPropagation(),null===f.activeOptionIndex)return void v.closeCombobox();v.selectActiveOption(),0===f.mode&amp;&amp;v.closeCombobox();break;case G.R.ArrowDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),(0,U.E)(f.comboboxState,{0:()=&gt;v.goToOption(L.T.Next),1:()=&gt;v.openCombobox()});case G.R.ArrowUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),(0,U.E)(f.comboboxState,{0:()=&gt;v.goToOption(L.T.Previous),1:()=&gt;{v.openCombobox(),x.nextFrame((()=&gt;{f.value||v.goToOption(L.T.Last)}))}});case G.R.Home:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),v.goToOption(L.T.First);case G.R.PageUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),v.goToOption(L.T.First);case G.R.End:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),v.goToOption(L.T.Last);case G.R.PageDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),v.goToOption(L.T.Last);case G.R.Escape:return g.current=!1,0!==f.comboboxState?void 0:(e.preventDefault(),f.optionsRef.current&amp;&amp;!f.optionsPropsRef.current.static&amp;&amp;e.stopPropagation(),f.nullable&amp;&amp;0===f.mode&amp;&amp;null===f.value&amp;&amp;O(),v.closeCombobox());case G.R.Tab:if(g.current=!1,0!==f.comboboxState)return;0===f.mode&amp;&amp;1!==f.activationTrigger&amp;&amp;v.selectActiveOption(),v.closeCombobox()}})),k=(0,S.z)((e=&gt;{null==c||c(e),f.nullable&amp;&amp;0===f.mode&amp;&amp;""===e.target.value&amp;&amp;O(),v.openCombobox()})),F=(0,S.z)((e=&gt;{var t,n,o;let i=null!=(t=e.relatedTarget)?t:D.m.find((t=&gt;t!==e.currentTarget));if(g.current=!1,(null==(n=f.optionsRef.current)||!n.contains(i))&amp;&amp;(null==(o=f.buttonRef.current)||!o.contains(i))&amp;&amp;0===f.comboboxState)return e.preventDefault(),0===f.mode&amp;&amp;(f.nullable&amp;&amp;null===f.value?O():1!==f.activationTrigger&amp;&amp;v.selectActiveOption()),v.closeCombobox()})),_=(0,S.z)((e=&gt;{var t,n,o;let i=null!=(t=e.relatedTarget)?t:D.m.find((t=&gt;t!==e.currentTarget));null!=(n=f.buttonRef.current)&amp;&amp;n.contains(i)||null!=(o=f.optionsRef.current)&amp;&amp;o.contains(i)||f.disabled||f.immediate&amp;&amp;0!==f.comboboxState&amp;&amp;(v.openCombobox(),x.nextFrame((()=&gt;{v.setActivationTrigger(1)})))})),V=R((()=&gt;{if(f.labelId)return[f.labelId].join(" ")}),[f.labelId]),j=(0,o.useMemo)((()=&gt;({open:0===f.comboboxState,disabled:f.disabled})),[f]),B={ref:m,id:u,role:"combobox",type:h,"aria-controls":null==(n=f.optionsRef.current)?void 0:n.id,"aria-expanded":0===f.comboboxState,"aria-activedescendant":null===f.activeOptionIndex?void 0:f.virtual?null==(i=f.options.find((e=&gt;{var t;return!(null!=(t=f.virtual)&amp;&amp;t.disabled(e.dataRef.current.value))&amp;&amp;f.compare(e.dataRef.current.value,f.virtual.options[f.activeOptionIndex])})))?void 0:i.id:null==(r=f.options[f.activeOptionIndex])?void 0:r.id,"aria-labelledby":V,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(l=e.defaultValue)?l:void 0!==f.defaultValue?null==d?void 0:d(f.defaultValue):null)?s:f.defaultValue,disabled:f.disabled,onCompositionStart:M,onCompositionEnd:z,onKeyDown:P,onChange:k,onFocus:_,onBlur:F};return(0,Y.sY)({ourProps:B,theirProps:p,slot:j,defaultTag:"input",name:"Combobox.Input"})})),fe=(0,Y.yV)((function(e,t){let n=(0,C.M)(),{id:i=`headlessui-combobox-label-${n}`,...r}=e,l=se("Combobox.Label"),s=oe("Combobox.Label"),a=(0,w.T)(l.labelRef,t);(0,O.e)((()=&gt;s.registerLabel(i)),[i]);let u=(0,S.z)((()=&gt;{var e;return null==(e=l.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,o.useMemo)((()=&gt;({open:0===l.comboboxState,disabled:l.disabled})),[l]);return(0,Y.sY)({ourProps:{ref:a,id:i,onClick:u},theirProps:r,slot:c,defaultTag:"label",name:"Combobox.Label"})})),ve=(0,Y.yV)((function(e,t){let n=(0,C.M)(),{id:i=`headlessui-combobox-options-${n}`,hold:r=!1,...l}=e,s=se("Combobox.Options"),a=(0,w.T)(s.optionsRef,t),u=(0,F.oJ)(),c=null!==u?(u&amp;F.ZM.Open)===F.ZM.Open:0===s.comboboxState;(0,O.e)((()=&gt;{var t;s.optionsPropsRef.current.static=null!=(t=e.static)&amp;&amp;t}),[s.optionsPropsRef,e.static]),(0,O.e)((()=&gt;{s.optionsPropsRef.current.hold=r}),[s.optionsPropsRef,r]),(0,P.B)({container:s.optionsRef.current,enabled:0===s.comboboxState,accept:e=&gt;"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=R((()=&gt;{var e,t;return null!=(t=s.labelId)?t:null==(e=s.buttonRef.current)?void 0:e.id}),[s.labelId,s.buttonRef.current]),h=(0,o.useMemo)((()=&gt;({open:0===s.comboboxState,option:void 0})),[s]),p={"aria-labelledby":d,role:"listbox","aria-multiselectable":1===s.mode||void 0,id:i,ref:a};return s.virtual&amp;&amp;0===s.comboboxState&amp;&amp;Object.assign(l,{children:o.createElement(re,null,l.children)}),(0,Y.sY)({ourProps:p,theirProps:l,slot:h,defaultTag:"ul",features:ce,visible:c,name:"Combobox.Options"})})),me=(0,Y.yV)((function(e,t){var n;let i=(0,C.M)(),{id:r=`headlessui-combobox-option-${i}`,disabled:l=!1,value:s,order:a=null,...u}=e,c=se("Combobox.Option"),d=oe("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(s):null!==c.activeOptionIndex&amp;&amp;(null==(n=c.options[c.activeOptionIndex])?void 0:n.id)===r,p=c.isSelected(s),f=(0,o.useRef)(null),v=(0,I.E)({disabled:l,value:s,domRef:f,order:a}),m=(0,o.useContext)(ie),b=(0,w.T)(t,f,m?m.measureElement:null),g=(0,S.z)((()=&gt;d.onChange(s)));(0,O.e)((()=&gt;d.registerOption(r,v)),[v,r]);let x=(0,o.useRef)(!(c.virtual||c.__demoMode));(0,O.e)((()=&gt;{if(!c.virtual||!c.__demoMode)return;let e=(0,V.k)();return e.requestAnimationFrame((()=&gt;{x.current=!0})),e.dispose}),[c.virtual,c.__demoMode]),(0,O.e)((()=&gt;{if(!x.current||0!==c.comboboxState||!h||0===c.activationTrigger)return;let e=(0,V.k)();return e.requestAnimationFrame((()=&gt;{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let R=(0,S.z)((e=&gt;{var t;if(l||null!=(t=c.virtual)&amp;&amp;t.disabled(s))return e.preventDefault();g(),(0,q.tq)()||requestAnimationFrame((()=&gt;{var e;return null==(e=c.inputRef.current)?void 0:e.focus({preventScroll:!0})})),0===c.mode&amp;&amp;requestAnimationFrame((()=&gt;d.closeCombobox()))})),T=(0,S.z)((()=&gt;{var e;if(l||null!=(e=c.virtual)&amp;&amp;e.disabled(s))return d.goToOption(L.T.Nothing);let t=c.calculateIndex(s);d.goToOption(L.T.Specific,t)})),y=(0,z.g)(),E=(0,S.z)((e=&gt;y.update(e))),M=(0,S.z)((e=&gt;{var t;if(!y.wasMoved(e)||l||null!=(t=c.virtual)&amp;&amp;t.disabled(s)||h)return;let n=c.calculateIndex(s);d.goToOption(L.T.Specific,n,0)})),P=(0,S.z)((e=&gt;{var t;y.wasMoved(e)&amp;&amp;(l||null!=(t=c.virtual)&amp;&amp;t.disabled(s)||h&amp;&amp;(c.optionsPropsRef.current.hold||d.goToOption(L.T.Nothing)))})),A=(0,o.useMemo)((()=&gt;({active:h,selected:p,disabled:l})),[h,p,l]);return(0,Y.sY)({ourProps:{id:r,ref:b,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":p,disabled:void 0,onClick:R,onFocus:T,onPointerEnter:E,onMouseEnter:E,onPointerMove:M,onMouseMove:M,onPointerLeave:P,onMouseLeave:P},theirProps:u,slot:A,defaultTag:"li",name:"Combobox.Option"})})),be=Object.assign(de,{Input:pe,Button:he,Label:fe,Options:ve,Option:me})}}]);</pre></body></html>