1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[315],{67615:function(e,t,n){let o,r;n.d(t,{pJ:function(){return L},lG:function(){return _},V2:function(){return A}});var i,l=n(91604),s=n(80958),a=n(2784),u=n(5207),c=n(19120),d=n(91122),p=n(251),f=n(84635),v=n(61503),m=n(26421),h=n(52112),b=n(7464),g=n(91568),x=n(98237),I=n(39530),y=n(11038);let E=null!=(i=a.startTransition)?i:function(e){e()};var S=n(84282),P=((o=P||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),T=((r=T||{})[r.ToggleDisclosure=0]="ToggleDisclosure",r[r.CloseDisclosure=1]="CloseDisclosure",r[r.SetButtonId=2]="SetButtonId",r[r.SetPanelId=3]="SetPanelId",r[r.SetButtonElement=4]="SetButtonElement",r[r.SetPanelElement=5]="SetPanelElement",r);let O={0:e=>({...e,disclosureState:(0,x.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},C=(0,a.createContext)(null);function R(e){let t=(0,a.useContext)(C);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,R),t}return t}C.displayName="DisclosureContext";let M=(0,a.createContext)(null);M.displayName="DisclosureAPIContext";let w=(0,a.createContext)(null);function k(e,t){return(0,x.E)(t.type,O,e,t)}w.displayName="DisclosurePanelContext";let F=a.Fragment,D=y.VN.RenderStrategy|y.VN.Static,z=(0,y.yV)(function(e,t){let{defaultOpen:n=!1,...o}=e,r=(0,a.useRef)(null),i=(0,f.T)(t,(0,f.h)(e=>{r.current=e},void 0===e.as||(0,y.M2)(e.as))),l=(0,a.useReducer)(k,{disclosureState:n?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:u},d]=l,v=(0,c.z)(e=>{d({type:1});let t=(0,I.r3)(r.current);if(!t||!u)return;let n=e?g.sP(e)?e:"current"in e&&g.sP(e.current)?e.current:t.getElementById(u):t.getElementById(u);null==n||n.focus()}),b=(0,a.useMemo)(()=>({close:v}),[v]),E=(0,p.x)({open:0===s,close:v}),S=(0,y.L6)();return a.createElement(C.Provider,{value:l},a.createElement(M.Provider,{value:b},a.createElement(m.Z,{value:v},a.createElement(h.up,{value:(0,x.E)(s,{0:h.ZM.Open,1:h.ZM.Closed})},S({ourProps:{ref:i},theirProps:o,slot:E,defaultTag:F,name:"Disclosure"})))))}),_=(0,y.yV)(function(e,t){let n=(0,a.useId)(),{id:o="headlessui-disclosure-button-".concat(n),disabled:r=!1,autoFocus:i=!1,...v}=e,[m,h]=R("Disclosure.Button"),g=(0,a.useContext)(w),x=null!==g&&g===m.panelId,I=(0,a.useRef)(null),E=(0,f.T)(I,t,(0,c.z)(e=>{if(!x)return h({type:4,element:e})}));(0,a.useEffect)(()=>{if(!x)return h({type:2,buttonId:o}),()=>{h({type:2,buttonId:null})}},[o,h,x]);let P=(0,c.z)(e=>{var t;if(x){if(1===m.disclosureState)return;switch(e.key){case S.R.Space:case S.R.Enter:e.preventDefault(),e.stopPropagation(),h({type:0}),null==(t=m.buttonElement)||t.focus()}}else switch(e.key){case S.R.Space:case S.R.Enter:e.preventDefault(),e.stopPropagation(),h({type:0})}}),T=(0,c.z)(e=>{e.key===S.R.Space&&e.preventDefault()}),O=(0,c.z)(e=>{var t;(0,b.P)(e.currentTarget)||r||(x?(h({type:0}),null==(t=m.buttonElement)||t.focus()):h({type:0}))}),{isFocusVisible:C,focusProps:M}=(0,l.F)({autoFocus:i}),{isHovered:k,hoverProps:F}=(0,s.X)({isDisabled:r}),{pressed:D,pressProps:z}=(0,u.x)({disabled:r}),_=(0,p.x)({open:0===m.disclosureState,hover:k,active:D,disabled:r,focus:C,autofocus:i}),A=(0,d.f)(e,m.buttonElement),L=x?(0,y.dG)({ref:E,type:A,disabled:r||void 0,autoFocus:i,onKeyDown:P,onClick:O},M,F,z):(0,y.dG)({ref:E,id:o,type:A,"aria-expanded":0===m.disclosureState,"aria-controls":m.panelElement?m.panelId:void 0,disabled:r||void 0,autoFocus:i,onKeyDown:P,onKeyUp:T,onClick:O},M,F,z);return(0,y.L6)()({ourProps:L,theirProps:v,slot:_,defaultTag:"button",name:"Disclosure.Button"})}),A=(0,y.yV)(function(e,t){let n=(0,a.useId)(),{id:o="headlessui-disclosure-panel-".concat(n),transition:r=!1,...i}=e,[l,s]=R("Disclosure.Panel"),{close:u}=function e(t){let n=(0,a.useContext)(M);if(null===n){let n=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),[d,m]=(0,a.useState)(null),b=(0,f.T)(t,(0,c.z)(e=>{E(()=>s({type:5,element:e}))}),m);(0,a.useEffect)(()=>(s({type:3,panelId:o}),()=>{s({type:3,panelId:null})}),[o,s]);let g=(0,h.oJ)(),[x,I]=(0,v.Y)(r,d,null!==g?(g&h.ZM.Open)===h.ZM.Open:0===l.disclosureState),S=(0,p.x)({open:0===l.disclosureState,close:u}),P={ref:b,id:o,...(0,v.X)(I)},T=(0,y.L6)();return a.createElement(h.uu,null,a.createElement(w.Provider,{value:l.panelId},T({ourProps:P,theirProps:i,slot:S,defaultTag:"div",features:D,visible:x,name:"Disclosure.Panel"})))}),L=Object.assign(z,{Button:_,Panel:A})},49398:function(e,t,n){let o;n.d(t,{$v:function(){return _},Ee:function(){return B},Nt:function(){return L},Y:function(){return V},Y8:function(){return A}});var r=n(91604),i=n(80958),l=n(2784),s=n(52178),a=n(4459),u=n(31127),c=n(19120),d=n(18105),p=n(50224),f=n(251),v=n(84635),m=n(79278),h=n(5960),b=n(94992),g=n(7464),x=n(6656),I=n(39509),y=n(98237),E=n(39530),S=n(11038),P=n(39246),T=n(84282),O=n(66979),C=((o=C||{})[o.RegisterOption=0]="RegisterOption",o[o.UnregisterOption=1]="UnregisterOption",o);let R={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,x.z2)(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})}},M=(0,l.createContext)(null);function w(e){let t=(0,l.useContext)(M);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}M.displayName="RadioGroupDataContext";let k=(0,l.createContext)(null);function F(e){let t=(0,l.useContext)(k);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}function D(e,t){return(0,y.E)(t.type,R,e,t)}k.displayName="RadioGroupActionsContext";let z=(0,S.yV)(function(e,t){let n=(0,l.useId)(),o=(0,m.B)(),{id:r="headlessui-radiogroup-".concat(n),value:i,form:d,name:p,onChange:b,by:g,disabled:y=o||!1,defaultValue:C,tabIndex:R=0,...w}=e,F=(0,s.J)(g),[z,_]=(0,l.useReducer)(D,{options:[]}),A=z.options,[L,V]=(0,O.bE)(),[B,G]=(0,P.fw)(),N=(0,l.useRef)(null),H=(0,v.T)(N,t),j=(0,u.L)(C),[U,W]=(0,a.q)(i,b,j),K=(0,l.useMemo)(()=>A.find(e=>!e.propsRef.current.disabled),[A]),Z=(0,l.useMemo)(()=>A.some(e=>F(e.propsRef.current.value,U)),[A,U]),X=(0,c.z)(e=>{var t;if(y||F(e,U))return!1;let n=null==(t=A.find(t=>F(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==W||W(e),!0)}
1),q=(0,c.z)(e=>{if(!N.current)return;let t=A.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case T.R.Enter:(0,I.g)(e.currentTarget);break;case T.R.ArrowLeft:case T.R.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,x.jA)(t,x.TO.Previous|x.TO.WrapAround)===x.fE.Success){let e=A.find(e=>(0,E.H9)(e.element.current));e&&X(e.propsRef.current.value)}break;case T.R.ArrowRight:case T.R.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,x.jA)(t,x.TO.Next|x.TO.WrapAround)===x.fE.Success){let e=A.find(e=>(0,E.H9)(e.element.current));e&&X(e.propsRef.current.value)}break;case T.R.Space:{e.preventDefault(),e.stopPropagation();let t=A.find(e=>(0,E.H9)(e.element.current));t&&X(t.propsRef.current.value)}}}),Y=(0,c.z)(e=>(_({type:0,...e}),()=>_({type:1,id:e.id}))),J=(0,l.useMemo)(()=>({value:U,firstOption:K,containsCheckedOption:Z,disabled:y,compare:F,tabIndex:R,...z}),[U,K,Z,y,F,R,z]),Q=(0,l.useMemo)(()=>({registerOption:Y,change:X}),[Y,X]),$=(0,f.x)({value:U}),ee=(0,l.useCallback)(()=>{if(void 0!==j)return X(j)},[X,j]),et=(0,S.L6)();return l.createElement(G,{name:"RadioGroup.Description"},l.createElement(V,{name:"RadioGroup.Label"},l.createElement(k.Provider,{value:Q},l.createElement(M.Provider,{value:J},null!=p&&l.createElement(h.Mt,{disabled:y,data:{[p]:U||"on"},overrides:{type:"radio",checked:null!=U},form:d,onReset:ee}),et({ourProps:{ref:H,id:r,role:"radiogroup","aria-labelledby":L,"aria-describedby":B,onKeyDown:q},theirProps:w,slot:$,defaultTag:"div",name:"RadioGroup"})))))}),_=(0,S.yV)(function(e,t){var n;let o=w("RadioGroup.Option"),s=F("RadioGroup.Option"),a=(0,l.useId)(),{id:u="headlessui-radiogroup-option-".concat(a),value:m,disabled:h=o.disabled||!1,autoFocus:b=!1,...x}=e,I=(0,l.useRef)(null),y=(0,v.T)(I,t),[E,T]=(0,O.bE)(),[C,R]=(0,P.fw)(),M=(0,p.E)({value:m,disabled:h});(0,d.e)(()=>s.registerOption({id:u,element:I,propsRef:M}),[u,s,I,M]);let k=(0,c.z)(e=>{var t;if((0,g.P)(e.currentTarget))return e.preventDefault();s.change(m)&&(null==(t=I.current)||t.focus())}),D=(null==(n=o.firstOption)?void 0:n.id)===u,{isFocusVisible:z,focusProps:_}=(0,r.F)({autoFocus:b}),{isHovered:A,hoverProps:L}=(0,i.X)({isDisabled:h}),V=o.compare(o.value,m),B=(0,S.dG)({ref:y,id:u,role:"radio","aria-checked":V?"true":"false","aria-labelledby":E,"aria-describedby":C,"aria-disabled":!!h||void 0,tabIndex:h?-1:V||!o.containsCheckedOption&&D?o.tabIndex:-1,onClick:h?void 0:k,autoFocus:b},_,L),G=(0,f.x)({checked:V,disabled:h,active:z,hover:A,focus:z,autofocus:b}),N=(0,S.L6)();return l.createElement(R,{name:"RadioGroup.Description"},l.createElement(T,{name:"RadioGroup.Label"},N({ourProps:B,theirProps:x,slot:G,defaultTag:"div",name:"RadioGroup.Option"})))}),A=(0,S.yV)(function(e,t){var n;let o=w("Radio"),s=F("Radio"),a=(0,l.useId)(),u=(0,b.Q)(),h=(0,m.B)(),{id:x=u||"headlessui-radio-".concat(a),value:I,disabled:y=o.disabled||h||!1,autoFocus:E=!1,...T}=e,C=(0,l.useRef)(null),R=(0,v.T)(C,t),M=(0,O.wp)(),k=(0,P.zH)(),D=(0,p.E)({value:I,disabled:y});(0,d.e)(()=>s.registerOption({id:x,element:C,propsRef:D}),[x,s,C,D]);let z=(0,c.z)(e=>{var t;if((0,g.P)(e.currentTarget))return e.preventDefault();s.change(I)&&(null==(t=C.current)||t.focus())}),{isFocusVisible:_,focusProps:A}=(0,r.F)({autoFocus:E}),{isHovered:L,hoverProps:V}=(0,i.X)({isDisabled:y}),B=(null==(n=o.firstOption)?void 0:n.id)===x,G=o.compare(o.value,I),N=(0,S.dG)({ref:R,id:x,role:"radio","aria-checked":G?"true":"false","aria-labelledby":M,"aria-describedby":k,"aria-disabled":!!y||void 0,tabIndex:y?-1:G||!o.containsCheckedOption&&B?o.tabIndex:-1,autoFocus:E,onClick:y?void 0:z},A,V),H=(0,f.x)({checked:G,disabled:y,hover:L,focus:_,autofocus:E});return(0,S.L6)()({ourProps:N,theirProps:T,slot:H,defaultTag:"span",name:"Radio"})}),L=O.__,V=P.dk,B=Object.assign(z,{Option:_,Radio:A,Label:L,Description:V})},79479:function(e,t,n){n.d(t,{$A:function(){return R},Mv:function(){return C},Zm:function(){return M},rs:function(){return w}});var o=n(91604),r=n(80958),i=n(2784),l=n(5207),s=n(4459),a=n(31127),u=n(64706),c=n(19120),d=n(91122),p=n(251),f=n(84635),v=n(79278),m=n(5960),h=n(94992),b=n(7464),g=n(91568),x=n(39509),I=n(11038),y=n(39246),E=n(84282),S=n(66979);let P=(0,i.createContext)(null);P.displayName="GroupContext";let T=i.Fragment,O=(0,I.yV)(function(e,t){var n;let g=(0,i.useId)(),T=(0,h.Q)(),O=(0,v.B)(),{id:C=T||"headlessui-switch-".concat(g),disabled:R=O||!1,checked:M,defaultChecked:w,onChange:k,name:F,value:D,form:z,autoF
1ocus:_=!1,...A}=e,L=(0,i.useContext)(P),[V,B]=(0,i.useState)(null),G=(0,i.useRef)(null),N=(0,f.T)(G,t,null===L?null:L.setSwitch,B),H=(0,a.L)(w),[j,U]=(0,s.q)(M,k,null!=H&&H),W=(0,u.G)(),[K,Z]=(0,i.useState)(!1),X=(0,c.z)(()=>{Z(!0),null==U||U(!j),W.nextFrame(()=>{Z(!1)})}),q=(0,c.z)(e=>{if((0,b.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),X()}),Y=(0,c.z)(e=>{e.key===E.R.Space?(e.preventDefault(),X()):e.key===E.R.Enter&&(0,x.g)(e.currentTarget)}),J=(0,c.z)(e=>e.preventDefault()),Q=(0,S.wp)(),$=(0,y.zH)(),{isFocusVisible:ee,focusProps:et}=(0,o.F)({autoFocus:_}),{isHovered:en,hoverProps:eo}=(0,r.X)({isDisabled:R}),{pressed:er,pressProps:ei}=(0,l.x)({disabled:R}),el=(0,p.x)({checked:j,disabled:R,hover:en,focus:ee,active:er,autofocus:_,changing:K}),es=(0,I.dG)({id:C,ref:N,role:"switch",type:(0,d.f)(e,V),tabIndex:-1===e.tabIndex?0:null!=(n=e.tabIndex)?n:0,"aria-checked":j,"aria-labelledby":Q,"aria-describedby":$,disabled:R||void 0,autoFocus:_,onClick:q,onKeyUp:Y,onKeyPress:J},et,eo,ei),ea=(0,i.useCallback)(()=>{if(void 0!==H)return null==U?void 0:U(H)},[U,H]),eu=(0,I.L6)();return i.createElement(i.Fragment,null,null!=F&&i.createElement(m.Mt,{disabled:R,data:{[F]:D||"on"},overrides:{type:"checkbox",checked:j},form:z,onReset:ea}),eu({ourProps:es,theirProps:A,slot:el,defaultTag:"button",name:"Switch"}))}),C=function(e){var t;let[n,o]=(0,i.useState)(null),[r,l]=(0,S.bE)(),[s,a]=(0,y.fw)(),u=(0,i.useMemo)(()=>({switch:n,setSwitch:o}),[n,o]),c=(0,I.L6)();return i.createElement(a,{name:"Switch.Description",value:s},i.createElement(l,{name:"Switch.Label",value:r,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(g.dz(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},i.createElement(P.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:T,name:"Switch.Group"}))))},R=S.__,M=y.dk,w=Object.assign(O,{Group:C,Label:R,Description:M})},20315:function(e,t,n){let o,r,i,l,s,a,u,c,d,p,f,v;n.r(t),n.d(t,{Button:function(){return y},Checkbox:function(){return z},CloseButton:function(){return A},Combobox:function(){return e8},ComboboxButton:function(){return e6},ComboboxInput:function(){return e9},ComboboxLabel:function(){return e5},ComboboxOption:function(){return e3},ComboboxOptions:function(){return e4},DataInteractive:function(){return te},Description:function(){return k.dk},Dialog:function(){return tt.Vq},DialogBackdrop:function(){return tt.ZR},DialogDescription:function(){return tt.Be},DialogPanel:function(){return tt.EM},DialogTitle:function(){return tt.$N},Disclosure:function(){return tn.pJ},DisclosureButton:function(){return tn.lG},DisclosurePanel:function(){return tn.V2},Field:function(){return to},Fieldset:function(){return ti},FocusTrap:function(){return tl.i},FocusTrapFeatures:function(){return tl.v},Input:function(){return ts},Label:function(){return D.__},Legend:function(){return ta},Listbox:function(){return tu.Ri},ListboxButton:function(){return tu.Y4},ListboxLabel:function(){return tu.xX},ListboxOption:function(){return tu.wt},ListboxOptions:function(){return tu.O_},ListboxSelectedOption:function(){return tu.Xe},Menu:function(){return tD},MenuButton:function(){return tC},MenuHeading:function(){return tk},MenuItem:function(){return tM},MenuItems:function(){return tR},MenuSection:function(){return tw},MenuSeparator:function(){return tF},Popover:function(){return t9},PopoverBackdrop:function(){return t1},PopoverButton:function(){return t$},PopoverGroup:function(){return t6},PopoverOverlay:function(){return t0},PopoverPanel:function(){return t2},Portal:function(){return eF.h_},Radio:function(){return t5.Y8},RadioGroup:function(){return t5.Ee},RadioGroupDescription:function(){return t5.Y},RadioGroupLabel:function(){return t5.Nt},RadioGroupOption:function(){return t5.$v},Select:function(){return t4},Switch:function(){return t3.rs},SwitchDescription:function(){return t3.Zm},SwitchGroup:function(){return t3.Mv},SwitchLabel:function(){return t3.$A},Tab:function(){return nx},TabGroup:function(){return nm},TabList:function(){return nh},TabPanel:function(){return ng},TabPanels:function(){return nb},Textarea:function(){return nI},Transition:function(){return ny.u},TransitionChild:function(){return ny.x},useClose:function(){return _.$}});var m=n(91604),h=n(80958),b=n(5207),g=n(251),x=n(79278),I=n(11038);let y=(0,I.yV)(function(e,t){var n;let o=(0,x.B)(),{disabled:r=o||!1,autoFocus:i=!1,...l}=e,{isFocusVisible:s,focusProps:a}=(0,m.F)({autoFocus:i}),{isHovered:u,hoverProps:c}=(0,h.X)({isDisabled:r}),{pressed:d,pressProps:p}=(0,b.x)({disabled:r}),f=(0,I.dG)({ref:t,type:null!=(n=l.type)?n:"button",disabled:r||void 0,autoFocus:i},a,c,p),v=(0,g.x)({disabled:r,hover:u,focus:s,active:d,autofocus:i});return(0,I.L6)()({ourProps:f,theirProps:l,slot:v,defaultTag:"button",name:"Button"})});var E=n(2784),S=n(4459),P=n(31127),T=n(64706),O=n(19120),C=n(5960),R=n(94992),M=n(7464),w=n(39509),k=n(39246),F=n(84282),D=n(66979);let z=(0,I.yV)(function(e,t){let n=(0,E.useId)(),o=(0,R.Q)(),r=(0,x.B)(),{id:i=o||"headlessui-checkbox-".concat(n),disabled:l=r||!1,autoFocus:s=!1,checked:a,defaultChecked:u,onChange:c,name:d,value:p,form:f,indeterminate:v=!1,tabIndex:y=0,...z}
1=e,_=(0,P.L)(u),[A,L]=(0,S.q)(a,c,null!=_&&_),V=(0,D.wp)(),B=(0,k.zH)(),G=(0,T.G)(),[N,H]=(0,E.useState)(!1),j=(0,O.z)(()=>{H(!0),null==L||L(!A),G.nextFrame(()=>{H(!1)})}),U=(0,O.z)(e=>{if((0,M.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),j()}),W=(0,O.z)(e=>{e.key===F.R.Space?(e.preventDefault(),j()):e.key===F.R.Enter&&(0,w.g)(e.currentTarget)}),K=(0,O.z)(e=>e.preventDefault()),{isFocusVisible:Z,focusProps:X}=(0,m.F)({autoFocus:s}),{isHovered:q,hoverProps:Y}=(0,h.X)({isDisabled:l}),{pressed:J,pressProps:Q}=(0,b.x)({disabled:l}),$=(0,I.dG)({ref:t,id:i,role:"checkbox","aria-checked":v?"mixed":A?"true":"false","aria-labelledby":V,"aria-describedby":B,"aria-disabled":!!l||void 0,indeterminate:v?"true":void 0,tabIndex:l?void 0:y,onKeyUp:l?void 0:W,onKeyPress:l?void 0:K,onClick:l?void 0:U},X,Y,Q),ee=(0,g.x)({checked:A,disabled:l,hover:q,focus:Z,active:J,indeterminate:v,changing:N,autofocus:s}),et=(0,E.useCallback)(()=>{if(void 0!==_)return null==L?void 0:L(_)},[L,_]),en=(0,I.L6)();return E.createElement(E.Fragment,null,null!=d&&E.createElement(C.Mt,{disabled:l,data:{[d]:p||"on"},overrides:{type:"checkbox",checked:A},form:f,onReset:et}),en({ourProps:$,theirProps:z,slot:ee,defaultTag:"span",name:"Checkbox"}))});var _=n(26421);let A=(0,I.yV)(function(e,t){let n=(0,_.$)();return E.createElement(y,{ref:t,...(0,I.dG)({onClick:n},e)})});var L=n(28316);function V(e,t,n){let o,r=n.initialDeps??[];function i(){var i,l,s,a;let u,c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(u=Date.now());let d=e();if(!(d.length!==r.length||d.some((e,t)=>r[t]!==e)))return o;if(r=d,n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now()),o=t(...d),n.key&&(null==(s=n.debug)?void 0:s.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${r(t,5)} /${r(e,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(a=null==n?void 0:n.onChange)||a.call(n,o),o}return i.updateDeps=e=>{r=e},i}function B(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let G=(e,t)=>1>=Math.abs(e-t),N=(e,t,n)=>{let o;return function(...r){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,r),n)}},H=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},j=e=>e,U=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let e=t;e<=n;e++)o.push(e);return o},W=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let r=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(r(H(n)),!o.ResizeObserver)return()=>{};let i=new o.ResizeObserver(t=>{let o=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){r({width:t.inlineSize,height:t.blockSize});return}}r(H(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},K={passive:!0},Z="undefined"==typeof window||"onscrollend"in window,X=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let r=0,i=e.options.useScrollendEvent&&Z?()=>void 0:N(o,()=>{t(r,!1)},e.options.isScrollingResetDelay),l=o=>()=>{let{horizontal:l,isRtl:s}=e.options;r=l?n.scrollLeft*(s&&-1||1):n.scrollTop,i(),t(r,o)},s=l(!0),a=l(!1);a(),n.addEventListener("scroll",s,K);let u=e.options.useScrollendEvent&&Z;return u&&n.addEventListener("scrollend",a,K),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",a)}},q=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Y=(e,{adjustments:t=0,behavior:n},o)=>{var r,i;null==(i=null==(r=o.scrollElement)?void 0:r.scrollTo)||i.call(r,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class J{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>
vendor: 2,302 bytes, line 4
4{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:j,rangeExtractor:U,onChange:()=>{},measureElement:q,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=V(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let r=t-1;r>=0;r--){let t=e[r];if(n.has(t.lane))continue;let i=o.get(t.lane);if(null==i||t.end>i.end?o.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=V(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,o,r)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:r}),{key:!1}),this.getMeasurements=V(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:r},i)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,l);for(let r=l;r<e;r++){let e=o(r),l=1===this.options.lanes?s[r-1]:this.getFurthestMeasurement(s,r),a=l?l.end+this.options.gap:t+n,u=i.get(e),c="number"==typeof u?u:this.options.estimateSize(r),d=a+c,p=l?l.lane:r%this.options.lanes;s[r]={index:r,start:a,size:c,end:d,key:e,lane:p}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=V(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,o)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){let r=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:r};let i=Q(0,r,t=>e[t].start,n),l=i;if(1===o)for(;l<r&&e[l].end<n+t;)l++;else if(o>1){let s=Array(o).fill(0);for(;l<r&&s.some(e=>e<n+t);){let t=e[l];s[t.lane]=t.end,l++}let a=Array(o).fill(n+t);for(;i>=0&&a.some(e=>e>=n);){let t=e[i];a[t.lane]=t.start,i--}i=Math.max(0,i-i%o),l=Math.min(r,l+(o-1-l%o))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:o}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=V(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,o,r)=>null===o||null===r?[]:e({startIndex:o,endIndex:r,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),o=this.measurementsCache[n];if(!o)return;let r=o.key,i=this.elementsCache.get(r);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(r,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=V(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,r=e.length;o<r;o++){let r=t[e[o]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return B(t[Q(0,t.length-1,e=>B(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let o=this.getSize(),r=this.getScrollOffset();return"auto"===t&&(t=e>=r+o?"end":"start"),"center"===t?e+=(n-o)/2:"end"===t&&(e-=o),Math.max(Math.min(this.getTotalSize()-o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let o=this.getSize(),r=this.getScrollOffset();if("auto"===t){if(n.end>=r+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}}let i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let o=this.getOffsetForIndex(e,t);if(!o)return;let[r,i]=o;this._scrollToOffset(r,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let t=this.getOffsetForIndex(e,i);if(!t)return;let[o]=t;G(o,this.getScrollOffset())||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t;let n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),o=n.length-1;for(;o>=0&&e.some(e=>null===e);){let t=n[o];null===e[t.lane]&&(e[t.lane]=t.end),o--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let Q=(e,t,n,o)=>{for(;e<=t;){let r=(e+t)/2|0,i=n(r);if(i<o)e=r+1;else{if(!(i>o))return r;t=r-1}}return e>0?e-1:0},$="undefined"!=typeof document?E.useLayoutEffect:E.useEffect;var ee=n(52178),et=n(93183),en=n(80531),eo=n(79620),er=n(18105),ei=n(50224),el=n(40878),es=n(39826),ea=n(96792),eu=n(69352),ec=n(91568),ed=n(39530),ep=n(58972);function ef(e){let t=(0,E.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,ep.O)(e,"blur",e=>{let n=e.target;ec.LL(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,O.z)(()=>
4{if(!(0,ed.H9)(e)&&ec.LL(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var ev=n(91122),em=n(33977),eh=n(84635),eb=n(64221),eg=n(61503);function ex(e,t){let{container:n,accept:o,walk:r}=t,i=(0,E.useRef)(o),l=(0,E.useRef)(r);(0,E.useEffect)(()=>{i.current=o,l.current=r},[o,r]),(0,er.e)(()=>{if(!n||!e)return;let t=(0,ed.r3)(n);if(!t)return;let o=i.current,r=l.current,s=Object.assign(e=>o(e),{acceptNode:o}),a=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,s,!1);for(;a.nextNode();)r(a.currentNode)},[n,e,i,l])}var eI=n(87978),ey=n(69951),eE=n(95555),eS=n(52112),eP=n(60117),eT=n(44839),eO=n(12846),eC=n(67485),eR=n(78682),eM=n(98237),ew=n(40339),ek=n(76496),eF=n(82930),eD=n(58402),ez=n(21543),e_=n(6656),eA=Object.defineProperty,eL=(e,t,n)=>t in e?eA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eV=(e,t,n)=>(eL(e,"symbol"!=typeof t?t+"":t,n),n),eB=((o=eB||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),eG=((r=eG||{})[r.Single=0]="Single",r[r.Multi=1]="Multi",r),eN=((i=eN||{})[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i),eH=((l=eH||{})[l.OpenCombobox=0]="OpenCombobox",l[l.CloseCombobox=1]="CloseCombobox",l[l.GoToOption=2]="GoToOption",l[l.SetTyping=3]="SetTyping",l[l.RegisterOption=4]="RegisterOption",l[l.UnregisterOption=5]="UnregisterOption",l[l.DefaultToFirstOption=6]="DefaultToFirstOption",l[l.SetActivationTrigger=7]="SetActivationTrigger",l[l.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",l[l.SetInputElement=9]="SetInputElement",l[l.SetButtonElement=10]="SetButtonElement",l[l.SetOptionsElement=11]="SetOptionsElement",l[l.MarkInputAsMoved=12]="MarkInputAsMoved",l);function ej(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),r=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,e_.z2)(o,e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let eU={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?ez.On.Tracked((0,ez.kn)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:ez.On.Idle}}return{...e,comboboxState:0,inputPositionState:ez.On.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,r,i;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,i=t.focus===eC.T.Specific?t.idx:(0,eC.d)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,r;return null!=(r=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?r:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),l=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===i&&e.activationTrigger===l?e:{...e,activeOptionIndex:i,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=ej(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let s=t.focus===eC.T.Specific?t.idx:(0,eC.d)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:s,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,o,r,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,s=ej(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(r=(o=e.dataRef.current).isSelected)&&r.call(o,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(l));let a={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(
4a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=ej(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)=>{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 r=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);r=-1!==n?n:null}return{...e,activeOptionIndex:r,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:ez.On.Moved}};class eW extends eD.J{static new(e){var t;let{id:n,virtual:o=null,__demoMode:r=!1}=e;return new eW({id:n,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:o?{options:o.options,disabled:null!=(t=o.disabled)?t:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r,inputPositionState:ez.On.Idle})}reduce(e,t){return(0,eM.E)(t.type,eU,e,t)}constructor(e){super(e),eV(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:r}=this.state.dataRef.current;return(0,eM.E)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=r.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,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:eC.T.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),eV(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 r=this.selectors.activeOptionIndex(e);return null!==r&&(e.virtual?r===e.dataRef.current.calculateIndex(t):(null==(o=e.options[r])?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=eP.n.get(null);this.disposables.add(t.on(eP.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>
4{t.inputElement&&(e.dispose(),e.add((0,ez.hS)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}}var eK=n(24305);let eZ=(0,E.createContext)(null);function eX(e){let t=(0,E.useContext)(eZ);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eq),t}return t}function eq(e){let{id:t,virtual:n=null,__demoMode:o=!1}=e,r=(0,E.useMemo)(()=>eW.new({id:t,virtual:n,__demoMode:o}),[]);return(0,eK.L)(()=>r.dispose()),r}let eY=(0,E.createContext)(null);function eJ(e){let t=(0,E.useContext)(eY);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eJ),t}return t}eY.displayName="ComboboxDataContext";let eQ=(0,E.createContext)(null);function e$(e){let t=eX("VirtualProvider"),{options:n}=eJ("VirtualProvider").virtual,o=(0,eT.M)(t,e=>e.optionsElement),[r,i]=(0,E.useMemo)(()=>{if(!o)return[0,0];let e=window.getComputedStyle(o);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[o]),l=function(e){let t=E.useReducer(()=>({}),{})[1],n={...e,onChange:(n,o)=>{var r;o?(0,L.flushSync)(t):t(),null==(r=e.onChange)||r.call(e,n,o)}},[o]=E.useState(()=>new J(n));return o.setOptions(n),$(()=>o._didMount(),[]),$(()=>o._willUpdate()),o}({observeElementRect:W,observeElementOffset:X,scrollToFn:Y,enabled:0!==n.length,scrollPaddingStart:r,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[s,a]=(0,E.useState)(0);(0,er.e)(()=>{a(e=>e+1)},[n]);let u=l.getVirtualItems(),c=(0,eT.M)(t,e=>e.activationTrigger===eN.Pointer),d=(0,eT.M)(t,t.selectors.activeOptionIndex);return 0===u.length?null:E.createElement(eQ.Provider,{value:l},E.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(l.getTotalSize(),"px")},ref:e=>{e&&(c||null!==d&&n.length>d&&l.scrollToIndex(d))}},u.map(t=>{var o;return E.createElement(E.Fragment,{key:t.key},E.cloneElement(null==(o=e.children)?void 0:o.call(e,{...e.slot,option:n[t.index]}),{key:"".concat(s,"-").concat(t.key),"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(t.start,"px)"),overflowAnchor:"none"}}))})))}let e0=E.Fragment,e1=I.VN.RenderStrategy|I.VN.Static,e2=(0,I.yV)(function(e,t){let n=(0,E.useId)(),o=(0,x.B)(),{value:r,defaultValue:i,onChange:l,form:s,name:a,by:u,invalid:c=!1,disabled:d=o||!1,onClose:p,__demoMode:f=!1,multiple:v=!1,immediate:m=!1,virtual:h=null,nullable:b,...y}=e,T=(0,P.L)(i),[R=v?[]:void 0,M]=(0,S.q)(r,l,T),w=eq({id:n,virtual:h,__demoMode:f}),k=(0,E.useRef)({static:!1,hold:!1}),F=(0,ee.J)(u),z=(0,O.z)(e=>h?null===u?h.options.indexOf(e):h.options.findIndex(t=>F(t,e)):w.state.options.findIndex(t=>F(t.dataRef.current.value,e))),_=(0,E.useCallback)(e=>(0,eM.E)(V.mode,{[eG.Multi]:()=>R.some(t=>F(t,e)),[eG.Single]:()=>F(R,e)}),[R]),A=(0,eT.M)(w,e=>e.virtual),L=(0,O.z)(()=>null==p?void 0:p()),V=(0,E.useMemo)(()=>({__demoMode:f,immediate:m,optionsPropsRef:k,value:R,defaultValue:T,disabled:d,invalid:c,mode:v?eG.Multi:eG.Single,virtual:h?A:null,onChange:M,isSelected:_,calculateIndex:z,compare:F,onClose:L}),[f,m,k,R,T,d,c,v,h,A,M,_,z,F,L]);(0,er.e)(()=>{var e;h&&w.send({type:eH.UpdateVirtualConfiguration,options:h.options,disabled:null!=(e=h.disabled)?e:null})},[h,null==h?void 0:h.options,null==h?void 0:h.disabled]),(0,er.e)(()=>{w.state.dataRef.current=V},[V]);let[B,G,N,H]=(0,eT.M)(w,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),j=eP.n.get(null),U=(0,eT.M)(j,(0,E.useCallback)(e=>j.selectors.isTop(e,n),[j,n]));(0,es.O)(U,[G,N,H],()=>w.actions.closeCombobox());let W=(0,eT.M)(w,w.selectors.activeOptionIndex),K=(0,eT.M)(w,w.selectors.activeOption),Z=(0,g.x)({open:B===eB.Open,disabled:d,invalid:c,activeIndex:W,activeOption:K,value:R}),[X,q]=(0,D.bE)(),Y=(0,E.useCallback)(()=>{if(void 0!==T)return null==M?void 0:M(T)},[M,T]),J=(0,I.L6)();return E.createElement(q,{value:X,props:{htmlFor:null==N?void 0:N.id},slot:{open:B===eB.Open,disabled:d}},E.createElement(ey.HO,null,E.createElement(eY.Provider,{value:V},E.createElement(eZ.Provider,{value:w},E.createElement(eS.up,{value:(0,eM.E)(B,{[eB.Open]:eS.ZM.Open,[eB.Closed]:eS.ZM.Closed})},null!=a&&E.createElement(C.Mt,{disabled:d,data:null!=R?{[a]:R}:{},form:s,onReset:Y}),J({ourProps:null===t?{}:{ref:t},theirProps:y,slot:Z,defaultTag:e0,name:"Combobox"}))))))}),e6=(0,I.yV)(function(e,t){let n=eX("Combobox.Button"),o=eJ("Combobox.Button"),[r,i]=(0,E.useState)(null),l=(0,eh.T)(t,i,n.actions.setButtonElement),s=(0,E.useId)(),{id:a="headlessui-combobox-button-".concat(s),disabled:u=o.disabled||!1,autoFocus:c=!1,...d}=e,[p,f,v]=(0,eT.M)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),x=ef(f),y=p===eB.Open;(0,eu.G)(y,{trigger:r,action:(0,E.useCallback)(e=>{if(null!=r&&r.contains(e.target)||null!=f&&f.contains(e.target))return eu.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return ec.Re(t)?eu.a.Select(t):null!=v&&v.contains(e.target)?eu.a.Ignore:eu.a.Close},[r,f,v]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let S=(0,O.z)(e=>{switch(e.key){case F.R.Space:case F.R.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eB.Closed&&(0,L.flushSync)(()=>n.actions.openCombobox()),x();return;case F.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eB.Closed&&((0,L.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eC.T.First})),x();return;case F.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eB.Closed&&((0,L.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eC.T.Last})),x();return;case F.R.Escape:if(n.state.comboboxState!==eB.Open)return;e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,L.flushSync)(()=>n.actions.closeCombobox()),x();return;default:return}}),P=(0,en.a)(()=>{n.state.comboboxState===eB.Open?n.actions.closeCombobox():n.actions.openCombobox(),x()}),T=(0,D.wp)([a]),{isFocusVisible:C,focusProps:R}=(0,m.F)({autoFocus:c}),{isHovered:M,hoverProps:w}=(0,h.X)({isDisabled:u}),{pressed:k,pressProps:z}=(0,b.x)({disabled:u}),_=(0,g.x)({open:p===eB.Open,active:k||p===eB.Open,disabled:u,invalid:o.invalid,value:o.value,hover:M,focus:C}),A=(0,I.dG)({ref:l,id:a,type:(0,ev.f)(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==v?void 0:v.id,"aria-expanded":p===eB.Open,"aria-labelledby":T,disabled:u||void 0,autoFocus:c,onKeyDown:S},P,R,w,z);return(0,I.L6)()({ourProps:A,theirProps:d,slot:_,defaultTag:"button",name:"Combobox.Button"})}),e9=(0,I.yV)(function(e,t){var n,o;let r=eX("Combobox.Input"),i=eJ("Combobox.Input"),l=(0,E.useId)(),s=(0,R.Q)(),{id:a=s||"headlessui-combobox-input-".concat(l),onChange:u,displayValue:c,disabled:d=i.disabled||!1,autoFocus:p=!1,type:f="text",...v}=e,b=(0,E.useRef)(null),x=(0,eh.T)(b,t,(0,ey.AZ)(),r.actions.setInputElement),[y,S]=(0,eT.M)(r,e=>[e.comboboxState,e.isTyping]),P=(0,T.G)(),C=(0,O.z)(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:eC.T.Nothing})}),M=(0,E.useMemo)(()=>{var e;return"function"==typeof c&&void 0!==i.value?null!=(e=c(i.value))?e:"":"string"==typeof i.value?i.value:""},[i.value,c]);(0,eI.q)((e,t)=>
4{let[n,o]=e,[i,l]=t;if(r.state.isTyping)return;let s=b.current;s&&((l===eB.Open&&o===eB.Closed||n!==i)&&(s.value=n),requestAnimationFrame(()=>{if(r.state.isTyping||!s||(0,ed.H9)(s))return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[M,y,S]),(0,eI.q)((e,t)=>{let[n]=e,[o]=t;if(n===eB.Open&&o===eB.Closed){if(r.state.isTyping)return;let e=b.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,o,i):e.setSelectionRange(n,o)}},[y]);let w=(0,E.useRef)(!1),z=(0,O.z)(()=>{w.current=!0}),_=(0,O.z)(()=>{P.nextFrame(()=>{w.current=!1})}),A=(0,O.z)(e=>{switch(r.actions.setIsTyping(!0),e.key){case F.R.Enter:if(r.state.comboboxState!==eB.Open||w.current)return;if(e.preventDefault(),e.stopPropagation(),null===r.selectors.activeOptionIndex(r.state)){r.actions.closeCombobox();return}r.actions.selectActiveOption(),i.mode===eG.Single&&r.actions.closeCombobox();break;case F.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,eM.E)(r.state.comboboxState,{[eB.Open]:()=>r.actions.goToOption({focus:eC.T.Next}),[eB.Closed]:()=>r.actions.openCombobox()});case F.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,eM.E)(r.state.comboboxState,{[eB.Open]:()=>r.actions.goToOption({focus:eC.T.Previous}),[eB.Closed]:()=>{(0,L.flushSync)(()=>r.actions.openCombobox()),i.value||r.actions.goToOption({focus:eC.T.Last})}});case F.R.Home:if(r.state.comboboxState===eB.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eC.T.First});case F.R.PageUp:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eC.T.First});case F.R.End:if(r.state.comboboxState===eB.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eC.T.Last});case F.R.PageDown:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:eC.T.Last});case F.R.Escape:return r.state.comboboxState!==eB.Open?void 0:(e.preventDefault(),r.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===eG.Single&&null===i.value&&C(),r.actions.closeCombobox());case F.R.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==eB.Open)return;i.mode===eG.Single&&r.state.activationTrigger!==eN.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox()}}),V=(0,O.z)(e=>{null==u||u(e),i.mode===eG.Single&&""===e.target.value&&C(),r.actions.openCombobox()}),B=(0,O.z)(e=>{var t,n,o;let l=null!=(t=e.relatedTarget)?t:eO.m.find(t=>t!==e.currentTarget);if(!(null!=(n=r.state.optionsElement)&&n.contains(l))&&!(null!=(o=r.state.buttonElement)&&o.contains(l))&&r.state.comboboxState===eB.Open)return e.preventDefault(),i.mode===eG.Single&&null===i.value&&C(),r.actions.closeCombobox()}),G=(0,O.z)(e=>{var t,n,o;let l=null!=(t=e.relatedTarget)?t:eO.m.find(t=>t!==e.currentTarget);null!=(n=r.state.buttonElement)&&n.contains(l)||null!=(o=r.state.optionsElement)&&o.contains(l)||i.disabled||i.immediate&&r.state.comboboxState!==eB.Open&&P.microTask(()=>{(0,L.flushSync)(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(eN.Focus)})}),N=(0,D.wp)(),H=(0,k.zH)(),{isFocused:j,focusProps:U}=(0,m.F)({autoFocus:p}),{isHovered:W,hoverProps:K}=(0,h.X)({isDisabled:d}),Z=(0,eT.M)(r,e=>e.optionsElement),X=(0,g.x)({open:y===eB.Open,disabled:d,invalid:i.invalid,hover:W,focus:j,autofocus:p}),q=(0,I.dG)({ref:x,id:a,role:"combobox",type:f,"aria-controls":null==Z?void 0:Z.id,"aria-expanded":y===eB.Open,"aria-activedescendant":(0,eT.M)(r,r.selectors.activeDescendantId),"aria-labelledby":N,"aria-describedby":H,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==i.defaultValue?null==c?void 0:c(i.defaultValue):null)?o:i.defaultValue,disabled:d||void 0,autoFocus:p,onCompositionStart:z,onCompositionEnd:_,onKeyDown:A,onChange:V,onFocus:G,onBlur:B},U,K);return(0,I.L6)()({ourProps:q,theirProps:v,slot:X,defaultTag:"input",name:"Combobox.Input"})}),e5=D.__,e4=(0,I.yV)(function(e,t){var n,o,r;let i=(0,E.useId)(),{id:l="headlessui-combobox-options-".concat(i),hold:s=!1,anchor:a,portal:u=!1,modal:c=!0,transition:d=!1,...p}=e,f=eX("Combobox.Options"),v=eJ("Combobox.Options"),m=(0,ey.Vy)(a);m&&(u=!0);let[h,b]=(0,ey.ES)(m),[x,y]=(0,E.useState)(null),S=(0,ey.U8)(),P=(0,eh.T)(t,m?h:null,f.actions.setOptionsElement,y),[T,C,R,M,w]=(0,eT.M)(f,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),k=(0,ea.i)(C||R),F=(0,ea.i)(M),z=(0,eS.oJ)(),[_,A]=(0,eg.Y)(d,x,null!==z?(z&eS.ZM.Open)===eS.ZM.Open:T===eB.Open);(0,el.m)(_,C,f.actions.closeCombobox);let L=!v.__demoMode&&c&&T===eB.Open;(0,em.P)(L,F);let V=!v.__demoMode&&c&&T===eB.Open;(0,eo.s)(V,{allowed:(0,E.useCallback)(()=>[C,R,M],[C,R,M])});let B=!(0,eT.M)(f,f.selectors.didInputMove)&&_;(0,er.e)(()=>{var t;v.optionsPropsRef.current.static=null!=(t=e.static)&&t},[v.optionsPropsRef,e.static]),(0,er.e)(()=>{v.optionsPropsRef.current.hold=s},[v.optionsPropsRef,s]),ex(T===eB.Open,{container:M,accept:e=>
4"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let G=(0,D.wp)([null==R?void 0:R.id]),N=(0,g.x)({open:T===eB.Open,option:void 0}),H=(0,O.z)(()=>{f.actions.setActivationTrigger(eN.Pointer)}),j=(0,O.z)(e=>{e.preventDefault(),f.actions.setActivationTrigger(eN.Pointer)}),U=(0,I.dG)(m?S():{},{"aria-labelledby":G,role:"listbox","aria-multiselectable":v.mode===eG.Multi||void 0,id:l,ref:P,style:{...p.style,...b,"--input-width":(0,et.h)(_,C,!0).width,"--button-width":(0,et.h)(_,R,!0).width},onWheel:w===eN.Pointer?void 0:H,onMouseDown:j,...(0,eg.X)(A)}),W=_&&T===eB.Closed&&!e.static,K=(0,eE._)(W,null==(n=v.virtual)?void 0:n.options),Z=(0,eE._)(W,v.value),X=(0,E.useCallback)(e=>v.compare(Z,e),[v.compare,Z]),q=(0,E.useMemo)(()=>{if(!v.virtual)return v;if(void 0===K)throw Error("Missing `options` in virtual mode");return K!==v.virtual.options?{...v,virtual:{...v.virtual,options:K}}:v},[v,K,null==(o=v.virtual)?void 0:o.options]);v.virtual&&Object.assign(p,{children:E.createElement(eY.Provider,{value:q},E.createElement(e$,{slot:N},p.children))});let Y=(0,I.L6)(),J=(0,E.useMemo)(()=>v.mode===eG.Multi?v:{...v,isSelected:X},[v,X]);return E.createElement(eF.h_,{enabled:!!u&&(e.static||_),ownerDocument:k},E.createElement(eY.Provider,{value:J},Y({ourProps:U,theirProps:{...p,children:E.createElement(eE.F,{freeze:W},"function"==typeof p.children?null==(r=p.children)?void 0:r.call(p,N):p.children)},slot:N,defaultTag:"div",features:e1,visible:B,name:"Combobox.Options"}
4)))}),e3=(0,I.yV)(function(e,t){var n,o,r;let i=eJ("Combobox.Option"),l=eX("Combobox.Option"),s=(0,E.useId)(),{id:a="headlessui-combobox-option-".concat(s),value:u,disabled:c=null!=(r=null==(o=null==(n=i.virtual)?void 0:n.disabled)?void 0:o.call(n,u))&&r,order:d=null,...p}=e,[f]=(0,eT.M)(l,e=>[e.inputElement]),v=ef(f),m=(0,eT.M)(l,(0,E.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),h=i.isSelected(u),b=(0,E.useRef)(null),x=(0,ei.E)({disabled:c,value:u,domRef:b,order:d}),y=(0,E.useContext)(eQ),S=(0,eh.T)(t,b,y?y.measureElement:null),P=(0,O.z)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});(0,er.e)(()=>l.actions.registerOption(a,x),[x,a]);let T=(0,eT.M)(l,(0,E.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,er.e)(()=>{if(T)return(0,eR.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[T,b]);let C=(0,O.z)(e=>{e.preventDefault(),e.button===ek.t.Left&&(c||(P(),(0,ew.tq)()||requestAnimationFrame(()=>v()),i.mode===eG.Single&&l.actions.closeCombobox()))}),R=(0,O.z)(()=>
4{if(c)return l.actions.goToOption({focus:eC.T.Nothing});let e=i.calculateIndex(u);l.actions.goToOption({focus:eC.T.Specific,idx:e})}),M=(0,eb.g)(),w=(0,O.z)(e=>M.update(e)),k=(0,O.z)(e=>{if(!M.wasMoved(e)||c||m&&l.state.activationTrigger===eN.Pointer)return;let t=i.calculateIndex(u);l.actions.goToOption({focus:eC.T.Specific,idx:t},eN.Pointer)}),F=(0,O.z)(e=>{M.wasMoved(e)&&(c||m&&(i.optionsPropsRef.current.hold||l.state.activationTrigger===eN.Pointer&&l.actions.goToOption({focus:eC.T.Nothing})))}),D=(0,g.x)({active:m,focus:m,selected:h,disabled:c});return(0,I.L6)()({ourProps:{id:a,ref:S,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":h,disabled:void 0,onMouseDown:C,onFocus:R,onPointerEnter:w,onMouseEnter:w,onPointerMove:k,onMouseMove:k,onPointerLeave:F,onMouseLeave:F},theirProps:p,slot:D,defaultTag:"div",name:"Combobox.Option"})}),e8=Object.assign(e2,{Input:e9,Button:e6,Label:e5,Options:e4,Option:e3}),e7=E.Fragment,te=(0,I.yV)(function(e,t){let{...n}=e,{isFocusVisible:o,focusProps:r}=(0,m.F)(),{isHovered:i,hoverProps:l}=(0,h.X)({isDisabled:!1}),{pressed:s,pressProps:a}=(0,b.x)({disabled:!1}),u=(0,I.dG)({ref:t},r,l,a),c=(0,g.x)({hover:i,focus:o,active:s});return(0,I.L6)()({ourProps:u,theirProps:n,slot:c,defaultTag:e7,name:"DataInteractive"})});var tt=n(59775),tn=n(67615);let to=(0,I.yV)(function(e,t){let n="headlessui-control-".concat((0,E.useId)()),[o,r]=(0,D.bE)(),[i,l]=(0,k.fw)(),s=(0,x.B)(),{disabled:a=s||!1,...u}=e,c=(0,g.x)({disabled:a}),d=(0,I.L6)();return E.createElement(x.G,{value:a},E.createElement(r,{value:o},E.createElement(l,{value:i},E.createElement(R.v,{id:n},d({ourProps:{ref:t,disabled:a||void 0,"aria-disabled":a||void 0},theirProps:{...u,children:E.createElement(C.wR,null,"function"==typeof u.children?u.children(c):u.children)},slot:c,defaultTag:"div",name:"Field"})))))}),tr="fieldset",ti=(0,I.yV)(function(e,t){var n;let o=(0,x.B)(),{disabled:r=o||!1,...i}=e,[l,s]=function(e){let t="string"==typeof e?e:void 0,[n,o]=(0,E.useState)(t);return[null!=t?t:n,(0,E.useCallback)(e=>{t||ec.Re(e)&&o(e.tagName.toLowerCase())},[t])]}(null!=(n=e.as)?n:tr),a=(0,eh.T)(t,s),[u,c]=(0,D.bE)(),d=(0,g.x)({disabled:r}),p="fieldset"===l?{ref:a,"aria-labelledby":u,disabled:r||void 0}:{ref:a,role:"group","aria-labelledby":u,"aria-disabled":r||void 0},f=(0,I.L6)();return E.createElement(x.G,{value:r},E.createElement(c,null,f({ourProps:p,theirProps:i,slot:d,defaultTag:tr,name:"Fieldset"})))});var tl=n(60028);let ts=(0,I.yV)(function(e,t){let n=(0,E.useId)(),o=(0,R.Q)(),r=(0,x.B)(),{id:i=o||"headlessui-input-".concat(n),disabled:l=r||!1,autoFocus:s=!1,invalid:a=!1,...u}=e,c=(0,D.wp)(),d=(0,k.zH)(),{isFocused:p,focusProps:f}=(0,m.F)({autoFocus:s}),{isHovered:v,hoverProps:b}=(0,h.X)({isDisabled:l}),y=(0,I.dG)({ref:t,id:i,"aria-labelledby":c,"aria-describedby":d,"aria-invalid":a?"true":void 0,disabled:l||void 0,autoFocus:s},f,b),S=(0,g.x)({disabled:l,invalid:a,hover:v,focus:p,autofocus:s});return(0,I.L6)()({ourProps:y,theirProps:u,slot:S,defaultTag:"input",name:"Input"})}),ta=(0,I.yV)(function(e,t){return E.createElement(D.__,{as:"div",ref:t,...e})});var tu=n(7174),tc=n(65472),td=Object.defineProperty,tp=(e,t,n)=>t in e?td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tf=(e,t,n)=>(tp(e,"symbol"!=typeof t?t+"":t,n),n),tv=((s=tv||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),tm=((a=tm||{})[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a),th=((u=th||{})[u.OpenMenu=0]="OpenMenu",u[u.CloseMenu=1]="CloseMenu",u[u.GoToItem=2]="GoToItem",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterItems=5]="RegisterItems",u[u.UnregisterItems=6]="UnregisterItems",u[u.SetButtonElement=7]="SetButtonElement",u[u.SetItemsElement=8]="SetItemsElement",u[u.SortItems=9]="SortItems",u[u.MarkButtonAsMoved=10]="MarkButtonAsMoved",u);function tb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,o=(0,e_.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),r=n?o.indexOf(n):null;return -1===r&&(r=null),{items:o,activeItemIndex:r}}let tg={1(e){if(1===e.menuState)return e;let t=e.buttonElement?ez.On.Tracked((0,ez.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:eC.T.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:ez.On.Idle},2:(e,t)=>{var n,o,r,i,l;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===eC.T.Nothing)return{...s,activeItemIndex:null};if(t.focus===eC.T.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===eC.T.Previous){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,l=(0,eC.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.items[l].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...s,activeItemIndex:l}}}}else if(t.focus===eC.T.Next){let n=e.activeItemIndex;
4if(null!==n){let o=e.items[n].dataRef.current.domRef,r=(0,eC.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.items[r].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeItemIndex:r}}}}let a=tb(e),u=(0,eC.d)(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeItemIndex:u}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,o=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(o))&&!e.dataRef.current.disabled}),i=r?e.items.indexOf(r):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),o=e.activeItemIndex;return e.pendingFocus.focus!==eC.T.Nothing&&(o=(0,eC.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:o,pendingFocus:{focus:eC.T.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,o=[],r=new Set(t.items);for(let[e,t]of n.entries())if(r.has(t.id)&&(o.push(e),r.delete(t.id),0===r.size))break;if(o.length>0)for(let e of(n=n.slice(),o.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...tb(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ez.On.Moved}};class tx extends eD.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new tx({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:eC.T.Nothing},buttonPositionState:ez.On.Idle})}reduce(e,t){return(0,eM.E)(t.type,tg,e,t)}constructor(e){super(e),tf(this,"actions",{registerItem:(0,eD.dC)(()=>{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:5,items:e.splice(0)}))]}),unregisterItem:(0,eD.dC)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),tf(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,o=e.items;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeItemIndex,r=e.items;return null!==o&&(null==(n=r[o])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=eP.n.get(null);this.disposables.add(t.on(eP.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,ez.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}}let tI=(0,E.createContext)(null);function ty(e){let t=(0,E.useContext)(tI);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,tE),t}return t}function tE(e){let{id:t,__demoMode:n=!1}=e,o=(0,E.useMemo)(()=>tx.new({id:t,__demoMode:n}),[]);return(0,eK.L)(()=>o.dispose()),o}let tS=E.Fragment,tP=I.VN.RenderStrategy|I.VN.Static,tT=E.Fragment,tO=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{__demoMode:o=!1,...r}=e,i=tE({id:n,__demoMode:o}),[l,s,a]=(0,eT.M)(i,e=>[e.menuState,e.itemsElement,e.buttonElement]),u=(0,eh.T)(t),c=eP.n.get(null),d=(0,eT.M)(c,(0,E.useCallback)(e=>c.selectors.isTop(e,n),[c,n]));(0,es.O)(d,[a,s],(e,t)=>{var n;i.send({type:th.CloseMenu}),(0,e_.sP)(t,e_.tJ.Loose)||(e.preventDefault(),null==(n=i.state.buttonElement)||n.focus())});let p=(0,O.z)(()=>{i.send({type:th.CloseMenu})}),f=(0,g.x)({open:l===tv.Open,close:p}),v=(0,I.L6)();return E.createElement(ey.HO,null,E.createElement(tI.Provider,{value:i},E.createElement(eS.up,{value:(0,eM.E)(l,{[tv.Open]:eS.ZM.Open,[tv.Closed]:eS.ZM.Closed})},v({ourProps:{ref:u},theirProps:r,slot:f,defaultTag:tS,name:"Menu"}))))}),tC=(0,I.yV)(function(e,t){let n=ty("Menu.Button"),o=(0,E.useId)(),{id:r="headlessui-menu-button-".concat(o),disabled:i=!1,autoFocus:l=!1,...s}=e,a=(0,E.useRef)(null),u=(0,ey.L)(),c=(0,eh.T)(t,a,(0,ey.AZ)(),(0,O.z)(e=>n.send({type:th.SetButtonElement,element:e}))),d=(0,O.z)(e=>{switch(e.key){case F.R.Space:case F.R.Enter:case F.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:th.OpenMenu,focus:{focus:eC.T.First}});break;case F.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:th.OpenMenu,focus:{focus:eC.T.Last}})}}),p=(0,O.z)(e=>{e.key===F.R.Space&&e.preventDefault()}),[f,v,x]=(0,eT.M)(n,e=>[e.menuState,e.buttonElement,e.itemsElement]),y=f===tv.Open;(0,eu.G)(y,{trigger:v,action:(0,E.useCallback)(e=>{if(null!=v&&v.contains(e.target))return eu.a.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return ec.Re(t)?eu.a.Select(t):null!=x&&x.contains(e.target)?eu.a.Ignore:eu.a.Close},[v,x]),close:(0,E.useCallback)(()=>n.send({type:th.CloseMenu}),[]),select:(0,E.useCallback)(e=>e.click(),[])});let S=(0,en.a)(e=>{var t;i||(f===tv.Open?((0,L.flushSync)(()=>n.send({type:th.CloseMenu}
4)),null==(t=a.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:th.OpenMenu,focus:{focus:eC.T.Nothing},trigger:tm.Pointer})))}),{isFocusVisible:P,focusProps:T}=(0,m.F)({autoFocus:l}),{isHovered:C,hoverProps:R}=(0,h.X)({isDisabled:i}),{pressed:M,pressProps:w}=(0,b.x)({disabled:i}),k=(0,g.x)({open:f===tv.Open,active:M||f===tv.Open,disabled:i,hover:C,focus:P,autofocus:l}),D=(0,I.dG)(u(),{ref:c,id:r,type:(0,ev.f)(e,a.current),"aria-haspopup":"menu","aria-controls":null==x?void 0:x.id,"aria-expanded":f===tv.Open,disabled:i||void 0,autoFocus:l,onKeyDown:d,onKeyUp:p},S,T,R,w);return(0,I.L6)()({ourProps:D,theirProps:s,slot:k,defaultTag:"button",name:"Menu.Button"})}),tR=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{id:o="headlessui-menu-items-".concat(n),anchor:r,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,u=(0,ey.Vy)(r),c=ty("Menu.Items"),[d,p]=(0,ey.ES)(u),f=(0,ey.U8)(),[v,m]=(0,E.useState)(null),h=(0,eh.T)(t,u?d:null,(0,O.z)(e=>c.send({type:th.SetItemsElement,element:e})),m),[b,x]=(0,eT.M)(c,e=>[e.menuState,e.buttonElement]),y=(0,ea.i)(x),S=(0,ea.i)(v);u&&(i=!0);let P=(0,eS.oJ)(),[C,R]=(0,eg.Y)(s,v,null!==P?(P&eS.ZM.Open)===eS.ZM.Open:b===tv.Open);(0,el.m)(C,x,()=>{c.send({type:th.CloseMenu})});let M=(0,eT.M)(c,e=>e.__demoMode),w=!M&&l&&b===tv.Open;(0,em.P)(w,S);let k=!M&&l&&b===tv.Open;(0,eo.s)(k,{allowed:(0,E.useCallback)(()=>[x,v],[x,v])});let D=!(0,eT.M)(c,c.selectors.didButtonMove)&&C;(0,E.useEffect)(()=>{v&&b===tv.Open&&((0,ed.H9)(v)||v.focus({preventScroll:!0}))},[b,v]),ex(b===tv.Open,{container:v,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let z=(0,T.G)(),_=(0,O.z)(e=>{var t,n,o;switch(z.dispose(),e.key){case F.R.Space:if(""!==c.state.searchQuery)return e.preventDefault(),e.stopPropagation(),c.send({type:th.Search,value:e.key});case F.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==c.state.activeItemIndex){let{dataRef:e}=c.state.items[c.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}c.send({type:th.CloseMenu}),(0,e_.wI)(c.state.buttonElement);break;case F.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),c.send({type:th.GoToItem,focus:eC.T.Next});case F.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),c.send({type:th.GoToItem,focus:eC.T.Previous});case F.R.Home:case F.R.PageUp:return e.preventDefault(),e.stopPropagation(),c.send({type:th.GoToItem,focus:eC.T.First});case F.R.End:case F.R.PageDown:return e.preventDefault(),e.stopPropagation(),c.send({type:th.GoToItem,focus:eC.T.Last});case F.R.Escape:e.preventDefault(),e.stopPropagation(),(0,L.flushSync)(()=>c.send({type:th.CloseMenu})),null==(o=c.state.buttonElement)||o.focus({preventScroll:!0});break;case F.R.Tab:e.preventDefault(),e.stopPropagation(),(0,L.flushSync)(()=>c.send({type:th.CloseMenu})),(0,e_.EO)(c.state.buttonElement,e.shiftKey?e_.TO.Previous:e_.TO.Next);break;default:1===e.key.length&&(c.send({type:th.Search,value:e.key}),z.setTimeout(()=>c.send({type:th.ClearSearch}),350))}}),A=(0,O.z)(e=>{e.key===F.R.Space&&e.preventDefault()}),V=(0,g.x)({open:b===tv.Open}),B=(0,I.dG)(u?f():{},{"aria-activedescendant":(0,eT.M)(c,c.selectors.activeDescendantId),"aria-labelledby":(0,eT.M)(c,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:o,onKeyDown:_,onKeyUp:A,role:"menu",tabIndex:b===tv.Open?0:void 0,ref:h,style:{...a.style,...p,"--button-width":(0,et.h)(C,x,!0).width},...(0,eg.X)(R)}),G=(0,I.L6)();return E.createElement(eF.h_,{enabled:!!i&&(e.static||C),ownerDocument:y},G({ourProps:B,theirProps:a,slot:V,defaultTag:"div",features:tP,visible:D,name:"Menu.Items"}))}),tM=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{id:o="headlessui-menu-item-".concat(n),disabled:r=!1,...i}=e,l=ty("Menu.Item"),s=(0,eT.M)(l,e=>l.selectors.isActive(e,o)),a=(0,E.useRef)(null),u=(0,eh.T)(t,a),c=(0,eT.M)(l,e=>l.selectors.shouldScrollIntoView(e,o));(0,er.e)(()=>{if(c)return(0,eR.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=a.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[c,a]);let d=(0,tc.x)(a),p=(0,E.useRef)({disabled:r,domRef:a,get textValue(){return d()}});(0,er.e)(()=>{p.current.disabled=r},[p,r]),(0,er.e)(()=>(l.actions.registerItem(o,p),()=>l.actions.unregisterItem(o)),[p,o]);let f=(0,O.z)(()=>{l.send({type:th.CloseMenu})}),v=(0,O.z)(e=>{if(r)return e.preventDefault();l.send({type:th.CloseMenu}),(0,e_.wI)(l.state.buttonElement)}),m=(0,O.z)(()=>
4{if(r)return l.send({type:th.GoToItem,focus:eC.T.Nothing});l.send({type:th.GoToItem,focus:eC.T.Specific,id:o})}),h=(0,eb.g)(),b=(0,O.z)(e=>h.update(e)),x=(0,O.z)(e=>{h.wasMoved(e)&&(r||s||l.send({type:th.GoToItem,focus:eC.T.Specific,id:o,trigger:tm.Pointer}))}),y=(0,O.z)(e=>{h.wasMoved(e)&&(r||s&&l.state.activationTrigger===tm.Pointer&&l.send({type:th.GoToItem,focus:eC.T.Nothing}))}),[S,P]=(0,D.bE)(),[T,C]=(0,k.fw)(),R=(0,g.x)({active:s,focus:s,disabled:r,close:f}),M=(0,I.L6)();return E.createElement(P,null,E.createElement(C,null,M({ourProps:{id:o,ref:u,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-labelledby":S,"aria-describedby":T,disabled:void 0,onClick:v,onFocus:m,onPointerEnter:b,onMouseEnter:b,onPointerMove:x,onMouseMove:x,onPointerLeave:y,onMouseLeave:y},theirProps:i,slot:R,defaultTag:tT,name:"Menu.Item"})))}),tw=(0,I.yV)(function(e,t){let[n,o]=(0,D.bE)(),r=(0,I.L6)();return E.createElement(o,null,r({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),tk=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{id:o="headlessui-menu-heading-".concat(n),...r}=e,i=(0,D.t0)();(0,er.e)(()=>i.register(o),[o,i.register]);let l={id:o,ref:t,role:"presentation",...i.props};return(0,I.L6)()({ourProps:l,theirProps:r,slot:{},defaultTag:"header",name:"Menu.Heading"})}),tF=(0,I.yV)(function(e,t){return(0,I.L6)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})}),tD=Object.assign(tO,{Button:tC,Items:tR,Item:tM,Section:tw,Heading:tk,Separator:tF});var tz=n(29960),t_=n(99662),tA=n(15085),tL=Object.defineProperty,tV=(e,t,n)=>t in e?tL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tB=(e,t,n)=>(tV(e,"symbol"!=typeof t?t+"":t,n),n),tG=((c=tG||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),tN=((d=tN||{})[d.OpenPopover=0]="OpenPopover",d[d.ClosePopover=1]="ClosePopover",d[d.SetButton=2]="SetButton",d[d.SetButtonId=3]="SetButtonId",d[d.SetPanel=4]="SetPanel",d[d.SetPanelId=5]="SetPanelId",d);let tH={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
4e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class tj extends eD.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new tj({id:t,__demoMode:n,popoverState:n?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,eM.E)(t.type,tH,e,t)}constructor(e){super(e),tB(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?ec.Re(e)?e:"current"in e&&ec.Re(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),tB(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,ed.r3)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let o=(0,e_.GO)(n),r=o.indexOf(e.button),i=(r+o.length-1)%o.length,l=(r+1)%o.length,s=o[i],a=o[l];return!e.panel.contains(s)&&!e.panel.contains(a)}});{let e=this.state.id,t=eP.n.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}}let tU=(0,E.createContext)(null);function tW(e){let t=(0,E.useContext)(tU);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,tW),t}return t}let tK=(0,E.createContext)(null);function tZ(){return(0,E.useContext)(tK)}tK.displayName="PopoverGroupContext";let tX=(0,E.createContext)(null);tX.displayName="PopoverPanelContext";let tq=I.VN.RenderStrategy|I.VN.Static;function tY(e,t){let n=(0,E.useId)(),{id:o="headlessui-popover-backdrop-".concat(n),transition:r=!1,...i}=e,l=tW("Popover.Backdrop"),s=(0,eT.M)(l,(0,E.useCallback)(e=>e.popoverState,[])),[a,u]=(0,E.useState)(null),c=(0,eh.T)(t,u),d=(0,eS.oJ)(),[p,f]=(0,eg.Y)(r,a,null!==d?(d&eS.ZM.Open)===eS.ZM.Open:s===tG.Open),v=(0,O.z)(e=>{if((0,M.P)(e.currentTarget))return e.preventDefault();l.actions.close()}),m=(0,g.x)({open:s===tG.Open}),h={ref:c,id:o,"aria-hidden":!0,onClick:v,...(0,eg.X)(f)};return(0,I.L6)()({ourProps:h,theirProps:i,slot:m,defaultTag:"div",features:tq,visible:p,name:"Popover.Backdrop"})}let tJ=I.VN.RenderStrategy|I.VN.Static,tQ=(0,I.yV)(function(e,t){var n;let o=(0,E.useId)(),{__demoMode:r=!1,...i}=e,l=function(e){let{id:t,__demoMode:n=!1}=e,o=(0,E.useMemo)(()=>tj.new({id:t,__demoMode:n}),[]);return(0,eK.L)(()=>o.dispose()),o}({id:o,__demoMode:r}),s=(0,E.useRef)(null),a=(0,eh.T)(t,(0,eh.h)(e=>{s.current=e})),[u,c,d,p,f]=(0,eT.M)(l,(0,E.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),v=(0,ea.p)(null!=(n=s.current)?n:c),m=(0,ei.E)(p),h=(0,ei.E)(f),b=(0,E.useMemo)(()=>({buttonId:m,panelId:h,close:l.actions.close}),[m,h,l]),x=tZ(),y=null==x?void 0:x.registerPopover,S=(0,O.z)(()=>{var e,t;let n=(0,ed.vY)(null!=(e=s.current)?e:c);return null!=(t=null==x?void 0:x.isFocusWithinPopoverGroup())?t:n&&((null==c?void 0:c.contains(n))||(null==d?void 0:d.contains(n)))});(0,E.useEffect)(()=>null==y?void 0:y(b),[y,b]);let[P,T]=(0,eF.kF)(),C=(0,tz.H1)(c),R=(0,tz.vs)({mainTreeNode:C,portals:P,defaultContainers:[{get current(){return l.state.button}},{get current(){return l.state.panel}}]});(0,ep.O)(v,"focus",e=>{var t,n,o,r,i,s;e.target!==window&&ec.sP(e.target)&&l.state.popoverState===tG.Open&&(S()||l.state.button&&l.state.panel&&(R.contains(e.target)||null!=(n=null==(t=l.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(r=null==(o=l.state.afterPanelSentinel.current)?void 0:o.contains)&&r.call(o,e.target)||null!=(s=null==(i=l.state.afterButtonSentinel.current)?void 0:i.contains)&&s.call(i,e.target)||l.actions.close()))},!0);let M=u===tG.Open;(0,es.O)(M,R.resolveContainers,(e,t)=>{l.actions.close(),(0,e_.sP)(t,e_.tJ.Loose)||(e.preventDefault(),null==c||c.focus())});let w=(0,g.x)({open:u===tG.Open,close:l.actions.refocusableClose}),k=(0,eT.M)(l,(0,E.useCallback)(e=>(0,eM.E)(e.popoverState,{[tG.Open]:eS.ZM.Open,[tG.Closed]:eS.ZM.Closed}),[])),F=(0,I.L6)();return E.createElement(tz.Jl,{node:C},E.createElement(ey.HO,null,E.createElement(tX.Provider,{value:null},E.createElement(tU.Provider,{value:l},E.createElement(_.Z,{value:l.actions.refocusableClose},E.createElement(eS.up,{value:k},E.createElement(T,null,F({ourProps:{ref:a},theirProps:i,slot:w,defaultTag:"div",name:"Popover"}))))))))}),t$=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{id:o="headlessui-popover-button-".concat(n),disabled:r=!1,autoFocus:i=!1,...l}=e,s=tW("Popover.Button"),[a,u,c,d,p,f,v]=(0,eT.M)(s,(0,E.useCallback)(e=>[e.popoverState,s.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),x=(0,E.useRef)(null),y="headlessui-focus-sentinel-".concat((0,E.useId)()),S=tZ(),P=null==S?void 0:S.closeOthers,T=null!==(0,E.useContext)(tX);(0,E.useEffect)(()=>
4{if(!T)return s.actions.setButtonId(o),()=>s.actions.setButtonId(null)},[T,o,s]);let[C]=(0,E.useState)(()=>Symbol()),R=(0,eh.T)(x,t,(0,ey.AZ)(),(0,O.z)(e=>{if(!T){if(e)s.state.buttons.current.push(C);else{let e=s.state.buttons.current.indexOf(C);-1!==e&&s.state.buttons.current.splice(e,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&s.actions.setButton(e)}})),w=(0,eh.T)(x,t),k=(0,O.z)(e=>{var t,n,o;if(T){if(s.state.popoverState===tG.Closed)return;switch(e.key){case F.R.Space:case F.R.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),s.actions.close(),null==(o=s.state.button)||o.focus()}}else switch(e.key){case F.R.Space:case F.R.Enter:e.preventDefault(),e.stopPropagation(),s.state.popoverState===tG.Closed?(null==P||P(s.state.buttonId),s.actions.open()):s.actions.close();break;case F.R.Escape:if(s.state.popoverState!==tG.Open)return null==P?void 0:P(s.state.buttonId);if(!x.current)return;let r=(0,ed.vY)(x.current);if(r&&!x.current.contains(r))return;e.preventDefault(),e.stopPropagation(),s.actions.close()}}),D=(0,O.z)(e=>{T||e.key===F.R.Space&&e.preventDefault()}),z=(0,O.z)(e=>{var t,n;(0,M.P)(e.currentTarget)||r||(T?(s.actions.close(),null==(t=s.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),s.state.popoverState===tG.Closed?(null==P||P(s.state.buttonId),s.actions.open()):s.actions.close(),null==(n=s.state.button)||n.focus()))}),_=(0,O.z)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:A,focusProps:L}=(0,m.F)({autoFocus:i}),{isHovered:V,hoverProps:B}=(0,h.X)({isDisabled:r}),{pressed:G,pressProps:N}=(0,b.x)({disabled:r}),H=a===tG.Open,j=(0,g.x)({open:H,active:G||H,disabled:r,hover:V,focus:A,autofocus:i}),U=(0,ev.f)(e,c),W=T?(0,I.dG)({ref:w,type:U,onKeyDown:k,onClick:z,disabled:r||void 0,autoFocus:i},L,B,N):(0,I.dG)({ref:R,id:d,type:U,"aria-expanded":a===tG.Open,"aria-controls":p?f:void 0,disabled:r||void 0,autoFocus:i,onKeyDown:k,onKeyUp:D,onClick:z,onMouseDown:_},L,B,N),K=(0,t_.l)(),Z=(0,O.z)(()=>
4{if(!ec.Re(s.state.panel))return;let e=s.state.panel;(0,eM.E)(K.current,{[t_.N.Forwards]:()=>(0,e_.jA)(e,e_.TO.First),[t_.N.Backwards]:()=>(0,e_.jA)(e,e_.TO.Last)})===e_.fE.Error&&(0,e_.jA)((0,e_.GO)((0,ed.k3)(s.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,eM.E)(K.current,{[t_.N.Forwards]:e_.TO.Next,[t_.N.Backwards]:e_.TO.Previous}),{relativeTo:s.state.button})}),X=(0,I.L6)();return E.createElement(E.Fragment,null,X({ourProps:W,theirProps:l,slot:j,defaultTag:"button",name:"Popover.Button"}),H&&!T&&u&&E.createElement(tA._,{id:y,ref:v,features:tA.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Z}))}),t0=(0,I.yV)(tY),t1=(0,I.yV)(tY),t2=(0,I.yV)(function(e,t){let n=(0,E.useId)(),{id:o="headlessui-popover-panel-".concat(n),focus:r=!1,anchor:i,portal:l=!1,modal:s=!1,transition:a=!1,...u}=e,c=tW("Popover.Panel"),d=(0,eT.M)(c,c.selectors.isPortalled),[p,f,v,m,h]=(0,eT.M)(c,(0,E.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),b="headlessui-focus-sentinel-before-".concat(n),x="headlessui-focus-sentinel-after-".concat(n),y=(0,E.useRef)(null),S=(0,ey.Vy)(i),[P,T]=(0,ey.ES)(S),C=(0,ey.U8)();S&&(l=!0);let[R,M]=(0,E.useState)(null),w=(0,eh.T)(y,t,S?P:null,c.actions.setPanel,M),k=(0,ea.i)(f),D=(0,ea.i)(y.current);(0,er.e)(()=>(c.actions.setPanelId(o),()=>c.actions.setPanelId(null)),[o,c]);let z=(0,eS.oJ)(),[A,L]=(0,eg.Y)(a,R,null!==z?(z&eS.ZM.Open)===eS.ZM.Open:p===tG.Open);(0,el.m)(A,f,c.actions.close),(0,em.P)(!v&&s&&A,D);let V=(0,O.z)(e=>{var t;if(e.key===F.R.Escape){if(c.state.popoverState!==tG.Open||!y.current)return;let n=(0,ed.vY)(y.current);if(n&&!y.current.contains(n))return;e.preventDefault(),e.stopPropagation(),c.actions.close(),null==(t=c.state.button)||t.focus()}});(0,E.useEffect)(()=>{var t;e.static||p===tG.Closed&&(null==(t=e.unmount)||t)&&c.actions.setPanel(null)},[p,e.unmount,e.static,c]),(0,E.useEffect)(()=>{if(v||!r||p!==tG.Open||!y.current)return;let e=(0,ed.vY)(y.current);y.current.contains(e)||(0,e_.jA)(y.current,e_.TO.First)},[v,r,y.current,p]);let B=(0,g.x)({open:p===tG.Open,close:c.actions.refocusableClose}),G=(0,I.dG)(S?C():{},{ref:w,id:o,onKeyDown:V,onBlur:r&&p===tG.Open?e=>{var t,n,o,r,i;let l=e.relatedTarget;l&&y.current&&(null!=(t=y.current)&&t.contains(l)||(c.actions.close(),(null!=(o=null==(n=m.current)?void 0:n.contains)&&o.call(n,l)||null!=(i=null==(r=h.current)?void 0:r.contains)&&i.call(r,l))&&l.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...T,"--button-width":(0,et.h)(A,f,!0).width},...(0,eg.X)(L)}),N=(0,t_.l)(),H=(0,O.z)(()=>{let e=y.current;e&&(0,eM.E)(N.current,{[t_.N.Forwards]:()=>{var t;(0,e_.jA)(e,e_.TO.First)===e_.fE.Error&&(null==(t=c.state.afterPanelSentinel.current)||t.focus())},[t_.N.Backwards]:()=>{var e;null==(e=c.state.button)||e.focus({preventScroll:!0})}})}),j=(0,O.z)(()=>{let e=y.current;e&&(0,eM.E)(N.current,{[t_.N.Forwards]:()=>{var e;if(!c.state.button)return;let t=null!=(e=(0,ed.k3)(c.state.button))?e:document.body,n=(0,e_.GO)(t),o=n.indexOf(c.state.button),r=n.slice(0,o+1),i=[...n.slice(o+1),...r];for(let e of i.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=R&&R.contains(e)){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}(0,e_.jA)(i,e_.TO.First,{sorted:!1})},[t_.N.Backwards]:()=>{var t;(0,e_.jA)(e,e_.TO.Previous)===e_.fE.Error&&(null==(t=c.state.button)||t.focus())}})}),U=(0,I.L6)();return E.createElement(eS.uu,null,E.createElement(tX.Provider,{value:o},E.createElement(_.Z,{value:c.actions.refocusableClose},E.createElement(eF.h_,{enabled:!!l&&(e.static||A),ownerDocument:k},A&&d&&E.createElement(tA._,{id:b,ref:m,features:tA.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:H}),U({ourProps:G,theirProps:u,slot:B,defaultTag:"div",features:tJ,visible:A,name:"Popover.Panel"}),A&&d&&E.createElement(tA._,{id:x,ref:h,features:tA.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:j})))))}),t6=(0,I.yV)(function(e,t){let n=(0,E.useRef)(null),o=(0,eh.T)(n,t),[r,i]=(0,E.useState)([]),l=(0,O.z)(e=>{i(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),s=(0,O.z)(e=>(i(t=>[...t,e]),()=>l(e))),a=(0,O.z)(()=>{var e;let t=(0,ed.k3)(n.current);if(!t)return!1;
4let o=(0,ed.vY)(n.current);return!!(null!=(e=n.current)&&e.contains(o))||r.some(e=>{var n,r;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(o))||(null==(r=t.getElementById(e.panelId.current))?void 0:r.contains(o))})}),u=(0,O.z)(e=>{for(let t of r)t.buttonId.current!==e&&t.close()}),c=(0,E.useMemo)(()=>({registerPopover:s,unregisterPopover:l,isFocusWithinPopoverGroup:a,closeOthers:u}),[s,l,a,u]),d=(0,g.x)({}),p=(0,I.L6)();return E.createElement(tz.Jl,null,E.createElement(tK.Provider,{value:c},p({ourProps:{ref:o},theirProps:e,slot:d,defaultTag:"div",name:"Popover.Group"})))}),t9=Object.assign(tQ,{Button:t$,Backdrop:t1,Overlay:t0,Panel:t2,Group:t6});var t5=n(49398);let t4=(0,I.yV)(function(e,t){let n=(0,E.useId)(),o=(0,R.Q)(),r=(0,x.B)(),{id:i=o||"headlessui-select-".concat(n),disabled:l=r||!1,invalid:s=!1,autoFocus:a=!1,...u}=e,c=(0,D.wp)(),d=(0,k.zH)(),{isFocusVisible:p,focusProps:f}=(0,m.F)({autoFocus:a}),{isHovered:v,hoverProps:y}=(0,h.X)({isDisabled:l}),{pressed:S,pressProps:P}=(0,b.x)({disabled:l}),T=(0,I.dG)({ref:t,id:i,"aria-labelledby":c,"aria-describedby":d,"aria-invalid":s?"true":void 0,disabled:l||void 0,autoFocus:a},f,y,P),O=(0,g.x)({disabled:l,invalid:s,hover:v,focus:p,active:S,autofocus:a});return(0,I.L6)()({ourProps:T,theirProps:u,slot:O,defaultTag:"select",name:"Select"})});var t3=n(79479),t8=n(39537);function t7(e){let{onFocus:t}=e,[n,o]=(0,E.useState)(!0),r=(0,t8.t)();return n?E.createElement(tA._,{as:"button",type:"button",features:tA.x.Focusable,onFocus:e=>{e.preventDefault();let n,i=50;n=requestAnimationFrame(function e(){if(i--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!r.current)return;o(!1);return}n=requestAnimationFrame(e)})}}):null}var ne=n(90424);let nt=E.createContext(null);function nn(e){let{children:t}=e,n=E.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 r=null!=(n=o.get(t))?n:0;return o.set(t,r+1),[Array.from(o.keys()).indexOf(t),function(){let e=o.get(t);e>1?o.set(t,e-1):o.delete(t)}]}});return E.createElement(nt.Provider,{value:n},t)}function no(e){let t=E.useContext(nt);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=E.useId(),[o,r]=t.current.get(e,n);return E.useEffect(()=>r,[]),o}var nr=((p=nr||{})[p.Forwards=0]="Forwards",p[p.Backwards=1]="Backwards",p),ni=((f=ni||{})[f.Less=-1]="Less",f[f.Equal=0]="Equal",f[f.Greater=1]="Greater",f),nl=((v=nl||{})[v.SetSelectedIndex=0]="SetSelectedIndex",v[v.RegisterTab=1]="RegisterTab",v[v.UnregisterTab=2]="UnregisterTab",v[v.RegisterPanel=3]="RegisterPanel",v[v.UnregisterPanel=4]="UnregisterPanel",v);let ns={0(e,t){var n;let o=(0,e_.z2)(e.tabs,e=>e.current),r=(0,e_.z2)(e.panels,e=>e.current),i=o.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),l={...e,tabs:o,panels:r};if(t.index<0||t.index>o.length-1){let n=(0,eM.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,eM.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return l;let r=(0,eM.E)(n,{0:()=>o.indexOf(i[0]),1:()=>o.indexOf(i[i.length-1])});return{...l,selectedIndex:-1===r?e.selectedIndex:r}}let s=o.slice(0,t.index),a=[...o.slice(t.index),...s].find(e=>i.includes(e));if(!a)return l;let u=null!=(n=o.indexOf(a))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...l,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],o=(0,e_.z2)([...e.tabs,t.tab],e=>e.current),r=e.selectedIndex;return e.info.current.isControlled||-1===(r=o.indexOf(n))&&(r=e.selectedIndex),{...e,tabs:o,selectedIndex:r}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,e_.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},na=(0,E.createContext)(null);function nu(e){let t=(0,E.useContext)(na);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,nu),t}return t}na.displayName="TabsDataContext";let nc=(0,E.createContext)(null);
4function nd(e){let t=(0,E.useContext)(nc);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,nd),t}return t}function np(e,t){return(0,eM.E)(t.type,ns,e,t)}nc.displayName="TabsActionsContext";let nf=I.VN.RenderStrategy|I.VN.Static,nv=(0,I.yV)(function(e,t){var n,o;let r=(0,E.useId)(),{id:i="headlessui-tabs-tab-".concat(r),disabled:l=!1,autoFocus:s=!1,...a}=e,{orientation:u,activation:c,selectedIndex:d,tabs:p,panels:f}=nu("Tab"),v=nd("Tab"),x=nu("Tab"),[y,S]=(0,E.useState)(null),P=(0,E.useRef)(null),T=(0,eh.T)(P,t,S);(0,er.e)(()=>v.registerTab(P),[v,P]);let C=no("tabs"),R=p.indexOf(P);-1===R&&(R=C);let M=R===d,w=(0,O.z)(e=>{let t=e();if(t===e_.fE.Success&&"auto"===c){let e=(0,ed.vY)(P.current),t=x.tabs.findIndex(t=>t.current===e);-1!==t&&v.change(t)}return t}),k=(0,O.z)(e=>{let t=p.map(e=>e.current).filter(Boolean);if(e.key===F.R.Space||e.key===F.R.Enter){e.preventDefault(),e.stopPropagation(),v.change(R);return}switch(e.key){case F.R.Home:case F.R.PageUp:return e.preventDefault(),e.stopPropagation(),w(()=>(0,e_.jA)(t,e_.TO.First));case F.R.End:case F.R.PageDown:return e.preventDefault(),e.stopPropagation(),w(()=>(0,e_.jA)(t,e_.TO.Last))}if(w(()=>(0,eM.E)(u,{vertical:()=>e.key===F.R.ArrowUp?(0,e_.jA)(t,e_.TO.Previous|e_.TO.WrapAround):e.key===F.R.ArrowDown?(0,e_.jA)(t,e_.TO.Next|e_.TO.WrapAround):e_.fE.Error,horizontal:()=>e.key===F.R.ArrowLeft?(0,e_.jA)(t,e_.TO.Previous|e_.TO.WrapAround):e.key===F.R.ArrowRight?(0,e_.jA)(t,e_.TO.Next|e_.TO.WrapAround):e_.fE.Error}))===e_.fE.Success)return e.preventDefault()}),D=(0,E.useRef)(!1),z=(0,O.z)(()=>{var e;D.current||(D.current=!0,null==(e=P.current)||e.focus({preventScroll:!0}),v.change(R),(0,ne.Y)(()=>{D.current=!1}))}),_=(0,O.z)(e=>{e.preventDefault()}),{isFocusVisible:A,focusProps:L}=(0,m.F)({autoFocus:s}),{isHovered:V,hoverProps:B}=(0,h.X)({isDisabled:l}),{pressed:G,pressProps:N}=(0,b.x)({disabled:l}),H=(0,g.x)({selected:M,hover:V,active:G,focus:A,autofocus:s,disabled:l}),j=(0,I.dG)({ref:T,onKeyDown:k,onMouseDown:_,onClick:z,id:i,role:"tab",type:(0,ev.f)(e,y),"aria-controls":null==(o=null==(n=f[R])?void 0:n.current)?void 0:o.id,"aria-selected":M,tabIndex:M?0:-1,disabled:l||void 0,autoFocus:s},L,B,N);return(0,I.L6)()({ourProps:j,theirProps:a,slot:H,defaultTag:"button",name:"Tabs.Tab"})}),nm=(0,I.yV)(function(e,t){let{defaultIndex:n=0,vertical:o=!1,manual:r=!1,onChange:i,selectedIndex:l=null,...s}=e,a=o?"vertical":"horizontal",u=r?"manual":"auto",c=null!==l,d=(0,ei.E)({isControlled:c}),p=(0,eh.T)(t),[f,v]=(0,E.useReducer)(np,{info:d,selectedIndex:null!=l?l:n,tabs:[],panels:[]}),m=(0,g.x)({selectedIndex:f.selectedIndex}),h=(0,ei.E)(i||(()=>{})),b=(0,ei.E)(f.tabs),x=(0,E.useMemo)(()=>({orientation:a,activation:u,...f}),[a,u,f]),y=(0,O.z)(e=>(v({type:1,tab:e}),()=>v({type:2,tab:e}))),S=(0,O.z)(e=>(v({type:3,panel:e}),()=>v({type:4,panel:e}))),P=(0,O.z)(e=>{T.current!==e&&h.current(e),c||v({type:0,index:e})}),T=(0,ei.E)(c?e.selectedIndex:f.selectedIndex),C=(0,E.useMemo)(()=>({registerTab:y,registerPanel:S,change:P}),[]);(0,er.e)(()=>{v({type:0,index:null!=l?l:n})},[l]),(0,er.e)(()=>{if(void 0===T.current||f.tabs.length<=0)return;let e=(0,e_.z2)(f.tabs,e=>e.current);e.some((e,t)=>f.tabs[t]!==e)&&P(e.indexOf(f.tabs[T.current]))});let R=(0,I.L6)();return E.createElement(nn,null,E.createElement(nc.Provider,{value:C},E.createElement(na.Provider,{value:x},x.tabs.length<=0&&E.createElement(t7,{onFocus:()=>{var e,t;for(let n of b.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),R({ourProps:{ref:p},theirProps:s,slot:m,defaultTag:"div",name:"Tabs"}))))}),nh=(0,I.yV)(function(e,t){let{orientation:n,selectedIndex:o}=nu("Tab.List"),r=(0,eh.T)(t),i=(0,g.x)({selectedIndex:o});return(0,I.L6)()({ourProps:{ref:r,role:"tablist","aria-orientation":n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.List"})}),nb=(0,I.yV)(function(e,t){let{selectedIndex:n}=nu("Tab.Panels"),o=(0,eh.T)(t),r=(0,g.x)({selectedIndex:n});return(0,I.L6)()({ourProps:{ref:o},theirProps:e,slot:r,defaultTag:"div",name:"Tabs.Panels"})}),ng=(0,I.yV)(function(e,t){var n,o,r,i;let l=(0,E.useId)(),{id:s="headlessui-tabs-panel-".concat(l),tabIndex:a=0,...u}=e,{selectedIndex:c,tabs:d,panels:p}=nu("Tab.Panel"),f=nd("Tab.Panel"),v=(0,E.useRef)(null),h=(0,eh.T)(v,t);(0,er.e)(()=>f.registerPanel(v),[f,v]);let b=no("panels"),x=p.indexOf(v);-1===x&&(x=b);let y=x===c,{isFocusVisible:S,focusProps:P}=(0,m.F)(),T=(0,g.x)({selected:y,focus:S}),O=(0,I.dG)({ref:h,id:s,role:"tabpanel","aria-labelledby":null==(o=null==(n=d[x])?void 0:n.current)?void 0:o.id,tabIndex:y?a:-1},P),C=(0,I.L6)();return y||null!=(r=u.unmount)&&!r||null!=(i=u.static)&&i?C({ourProps:O,theirProps:u,slot:T,defaultTag:"div",features:nf,visible:y,name:"Tabs.Panel"}):E.createElement(tA._,{"aria-hidden":"true",...O})}),nx=Object.assign(nv,{Group:nm,List:nh,Panels:nb,Panel:ng}),nI=(0,I.yV)(function(e,t){let n=(0,E.useId)(),o=(0,R.Q)(),r=(0,x.B)(),{id:i=o||"headlessui-textarea-".concat(n),disabled:l=r||!1,autoFocus:s=!1,invalid:a=!1,...u}=e,c=(0,D.wp)(),d=(0,k.zH)(),{isFocused:p,focusProps:f}=(0,m.F)({autoFocus:s}),{isHovered:v,hoverProps:b}=(0,h.X)({isDisabled:l}),y=(0,I.dG)({ref:t,id:i,"aria-labelledby":c,"aria-describedby":d,"aria-invalid":a?"true":void 0,disabled:l||void 0,autoFocus:s},f,b),S=(0,g.x)({disabled:l,invalid:a,hover:v,focus:p,autofocus:s});
4return(0,I.L6)()({ourProps:y,theirProps:u,slot:S,defaultTag:"textarea",name:"Textarea"})});var ny=n(52894)}}]);
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.