"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7176],{83184:function(e,t,n){n.d(t,{dk:function(){return d},fw:function(){return f},zH:function(){return s}});var r=n(2265),o=n(6584),u=n(61463),i=n(41469),l=n(83040),a=n(3600);let c=(0,r.createContext)(null);function s(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),u=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:u},e.children)},[t])]}c.displayName="DescriptionContext";let d=Object.assign((0,a.yV)(function(e,t){let n=(0,r.useId)(),o=(0,l.B)(),{id:s="headlessui-description-".concat(n),...f}=e,d=function e(){let t=(0,r.useContext)(c);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,i.T)(t);(0,u.e)(()=>d.register(s),[s,d.register]);let m=o||!1,h=(0,r.useMemo)(()=>({...d.slot,disabled:m}),[d.slot,m]),v={ref:p,...d.props,id:s};return(0,a.sY)({ourProps:v,theirProps:f,slot:h,defaultTag:"p",name:d.name||"Description"})}),{})},7551:function(e,t,n){let r;n.d(t,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},43003:function(e,t,n){n.d(t,{__:function(){return p},bE:function(){return d},wp:function(){return f}});var r=n(2265),o=n(6584),u=n(61463),i=n(41469),l=n(83040),a=n(21495),c=n(3600);let s=(0,r.createContext)(null);function f(e){var t,n,o;let u=null!=(n=null==(t=(0,r.useContext)(s))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[u,...e].filter(Boolean).join(" "):u}function d(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f(),[n,u]=(0,r.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o.z)(e=>(u(t=>[...t,e]),()=>u(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(s.Provider,{value:n},e.children)},[u])]}s.displayName="LabelContext";let p=Object.assign((0,c.yV)(function(e,t){var n;let f=(0,r.useId)(),d=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,a.Q)(),m=(0,l.B)(),{id:h="headlessui-label-".concat(f),htmlFor:v=null!=p?p:null==(n=d.props)?void 0:n.htmlFor,passive:g=!1,...y}=e,b=(0,i.T)(t);(0,u.e)(()=>d.register(h),[h,d.register]);let E=(0,o.z)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),d.props&&"onClick"in d.props&&"function"==typeof d.props.onClick&&d.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),A=m||!1,F=(0,r.useMemo)(()=>({...d.slot,disabled:A}),[d.slot,A]),w={ref:b,...d.props,id:h,htmlFor:v,onClick:E};return g&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in y&&delete y.onClick),(0,c.sY)({ourProps:w,theirProps:y,slot:F,defaultTag:v?"label":"div",name:d.name||"Label"})}),{})},91818:function(e,t,n){n.d(t,{J:function(){return u}});var r=n(2265);function o(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,r.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},93169:function(e,t,n){n.d(t,{q:function(){return u}});var r=n(2265),o=n(6584);function u(e,t,n){let[u,i]=(0,r.useState)(n),l=void 0!==e,a=(0,r.useRef)(l),c=(0,r.useRef)(!1),s=(0,r.useRef)(!1);return!l||a.current||c.current?l||!a.current||s.current||(s.current=!0,a.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,a.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:u,(0,o.z)(e=>(l||i(e),null==t?void 0:t(e)))]}},95839:function(e,t,n){n.d(t,{L:function(){return o}});var r=n(2265);function o(e){let[t]=(0,r.useState)(e);return t}},99299:function(e,t,n){n.d(t,{G:function(){return u}});var r=n(2265),o=n(70777);function u(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},6584:function(e,t,n){n.d(t,{z:function(){return u}});var r=n(2265),o=n(88703);let u=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},61463:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(2265),o=n(54462);let u=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},88703:function(e,t,n){n.d(t,{E:function(){return u}});var r=n(2265),o=n(61463);function u(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},41469:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(2265),o=n(6584);let u=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[u]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=(0,r.useRef)(t);(0,r.useEffect)(()=>{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[u]))?void 0:l}},83040:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(2265);let o=(0,r.createContext)(void 0);function u(){return(0,r.useContext)(o)}},82046:function(e,t,n){let r;n.d(t,{Mt:function(){return p}});var o=n(2265),u=n(54887),i=n(99299),l=n(69331),a=n(3600),c=((r=c||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let s=(0,a.yV)(function(e,t){var n;let{features:r=1,...o}=e,u={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,a.sY)({ourProps:u,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),f=(0,o.createContext)(null);function d(e){let{children:t}=e,n=(0,o.useContext)(f);if(!n)return o.createElement(o.Fragment,null,t);let{target:r}=n;return r?(0,u.createPortal)(o.createElement(o.Fragment,null,t),r):null}function p(e){let{data:t,form:n,disabled:r,onReset:u,overrides:f}=e,[p,h]=(0,o.useState)(null),v=(0,i.G)();return(0,o.useEffect)(()=>{if(u&&p)return v.addEventListener(p,"reset",u)},[p,n,u]),o.createElement(d,null,o.createElement(m,{setForm:h,formId:n}),(0,l.t)(t).map(e=>{let[t,u]=e;return o.createElement(s,{features:c.Hidden,...(0,a.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:u,...f})})}))}function m(e){let{setForm:t,formId:n}=e;return(0,o.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:o.createElement(s,{features:c.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},21495:function(e,t,n){n.d(t,{Q:function(){return u}});var r=n(2265);let o=(0,r.createContext)(void 0);function u(){return(0,r.useContext)(o)}},47986:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},12585:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},70777:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=setTimeout(...t);return n.add(()=>clearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let u={current:!0};return(0,r.Y)(()=>{u.current&&t[0]()}),n.add(()=>{u.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(28043)},54462:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){u(this,"current",this.detect()),u(this,"handoffState","pending"),u(this,"currentId",0)}}let l=new i},19309:function(e,t,n){let r,o,u,i,l;n.d(t,{EO:function(){return E},TO:function(){return d},fE:function(){return p},jA:function(){return A},sP:function(){return g},tJ:function(){return v},y:function(){return s},z2:function(){return b}});var a=n(5583),c=n(91498);let s=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),f=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r[r.AutoFocus=64]="AutoFocus",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),m=((u=m||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var v=((i=v||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,a.E)(n,{0:()=>e.matches(s),1(){let t=e;for(;null!==t;){if(t.matches(s))return!0;t=t.parentElement}return!1}})}var y=((l=y||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let u=r.compareDocumentPosition(o);return u&Node.DOCUMENT_POSITION_FOLLOWING?-1:u&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function E(e,t){return A(h(),t,{relativeTo:e})}function A(e,t){var n,r,o;let{sorted:u=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?u?b(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(f)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):h(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),i=null!=i?i:a.activeElement;let s=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},m=0,v=c.length,g;do{if(m>=v||m+v<=0)return 0;let e=d+m;if(16&t)e=(e+v)%v;else{if(e<0)return 3;if(e>=v)return 1}null==(g=c[e])||g.focus(p),m+=s}while(g!==a.activeElement);return 6&t&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},69331:function(e,t,n){function r(e,t){return e?e+"["+t+"]":t}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{g:function(){return o},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[u,i]of Object.entries(t))!function t(n,o,u){if(Array.isArray(u))for(let[e,i]of u.entries())t(n,r(o,e.toString()),i);else u instanceof Date?n.push([o,u.toISOString()]):"boolean"==typeof u?n.push([o,u?"1":"0"]):"string"==typeof u?n.push([o,u]):"number"==typeof u?n.push([o,"".concat(u)]):null==u?n.push([o,""]):e(u,o,n)}(o,r(n,u),i);return o}}})},5583:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),u=2;u<n;u++)o[u-2]=arguments[u];if(e in t){let n=t[e];return"function"==typeof n?n(...o):n}let i=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}},28043:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},91498:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(54462);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},3600:function(e,t,n){let r,o;n.d(t,{VN:function(){return a},Y2:function(){return d},dG:function(){return h},l4:function(){return c},oA:function(){return g},sY:function(){return s},yV:function(){return v}});var u=n(2265),i=n(12585),l=n(5583),a=((r=a||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function s(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:u,visible:i=!0,name:a,mergeRefs:c}=e;c=null!=c?c:p;let s=m(n,t);if(i)return f(s,r,o,a,c);let d=null!=u?u:0;if(2&d){let{static:e=!1,...t}=s;if(e)return f(t,r,o,a,c)}if(1&d){let{unmount:e=!0,...t}=s;return(0,l.E)(e?0:1,{0:()=>null,1:()=>f({...t,hidden:!0,style:{display:"none"}},r,o,a,c)})}return f(s,r,o,a,c)}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:a,refName:c="ref",...s}=y(e,["unmount","static"]),f=void 0!==e.ref?{[c]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(p["data-headlessui-state"]=n.join(" "),n))p["data-".concat(e)]=""}if(l===u.Fragment&&(Object.keys(g(s)).length>0||Object.keys(g(p)).length>0)){if(!(0,u.isValidElement)(d)||Array.isArray(d)&&d.length>1){if(Object.keys(g(s)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(g(s)).concat(Object.keys(g(p))).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"))}else{let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,i.A)(t(...n),s.className)}:(0,i.A)(t,s.className),r=m(d.props,g(y(s,["ref"])));for(let e in p)e in r&&delete p[e];return(0,u.cloneElement)(d,Object.assign({},r,p,f,{ref:o(d.ref,f.ref)},n?{className:n}:{}))}}return(0,u.createElement)(l,Object.assign({},y(s,["ref"]),l!==u.Fragment&&f,l!==u.Fragment&&p),d)}function d(){let e=(0,u.useRef)([]),t=(0,u.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(e=>null==e))return e.current=r,t}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])for(let e in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(o[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];for(let n of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];for(let e in o)Object.assign(r,{[e](){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let t of o[e])null==t||t(...n)}});return r}function v(e){var t;return Object.assign((0,u.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},13389:function(e,t,n){n.d(t,{F:function(){return l}});var r=n(95729),o=n(19747),u=n(8381),i=n(2265);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,a=(0,i.useRef)({isFocused:!1,isFocusVisible:t||(0,r.E)()}),[c,s]=(0,i.useState)(!1),[f,d]=(0,i.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),p=(0,i.useCallback)(()=>d(a.current.isFocused&&a.current.isFocusVisible),[]),m=(0,i.useCallback)(e=>{a.current.isFocused=e,s(e),p()},[p]);(0,r.mG)(e=>{a.current.isFocusVisible=e,p()},[],{isTextInput:n});let{focusProps:h}=(0,o.K)({isDisabled:l,onFocusChange:m}),{focusWithinProps:v}=(0,u.L)({isDisabled:!l,onFocusWithinChange:m});return{isFocused:c,isFocusVisible:f,focusProps:l?v:h}}}}]);