PageSourceSearch

https://www.bleenk.app/_next/static/chunks/0moh8m7qh73wv.js

js bleenk.app collected 2026-10-03 21:12:26 UTC 95,218 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,402656,227654,e=>{"use strict";var t=e.i(453936),n=e.i(716750),o=e.i(535420);e.s(["useControllable",0,function(e,i,r){let[s,a]=(0,t.useState)(r),l=void 0!==e,u=(0,t.useRef)(l),c=(0,t.useRef)(!1),d=(0,t.useRef)(!1);return!l||u.current||c.current?l||!u.current||d.current||(d.current=!0,u.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,u.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:s,(0,o.useEvent)(e=>(l||(0,n.flushSync)(()=>a(e)),null==i?void 0:i(e)))]}],402656),e.s(["useDefaultValue",0,function(e){let[n]=(0,t.useState)(e);return n}],227654)},889575,560452,e=>{"use strict";var t=e.i(453936),n=e.i(716750),o=e.i(813848);function i(e={},n=null,o=[]){for(let[s,a]of Object.entries(e))!function e(n,o,s){if
1(Array.isArray(s))for(let[t,i]of s.entries())e(n,r(o,t.toString()),i);else s instanceof Date?n.push([o,s.toISOString()]):"boolean"==typeof s?n.push([o,s?"1":"0"]):"string"==typeof s?n.push([o,s]):"number"==typeof s?n.push([o,`${s}`]):null==s?n.push([o,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(s)&&!(0,t.isValidElement)(s)&&i(s,o,n)}(o,r(n,s),a);return o}function r(e,t){return e?e+"["+t+"]":t}e.s(["attemptSubmit",0,function(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=o.requestSubmit)||n.call(o)}},"objectToFormEntries",0,i],560452);var s=e.i(226151),a=e.i(112308);let l=(0,t.createContext)(null);function u({children:e}){let o=(0,t.useContext)(l);if(!o)return t.default.createElement(t.default.Fragment,null,e);let{target:i}=o;return i?(0,n.createPortal)(t.default.createElement(t.default.Fragment,null,e),i):null}function c({setForm:e,formId:n}){return(0,t.useEffect)(()=>{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",0,function({data:e,form:n,disabled:r,onReset:l,overrides:d}){let[p,f]=(0,t.useState)(null),v=(0,o.useDisposables)();return(0,t.useEffect)(()=>{if(l&&p)return v.addEventListener(p,"reset",l)},[p,n,l]),t.default.createElement(u,null,t.default.createElement(c,{setForm:f,formId:n}),i(e).map(([e,o])=>t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,...(0,s.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:o,...d})})))},"FormFieldsProvider",0,function(e){let[n,o]=(0,t.useState)(null);return t.default.createElement(l.Provider,{value:{target:n}},e.children,t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,ref:o}))}],889575)},612841,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(453936),i=e.i(576952),r=e.i(402656),s=e.i(227654),a=e.i(813848),l=e.i(535420),u=e.i(142969),c=e.i(11489),d=e.i(889575),p=e.i(481152),f=e.i(489850),v=e.i(560452),b=e.i(226151),m=e.i(996926),h=e.i(278660),g=e.i(584461);let E=(0,b.forwardRefWithAs)(function(e,E){let S=(0,o.useId)(),x=(0,p.useProvidedId)(),y=(0,c.useDisabled)(),{id:R=x||`headlessui-checkbox-${S}`,disabled:P=y||!1,autoFocus:F=!1,checked:O,defaultChecked:I,onChange:T,name:C,value:D,form:w,indeterminate:k=!1,tabIndex:A=0,...M}=e,L=(0,s.useDefaultValue)(I),[B,K]=(0,r.useControllable)(O,T,null!=L&&L),V=(0,g.useLabelledBy)(),H=(0,m.useDescribedBy)(),N=(0,a.useDisposables)(),[_,W]=(0,o.useState)(!1),$=(0,l.useEvent)(()=>{W(!0),null==K||K(!B),N.nextFrame(()=>{W(!1)})}),U=(0,l.useEvent)(e=>{if((0,f.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),$()}),G=(0,l.useEvent)(e=>{e.key===h.Keys.Space?(e.preventDefault(),$()):e.key===h.Keys.Enter&&(0,v.attemptSubmit)(e.currentTarget)}),z=(0,l.useEvent)(e=>e.preventDefault()),{isFocusVisible:j,focusProps:q}=(0,t.useFocusRing)({autoFocus:F}),{isHovered:Q,hoverProps:Y}=(0,n.useHover)({isDisabled:P}),{pressed:J,pressProps:X}=(0,i.useActivePress)({disabled:P}),Z=(0,b.mergeProps)({ref:E,id:R,role:"checkbox","aria-checked":k?"mixed":B?"true":"false","aria-labelledby":V,"aria-describedby":H,"aria-disabled":!!P||void 0,indeterminate:k?"true":void 0,tabIndex:P?void 0:A,onKeyUp:P?void 0:G,onKeyPress:P?void 0:z,onClick:P?void 0:U},q,Y,X),ee=(0,u.useSlot)({checked:B,disabled:P,hover:Q,focus:j,active:J,indeterminate:k,changing:_,autofocus:F}),et=(0,o.useCallback)(()=>{if(void 0!==L)return null==K?void 0:K(L)},[K,L]),en=(0,b.useRender)();return o.default.createElement(o.default.Fragment,null,null!=C&&o.default.createElement(d.FormFields,{disabled:P,data:{[C]:D||"on"},overrides:{type:"checkbox",checked:B},form:w,onReset:et}),en({ourProps:Z,theirProps:M,slot:ee,defaultTag:"span",name:"Checkbox"}))});e.s(["Checkbox",0,E])},625223,e=>{"use strict";var t=e.i(453936),n=e.i(529101),o=e.i(226151),i=e.i(198565);let r=(0,o.forwardRefWithAs)(function(e,r){let s=(0,n.useClose)();return t.default.createElement(i.Button,{ref:r,...(0,o.mergeProps)({onClick:s},e)})});e.s(["CloseButton",0,r])},44248,e=>{"use strict";var t=e.i(453936);function n(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}e.s(["useByComparator",0,function(e=n){return(0,t.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}])},373887,e=>{"use strict";var t=e.i(453936);let n=t.default.forwardRef(function({children:e,freeze:n},i){let r=o(n,e);return(0,t.isValidElement)(r)?(0,t.cloneElement)(r,{ref:i}):t.default.createElement(t.default.Fragment,null,r)});function o(e,n){let[o,i]=(0,t.useState)(n);return e||o===n||i(n),e?o:n}
1e.s(["Frozen",0,n,"useFrozenData",0,o])},100850,301093,e=>{"use strict";var t=e.i(453936),n=e.i(535420);e.s(["useWatch",0,function(e,o){let i=(0,t.useRef)([]),r=(0,n.useEvent)(e);(0,t.useEffect)(()=>{let e=[...i.current];for(let[t,n]of o.entries())if(i.current[t]!==n){let t=r(o,e);return i.current=o,t}},[r,...o])}],100850);var o=e.i(740404),i=e.i(106896);let r=[];function s(){"loading"!==document.readyState&&((()=>{function e(e){if(!o.isHTMLorSVGElement(e.target)||e.target===document.body||r[0]===e.target)return;let t=e.target;t=t.closest(i.focusableSelector),r.unshift(null!=t?t:e.target),(r=r.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})})(),document.removeEventListener("DOMContentLoaded",s))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",s),s()),e.s(["history",()=>r],301093)},443846,e=>{"use strict";let t,n,o,i;var r=e.i(603535),s=e.i(950517),a=e.i(807063),l=e.i(453936),u=e.i(716750),c=e.i(576952),d=e.i(44248),p=e.i(402656),f=e.i(227654),v=e.i(813848),b=e.i(569333),m=e.i(535420),h=e.i(35840),g=e.i(757055),E=e.i(675242),S=e.i(334098),x=e.i(668374),y=e.i(64658),R=e.i(609049),P=e.i(678424),F=e.i(740404),O=e.i(97536),I=e.i(768002);function T(e){let t=(0,l.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,I.useEventListener)(e,"blur",e=>{let n=e.target;F.isHTMLInputElement(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,m.useEvent)(()=>{if(!(0,O.isActiveElement)(e)&&F.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:n,selectionEnd:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var C=e.i(496685),D=e.i(71113),w=e.i(142969),k=e.i(698312),A=e.i(600159),M=e.i(397213),L=e.i(468932),B=e.i(100850),K=e.i(11489),V=e.i(399167),H=e.i(889575),N=e.i(373887),_=e.i(481152),W=e.i(272550),$=e.i(478650),U=e.i(255207),G=e.i(301093),z=e.i(448201),j=e.i(60656),q=e.i(372196),Q=e.i(306778),Y=e.i(226151),J=e.i(996926),X=e.i(278660),Z=e.i(584461),ee=e.i(60779),et=e.i(118735),en=e.i(372344),eo=e.i(73540),ei=e.i(106896),er=Object.defineProperty,es=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?er(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,n},ea=((t=ea||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),el=((n=el||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),eu=((o=eu||{})[o.Pointer=0]="Pointer",o[o.Focus=1]="Focus",o[o.Other=2]="Other",o),ec=((i=ec||{})[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 ed(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),i=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,ei.sortByDomNode)(o,e=>e.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return -1===r&&(r=null),{options:i,activeOptionIndex:r}}let ep={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?eo.ElementPositionState.Tracked((0,eo.computeVisualPosition)(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:eo.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:eo.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>
1e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,i,r;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:o}=e.virtual,r=t.focus===z.Focus.Specific?t.idx:(0,z.calculateActiveIndex)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?i:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),s=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===r&&e.activationTrigger===s?e:{...e,activeOptionIndex:r,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=ed(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=t.focus===z.Focus.Specific?t.idx:(0,z.calculateActiveIndex)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,o,i,r;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,a=ed(e,e=>(e.push(s),e));null===e.activeOptionIndex&&null!=(i=(o=e.dataRef.current).isSelected)&&i.call(o,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(s));let l={...e,...a,activationTrigger:2};return null!=(r=e.dataRef.current)&&r.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=ed(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},6:(e,t)=>e.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,o;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}}},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:eo.ElementPositionState.Moved}};class ef extends en.Machine{constructor(e){super(e),es(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:i}=this.state.dataRef.current;return(0,q.match)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=i.slice(),r=o.findIndex(t=>n(t,e));return -1===r?o.push(e):o.splice(r,1),null==t?void 0:t(o)}})},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:z.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,n;let o=this.selectors.activeOptionIndex(e);if(null!==o)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[o])))?void 0:n.id:null==(t=e.options[o])?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,o=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==o)return o}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);return null===o?null:e.virtual?e.virtual.options[null!=o?o:0]:null!=(n=null==(t=e.options[o])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var o;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(o=e.options[i])?void 0:o.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=$.stackMachines.get(null);this.disposables.add(t.on($.ActionTypes.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,eo.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var o;return new ef({id:e,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:eo.ElementPositionState.Idle})}reduce(e,t){return(0,q.match)(t.type,ep,e,t)}}var ev=e.i(844972);let eb=(0,l.createContext)(null);function em(e){let t=(0,l.useContext)(eb);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}function eh({id:e,virtual:t=null,__demoMode:n=!1}){let o=(0,l.useMemo)(()=>ef.new({id:e,virtual:t,__demoMode:n}),[]);return(0,ev.useOnUnmount)(()=>o.dispose()),o}let eg=(0,l.createContext)(null);function eE(e){let t=(0,l.useContext)(eg);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eE),t}return t}eg.displayName="ComboboxDataContext";let eS=(0,l.createContext)(null);function ex(e){let t=em("VirtualProvider"),{options:n}=eE("VirtualProvider").virtual,o=(0,U.useSlice)(t,e=>e.optionsElement),[i,r]=(0,l.useMemo)(()=>
1{if(!o)return[0,0];let e=window.getComputedStyle(o);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[o]),s=(0,a.useVirtualizer)({enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:r,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[u,c]=(0,l.useState)(0);(0,E.useIsoMorphicEffect)(()=>{c(e=>e+1)},[n]);let d=s.getVirtualItems(),p=(0,U.useSlice)(t,e=>e.activationTrigger===eu.Pointer),f=(0,U.useSlice)(t,t.selectors.activeOptionIndex);return 0===d.length?null:l.default.createElement(eS.Provider,{value:s},l.default.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&(p||null!==f&&n.length>f&&s.scrollToIndex(f))}},d.map(t=>{var o;return l.default.createElement(l.Fragment,{key:t.key},l.default.cloneElement(null==(o=e.children)?void 0:o.call(e,{...e.slot,option:n[t.index]}),{key:`${u}-${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 ey=l.Fragment,eR=Y.RenderFeatures.RenderStrategy|Y.RenderFeatures.Static,eP=(0,Y.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),o=(0,K.useDisabled)(),{value:i,defaultValue:r,onChange:s,form:a,name:u,by:c,invalid:v=!1,disabled:b=o||!1,onClose:h,__demoMode:g=!1,multiple:S=!1,immediate:x=!1,virtual:R=null,nullable:P,...F}=e,O=(0,f.useDefaultValue)(r),[I=S?[]:void 0,T]=(0,p.useControllable)(i,s,O),C=eh({id:n,virtual:R,__demoMode:g}),D=(0,l.useRef)({static:!1,hold:!1}),k=(0,d.useByComparator)(c),A=(0,m.useEvent)(e=>R?null===c?R.options.indexOf(e):R.options.findIndex(t=>k(t,e)):C.state.options.findIndex(t=>k(t.dataRef.current.value,e))),M=(0,l.useCallback)(e=>(0,q.match)(N.mode,{[el.Multi]:()=>I.some(t=>k(t,e)),[el.Single]:()=>k(I,e)}),[I]),L=(0,U.useSlice)(C,e=>e.virtual),B=(0,m.useEvent)(()=>null==h?void 0:h()),N=(0,l.useMemo)(()=>({__demoMode:g,immediate:x,optionsPropsRef:D,value:I,defaultValue:O,disabled:b,invalid:v,mode:S?el.Multi:el.Single,virtual:R?L:null,onChange:T,isSelected:M,calculateIndex:A,compare:k,onClose:B}),[g,x,D,I,O,b,v,S,R,L,T,M,A,k,B]);(0,E.useIsoMorphicEffect)(()=>{var e;R&&C.send({type:ec.UpdateVirtualConfiguration,options:R.options,disabled:null!=(e=R.disabled)?e:null})},[R,null==R?void 0:R.options,null==R?void 0:R.disabled]),(0,E.useIsoMorphicEffect)(()=>{C.state.dataRef.current=N},[N]);let[_,G,z,j]=(0,U.useSlice)(C,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),Q=$.stackMachines.get(null),J=(0,U.useSlice)(Q,(0,l.useCallback)(e=>Q.selectors.isTop(e,n),[Q,n]));(0,y.useOutsideClick)(J,[G,z,j],()=>C.actions.closeCombobox());let X=(0,U.useSlice)(C,C.selectors.activeOptionIndex),ee=(0,U.useSlice)(C,C.selectors.activeOption),et=(0,w.useSlot)({open:_===ea.Open,disabled:b,invalid:v,activeIndex:X,activeOption:ee,value:I}),[en,eo]=(0,Z.useLabels)(),ei=(0,l.useCallback)(()=>{if(void 0!==O)return null==T?void 0:T(O)},[T,O]),er=(0,Y.useRender)();return l.default.createElement(eo,{value:en,props:{htmlFor:null==z?void 0:z.id},slot:{open:_===ea.Open,disabled:b}},l.default.createElement(V.FloatingProvider,null,l.default.createElement(eg.Provider,{value:N},l.default.createElement(eb.Provider,{value:C},l.default.createElement(W.OpenClosedProvider,{value:(0,q.match)(_,{[ea.Open]:W.State.Open,[ea.Closed]:W.State.Closed})},null!=u&&l.default.createElement(H.FormFields,{disabled:b,data:null!=I?{[u]:I}:{},form:a,onReset:ei}),er({ourProps:null===t?{}:{ref:t},theirProps:F,slot:et,defaultTag:ey,name:"Combobox"}))))))}),eF=(0,Y.forwardRefWithAs)(function(e,t){let n=em("Combobox.Button"),o=eE("Combobox.Button"),[i,a]=(0,l.useState)(null),d=(0,k.useSyncRefs)(t,a,n.actions.setButtonElement),p=(0,l.useId)(),{id:f=`headlessui-combobox-button-${p}`,disabled:v=o.disabled||!1,autoFocus:b=!1,...g}=e,[E,S,x]=(0,U.useSlice)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),y=T(S),R=E===ea.Open;(0,P.useQuickRelease)(R,{trigger:i,action:(0,l.useCallback)(e=>{if(null!=i&&i.contains(e.target)||null!=S&&S.contains(e.target))return P.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return F.isHTMLElement(t)?P.Action.Select(t):null!=x&&x.contains(e.target)?P.Action.Ignore:P.Action.Close},[i,S,x]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let O=(0,m.useEvent)(e=>{switch(e.key){case X.Keys.Space:case X.Keys.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ea.Closed&&(0,u.flushSync)(()=>n.actions.openCombobox()),y();return;case X.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ea.Closed&&((0,u.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:z.Focus.First})),y();return;case X.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ea.Closed&&((0,u.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:z.Focus.Last})),y();return;case X.Keys.Escape:if(n.state.comboboxState!==ea.Open)return;e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,u.flushSync)(()=>n.actions.closeCombobox()),y();return;default:return}}),I=(0,h.useHandleToggle)(()=>{n.state.comboboxState===ea.Open?n.actions.closeCombobox():n.actions.openCombobox(),y()}),D=(0,Z.useLabelledBy)([f]),{isFocusVisible:A,focusProps:M}=(0,r.useFocusRing)({autoFocus:b}),{isHovered:L,hoverProps:B}=(0,s.useHover)({isDisabled:v}),{pressed:K,pressProps:V}=(0,c.useActivePress)({disabled:v}),H=(0,w.useSlot)({open:E===ea.Open,active:K||E===ea.Open,disabled:v,invalid:o.invalid,value:o.value,hover:L,focus:A}),N=(0,Y.mergeProps)({ref:d,id:f,type:(0,C.useResolveButtonType)(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==x?void 0:x.id,"aria-expanded":E===ea.Open,"aria-labelledby":D,disabled:v||void 0,autoFocus:b,onKeyDown:O},I,M,B,V);return(0,Y.useRender)()({ourProps:N,theirProps:g,slot:H,defaultTag:"button",name:"Combobox.Button"})}),eO=(0,Y.forwardRefWithAs)(function(e,t){var n,o;let i=em("Combobox.Input"),a=eE("Combobox.Input"),c=(0,l.useId)(),d=(0,_.useProvidedId)(),{id:p=d||`headlessui-combobox-input-${c}
1`,onChange:f,displayValue:b,disabled:h=a.disabled||!1,autoFocus:g=!1,type:E="text",...S}=e,x=(0,l.useRef)(null),y=(0,k.useSyncRefs)(x,t,(0,V.useFloatingReference)(),i.actions.setInputElement),[R,P]=(0,U.useSlice)(i,e=>[e.comboboxState,e.isTyping]),F=(0,v.useDisposables)(),I=(0,m.useEvent)(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:z.Focus.Nothing})}),T=(0,l.useMemo)(()=>{var e;return"function"==typeof b&&void 0!==a.value?null!=(e=b(a.value))?e:"":"string"==typeof a.value?a.value:""},[a.value,b]);(0,B.useWatch)(([e,t],[n,o])=>{if(i.state.isTyping)return;let r=x.current;r&&((o===ea.Open&&t===ea.Closed||e!==n)&&(r.value=e),requestAnimationFrame(()=>{if(i.state.isTyping||!r||(0,O.isActiveElement)(r))return;let{selectionStart:e,selectionEnd:t}=r;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&r.setSelectionRange(r.value.length,r.value.length)}))},[T,R,P]),(0,B.useWatch)(([e],[t])=>{if(e===ea.Open&&t===ea.Closed){if(i.state.isTyping)return;let e=x.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(n,o,r):e.setSelectionRange(n,o)}},[R]);let C=(0,l.useRef)(!1),D=(0,m.useEvent)(()=>{C.current=!0}),A=(0,m.useEvent)(()=>{F.nextFrame(()=>{C.current=!1})}),M=(0,m.useEvent)(e=>{switch(i.actions.setIsTyping(!0),e.key){case X.Keys.Enter:if(i.state.comboboxState!==ea.Open||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state))return void i.actions.closeCombobox();i.actions.selectActiveOption(),a.mode===el.Single&&i.actions.closeCombobox();break;case X.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,q.match)(i.state.comboboxState,{[ea.Open]:()=>i.actions.goToOption({focus:z.Focus.Next}),[ea.Closed]:()=>i.actions.openCombobox()});case X.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,q.match)(i.state.comboboxState,{[ea.Open]:()=>i.actions.goToOption({focus:z.Focus.Previous}),[ea.Closed]:()=>{(0,u.flushSync)(()=>i.actions.openCombobox()),a.value||i.actions.goToOption({focus:z.Focus.Last})}});case X.Keys.Home:if(i.state.comboboxState===ea.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:z.Focus.First});case X.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:z.Focus.First});case X.Keys.End:if(i.state.comboboxState===ea.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:z.Focus.Last});case X.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:z.Focus.Last});case X.Keys.Escape:return i.state.comboboxState!==ea.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!a.optionsPropsRef.current.static&&e.stopPropagation(),a.mode===el.Single&&null===a.value&&I(),i.actions.closeCombobox());case X.Keys.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==ea.Open)return;a.mode===el.Single&&i.state.activationTrigger!==eu.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),L=(0,m.useEvent)(e=>{null==f||f(e),a.mode===el.Single&&""===e.target.value&&I(),i.actions.openCombobox()}),K=(0,m.useEvent)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:G.history.find(t=>t!==e.currentTarget);if(!(null!=(n=i.state.optionsElement)&&n.contains(r))&&!(null!=(o=i.state.buttonElement)&&o.contains(r))&&i.state.comboboxState===ea.Open)return e.preventDefault(),a.mode===el.Single&&null===a.value&&I(),i.actions.closeCombobox()}),H=(0,m.useEvent)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:G.history.find(t=>t!==e.currentTarget);null!=(n=i.state.buttonElement)&&n.contains(r)||null!=(o=i.state.optionsElement)&&o.contains(r)||a.disabled||a.immediate&&i.state.comboboxState!==ea.Open&&F.microTask(()=>{(0,u.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(eu.Focus)})}),N=(0,Z.useLabelledBy)(),W=(0,J.useDescribedBy)(),{isFocused:$,focusProps:j}=(0,r.useFocusRing)({autoFocus:g}),{isHovered:Q,hoverProps:ee}=(0,s.useHover)({isDisabled:h}),et=(0,U.useSlice)(i,e=>e.optionsElement),en=(0,w.useSlot)({open:R===ea.Open,disabled:h,invalid:a.invalid,hover:Q,focus:$,autofocus:g}),eo=(0,Y.mergeProps)({ref:y,id:p,role:"combobox",type:E,"aria-controls":null==et?void 0:et.id,"aria-expanded":R===ea.Open,"aria-activedescendant":(0,U.useSlice)(i,i.selectors.activeDescendantId),"aria-labelledby":N,"aria-describedby":W,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==a.defaultValue?null==b?void 0:b(a.defaultValue):null)?o:a.defaultValue,disabled:h||void 0,autoFocus:g,onCompositionStart:D,onCompositionEnd:A,onKeyDown:M,onChange:L,onFocus:H,onBlur:K},j,ee);return(0,Y.useRender)()({ourProps:eo,theirProps:S,slot:en,defaultTag:"input",name:"Combobox.Input"})}),eI=Z.Label,eT=(0,Y.forwardRefWithAs)(function(e,t){var n,o,i;let r=(0,l.useId)(),{id:s=`headlessui-combobox-options-${r}`,hold:a=!1,anchor:u,portal:c=!1,modal:d=!0,transition:p=!1,...f}=e,v=em("Combobox.Options"),h=eE("Combobox.Options"),S=(0,V.useResolvedAnchor)(u);S&&(c=!0);let[y,P]=(0,V.useFloatingPanel)(S),[F,O]=(0,l.useState)(null),I=(0,V.useFloatingPanelProps)(),T=(0,k.useSyncRefs)(t,S?y:null,v.actions.setOptionsElement,O),[C,A,B,K,H]=(0,U.useSlice)(v,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),_=(0,R.useOwnerDocument)(A||B),$=(0,R.useOwnerDocument)(K),G=(0,W.useOpenClosed)(),[z,j]=(0,M.useTransition)(p,F,null!==G?(G&W.State.Open)===W.State.Open:C===ea.Open);(0,x.useOnDisappear)(z,A,v.actions.closeCombobox);let q=!h.__demoMode&&d&&C===ea.Open;(0,D.useScrollLock)(q,$);let Q=!h.__demoMode&&d&&C===ea.Open;(0,g.useInertOthers)(Q,{allowed:(0,l.useCallback)(()=>[A,B,K],[A,B,K])});let J=!(0,U.useSlice)(v,v.selectors.didInputMove)&&z;(0,E.useIsoMorphicEffect)(()=>{var t;h.optionsPropsRef.current.static=null!=(t=e.static)&&t},[h.optionsPropsRef,e.static]),(0,E.useIsoMorphicEffect)(()=>{h.optionsPropsRef.current.hold=a},[h.optionsPropsRef,a]),(0,L.useTreeWalker)(C===ea.Open,{container:K,accept:e=>
1"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let X=(0,Z.useLabelledBy)([null==B?void 0:B.id]),ee=(0,w.useSlot)({open:C===ea.Open,option:void 0}),en=(0,m.useEvent)(()=>{v.actions.setActivationTrigger(eu.Pointer)}),eo=(0,m.useEvent)(e=>{e.preventDefault(),v.actions.setActivationTrigger(eu.Pointer)}),ei=(0,Y.mergeProps)(S?I():{},{"aria-labelledby":X,role:"listbox","aria-multiselectable":h.mode===el.Multi||void 0,id:s,ref:T,style:{...f.style,...P,"--input-width":(0,b.useElementSize)(z,A,!0).width,"--button-width":(0,b.useElementSize)(z,B,!0).width},onWheel:H===eu.Pointer?void 0:en,onMouseDown:eo,...(0,M.transitionDataAttributes)(j)}),er=z&&C===ea.Closed&&!e.static,es=(0,N.useFrozenData)(er,null==(n=h.virtual)?void 0:n.options),ec=(0,N.useFrozenData)(er,h.value),ed=(0,l.useCallback)(e=>h.compare(ec,e),[h.compare,ec]),ep=(0,l.useMemo)(()=>{if(!h.virtual)return h;if(void 0===es)throw Error("Missing `options` in virtual mode");return es!==h.virtual.options?{...h,virtual:{...h.virtual,options:es}}:h},[h,es,null==(o=h.virtual)?void 0:o.options]);h.virtual&&Object.assign(f,{children:l.default.createElement(eg.Provider,{value:ep},l.default.createElement(ex,{slot:ee},f.children))});let ef=(0,Y.useRender)(),ev=(0,l.useMemo)(()=>h.mode===el.Multi?h:{...h,isSelected:ed},[h,ed]);return l.default.createElement(et.Portal,{enabled:!!c&&(e.static||z),ownerDocument:_},l.default.createElement(eg.Provider,{value:ev},ef({ourProps:ei,theirProps:{...f,children:l.default.createElement(N.Frozen,{freeze:er},"function"==typeof f.children?null==(i=f.children)?void 0:i.call(f,ee):f.children)},slot:ee,defaultTag:"div",features:eR,visible:J,name:"Combobox.Options"}
1)))}),eC=(0,Y.forwardRefWithAs)(function(e,t){var n,o,i;let r=eE("Combobox.Option"),s=em("Combobox.Option"),a=(0,l.useId)(),{id:u=`headlessui-combobox-option-${a}`,value:c,disabled:d=null!=(i=null==(o=null==(n=r.virtual)?void 0:n.disabled)?void 0:o.call(n,c))&&i,order:p=null,...f}=e,[v]=(0,U.useSlice)(s,e=>[e.inputElement]),b=T(v),h=(0,U.useSlice)(s,(0,l.useCallback)(e=>s.selectors.isActive(e,c,u),[c,u])),g=r.isSelected(c),x=(0,l.useRef)(null),y=(0,S.useLatestValue)({disabled:d,value:c,domRef:x,order:p}),R=(0,l.useContext)(eS),P=(0,k.useSyncRefs)(t,x,R?R.measureElement:null),F=(0,m.useEvent)(()=>{s.actions.setIsTyping(!1),s.actions.onChange(c)});(0,E.useIsoMorphicEffect)(()=>s.actions.registerOption(u,y),[y,u]);let O=(0,U.useSlice)(s,(0,l.useCallback)(e=>s.selectors.shouldScrollIntoView(e,c,u),[c,u]));(0,E.useIsoMorphicEffect)(()=>{if(O)return(0,j.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[O,x]);let I=(0,m.useEvent)(e=>{e.preventDefault(),e.button===ee.MouseButton.Left&&(d||(F(),(0,Q.isMobile)()||requestAnimationFrame(()=>b()),r.mode===el.Single&&s.actions.closeCombobox()))}),C=(0,m.useEvent)(()=>{if(d)return s.actions.goToOption({focus:z.Focus.Nothing});let e=r.calculateIndex(c);s.actions.goToOption({focus:z.Focus.Specific,idx:e})}),D=(0,A.useTrackedPointer)(),M=(0,m.useEvent)(e=>D.update(e)),L=(0,m.useEvent)(e=>{if(!D.wasMoved(e)||d||h&&s.state.activationTrigger===eu.Pointer)return;let t=r.calculateIndex(c);s.actions.goToOption({focus:z.Focus.Specific,idx:t},eu.Pointer)}),B=(0,m.useEvent)(e=>{D.wasMoved(e)&&(d||h&&(r.optionsPropsRef.current.hold||s.state.activationTrigger===eu.Pointer&&s.actions.goToOption({focus:z.Focus.Nothing})))}),K=(0,w.useSlot)({active:h,focus:h,selected:g,disabled:d});return(0,Y.useRender)()({ourProps:{id:u,ref:P,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":g,disabled:void 0,onMouseDown:I,onFocus:C,onPointerEnter:M,onMouseEnter:M,onPointerMove:L,onMouseMove:L,onPointerLeave:B,onMouseLeave:B},theirProps:f,slot:K,defaultTag:"div",name:"Combobox.Option"})}),eD=Object.assign(eP,{Input:eO,Button:eF,Label:eI,Options:eT,Option:eC});e.s(["Combobox",0,eD,"ComboboxButton",0,eF,"ComboboxInput",0,eO,"ComboboxLabel",0,eI,"ComboboxOption",0,eC,"ComboboxOptions",0,eT],443846)},555205,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(453936),i=e.i(576952),r=e.i(142969),s=e.i(226151);let a=o.Fragment,l=(0,s.forwardRefWithAs)(function(e,o){let{...l}=e,{isFocusVisible:u,focusProps:c}=(0,t.useFocusRing)(),{isHovered:d,hoverProps:p}=(0,n.useHover)({isDisabled:!1}),{pressed:f,pressProps:v}=(0,i.useActivePress)({disabled:!1}),b=(0,s.mergeProps)({ref:o},c,p,v),m=(0,r.useSlot)({hover:d,focus:u,active:f});return(0,s.useRender)()({ourProps:b,theirProps:l,slot:m,defaultTag:a,name:"DataInteractive"})});e.s(["DataInteractive",0,l])},224394,e=>{"use strict";var t=e.i(453936),n=e.i(675242);e.s(["useIsMounted",0,function(){let e=(0,t.useRef)(!1);return(0,n.useIsoMorphicEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}])},765246,e=>{"use strict";let t;var n=e.i(453936),o=e.i(813848),i=e.i(535420),r=e.i(768002),s=e.i(224394),a=e.i(836551),l=e.i(844972),u=e.i(609049),c=e.i(762160),d=e.i(698312),p=e.i(492865),f=e.i(100850),v=e.i(112308),b=e.i(301093),m=e.i(740404),h=e.i(106896
1),g=e.i(372196),E=e.i(573854),S=e.i(97536),x=e.i(226151);function y(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)m.isElement(n.current)&&t.add(n.current);return t}var R=((t=R||{})[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t);let P=Object.assign((0,x.forwardRefWithAs)(function(e,t){let R=(0,n.useRef)(null),P=(0,d.useSyncRefs)(R,t),{initialFocus:O,initialFocusFallback:I,containers:T,features:C=15,...D}=e;(0,c.useServerHandoffComplete)()||(C=0);let w=(0,u.useOwnerDocument)(R.current);!function(e,{ownerDocument:t}){let o=!!(8&e),r=function(e=!0){let t=(0,n.useRef)(b.history.slice());return(0,f.useWatch)(([e],[n])=>{!0===n&&!1===e&&(0,E.microTask)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=b.history.slice())},[e,b.history,t]),(0,i.useEvent)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(o);(0,f.useWatch)(()=>{o||(0,S.isActiveElement)(null==t?void 0:t.body)&&(0,h.focusElement)(r())},[o]),(0,l.useOnUnmount)(()=>{o&&(0,h.focusElement)(r())})}(C,{ownerDocument:w});let k=function(e,{ownerDocument:t,container:o,initialFocus:i,initialFocusFallback:r}){let l=(0,n.useRef)(null),u=(0,a.useIsTopLayer)(!!(1&e),"focus-trap#initial-focus"),c=(0,s.useIsMounted)();return(0,f.useWatch)(()=>{if(0===e)return;if(!u){null!=r&&r.current&&(0,h.focusElement)(r.current);return}let n=o.current;n&&(0,E.microTask)(()=>{if(!c.current)return;let o=null==t?void 0:t.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===o){l.current=o;return}}else if(n.contains(o)){l.current=o;return}if(null!=i&&i.current)(0,h.focusElement)(i.current);else{if(16&e){if((0,h.focusIn)(n,h.Focus.First|h.Focus.AutoFocus)!==h.FocusResult.Error)return}else if((0,h.focusIn)(n,h.Focus.First)!==h.FocusResult.Error)return;if(null!=r&&r.current&&((0,h.focusElement)(r.current),(null==t?void 0:t.activeElement)===r.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=null==t?void 0:t.activeElement})},[r,u,e]),l}(C,{ownerDocument:w,container:R,initialFocus:O,initialFocusFallback:I});!function(e,{ownerDocument:t,container:n,containers:o,previousActiveElement:i}){let a=(0,s.useIsMounted)(),l=!!(4&e);(0,r.useEventListener)(null==t?void 0:t.defaultView,"focus",e=>{if(!l||!a.current)return;let t=y(o);m.isHTMLElement(n.current)&&t.add(n.current);let r=i.current;if(!r)return;let s=e.target;m.isHTMLElement(s)?F(t,s)?(i.current=s,(0,h.focusElement)(s)):(e.preventDefault(),e.stopPropagation(),(0,h.focusElement)(r)):(0,h.focusElement)(i.current)},!0)}(C,{ownerDocument:w,container:R,containers:T,previousActiveElement:k});let A=(0,p.useTabDirection)(),M=(0,i.useEvent)(e=>{if(!m.isHTMLElement(R.current))return;let t=R.current;(0,g.match)(A.current,{[p.Direction.Forwards]:()=>{(0,h.focusIn)(t,h.Focus.First,{skipElements:[e.relatedTarget,I]})},[p.Direction.Backwards]:()=>{(0,h.focusIn)(t,h.Focus.Last,{skipElements:[e.relatedTarget,I]})}})}),L=(0,a.useIsTopLayer)(!!(2&C),"focus-trap#tab-lock"),B=(0,o.useDisposables)(),K=(0,n.useRef)(!1),V=(0,x.useRender)();return n.default.createElement(n.default.Fragment,null,L&&n.default.createElement(v.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:v.HiddenFeatures.Focusable}),V({ourProps:{ref:P,onKeyDown(e){"Tab"==e.key&&(K.current=!0,B.requestAnimationFrame(()=>{K.current=!1}))},onBlur(e){if(!(4&C))return;let t=y(T);m.isHTMLElement(R.current)&&t.add(R.current);let n=e.relatedTarget;m.isHTMLorSVGElement(n)&&"true"!==n.dataset.headlessuiFocusGuard&&(F(t,n)||(K.current?(0,h.focusIn)(R.current,(0,g.match)(A.current,{[p.Direction.Forwards]:()=>h.Focus.Next,[p.Direction.Backwards]:()=>h.Focus.Previous})|h.Focus.WrapAround,{relativeTo:e.target}):m.isHTMLorSVGElement(e.target)&&(0,h.focusElement)(e.target)))}},theirProps:D,defaultTag:"div",name:"FocusTrap"}),L&&n.default.createElement(v.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:v.HiddenFeatures.Focusable}))}),{features:R});function F(e,t){for(let n of e)if(n.contains(t))return!0;return!1}e.s(["FocusTrap",0,P,"FocusTrapFeatures",0,R])},925901,e=>{"use strict";let t;var n=e.i(453936),o=e.i(813848),i=e.i(535420),r=e.i(224394),s=e.i(675242),a=e.i(334098),l=e.i(762160),u=e.i(698312),c=e.i(397213),d=e.i(272550),p=e.i(648292),f=e.i(372196),v=e.i(226151);function b(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!(0,v.isFragment)(null!=(t=e.as)?t:x)||1===n.default.Children.count(e.children)}let m=(0,n.createContext)(null);m.displayName="TransitionContext";var h=((t=h||{}).Visible="visible",t.Hidden="hidden",t);let g=(0,n.createContext)(null);function E(e){return"children"in e?E(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function S(e,t){let s=(0,a.useLatestValue)(e),l=(0,n.useRef)([]),u=(0,r.useIsMounted)(),c=(0,o.useDisposables)(),d=(0,i.useEvent)((e,t=v.RenderStrategy.Hidden)=>{let n=l.current.findIndex(({el:t})=>t===e);-1!==n&&((0,f.match)(t,{[v.RenderStrategy.Unmount](){l.current.splice(n,1)},[v.RenderStrategy.Hidden](){l.current[n].state="hidden"}}),c.microTask(()=>{var e;!E(l)&&u.current&&(null==(e=s.current)||e.call(s))}))}),p=(0,i.useEvent)(e=>{let t=l.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):l.current.push({el:e,state:"visible"}),()=>d(e,v.RenderStrategy.Unmount)}),b=(0,n.useRef)([]),m=(0,n.useRef)(Promise.resolve()),h=(0,n.useRef)({enter:[],leave:[]}
1),g=(0,i.useEvent)((e,n,o)=>{b.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{b.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>o(n)):o(n)}),S=(0,i.useEvent)((e,t,n)=>{Promise.all(h.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=b.current.shift())||e()}).then(()=>n(t))});return(0,n.useMemo)(()=>({children:l,register:p,unregister:d,onStart:g,onStop:S,wait:m,chains:h}),[p,d,l,g,S,h,m])}g.displayName="NestingContext";let x=n.Fragment,y=v.RenderFeatures.RenderStrategy,R=(0,v.forwardRefWithAs)(function(e,t){let{show:o,appear:r=!1,unmount:a=!0,...c}=e,p=(0,n.useRef)(null),f=b(e),h=(0,u.useSyncRefs)(...f?[p,t]:null===t?[]:[t]);(0,l.useServerHandoffComplete)();let x=(0,d.useOpenClosed)();if(void 0===o&&null!==x&&(o=(x&d.State.Open)===d.State.Open),void 0===o)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[R,F]=(0,n.useState)(o?"visible":"hidden"),O=S(()=>{o||F("hidden")}
1),[I,T]=(0,n.useState)(!0),C=(0,n.useRef)([o]);(0,s.useIsoMorphicEffect)(()=>{!1!==I&&C.current[C.current.length-1]!==o&&(C.current.push(o),T(!1))},[C,o]);let D=(0,n.useMemo)(()=>({show:o,appear:r,initial:I}),[o,r,I]);(0,s.useIsoMorphicEffect)(()=>{o?F("visible"):E(O)||null===p.current||F("hidden")},[o,O]);let w={unmount:a},k=(0,i.useEvent)(()=>{var t;I&&T(!1),null==(t=e.beforeEnter)||t.call(e)}),A=(0,i.useEvent)(()=>{var t;I&&T(!1),null==(t=e.beforeLeave)||t.call(e)}),M=(0,v.useRender)();return n.default.createElement(g.Provider,{value:O},n.default.createElement(m.Provider,{value:D},M({ourProps:{...w,as:n.Fragment,children:n.default.createElement(P,{ref:h,...w,...c,beforeEnter:k,beforeLeave:A})},theirProps:{},defaultTag:n.Fragment,features:y,visible:"visible"===R,name:"Transition"})))}),P=(0,v.forwardRefWithAs)(function(e,t){var o,r;let{transition:a=!0,beforeEnter:h,afterEnter:R,beforeLeave:P,afterLeave:F,enter:O,enterFrom:I,enterTo:T,entered:C,leave:D,leaveFrom:w,leaveTo:k,...A}=e,[M,L]=(0,n.useState)(null),B=(0,n.useRef)(null),K=b(e),V=(0,u.useSyncRefs)(...K?[B,t,L]:null===t?[]:[t]),H=null==(o=A.unmount)||o?v.RenderStrategy.Unmount:v.RenderStrategy.Hidden,{show:N,appear:_,initial:W}=function(){let e=(0,n.useContext)(m);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[$,U]=(0,n.useState)(N?"visible":"hidden"),G=function(){let e=(0,n.useContext)(g);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:z,unregister:j}=G;(0,s.useIsoMorphicEffect)(()=>z(B),[z,B]),(0,s.useIsoMorphicEffect)(()=>{if(H===v.RenderStrategy.Hidden&&B.current)return N&&"visible"!==$?void U("visible"):(0,f.match)($,{hidden:()=>j(B),visible:()=>z(B)})},[$,B,z,j,N,H]);let q=(0,l.useServerHandoffComplete)();(0,s.useIsoMorphicEffect)(()=>{if(K&&q&&"visible"===$&&null===B.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[B,$,q,K]);let Q=W&&!_,Y=_&&N&&W,J=(0,n.useRef)(!1),X=S(()=>{J.current||(U("hidden"),j(B))},G),Z=(0,i.useEvent)(e=>{J.current=!0,X.onStart(B,e?"enter":"leave",e=>{"enter"===e?null==h||h():"leave"===e&&(null==P||P())})}),ee=(0,i.useEvent)(e=>{let t=e?"enter":"leave";J.current=!1,X.onStop(B,t,e=>{"enter"===e?null==R||R():"leave"===e&&(null==F||F())}),"leave"!==t||E(X)||(U("hidden"),j(B))});(0,n.useEffect)(()=>{K&&a||(Z(N),ee(N))},[N,K,a]);let et=!(!a||!K||!q||Q),[,en]=(0,c.useTransition)(et,M,N,{start:Z,end:ee}),eo=(0,v.compact)({ref:V,className:(null==(r=(0,p.classNames)(A.className,Y&&O,Y&&I,en.enter&&O,en.enter&&en.closed&&I,en.enter&&!en.closed&&T,en.leave&&D,en.leave&&!en.closed&&w,en.leave&&en.closed&&k,!en.transition&&N&&C))?void 0:r.trim())||void 0,...(0,c.transitionDataAttributes)(en)}),ei=0;"visible"===$&&(ei|=d.State.Open),"hidden"===$&&(ei|=d.State.Closed),N&&"hidden"===$&&(ei|=d.State.Opening),N||"visible"!==$||(ei|=d.State.Closing);let er=(0,v.useRender)();return n.default.createElement(g.Provider,{value:X},n.default.createElement(d.OpenClosedProvider,{value:ei},er({ourProps:eo,theirProps:A,defaultTag:x,features:y,visible:"visible"===$,name:"Transition.Child"})))}),F=(0,v.forwardRefWithAs)(function(e,t){let o=null!==(0,n.useContext)(m),i=null!==(0,d.useOpenClosed)();return n.default.createElement(n.default.Fragment,null,!o&&i?n.default.createElement(R,{ref:t,...e}):n.default.createElement(P,{ref:t,...e}))}),O=Object.assign(R,{Child:F,Root:R});e.s(["Transition",0,O,"TransitionChild",0,F])},928152,e=>{"use strict";let t,n;var o=e.i(453936),i=e.i(278660),r=e.i(768002),s=e.i(836551),a=e.i(535420),l=e.i(757055),u=e.i(675242),c=e.i(668374),d=e.i(64658),p=e.i(609049),f=e.i(860209),v=e.i(71113),b=e.i(762160),m=e.i(142969),h=e.i(698312),g=e.i(529101),E=e.i(272550),S=e.i(754226),x=e.i(478650),y=e.i(255207),R=e.i(372196),P=e.i(226151),F=e.i(996926),O=e.i(765246),I=e.i(118735),T=e.i(925901),C=((t=C||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),D=((n=D||{})[n.SetTitleId=0]="SetTitleId",n);let w={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},k=(0,o.createContext)(null);function A(e){let t=(0,o.useContext)(k);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function M(e,t){return(0,R.match)(t.type,w,e,t)}k.displayName="DialogContext";let L=(0,P.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:R=`headlessui-dialog-${n}`,open:T,onClose:C,initialFocus:D,role:w="dialog",autoFocus:A=!0,__demoMode:L=!1,unmount:V=!1,...H}=e,N=(0,o.useRef)(!1);
1w="dialog"===w||"alertdialog"===w?w:(N.current||(N.current=!0,console.warn(`Invalid role [${w}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let _=(0,E.useOpenClosed)();void 0===T&&null!==_&&(T=(_&E.State.Open)===E.State.Open);let W=(0,o.useRef)(null),$=(0,h.useSyncRefs)(W,t),U=(0,p.useOwnerDocument)(W.current),G=+!T,[z,j]=(0,o.useReducer)(M,{titleId:null,descriptionId:null,panelRef:(0,o.createRef)()}),q=(0,a.useEvent)(()=>C(!1)),Q=(0,a.useEvent)(e=>j({type:0,id:e})),Y=!!(0,b.useServerHandoffComplete)()&&0===G,[J,X]=(0,I.useNestedPortals)(),Z=(0,f.useMainTreeNode)(),{resolveContainers:ee}=(0,f.useRootContainers)({mainTreeNode:Z,portals:J,defaultContainers:[{get current(){var et;return null!=(et=z.panelRef.current)?et:W.current}}]}),en=null!==_&&(_&E.State.Closing)===E.State.Closing;(0,l.useInertOthers)(!L&&!en&&Y,{allowed:(0,a.useEvent)(()=>{var e,t;return[null!=(t=null==(e=W.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,a.useEvent)(()=>{var e;return[null!=(e=null==Z?void 0:Z.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let eo=x.stackMachines.get(null);(0,u.useIsoMorphicEffect)(()=>{if(Y)return eo.actions.push(R),()=>eo.actions.pop(R)},[eo,R,Y]);let ei=(0,y.useSlice)(eo,(0,o.useCallback)(e=>eo.selectors.isTop(e,R),[eo,R]));(0,d.useOutsideClick)(ei,ee,e=>{e.preventDefault(),q()}),function(e,t="u">typeof document?document.defaultView:null,n){let o=(0,s.useIsTopLayer)(e,"escape");(0,r.useEventListener)(t,"keydown",e=>{o&&(e.defaultPrevented||e.key===i.Keys.Escape&&n(e))})}(ei,null==U?void 0:U.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),q()}),(0,v.useScrollLock)(!L&&!en&&Y,U,ee),(0,c.useOnDisappear)(Y,W,q);let[er,es]=(0,F.useDescriptions)(),ea=(0,o.useMemo)(()=>[{dialogState:G,close:q,setTitleId:Q,unmount:V},z],[G,q,Q,V,z]),el=(0,m.useSlot)({open:0===G}),eu={ref:$,id:R,role:w,tabIndex:-1,"aria-modal":L?void 0:0===G||void 0,"aria-labelledby":z.titleId,"aria-describedby":er,unmount:V},ec=!function(){var e;let[t]=(0,o.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,i]=(0,o.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,u.useIsoMorphicEffect)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){i(e.matches)}},[t]),n}(),ed=O.FocusTrapFeatures.None;Y&&!L&&(ed|=O.FocusTrapFeatures.RestoreFocus,ed|=O.FocusTrapFeatures.TabLock,A&&(ed|=O.FocusTrapFeatures.AutoFocus),ec&&(ed|=O.FocusTrapFeatures.InitialFocus));let ep=(0,P.useRender)();return o.default.createElement(E.ResetOpenClosedProvider,null,o.default.createElement(S.ForcePortalRoot,{force:!0},o.default.createElement(I.Portal,null,o.default.createElement(k.Provider,{value:ea},o.default.createElement(I.PortalGroup,{target:W},o.default.createElement(S.ForcePortalRoot,{force:!1},o.default.createElement(es,{slot:el},o.default.createElement(X,null,o.default.createElement(O.FocusTrap,{initialFocus:D,initialFocusFallback:W,containers:ee,features:ed},o.default.createElement(g.CloseProvider,{value:q},ep({ourProps:eu,theirProps:H,slot:el,defaultTag:B,features:K,visible:0===G,name:"Dialog"})))))))))))}),B="div",K=P.RenderFeatures.RenderStrategy|P.RenderFeatures.Static,V=(0,P.forwardRefWithAs)(function(e,t){let{transition:n=!1,open:i,...r}=e,s=(0,E.useOpenClosed)(),a=e.hasOwnProperty("open")||null!==s,l=e.hasOwnProperty("onClose");if(!a&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!s&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==i||n)&&!r.static?o.default.createElement(f.MainTreeProvider,null,o.default.createElement(T.Transition,{show:i,transition:n,unmount:r.unmount},o.default.createElement(L,{ref:t,...r}))):o.default.createElement(f.MainTreeProvider,null,o.default.createElement(L,{ref:t,open:i,...r}))}),H=(0,P.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:i=`headlessui-dialog-panel-${n}`,transition:r=!1,...s}=e,[{dialogState:l,unmount:u},c]=A("Dialog.Panel"),d=(0,h.useSyncRefs)(t,c.panelRef),p=(0,m.useSlot)({open:0===l}),f=(0,a.useEvent)(e=>{e.stopPropagation()}),v=r?T.TransitionChild:o.Fragment,b=(0,P.useRender)();return o.default.createElement(v,{...r?{unmount:u}:{}},b({ourProps:{ref:d,id:i,onClick:f}
1,theirProps:s,slot:p,defaultTag:"div",name:"Dialog.Panel"}))}),N=(0,P.forwardRefWithAs)(function(e,t){let{transition:n=!1,...i}=e,[{dialogState:r,unmount:s}]=A("Dialog.Backdrop"),a=(0,m.useSlot)({open:0===r}),l=n?T.TransitionChild:o.Fragment,u=(0,P.useRender)();return o.default.createElement(l,{...n?{unmount:s}:{}},u({ourProps:{ref:t,"aria-hidden":!0},theirProps:i,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),_=(0,P.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:i=`headlessui-dialog-title-${n}`,...r}=e,[{dialogState:s,setTitleId:a}]=A("Dialog.Title"),l=(0,h.useSyncRefs)(t);(0,o.useEffect)(()=>(a(i),()=>a(null)),[i,a]);let u=(0,m.useSlot)({open:0===s});return(0,P.useRender)()({ourProps:{ref:l,id:i},theirProps:r,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),W=F.Description,$=Object.assign(V,{Panel:H,Title:_,Description:F.Description});e.s(["Dialog",0,$,"DialogBackdrop",0,N,"DialogDescription",0,W,"DialogPanel",0,H,"DialogTitle",0,_],928152)},883259,e=>{"use strict";var t=e.i(453936),n=e.i(142969),o=e.i(11489),i=e.i(889575),r=e.i(481152),s=e.i(226151),a=e.i(996926),l=e.i(584461);let u=(0,s.forwardRefWithAs)(function(e,u){let c=`headlessui-control-${(0,t.useId)()}`,[d,p]=(0,l.useLabels)(),[f,v]=(0,a.useDescriptions)(),b=(0,o.useDisabled)(),{disabled:m=b||!1,...h}=e,g=(0,n.useSlot)({disabled:m}),E=(0,s.useRender)();return t.default.createElement(o.DisabledProvider,{value:m},t.default.createElement(p,{value:d},t.default.createElement(v,{value:f},t.default.createElement(r.IdProvider,{id:c},E({ourProps:{ref:u,disabled:m||void 0,"aria-disabled":m||void 0},theirProps:{...h,children:t.default.createElement(i.FormFieldsProvider,null,"function"==typeof h.children?h.children(g):h.children)},slot:g,defaultTag:"div",name:"Field"})))))});e.s(["Field",0,u])},97727,e=>{"use strict";var t=e.i(453936),n=e.i(740404),o=e.i(142969),i=e.i(698312),r=e.i(11489),s=e.i(226151),a=e.i(584461);let l="fieldset",u=(0,s.forwardRefWithAs)(function(e,u){var c;let d=(0,r.useDisabled)(),{disabled:p=d||!1,...f}=e,[v,b]=function(e){let o="string"==typeof e?e:void 0,[i,r]=(0,t.useState)(o);return[null!=o?o:i,(0,t.useCallback)(e=>{o||n.isHTMLElement(e)&&r(e.tagName.toLowerCase())},[o])]}(null!=(c=e.as)?c:l),m=(0,i.useSyncRefs)(u,b),[h,g]=(0,a.useLabels)(),E=(0,o.useSlot)({disabled:p}),S="fieldset"===v?{ref:m,"aria-labelledby":h,disabled:p||void 0}:{ref:m,role:"group","aria-labelledby":h,"aria-disabled":p||void 0},x=(0,s.useRender)();return t.default.createElement(r.DisabledProvider,{value:p},t.default.createElement(g,null,x({ourProps:S,theirProps:f,slot:E,defaultTag:l,name:"Fieldset"})))});e.s(["Fieldset",0,u],97727)},16717,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(453936),i=e.i(142969),r=e.i(11489),s=e.i(481152),a=e.i(226151),l=e.i(996926),u=e.i(584461);let c=(0,a.forwardRefWithAs)(function(e,c){let d=(0,o.useId)(),p=(0,s.useProvidedId)(),f=(0,r.useDisabled)(),{id:v=p||`headlessui-input-${d}`,disabled:b=f||!1,autoFocus:m=!1,invalid:h=!1,...g}=e,E=(0,u.useLabelledBy)(),S=(0,l.useDescribedBy)(),{isFocused:x,focusProps:y}=(0,t.useFocusRing)({autoFocus:m}),{isHovered:R,hoverProps:P}=(0,n.useHover)({isDisabled:b}),F=(0,a.mergeProps)({ref:c,id:v,"aria-labelledby":E,"aria-describedby":S,"aria-invalid":h?"true":void 0,disabled:b||void 0,autoFocus:m},y,P),O=(0,i.useSlot)({disabled:b,invalid:h,hover:R,focus:x,autofocus:m});return(0,a.useRender)()({ourProps:F,theirProps:g,slot:O,defaultTag:"input",name:"Input"})});e.s(["Input",0,c])},651679,e=>{"use strict";var t=e.i(453936),n=e.i(226151),o=e.i(584461);o.Label;let i=(0,n.forwardRefWithAs)(function(e,n){return t.default.createElement(o.Label,{as:"div",ref:n,...e})});e.s(["Legend",0,i])},992383,e=>{"use strict";let t,n,o,i;var r=e.i(603535),s=e.i(950517),a=e.i(453936),l=e.i(716750),u=e.i(576952),c=e.i(44248),d=e.i(402656),p=e.i(227654),f=e.i(813848),v=e.i(569333),b=e.i(535420),m=e.i(35840),h=e.i(757055),g=e.i(675242),E=e.i(334098),S=e.i(668374),x=e.i(64658),y=e.i(609049),R=e.i(678424),P=e.i(496685),F=e.i(71113),O=e.i(142969),I=e.i(698312),T=e.i(755106),C=e.i(600159),D=e.i(397213),w=e.i(11489),k=e.i(399167),A=e.i(889575),M=e.i(373887),L=e.i(481152),B=e.i(272550),K=e.i(478650),V=e.i(255207),H=e.i(448201),N=e.i(60656),_=e.i(740404),W=e.i(106896
1),$=e.i(560452),U=e.i(372196),G=e.i(97536),z=e.i(226151),j=e.i(996926),q=e.i(278660),Q=e.i(584461),Y=e.i(118735),J=e.i(372344),X=e.i(73540),Z=Object.defineProperty,ee=(e,t,n)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?Z(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,n},et=((t=et||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),en=((n=en||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),eo=((o=eo||{})[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o),ei=((i=ei||{})[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.SelectOption=5]="SelectOption",i[i.RegisterOptions=6]="RegisterOptions",i[i.UnregisterOptions=7]="UnregisterOptions",i[i.SetButtonElement=8]="SetButtonElement",i[i.SetOptionsElement=9]="SetOptionsElement",i[i.SortOptions=10]="SortOptions",i[i.MarkButtonAsMoved=11]="MarkButtonAsMoved",i);function er(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,W.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return -1===i&&(i=null),{options:o,activeOptionIndex:i}}let es={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?X.ElementPositionState.Tracked((0,X.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:H.Focus.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,i=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==i&&(n=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:X.ElementPositionState.Idle}},2(e,t){var n,o,i,r,s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===H.Focus.Nothing)return{...a,activeOptionIndex:null};if(t.focus===H.Focus.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===H.Focus.Previous){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,s=(0,H.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.options[s].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:s}}}}else if(t.focus===H.Focus.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,i=(0,H.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:i}}}}let l=er(e),u=(0,H.calculateActiveIndex)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),o=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(o))}),r=i?e.options.indexOf(i):-1;return -1===r||r===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:r,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),o=e.activeOptionIndex;if(e.pendingFocus.focus!==H.Focus.Nothing&&(o=(0,H.calculateActiveIndex)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(o=e)}}return{...e,options:n,activeOptionIndex:o,pendingFocus:{focus:H.Focus.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,o=[],i=new Set(t.options);for(let[e,t]of n.entries())if(i.has(t.id)&&(o.push(e),i.delete(t.id),0===i.size))break;if(o.length>0)for(let e of(n=n.slice(),o.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>
1e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...er(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:X.ElementPositionState.Moved}};class ea extends J.Machine{constructor(e){super(e),ee(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:i}=this.state.dataRef.current;return(0,U.match)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=i.slice(),r=o.findIndex(t=>n(t,e));return -1===r?o.push(e):o.splice(r,1),null==t?void 0:t(o)}})},registerOption:(0,J.batch)(()=>{let e=[],t=new Set;return[(n,o)=>{t.has(o)||(t.add(o),e.push({id:n,dataRef:o}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,J.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,J.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ee(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,o=e.options;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeOptionIndex,i=e.options;return null!==o&&(null==(n=i[o])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=K.stackMachines.get(null);this.disposables.add(t.on(K.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),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,X.detectMovement)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new ea({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:H.Focus.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:X.ElementPositionState.Idle})}reduce(e,t){return(0,U.match)(t.type,es,e,t)}}var el=e.i(844972);let eu=(0,a.createContext)(null);function ec(e){let t=(0,a.useContext)(eu);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ed),t}return t}function ed({id:e,__demoMode:t=!1}){let n=(0,a.useMemo)(()=>ea.new({id:e,__demoMode:t}),[]);return(0,el.useOnUnmount)(()=>n.dispose()),n}let ep=(0,a.createContext)(null);function ef(e){let t=(0,a.useContext)(ep);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ef),t}return t}ep.displayName="ListboxDataContext";let ev=a.Fragment,eb=(0,a.createContext)(!1),em=z.RenderFeatures.RenderStrategy|z.RenderFeatures.Static,eh=a.Fragment,eg=(0,z.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),o=(0,w.useDisabled)(),{value:i,defaultValue:r,form:s,name:l,onChange:u,by:f,invalid:v=!1,disabled:b=o||!1,horizontal:m=!1,multiple:h=!1,__demoMode:E=!1,...S}=e,y=(0,I.useSyncRefs)(t),R=(0,p.useDefaultValue)(r),[P=h?[]:void 0,F
1]=(0,d.useControllable)(i,u,R),T=ed({id:n,__demoMode:E}),C=(0,a.useRef)({static:!1,hold:!1}),D=(0,a.useRef)(new Map),M=(0,c.useByComparator)(f),L=(0,a.useCallback)(e=>(0,U.match)(H.mode,{[en.Multi]:()=>P.some(t=>M(t,e)),[en.Single]:()=>M(P,e)}),[P]),H=(0,O.useSlot)({value:P,disabled:b,invalid:v,mode:h?en.Multi:en.Single,orientation:m?"horizontal":"vertical",onChange:F,compare:M,isSelected:L,optionsPropsRef:C,listRef:D});(0,g.useIsoMorphicEffect)(()=>{T.state.dataRef.current=H},[H]);let N=(0,V.useSlice)(T,e=>e.listboxState),_=K.stackMachines.get(null),$=(0,V.useSlice)(_,(0,a.useCallback)(e=>_.selectors.isTop(e,n),[_,n])),[G,j]=(0,V.useSlice)(T,e=>[e.buttonElement,e.optionsElement]);(0,x.useOutsideClick)($,[G,j],(e,t)=>{T.send({type:ei.CloseListbox}),(0,W.isFocusableElement)(t,W.FocusableMode.Loose)||(e.preventDefault(),null==G||G.focus())});let q=(0,O.useSlot)({open:N===et.Open,disabled:b,invalid:v,value:P}),[Y,J]=(0,Q.useLabels)({inherit:!0}),X=(0,a.useCallback)(()=>{if(void 0!==R)return null==F?void 0:F(R)},[F,R]),Z=(0,z.useRender)();return a.default.createElement(J,{value:Y,props:{htmlFor:null==G?void 0:G.id},slot:{open:N===et.Open,disabled:b}},a.default.createElement(k.FloatingProvider,null,a.default.createElement(eu.Provider,{value:T},a.default.createElement(ep.Provider,{value:H},a.default.createElement(B.OpenClosedProvider,{value:(0,U.match)(N,{[et.Open]:B.State.Open,[et.Closed]:B.State.Closed})},null!=l&&null!=P&&a.default.createElement(A.FormFields,{disabled:b,data:{[l]:P},form:s,onReset:X}),Z({ourProps:{ref:y},theirProps:S,slot:q,defaultTag:ev,name:"Listbox"}))))))}),eE=(0,z.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),o=(0,L.useProvidedId)(),i=ef("Listbox.Button"),c=ec("Listbox.Button"),{id:d=o||`headlessui-listbox-button-${n}`,disabled:p=i.disabled||!1,autoFocus:f=!1,...v}=e,h=(0,I.useSyncRefs)(t,(0,k.useFloatingReference)(),c.actions.setButtonElement),g=(0,k.useFloatingReferenceProps)(),[E,S,x]=(0,V.useSlice)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),y=E===et.Open;(0,R.useQuickRelease)(y,{trigger:S,action:(0,a.useCallback)(e=>{if(null!=S&&S.contains(e.target))return R.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return _.isHTMLElement(t)?R.Action.Select(t):null!=x&&x.contains(e.target)?R.Action.Ignore:R.Action.Close},[S,x]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let F=(0,b.useEvent)(e=>{switch(e.key){case q.Keys.Enter:(0,$.attemptSubmit)(e.currentTarget);break;case q.Keys.Space:case q.Keys.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:i.value?H.Focus.Nothing:H.Focus.First});break;case q.Keys.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:i.value?H.Focus.Nothing:H.Focus.Last})}}),T=(0,b.useEvent)(e=>{e.key===q.Keys.Space&&e.preventDefault()}),C=(0,m.useHandleToggle)(e=>{var t;c.state.listboxState===et.Open?((0,l.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:H.Focus.Nothing}))}),D=(0,b.useEvent)(e=>e.preventDefault()),w=(0,Q.useLabelledBy)([d]),A=(0,j.useDescribedBy)(),{isFocusVisible:M,focusProps:B}=(0,r.useFocusRing)({autoFocus:f}),{isHovered:K,hoverProps:N}=(0,s.useHover)({isDisabled:p}),{pressed:W,pressProps:U}=(0,u.useActivePress)({disabled:p}),G=(0,O.useSlot)({open:E===et.Open,active:W||E===et.Open,disabled:p,invalid:i.invalid,value:i.value,hover:K,focus:M,autofocus:f}),Y=(0,V.useSlice)(c,e=>e.listboxState===et.Open),J=(0,z.mergeProps)(g(),{ref:h,id:d,type:(0,P.useResolveButtonType)(e,S),"aria-haspopup":"listbox","aria-controls":null==x?void 0:x.id,"aria-expanded":Y,"aria-labelledby":w,"aria-describedby":A,disabled:p||void 0,autoFocus:f,onKeyDown:F,onKeyUp:T,onKeyPress:D},C,B,N,U);return(0,z.useRender)()({ourProps:J,theirProps:v,slot:G,defaultTag:"button",name:"Listbox.Button"})}),eS=Q.Label,ex=(0,z.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:o=`headlessui-listbox-options-${n}`,anchor:i,portal:r=!1,modal:s=!0,transition:u=!1,...c}=e,d=(0,k.useResolvedAnchor)(i),[p,m]=(0,a.useState)(null);d&&(r=!0);let g=ef("Listbox.Options"),E=ec("Listbox.Options"),[x,R,P,T]=(0,V.useSlice)(E,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),C=(0,y.useOwnerDocument)(R),w=(0,y.useOwnerDocument)(P),A=(0,B.useOpenClosed)(),[L,K]=(0,D.useTransition)(u,p,null!==A?(A&B.State.Open)===B.State.Open:x===et.Open);(0,S.useOnDisappear)(L,R,E.actions.closeListbox);let N=!T&&s&&x===et.Open;(0,F.useScrollLock)(N,w);let _=!T&&s&&x===et.Open;(0,h.useInertOthers)(_,{allowed:(0,a.useCallback)(()=>[R,P],[R,P])});let $=!(0,V.useSlice)(E,E.selectors.didButtonMove)&&L,j=(0,V.useSlice)(E,E.selectors.hasFrozenValue)&&!e.static,Q=(0,M.useFrozenData)(j,g.value),J=(0,a.useCallback)(e=>g.compare(Q,e),[g.compare,Q]),X=(0,V.useSlice)(E,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>J(e.dataRef.current.value));return -1===n&&(n=0),n}),Z=(()=>
1{if(null==d)return;if(null===X)return{...d,inner:void 0};let e=Array.from(g.listRef.current.values());return{...d,inner:{listRef:{current:e},index:X}}})(),[ee,eo]=(0,k.useFloatingPanel)(Z),ei=(0,k.useFloatingPanelProps)(),er=(0,I.useSyncRefs)(t,d?ee:null,E.actions.setOptionsElement,m),es=(0,f.useDisposables)();(0,a.useEffect)(()=>{P&&x===et.Open&&((0,G.isActiveElement)(P)||null==P||P.focus({preventScroll:!0}))},[x,P]);let ea=(0,b.useEvent)(e=>{var t;switch(es.dispose(),e.key){case q.Keys.Space:if(""!==E.state.searchQuery)return e.preventDefault(),e.stopPropagation(),E.actions.search(e.key);case q.Keys.Enter:e.preventDefault(),e.stopPropagation(),E.actions.selectActiveOption();break;case(0,U.match)(g.orientation,{vertical:q.Keys.ArrowDown,horizontal:q.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.Focus.Next});case(0,U.match)(g.orientation,{vertical:q.Keys.ArrowUp,horizontal:q.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.Focus.Previous});case q.Keys.Home:case q.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.Focus.First});case q.Keys.End:case q.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.Focus.Last});case q.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>E.actions.closeListbox()),null==(t=E.state.buttonElement)||t.focus({preventScroll:!0});return;case q.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>E.actions.closeListbox()),(0,W.focusFrom)(E.state.buttonElement,e.shiftKey?W.Focus.Previous:W.Focus.Next);break;default:1===e.key.length&&(E.actions.search(e.key),es.setTimeout(()=>E.actions.clearSearch(),350))}}),el=(0,V.useSlice)(E,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,O.useSlot)({open:x===et.Open}),ed=(0,z.mergeProps)(d?ei():{},{id:o,ref:er,"aria-activedescendant":(0,V.useSlice)(E,E.selectors.activeDescendantId),"aria-multiselectable":g.mode===en.Multi||void 0,"aria-labelledby":el,"aria-orientation":g.orientation,onKeyDown:ea,role:"listbox",tabIndex:x===et.Open?0:void 0,style:{...c.style,...eo,"--button-width":(0,v.useElementSize)(L,R,!0).width},...(0,D.transitionDataAttributes)(K)}),ev=(0,z.useRender)(),eb=(0,a.useMemo)(()=>g.mode===en.Multi?g:{...g,isSelected:J},[g,J]);return a.default.createElement(Y.Portal,{enabled:!!r&&(e.static||L),ownerDocument:C},a.default.createElement(ep.Provider,{value:eb},ev({ourProps:ed,theirProps:c,slot:eu,defaultTag:"div",features:em,visible:$,name:"Listbox.Options"}
1)))}),ey=(0,z.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:o=`headlessui-listbox-option-${n}`,disabled:i=!1,value:r,...s}=e,l=!0===(0,a.useContext)(eb),u=ef("Listbox.Option"),c=ec("Listbox.Option"),d=(0,V.useSlice)(c,e=>c.selectors.isActive(e,o)),p=u.isSelected(r),f=(0,a.useRef)(null),v=(0,T.useTextValue)(f),m=(0,E.useLatestValue)({disabled:i,value:r,domRef:f,get textValue(){return v()}}),h=(0,I.useSyncRefs)(t,f,e=>{e?u.listRef.current.set(o,e):u.listRef.current.delete(o)}),S=(0,V.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,o));(0,g.useIsoMorphicEffect)(()=>{if(S)return(0,N.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,f]),(0,g.useIsoMorphicEffect)(()=>{if(!l)return c.actions.registerOption(o,m),()=>c.actions.unregisterOption(o)},[m,o,l]);let x=(0,b.useEvent)(e=>{if(i)return e.preventDefault();c.actions.selectOption(r)}),y=(0,b.useEvent)(()=>{if(i)return c.actions.goToOption({focus:H.Focus.Nothing});c.actions.goToOption({focus:H.Focus.Specific,id:o})}),R=(0,C.useTrackedPointer)(),P=(0,b.useEvent)(e=>R.update(e)),F=(0,b.useEvent)(e=>{R.wasMoved(e)&&(i||d&&c.state.activationTrigger===eo.Pointer||c.actions.goToOption({focus:H.Focus.Specific,id:o},eo.Pointer))}),D=(0,b.useEvent)(e=>{R.wasMoved(e)&&(i||d&&c.state.activationTrigger===eo.Pointer&&c.actions.goToOption({focus:H.Focus.Nothing}))}),w=(0,O.useSlot)({active:d,focus:d,selected:p,disabled:i,selectedOption:p&&l}),k=l?{}:{id:o,ref:h,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":p,disabled:void 0,onClick:x,onFocus:y,onPointerEnter:P,onMouseEnter:P,onPointerMove:F,onMouseMove:F,onPointerLeave:D,onMouseLeave:D},A=(0,z.useRender)();return!p&&l?null:A({ourProps:k,theirProps:s,slot:w,defaultTag:"div",name:"Listbox.Option"})}),eR=(0,z.forwardRefWithAs)(function(e,t){let{options:n,placeholder:o,...i}=e,r={ref:(0,I.useSyncRefs)(t)},s=ef("ListboxSelectedOption"),l=(0,O.useSlot)({}),u=void 0===s.value||null===s.value||s.mode===en.Multi&&Array.isArray(s.value)&&0===s.value.length,c=(0,z.useRender)();return a.default.createElement(eb.Provider,{value:!0},c({ourProps:r,theirProps:{...i,children:a.default.createElement(a.default.Fragment,null,o&&u?o:n)},slot:l,defaultTag:eh,name:"ListboxSelectedOption"}))}),eP=Object.assign(eg,{Button:eE,Label:eS,Options:ex,Option:ey,SelectedOption:eR});e.s(["Listbox",0,eP,"ListboxButton",0,eE,"ListboxLabel",0,eS,"ListboxOption",0,ey,"ListboxOptions",0,ex,"ListboxSelectedOption",0,eR],992383)},311012,e=>{"use strict";let t;var n=e.i(603535),o=e.i(950517),i=e.i(453936),r=e.i(44248),s=e.i(402656),a=e.i(227654),l=e.i(535420),u=e.i(675242),c=e.i(334098),d=e.i(142969),p=e.i(698312),f=e.i(11489),v=e.i(889575),b=e.i(481152),m=e.i(489850),h=e.i(106896
1),g=e.i(560452),E=e.i(372196),S=e.i(97536),x=e.i(226151),y=e.i(996926),R=e.i(278660),P=e.i(584461),F=((t=F||{})[t.RegisterOption=0]="RegisterOption",t[t.UnregisterOption=1]="UnregisterOption",t);let O={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,h.sortByDomNode)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),o=e.options.findIndex(e=>e.id===t.id);return -1===o?e:(n.splice(o,1),{...e,options:n})}},I=(0,i.createContext)(null);function T(e){let t=(0,i.useContext)(I);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,T),t}return t}I.displayName="RadioGroupDataContext";let C=(0,i.createContext)(null);function D(e){let t=(0,i.useContext)(C);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,D),t}return t}function w(e,t){return(0,E.match)(t.type,O,e,t)}C.displayName="RadioGroupActionsContext";let k=(0,x.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),o=(0,f.useDisabled)(),{id:u=`headlessui-radiogroup-${n}`,value:c,form:b,name:m,onChange:E,by:F,disabled:O=o||!1,defaultValue:T,tabIndex:D=0,...k}=e,A=(0,r.useByComparator)(F),[M,L]=(0,i.useReducer)(w,{options:[]}),B=M.options,[K,V]=(0,P.useLabels)(),[H,N]=(0,y.useDescriptions)(),_=(0,i.useRef)(null),W=(0,p.useSyncRefs)(_,t),$=(0,a.useDefaultValue)(T),[U,G]=(0,s.useControllable)(c,E,$),z=(0,i.useMemo)(()=>B.find(e=>!e.propsRef.current.disabled),[B]),j=(0,i.useMemo)(()=>B.some(e=>A(e.propsRef.current.value,U)),[B,U]),q=(0,l.useEvent)(e=>{var t;if(O||A(e,U))return!1;let n=null==(t=B.find(t=>A(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==G||G(e),!0)}),Q=(0,l.useEvent)(e=>{if(!_.current)return;let t=B.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case R.Keys.Enter:(0,g.attemptSubmit)(e.currentTarget);break;case R.Keys.ArrowLeft:case R.Keys.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,h.focusIn)(t,h.Focus.Previous|h.Focus.WrapAround)===h.FocusResult.Success){let e=B.find(e=>(0,S.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case R.Keys.ArrowRight:case R.Keys.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,h.focusIn)(t,h.Focus.Next|h.Focus.WrapAround)===h.FocusResult.Success){let e=B.find(e=>(0,S.isActiveElement)(e.element.current));e&&q(e.propsRef.current.value)}break;case R.Keys.Space:{e.preventDefault(),e.stopPropagation();let t=B.find(e=>(0,S.isActiveElement)(e.element.current));t&&q(t.propsRef.current.value)}}}),Y=(0,l.useEvent)(e=>(L({type:0,...e}),()=>L({type:1,id:e.id}))),J=(0,i.useMemo)(()=>({value:U,firstOption:z,containsCheckedOption:j,disabled:O,compare:A,tabIndex:D,...M}),[U,z,j,O,A,D,M]),X=(0,i.useMemo)(()=>({registerOption:Y,change:q}),[Y,q]),Z=(0,d.useSlot)({value:U}),ee=(0,i.useCallback)(()=>{if(void 0!==$)return q($)},[q,$]),et=(0,x.useRender)();return i.default.createElement(N,{name:"RadioGroup.Description"},i.default.createElement(V,{name:"RadioGroup.Label"},i.default.createElement(C.Provider,{value:X},i.default.createElement(I.Provider,{value:J},null!=m&&i.default.createElement(v.FormFields,{disabled:O,data:{[m]:U||"on"},overrides:{type:"radio",checked:null!=U},form:b,onReset:ee}),et({ourProps:{ref:W,id:u,role:"radiogroup","aria-labelledby":K,"aria-describedby":H,onKeyDown:Q},theirProps:k,slot:Z,defaultTag:"div",name:"RadioGroup"})))))}),A=(0,x.forwardRefWithAs)(function(e,t){var r;let s=T("RadioGroup.Option"),a=D("RadioGroup.Option"),f=(0,i.useId)(),{id:v=`headlessui-radiogroup-option-${f}`,value:b,disabled:h=s.disabled||!1,autoFocus:g=!1,...E}=e,S=(0,i.useRef)(null),R=(0,p.useSyncRefs)(S,t),[F,O]=(0,P.useLabels)(),[I,C]=(0,y.useDescriptions)(),w=(0,c.useLatestValue)({value:b,disabled:h});(0,u.useIsoMorphicEffect)(()=>a.registerOption({id:v,element:S,propsRef:w}),[v,a,S,w]);let k=(0,l.useEvent)(e=>{var t;if((0,m.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();
1a.change(b)&&(null==(t=S.current)||t.focus())}),A=(null==(r=s.firstOption)?void 0:r.id)===v,{isFocusVisible:M,focusProps:L}=(0,n.useFocusRing)({autoFocus:g}),{isHovered:B,hoverProps:K}=(0,o.useHover)({isDisabled:h}),V=s.compare(s.value,b),H=(0,x.mergeProps)({ref:R,id:v,role:"radio","aria-checked":V?"true":"false","aria-labelledby":F,"aria-describedby":I,"aria-disabled":!!h||void 0,tabIndex:h?-1:V||!s.containsCheckedOption&&A?s.tabIndex:-1,onClick:h?void 0:k,autoFocus:g},L,K),N=(0,d.useSlot)({checked:V,disabled:h,active:M,hover:B,focus:M,autofocus:g}),_=(0,x.useRender)();return i.default.createElement(C,{name:"RadioGroup.Description"},i.default.createElement(O,{name:"RadioGroup.Label"},_({ourProps:H,theirProps:E,slot:N,defaultTag:"div",name:"RadioGroup.Option"})))}),M=(0,x.forwardRefWithAs)(function(e,t){var r;let s=T("Radio"),a=D("Radio"),v=(0,i.useId)(),h=(0,b.useProvidedId)(),g=(0,f.useDisabled)(),{id:E=h||`headlessui-radio-${v}`,value:S,disabled:R=s.disabled||g||!1,autoFocus:F=!1,...O}=e,I=(0,i.useRef)(null),C=(0,p.useSyncRefs)(I,t),w=(0,P.useLabelledBy)(),k=(0,y.useDescribedBy)(),A=(0,c.useLatestValue)({value:S,disabled:R});(0,u.useIsoMorphicEffect)(()=>a.registerOption({id:E,element:I,propsRef:A}),[E,a,I,A]);let M=(0,l.useEvent)(e=>{var t;if((0,m.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();a.change(S)&&(null==(t=I.current)||t.focus())}),{isFocusVisible:L,focusProps:B}=(0,n.useFocusRing)({autoFocus:F}),{isHovered:K,hoverProps:V}=(0,o.useHover)({isDisabled:R}),H=(null==(r=s.firstOption)?void 0:r.id)===E,N=s.compare(s.value,S),_=(0,x.mergeProps)({ref:C,id:E,role:"radio","aria-checked":N?"true":"false","aria-labelledby":w,"aria-describedby":k,"aria-disabled":!!R||void 0,tabIndex:R?-1:N||!s.containsCheckedOption&&H?s.tabIndex:-1,autoFocus:F,onClick:R?void 0:M},B,V),W=(0,d.useSlot)({checked:N,disabled:R,hover:K,focus:L,autofocus:F});return(0,x.useRender)()({ourProps:_,theirProps:O,slot:W,defaultTag:"span",name:"Radio"})}),L=P.Label,B=y.Description,K=Object.assign(k,{Option:A,Radio:M,Label:L,Description:B});e.s(["Radio",0,M,"RadioGroup",0,K,"RadioGroupDescription",0,B,"RadioGroupLabel",0,L,"RadioGroupOption",0,A])},26057,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(576952),i=e.i(453936),r=e.i(142969),s=e.i(11489),a=e.i(481152),l=e.i(226151),u=e.i(996926),c=e.i(584461);let d=(0,l.forwardRefWithAs)(function(e,d){let p=(0,i.useId)(),f=(0,a.useProvidedId)(),v=(0,s.useDisabled)(),{id:b=f||`headlessui-select-${p}`,disabled:m=v||!1,invalid:h=!1,autoFocus:g=!1,...E}=e,S=(0,c.useLabelledBy)(),x=(0,u.useDescribedBy)(),{isFocusVisible:y,focusProps:R}=(0,t.useFocusRing)({autoFocus:g}),{isHovered:P,hoverProps:F}=(0,n.useHover)({isDisabled:m}),{pressed:O,pressProps:I}=(0,o.useActivePress)({disabled:m}),T=(0,l.mergeProps)({ref:d,id:b,"aria-labelledby":S,"aria-describedby":x,"aria-invalid":h?"true":void 0,disabled:m||void 0,autoFocus:g},R,F,I),C=(0,r.useSlot)({disabled:m,invalid:h,hover:P,focus:y,active:O,autofocus:g});return(0,l.useRender)()({ourProps:T,theirProps:E,slot:C,defaultTag:"select",name:"Select"})});e.s(["Select",0,d])},701921,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(453936),i=e.i(576952),r=e.i(402656),s=e.i(227654),a=e.i(813848),l=e.i(535420),u=e.i(496685),c=e.i(142969),d=e.i(698312),p=e.i(11489),f=e.i(889575),v=e.i(481152),b=e.i(489850),m=e.i(740404),h=e.i(560452),g=e.i(226151),E=e.i(996926),S=e.i(278660),x=e.i(584461);let y=(0,o.createContext)(null);y.displayName="GroupContext";let R=o.Fragment,P=(0,g.forwardRefWithAs)(function(e,m){var R;let P=(0,o.useId)(),F=(0,v.useProvidedId)(),O=(0,p.useDisabled)(),{id:I=F||`headlessui-switch-${P}`,disabled:T=O||!1,checked:C,defaultChecked:D,onChange:w,name:k,value:A,form:M,autoFocus:L=!1,...B}=e,K=(0,o.useContext)(y),[V,H]=(0,o.useState)(null),N=(0,o.useRef)(null),_=(0,d.useSyncRefs)(N,m,null===K?null:K.setSwitch,H),W=(0,s.useDefaultValue)(D),[$,U]=(0,r.useControllable)(C,w,null!=W&&W),G=(0,a.useDisposables)(),[z,j]=(0,o.useState)(!1),q=(0,l.useEvent)(()=>{j(!0),null==U||U(!$),G.nextFrame(()=>{j(!1)})}),Q=(0,l.useEvent)(e=>{if((0,b.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),q()}),Y=(0,l.useEvent)(e=>{e.key===S.Keys.Space?(e.preventDefault(),q()):e.key===S.Keys.Enter&&(0,h.attemptSubmit)(e.currentTarget)}),J=(0,l.useEvent)(e=>e.preventDefault()),X=(0,x.useLabelledBy)(),Z=(0,E.useDescribedBy)(),{isFocusVisible:ee,focusProps:et}=(0,t.useFocusRing)({autoFocus:L}),{isHovered:en,hoverProps:eo}=(0,n.useHover)({isDisabled:T}),{pressed:ei,pressProps:er}=(0,i.useActivePress)({disabled:T}),es=(0,c.useSlot)({checked:$,disabled:T,hover:en,focus:ee,active:ei,autofocus:L,changing:z}),ea=(0,g.mergeProps)({id:I,ref:_,role:"switch",type:(0,u.useResolveButtonType)(e,V),tabIndex:-1===e.tabIndex?0:null!=(R=e.tabIndex)?R:0,"aria-checked":$,"aria-labelledby":X,"aria-describedby":Z,disabled:T||void 0,autoFocus:L,onClick:Q,onKeyUp:Y,onKeyPress:J},et,eo,er),el=(0,o.useCallback)(()=>
1{if(void 0!==W)return null==U?void 0:U(W)},[U,W]),eu=(0,g.useRender)();return o.default.createElement(o.default.Fragment,null,null!=k&&o.default.createElement(f.FormFields,{disabled:T,data:{[k]:A||"on"},overrides:{type:"checkbox",checked:$},form:M,onReset:el}),eu({ourProps:ea,theirProps:B,slot:es,defaultTag:"button",name:"Switch"}))}),F=function(e){var t;let[n,i]=(0,o.useState)(null),[r,s]=(0,x.useLabels)(),[a,l]=(0,E.useDescriptions)(),u=(0,o.useMemo)(()=>({switch:n,setSwitch:i}),[n,i]),c=(0,g.useRender)();return o.default.createElement(l,{name:"Switch.Description",value:a},o.default.createElement(s,{name:"Switch.Label",value:r,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(m.isHTMLLabelElement(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},o.default.createElement(y.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:R,name:"Switch.Group"}))))},O=x.Label,I=E.Description,T=Object.assign(P,{Group:F,Label:O,Description:I});e.s(["Switch",0,T,"SwitchDescription",0,I,"SwitchGroup",0,F,"SwitchLabel",0,O])},532302,e=>{"use strict";let t,n,o;var i=e.i(603535),r=e.i(950517),s=e.i(453936),a=e.i(576952),l=e.i(535420),u=e.i(675242),c=e.i(334098),d=e.i(496685),p=e.i(142969),f=e.i(698312),v=e.i(224394),b=e.i(112308);function m({onFocus:e}){let[t,n]=(0,s.useState)(!0),o=(0,v.useIsMounted)();return t?s.default.createElement(b.Hidden,{as:"button",type:"button",features:b.HiddenFeatures.Focusable,onFocus:t=>{t.preventDefault();let i,r=50;i=requestAnimationFrame(function t(){if(r--<=0){i&&cancelAnimationFrame(i);return}if(e()){if(cancelAnimationFrame(i),!o.current)return;n(!1);return}i=requestAnimationFrame(t)})}}):null}
1var h=e.i(106896),g=e.i(372196),E=e.i(573854),S=e.i(97536),x=e.i(226151);let y=s.createContext(null);function R({children:e}){let t=s.useRef({groups:new Map,get(e,t){var n;let o=this.groups.get(e);o||(o=new Map,this.groups.set(e,o));let i=null!=(n=o.get(t))?n:0;return o.set(t,i+1),[Array.from(o.keys()).indexOf(t),function(){let e=o.get(t);e>1?o.set(t,e-1):o.delete(t)}]}});return s.createElement(y.Provider,{value:t},e)}function P(e){let t=s.useContext(y);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=s.useId(),[o,i]=t.current.get(e,n);return s.useEffect(()=>i,[]),o}var F=e.i(278660),O=((t=O||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t),I=((n=I||{})[n.Less=-1]="Less",n[n.Equal=0]="Equal",n[n.Greater=1]="Greater",n),T=((o=T||{})[o.SetSelectedIndex=0]="SetSelectedIndex",o[o.RegisterTab=1]="RegisterTab",o[o.UnregisterTab=2]="UnregisterTab",o[o.RegisterPanel=3]="RegisterPanel",o[o.UnregisterPanel=4]="UnregisterPanel",o);let C={0(e,t){var n;let o=(0,h.sortByDomNode)(e.tabs,e=>e.current),i=(0,h.sortByDomNode)(e.panels,e=>e.current),r=o.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),s={...e,tabs:o,panels:i};if(t.index<0||t.index>o.length-1){let n=(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===r.length)return s;let i=(0,g.match)(n,{0:()=>o.indexOf(r[0]),1:()=>o.indexOf(r[r.length-1])});return{...s,selectedIndex:-1===i?e.selectedIndex:i}}let a=o.slice(0,t.index),l=[...o.slice(t.index),...a].find(e=>r.includes(e));if(!l)return s;let u=null!=(n=o.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],o=(0,h.sortByDomNode)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=o.indexOf(n))&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,h.sortByDomNode)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},D=(0,s.createContext)(null);function w(e){let t=(0,s.useContext)(D);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}D.displayName="TabsDataContext";let k=(0,s.createContext)(null);function A(e){let t=(0,s.useContext)(k);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 M(e,t){return(0,g.match)(t.type,C,e,t)}k.displayName="TabsActionsContext";let L=x.RenderFeatures.RenderStrategy|x.RenderFeatures.Static,B=(0,x.forwardRefWithAs)(function(e,t){var n,o;let c=(0,s.useId)(),{id:v=`headlessui-tabs-tab-${c}`,disabled:b=!1,autoFocus:m=!1,...y}=e,{orientation:R,activation:O,selectedIndex:I,tabs:T,panels:C}=w("Tab"),D=A("Tab"),k=w("Tab"),[M,L]=(0,s.useState)(null),B=(0,s.useRef)(null),K=(0,f.useSyncRefs)(B,t,L);(0,u.useIsoMorphicEffect)(()=>D.registerTab(B),[D,B]);let V=P("tabs"),H=T.indexOf(B);-1===H&&(H=V);let N=H===I,_=(0,l.useEvent)(e=>{let t=e();if(t===h.FocusResult.Success&&"auto"===O){let e=(0,S.getActiveElement)(B.current),t=k.tabs.findIndex(t=>t.current===e);-1!==t&&D.change(t)}return t}),W=(0,l.useEvent)(e=>{let t=T.map(e=>e.current).filter(Boolean);if(e.key===F.Keys.Space||e.key===F.Keys.Enter){e.preventDefault(),e.stopPropagation(),D.change(H);return}switch(e.key){case F.Keys.Home:case F.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),_(()=>(0,h.focusIn)(t,h.Focus.First));case F.Keys.End:case F.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),_(()=>(0,h.focusIn)(t,h.Focus.Last))}if(_(()=>(0,g.match)(R,{vertical:()=>e.key===F.Keys.ArrowUp?(0,h.focusIn)(t,h.Focus.Previous|h.Focus.WrapAround):e.key===F.Keys.ArrowDown?(0,h.focusIn)(t,h.Focus.Next|h.Focus.WrapAround):h.FocusResult.Error,horizontal:()=>e.key===F.Keys.ArrowLeft?(0,h.focusIn)(t,h.Focus.Previous|h.Focus.WrapAround):e.key===F.Keys.ArrowRight?(0,h.focusIn)(t,h.Focus.Next|h.Focus.WrapAround):h.FocusResult.Error}))===h.FocusResult.Success)return e.preventDefault()}),$=(0,s.useRef)(!1),U=(0,l.useEvent)(()=>{var e;$.current||($.current=!0,null==(e=B.current)||e.focus({preventScroll:!0}),D.change(H),(0,E.microTask)(()=>{$.current=!1}))}),G=(0,l.useEvent)(e=>{e.preventDefault()}),{isFocusVisible:z,focusProps:j}=(0,i.useFocusRing)({autoFocus:m}),{isHovered:q,hoverProps:Q}=(0,r.useHover)({isDisabled:b}),{pressed:Y,pressProps:J}=(0,a.useActivePress)({disabled:b}
1),X=(0,p.useSlot)({selected:N,hover:q,active:Y,focus:z,autofocus:m,disabled:b}),Z=(0,x.mergeProps)({ref:K,onKeyDown:W,onMouseDown:G,onClick:U,id:v,role:"tab",type:(0,d.useResolveButtonType)(e,M),"aria-controls":null==(o=null==(n=C[H])?void 0:n.current)?void 0:o.id,"aria-selected":N,tabIndex:N?0:-1,disabled:b||void 0,autoFocus:m},j,Q,J);return(0,x.useRender)()({ourProps:Z,theirProps:y,slot:X,defaultTag:"button",name:"Tabs.Tab"})}),K=(0,x.forwardRefWithAs)(function(e,t){let{defaultIndex:n=0,vertical:o=!1,manual:i=!1,onChange:r,selectedIndex:a=null,...d}=e,v=o?"vertical":"horizontal",b=i?"manual":"auto",g=null!==a,E=(0,c.useLatestValue)({isControlled:g}),S=(0,f.useSyncRefs)(t),[y,P]=(0,s.useReducer)(M,{info:E,selectedIndex:null!=a?a:n,tabs:[],panels:[]}),F=(0,p.useSlot)({selectedIndex:y.selectedIndex}),O=(0,c.useLatestValue)(r||(()=>{})),I=(0,c.useLatestValue)(y.tabs),T=(0,s.useMemo)(()=>({orientation:v,activation:b,...y}),[v,b,y]),C=(0,l.useEvent)(e=>(P({type:1,tab:e}),()=>P({type:2,tab:e}))),w=(0,l.useEvent)(e=>(P({type:3,panel:e}),()=>P({type:4,panel:e}))),A=(0,l.useEvent)(e=>{L.current!==e&&O.current(e),g||P({type:0,index:e})}),L=(0,c.useLatestValue)(g?e.selectedIndex:y.selectedIndex),B=(0,s.useMemo)(()=>({registerTab:C,registerPanel:w,change:A}),[]);(0,u.useIsoMorphicEffect)(()=>{P({type:0,index:null!=a?a:n})},[a]),(0,u.useIsoMorphicEffect)(()=>{if(void 0===L.current||y.tabs.length<=0)return;let e=(0,h.sortByDomNode)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&A(e.indexOf(y.tabs[L.current]))});let K=(0,x.useRender)();return s.default.createElement(R,null,s.default.createElement(k.Provider,{value:B},s.default.createElement(D.Provider,{value:T},T.tabs.length<=0&&s.default.createElement(m,{onFocus:()=>{var e,t;for(let n of I.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),K({ourProps:{ref:S},theirProps:d,slot:F,defaultTag:"div",name:"Tabs"}))))}),V=(0,x.forwardRefWithAs)(function(e,t){let{orientation:n,selectedIndex:o}=w("Tab.List"),i=(0,f.useSyncRefs)(t),r=(0,p.useSlot)({selectedIndex:o});return(0,x.useRender)()({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:r,defaultTag:"div",name:"Tabs.List"})}),H=(0,x.forwardRefWithAs)(function(e,t){let{selectedIndex:n}=w("Tab.Panels"),o=(0,f.useSyncRefs)(t),i=(0,p.useSlot)({selectedIndex:n});return(0,x.useRender)()({ourProps:{ref:o},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),N=(0,x.forwardRefWithAs)(function(e,t){var n,o,r,a;let l=(0,s.useId)(),{id:c=`headlessui-tabs-panel-${l}`,tabIndex:d=0,...v}=e,{selectedIndex:m,tabs:h,panels:g}=w("Tab.Panel"),E=A("Tab.Panel"),S=(0,s.useRef)(null),y=(0,f.useSyncRefs)(S,t);(0,u.useIsoMorphicEffect)(()=>E.registerPanel(S),[E,S]);let R=P("panels"),F=g.indexOf(S);-1===F&&(F=R);let O=F===m,{isFocusVisible:I,focusProps:T}=(0,i.useFocusRing)(),C=(0,p.useSlot)({selected:O,focus:I}),D=(0,x.mergeProps)({ref:y,id:c,role:"tabpanel","aria-labelledby":null==(o=null==(n=h[F])?void 0:n.current)?void 0:o.id,tabIndex:O?d:-1},T),k=(0,x.useRender)();return O||null!=(r=v.unmount)&&!r||null!=(a=v.static)&&a?k({ourProps:D,theirProps:v,slot:C,defaultTag:"div",features:L,visible:O,name:"Tabs.Panel"}):s.default.createElement(b.Hidden,{"aria-hidden":"true",...D})}),_=Object.assign(B,{Group:K,List:V,Panels:H,Panel:N});e.s(["Tab",0,_,"TabGroup",0,K,"TabList",0,V,"TabPanel",0,N,"TabPanels",0,H],532302)},28826,e=>{"use strict";var t=e.i(603535),n=e.i(950517),o=e.i(453936),i=e.i(142969),r=e.i(11489),s=e.i(481152),a=e.i(226151),l=e.i(996926),u=e.i(584461);let c=(0,a.forwardRefWithAs)(function(e,c){let d=(0,o.useId)(),p=(0,s.useProvidedId)(),f=(0,r.useDisabled)(),{id:v=p||`headlessui-textarea-${d}`,disabled:b=f||!1,autoFocus:m=!1,invalid:h=!1,...g}=e,E=(0,u.useLabelledBy)(),S=(0,l.useDescribedBy)(),{isFocused:x,focusProps:y}=(0,t.useFocusRing)({autoFocus:m}),{isHovered:R,hoverProps:P}=(0,n.useHover)({isDisabled:b}),F=(0,a.mergeProps)({ref:c,id:v,"aria-labelledby":E,"aria-describedby":S,"aria-invalid":h?"true":void 0,disabled:b||void 0,autoFocus:m}
1,y,P),O=(0,i.useSlot)({disabled:b,invalid:h,hover:R,focus:x,autofocus:m});return(0,a.useRender)()({ourProps:F,theirProps:g,slot:O,defaultTag:"textarea",name:"Textarea"})});e.s(["Textarea",0,c])}]);

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.