PageSourceSearch

https://unternehmensregister.de/_next/static/chunks/6093-dfe9dd0ef1b4aa92.js

js unternehmensregister.de collected 2026-10-01 07:08:43 UTC 49,748 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6093],{73149:(e,t,i)=>{i.d(t,{D:()=>c});var n=i(93101),s=i(51522),o=i(56609),l=i(44179),r=i(91360),a=i(46783),u=i(8109),d=i(27509);let c=(0,a.FX)(function(e,t){let i=`headlessui-control-${(0,n.useId)()}`,[c,h]=(0,d.b0)(),[p,f]=(0,u.rU)(),m=(0,o._)(),{disabled:g=m||!1,...v}=e,b=(0,s._)({disabled:g}),S=(0,a.Ci)();return n.createElement(o.S,{value:g},n.createElement(h,{value:c},n.createElement(f,{value:p},n.createElement(r.J,{id:i},S({ourProps:{ref:t,disabled:g||void 0,"aria-disabled":g||void 0},theirProps:{...v,children:n.createElement(l.PC,null,"function"==typeof v.children?v.children(b):v.children)},slot:b,defaultTag:"div",name:"Field"})))))})},98737:(e,t,i)=>{let n,s,o,l,r;i.d(t,{G3:()=>eJ,oK:()=>eN,jO:()=>eU,Kc:()=>e$});var a=i(96405),u=i(51353),d=i(93101),c=i(97568);function h(e,t,i){let n,s=i.initialDeps??[],o=!0;function l(){let l=e();return l.length!==s.length||l.some((e,t)=>s[t]!==e)?(s=l,n=t(...l),(null==i?void 0:i.onChange)&&!(o&&i.skipInitialOnChange)&&i.onChange(n),o=!1,n):n}return l.updateDeps=e=>{s=e},l}function p(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let f=()=>{if(void 0!==n)return n;if("u"<typeof navigator)return n=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return n=!0;let e=navigator.maxTouchPoints;return n="MacIntel"===navigator.platform&&void 0!==e&&e>0},m=e=>{let{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},g=e=>e,v=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=Array(i);for(let e=0;e<i;e++)n[e]=t+e;return n},b=(e,t)=>{let i=e.scrollElement;if(!i)return;let n=e.targetWindow;if(!n)return;let s=e=>{let{width:i,height:n}=e;t({width:Math.round(i),height:Math.round(n)})};if(s(m(i)),!n.ResizeObserver)return()=>{};let o=new n.ResizeObserver(t=>{let n=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void s({width:t.inlineSize,height:t.blockSize})}s(m(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return o.observe(i,{box:"border-box"}),()=>{o.unobserve(i)}},S={passive:!0},x="u"<typeof window||"onscrollend"in window,O=(e,t)=>((e,t,i)=>{var n,s;let o,l=e.scrollElement;if(!l)return;let r=e.targetWindow;if(!r)return;let a=e.options.useScrollendEvent&&x,u=0,d=a?null:(n=()=>t(u,!1),s=e.options.isScrollingResetDelay,function(...e){r.clearTimeout(o),o=r.setTimeout(()=>n.apply(this,e),s)}),c=e=>()=>{u=i(l),null==d||d(),t(u,e)},h=c(!0),p=c(!1);return l.addEventListener("scroll",h,S),a&&l.addEventListener("scrollend",p,S),()=>{l.removeEventListener("scroll",h),a&&l.removeEventListener("scrollend",p)}})(e,t,t=>{let{horizontal:i,isRtl:n}=e.options;return i?t.scrollLeft*(n&&-1||1):t.scrollTop}),E=(e,t,i)=>{if(i.options.useCachedMeasurements){let t=i.indexFromElement(e),n=i.options.getItemKey(t);return i.itemSizeCache.get(n)??i.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=i.indexFromElement(e),n=i.options.getItemKey(t),s=i.itemSizeCache.get(n);if(void 0!==s)return s}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]}
1,T=(e,{adjustments:t=0,behavior:i},n)=>{var s,o;null==(o=null==(s=n.scrollElement)?void 0:s.scrollTo)||o.call(s,{[n.options.horizontal?"left":"top"]:e+t,behavior:i})};class y{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,i;return(null==(i=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:i.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,i=this.indexFromElement(t);if(!t.isConnected){for(let[e,i]of(this.observer.unobserve(t),this.elementsCache))if(i===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,i;let n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:g,rangeExtractor:v,onChange:()=>{},measureElement:E,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let i=e[t];void 0!==i&&(n[t]=i)}let s=this.options,o=null,l=null,r=!1;if(void 0!==s&&s.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){let e=s.count,a=n.count,u=this.getMeasurements(),d=e>0?(null==(t=u[0])?void 0:t.key)??s.getItemKey(0):null,c=e>0?(null==(i=u[e-1])?void 0:i.key)??s.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(n.getItemKey(0)!==d||n.getItemKey(a-1)!==c)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);let i=!0===n.followOnAppend?"auto":n.followOnAppend||null;i&&a>e&&this.isAtEnd(s.scrollEndThreshold)&&(0===e||n.getItemKey(a-1)!==c)&&(l=i)}}this.options=n,r&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,u=0;if(o&&null!==this.scrollOffset){let[e,t]=o,i=this.getMeasurements(),{count:n,getItemKey:s}=this.options,l=0;for(;l<n&&s(l)!==e;)l++;if(l<n){let e=i[l];if(e){let i=Math.max(0,e.start+t);i!==this.scrollOffset&&(u=i-this.scrollOffset,this.scrollOffset=i,a=!0)}}}(a||l)&&(this.pendingScrollAnchor=[a?o[0]:null,a?o[1]:0,l,u])},this.notify=e=>{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=h(()=>(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(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,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)return void this.maybeNotify();if(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
1=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let i=this.getScrollOffset();this.scrollDirection=t?i===e?this.scrollDirection:i<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{this._iosTouching=!1,f()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,S),e.addEventListener("touchend",i,S),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",i),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let i=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,i&&this.scrollElement&&this.options.enabled){let[e,t,n,s]=i;null===e||n||(f()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==s&&(this._iosDeferredAdjustment+=s):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=i,behavior:void 0})},this.rafId=null,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.getMeasurementOptions=h(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,i,n,s,o,l,r)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:i,getItemKey:n,enabled:s,lanes:o,laneAssignmentMode:l,gap:r}),{key:!1}),this.getMeasurements=h(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:i,getItemKey:n,enabled:s,lanes:o,laneAssignmentMode:l,gap:r},a)=>{let u=this.itemSizeCache;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===o){var c;let s,o=2*e,l=this._flatMeasurements;if(!l||l.length<o){let e=new Float64Array(o);l&&d>0&&e.set(l.subarray(0,2*d)),l=e,this._flatMeasurements=l}if(0===d)s=t+i;else{let e=d-1;s=l[2*e]+l[2*e+1]+r}for(let t=d;t<e;t++){let e=n(t),i=u.get(e),o="number"==typeof i?i:this.options.estimateSize(t);l[2*t]=s,l[2*t+1]=o,s+=o+r}let a=(c=l,new Proxy(Array(e),{get(t,i,s){if("string"==typeof i){let s=i.charCodeAt(0);if(s>=48&&s<=57){let s=+i;if(Number.isInteger(s)&&s>=0&&s<e){let e=t[s];if(!e){let i=c[2*s];e=t[s]={index:s,key:n(s),start:i,size:c[2*s+1],end:i+c[2*s+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(t,i,s)}}));return this.measurementsCache=a,a}let h=this.measurementsCache.slice(0,d),p=Array(o).fill(void 0),f=new Float64Array(o),m=0;for(let e=0;e<d;e++){let t=h[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,f[t.lane]=t.end)}for(let s=d;s<e;s++){let e,a,d=n(s),c=this.laneAssignments.get(s),g="estimate"===l||u.has(d);if(void 0!==c&&this.options.lanes>1){let n=p[e=c],s=void 0!==n?h[n]:void 0;a=s?s.end+r:t+i}else if(m===o){let t=0,i=f[0],n=p[0];for(let e=1;e<o;e++){let s=f[e];(s<i||s===i&&p[e]<n)&&(t=e,i=s,n=p[e])}e=t,a=i+r,g&&this.laneAssignments.set(s,e)}else e=s%this.options.lanes,a=t+i,g&&this.laneAssignments.set(s,e);let v=u.get(d),b="number"==typeof v?v:this.options.estimateSize(s),S=a+b;h[s]={index:s,start:a,size:b,end:S,key:d,lane:e},void 0===p[e]&&m++,p[e]=s,f[e]=S}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=h(()=>
1[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,i,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,i,n,s){let o=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:o};if(1===n&&null!==s){let e=function(e,t,i){let n=0;for(;n<=t;){let s=(n+t)/2|0,o=e[2*s];if(o<i)n=s+1;else{if(!(o>i))return s;t=s-1}}return n>0?n-1:0}(s,o,i),n=e,l=i+t;for(;n<o&&s[2*n]+s[2*n+1]<l;)n++;return{startIndex:e,endIndex:n}}let l=I(0,o,t=>e[t].start,i),r=l;if(1===n)for(;r<o&&e[r].end<i+t;)r++;else if(n>1){let s=Array(n).fill(0);for(;r<o&&s.some(e=>e<i+t);){let t=e[r];s[t.lane]=t.end,r++}let a=Array(n).fill(i+t);for(;l>=0&&a.some(e=>e>=i);){let t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%n),r=Math.min(o,r+(n-1-r%n))}return{startIndex:l,endIndex:r}}(e,t,i,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=h(()=>{let e=null,t=null,i=this.calculateRange();return i&&(e=i.startIndex,t=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,i,n,s)=>null===n||null===s?[]:e({startIndex:n,endIndex:s,overscan:t,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let i=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==i&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,i-t),s=Math.min(this.options.count-1,i+t);return e>=n&&e<=s}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),i=this.options.getItemKey(t),n=this.elementsCache.get(i);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(i,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var i,n;let s,o,l;if(e<0||e>=this.options.count)return;let r=this._flatMeasurements;if(1===this.options.lanes&&null!==r)l=this.options.getItemKey(e),o=r[2*e],s=r[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;l=t.key,o=t.start,s=t.size}let a=this.itemSizeCache.get(l)??s,u=t-a;if(0!==u){let r="end"===this.options.anchorTo&&(null==(i=this.scrollState)?void 0:i.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=r?this.getTotalSize():0,c=this.getScrollOffset()+this.scrollAdjustments,h=this.itemSizeCache.has(l)?o+a<=c&&"backward"!==this.scrollDirection:o<c,p=(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:l,start:o,size:s,end:o+s,lane:0},u,this):h);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(l,t),this.itemSizeCacheVersion++;let f=!1;r?f=this.applyScrollAdjustment(this.getTotalSize()-d):p&&(f=this.applyScrollAdjustment(u)),this.notify(f)}},this.getVirtualItems=h(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let n=0,s=e.length;n<s;n++){let s=t[e[n]];i.push(s)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let i=this._flatMeasurements,n=1===this.options.lanes&&null!=i,s=I(0,t.length-1,n?e=>i[2*e]:e=>p(t[e]).start,e);return p(t[s])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,i=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),s=this.getScrollOffset();return"auto"===t&&(t=e>=s+n?"end":"start"),"center"===t?e+=(i-n)/2:"end"===t&&(e-=n),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.getSize(),n=this.getScrollOffset(),s=this.measurementsCache[e];if(!s)return;if("auto"===t)if(s.end>=n+i-this.options.scrollPaddingEnd)t="end";else{if(!(s.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let o="end"===t?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,s.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0;let n=this.getOffsetForAlignment(e,t),s=this.now();this.scrollState={index:null,align:t,behavior:i,startedAt:s,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getOffsetForIndex(e,t);if(!n)return;let[s,o]=n,l=this.now();this.scrollState={index:e,align:o,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let i=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,i=this.getMeasurements();if(0===i.length)t=this.options.paddingStart;else if(1===this.options.lanes){let n=i.length-1,s=this._flatMeasurements;t=null!=s?s[2*n]+s[2*n+1]:(null==(e=i[n])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),n=i.length-1;for(;n>=0&&e.some(e=>null===e);){let t=i[n];null===e[t.lane]&&(e[t.lane]=t.end),n--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
1if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:i})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:i,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&(f()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,i=t!==this.scrollState.lastTargetOffset;if(!i&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,i){let e=this.getSize()||600,i=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&i>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}this.scheduleScrollReconcile()}}let I=(e,t,i,n)=>{for(;e<=t;){let s=(e+t)/2|0,o=i(s);if(o<n)e=s+1;else{if(!(o>n))return s;t=s-1}}return e>0?e-1:0},C="u">typeof document?d.useLayoutEffect:d.useEffect;var _=i(63114),M=i(31018),w=i(81525),R=i(97787),A=i(60153),P=i(50624),F=i(89270),z=i(79787),D=i(7422),k=i(87026),j=i(25713),B=i(75811),V=i(74272),W=i(57733),L=i(15269),N=i(70529),K=i(10010),$=i(48781);function U(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,$.M)(e,"blur",e=>{let i=e.target;N.A3(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),(0,F._)(()=>{if(!(0,K.X7)(e)&&N.A3(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:i,selectionEnd:n}=t.current;null!==i&&null!==n&&e.setSelectionRange(i,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var J=i(99316),X=i(96789),H=i(51522),Y=i(92822),q=i(69960),G=i(60041),Z=i(97793),Q=i(56609),ee=i(44739),et=i(44179),ei=i(51567),en=i(91360),es=i(88332),eo=i(99532),el=i(17530),er=i(30178),ea=i(62815),eu=i(48142),ed=i(8848),ec=i(90020),eh=i(46783),ep=i(8109),ef=i(78475),em=i(27509),eg=i(6314),ev=i(28855),eb=i(72226),eS=i(72045),ex=i(50619),eO=Object.defineProperty,eE=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?eO(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,i},eT=((s=eT||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),ey=((o=ey||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),eI=((l=eI||{})[l.Pointer=0]="Pointer",l[l.Focus=1]="Focus",l[l.Other=2]="Other",l),eC=((r=eC||{})[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.DefaultToFirstOption=6]="DefaultToFirstOption",r[r.SetActivationTrigger=7]="SetActivationTrigger",r[r.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",r[r.SetInputElement=9]="SetInputElement",r[r.SetButtonElement=10]="SetButtonElement",r[r.SetOptionsElement=11]="SetOptionsElement",r[r.MarkInputAsMoved=12]="MarkInputAsMoved",r);function e_(e,t=e=>e){let i=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),s=n.length>0&&null!==n[0].dataRef.current.order?n.sort((e,t)=>
1e.dataRef.current.order-t.dataRef.current.order):(0,ex.wl)(n,e=>e.dataRef.current.domRef.current),o=i?s.indexOf(i):null;return -1===o&&(o=null),{options:s,activeOptionIndex:o}}let eM={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let i=e.inputElement?eS.Fc.Tracked((0,eS.JO)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:i,__demoMode:!1}},0(e){var t,i;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(i=e.dataRef.current)&&i.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:eS.Fc.Idle}}return{...e,comboboxState:0,inputPositionState:eS.Fc.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var i,n,s,o;if(null!=(i=e.dataRef.current)&&i.disabled||e.optionsElement&&!(null!=(n=e.dataRef.current)&&n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:i,disabled:n}=e.virtual,o=t.focus===ea.B.Specific?t.idx:(0,ea.X)(t,{resolveItems:()=>i,resolveActiveIndex:()=>{var t,s;return null!=(s=null!=(t=e.activeOptionIndex)?t:i.findIndex(e=>!n(e)))?s:null},resolveDisabled:n,resolveId(){throw Error("Function not implemented.")}}),l=null!=(s=t.trigger)?s:2;return e.activeOptionIndex===o&&e.activationTrigger===l?e:{...e,activeOptionIndex:o,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=e_(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let r=t.focus===ea.B.Specific?t.idx:(0,ea.X)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===r&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:r,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var i,n,s,o;if(null!=(i=e.dataRef.current)&&i.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,r=e_(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(s=(n=e.dataRef.current).isSelected)&&s.call(n,t.payload.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(l));let a={...e,...r,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var i;if(null!=(i=e.dataRef.current)&&i.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let n=e_(e,e=>{let i=e.findIndex(e=>e.id===t.id);return -1!==i&&e.splice(i,1),e});return{...e,...n,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
1{var i,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let s=e.activeOptionIndex;if(null!==e.activeOptionIndex){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);s=-1!==i?i:null}return{...e,activeOptionIndex:s,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:eS.Fc.Moved}};class ew extends eb.u5{constructor(e){super(e),eE(this,"actions",{onChange:e=>{let{onChange:t,compare:i,mode:n,value:s}=this.state.dataRef.current;return(0,ed.Y)(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=s.slice(),o=n.findIndex(t=>i(t,e));return -1===o?n.push(e):n.splice(o,1),null==t?void 0:t(n)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:ea.B.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),eE(this,"selectors",{activeDescendantId:e=>{var t,i;let n=this.selectors.activeOptionIndex(e);if(null!==n)return e.virtual?null==(i=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[n])))?void 0:i.id:null==(t=e.options[n])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:i}=e.virtual,n=t.findIndex(e=>{var t;return!(null!=(t=null==i?void 0:i(e))&&t)});if(-1!==n)return n}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,i;let n=this.selectors.activeOptionIndex(e);return null===n?null:e.virtual?e.virtual.options[null!=n?n:0]:null!=(i=null==(t=e.options[n])?void 0:t.dataRef.current.value)?i:null},isActive:(e,t,i)=>{var n;let s=this.selectors.activeOptionIndex(e);return null!==s&&(e.virtual?s===e.dataRef.current.calculateIndex(t):(null==(n=e.options[s])?void 0:n.id)===i)},shouldScrollIntoView:(e,t,i)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,i)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=eo.D.get(null);this.disposables.add(t.on(eo.Q.Push,i=>{t.selectors.isTop(i,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,eS.nY)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:i=!1}){var n;return new ew({id:e,dataRef:{current:{}},comboboxState:+!i,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:eS.Fc.Idle})}reduce(e,t){return(0,ed.Y)(t.type,eM,e,t)}}var eR=i(87622);let eA=(0,d.createContext)(null);function eP(e){let t=(0,d.useContext)(eA);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eF),t}return t}function eF({id:e,virtual:t=null,__demoMode:i=!1}){let n=(0,d.useMemo)(()=>ew.new({id:e,virtual:t,__demoMode:i}),[]);return(0,eR.X)(()=>n.dispose()),n}let ez=(0,d.createContext)(null);function eD(e){let t=(0,d.useContext)(ez);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eD),t}return t}ez.displayName="ComboboxDataContext";let ek=(0,d.createContext)(null);function ej(e){let t=eP("VirtualProvider"),{options:i}=eD("VirtualProvider").virtual,n=(0,el.y)(t,e=>e.optionsElement),[s,o]=(0,d.useMemo)(()=>
1{if(!n)return[0,0];let e=window.getComputedStyle(n);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[n]),l=function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:i="transform",...n}){let s=d.useReducer(e=>e+1,0)[1],o=d.useRef({enabled:t,mode:i,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=i;let l=e=>{let t=o.current;if(!t.enabled||!t.container)return;let i=e.getTotalSize();if(i!==t.lastSize){t.lastSize=i;let n=e.options.horizontal?"width":"height";t.container.style[n]=`${i}px`}},r=e=>{let t=o.current;if(!t.enabled||!t.container)return;l(e);let i=!!e.options.horizontal,n="transform"===t.mode,s=i?"left":"top",r=e.options.scrollMargin;for(let o of e.getVirtualItems()){let l=o.start-r,a=e.elementsCache.get(o.key);a&&t.lastPositions.get(a)!==l&&(t.lastPositions.set(a,l),n?a.style.transform=i?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`:a.style[s]=`${l}px`)}},a={...n,onChange:(t,i)=>{var l;let a=o.current,u=!0;if(a.enabled){r(t);let e=t.range,i=a.prevRange;(u=!i||i.isScrolling!==t.isScrolling||i.startIndex!==(null==e?void 0:e.startIndex)||i.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&i?(0,c.flushSync)(s):s()),null==(l=n.onChange)||l.call(n,t,i)}},[u]=d.useState(()=>{let e=new y(a);return Object.assign(e,{containerRef:t=>{let i=o.current;if(i.container=t,i.lastSize=null,t&&i.enabled){let n=e.getTotalSize();i.lastSize=n;let s=e.options.horizontal?"width":"height";t.style[s]=`${n}px`}}})});return u.setOptions(a),C(()=>u._didMount(),[]),C(()=>(l(u),u._willUpdate())),C(()=>{r(u)}),u}({observeElementRect:b,observeElementOffset:O,scrollToFn:T,...{enabled:0!==i.length,scrollPaddingStart:s,scrollPaddingEnd:o,count:i.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[r,a]=(0,d.useState)(0);(0,k.s)(()=>{a(e=>e+1)},[i]);let u=l.getVirtualItems(),h=(0,el.y)(t,e=>e.activationTrigger===eI.Pointer),p=(0,el.y)(t,t.selectors.activeOptionIndex);return 0===u.length?null:d.createElement(ek.Provider,{value:l},d.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=>{e&&(h||null!==p&&i.length>p&&l.scrollToIndex(p))}},u.map(t=>{var n;return d.createElement(d.Fragment,{key:t.key},d.cloneElement(null==(n=e.children)?void 0:n.call(e,{...e.slot,option:i[t.index]}),{key:`${r}-${t.key}`,"data-index":t.index,"aria-setsize":i.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let eB=d.Fragment,eV=eh.Ac.RenderStrategy|eh.Ac.Static,eW=(0,eh.FX)(function(e,t){let i=(0,d.useId)(),n=(0,Q._)(),{value:s,defaultValue:o,onChange:l,form:r,name:a,by:u,invalid:c=!1,disabled:h=n||!1,onClose:p,__demoMode:f=!1,multiple:m=!1,immediate:g=!1,virtual:v=null,nullable:b,...S}=e,x=(0,R.K)(o),[O=m?[]:void 0,E]=(0,w.P)(s,l,x),T=eF({id:i,virtual:v,__demoMode:f}),y=(0,d.useRef)({static:!1,hold:!1}),I=(0,M.t)(u),C=(0,F._)(e=>v?null===u?v.options.indexOf(e):v.options.findIndex(t=>I(t,e)):T.state.options.findIndex(t=>I(t.dataRef.current.value,e))),_=(0,d.useCallback)(e=>(0,ed.Y)(z.mode,{[ey.Multi]:()=>O.some(t=>I(t,e)),[ey.Single]:()=>I(O,e)}),[O]),A=(0,el.y)(T,e=>e.virtual),P=(0,F._)(()=>null==p?void 0:p()),z=(0,d.useMemo)(()=>({__demoMode:f,immediate:g,optionsPropsRef:y,value:O,defaultValue:x,disabled:h,invalid:c,mode:m?ey.Multi:ey.Single,virtual:v?A:null,onChange:E,isSelected:_,calculateIndex:C,compare:I,onClose:P}),[f,g,y,O,x,h,c,m,v,A,E,_,C,I,P]);(0,k.s)(()=>{var e;v&&T.send({type:eC.UpdateVirtualConfiguration,options:v.options,disabled:null!=(e=v.disabled)?e:null})},[v,null==v?void 0:v.options,null==v?void 0:v.disabled]),(0,k.s)(()=>{T.state.dataRef.current=z},[z]);let[D,j,B,W]=(0,el.y)(T,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),L=eo.D.get(null),N=(0,el.y)(L,(0,d.useCallback)(e=>L.selectors.isTop(e,i),[L,i]));(0,V.j)(N,[j,B,W],()=>T.actions.closeCombobox());let K=(0,el.y)(T,T.selectors.activeOptionIndex),$=(0,el.y)(T,T.selectors.activeOption),U=(0,H._)({open:D===eT.Open,disabled:h,invalid:c,activeIndex:K,activeOption:$,value:O}),[J,X]=(0,em.b0)(),Y=(0,d.useCallback)(()=>
1{if(void 0!==x)return null==E?void 0:E(x)},[E,x]),q=(0,eh.Ci)();return d.createElement(X,{value:J,props:{htmlFor:null==B?void 0:B.id},slot:{open:D===eT.Open,disabled:h}},d.createElement(ee.St,null,d.createElement(ez.Provider,{value:z},d.createElement(eA.Provider,{value:T},d.createElement(es.El,{value:(0,ed.Y)(D,{[eT.Open]:es.Uw.Open,[eT.Closed]:es.Uw.Closed})},null!=a&&d.createElement(et.CL,{disabled:h,data:null!=O?{[a]:O}:{},form:r,onReset:Y}),q({ourProps:null===t?{}:{ref:t},theirProps:S,slot:U,defaultTag:eB,name:"Combobox"}))))))}),eL=(0,eh.FX)(function(e,t){let i=eP("Combobox.Button"),n=eD("Combobox.Button"),[s,o]=(0,d.useState)(null),l=(0,Y.P)(t,o,i.actions.setButtonElement),r=(0,d.useId)(),{id:h=`headlessui-combobox-button-${r}`,disabled:p=n.disabled||!1,autoFocus:f=!1,...m}=e,[g,v,b]=(0,el.y)(i,e=>[e.comboboxState,e.inputElement,e.optionsElement]),S=U(v),x=g===eT.Open;(0,L.s)(x,{trigger:s,action:(0,d.useCallback)(e=>{if(null!=s&&s.contains(e.target)||null!=v&&v.contains(e.target))return L.r.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return N.sb(t)?L.r.Select(t):null!=b&&b.contains(e.target)?L.r.Ignore:L.r.Close},[s,v,b]),close:i.actions.closeCombobox,select:i.actions.selectActiveOption});let O=(0,F._)(e=>{switch(e.key){case ef.D.Space:case ef.D.Enter:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eT.Closed&&(0,c.flushSync)(()=>i.actions.openCombobox()),S();return;case ef.D.ArrowDown:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eT.Closed&&((0,c.flushSync)(()=>i.actions.openCombobox()),i.state.dataRef.current.value||i.actions.goToOption({focus:ea.B.First})),S();return;case ef.D.ArrowUp:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eT.Closed&&((0,c.flushSync)(()=>i.actions.openCombobox()),i.state.dataRef.current.value||i.actions.goToOption({focus:ea.B.Last})),S();return;case ef.D.Escape:if(i.state.comboboxState!==eT.Open)return;e.preventDefault(),i.state.optionsElement&&!n.optionsPropsRef.current.static&&e.stopPropagation(),(0,c.flushSync)(()=>i.actions.closeCombobox()),S();return;default:return}}),E=(0,z.O)(()=>{i.state.comboboxState===eT.Open?i.actions.closeCombobox():i.actions.openCombobox(),S()}),T=(0,em.o2)([h]),{isFocusVisible:y,focusProps:I}=(0,a.o)({autoFocus:f}),{isHovered:C,hoverProps:M}=(0,u.M)({isDisabled:p}),{pressed:w,pressProps:R}=(0,_.Z)({disabled:p}),A=(0,H._)({open:g===eT.Open,active:w||g===eT.Open,disabled:p,invalid:n.invalid,value:n.value,hover:C,focus:y}),P=(0,eh.v6)({ref:l,id:h,type:(0,J.c)(e,s),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":g===eT.Open,"aria-labelledby":T,disabled:p||void 0,autoFocus:f,onKeyDown:O},E,I,M,R);return(0,eh.Ci)()({ourProps:P,theirProps:m,slot:A,defaultTag:"button",name:"Combobox.Button"})}),eN=(0,eh.FX)(function(e,t){var i,n;let s=eP("Combobox.Input"),o=eD("Combobox.Input"),l=(0,d.useId)(),r=(0,en.q)(),{id:h=r||`headlessui-combobox-input-${l}`,onChange:p,displayValue:f,disabled:m=o.disabled||!1,autoFocus:g=!1,type:v="text",...b}=e,S=(0,d.useRef)(null),x=(0,Y.P)(S,t,(0,ee.Xc)(),s.actions.setInputElement),[O,E]=(0,el.y)(s,e=>[e.comboboxState,e.isTyping]),T=(0,A.L)(),y=(0,F._)(()=>{s.actions.onChange(null),s.state.optionsElement&&(s.state.optionsElement.scrollTop=0),s.actions.goToOption({focus:ea.B.Nothing})}),I=(0,d.useMemo)(()=>{var e;return"function"==typeof f&&void 0!==o.value?null!=(e=f(o.value))?e:"":"string"==typeof o.value?o.value:""},[o.value,f]);(0,Z.F)(([e,t],[i,n])=>{if(s.state.isTyping)return;let o=S.current;o&&((n===eT.Open&&t===eT.Closed||e!==i)&&(o.value=e),requestAnimationFrame(()=>{if(s.state.isTyping||!o||(0,K.X7)(o))return;let{selectionStart:e,selectionEnd:t}=o;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&o.setSelectionRange(o.value.length,o.value.length)}))},[I,O,E]),(0,Z.F)(([e],[t])=>{if(e===eT.Open&&t===eT.Closed){if(s.state.isTyping)return;let e=S.current;if(!e)return;let t=e.value,{selectionStart:i,selectionEnd:n,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(i,n,o):e.setSelectionRange(i,n)}},[O]);let C=(0,d.useRef)(!1),_=(0,F._)(()=>{C.current=!0}),M=(0,F._)(()=>{T.nextFrame(()=>{C.current=!1})}),w=(0,F._)(e=>{switch(s.actions.setIsTyping(!0),e.key){case ef.D.Enter:if(s.state.comboboxState!==eT.Open||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===s.selectors.activeOptionIndex(s.state))return void s.actions.closeCombobox();s.actions.selectActiveOption(),o.mode===ey.Single&&s.actions.closeCombobox();break;case ef.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ed.Y)(s.state.comboboxState,{[eT.Open]:()=>s.actions.goToOption({focus:ea.B.Next}),[eT.Closed]:()=>s.actions.openCombobox()});case ef.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ed.Y)(s.state.comboboxState,{[eT.Open]:()=>s.actions.goToOption({focus:ea.B.Previous}),[eT.Closed]:()=>{(0,c.flushSync)(()=>s.actions.openCombobox()),o.value||s.actions.goToOption({focus:ea.B.Last})}});case ef.D.Home:if(s.state.comboboxState===eT.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ea.B.First});case ef.D.PageUp:return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ea.B.First});case ef.D.End:if(s.state.comboboxState===eT.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ea.B.Last});case ef.D.PageDown:return e.preventDefault(),e.stopPropagation(),s.actions.goToOption({focus:ea.B.Last});case ef.D.Escape:return s.state.comboboxState!==eT.Open?void 0:(e.preventDefault(),s.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),o.mode===ey.Single&&null===o.value&&y(),s.actions.closeCombobox());case ef.D.Tab:if(s.actions.setIsTyping(!1),s.state.comboboxState!==eT.Open)return;o.mode===ey.Single&&s.state.activationTrigger!==eI.Focus&&s.actions.selectActiveOption(),s.actions.closeCombobox()}}),R=(0,F._)(e=>{null==p||p(e),o.mode===ey.Single&&""===e.target.value&&y(),s.actions.openCombobox()}),P=(0,F._)(e=>{var t,i,n;let l=null!=(t=e.relatedTarget)?t:er.b.find(t=>t!==e.currentTarget);if(!(null!=(i=s.state.optionsElement)&&i.contains(l))&&!(null!=(n=s.state.buttonElement)&&n.c
1ontains(l))&&s.state.comboboxState===eT.Open)return e.preventDefault(),o.mode===ey.Single&&null===o.value&&y(),s.actions.closeCombobox()}),z=(0,F._)(e=>{var t,i,n;let l=null!=(t=e.relatedTarget)?t:er.b.find(t=>t!==e.currentTarget);null!=(i=s.state.buttonElement)&&i.contains(l)||null!=(n=s.state.optionsElement)&&n.contains(l)||o.disabled||o.immediate&&s.state.comboboxState!==eT.Open&&T.microTask(()=>{(0,c.flushSync)(()=>s.actions.openCombobox()),s.actions.setActivationTrigger(eI.Focus)})}),D=(0,em.o2)(),k=(0,ep.MM)(),{isFocused:j,focusProps:B}=(0,a.o)({autoFocus:g}),{isHovered:V,hoverProps:W}=(0,u.M)({isDisabled:m}),L=(0,el.y)(s,e=>e.optionsElement),N=(0,H._)({open:O===eT.Open,disabled:m,invalid:o.invalid,hover:V,focus:j,autofocus:g}),$=(0,eh.v6)({ref:x,id:h,role:"combobox",type:v,"aria-controls":null==L?void 0:L.id,"aria-expanded":O===eT.Open,"aria-activedescendant":(0,el.y)(s,s.selectors.activeDescendantId),"aria-labelledby":D,"aria-describedby":k,"aria-autocomplete":"list",defaultValue:null!=(n=null!=(i=e.defaultValue)?i:void 0!==o.defaultValue?null==f?void 0:f(o.defaultValue):null)?n:o.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:_,onCompositionEnd:M,onKeyDown:w,onChange:R,onFocus:z,onBlur:P},B,W);return(0,eh.Ci)()({ourProps:$,theirProps:b,slot:N,defaultTag:"input",name:"Combobox.Input"})}),eK=em.JU,e$=(0,eh.FX)(function(e,t){var i,n,s;let o=(0,d.useId)(),{id:l=`headlessui-combobox-options-${o}`,hold:r=!1,anchor:a,portal:u=!1,modal:c=!0,transition:h=!1,...p}=e,f=eP("Combobox.Options"),m=eD("Combobox.Options"),g=(0,ee.zn)(a);g&&(u=!0);let[v,b]=(0,ee.UF)(g),[S,x]=(0,d.useState)(null),O=(0,ee.G3)(),E=(0,Y.P)(t,g?v:null,f.actions.setOptionsElement,x),[T,y,I,C,_]=(0,el.y)(f,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),M=(0,W.g)(y||I),w=(0,W.g)(C),R=(0,es.O_)(),[A,z]=(0,G.p)(h,S,null!==R?(R&es.Uw.Open)===es.Uw.Open:T===eT.Open);(0,B.O)(A,y,f.actions.closeCombobox);let j=!m.__demoMode&&c&&T===eT.Open;(0,X.K)(j,w);let V=!m.__demoMode&&c&&T===eT.Open;(0,D.v)(V,{allowed:(0,d.useCallback)(()=>[y,I,C],[y,I,C])});let L=!(0,el.y)(f,f.selectors.didInputMove)&&A;(0,k.s)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,k.s)(()=>{m.optionsPropsRef.current.hold=r},[m.optionsPropsRef,r]),function(e,{container:t,accept:i,walk:n}){let s=(0,d.useRef)(i),o=(0,d.useRef)(n);(0,d.useEffect)(()=>{s.current=i,o.current=n},[i,n]),(0,k.s)(()=>{if(!t||!e)return;let i=(0,K.TW)(t);if(!i)return;let n=s.current,l=o.current,r=Object.assign(e=>n(e),{acceptNode:n}),a=i.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,r,!1);for(;a.nextNode();)l(a.currentNode)},[t,e,s,o])}(T===eT.Open,{container:C,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let N=(0,em.o2)([null==I?void 0:I.id]),$=(0,H._)({open:T===eT.Open,option:void 0}),U=(0,F._)(()=>{f.actions.setActivationTrigger(eI.Pointer)}),J=(0,F._)(e=>{e.preventDefault(),f.actions.setActivationTrigger(eI.Pointer)}),q=(0,eh.v6)(g?O():{},{"aria-labelledby":N,role:"listbox","aria-multiselectable":m.mode===ey.Multi||void 0,id:l,ref:E,style:{...p.style,...b,"--input-width":(0,P.L)(A,y,!0).width,"--button-width":(0,P.L)(A,I,!0).width},onWheel:_===eI.Pointer?void 0:U,onMouseDown:J,...(0,G.B)(z)}),Z=A&&T===eT.Closed&&!e.static,Q=(0,ei.O)(Z,null==(i=m.virtual)?void 0:i.options),et=(0,ei.O)(Z,m.value),en=(0,d.useCallback)(e=>m.compare(et,e),[m.compare,et]),eo=(0,d.useMemo)(()=>{if(!m.virtual)return m;if(void 0===Q)throw Error("Missing `options` in virtual mode");return Q!==m.virtual.options?{...m,virtual:{...m.virtual,options:Q}}:m},[m,Q,null==(n=m.virtual)?void 0:n.options]);m.virtual&&Object.assign(p,{children:d.createElement(ez.Provider,{value:eo},d.createElement(ej,{slot:$},p.children))});let er=(0,eh.Ci)(),ea=(0,d.useMemo)(()=>m.mode===ey.Multi?m:{...m,isSelected:en},[m,en]);return d.createElement(ev.ZL,{enabled:!!u&&(e.static||A),ownerDocument:M},d.createElement(ez.Provider,{value:ea},er({ourProps:q,theirProps:{...p,children:d.createElement(ei.j,{freeze:Z},"function"==typeof p.children?null==(s=p.children)?void 0:s.call(p,$):p.children)},slot:$,defaultTag:"div",features:eV,visible:L,name:"Combobox.Options"}
1)))}),eU=(0,eh.FX)(function(e,t){var i,n,s;let o=eD("Combobox.Option"),l=eP("Combobox.Option"),r=(0,d.useId)(),{id:a=`headlessui-combobox-option-${r}`,value:u,disabled:c=null!=(s=null==(n=null==(i=o.virtual)?void 0:i.disabled)?void 0:n.call(i,u))&&s,order:h=null,...p}=e,[f]=(0,el.y)(l,e=>[e.inputElement]),m=U(f),g=(0,el.y)(l,(0,d.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),v=o.isSelected(u),b=(0,d.useRef)(null),S=(0,j.Y)({disabled:c,value:u,domRef:b,order:h}),x=(0,d.useContext)(ek),O=(0,Y.P)(t,b,x?x.measureElement:null),E=(0,F._)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});(0,k.s)(()=>l.actions.registerOption(a,S),[S,a]);let T=(0,el.y)(l,(0,d.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,k.s)(()=>{if(T)return(0,eu.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[T,b]);let y=(0,F._)(e=>{e.preventDefault(),e.button===eg.w.Left&&(c||(E(),(0,ec.Fr)()||requestAnimationFrame(()=>m()),o.mode===ey.Single&&l.actions.closeCombobox()))}),I=(0,F._)(()=>{if(c)return l.actions.goToOption({focus:ea.B.Nothing});let e=o.calculateIndex(u);l.actions.goToOption({focus:ea.B.Specific,idx:e})}),C=(0,q.J)(),_=(0,F._)(e=>C.update(e)),M=(0,F._)(e=>{if(!C.wasMoved(e)||c||g&&l.state.activationTrigger===eI.Pointer)return;let t=o.calculateIndex(u);l.actions.goToOption({focus:ea.B.Specific,idx:t},eI.Pointer)}),w=(0,F._)(e=>{C.wasMoved(e)&&(c||g&&(o.optionsPropsRef.current.hold||l.state.activationTrigger===eI.Pointer&&l.actions.goToOption({focus:ea.B.Nothing})))}),R=(0,H._)({active:g,focus:g,selected:v,disabled:c});return(0,eh.Ci)()({ourProps:{id:a,ref:O,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":v,disabled:void 0,onMouseDown:y,onFocus:I,onPointerEnter:_,onMouseEnter:_,onPointerMove:M,onMouseMove:M,onPointerLeave:w,onMouseLeave:w},theirProps:p,slot:R,defaultTag:"div",name:"Combobox.Option"})}),eJ=Object.assign(eW,{Input:eN,Button:eL,Label:eK,Options:e$,Option:eU})}}]);

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.