PageSourceSearch

https://ttpsc.com/_next/static/immutable/chunks/2aw8opp0rs08d.js

js ttpsc.com collected 2026-10-02 09:56:19 UTC 90,208 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82439,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(40075),i=e.i(5419),o=e.i(65621),l=e.i(46210),r=e.i(29997),a=e.i(674),u=e.i(51603),d=e.i(1183),c=e.i(95569),p=e.i(82684),f=e.i(49406),h=e.i(78699),m=e.i(66383),v=e.i(83791),b=e.i(72773),g=e.i(64118);let S=(0,m.forwardRefWithAs)(function(e,S){let E=(0,n.useId)(),y=(0,p.useProvidedId)(),I=(0,d.useDisabled)(),{id:x=y||`headlessui-checkbox-${E}`,disabled:R=I||!1,autoFocus:P=!1,checked:O,defaultChecked:F,onChange:C,name:T,value:M,form:w,indeterminate:D=!1,tabIndex:A=0,...k}=e,L=(0,l.useDefaultValue)(F),[K,B]=(0,o.useControllable)(O,C,null!=L&&L),_=(0,g.useLabelledBy)(),W=(0,v.useDescribedBy)(),z=(0,r.useDisposables)(),[V,N]=(0,n.useState)(!1),H=(0,a.useEvent)(()=>{N(!0),null==B||B(!K),z.nextFrame(()=>{N(!1)})}),G=(0,a.useEvent)(e=>{if((0,f.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),H()}),$=(0,a.useEvent)(e=>{e.key===b.Keys.Space?(e.preventDefault(),H()):e.key===b.Keys.Enter&&(0,h.attemptSubmit)(e.currentTarget)}),U=(0,a.useEvent)(e=>e.preventDefault()),{isFocusVisible:j,focusProps:q}=(0,t.useFocusRing)({autoFocus:P}),{isHovered:Q,hoverProps:J}=(0,s.useHover)({isDisabled:R}),{pressed:Y,pressProps:X}=(0,i.useActivePress)({disabled:R}),Z=(0,m.mergeProps)({ref:S,id:x,role:"checkbox","aria-checked":D?"mixed":K?"true":"false","aria-labelledby":_,"aria-describedby":W,"aria-disabled":!!R||void 0,indeterminate:D?"true":void 0,tabIndex:R?void 0:A,onKeyUp:R?void 0:$,onKeyPress:R?void 0:U,onClick:R?void 0:G},q,J,X),ee=(0,u.useSlot)({checked:K,disabled:R,hover:Q,focus:j,active:Y,indeterminate:D,changing:V,autofocus:P}),et=(0,n.useCallback)(()=>{if(void 0!==L)return null==B?void 0:B(L)},[B,L]),es=(0,m.useRender)();return n.default.createElement(n.default.Fragment,null,null!=T&&n.default.createElement(c.FormFields,{disabled:R,data:{[T]:M||"on"},overrides:{type:"checkbox",checked:K},form:w,onReset:et}),es({ourProps:Z,theirProps:k,slot:ee,defaultTag:"span",name:"Checkbox"}))});e.s(["Checkbox",0,S])},48832,e=>{"use strict";let t,s,n,i;var o=e.i(84837),l=e.i(64731),r=e.i(40075),a=e.i(33464);function u(e,t,s){let n,i=s.initialDeps??[],o=!0;function l(){var l,r,a;let u,d;s.key&&(null==(l=s.debug)?void 0:l.call(s))&&(u=Date.now());let c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return n;if(i=c,s.key&&(null==(r=s.debug)?void 0:r.call(s))&&(d=Date.now()),n=t(...c),s.key&&(null==(a=s.debug)?void 0:a.call(s))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-d)*100)/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==s?void 0:s.key)}return(null==s?void 0:s.onChange)&&!(o&&s.skipInitialOnChange)&&s.onChange(n),o=!1,n}return l.updateDeps=e=>{i=e},l}function d(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let c=e=>{let{offsetWidth:t,offsetHeight:s}=e;return{width:t,height:s}},p=e=>e,f=e=>{let t=Math.max(e.startIndex-e.overscan,0),s=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=s;e++)n.push(e);return n},h=(e,t)=>{let s=e.scrollElement;if(!s)return;let n=e.targetWindow;if(!n)return;let i=e=>{let{width:s,height:n}=e;t({width:Math.round(s),height:Math.round(n)})};if(i(c(s)),!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 i({width:t.inlineSize,height:t.blockSize})}i(c(s))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return o.observe(s,{box:"border-box"}),()=>{o.unobserve(s)}},m={passive:!0},v="u"<typeof window||"onscrollend"in window,b=(e,t)=>{var s,n;let i,o=e.scrollElement;if(!o)return;let l=e.targetWindow;if(!l)return;let r=0,a=e.options.useScrollendEvent&&v?()=>void 0:(s=()=>{t(r,!1)},n=e.options.isScrollingResetDelay,function(...e){l.clearTimeout(i),i=l.setTimeout(()=>s.apply(this,e),n)}),u=s=>()=>{let{horizontal:n,isRtl:i}=e.options;r=n?o.scrollLeft*(i&&-1||1):o.scrollTop,a(),t(r,s)},d=u(!0),c=u(!1);o.addEventListener("scroll",d,m);let p=e.options.useScrollendEvent&&v;return p&&o.addEventListener("scrollend",c,m),()=>{o.removeEventListener("scroll",d),p&&o.removeEventListener("scrollend",c)}},g=(e,t,s)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[s.options.horizontal?"inlineSize":"blockSize"])}return e[s.options.horizontal?"offsetWidth":"offsetHeight"]}
4,S=(e,{adjustments:t=0,behavior:s},n)=>{var i,o;null==(o=null==(i=n.scrollElement)?void 0:i.scrollTo)||o.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:s})};class E{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,s;return(null==(s=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:s.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,s=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(s)&&this.resizeItem(s,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var s;null==(s=t())||s.disconnect(),e=null},observe:e=>{var s;return null==(s=t())?void 0:s.observe(e,{box:"border-box"})},unobserve:e=>{var s;return null==(s=t())?void 0:s.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,s])=>{void 0===s&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:p,rangeExtractor:f,onChange:()=>{},measureElement:g,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,s;null==(s=(t=this.options).onChange)||s.call(t,this,e)},this.maybeNotify=u(()=>(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.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();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)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,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.getFurthestMeasurement=(e,t)=>{let s=new Map,n=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(s.has(t.lane))continue;let o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&s.set(t.lane,!0),s.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>
4e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=u(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,s,n,i,o)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:s,getItemKey:n,enabled:i,lanes:o}),{key:!1}),this.getMeasurements=u(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:s,getItemKey:n,enabled:i,lanes:o},l)=>{if(!i)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.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let r=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let a=this.measurementsCache.slice(0,r),u=Array(o).fill(void 0);for(let e=0;e<r;e++){let t=a[e];t&&(u[t.lane]=e)}for(let i=r;i<e;i++){let e,o,r=n(i),d=this.laneAssignments.get(i);if(void 0!==d&&this.options.lanes>1){let n=u[e=d],i=void 0!==n?a[n]:void 0;o=i?i.end+this.options.gap:t+s}else{let n=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i);o=n?n.end+this.options.gap:t+s,e=n?n.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,e)}let c=l.get(r),p="number"==typeof c?c:this.options.estimateSize(i),f=o+p;a[i]={index:i,start:o,size:p,end:f,key:r,lane:e},u[e]=i}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=u(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,s,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:s,lanes:n}){let i=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:i};let o=y(0,i,t=>e[t].start,s),l=o;if(1===n)for(;l<i&&e[l].end<s+t;)l++;else if(n>1){let r=Array(n).fill(0);for(;l<i&&r.some(e=>e<s+t);){let t=e[l];r[t.lane]=t.end,l++}let a=Array(n).fill(s+t);for(;o>=0&&a.some(e=>e>=s);){let t=e[o];a[t.lane]=t.start,o--}o=Math.max(0,o-o%n),l=Math.min(i,l+(n-1-l%n))}return{startIndex:o,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:s,lanes:n}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=u(()=>{let e=null,t=null,s=this.calculateRange();return s&&(e=s.startIndex,t=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,s,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,s=e.getAttribute(t);return s?parseInt(s,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 s=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==s&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,s-t),i=Math.min(this.options.count-1,s+t);return e>=n&&e<=i}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),s=this.options.getItemKey(t),n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var s;let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((null==(s=this.scrollState)?void 0:s.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.getVirtualItems=u(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let s=[];for(let n=0,i=e.length;n<i;n++){let i=t[e[n]];s.push(i)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return d(t[y(0,t.length-1,e=>d(t[e]).start,e)])},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.getOffsetForAlignment=(e,t,s=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(s-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 s=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+s-this.options.scrollPaddingEnd)t="end";else{if(!(i.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?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:s="auto"}={})=>{let n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:s,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:s="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getOffsetForIndex(e,t);if(!n)return;let[i,o]=n,l=this.now();this.scrollState={index:e,align:o,behavior:s,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let s=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;let t,s=this.getMeasurements();if(0===s.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=s[s.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),n=s.length-1;for(;n>=0&&e.some(e=>null===e);){let t=s[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._scrollToOffset=(e,{adjustments:t,behavior:s})=>{this.options.scrollToFn(e,{behavior:s,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}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,s=t!==this.scrollState.lastTargetOffset;if(!s&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}let y=(e,t,s,n)=>{for(;e<=t;){let i=(e+t)/2|0,o=s(i);if(o<n)e=i+1;else{if(!(o>n))return i;t=i-1}}return e>0?e-1:0},I="u">typeof document?r.useLayoutEffect:r.useEffect;var x=e.i(5419),R=e.i(92231),P=e.i(65621),O=e.i(46210),F=e.i(29997),C=e.i(29023),T=e.i(674),M=e.i(4277),w=e.i(36827),D=e.i(1483),A=e.i(89027),k=e.i(45516),L=e.i(66606),K=e.i(44873),B=e.i(37683),_=e.i(42231),W=e.i(9858),z=e.i(78374);function V(e){let t=(0,r.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,z.useEventListener)(e,"blur",e=>{let s=e.target;_.isHTMLInputElement(s)&&(t.current={value:s.value,selectionStart:s.selectionStart,selectionEnd:s.selectionEnd})}),(0,T.useEvent)(()=>
4{if(!(0,W.isActiveElement)(e)&&_.isHTMLInputElement(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:s,selectionEnd:n}=t.current;null!==s&&null!==n&&e.setSelectionRange(s,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var N=e.i(97271),H=e.i(5738),G=e.i(51603),$=e.i(26466),U=e.i(95658),j=e.i(91306),q=e.i(96495),Q=e.i(54346),J=e.i(1183),Y=e.i(27638),X=e.i(95569),Z=e.i(33278),ee=e.i(82684),et=e.i(81489),es=e.i(35057),en=e.i(25475),ei=e.i(14476),eo=e.i(55828),el=e.i(32660),er=e.i(38789),ea=e.i(25682),eu=e.i(66383),ed=e.i(83791),ec=e.i(72773),ep=e.i(64118),ef=e.i(57617),eh=e.i(39801),em=e.i(18273),ev=e.i(6410),eb=e.i(67679),eg=Object.defineProperty,eS=(e,t,s)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?eg(e,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[n]=s,s},eE=((t=eE||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),ey=((s=ey||{})[s.Single=0]="Single",s[s.Multi=1]="Multi",s),eI=((n=eI||{})[n.Pointer=0]="Pointer",n[n.Focus=1]="Focus",n[n.Other=2]="Other",n),ex=((i=ex||{})[i.OpenCombobox=0]="OpenCombobox",i[i.CloseCombobox=1]="CloseCombobox",i[i.GoToOption=2]="GoToOption",i[i.SetTyping=3]="SetTyping",i[i.RegisterOption=4]="RegisterOption",i[i.UnregisterOption=5]="UnregisterOption",i[i.DefaultToFirstOption=6]="DefaultToFirstOption",i[i.SetActivationTrigger=7]="SetActivationTrigger",i[i.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",i[i.SetInputElement=9]="SetInputElement",i[i.SetButtonElement=10]="SetButtonElement",i[i.SetOptionsElement=11]="SetOptionsElement",i[i.MarkInputAsMoved=12]="MarkInputAsMoved",i);function eR(e,t=e=>e){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&null!==n[0].dataRef.current.order?n.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eb.sortByDomNode)(n,e=>e.dataRef.current.domRef.current),o=s?i.indexOf(s):null;return -1===o&&(o=null),{options:i,activeOptionIndex:o}}let eP={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let s=e.inputElement?ev.ElementPositionState.Tracked((0,ev.computeVisualPosition)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:s,__demoMode:!1}},0(e){var t,s;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(s=e.dataRef.current)&&s.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:ev.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:ev.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var s,n,i,o;if(null!=(s=e.dataRef.current)&&s.disabled||e.optionsElement&&!(null!=(n=e.dataRef.current)&&n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:s,disabled:n}=e.virtual,o=t.focus===eo.Focus.Specific?t.idx:(0,eo.calculateActiveIndex)(t,{resolveItems:()=>s,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:s.findIndex(e=>!n(e)))?i:null},resolveDisabled:n,resolveId(){throw Error("Function not implemented.")}}),l=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===o&&e.activationTrigger===l?e:{...e,activeOptionIndex:o,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=eR(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let r=t.focus===eo.Focus.Specific?t.idx:(0,eo.calculateActiveIndex)(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 s,n,i,o;if(null!=(s=e.dataRef.current)&&s.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,r=eR(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(i=(n=e.dataRef.current).isSelected)&&i.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&&(
4a.activeOptionIndex=0),a},5:(e,t)=>{var s;if(null!=(s=e.dataRef.current)&&s.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let n=eR(e,e=>{let s=e.findIndex(e=>e.id===t.id);return -1!==s&&e.splice(s,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)=>{var s,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(s=t.disabled)?s:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let s=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==s?s:null}return{...e,activeOptionIndex:i,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:ev.ElementPositionState.Moved}};class eO extends em.Machine{constructor(e){super(e),eS(this,"actions",{onChange:e=>{let{onChange:t,compare:s,mode:n,value:i}=this.state.dataRef.current;return(0,er.match)(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=i.slice(),o=n.findIndex(t=>s(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:eo.Focus.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})}}),eS(this,"selectors",{activeDescendantId:e=>{var t,s;let n=this.selectors.activeOptionIndex(e);if(null!==n)return e.virtual?null==(s=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[n])))?void 0:s.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:s}=e.virtual,n=t.findIndex(e=>{var t;return!(null!=(t=null==s?void 0:s(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,s;let n=this.selectors.activeOptionIndex(e);return null===n?null:e.virtual?e.virtual.options[null!=n?n:0]:null!=(s=null==(t=e.options[n])?void 0:t.dataRef.current.value)?s:null},isActive:(e,t,s)=>{var n;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(n=e.options[i])?void 0:n.id)===s)},shouldScrollIntoView:(e,t,s)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,s)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=es.stackMachines.get(null);this.disposables.add(t.on(es.ActionTypes.Push,s=>{t.selectors.isTop(s,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=>
4{t.inputElement&&(e.dispose(),e.add((0,ev.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:s=!1}){var n;return new eO({id:e,dataRef:{current:{}},comboboxState:+!s,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:s,inputPositionState:ev.ElementPositionState.Idle})}reduce(e,t){return(0,er.match)(t.type,eP,e,t)}}var eF=e.i(46723);let eC=(0,r.createContext)(null);function eT(e){let t=(0,r.useContext)(eC);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eM),t}return t}function eM({id:e,virtual:t=null,__demoMode:s=!1}){let n=(0,r.useMemo)(()=>eO.new({id:e,virtual:t,__demoMode:s}),[]);return(0,eF.useOnUnmount)(()=>n.dispose()),n}let ew=(0,r.createContext)(null);function eD(e){let t=(0,r.useContext)(ew);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eD),t}return t}ew.displayName="ComboboxDataContext";let eA=(0,r.createContext)(null);function ek(e){let t=eT("VirtualProvider"),{options:s}=eD("VirtualProvider").virtual,n=(0,en.useSlice)(t,e=>e.optionsElement),[i,o]=(0,r.useMemo)(()=>{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,...t}){let s=r.useReducer(()=>({}),{})[1],n={...t,onChange:(n,i)=>{var o;e&&i?(0,a.flushSync)(s):s(),null==(o=t.onChange)||o.call(t,n,i)}},[i]=r.useState(()=>new E(n));return i.setOptions(n),I(()=>i._didMount(),[]),I(()=>i._willUpdate()),i}({observeElementRect:h,observeElementOffset:b,scrollToFn:S,...{enabled:0!==s.length,scrollPaddingStart:i,scrollPaddingEnd:o,count:s.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[u,d]=(0,r.useState)(0);(0,D.useIsoMorphicEffect)(()=>{d(e=>e+1)},[s]);let c=l.getVirtualItems(),p=(0,en.useSlice)(t,e=>e.activationTrigger===eI.Pointer),f=(0,en.useSlice)(t,t.selectors.activeOptionIndex);return 0===c.length?null:r.default.createElement(eA.Provider,{value:l},r.default.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=>{e&&(p||null!==f&&s.length>f&&l.scrollToIndex(f))}},c.map(t=>{var n;return r.default.createElement(r.Fragment,{key:t.key},r.default.cloneElement(null==(n=e.children)?void 0:n.call(e,{...e.slot,option:s[t.index]}),{key:`${u}-${t.key}`,"data-index":t.index,"aria-setsize":s.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let eL=r.Fragment,eK=eu.RenderFeatures.RenderStrategy|eu.RenderFeatures.Static,eB=(0,eu.forwardRefWithAs)(function(e,t){let s=(0,r.useId)(),n=(0,J.useDisabled)(),{value:i,defaultValue:o,onChange:l,form:a,name:u,by:d,invalid:c=!1,disabled:p=n||!1,onClose:f,__demoMode:h=!1,multiple:m=!1,immediate:v=!1,virtual:b=null,nullable:g,...S}=e,E=(0,O.useDefaultValue)(o),[y=m?[]:void 0,I]=(0,P.useControllable)(i,l,E),x=eM({id:s,virtual:b,__demoMode:h}),F=(0,r.useRef)({static:!1,hold:!1}),C=(0,R.useByComparator)(d),M=(0,T.useEvent)(e=>b?null===d?b.options.indexOf(e):b.options.findIndex(t=>C(t,e)):x.state.options.findIndex(t=>C(t.dataRef.current.value,e))),w=(0,r.useCallback)(e=>(0,er.match)(K.mode,{[ey.Multi]:()=>y.some(t=>C(t,e)),[ey.Single]:()=>C(y,e)}),[y]),A=(0,en.useSlice)(x,e=>e.virtual),k=(0,T.useEvent)(()=>null==f?void 0:f()),K=(0,r.useMemo)(()=>({__demoMode:h,immediate:v,optionsPropsRef:F,value:y,defaultValue:E,disabled:p,invalid:c,mode:m?ey.Multi:ey.Single,virtual:b?A:null,onChange:I,isSelected:w,calculateIndex:M,compare:C,onClose:k}),[h,v,F,y,E,p,c,m,b,A,I,w,M,C,k]);(0,D.useIsoMorphicEffect)(()=>{var e;b&&x.send({type:ex.UpdateVirtualConfiguration,options:b.options,disabled:null!=(e=b.disabled)?e:null})},[b,null==b?void 0:b.options,null==b?void 0:b.disabled]),(0,D.useIsoMorphicEffect)(()=>{x.state.dataRef.current=K},[K]);let[B,_,W,z]=(0,en.useSlice)(x,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),V=es.stackMachines.get(null),N=(0,en.useSlice)(V,(0,r.useCallback)(e=>V.selectors.isTop(e,s),[V,s]));(0,L.useOutsideClick)(N,[_,W,z],()=>x.actions.closeCombobox());let H=(0,en.useSlice)(x,x.selectors.activeOptionIndex),$=(0,en.useSlice)(x,x.selectors.activeOption),U=(0,G.useSlot)({open:B===eE.Open,disabled:p,invalid:c,activeIndex:H,activeOption:$,value:y}),[j,q]=(0,ep.useLabels)(),Q=(0,r.useCallback)(()=>
4{if(void 0!==E)return null==I?void 0:I(E)},[I,E]),Z=(0,eu.useRender)();return r.default.createElement(q,{value:j,props:{htmlFor:null==W?void 0:W.id},slot:{open:B===eE.Open,disabled:p}},r.default.createElement(Y.FloatingProvider,null,r.default.createElement(ew.Provider,{value:K},r.default.createElement(eC.Provider,{value:x},r.default.createElement(et.OpenClosedProvider,{value:(0,er.match)(B,{[eE.Open]:et.State.Open,[eE.Closed]:et.State.Closed})},null!=u&&r.default.createElement(X.FormFields,{disabled:p,data:null!=y?{[u]:y}:{},form:a,onReset:Q}),Z({ourProps:null===t?{}:{ref:t},theirProps:S,slot:U,defaultTag:eL,name:"Combobox"}))))))}),e_=(0,eu.forwardRefWithAs)(function(e,t){let s=eT("Combobox.Button"),n=eD("Combobox.Button"),[i,u]=(0,r.useState)(null),d=(0,$.useSyncRefs)(t,u,s.actions.setButtonElement),c=(0,r.useId)(),{id:p=`headlessui-combobox-button-${c}`,disabled:f=n.disabled||!1,autoFocus:h=!1,...m}=e,[v,b,g]=(0,en.useSlice)(s,e=>[e.comboboxState,e.inputElement,e.optionsElement]),S=V(b),E=v===eE.Open;(0,B.useQuickRelease)(E,{trigger:i,action:(0,r.useCallback)(e=>{if(null!=i&&i.contains(e.target)||null!=b&&b.contains(e.target))return B.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return _.isHTMLElement(t)?B.Action.Select(t):null!=g&&g.contains(e.target)?B.Action.Ignore:B.Action.Close},[i,b,g]),close:s.actions.closeCombobox,select:s.actions.selectActiveOption});let y=(0,T.useEvent)(e=>{switch(e.key){case ec.Keys.Space:case ec.Keys.Enter:e.preventDefault(),e.stopPropagation(),s.state.comboboxState===eE.Closed&&(0,a.flushSync)(()=>s.actions.openCombobox()),S();return;case ec.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),s.state.comboboxState===eE.Closed&&((0,a.flushSync)(()=>s.actions.openCombobox()),s.state.dataRef.current.value||s.actions.goToOption({focus:eo.Focus.First})),S();return;case ec.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),s.state.comboboxState===eE.Closed&&((0,a.flushSync)(()=>s.actions.openCombobox()),s.state.dataRef.current.value||s.actions.goToOption({focus:eo.Focus.Last})),S();return;case ec.Keys.Escape:if(s.state.comboboxState!==eE.Open)return;e.preventDefault(),s.state.optionsElement&&!n.optionsPropsRef.current.static&&e.stopPropagation(),(0,a.flushSync)(()=>s.actions.closeCombobox()),S();return;default:return}}),I=(0,M.useHandleToggle)(()=>{s.state.comboboxState===eE.Open?s.actions.closeCombobox():s.actions.openCombobox(),S()}),R=(0,ep.useLabelledBy)([p]),{isFocusVisible:P,focusProps:O}=(0,o.useFocusRing)({autoFocus:h}),{isHovered:F,hoverProps:C}=(0,l.useHover)({isDisabled:f}),{pressed:w,pressProps:D}=(0,x.useActivePress)({disabled:f}),A=(0,G.useSlot)({open:v===eE.Open,active:w||v===eE.Open,disabled:f,invalid:n.invalid,value:n.value,hover:F,focus:P}),k=(0,eu.mergeProps)({ref:d,id:p,type:(0,N.useResolveButtonType)(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==g?void 0:g.id,"aria-expanded":v===eE.Open,"aria-labelledby":R,disabled:f||void 0,autoFocus:h,onKeyDown:y},I,O,C,D);return(0,eu.useRender)()({ourProps:k,theirProps:m,slot:A,defaultTag:"button",name:"Combobox.Button"})}),eW=(0,eu.forwardRefWithAs)(function(e,t){var s,n;let i=eT("Combobox.Input"),u=eD("Combobox.Input"),d=(0,r.useId)(),c=(0,ee.useProvidedId)(),{id:p=c||`headlessui-combobox-input-${d}`,onChange:f,displayValue:h,disabled:m=u.disabled||!1,autoFocus:v=!1,type:b="text",...g}=e,S=(0,r.useRef)(null),E=(0,$.useSyncRefs)(S,t,(0,Y.useFloatingReference)(),i.actions.setInputElement),[y,I]=(0,en.useSlice)(i,e=>[e.comboboxState,e.isTyping]),x=(0,F.useDisposables)(),R=(0,T.useEvent)(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:eo.Focus.Nothing})}),P=(0,r.useMemo)(()=>{var e;return"function"==typeof h&&void 0!==u.value?null!=(e=h(u.value))?e:"":"string"==typeof u.value?u.value:""},[u.value,h]);(0,Q.useWatch)(([e,t],[s,n])=>{if(i.state.isTyping)return;let o=S.current;o&&((n===eE.Open&&t===eE.Closed||e!==s)&&(o.value=e),requestAnimationFrame(()=>{if(i.state.isTyping||!o||(0,W.isActiveElement)(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)}))},[P,y,I]),(0,Q.useWatch)(([e],[t])=>
4{if(e===eE.Open&&t===eE.Closed){if(i.state.isTyping)return;let e=S.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:n,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(s,n,o):e.setSelectionRange(s,n)}},[y]);let O=(0,r.useRef)(!1),C=(0,T.useEvent)(()=>{O.current=!0}),M=(0,T.useEvent)(()=>{x.nextFrame(()=>{O.current=!1})}),w=(0,T.useEvent)(e=>{switch(i.actions.setIsTyping(!0),e.key){case ec.Keys.Enter:if(i.state.comboboxState!==eE.Open||O.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state))return void i.actions.closeCombobox();i.actions.selectActiveOption(),u.mode===ey.Single&&i.actions.closeCombobox();break;case ec.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,er.match)(i.state.comboboxState,{[eE.Open]:()=>i.actions.goToOption({focus:eo.Focus.Next}),[eE.Closed]:()=>i.actions.openCombobox()});case ec.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,er.match)(i.state.comboboxState,{[eE.Open]:()=>i.actions.goToOption({focus:eo.Focus.Previous}),[eE.Closed]:()=>{(0,a.flushSync)(()=>i.actions.openCombobox()),u.value||i.actions.goToOption({focus:eo.Focus.Last})}});case ec.Keys.Home:if(i.state.comboboxState===eE.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eo.Focus.First});case ec.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eo.Focus.First});case ec.Keys.End:if(i.state.comboboxState===eE.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eo.Focus.Last});case ec.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eo.Focus.Last});case ec.Keys.Escape:return i.state.comboboxState!==eE.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!u.optionsPropsRef.current.static&&e.stopPropagation(),u.mode===ey.Single&&null===u.value&&R(),i.actions.closeCombobox());case ec.Keys.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==eE.Open)return;u.mode===ey.Single&&i.state.activationTrigger!==eI.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),D=(0,T.useEvent)(e=>{null==f||f(e),u.mode===ey.Single&&""===e.target.value&&R(),i.actions.openCombobox()}),A=(0,T.useEvent)(e=>{var t,s,n;let o=null!=(t=e.relatedTarget)?t:ei.history.find(t=>t!==e.currentTarget);if(!(null!=(s=i.state.optionsElement)&&s.contains(o))&&!(null!=(n=i.state.buttonElement)&&n.contains(o))&&i.state.comboboxState===eE.Open)return e.preventDefault(),u.mode===ey.Single&&null===u.value&&R(),i.actions.closeCombobox()}),k=(0,T.useEvent)(e=>{var t,s,n;let o=null!=(t=e.relatedTarget)?t:ei.history.find(t=>t!==e.currentTarget);null!=(s=i.state.buttonElement)&&s.contains(o)||null!=(n=i.state.optionsElement)&&n.contains(o)||u.disabled||u.immediate&&i.state.comboboxState!==eE.Open&&x.microTask(()=>{(0,a.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(eI.Focus)})}),L=(0,ep.useLabelledBy)(),K=(0,ed.useDescribedBy)(),{isFocused:B,focusProps:_}=(0,o.useFocusRing)({autoFocus:v}),{isHovered:z,hoverProps:V}=(0,l.useHover)({isDisabled:m}),N=(0,en.useSlice)(i,e=>e.optionsElement),H=(0,G.useSlot)({open:y===eE.Open,disabled:m,invalid:u.invalid,hover:z,focus:B,autofocus:v}),U=(0,eu.mergeProps)({ref:E,id:p,role:"combobox",type:b,"aria-controls":null==N?void 0:N.id,"aria-expanded":y===eE.Open,"aria-activedescendant":(0,en.useSlice)(i,i.selectors.activeDescendantId),"aria-labelledby":L,"aria-describedby":K,"aria-autocomplete":"list",defaultValue:null!=(n=null!=(s=e.defaultValue)?s:void 0!==u.defaultValue?null==h?void 0:h(u.defaultValue):null)?n:u.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:C,onCompositionEnd:M,onKeyDown:w,onChange:D,onFocus:k,onBlur:A},_,V);return(0,eu.useRender)()({ourProps:U,theirProps:g,slot:H,defaultTag:"input",name:"Combobox.Input"})}),ez=ep.Label,eV=(0,eu.forwardRefWithAs)(function(e,t){var s,n,i;let o=(0,r.useId)(),{id:l=`headlessui-combobox-options-${o}`,hold:a=!1,anchor:u,portal:d=!1,modal:c=!0,transition:p=!1,...f}=e,h=eT("Combobox.Options"),m=eD("Combobox.Options"),v=(0,Y.useResolvedAnchor)(u);v&&(d=!0);let[b,g]=(0,Y.useFloatingPanel)(v),[S,E]=(0,r.useState)(null),y=(0,Y.useFloatingPanelProps)(),I=(0,$.useSyncRefs)(t,v?b:null,h.actions.setOptionsElement,E),[x,R,P,O,F]=(0,en.useSlice)(h,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),M=(0,K.useOwnerDocument)(R||P),A=(0,K.useOwnerDocument)(O),L=(0,et.useOpenClosed)(),[B,_]=(0,j.useTransition)(p,S,null!==L?(L&et.State.Open)===et.State.Open:x===eE.Open);(0,k.useOnDisappear)(B,R,h.actions.closeCombobox);let W=!m.__demoMode&&c&&x===eE.Open;(0,H.useScrollLock)(W,A);let z=!m.__demoMode&&c&&x===eE.Open;(0,w.useInertOthers)(z,{allowed:(0,r.useCallback)(()=>[R,P,O],[R,P,O])});let V=!(0,en.useSlice)(h,h.selectors.didInputMove)&&B;(0,D.useIsoMorphicEffect)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,D.useIsoMorphicEffect)(()=>{m.optionsPropsRef.current.hold=a},[m.optionsPropsRef,a]),(0,q.useTreeWalker)(x===eE.Open,{container:O,accept:e=>
4"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let N=(0,ep.useLabelledBy)([null==P?void 0:P.id]),U=(0,G.useSlot)({open:x===eE.Open,option:void 0}),Q=(0,T.useEvent)(()=>{h.actions.setActivationTrigger(eI.Pointer)}),J=(0,T.useEvent)(e=>{e.preventDefault(),h.actions.setActivationTrigger(eI.Pointer)}),X=(0,eu.mergeProps)(v?y():{},{"aria-labelledby":N,role:"listbox","aria-multiselectable":m.mode===ey.Multi||void 0,id:l,ref:I,style:{...f.style,...g,"--input-width":(0,C.useElementSize)(B,R,!0).width,"--button-width":(0,C.useElementSize)(B,P,!0).width},onWheel:F===eI.Pointer?void 0:Q,onMouseDown:J,...(0,j.transitionDataAttributes)(_)}),ee=B&&x===eE.Closed&&!e.static,es=(0,Z.useFrozenData)(ee,null==(s=m.virtual)?void 0:s.options),ei=(0,Z.useFrozenData)(ee,m.value),eo=(0,r.useCallback)(e=>m.compare(ei,e),[m.compare,ei]),el=(0,r.useMemo)(()=>{if(!m.virtual)return m;if(void 0===es)throw Error("Missing `options` in virtual mode");return es!==m.virtual.options?{...m,virtual:{...m.virtual,options:es}}:m},[m,es,null==(n=m.virtual)?void 0:n.options]);m.virtual&&Object.assign(f,{children:r.default.createElement(ew.Provider,{value:el},r.default.createElement(ek,{slot:U},f.children))});let er=(0,eu.useRender)(),ea=(0,r.useMemo)(()=>m.mode===ey.Multi?m:{...m,isSelected:eo},[m,eo]);return r.default.createElement(eh.Portal,{enabled:!!d&&(e.static||B),ownerDocument:M},r.default.createElement(ew.Provider,{value:ea},er({ourProps:X,theirProps:{...f,children:r.default.createElement(Z.Frozen,{freeze:ee},"function"==typeof f.children?null==(i=f.children)?void 0:i.call(f,U):f.children)},slot:U,defaultTag:"div",features:eK,visible:V,name:"Combobox.Options"}
4)))}),eN=(0,eu.forwardRefWithAs)(function(e,t){var s,n,i;let o=eD("Combobox.Option"),l=eT("Combobox.Option"),a=(0,r.useId)(),{id:u=`headlessui-combobox-option-${a}`,value:d,disabled:c=null!=(i=null==(n=null==(s=o.virtual)?void 0:s.disabled)?void 0:n.call(s,d))&&i,order:p=null,...f}=e,[h]=(0,en.useSlice)(l,e=>[e.inputElement]),m=V(h),v=(0,en.useSlice)(l,(0,r.useCallback)(e=>l.selectors.isActive(e,d,u),[d,u])),b=o.isSelected(d),g=(0,r.useRef)(null),S=(0,A.useLatestValue)({disabled:c,value:d,domRef:g,order:p}),E=(0,r.useContext)(eA),y=(0,$.useSyncRefs)(t,g,E?E.measureElement:null),I=(0,T.useEvent)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(d)});(0,D.useIsoMorphicEffect)(()=>l.actions.registerOption(u,S),[S,u]);let x=(0,en.useSlice)(l,(0,r.useCallback)(e=>l.selectors.shouldScrollIntoView(e,d,u),[d,u]));(0,D.useIsoMorphicEffect)(()=>{if(x)return(0,el.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[x,g]);let R=(0,T.useEvent)(e=>{e.preventDefault(),e.button===ef.MouseButton.Left&&(c||(I(),(0,ea.isMobile)()||requestAnimationFrame(()=>m()),o.mode===ey.Single&&l.actions.closeCombobox()))}),P=(0,T.useEvent)(()=>{if(c)return l.actions.goToOption({focus:eo.Focus.Nothing});let e=o.calculateIndex(d);l.actions.goToOption({focus:eo.Focus.Specific,idx:e})}),O=(0,U.useTrackedPointer)(),F=(0,T.useEvent)(e=>O.update(e)),C=(0,T.useEvent)(e=>{if(!O.wasMoved(e)||c||v&&l.state.activationTrigger===eI.Pointer)return;let t=o.calculateIndex(d);l.actions.goToOption({focus:eo.Focus.Specific,idx:t},eI.Pointer)}),M=(0,T.useEvent)(e=>{O.wasMoved(e)&&(c||v&&(o.optionsPropsRef.current.hold||l.state.activationTrigger===eI.Pointer&&l.actions.goToOption({focus:eo.Focus.Nothing})))}),w=(0,G.useSlot)({active:v,focus:v,selected:b,disabled:c});return(0,eu.useRender)()({ourProps:{id:u,ref:y,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":b,disabled:void 0,onMouseDown:R,onFocus:P,onPointerEnter:F,onMouseEnter:F,onPointerMove:C,onMouseMove:C,onPointerLeave:M,onMouseLeave:M},theirProps:f,slot:w,defaultTag:"div",name:"Combobox.Option"})}),eH=Object.assign(eB,{Input:eW,Button:e_,Label:ez,Options:eV,Option:eN});e.s(["Combobox",0,eH,"ComboboxButton",0,e_,"ComboboxInput",0,eW,"ComboboxLabel",0,ez,"ComboboxOption",0,eN,"ComboboxOptions",0,eV],48832)},26411,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(40075),i=e.i(5419),o=e.i(51603),l=e.i(66383);let r=n.Fragment,a=(0,l.forwardRefWithAs)(function(e,n){let{...a}=e,{isFocusVisible:u,focusProps:d}=(0,t.useFocusRing)(),{isHovered:c,hoverProps:p}=(0,s.useHover)({isDisabled:!1}),{pressed:f,pressProps:h}=(0,i.useActivePress)({disabled:!1}),m=(0,l.mergeProps)({ref:n},d,p,h),v=(0,o.useSlot)({hover:c,focus:u,active:f});return(0,l.useRender)()({ourProps:m,theirProps:a,slot:v,defaultTag:r,name:"DataInteractive"})});e.s(["DataInteractive",0,a])},72278,e=>{"use strict";let t,s;var n,i=e.i(84837),o=e.i(64731),l=e.i(40075),r=e.i(5419),a=e.i(674),u=e.i(97271),d=e.i(51603),c=e.i(26466),p=e.i(91306),f=e.i(96895),h=e.i(81489),m=e.i(49406),v=e.i(42231),b=e.i(38789),g=e.i(9858),S=e.i(66383);let E=null!=(n=l.default.startTransition)?n:function(e){e()};var y=e.i(72773),I=((t=I||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),x=((s=x||{})[s.ToggleDisclosure=0]="ToggleDisclosure",s[s.CloseDisclosure=1]="CloseDisclosure",s[s.SetButtonId=2]="SetButtonId",s[s.SetPanelId=3]="SetPanelId",s[s.SetButtonElement=4]="SetButtonElement",s[s.SetPanelElement=5]="SetPanelElement",s);let R={0:e=>({...e,disclosureState:(0,b.match)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},P=(0,l.createContext)(null);function O(e){let t=(0,l.useContext)(P);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}P.displayName="DisclosureContext";let F=(0,l.createContext)(null);F.displayName="DisclosureAPIContext";let C=(0,l.createContext)(null);function T(e,t){return(0,b.match)(t.type,R,e,t)}C.displayName="DisclosurePanelContext";let M=l.Fragment,w=S.RenderFeatures.RenderStrategy|S.RenderFeatures.Static,D=(0,S.forwardRefWithAs)(function(e,t){let{defaultOpen:s=!1,...n}=e,i=(0,l.useRef)(null),o=(0,c.useSyncRefs)(t,(0,c.optionalRef)(e=>{i.current=e},void 0===e.as||(0,S.isFragment)(e.as))),r=(0,l.useReducer)(T,{disclosureState:+!s,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:p},m]=r,E=(0,a.useEvent)(e=>{m({type:1});let t=(0,g.getOwnerDocument)(i.current);if(!t||!p)return;let s=e?v.isHTMLorSVGElement(e)?e:"current"in e&&v.isHTMLorSVGElement(e.current)?e.current:t.getElementById(p):t.getElementById(p);null==s||s.focus()}),y=(0,l.useMemo)(()=>({close:E}),[E]),I=(0,d.useSlot)({open:0===u,close:E}),x=(0,S.useRender)();return l.default.createElement(P.Provider,{value:r},l.default.createElement(F.Provider,{value:y},l.default.createElement(f.CloseProvider,{value:E},l.default.createElement(h.OpenClosedProvider,{value:(0,b.match)(u,{0:h.State.Open,1:h.State.Closed})},x({ourProps:{ref:o},theirProps:n,slot:I,defaultTag:M,name:"Disclosure"})))))}),A=(0,S.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{id:n=`headlessui-disclosure-button-${s}`,disabled:p=!1,autoFocus:f=!1,...h}=e,[v,b]=O("Disclosure.Button"),g=(0,l.useContext)(C),E=null!==g&&g===v.panelId,I=(0,l.useRef)(null),x=(0,c.useSyncRefs)(I,t,(0,a.useEvent)(e=>{if(!E)return b({type:4,element:e})}));(0,l.useEffect)(()=>
4{if(!E)return b({type:2,buttonId:n}),()=>{b({type:2,buttonId:null})}},[n,b,E]);let R=(0,a.useEvent)(e=>{var t;if(E){if(1===v.disclosureState)return;switch(e.key){case y.Keys.Space:case y.Keys.Enter:e.preventDefault(),e.stopPropagation(),b({type:0}),null==(t=v.buttonElement)||t.focus()}}else switch(e.key){case y.Keys.Space:case y.Keys.Enter:e.preventDefault(),e.stopPropagation(),b({type:0})}}),P=(0,a.useEvent)(e=>{e.key===y.Keys.Space&&e.preventDefault()}),F=(0,a.useEvent)(e=>{var t;(0,m.isDisabledReactIssue7711)(e.currentTarget)||p||(E?(b({type:0}),null==(t=v.buttonElement)||t.focus()):b({type:0}))}),{isFocusVisible:T,focusProps:M}=(0,i.useFocusRing)({autoFocus:f}),{isHovered:w,hoverProps:D}=(0,o.useHover)({isDisabled:p}),{pressed:A,pressProps:k}=(0,r.useActivePress)({disabled:p}),L=(0,d.useSlot)({open:0===v.disclosureState,hover:w,active:A,disabled:p,focus:T,autofocus:f}),K=(0,u.useResolveButtonType)(e,v.buttonElement),B=E?(0,S.mergeProps)({ref:x,type:K,disabled:p||void 0,autoFocus:f,onKeyDown:R,onClick:F},M,D,k):(0,S.mergeProps)({ref:x,id:n,type:K,"aria-expanded":0===v.disclosureState,"aria-controls":v.panelElement?v.panelId:void 0,disabled:p||void 0,autoFocus:f,onKeyDown:R,onKeyUp:P,onClick:F},M,D,k);return(0,S.useRender)()({ourProps:B,theirProps:h,slot:L,defaultTag:"button",name:"Disclosure.Button"})}),k=(0,S.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{id:n=`headlessui-disclosure-panel-${s}`,transition:i=!1,...o}=e,[r,u]=O("Disclosure.Panel"),{close:f}=function e(t){let s=(0,l.useContext)(F);if(null===s){let s=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,e),s}return s}("Disclosure.Panel"),[m,v]=(0,l.useState)(null),b=(0,c.useSyncRefs)(t,(0,a.useEvent)(e=>{E(()=>u({type:5,element:e}))}),v);(0,l.useEffect)(()=>(u({type:3,panelId:n}),()=>{u({type:3,panelId:null})}),[n,u]);let g=(0,h.useOpenClosed)(),[y,I]=(0,p.useTransition)(i,m,null!==g?(g&h.State.Open)===h.State.Open:0===r.disclosureState),x=(0,d.useSlot)({open:0===r.disclosureState,close:f}),R={ref:b,id:n,...(0,p.transitionDataAttributes)(I)},P=(0,S.useRender)();return l.default.createElement(h.ResetOpenClosedProvider,null,l.default.createElement(C.Provider,{value:r.panelId},P({ourProps:R,theirProps:o,slot:x,defaultTag:"div",features:w,visible:y,name:"Disclosure.Panel"})))}),L=Object.assign(D,{Button:A,Panel:k});e.s(["Disclosure",0,L,"DisclosureButton",0,A,"DisclosurePanel",0,k],72278)},84195,e=>{"use strict";var t=e.i(40075),s=e.i(51603),n=e.i(1183),i=e.i(95569),o=e.i(82684),l=e.i(66383),r=e.i(83791),a=e.i(64118);let u=(0,l.forwardRefWithAs)(function(e,u){let d=`headlessui-control-${(0,t.useId)()}`,[c,p]=(0,a.useLabels)(),[f,h]=(0,r.useDescriptions)(),m=(0,n.useDisabled)(),{disabled:v=m||!1,...b}=e,g=(0,s.useSlot)({disabled:v}),S=(0,l.useRender)();return t.default.createElement(n.DisabledProvider,{value:v},t.default.createElement(p,{value:c},t.default.createElement(h,{value:f},t.default.createElement(o.IdProvider,{id:d},S({ourProps:{ref:u,disabled:v||void 0,"aria-disabled":v||void 0},theirProps:{...b,children:t.default.createElement(i.FormFieldsProvider,null,"function"==typeof b.children?b.children(g):b.children)},slot:g,defaultTag:"div",name:"Field"})))))});e.s(["Field",0,u])},29147,e=>{"use strict";var t=e.i(40075),s=e.i(42231),n=e.i(51603),i=e.i(26466),o=e.i(1183),l=e.i(66383),r=e.i(64118);let a="fieldset",u=(0,l.forwardRefWithAs)(function(e,u){var d;let c=(0,o.useDisabled)(),{disabled:p=c||!1,...f}=e,[h,m]=function(e){let n="string"==typeof e?e:void 0,[i,o]=(0,t.useState)(n);return[null!=n?n:i,(0,t.useCallback)(e=>{n||s.isHTMLElement(e)&&o(e.tagName.toLowerCase())},[n])]}(null!=(d=e.as)?d:a),v=(0,i.useSyncRefs)(u,m),[b,g]=(0,r.useLabels)(),S=(0,n.useSlot)({disabled:p}),E="fieldset"===h?{ref:v,"aria-labelledby":b,disabled:p||void 0}:{ref:v,role:"group","aria-labelledby":b,"aria-disabled":p||void 0},y=(0,l.useRender)();return t.default.createElement(o.DisabledProvider,{value:p},t.default.createElement(g,null,y({ourProps:E,theirProps:f,slot:S,defaultTag:a,name:"Fieldset"})))});e.s(["Fieldset",0,u],29147)},93823,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(40075),i=e.i(51603),o=e.i(1183),l=e.i(82684),r=e.i(66383),a=e.i(83791),u=e.i(64118);let d=(0,r.forwardRefWithAs)(function(e,d){let c=(0,n.useId)(),p=(0,l.useProvidedId)(),f=(0,o.useDisabled)(),{id:h=p||`headlessui-input-${c}`,disabled:m=f||!1,autoFocus:v=!1,invalid:b=!1,...g}=e,S=(0,u.useLabelledBy)(),E=(0,a.useDescribedBy)(),{isFocused:y,focusProps:I}=(0,t.useFocusRing)({autoFocus:v}),{isHovered:x,hoverProps:R}=(0,s.useHover)({isDisabled:m}),P=(0,r.mergeProps)({ref:d,id:h,"aria-labelledby":S,"aria-describedby":E,"aria-invalid":b?"true":void 0,disabled:m||void 0,autoFocus:v}
4,I,R),O=(0,i.useSlot)({disabled:m,invalid:b,hover:x,focus:y,autofocus:v});return(0,r.useRender)()({ourProps:P,theirProps:g,slot:O,defaultTag:"input",name:"Input"})});e.s(["Input",0,d])},86265,e=>{"use strict";var t=e.i(40075),s=e.i(66383),n=e.i(64118);n.Label;let i=(0,s.forwardRefWithAs)(function(e,s){return t.default.createElement(n.Label,{as:"div",ref:s,...e})});e.s(["Legend",0,i])},91050,e=>{"use strict";let t,s,n;var i=e.i(84837),o=e.i(64731),l=e.i(40075),r=e.i(33464),a=e.i(5419),u=e.i(29997),d=e.i(29023),c=e.i(674),p=e.i(4277),f=e.i(36827),h=e.i(1483),m=e.i(45516),v=e.i(66606),b=e.i(44873),g=e.i(37683),S=e.i(97271),E=e.i(5738),y=e.i(51603),I=e.i(26466),x=e.i(35841),R=e.i(95658),P=e.i(91306),O=e.i(96495),F=e.i(27638),C=e.i(81489),T=e.i(35057),M=e.i(25475),w=e.i(55828),D=e.i(32660),A=e.i(42231),k=e.i(67679),L=e.i(38789),K=e.i(9858),B=e.i(66383),_=e.i(83791),W=e.i(72773),z=e.i(64118),V=e.i(39801),N=e.i(18273),H=e.i(6410),G=Object.defineProperty,$=(e,t,s)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?G(e,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[n]=s,s},U=((t=U||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),j=((s=j||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),q=((n=q||{})[n.OpenMenu=0]="OpenMenu",n[n.CloseMenu=1]="CloseMenu",n[n.GoToItem=2]="GoToItem",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterItems=5]="RegisterItems",n[n.UnregisterItems=6]="UnregisterItems",n[n.SetButtonElement=7]="SetButtonElement",n[n.SetItemsElement=8]="SetItemsElement",n[n.SortItems=9]="SortItems",n[n.MarkButtonAsMoved=10]="MarkButtonAsMoved",n);function Q(e,t=e=>e){let s=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=(0,k.sortByDomNode)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=s?n.indexOf(s):null;return -1===i&&(i=null),{items:n,activeItemIndex:i}}let J={1(e){if(1===e.menuState)return e;let t=e.buttonElement?H.ElementPositionState.Tracked((0,H.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:w.Focus.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:H.ElementPositionState.Idle},2:(e,t)=>{var s,n,i,o,l;if(1===e.menuState)return e;let r={...e,searchQuery:"",activationTrigger:null!=(s=t.trigger)?s:1,__demoMode:!1};if(t.focus===w.Focus.Nothing)return{...r,activeItemIndex:null};if(t.focus===w.Focus.Specific)return{...r,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===w.Focus.Previous){let s=e.activeItemIndex;if(null!==s){let o=e.items[s].dataRef.current.domRef,l=(0,w.calculateActiveIndex)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.items[l].dataRef.current.domRef;if((null==(n=o.current)?void 0:n.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...r,activeItemIndex:l}}}}else if(t.focus===w.Focus.Next){let s=e.activeItemIndex;if(null!==s){let n=e.items[s].dataRef.current.domRef,i=(0,w.calculateActiveIndex)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=n.current)?void 0:o.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...r,activeItemIndex:i}}}}let a=Q(e),u=(0,w.calculateActiveIndex)(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...r,...a,activeItemIndex:u}},3:(e,t)=>{let s=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+s).concat(e.items.slice(0,e.activeItemIndex+s)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let s=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==w.Focus.Nothing&&(n=(0,w.calculateActiveIndex)(e.pendingFocus,{resolveItems:()=>s,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:s,activeItemIndex:n,pendingFocus:{focus:w.Focus.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let s=e.items,n=[],i=new Set(t.items);for(let[e,t]of s.entries())if(i.has(t.id)&&(n.push(e),i.delete(t.id),0===i.size))break;if(n.length>0)for(let e of(s=s.slice(),n.reverse()))s.splice(e,1);return{...e,items:s,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>
4e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...Q(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:H.ElementPositionState.Moved}};class Y extends N.Machine{constructor(e){super(e),$(this,"actions",{registerItem:(0,N.batch)(()=>{let e=[],t=new Set;return[(s,n)=>{t.has(n)||(t.add(n),e.push({id:s,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,N.batch)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),$(this,"selectors",{activeDescendantId(e){var t;let s=e.activeItemIndex,n=e.items;return null===s||null==(t=n[s])?void 0:t.id},isActive(e,t){var s;let n=e.activeItemIndex,i=e.items;return null!==n&&(null==(s=i[n])?void 0:s.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=T.stackMachines.get(null);this.disposables.add(t.on(T.ActionTypes.Push,s=>{t.selectors.isTop(s,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,H.detectMovement)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new Y({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:w.Focus.Nothing},buttonPositionState:H.ElementPositionState.Idle})}reduce(e,t){return(0,L.match)(t.type,J,e,t)}}var X=e.i(46723);let Z=(0,l.createContext)(null);function ee(e){let t=(0,l.useContext)(Z);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,et),t}return t}function et({id:e,__demoMode:t=!1}){let s=(0,l.useMemo)(()=>Y.new({id:e,__demoMode:t}),[]);return(0,X.useOnUnmount)(()=>s.dispose()),s}let es=l.Fragment,en=B.RenderFeatures.RenderStrategy|B.RenderFeatures.Static,ei=l.Fragment,eo=(0,B.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{__demoMode:n=!1,...i}=e,o=et({id:s,__demoMode:n}),[r,a,u]=(0,M.useSlice)(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),d=(0,I.useSyncRefs)(t),p=T.stackMachines.get(null),f=(0,M.useSlice)(p,(0,l.useCallback)(e=>p.selectors.isTop(e,s),[p,s]));(0,v.useOutsideClick)(f,[u,a],(e,t)=>{var s;o.send({type:q.CloseMenu}),(0,k.isFocusableElement)(t,k.FocusableMode.Loose)||(e.preventDefault(),null==(s=o.state.buttonElement)||s.focus())});let h=(0,c.useEvent)(()=>{o.send({type:q.CloseMenu})}),m=(0,y.useSlot)({open:r===U.Open,close:h}),b=(0,B.useRender)();return l.default.createElement(F.FloatingProvider,null,l.default.createElement(Z.Provider,{value:o},l.default.createElement(C.OpenClosedProvider,{value:(0,L.match)(r,{[U.Open]:C.State.Open,[U.Closed]:C.State.Closed})},b({ourProps:{ref:d},theirProps:i,slot:m,defaultTag:es,name:"Menu"}))))}),el=(0,B.forwardRefWithAs)(function(e,t){let s=ee("Menu.Button"),n=(0,l.useId)(),{id:u=`headlessui-menu-button-${n}`,disabled:d=!1,autoFocus:f=!1,...h}=e,m=(0,l.useRef)(null),v=(0,F.useFloatingReferenceProps)(),b=(0,I.useSyncRefs)(t,m,(0,F.useFloatingReference)(),(0,c.useEvent)(e=>s.send({type:q.SetButtonElement,element:e}))),E=(0,c.useEvent)(e=>{switch(e.key){case W.Keys.Space:case W.Keys.Enter:case W.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),s.send({type:q.OpenMenu,focus:{focus:w.Focus.First}});break;case W.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),s.send({type:q.OpenMenu,focus:{focus:w.Focus.Last}})}}),x=(0,c.useEvent)(e=>{e.key===W.Keys.Space&&e.preventDefault()}),[R,P,O]=(0,M.useSlice)(s,e=>[e.menuState,e.buttonElement,e.itemsElement]),C=R===U.Open;(0,g.useQuickRelease)(C,{trigger:P,action:(0,l.useCallback)(e=>{if(null!=P&&P.contains(e.target))return g.Action.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return A.isHTMLElement(t)?g.Action.Select(t):null!=O&&O.contains(e.target)?g.Action.Ignore:g.Action.Close},[P,O]),close:(0,l.useCallback)(()=>s.send({type:q.CloseMenu}),[]),select:(0,l.useCallback)(e=>e.click(),[])});let T=(0,p.useHandleToggle)(e=>{var t;d||(R===U.Open?((0,r.flushSync)(()=>s.send({type:q.CloseMenu}
4)),null==(t=m.current)||t.focus({preventScroll:!0})):(e.preventDefault(),s.send({type:q.OpenMenu,focus:{focus:w.Focus.Nothing},trigger:j.Pointer})))}),{isFocusVisible:D,focusProps:k}=(0,i.useFocusRing)({autoFocus:f}),{isHovered:L,hoverProps:K}=(0,o.useHover)({isDisabled:d}),{pressed:_,pressProps:z}=(0,a.useActivePress)({disabled:d}),V=(0,y.useSlot)({open:R===U.Open,active:_||R===U.Open,disabled:d,hover:L,focus:D,autofocus:f}),N=(0,B.mergeProps)(v(),{ref:b,id:u,type:(0,S.useResolveButtonType)(e,m.current),"aria-haspopup":"menu","aria-controls":null==O?void 0:O.id,"aria-expanded":R===U.Open,disabled:d||void 0,autoFocus:f,onKeyDown:E,onKeyUp:x},T,k,K,z);return(0,B.useRender)()({ourProps:N,theirProps:h,slot:V,defaultTag:"button",name:"Menu.Button"})}),er=(0,B.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{id:n=`headlessui-menu-items-${s}`,anchor:i,portal:o=!1,modal:a=!0,transition:p=!1,...h}=e,v=(0,F.useResolvedAnchor)(i),g=ee("Menu.Items"),[S,x]=(0,F.useFloatingPanel)(v),R=(0,F.useFloatingPanelProps)(),[T,D]=(0,l.useState)(null),A=(0,I.useSyncRefs)(t,v?S:null,(0,c.useEvent)(e=>g.send({type:q.SetItemsElement,element:e})),D),[L,_]=(0,M.useSlice)(g,e=>[e.menuState,e.buttonElement]),z=(0,b.useOwnerDocument)(_),N=(0,b.useOwnerDocument)(T);v&&(o=!0);let H=(0,C.useOpenClosed)(),[G,$]=(0,P.useTransition)(p,T,null!==H?(H&C.State.Open)===C.State.Open:L===U.Open);(0,m.useOnDisappear)(G,_,()=>{g.send({type:q.CloseMenu})});let j=(0,M.useSlice)(g,e=>e.__demoMode),Q=!j&&a&&L===U.Open;
4(0,E.useScrollLock)(Q,N);let J=!j&&a&&L===U.Open;(0,f.useInertOthers)(J,{allowed:(0,l.useCallback)(()=>[_,T],[_,T])});let Y=!(0,M.useSlice)(g,g.selectors.didButtonMove)&&G;(0,l.useEffect)(()=>{T&&L===U.Open&&((0,K.isActiveElement)(T)||T.focus({preventScroll:!0}))},[L,T]),(0,O.useTreeWalker)(L===U.Open,{container:T,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let X=(0,u.useDisposables)(),Z=(0,c.useEvent)(e=>{var t,s,n;switch(X.dispose(),e.key){case W.Keys.Space:if(""!==g.state.searchQuery)return e.preventDefault(),e.stopPropagation(),g.send({type:q.Search,value:e.key});case W.Keys.Enter:if(e.preventDefault(),e.stopPropagation(),null!==g.state.activeItemIndex){let{dataRef:e}=g.state.items[g.state.activeItemIndex];null==(s=null==(t=e.current)?void 0:t.domRef.current)||s.click()}g.send({type:q.CloseMenu}),(0,k.restoreFocusIfNecessary)(g.state.buttonElement);break;case W.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),g.send({type:q.GoToItem,focus:w.Focus.Next});case W.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),g.send({type:q.GoToItem,focus:w.Focus.Previous});case W.Keys.Home:case W.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),g.send({type:q.GoToItem,focus:w.Focus.First});case W.Keys.End:case W.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),g.send({type:q.GoToItem,focus:w.Focus.Last});case W.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,r.flushSync)(()=>g.send({type:q.CloseMenu})),null==(n=g.state.buttonElement)||n.focus({preventScroll:!0});break;case W.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,r.flushSync)(()=>g.send({type:q.CloseMenu})),(0,k.focusFrom)(g.state.buttonElement,e.shiftKey?k.Focus.Previous:k.Focus.Next);break;default:1===e.key.length&&(g.send({type:q.Search,value:e.key}),X.setTimeout(()=>g.send({type:q.ClearSearch}),350))}}),et=(0,c.useEvent)(e=>{e.key===W.Keys.Space&&e.preventDefault()}),es=(0,y.useSlot)({open:L===U.Open}),ei=(0,B.mergeProps)(v?R():{},{"aria-activedescendant":(0,M.useSlice)(g,g.selectors.activeDescendantId),"aria-labelledby":(0,M.useSlice)(g,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:Z,onKeyUp:et,role:"menu",tabIndex:L===U.Open?0:void 0,ref:A,style:{...h.style,...x,"--button-width":(0,d.useElementSize)(G,_,!0).width},...(0,P.transitionDataAttributes)($)}),eo=(0,B.useRender)();return l.default.createElement(V.Portal,{enabled:!!o&&(e.static||G),ownerDocument:z},eo({ourProps:ei,theirProps:h,slot:es,defaultTag:"div",features:en,visible:Y,name:"Menu.Items"}))}),ea=(0,B.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{id:n=`headlessui-menu-item-${s}`,disabled:i=!1,...o}=e,r=ee("Menu.Item"),a=(0,M.useSlice)(r,e=>r.selectors.isActive(e,n)),u=(0,l.useRef)(null),d=(0,I.useSyncRefs)(t,u),p=(0,M.useSlice)(r,e=>r.selectors.shouldScrollIntoView(e,n));(0,h.useIsoMorphicEffect)(()=>{if(p)return(0,D.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[p,u]);let f=(0,x.useTextValue)(u),m=(0,l.useRef)({disabled:i,domRef:u,get textValue(){return f()}});(0,h.useIsoMorphicEffect)(()=>{m.current.disabled=i},[m,i]),(0,h.useIsoMorphicEffect)(()=>(r.actions.registerItem(n,m),()=>r.actions.unregisterItem(n)),[m,n]);let v=(0,c.useEvent)(()=>{r.send({type:q.CloseMenu})}),b=(0,c.useEvent)(e=>{if(i)return e.preventDefault();r.send({type:q.CloseMenu}),(0,k.restoreFocusIfNecessary)(r.state.buttonElement)}),g=(0,c.useEvent)(()=>{if(i)return r.send({type:q.GoToItem,focus:w.Focus.Nothing});r.send({type:q.GoToItem,focus:w.Focus.Specific,id:n})}),S=(0,R.useTrackedPointer)(),E=(0,c.useEvent)(e=>S.update(e)),P=(0,c.useEvent)(e=>{S.wasMoved(e)&&(i||a||r.send({type:q.GoToItem,focus:w.Focus.Specific,id:n,trigger:j.Pointer}))}),O=(0,c.useEvent)(e=>{S.wasMoved(e)&&(i||a&&r.state.activationTrigger===j.Pointer&&r.send({type:q.GoToItem,focus:w.Focus.Nothing}))}),[F,C]=(0,z.useLabels)(),[T,A]=(0,_.useDescriptions)(),L=(0,y.useSlot)({active:a,focus:a,disabled:i,close:v}),K=(0,B.useRender)();return l.default.createElement(C,null,l.default.createElement(A,null,K({ourProps:{id:n,ref:d,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":F,"aria-describedby":T,disabled:void 0,onClick:b,onFocus:g,onPointerEnter:E,onMouseEnter:E,onPointerMove:P,onMouseMove:P,onPointerLeave:O,onMouseLeave:O}
4,theirProps:o,slot:L,defaultTag:ei,name:"Menu.Item"})))}),eu=(0,B.forwardRefWithAs)(function(e,t){let[s,n]=(0,z.useLabels)(),i=(0,B.useRender)();return l.default.createElement(n,null,i({ourProps:{ref:t,"aria-labelledby":s,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),ed=(0,B.forwardRefWithAs)(function(e,t){let s=(0,l.useId)(),{id:n=`headlessui-menu-heading-${s}`,...i}=e,o=(0,z.useLabelContext)();(0,h.useIsoMorphicEffect)(()=>o.register(n),[n,o.register]);let r={id:n,ref:t,role:"presentation",...o.props};return(0,B.useRender)()({ourProps:r,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),ec=(0,B.forwardRefWithAs)(function(e,t){return(0,B.useRender)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})}),ep=Object.assign(eo,{Button:el,Items:er,Item:ea,Section:eu,Heading:ed,Separator:ec});e.s(["Menu",0,ep,"MenuButton",0,el,"MenuHeading",0,ed,"MenuItem",0,ea,"MenuItems",0,er,"MenuSection",0,eu,"MenuSeparator",0,ec],91050)},76242,e=>{"use strict";let t;var s=e.i(84837),n=e.i(64731),i=e.i(40075),o=e.i(92231),l=e.i(65621),r=e.i(46210),a=e.i(674),u=e.i(1483),d=e.i(89027),c=e.i(51603),p=e.i(26466),f=e.i(1183),h=e.i(95569),m=e.i(82684),v=e.i(49406),b=e.i(67679),g=e.i(78699),S=e.i(38789),E=e.i(9858),y=e.i(66383),I=e.i(83791),x=e.i(72773),R=e.i(64118),P=((t=P||{})[t.RegisterOption=0]="RegisterOption",t[t.UnregisterOption=1]="UnregisterOption",t);let O={0(e,t){let s=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,b.sortByDomNode)(s,e=>e.element.current)}},1(e,t){let s=e.options.slice(),n=e.options.findIndex(e=>e.id===t.id);return -1===n?e:(s.splice(n,1),{...e,options:s})}},F=(0,i.createContext)(null);function C(e){let t=(0,i.useContext)(F);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,C),t}return t}F.displayName="RadioGroupDataContext";let T=(0,i.createContext)(null);function M(e){let t=(0,i.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}function w(e,t){return(0,S.match)(t.type,O,e,t)}T.displayName="RadioGroupActionsContext";let D=(0,y.forwardRefWithAs)(function(e,t){let s=(0,i.useId)(),n=(0,f.useDisabled)(),{id:u=`headlessui-radiogroup-${s}`,value:d,form:m,name:v,onChange:S,by:P,disabled:O=n||!1,defaultValue:C,tabIndex:M=0,...D}=e,A=(0,o.useByComparator)(P),[k,L]=(0,i.useReducer)(w,{options:[]}),K=k.options,[B,_]=(0,R.useLabels)(),[W,z]=(0,I.useDescriptions)(),V=(0,i.useRef)(null),N=(0,p.useSyncRefs)(V,t),H=(0,r.useDefaultValue)(C),[G,$]=(0,l.useControllable)(d,S,H),U=(0,i.useMemo)(()=>K.find(e=>!e.propsRef.current.disabled),[K]),j=(0,i.useMemo)(()=>K.some(e=>A(e.propsRef.current.value,G)),[K,G]),q=(0,a.useEvent)(e=>{var t;if(O||A(e,G))return!1;let s=null==(t=K.find(t=>A(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==s||!s.disabled)&&(null==$||$(e),!0)}),Q=(0,a.useEvent)(e=>{if(!V.current)return;let t=K.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case x.Keys.Enter:(0,g.attemptSubmit)(e.currentTarget);break;case x.Keys.ArrowLeft:case x.Keys.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround)===b.FocusResult.Success){let e=K.find(e=>(0,E.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case x.Keys.ArrowRight:case x.Keys.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround)===b.FocusResult.Success){let e=K.find(e=>(0,E.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case x.Keys.Space:{e.preventDefault(),e.stopPropagation();let t=K.find(e=>(0,E.isActiveElement)(e.element.current));t&&q(t.propsRef.current.value)}}}),J=(0,a.useEvent)(e=>(L({type:0,...e}),()=>L({type:1,id:e.id}))),Y=(0,i.useMemo)(()=>({value:G,firstOption:U,containsCheckedOption:j,disabled:O,compare:A,tabIndex:M,...k}),[G,U,j,O,A,M,k]),X=(0,i.useMemo)(()=>({registerOption:J,change:q}),[J,q]),Z=(0,c.useSlot)({value:G}),ee=(0,i.useCallback)(()=>
4{if(void 0!==H)return q(H)},[q,H]),et=(0,y.useRender)();return i.default.createElement(z,{name:"RadioGroup.Description"},i.default.createElement(_,{name:"RadioGroup.Label"},i.default.createElement(T.Provider,{value:X},i.default.createElement(F.Provider,{value:Y},null!=v&&i.default.createElement(h.FormFields,{disabled:O,data:{[v]:G||"on"},overrides:{type:"radio",checked:null!=G},form:m,onReset:ee}),et({ourProps:{ref:N,id:u,role:"radiogroup","aria-labelledby":B,"aria-describedby":W,onKeyDown:Q},theirProps:D,slot:Z,defaultTag:"div",name:"RadioGroup"})))))}),A=(0,y.forwardRefWithAs)(function(e,t){var o;let l=C("RadioGroup.Option"),r=M("RadioGroup.Option"),f=(0,i.useId)(),{id:h=`headlessui-radiogroup-option-${f}`,value:m,disabled:b=l.disabled||!1,autoFocus:g=!1,...S}=e,E=(0,i.useRef)(null),x=(0,p.useSyncRefs)(E,t),[P,O]=(0,R.useLabels)(),[F,T]=(0,I.useDescriptions)(),w=(0,d.useLatestValue)({value:m,disabled:b});(0,u.useIsoMorphicEffect)(()=>r.registerOption({id:h,element:E,propsRef:w}),[h,r,E,w]);let D=(0,a.useEvent)(e=>{var t;if((0,v.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();r.change(m)&&(null==(t=E.current)||t.focus())}),A=(null==(o=l.firstOption)?void 0:o.id)===h,{isFocusVisible:k,focusProps:L}=(0,s.useFocusRing)({autoFocus:g}),{isHovered:K,hoverProps:B}=(0,n.useHover)({isDisabled:b}),_=l.compare(l.value,m),W=(0,y.mergeProps)({ref:x,id:h,role:"radio","aria-checked":_?"true":"false","aria-labelledby":P,"aria-describedby":F,"aria-disabled":!!b||void 0,tabIndex:b?-1:_||!l.containsCheckedOption&&A?l.tabIndex:-1,onClick:b?void 0:D,autoFocus:g},L,B),z=(0,c.useSlot)({checked:_,disabled:b,active:k,hover:K,focus:k,autofocus:g}),V=(0,y.useRender)();return i.default.createElement(T,{name:"RadioGroup.Description"},i.default.createElement(O,{name:"RadioGroup.Label"},V({ourProps:W,theirProps:S,slot:z,defaultTag:"div",name:"RadioGroup.Option"})))}),k=(0,y.forwardRefWithAs)(function(e,t){var o;let l=C("Radio"),r=M("Radio"),h=(0,i.useId)(),b=(0,m.useProvidedId)(),g=(0,f.useDisabled)(),{id:S=b||`headlessui-radio-${h}`,value:E,disabled:x=l.disabled||g||!1,autoFocus:P=!1,...O}=e,F=(0,i.useRef)(null),T=(0,p.useSyncRefs)(F,t),w=(0,R.useLabelledBy)(),D=(0,I.useDescribedBy)(),A=(0,d.useLatestValue)({value:E,disabled:x});(0,u.useIsoMorphicEffect)(()=>r.registerOption({id:S,element:F,propsRef:A}),[S,r,F,A]);let k=(0,a.useEvent)(e=>{var t;if((0,v.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();r.change(E)&&(null==(t=F.current)||t.focus())}),{isFocusVisible:L,focusProps:K}=(0,s.useFocusRing)({autoFocus:P}),{isHovered:B,hoverProps:_}=(0,n.useHover)({isDisabled:x}),W=(null==(o=l.firstOption)?void 0:o.id)===S,z=l.compare(l.value,E),V=(0,y.mergeProps)({ref:T,id:S,role:"radio","aria-checked":z?"true":"false","aria-labelledby":w,"aria-describedby":D,"aria-disabled":!!x||void 0,tabIndex:x?-1:z||!l.containsCheckedOption&&W?l.tabIndex:-1,autoFocus:P,onClick:x?void 0:k},K,_),N=(0,c.useSlot)({checked:z,disabled:x,hover:B,focus:L,autofocus:P});return(0,y.useRender)()({ourProps:V,theirProps:O,slot:N,defaultTag:"span",name:"Radio"})}),L=R.Label,K=I.Description,B=Object.assign(D,{Option:A,Radio:k,Label:L,Description:K});e.s(["Radio",0,k,"RadioGroup",0,B,"RadioGroupDescription",0,K,"RadioGroupLabel",0,L,"RadioGroupOption",0,A])},46783,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(5419),i=e.i(40075),o=e.i(51603),l=e.i(1183),r=e.i(82684),a=e.i(66383),u=e.i(83791),d=e.i(64118);let c=(0,a.forwardRefWithAs)(function(e,c){let p=(0,i.useId)(),f=(0,r.useProvidedId)(),h=(0,l.useDisabled)(),{id:m=f||`headlessui-select-${p}`,disabled:v=h||!1,invalid:b=!1,autoFocus:g=!1,...S}=e,E=(0,d.useLabelledBy)(),y=(0,u.useDescribedBy)(),{isFocusVisible:I,focusProps:x}=(0,t.useFocusRing)({autoFocus:g}),{isHovered:R,hoverProps:P}=(0,s.useHover)({isDisabled:v}),{pressed:O,pressProps:F}=(0,n.useActivePress)({disabled:v}),C=(0,a.mergeProps)({ref:c,id:m,"aria-labelledby":E,"aria-describedby":y,"aria-invalid":b?"true":void 0,disabled:v||void 0,autoFocus:g},x,P,F),T=(0,o.useSlot)({disabled:v,invalid:b,hover:R,focus:I,active:O,autofocus:g});return(0,a.useRender)()({ourProps:C,theirProps:S,slot:T,defaultTag:"select",name:"Select"})});e.s(["Select",0,c])},56972,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(40075),i=e.i(5419),o=e.i(65621),l=e.i(46210),r=e.i(29997),a=e.i(674),u=e.i(97271),d=e.i(51603),c=e.i(26466),p=e.i(1183),f=e.i(95569),h=e.i(82684),m=e.i(49406),v=e.i(42231),b=e.i(78699),g=e.i(66383),S=e.i(83791),E=e.i(72773),y=e.i(64118);let I=(0,n.createContext)(null);I.displayName="GroupContext";let x=n.Fragment,R=(0,g.forwardRefWithAs)(function(e,v){var x;let R=(0,n.useId)(),P=(0,h.useProvidedId)(),O=(0,p.useDisabled)(),{id:F=P||`headlessui-switch-${R}`,disabled:C=O||!1,checked:T,defaultChecked:M,onChange:w,name:D,value:A,form:k,autoFocus:L=!1,...K}
4=e,B=(0,n.useContext)(I),[_,W]=(0,n.useState)(null),z=(0,n.useRef)(null),V=(0,c.useSyncRefs)(z,v,null===B?null:B.setSwitch,W),N=(0,l.useDefaultValue)(M),[H,G]=(0,o.useControllable)(T,w,null!=N&&N),$=(0,r.useDisposables)(),[U,j]=(0,n.useState)(!1),q=(0,a.useEvent)(()=>{j(!0),null==G||G(!H),$.nextFrame(()=>{j(!1)})}),Q=(0,a.useEvent)(e=>{if((0,m.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),q()}),J=(0,a.useEvent)(e=>{e.key===E.Keys.Space?(e.preventDefault(),q()):e.key===E.Keys.Enter&&(0,b.attemptSubmit)(e.currentTarget)}),Y=(0,a.useEvent)(e=>e.preventDefault()),X=(0,y.useLabelledBy)(),Z=(0,S.useDescribedBy)(),{isFocusVisible:ee,focusProps:et}=(0,t.useFocusRing)({autoFocus:L}),{isHovered:es,hoverProps:en}=(0,s.useHover)({isDisabled:C}),{pressed:ei,pressProps:eo}=(0,i.useActivePress)({disabled:C}),el=(0,d.useSlot)({checked:H,disabled:C,hover:es,focus:ee,active:ei,autofocus:L,changing:U}),er=(0,g.mergeProps)({id:F,ref:V,role:"switch",type:(0,u.useResolveButtonType)(e,_),tabIndex:-1===e.tabIndex?0:null!=(x=e.tabIndex)?x:0,"aria-checked":H,"aria-labelledby":X,"aria-describedby":Z,disabled:C||void 0,autoFocus:L,onClick:Q,onKeyUp:J,onKeyPress:Y},et,en,eo),ea=(0,n.useCallback)(()=>{if(void 0!==N)return null==G?void 0:G(N)},[G,N]),eu=(0,g.useRender)();return n.default.createElement(n.default.Fragment,null,null!=D&&n.default.createElement(f.FormFields,{disabled:C,data:{[D]:A||"on"},overrides:{type:"checkbox",checked:H},form:k,onReset:ea}),eu({ourProps:er,theirProps:K,slot:el,defaultTag:"button",name:"Switch"}))}),P=function(e){var t;let[s,i]=(0,n.useState)(null),[o,l]=(0,y.useLabels)(),[r,a]=(0,S.useDescriptions)(),u=(0,n.useMemo)(()=>({switch:s,setSwitch:i}),[s,i]),d=(0,g.useRender)();return n.default.createElement(a,{name:"Switch.Description",value:r},n.default.createElement(l,{name:"Switch.Label",value:o,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){s&&(v.isHTMLLabelElement(e.currentTarget)&&e.preventDefault(),s.click(),s.focus({preventScroll:!0}))}}},n.default.createElement(I.Provider,{value:u},d({ourProps:{},theirProps:e,slot:{},defaultTag:x,name:"Switch.Group"}))))},O=y.Label,F=S.Description,C=Object.assign(R,{Group:P,Label:O,Description:F});e.s(["Switch",0,C,"SwitchDescription",0,F,"SwitchGroup",0,P,"SwitchLabel",0,O])},87831,e=>{"use strict";let t,s,n;var i=e.i(84837),o=e.i(64731),l=e.i(40075),r=e.i(5419),a=e.i(674),u=e.i(1483),d=e.i(89027),c=e.i(97271),p=e.i(51603),f=e.i(26466),h=e.i(6448),m=e.i(53356);function v({onFocus:e}){let[t,s]=(0,l.useState)(!0),n=(0,h.useIsMounted)();return t?l.default.createElement(m.Hidden,{as:"button",type:"button",features:m.HiddenFeatures.Focusable,onFocus:t=>{t.preventDefault();let i,o=50;i=requestAnimationFrame(function t(){if(o--<=0){i&&cancelAnimationFrame(i);return}if(e()){if(cancelAnimationFrame(i),!n.current)return;s(!1);return}i=requestAnimationFrame(t)})}}):null}var b=e.i(67679),g=e.i(38789),S=e.i(59121),E=e.i(9858),y=e.i(66383);let I=l.createContext(null);function x({children:e}){let t=l.useRef({groups:new Map,get(e,t){var s;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=null!=(s=n.get(t))?s:0;return n.set(t,i+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return l.createElement(I.Provider,{value:t},e)}function R(e){let t=l.useContext(I);if(!t)throw Error("You must wrap your component in a <StableCollection>");let s=l.useId(),[n,i]=t.current.get(e,s);return l.useEffect(()=>i,[]),n}var P=e.i(72773),O=((t=O||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t),F=((s=F||{})[s.Less=-1]="Less",s[s.Equal=0]="Equal",s[s.Greater=1]="Greater",s),C=((n=C||{})[n.SetSelectedIndex=0]="SetSelectedIndex",n[n.RegisterTab=1]="RegisterTab",n[n.UnregisterTab=2]="UnregisterTab",n[n.RegisterPanel=3]="RegisterPanel",n[n.UnregisterPanel=4]="UnregisterPanel",n);let T={0(e,t){var s;let n=(0,b.sortByDomNode)(e.tabs,e=>e.current),i=(0,b.sortByDomNode)(e.panels,e=>e.current),o=n.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),l={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let s=(0,g.match)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,g.match)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return l;let i=(0,g.match)(s,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return{...l,selectedIndex:-1===i?e.selectedIndex:i}}let r=n.slice(0,t.index),a=[...n.slice(t.index),...r].find(e=>o.includes(e));if(!a)return l;let u=null!=(s=n.indexOf(a))?s:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...l,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let s=e.tabs[e.selectedIndex],n=(0,b.sortByDomNode)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=n.indexOf(s))&&(i=e.selectedIndex),{...e,tabs:n,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>
4e.panels.includes(t.panel)?e:{...e,panels:(0,b.sortByDomNode)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},M=(0,l.createContext)(null);function w(e){let t=(0,l.useContext)(M);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}M.displayName="TabsDataContext";let D=(0,l.createContext)(null);function A(e){let t=(0,l.useContext)(D);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function k(e,t){return(0,g.match)(t.type,T,e,t)}D.displayName="TabsActionsContext";let L=y.RenderFeatures.RenderStrategy|y.RenderFeatures.Static,K=(0,y.forwardRefWithAs)(function(e,t){var s,n;let d=(0,l.useId)(),{id:h=`headlessui-tabs-tab-${d}`,disabled:m=!1,autoFocus:v=!1,...I}=e,{orientation:x,activation:O,selectedIndex:F,tabs:C,panels:T}=w("Tab"),M=A("Tab"),D=w("Tab"),[k,L]=(0,l.useState)(null),K=(0,l.useRef)(null),B=(0,f.useSyncRefs)(K,t,L);(0,u.useIsoMorphicEffect)(()=>M.registerTab(K),[M,K]);let _=R("tabs"),W=C.indexOf(K);-1===W&&(W=_);let z=W===F,V=(0,a.useEvent)(e=>{let t=e();if(t===b.FocusResult.Success&&"auto"===O){let e=(0,E.getActiveElement)(K.current),t=D.tabs.findIndex(t=>t.current===e);-1!==t&&M.change(t)}return t}),N=(0,a.useEvent)(e=>{let t=C.map(e=>e.current).filter(Boolean);if(e.key===P.Keys.Space||e.key===P.Keys.Enter){e.preventDefault(),e.stopPropagation(),M.change(W);return}switch(e.key){case P.Keys.Home:case P.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),V(()=>(0,b.focusIn)(t,b.Focus.First));case P.Keys.End:case P.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),V(()=>(0,b.focusIn)(t,b.Focus.Last))}if(V(()=>(0,g.match)(x,{vertical:()=>e.key===P.Keys.ArrowUp?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===P.Keys.ArrowDown?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error,horizontal:()=>e.key===P.Keys.ArrowLeft?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===P.Keys.ArrowRight?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error}))===b.FocusResult.Success)return e.preventDefault()}),H=(0,l.useRef)(!1),G=(0,a.useEvent)(()=>{var e;H.current||(H.current=!0,null==(e=K.current)||e.focus({preventScroll:!0}),M.change(W),(0,S.microTask)(()=>{H.current=!1}))}),$=(0,a.useEvent)(e=>{e.preventDefault()}),{isFocusVisible:U,focusProps:j}=(0,i.useFocusRing)({autoFocus:v}),{isHovered:q,hoverProps:Q}=(0,o.useHover)({isDisabled:m}),{pressed:J,pressProps:Y}=(0,r.useActivePress)({disabled:m}),X=(0,p.useSlot)({selected:z,hover:q,active:J,focus:U,autofocus:v,disabled:m}),Z=(0,y.mergeProps)({ref:B,onKeyDown:N,onMouseDown:$,onClick:G,id:h,role:"tab",type:(0,c.useResolveButtonType)(e,k),"aria-controls":null==(n=null==(s=T[W])?void 0:s.current)?void 0:n.id,"aria-selected":z,tabIndex:z?0:-1,disabled:m||void 0,autoFocus:v},j,Q,Y);return(0,y.useRender)()({ourProps:Z,theirProps:I,slot:X,defaultTag:"button",name:"Tabs.Tab"})}),B=(0,y.forwardRefWithAs)(function(e,t){let{defaultIndex:s=0,vertical:n=!1,manual:i=!1,onChange:o,selectedIndex:r=null,...c}=e,h=n?"vertical":"horizontal",m=i?"manual":"auto",g=null!==r,S=(0,d.useLatestValue)({isControlled:g}),E=(0,f.useSyncRefs)(t),[I,R]=(0,l.useReducer)(k,{info:S,selectedIndex:null!=r?r:s,tabs:[],panels:[]}),P=(0,p.useSlot)({selectedIndex:I.selectedIndex}),O=(0,d.useLatestValue)(o||(()=>{})),F=(0,d.useLatestValue)(I.tabs),C=(0,l.useMemo)(()=>({orientation:h,activation:m,...I}),[h,m,I]),T=(0,a.useEvent)(e=>(R({type:1,tab:e}),()=>R({type:2,tab:e}))),w=(0,a.useEvent)(e=>(R({type:3,panel:e}),()=>R({type:4,panel:e}))),A=(0,a.useEvent)(e=>{L.current!==e&&O.current(e),g||R({type:0,index:e})}),L=(0,d.useLatestValue)(g?e.selectedIndex:I.selectedIndex),K=(0,l.useMemo)(()=>({registerTab:T,registerPanel:w,change:A}),[]);(0,u.useIsoMorphicEffect)(()=>{R({type:0,index:null!=r?r:s})},[r]),(0,u.useIsoMorphicEffect)(()=>{if(void 0===L.current||I.tabs.length<=0)return;let e=(0,b.sortByDomNode)(I.tabs,e=>e.current);e.some((e,t)=>I.tabs[t]!==e)&&A(e.indexOf(I.tabs[L.current]))});let B=(0,y.useRender)();return l.default.createElement(x,null,l.default.createElement(D.Provider,{value:K},l.default.createElement(M.Provider,{value:C},C.tabs.length<=0&&l.default.createElement(v,{onFocus:()=>{var e,t;for(let s of F.current)if((null==(e=s.current)?void 0:e.tabIndex)===0)return null==(t=s.current)||t.focu
4s(),!0;return!1}}),B({ourProps:{ref:E},theirProps:c,slot:P,defaultTag:"div",name:"Tabs"}))))}),_=(0,y.forwardRefWithAs)(function(e,t){let{orientation:s,selectedIndex:n}=w("Tab.List"),i=(0,f.useSyncRefs)(t),o=(0,p.useSlot)({selectedIndex:n});return(0,y.useRender)()({ourProps:{ref:i,role:"tablist","aria-orientation":s},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.List"})}),W=(0,y.forwardRefWithAs)(function(e,t){let{selectedIndex:s}=w("Tab.Panels"),n=(0,f.useSyncRefs)(t),i=(0,p.useSlot)({selectedIndex:s});return(0,y.useRender)()({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),z=(0,y.forwardRefWithAs)(function(e,t){var s,n,o,r;let a=(0,l.useId)(),{id:d=`headlessui-tabs-panel-${a}`,tabIndex:c=0,...h}=e,{selectedIndex:v,tabs:b,panels:g}=w("Tab.Panel"),S=A("Tab.Panel"),E=(0,l.useRef)(null),I=(0,f.useSyncRefs)(E,t);(0,u.useIsoMorphicEffect)(()=>S.registerPanel(E),[S,E]);let x=R("panels"),P=g.indexOf(E);-1===P&&(P=x);let O=P===v,{isFocusVisible:F,focusProps:C}=(0,i.useFocusRing)(),T=(0,p.useSlot)({selected:O,focus:F}),M=(0,y.mergeProps)({ref:I,id:d,role:"tabpanel","aria-labelledby":null==(n=null==(s=b[P])?void 0:s.current)?void 0:n.id,tabIndex:O?c:-1},C),D=(0,y.useRender)();return O||null!=(o=h.unmount)&&!o||null!=(r=h.static)&&r?D({ourProps:M,theirProps:h,slot:T,defaultTag:"div",features:L,visible:O,name:"Tabs.Panel"}):l.default.createElement(m.Hidden,{"aria-hidden":"true",...M})}),V=Object.assign(K,{Group:B,List:_,Panels:W,Panel:z});e.s(["Tab",0,V,"TabGroup",0,B,"TabList",0,_,"TabPanel",0,z,"TabPanels",0,W],87831)},21438,e=>{"use strict";var t=e.i(84837),s=e.i(64731),n=e.i(40075),i=e.i(51603),o=e.i(1183),l=e.i(82684),r=e.i(66383),a=e.i(83791),u=e.i(64118);let d=(0,r.forwardRefWithAs)(function(e,d){let c=(0,n.useId)(),p=(0,l.useProvidedId)(),f=(0,o.useDisabled)(),{id:h=p||`headlessui-textarea-${c}`,disabled:m=f||!1,autoFocus:v=!1,invalid:b=!1,...g}=e,S=(0,u.useLabelledBy)(),E=(0,a.useDescribedBy)(),{isFocused:y,focusProps:I}=(0,t.useFocusRing)({autoFocus:v}),{isHovered:x,hoverProps:R}=(0,s.useHover)({isDisabled:m}),P=(0,r.mergeProps)({ref:d,id:h,"aria-labelledby":S,"aria-describedby":E,"aria-invalid":b?"true":void 0,disabled:m||void 0,autoFocus:v},I,R),O=(0,i.useSlot)({disabled:m,invalid:b,hover:x,focus:y,autofocus:v});return(0,r.useRender)()({ourProps:P,theirProps:g,slot:O,defaultTag:"textarea",name:"Textarea"})});e.s(["Textarea",0,d])},96495,e=>{"use strict";var t=e.i(40075),s=e.i(9858),n=e.i(1483);e.s(["useTreeWalker",0,function(e,{container:i,accept:o,walk:l}){let r=(0,t.useRef)(o),a=(0,t.useRef)(l);(0,t.useEffect)(()=>{r.current=o,a.current=l},[o,l]),(0,n.useIsoMorphicEffect)(()=>{if(!i||!e)return;let t=(0,s.getOwnerDocument)(i);if(!t)return;let n=r.current,o=a.current,l=Object.assign(e=>n(e),{acceptNode:n}),u=t.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,l,!1);for(;u.nextNode();)o(u.currentNode)},[i,e,r,a])}])}]);

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.