1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7366],{47982:function(e,t,n){n.d(t,{default:function(){return o.a}});var i=n(72315),o=n.n(i)},30012:function(e,t,n){let i,o,s,l,r;n.d(t,{hQ:function(){return eQ},Q$:function(){return eU},gA:function(){return eJ},O2:function(){return eZ},L5:function(){return eG}});var a=n(33599),u=n(46681),d=n(65815),c=n(77163);function h(e,t,n){let i,o=n.initialDeps??[],s=!0;function l(){let l=e();return(l.length!==o.length||l.some((e,t)=>o[t]!==e))&&(o=l,i=t(...l),(null==n?void 0:n.onChange)&&!(s&&n.skipInitialOnChange)&&n.onChange(i),s=!1),i}return l.updateDeps=e=>{o=e},l}function f(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let p=(e,t)=>1.01>Math.abs(e-t),m=(e,t,n)=>{let i;return Object.assign(function(...o){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(i)}})},g=()=>{if(void 0!==i)return i;if("undefined"==typeof navigator)return i=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return i=!0;let e=navigator.maxTouchPoints;return i="MacIntel"===navigator.platform&&void 0!==e&&e>0},v=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},b=e=>e,S=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,i=Array(n);for(let e=0;e<n;e++)i[e]=t+e;return i},x=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let o=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(o(v(n)),!i.ResizeObserver)return()=>{};let s=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){o({width:t.inlineSize,height:t.blockSize});return}}o(v(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},O={passive:!0},E="undefined"==typeof window||"onscrollend"in window,T=(e,t,n)=>{let i=e.scrollElement;if(!i)return;let o=e.targetWindow;if(!o)return;let s=e.options.useScrollendEvent&&E,l=0,r=s?null:m(o,()=>t(l,!1),e.options.isScrollingResetDelay),a=e=>()=>{l=n(i),null==r||r(),t(l,e)},u=a(!0),d=a(!1);return i.addEventListener("scroll",u,O),s&&i.addEventListener("scrollend",d,O),()=>{i.removeEventListener("scroll",u),s&&i.removeEventListener("scrollend",d),null==r||r.cancel()}},y=(e,t)=>T(e,t,t=>{let{horizontal:n,isRtl:i}=e.options;return n?t.scrollLeft*(i&&-1||1):t.scrollTop}),I=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),i=n.options.getItemKey(t);return n.itemSizeCache.get(i)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),i=n.options.getItemKey(t),o=n.itemSizeCache.get(i);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},C=(e,{adjustments:t=0,behavior:n},i)=>{var o,s;null==(s=null==(o=i.scrollElement)?void 0:o.scrollTo)||s.call(o,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class M{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,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.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,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):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=>{var t,n;let i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:b,rangeExtractor:S,onChange:()=>{},measureElement:I,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 n=e[t];void 0!==n&&(i[t]=n)}let o=this.options,s=null,l=null,r=!1;if(void 0!==o&&o.enabled&&i.enabled&&"end"===i.anchorTo&&null!==this.scrollElement){let e=o.count,a=i.count,u=this.getMeasurements(),d=e>0?(null==(t=u[0])?void 0:t.key)??o.getItemKey(0):null,c=e>0?(null==(n=u[e-1])?void 0:n.key)??o.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(i.getItemKey(0)!==d||i.getItemKey(a-1)!==c)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;
1t&&(s=[t.key,this.getScrollOffset()-t.start]);let n=!0===i.followOnAppend?"auto":i.followOnAppend||null;n&&a>e&&this.isAtEnd(o.scrollEndThreshold)&&(0===e||i.getItemKey(a-1)!==c)&&(l=n)}}this.options=i,r&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,u=0;if(s&&null!==this.scrollOffset){let[e,t]=s,n=this.getMeasurements(),{count:i,getItemKey:o}=this.options,l=0;for(;l<i&&o(l)!==e;)l++;if(l<i){let e=n[l];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(u=n-this.scrollOffset,this.scrollOffset=n,a=!0)}}}(a||l)&&(this.pendingScrollAnchor=[a?s[0]:null,a?s[1]:0,l,u])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.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.isScrolling=!1,this.scrollDirection=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){this.maybeNotify();return}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=>{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 n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<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)},n=()=>{this._iosTouching=!1,g()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,O),e.addEventListener("touchend",n,O),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),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 n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){let[e,t,i,o]=n;null===e||i||(g()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==o&&(this._iosDeferredAdjustment+=o):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),i&&this.scrollToEnd({behavior:i})}},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 n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})}
1,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,n,i,o,s,l,r)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:o,lanes:s,laneAssignmentMode:l,gap:r}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=h(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:o,lanes:s,laneAssignmentMode:l,gap:r},a)=>{let u=this.itemSizeCache;if(!o)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===s){var c;let o;let s=2*e,l=this._flatMeasurements;if(!l||l.length<s){let e=new Float64Array(s);l&&d>0&&e.set(l.subarray(0,2*d)),l=e,this._flatMeasurements=l}if(0===d)o=t+n;else{let e=d-1;o=l[2*e]+l[2*e+1]+r}for(let t=d;t<e;t++){let e=i(t),n=u.get(e),s="number"==typeof n?n:this.options.estimateSize(t);l[2*t]=o,l[2*t+1]=s,o+=s+r}let a=(c=l,new Proxy(Array(e),{get(t,n,o){if("string"==typeof n){let o=n.charCodeAt(0);if(o>=48&&o<=57){let o=+n;if(Number.isInteger(o)&&o>=0&&o<e){let e=t[o];if(!e){let n=c[2*o];e=t[o]={index:o,key:i(o),start:n,size:c[2*o+1],end:n+c[2*o+1],lane:0}}return e}}if("length"===n)return e}return Reflect.get(t,n,o)}}));return this.measurementsCache=a,a}let h=this.measurementsCache.slice(0,d),f=Array(s).fill(void 0),p=new Float64Array(s),m=0;for(let e=0;e<d;e++){let t=h[e];t&&(void 0===f[t.lane]&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let o=d;o<e;o++){let e,a;let d=i(o),c=this.laneAssignments.get(o),g="estimate"===l||u.has(d);if(void 0!==c&&this.options.lanes>1){let i=f[e=c],o=void 0!==i?h[i]:void 0;a=o?o.end+r:t+n}else if(m===s){let t=0,n=p[0],i=f[0];for(let e=1;e<s;e++){let o=p[e];(o<n||o===n&&f[e]<i)&&(t=e,n=o,i=f[e])}e=t,a=n+r,g&&this.laneAssignments.set(o,e)}else e=o%this.options.lanes,a=t+n,g&&this.laneAssignments.set(o,e);let v=u.get(d),b="number"==typeof v?v:this.options.estimateSize(o),S=a+b;h[o]={index:o,start:a,size:b,end:S,key:d,lane:e},void 0===f[e]&&m++,f[e]=o,p[e]=S}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=h(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,i,o){let s=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:s};if(1===i&&null!==o){let e=function(e,t,n){let i=0;for(;i<=t;){let o=(i+t)/2|0,s=e[2*o];if(s<n)i=o+1;else{if(!(s>n))return o;t=o-1}}return i>0?i-1:0}(o,s,n),i=e,l=n+t;for(;i<s&&o[2*i]+o[2*i+1]<l;)i++;return{startIndex:e,endIndex:i}}let l=R(0,s,t=>e[t].start,n),r=l;if(1===i)for(;r<s&&e[r].end<n+t;)r++;else if(i>1){let o=Array(i).fill(0);for(;r<s&&o.some(e=>e<n+t);){let t=e[r];o[t.lane]=t.end,r++}let a=Array(i).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){let t=e[l];a[t.lane]=t.start,l--}
1l=Math.max(0,l-l%i),r=Math.min(s,r+(i-1-r%i))}return{startIndex:l,endIndex:r}}(e,t,n,i,1===i&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=h(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,o)=>null===i||null===o?[]:e({startIndex:i,endIndex:o,overscan:t,count:n}),{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.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),i=Math.min(this.options.count-1,n+t);return e>=Math.max(0,n-t)&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),i=this.elementsCache.get(n);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,i;let o,s,l;if(!this.isIndexInRange(e))return;let r=this._flatMeasurements;if(1===this.options.lanes&&null!==r)l=this.options.getItemKey(e),s=r[2*e],o=r[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;l=t.key,s=t.start,o=t.size}let a=this.itemSizeCache.get(l)??o,u=t-a;if(0!==u){let r="end"===this.options.anchorTo&&(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=r?this.getTotalSize():0,c=this.getScrollOffset()+this.scrollAdjustments,h=this.itemSizeCache.has(l)?s+a<=c&&"backward"!==this.scrollDirection:s<c,f=(null==(i=this.scrollState)?void 0:i.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:l,start:s,size:o,end:s+o,lane:0},u,this):h);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(l,t),this.itemSizeCacheVersion++;let p=!1;r?p=this.applyScrollAdjustment(this.getTotalSize()-d):f&&(p=this.applyScrollAdjustment(u)),this.notify(p)}},this.getVirtualItems=h(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,o=e.length;i<o;i++){let o=t[e[i]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let n=this._flatMeasurements,i=1===this.options.lanes&&null!=n,o=R(0,t.length-1,i?e=>n[2*e]:e=>f(t[e]).start,e);return f(t[o])},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,n=0)=>
1{if(!this.scrollElement)return 0;let i=this.getSize(),o=this.getScrollOffset();return"auto"===t&&(t=e>=o+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),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 n=this.getSize(),i=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t){if(o.end>=i+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let i=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let i=this.getOffsetForIndex(e,t);if(!i)return;let[o,s]=i,l=this.now();this.scrollState={index:e,align:s,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,i=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t;let n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes){let i=n.length-1,o=this._flatMeasurements;t=null!=o?o[2*i]+o[2*i+1]:(null==(e=n[i])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}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:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,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&&(g()&&(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,n=t!==this.scrollState.lastTargetOffset;if(!n&&p(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,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),i="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,i||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:i?"smooth":"auto"})}this.scheduleScrollReconcile()}}let R=(e,t,n,i)=>{for(;e<=t;){let o=(e+t)/2|0,s=n(o);if(s<i)e=o+1;else{if(!(s>i))return o;t=o-1}}return e>0?e-1:0},w="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var _=n(1304),z=n(33667),A=n(14604),P=n(16473),F=n(95332),D=n(77980),k=n(71532),L=n(84391),j=n(66388),V=n(43833),W=n(58244),N=n(14815),B=n(56848),$=n(52831),H=n(5310),K=n(53839),U=n(57142),J=n(36939);function q(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,J.O)(e,"blur",e=>{let n=e.target;K.LL(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,k.z)(()=>{if(!(0,U.H9)(e)&&K.LL(e)&&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:i}=t.current;null!==n&&null!==i&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var G=n(5424),Z=n(70497),Q=n(11409),X=n(79952),Y=n(36249),ee=n(72457),et=n(41103);function en(e,t){let n=(0,d.useRef)([]),i=(0,k.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let o=i(t,e);return n.current=t,o}},[i,...t])}var ei=n(97389),eo=n(11144),es=n(77954),el=n(60328),er=n(66953),ea=n(70954),eu=n(77716),ed=n(66033),ec=n(48017);let eh=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!K.sP(e.target)||e.target===document.body||eh[0]===e.target)return;let t=e.target;t=t.closest(ec.y),eh.unshift(null!=t?t:e.target),(eh=eh.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var ef=n(83587),ep=n(61322),em=n(75315),eg=n(64972),ev=n(33169),eb=n(16342),eS=n(46217),ex=n(67115),eO=n(20055),eE=n(29529),eT=n(11797),ey=n(31749),eI=Object.defineProperty,eC=(e,t,n)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eM=(e,t,n)=>(eC(e,"symbol"!=typeof t?t+"":t,n),n),eR=((o=eR||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),ew=((s=ew||{})[s.Single=0]="Single",s[s.Multi=1]="Multi",s),e_=((l=e_||{})[l.Pointer=0]="Pointer",l[l.Focus=1]="Focus",l[l.Other=2]="Other",l),ez=((r=ez||{})[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 eA(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),o=i.length>0&&null!==i[0].dataRef.current.order?i.sort((e,t)=>
1e.dataRef.current.order-t.dataRef.current.order):(0,ec.z2)(i,e=>e.dataRef.current.domRef.current),s=n?o.indexOf(n):null;return -1===s&&(s=null),{options:o,activeOptionIndex:s}}let eP={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?ey.On.Tracked((0,ey.kn)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__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,inputPositionState:ey.On.Idle}}return{...e,comboboxState:0,inputPositionState:ey.On.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,i,o,s;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(i=e.dataRef.current)&&i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:i}=e.virtual,s=t.focus===ef.T.Specific?t.idx:(0,ef.d)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!i(e)))?o:null},resolveDisabled:i,resolveId(){throw Error("Function not implemented.")}}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,activeOptionIndex:s,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=eA(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let r=t.focus===ef.T.Specific?t.idx:(0,ef.d)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(s=t.trigger)?s:2;return e.activeOptionIndex===r&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:r,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,i,o,s;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,r=eA(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(o=(i=e.dataRef.current).isSelected)&&o.call(i,t.payload.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(l));let a={...e,...r,activationTrigger:2};return null!=(s=e.dataRef.current)&&s.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},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 i=eA(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...i,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 n,i;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 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:{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!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:ey.On.Moved}};class eF extends eT.J{constructor(e){super(e),eM(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:o}=this.state.dataRef.current;return(0,em.E)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=o.slice(),s=i.findIndex(t=>n(t,e));return -1===s?i.push(e):i.splice(s,1),null==t?void 0:t(i)}})},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:ef.T.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})}}),eM(this,"selectors",{activeDescendantId:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);if(null!==i)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[i])))?void 0:n.id:null==(t=e.options[i])?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:n}=e.virtual,i=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==i)return i}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);return null===i?null:e.virtual?e.virtual.options[null!=i?i:0]:null!=(n=null==(t=e.options[i])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var i;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(i=e.options[o])?void 0:i.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=eu.n.get(null);this.disposables.add(t.on(eu.M.Push,n=>{t.selectors.isTop(n,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,ey.hS)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var i;return new eF({id:e,dataRef:{current:{}},comboboxState:n?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:ey.On.Idle})}reduce(e,t){return(0,em.E)(t.type,eP,e,t)}}var eD=n(92953);let ek=(0,d.createContext)(null);function eL(e){let t=(0,d.useContext)(ek);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ej),t}return t}function ej({id:e,virtual:t=null,__demoMode:n=!1}){let i=(0,d.useMemo)(()=>eF.new({id:e,virtual:t,__demoMode:n}),[]);return(0,eD.L)(()=>i.dispose()),i}let eV=(0,d.createContext)(null);function eW(e){let t=(0,d.useContext)(eV);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eW),t}return t}eV.displayName="ComboboxDataContext";let eN=(0,d.createContext)(null);function eB(e){let t=eL("VirtualProvider"),{options:n}=eW("VirtualProvider").virtual,i=(0,ed.M)(t,e=>e.optionsElement),[o,s]=(0,d.useMemo)(()=>
1{if(!i)return[0,0];let e=window.getComputedStyle(i);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[i]),l=function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...i}){let o=d.useReducer(e=>e+1,0)[1],s=d.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=n;let l=e=>{let t=s.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let i=e.options.horizontal?"width":"height";t.container.style[i]=`${n}px`}},r=e=>{let t=s.current;if(!t.enabled||!t.container)return;l(e);let n=!!e.options.horizontal,i="transform"===t.mode,o=n?"left":"top",r=e.options.scrollMargin;for(let s of e.getVirtualItems()){let l=s.start-r,a=e.elementsCache.get(s.key);a&&t.lastPositions.get(a)!==l&&(t.lastPositions.set(a,l),i?a.style.transform=n?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`:a.style[o]=`${l}px`)}},a={...i,onChange:(t,n)=>{var l;let a=s.current,u=!0;if(a.enabled){r(t);let e=t.range,n=a.prevRange;(u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n?(0,c.flushSync)(o):o()),null==(l=i.onChange)||l.call(i,t,n)}},[u]=d.useState(()=>{let e=new M(a);return Object.assign(e,{containerRef:t=>{let n=s.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let i=e.getTotalSize();n.lastSize=i;let o=e.options.horizontal?"width":"height";t.style[o]=`${i}px`}}})});return u.setOptions(a),w(()=>u._didMount(),[]),w(()=>(l(u),u._willUpdate())),w(()=>{r(u)}),u}({observeElementRect:x,observeElementOffset:y,scrollToFn:C,enabled:0!==n.length,scrollPaddingStart:o,scrollPaddingEnd:s,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[r,a]=(0,d.useState)(0);(0,V.e)(()=>{a(e=>e+1)},[n]);let u=l.getVirtualItems(),h=(0,ed.M)(t,e=>e.activationTrigger===e_.Pointer),f=(0,ed.M)(t,t.selectors.activeOptionIndex);return 0===u.length?null:d.createElement(eN.Provider,{value:l},d.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=>{e&&(h||null!==f&&n.length>f&&l.scrollToIndex(f))}},u.map(t=>{var i;return d.createElement(d.Fragment,{key:t.key},d.cloneElement(null==(i=e.children)?void 0:i.call(e,{...e.slot,option:n[t.index]}),{key:`${r}-${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 e$=d.Fragment,eH=ev.VN.RenderStrategy|ev.VN.Static,eK=(0,ev.yV)(function(e,t){let n=(0,d.useId)(),i=(0,ei.B)(),{value:o,defaultValue:s,onChange:l,form:r,name:a,by:u,invalid:c=!1,disabled:h=i||!1,onClose:f,__demoMode:p=!1,multiple:m=!1,immediate:g=!1,virtual:v=null,nullable:b,...S}=e,x=(0,P.L)(s),[O=m?[]:void 0,E]=(0,A.q)(o,l,x),T=ej({id:n,virtual:v,__demoMode:p}),y=(0,d.useRef)({static:!1,hold:!1}),I=(0,z.J)(u),C=(0,k.z)(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))),M=(0,d.useCallback)(e=>(0,em.E)(_.mode,{[ew.Multi]:()=>O.some(t=>I(t,e)),[ew.Single]:()=>I(O,e)}),[O]),R=(0,ed.M)(T,e=>e.virtual),w=(0,k.z)(()=>null==f?void 0:f()),_=(0,d.useMemo)(()=>({__demoMode:p,immediate:g,optionsPropsRef:y,value:O,defaultValue:x,disabled:h,invalid:c,mode:m?ew.Multi:ew.Single,virtual:v?R:null,onChange:E,isSelected:M,calculateIndex:C,compare:I,onClose:w}),[p,g,y,O,x,h,c,m,v,R,E,M,C,I,w]);(0,V.e)(()=>{var e;v&&T.send({type:ez.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,V.e)(()=>{T.state.dataRef.current=_},[_]);let[F,D,L,j]=(0,ed.M)(T,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),W=eu.n.get(null),N=(0,ed.M)(W,(0,d.useCallback)(e=>W.selectors.isTop(e,n),[W,n]));(0,B.O)(N,[D,L,j],()=>T.actions.closeCombobox());let $=(0,ed.M)(T,T.selectors.activeOptionIndex),H=(0,ed.M)(T,T.selectors.activeOption),K=(0,Q.x)({open:F===eR.Open,disabled:h,invalid:c,activeIndex:$,activeOption:H,value:O}),[U,J]=(0,ex.bE)(),q=(0,d.useCallback)(()=>
1{if(void 0!==x)return null==E?void 0:E(x)},[E,x]),G=(0,ev.L6)();return d.createElement(J,{value:U,props:{htmlFor:null==L?void 0:L.id},slot:{open:F===eR.Open,disabled:h}},d.createElement(eo.HO,null,d.createElement(eV.Provider,{value:_},d.createElement(ek.Provider,{value:T},d.createElement(ea.up,{value:(0,em.E)(F,{[eR.Open]:ea.ZM.Open,[eR.Closed]:ea.ZM.Closed})},null!=a&&d.createElement(es.Mt,{disabled:h,data:null!=O?{[a]:O}:{},form:r,onReset:q}),G({ourProps:null===t?{}:{ref:t},theirProps:S,slot:K,defaultTag:e$,name:"Combobox"}))))))}),eU=(0,ev.yV)(function(e,t){let n=eL("Combobox.Button"),i=eW("Combobox.Button"),[o,s]=(0,d.useState)(null),l=(0,X.T)(t,s,n.actions.setButtonElement),r=(0,d.useId)(),{id:h=`headlessui-combobox-button-${r}`,disabled:f=i.disabled||!1,autoFocus:p=!1,...m}=e,[g,v,b]=(0,ed.M)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),S=q(v),x=g===eR.Open;(0,H.G)(x,{trigger:o,action:(0,d.useCallback)(e=>{if(null!=o&&o.contains(e.target)||null!=v&&v.contains(e.target))return H.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return K.Re(t)?H.a.Select(t):null!=b&&b.contains(e.target)?H.a.Ignore:H.a.Close},[o,v,b]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let O=(0,k.z)(e=>{switch(e.key){case eS.R.Space:case eS.R.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eR.Closed&&(0,c.flushSync)(()=>n.actions.openCombobox()),S();return;case eS.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eR.Closed&&((0,c.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ef.T.First})),S();return;case eS.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eR.Closed&&((0,c.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ef.T.Last})),S();return;case eS.R.Escape:if(n.state.comboboxState!==eR.Open)return;e.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),(0,c.flushSync)(()=>n.actions.closeCombobox()),S();return;default:return}}),E=(0,L.a)(()=>{n.state.comboboxState===eR.Open?n.actions.closeCombobox():n.actions.openCombobox(),S()}),T=(0,ex.wp)([h]),{isFocusVisible:y,focusProps:I}=(0,a.F)({autoFocus:p}),{isHovered:C,hoverProps:M}=(0,u.X)({isDisabled:f}),{pressed:R,pressProps:w}=(0,_.x)({disabled:f}),z=(0,Q.x)({open:g===eR.Open,active:R||g===eR.Open,disabled:f,invalid:i.invalid,value:i.value,hover:C,focus:y}),A=(0,ev.dG)({ref:l,id:h,type:(0,G.f)(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":g===eR.Open,"aria-labelledby":T,disabled:f||void 0,autoFocus:p,onKeyDown:O},E,I,M,w);return(0,ev.L6)()({ourProps:A,theirProps:m,slot:z,defaultTag:"button",name:"Combobox.Button"})}),eJ=(0,ev.yV)(function(e,t){var n,i;let o=eL("Combobox.Input"),s=eW("Combobox.Input"),l=(0,d.useId)(),r=(0,er.Q)(),{id:h=r||`headlessui-combobox-input-${l}`,onChange:f,displayValue:p,disabled:m=s.disabled||!1,autoFocus:g=!1,type:v="text",...b}=e,S=(0,d.useRef)(null),x=(0,X.T)(S,t,(0,eo.AZ)(),o.actions.setInputElement),[O,E]=(0,ed.M)(o,e=>[e.comboboxState,e.isTyping]),T=(0,F.G)(),y=(0,k.z)(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:ef.T.Nothing})});en(([e,t],[n,i])=>{if(o.state.isTyping)return;let s=S.current;s&&((i===eR.Open&&t===eR.Closed||e!==n)&&(s.value=e),requestAnimationFrame(()=>{if(o.state.isTyping||!s||(0,U.H9)(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)}))},[(0,d.useMemo)(()=>{var e;return"function"==typeof p&&void 0!==s.value?null!=(e=p(s.value))?e:"":"string"==typeof s.value?s.value:""},[s.value,p]),O,E]),en(([e],[t])=>{if(e===eR.Open&&t===eR.Closed){if(o.state.isTyping)return;let e=S.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:i,selectionDirection:s}=e;e.value="",e.value=t,null!==s?e.setSelectionRange(n,i,s):e.setSelectionRange(n,i)}},[O]);let I=(0,d.useRef)(!1),C=(0,k.z)(()=>{I.current=!0}),M=(0,k.z)(()=>{T.nextFrame(()=>{I.current=!1})}),R=(0,k.z)(e=>{switch(o.actions.setIsTyping(!0),e.key){case eS.R.Enter:if(o.state.comboboxState!==eR.Open||I.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state)){o.actions.closeCombobox();return}o.actions.selectActiveOption(),s.mode===ew.Single&&o.actions.closeCombobox();break;case eS.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,em.E)(o.state.comboboxState,{[eR.Open]:()=>o.actions.goToOption({focus:ef.T.Next}),[eR.Closed]:()=>o.actions.openCombobox()});case eS.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,em.E)(o.state.comboboxState,{[eR.Open]:()=>o.actions.goToOption({focus:ef.T.Previous}),[eR.Closed]:()=>{(0,c.flushSync)(()=>o.actions.openCombobox()),s.value||o.actions.goToOption({focus:ef.T.Last})}});case eS.R.Home:if(o.state.comboboxState===eR.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:ef.T.First});case eS.R.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:ef.T.First});case eS.R.End:if(o.state.comboboxState===eR.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:ef.T.Last});case eS.R.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:ef.T.Last});case eS.R.Escape:return o.state.comboboxState!==eR.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!s.optionsPropsRef.current.static&&e.stopPropagation(),s.mode===ew.Single&&null===s.value&&y(),o.actions.closeCombobox());case eS.R.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==eR.Open)return;s.mode===ew.Single&&o.state.activationTrigger!==e_.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}}),w=(0,k.z)(e=>{null==f||f(e),s.mode===ew.Single&&""===e.target.value&&y(),o.actions.openCombobox()}),_=(0,k.z)(e=>{var t,n,i;let l=null!=(t=e.relatedTarget)?t:eh.find(t=>t!==e.currentTarget);
1if(!(null!=(n=o.state.optionsElement)&&n.contains(l))&&!(null!=(i=o.state.buttonElement)&&i.contains(l))&&o.state.comboboxState===eR.Open)return e.preventDefault(),s.mode===ew.Single&&null===s.value&&y(),o.actions.closeCombobox()}),z=(0,k.z)(e=>{var t,n,i;let l=null!=(t=e.relatedTarget)?t:eh.find(t=>t!==e.currentTarget);null!=(n=o.state.buttonElement)&&n.contains(l)||null!=(i=o.state.optionsElement)&&i.contains(l)||s.disabled||s.immediate&&o.state.comboboxState!==eR.Open&&T.microTask(()=>{(0,c.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(e_.Focus)})}),A=(0,ex.wp)(),P=(0,eb.zH)(),{isFocused:D,focusProps:L}=(0,a.F)({autoFocus:g}),{isHovered:j,hoverProps:V}=(0,u.X)({isDisabled:m}),W=(0,ed.M)(o,e=>e.optionsElement),N=(0,Q.x)({open:O===eR.Open,disabled:m,invalid:s.invalid,hover:j,focus:D,autofocus:g}),B=(0,ev.dG)({ref:x,id:h,role:"combobox",type:v,"aria-controls":null==W?void 0:W.id,"aria-expanded":O===eR.Open,"aria-activedescendant":(0,ed.M)(o,o.selectors.activeDescendantId),"aria-labelledby":A,"aria-describedby":P,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(n=e.defaultValue)?n:void 0!==s.defaultValue?null==p?void 0:p(s.defaultValue):null)?i:s.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:C,onCompositionEnd:M,onKeyDown:R,onChange:w,onFocus:z,onBlur:_},L,V);return(0,ev.L6)()({ourProps:B,theirProps:b,slot:N,defaultTag:"input",name:"Combobox.Input"})}),eq=ex.__,eG=(0,ev.yV)(function(e,t){var n,i,o;let s=(0,d.useId)(),{id:l=`headlessui-combobox-options-${s}`,hold:r=!1,anchor:a,portal:u=!1,modal:c=!0,transition:h=!1,...f}=e,p=eL("Combobox.Options"),m=eW("Combobox.Options"),g=(0,eo.Vy)(a);g&&(u=!0);let[v,b]=(0,eo.ES)(g),[S,x]=(0,d.useState)(null),O=(0,eo.U8)(),E=(0,X.T)(t,g?v:null,p.actions.setOptionsElement,x),[T,y,I,C,M]=(0,ed.M)(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),R=(0,$.i)(y||I),w=(0,$.i)(C),_=(0,ea.oJ)(),[z,A]=(0,ee.Y)(h,S,null!==_?(_&ea.ZM.Open)===ea.ZM.Open:T===eR.Open);(0,N.m)(z,y,p.actions.closeCombobox);let P=!m.__demoMode&&c&&T===eR.Open;(0,Z.P)(P,w);let F=!m.__demoMode&&c&&T===eR.Open;(0,j.s)(F,{allowed:(0,d.useCallback)(()=>[y,I,C],[y,I,C])});let L=!(0,ed.M)(p,p.selectors.didInputMove)&&z;(0,V.e)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,V.e)(()=>{m.optionsPropsRef.current.hold=r},[m.optionsPropsRef,r]),(0,et.B)(T===eR.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 W=(0,ex.wp)([null==I?void 0:I.id]),B=(0,Q.x)({open:T===eR.Open,option:void 0}),H=(0,k.z)(()=>{p.actions.setActivationTrigger(e_.Pointer)}),K=(0,k.z)(e=>{e.preventDefault(),p.actions.setActivationTrigger(e_.Pointer)}),U=(0,ev.dG)(g?O():{},{"aria-labelledby":W,role:"listbox","aria-multiselectable":m.mode===ew.Multi||void 0,id:l,ref:E,style:{...f.style,...b,"--input-width":(0,D.h)(z,y,!0).width,"--button-width":(0,D.h)(z,I,!0).width},onWheel:M===e_.Pointer?void 0:H,onMouseDown:K,...(0,ee.X)(A)}),J=z&&T===eR.Closed&&!e.static,q=(0,el._)(J,null==(n=m.virtual)?void 0:n.options),G=(0,el._)(J,m.value),Y=(0,d.useCallback)(e=>m.compare(G,e),[m.compare,G]),en=(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==(i=m.virtual)?void 0:i.options]);m.virtual&&Object.assign(f,{children:d.createElement(eV.Provider,{value:en},d.createElement(eB,{slot:B},f.children))});let ei=(0,ev.L6)(),es=(0,d.useMemo)(()=>m.mode===ew.Multi?m:{...m,isSelected:Y},[m,Y]);return d.createElement(eE.h_,{enabled:!!u&&(e.static||z),ownerDocument:R},d.createElement(eV.Provider,{value:es},ei({ourProps:U,theirProps:{...f,children:d.createElement(el.F,{freeze:J},"function"==typeof f.children?null==(o=f.children)?void 0:o.call(f,B):f.children)},slot:B,defaultTag:"div",features:eH,visible:L,name:"Combobox.Options"}
1)))}),eZ=(0,ev.yV)(function(e,t){var n,i,o;let s=eW("Combobox.Option"),l=eL("Combobox.Option"),r=(0,d.useId)(),{id:a=`headlessui-combobox-option-${r}`,value:u,disabled:c=null!=(o=null==(i=null==(n=s.virtual)?void 0:n.disabled)?void 0:i.call(n,u))&&o,order:h=null,...f}=e,[p]=(0,ed.M)(l,e=>[e.inputElement]),m=q(p),g=(0,ed.M)(l,(0,d.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),v=s.isSelected(u),b=(0,d.useRef)(null),S=(0,W.E)({disabled:c,value:u,domRef:b,order:h}),x=(0,d.useContext)(eN),O=(0,X.T)(t,b,x?x.measureElement:null),E=(0,k.z)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});(0,V.e)(()=>l.actions.registerOption(a,S),[S,a]);let T=(0,ed.M)(l,(0,d.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,V.e)(()=>{if(T)return(0,ep.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[T,b]);let y=(0,k.z)(e=>{e.preventDefault(),e.button===eO.t.Left&&(c||(E(),(0,eg.tq)()||requestAnimationFrame(()=>m()),s.mode===ew.Single&&l.actions.closeCombobox()))}),I=(0,k.z)(()=>{if(c)return l.actions.goToOption({focus:ef.T.Nothing});let e=s.calculateIndex(u);l.actions.goToOption({focus:ef.T.Specific,idx:e})}),C=(0,Y.g)(),M=(0,k.z)(e=>C.update(e)),R=(0,k.z)(e=>{if(!C.wasMoved(e)||c||g&&l.state.activationTrigger===e_.Pointer)return;let t=s.calculateIndex(u);l.actions.goToOption({focus:ef.T.Specific,idx:t},e_.Pointer)}),w=(0,k.z)(e=>{C.wasMoved(e)&&(c||g&&(s.optionsPropsRef.current.hold||l.state.activationTrigger===e_.Pointer&&l.actions.goToOption({focus:ef.T.Nothing})))}),_=(0,Q.x)({active:g,focus:g,selected:v,disabled:c});return(0,ev.L6)()({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:M,onMouseEnter:M,onPointerMove:R,onMouseMove:R,onPointerLeave:w,onMouseLeave:w},theirProps:f,slot:_,defaultTag:"div",name:"Combobox.Option"})}),eQ=Object.assign(eK,{Input:eJ,Button:eU,Label:eq,Options:eG,Option:eZ})},33667:function(e,t,n){n.d(t,{J:function(){return s}});var i=n(65815);function o(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function s(e=o){return(0,i.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},14604:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(65815),o=n(77163),s=n(71532);function l(e,t,n){let[l,r]=(0,i.useState)(n),a=void 0!==e,u=(0,i.useRef)(a),d=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!a||u.current||d.current?a||!u.current||c.current||(c.current=!0,u.current=a,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.")):(d.current=!0,u.current=a,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.")),[a?e:l,(0,s.z)(e=>(a||(0,o.flushSync)(()=>r(e)),null==t?void 0:t(e)))]}},16473:function(e,t,n){n.d(t,{L:function(){return o}});var i=n(65815);function o(e){let[t]=(0,i.useState)(e);return t}},36939:function(e,t,n){n.d(t,{O:function(){return s}});var i=n(65815),o=n(58244);function s(e,t,n,s){let l=(0,o.E)(n);(0,i.useEffect)(()=>{function n(e){l.current(e)}return(e=null!=e?e:window).addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)},[e,t,s])}},77954:function(e,t,n){n.d(t,{Mt:function(){return c}});var i=n(65815),o=n(77163),s=n(95332),l=n(46834),r=n(33169),a=n(93013);let u=(0,i.createContext)(null);function d({children:e}){let t=(0,i.useContext)(u);if(!t)return i.createElement(i.Fragment,null,e);let{target:n}=t;return n?(0,o.createPortal)(i.createElement(i.Fragment,null,e),n):null}function c({data:e,form:t,disabled:n,onReset:o,overrides:u}){let[c,f]=(0,i.useState)(null),p=(0,s.G)();return(0,i.useEffect)(()=>{if(o&&c)return p.addEventListener(c,"reset",o)},[c,t,o]),i.createElement(d,null,i.createElement(h,{setForm:f,formId:t}),(0,l.t)(e).map(([e,o])=>i.createElement(a._,{features:a.x.Hidden,...(0,r.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...u})})))}function h({setForm:e,formId:t}){return(0,i.useEffect)(()=>
1{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:i.createElement(a._,{features:a.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}},60328:function(e,t,n){n.d(t,{F:function(){return o},_:function(){return s}});var i=n(65815);let o=i.forwardRef(function({children:e,freeze:t},n){let o=s(t,e);return(0,i.isValidElement)(o)?(0,i.cloneElement)(o,{ref:n}):i.createElement(i.Fragment,null,o)});function s(e,t){let[n,o]=(0,i.useState)(t);return e||n===t||o(t),e?n:t}},93013:function(e,t,n){let i;n.d(t,{_:function(){return l},x:function(){return s}});var o=n(33169),s=((i=s||{})[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i);let l=(0,o.yV)(function(e,t){var n;let{features:i=1,...s}=e,l={ref:t,"aria-hidden":(2&i)==2||(null!=(n=s["aria-hidden"])?n:void 0),hidden:(4&i)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,o.L6)()({ourProps:l,theirProps:s,slot:{},defaultTag:"span",name:"Hidden"})})},46834:function(e,t,n){n.d(t,{g:function(){return s},t:function(){return function e(t={},n=null,s=[]){for(let[l,r]of Object.entries(t))!function t(n,s,l){if(Array.isArray(l))for(let[e,i]of l.entries())t(n,o(s,e.toString()),i);else l instanceof Date?n.push([s,l.toISOString()]):"boolean"==typeof l?n.push([s,l?"1":"0"]):"string"==typeof l?n.push([s,l]):"number"==typeof l?n.push([s,`${l}`]):null==l?n.push([s,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(l)&&!(0,i.isValidElement)(l)&&e(l,s,n)}(s,o(n,l),r);return s}}});var i=n(65815);function o(e,t){return e?e+"["+t+"]":t}function s(e){var t,n;let i=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(i){for(let t of i.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=i.requestSubmit)||n.call(i)}}}}]);
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.