"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5066],{50294:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(8177),o=n.n(r)},88146:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(16340),o=n.n(r)},8177:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getImageProps:function(){return l}});let r=n(11926),o=n(83574),i=n(83950),u=r._(n(66192));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:u.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let a=i.Image},90142:function(e,t,n){n.d(t,{dk:function(){return f},fw:function(){return d},zH:function(){return c}});var r=n(7653),o=n(62125),i=n(11513),u=n(91335),l=n(77866),a=n(8840);let s=(0,r.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,r.useContext)(s))?void 0:e.value)?t:void 0}function d(){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}))),i=(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(s.Provider,{value:i},e.children)},[t])]}s.displayName="DescriptionContext";let f=Object.assign((0,a.yV)(function(e,t){let n=(0,r.useId)(),o=(0,l.B)(),{id:c="headlessui-description-".concat(n),...d}=e,f=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),v=(0,u.T)(t);(0,i.e)(()=>f.register(c),[c,f.register]);let p=o||!1,m=(0,r.useMemo)(()=>({...f.slot,disabled:p}),[f.slot,p]),h={ref:v,...f.props,id:c};return(0,a.sY)({ourProps:h,theirProps:d,slot:m,defaultTag:"p",name:f.name||"Description"})}),{})},85831: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)},97831:function(e,t,n){n.d(t,{h_:function(){return T},kF:function(){return y},wA:function(){return w}});var r=n(7653),o=n(3458),i=n(62125),u=n(11513),l=n(96938),a=n(74277),s=n(12357),c=n(91335),d=n(88205),f=n(85181),v=n(8840);let p=r.Fragment,m=(0,v.yV)(function(e,t){let n=(0,r.useRef)(null),i=(0,c.T)((0,c.h)(e=>{n.current=e}),t),m=(0,a.i)(n),h=function(e){let t=(0,d.n)(),n=(0,r.useContext)(g),o=(0,a.i)(e),[i,u]=(0,r.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(f.O.isServer)return null;let r=null==o?void 0:o.getElementById("headlessui-portal-root");if(r)return r;if(null===o)return null;let i=o.createElement("div");return i.setAttribute("id","headlessui-portal-root"),o.body.appendChild(i)});return(0,r.useEffect)(()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))},[i,o]),(0,r.useEffect)(()=>{t||null!==n&&u(n.current)},[n,u,t]),i}(n),[y]=(0,r.useState)(()=>{var e;return f.O.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),b=(0,r.useContext)(E),w=(0,s.H)();return(0,u.e)(()=>{!h||!y||h.contains(y)||(y.setAttribute("data-headlessui-portal",""),h.appendChild(y))},[h,y]),(0,u.e)(()=>{if(y&&b)return b.register(y)},[b,y]),(0,l.L)(()=>{var e;h&&y&&(y instanceof Node&&h.contains(y)&&h.removeChild(y),h.childNodes.length<=0&&(null==(e=h.parentElement)||e.removeChild(h)))}),w&&h&&y?(0,o.createPortal)((0,v.sY)({ourProps:{ref:i},theirProps:e,slot:{},defaultTag:p,name:"Portal"}),y):null}),h=r.Fragment,g=(0,r.createContext)(null),E=(0,r.createContext)(null);function y(){let e=(0,r.useContext)(E),t=(0,r.useRef)([]),n=(0,i.z)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,i.z)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),u=(0,r.useMemo)(()=>({register:n,unregister:o,portals:t}),[n,o,t]);return[t,(0,r.useMemo)(()=>function(e){let{children:t}=e;return r.createElement(E.Provider,{value:u},t)},[u])]}let b=(0,v.yV)(function(e,t){let n=(0,c.T)(t),{enabled:o=!0,...i}=e;return o?r.createElement(m,{...i,ref:n}):(0,v.sY)({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:p,name:"Portal"})}),w=(0,v.yV)(function(e,t){let{target:n,...o}=e,i={ref:(0,c.T)(t)};return r.createElement(g.Provider,{value:n},(0,v.sY)({ourProps:i,theirProps:o,defaultTag:h,name:"Popover.Group"}))}),T=Object.assign(b,{Group:w})},62142:function(e,t,n){n.d(t,{x:function(){return l}});var r=n(7653),o=n(36441),i=n(31240),u=n(62125);function l(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1),a=(0,i.G)(),s=(0,u.z)(()=>{t.current=null,l(!1),a.dispose()}),c=(0,u.z)(e=>{if(a.dispose(),null===t.current){t.current=e.currentTarget,l(!0);{let n=(0,o.r)(e.currentTarget);a.addEventListener(n,"pointerup",s,!1),a.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let o,i;l((o=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},r=t.current.getBoundingClientRect(),!(!n||!r||n.rightr.right||n.bottomr.bottom)))}},!1),a.addEventListener(n,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:s,onClick:s}}}},31240:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(7653),o=n(28177);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},62125:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(7653),o=n(65960);let i=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r(function(e){var t;let n=null!=(t=a.get(e))?t:1;if(1===n?a.delete(e):a.set(e,n-1),1!==n)return;let r=l.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,l.delete(e))})(e)}function c(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,i.g)(e,"inert-others");(0,u.e)(()=>{var e,i;if(!l)return;let u=(0,r.k)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&u.add(s(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let e of a){if(!e)continue;let t=(0,o.r)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some(t=>e.contains(t))||u.add(s(e));n=n.parentElement}}return u.dispose},[l,t,n])}},4193:function(e,t,n){n.d(t,{g:function(){return s}});var r=n(7653);class o extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}var i=n(22279),u=n(11513),l=n(11466);let a=new o(()=>(0,i.M)(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function s(e,t){let n=a.get(t),o=(0,r.useId)(),i=(0,l.o)(n);if((0,u.e)(()=>{if(e)return n.dispatch("ADD",o),()=>n.dispatch("REMOVE",o)},[n,e]),!e)return!1;let s=i.indexOf(o),c=i.length;return -1===s&&(s=c,c+=1),s===c-1}},11513:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(7653),o=n(85181);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},65960:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(7653),o=n(11513);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},15913:function(e,t,n){n.d(t,{m:function(){return u}});var r=n(7653),o=n(28177),i=n(65960);function u(e,t,n){let u=(0,i.E)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let r=(0,o.k)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>u.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>u.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,u,e])}},96938:function(e,t,n){n.d(t,{L:function(){return u}});var r=n(7653),o=n(51327),i=n(62125);function u(e){let t=(0,i.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},88909:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(7653),o=n(26959),i=n(50478),u=n(65960);function l(e,t,n,o){let i=(0,u.E)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){i.current(e)}},[e,t,o])}var a=n(4193),s=n(47874);function c(e,t,n){let c=(0,a.g)(e,"outside-click"),d=(0,u.E)(n),f=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,o.sP)(r,o.tJ.Loose)||-1===r.tabIndex||e.preventDefault(),d.current(e,r)}},[d,t]),v=(0,r.useRef)(null);l(c,"pointerdown",e=>{var t,n;v.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),l(c,"mousedown",e=>{var t,n;v.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),l(c,"click",e=>{(0,i.tq)()||v.current&&(f(e,()=>v.current),v.current=null)},!0);let p=(0,r.useRef)({x:0,y:0});l(c,"touchstart",e=>{p.current.x=e.touches[0].clientX,p.current.y=e.touches[0].clientY},!0),l(c,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-p.current.x)>=30||Math.abs(t.y-p.current.y)>=30))return f(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),(0,s.s)(c,"blur",e=>f(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},74277:function(e,t,n){n.d(t,{i:function(){return i}});var r=n(7653),o=n(36441);function i(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.r)(...t),[...t])}},56613:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(7653);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},41824:function(e,t,n){n.d(t,{P:function(){return c}});var r=n(11466),o=n(11513),i=n(28177),u=n(22279),l=n(50478);let a=(0,u.M)(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,i.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,u={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[(0,l.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,i.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,u=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(u=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),u&&u.isConnected&&(u.scrollIntoView({block:"nearest"}),u=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),u=Math.max(0,t-i);r.style(o,"paddingRight","".concat(u,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(u)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(u)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});a.subscribe(()=>{let e=a.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&a.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&a.dispatch("TEARDOWN",n)}});var s=n(4193);function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),i=(0,r.o)(a),u=t?i.get(t):void 0;u&&u.count,(0,o.e)(()=>{if(!(!t||!e))return a.dispatch("PUSH",t,n),()=>a.dispatch("POP",t,n)},[e,t])}((0,s.g)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},12357:function(e,t,n){n.d(t,{H:function(){return u}});var r,o=n(7653),i=n(85181);function u(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[u,l]=o.useState(i.O.isHandoffComplete);return u&&!1===i.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==u&&l(!0)},[u]),o.useEffect(()=>i.O.handoff(),[]),!t&&u}},11466:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(7653);function o(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},91335:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return u}});var r=n(7653),o=n(62125);let i=Symbol();function u(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{u.current=t},[t]);let l=(0,o.z)(e=>{for(let t of u.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:l}},27291:function(e,t,n){let r;n.d(t,{X:function(){return d},Y:function(){return f}});var o,i=n(7653),u=n(28177),l=n(31240),a=n(11513),s=n(68571);void 0!==s&&"undefined"!=typeof globalThis&&(null==(o=null==s?void 0:s.env)?void 0:o.NODE_ENV)==="test"&&void 0===Element.prototype.getAnimations&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var c=((r=c||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function d(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function f(e,t,n,r){let[o,s]=(0,i.useState)(n),{hasFlag:c,addFlag:d,removeFlag:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,i.useState)(e),r=(0,i.useCallback)(e=>n(e),[t]),o=(0,i.useCallback)(e=>n(t=>t|e),[t]),u=(0,i.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:u,removeFlag:(0,i.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,i.useCallback)(e=>n(t=>t^e),[n])}}(e&&o?3:0),v=(0,i.useRef)(!1),p=(0,i.useRef)(!1),m=(0,l.G)();return(0,a.e)(()=>{var o;if(e){if(n&&s(!0),!t){n&&d(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,t){let{prepare:n,run:r,done:o,inFlight:i}=t,l=(0,u.k)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:n,inFlight:i}),l.nextFrame(()=>{r(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,r;let o=(0,u.k)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,o))})}),l.dispose}(t,{inFlight:v,prepare(){p.current?p.current=!1:p.current=v.current,v.current=!0,p.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){p.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e;p.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(v.current=!1,f(7),n||s(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,m]),e?[o,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},47874:function(e,t,n){n.d(t,{s:function(){return i}});var r=n(7653),o=n(65960);function i(e,t,n,i){let u=(0,o.E)(n);(0,r.useEffect)(()=>{if(e)return window.addEventListener(t,n,i),()=>window.removeEventListener(t,n,i);function n(e){u.current(e)}},[e,t,i])}},77866:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(7653);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},62308:function(e,t,n){let r;n.d(t,{_:function(){return u},x:function(){return i}});var o=n(8840),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let u=(0,o.yV)(function(e,t){var n;let{features:r=1,...i}=e,u={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["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,o.sY)({ourProps:u,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},32586:function(e,t,n){let r;n.d(t,{ZM:function(){return u},oJ:function(){return l},up:function(){return a},uu:function(){return s}});var o=n(7653);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var u=((r=u||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(i)}function a(e){let{value:t,children:n}=e;return o.createElement(i.Provider,{value:t},n)}function s(e){let{children:t}=e;return o.createElement(i.Provider,{value:null},t)}},88205:function(e,t,n){n.d(t,{O:function(){return u},n:function(){return i}});var r=n(7653);let o=(0,r.createContext)(!1);function i(){return(0,r.useContext)(o)}function u(e){return r.createElement(o.Provider,{value:e.force},e.children)}},27345: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}})},49336:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},28177: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;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{i.current&&t[0]()}),n.add(()=>{i.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(51327)},85181: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,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class u{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(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let l=new u},26959:function(e,t,n){let r,o,i,u,l;n.d(t,{C5:function(){return y},EO:function(){return w},TO:function(){return f},fE:function(){return v},jA:function(){return T},sP:function(){return g},tJ:function(){return h},y:function(){return c},z2:function(){return b}});var a=n(87295),s=n(36441);let c=["[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(","),d=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[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),v=((o=v||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),p=((i=p||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=((u=h||{})[u.Strict=0]="Strict",u[u.Loose=1]="Loose",u);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,s.r)(e))?void 0:t.body)&&(0,a.E)(n,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var E=((l=E||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function y(e){null==e||e.focus({preventScroll:!0})}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 i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(e,t){return T(m(),t,{relativeTo:e})}function T(e,t){var n,r,o;let{sorted:i=!0,relativeTo:u=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,s=Array.isArray(e)?i?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(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):m(e);l.length>0&&s.length>1&&(s=s.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),u=null!=u?u:a.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(u))-1;if(4&t)return Math.max(0,s.indexOf(u))+1;if(8&t)return s.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),v=32&t?{preventScroll:!0}:{},p=0,h=s.length,g;do{if(p>=h||p+h<=0)return 0;let e=f+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(g=s[e])||g.focus(v),p+=c}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))},87295: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),i=2;i'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(u,r),u}},51327: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}))}},36441:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(85181);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}},50478:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},8840:function(e,t,n){let r,o;n.d(t,{VN:function(){return a},Y2:function(){return f},dG:function(){return m},l4:function(){return s},oA:function(){return g},sY:function(){return c},yV:function(){return h}});var i=n(7653),u=n(49336),l=n(87295),a=((r=a||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),s=((o=s||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:u=!0,name:a,mergeRefs:s}=e;s=null!=s?s:v;let c=p(n,t);if(u)return d(c,r,o,a,s);let f=null!=i?i:0;if(2&f){let{static:e=!1,...t}=c;if(e)return d(t,r,o,a,s)}if(1&f){let{unmount:e=!0,...t}=c;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,a,s)})}return d(c,r,o,a,s)}function d(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:s="ref",...c}=E(e,["unmount","static"]),d=void 0!==e.ref?{[s]:e.ref}:{},f="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let v={};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(v["data-headlessui-state"]=n.join(" "),n))v["data-".concat(e)]=""}if(l===i.Fragment&&(Object.keys(g(c)).length>0||Object.keys(g(v)).length>0)){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(g(c)).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(c)).concat(Object.keys(g(v))).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=f.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r{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;onull==e))return e.current=r,t}}function v(){for(var e=arguments.length,t=Array(e),n=0;nnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function p(){for(var e=arguments.length,t=Array(e),n=0;n{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),i=1;i1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},22279:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,i=Array(o>1?o-1:0),u=1;ue()))}}}},44915:function(e,t,n){function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{F:function(){return H}});let u=i(function(){return o(/^Mac/i)}),l=i(function(){return o(/^iPhone/i)}),a=i(function(){return o(/^iPad/i)||u()&&navigator.maxTouchPoints>1}),s=i(function(){return l()||a()});i(function(){return u()||s()}),i(function(){return r(/AppleWebKit/i)&&!c()});let c=i(function(){return r(/Chrome/i)}),d=i(function(){return r(/Android/i)});i(function(){return r(/Firefox/i)});let f=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},v=e=>e&&"window"in e&&e.window===e?e:f(e).defaultView||window;var p=n(7653);let m=null,h=new Set,g=new Map,E=!1,y=!1,b={Tab:!0,Escape:!0};function w(e,t){for(let n of h)n(e,t)}function T(e){E=!0,e.metaKey||!u()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(m="keyboard",w("keyboard",e))}function L(e){m="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(E=!0,w("pointer",e))}function P(e){(0===e.mozInputSource&&e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(E=!0,m="virtual")}function A(e){e.target!==window&&e.target!==document&&(E||y||(m="virtual",w("virtual",e)),E=!1,y=!1)}function F(){E=!1,y=!0}function S(e){if("undefined"==typeof window||g.get(v(e)))return;let t=v(e),n=f(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){E=!0,r.apply(this,arguments)},n.addEventListener("keydown",T,!0),n.addEventListener("keyup",T,!0),n.addEventListener("click",P,!0),t.addEventListener("focus",A,!0),t.addEventListener("blur",F,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",L,!0),n.addEventListener("pointermove",L,!0),n.addEventListener("pointerup",L,!0)):(n.addEventListener("mousedown",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("mouseup",L,!0)),t.addEventListener("beforeunload",()=>{O(e)},{once:!0}),g.set(t,{focus:r})}let O=(e,t)=>{let n=v(e),r=f(e);t&&r.removeEventListener("DOMContentLoaded",t),g.has(n)&&(n.HTMLElement.prototype.focus=g.get(n).focus,r.removeEventListener("keydown",T,!0),r.removeEventListener("keyup",T,!0),r.removeEventListener("click",P,!0),n.removeEventListener("focus",A,!0),n.removeEventListener("blur",F,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",L,!0),r.removeEventListener("pointermove",L,!0),r.removeEventListener("pointerup",L,!0)):(r.removeEventListener("mousedown",L,!0),r.removeEventListener("mousemove",L,!0),r.removeEventListener("mouseup",L,!0)),g.delete(n))};function C(){return"pointer"!==m}"undefined"!=typeof document&&function(e){let t;let n=f(void 0);"loading"!==n.readyState?S(void 0):(t=()=>{S(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>O(e,t)}();let M=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),k="undefined"!=typeof document?p.useLayoutEffect:()=>{};class x{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function N(e){let t=(0,p.useRef)({isFocused:!1,observer:null});k(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,p.useRef)(null);return k(()=>{t.current=e},[e]),(0,p.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,p.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new x("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function H(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:i,within:u}=e,l=(0,p.useRef)({isFocused:!1,isFocusVisible:o||C()}),[a,s]=(0,p.useState)(!1),[c,d]=(0,p.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),m=(0,p.useCallback)(()=>d(l.current.isFocused&&l.current.isFocusVisible),[]),g=(0,p.useCallback)(e=>{l.current.isFocused=e,s(e),m()},[m]);t=e=>{l.current.isFocusVisible=e,m()},n=[],r={isTextInput:i},S(),(0,p.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){var r;let o="undefined"!=typeof window?v(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?v(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u="undefined"!=typeof window?v(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?v(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!M.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof u&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!b[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(C())};return h.add(e),()=>{h.delete(e)}},n);let{focusProps:E}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,p.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),u=N(i),l=(0,p.useCallback)(e=>{let t=f(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),u(e))},[o,n,u]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:u,onFocusChange:g}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,p.useRef)({isFocusWithin:!1}),u=(0,p.useCallback)(e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))},[n,o,i]),l=N(u),a=(0,p.useCallback)(e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,l(e))},[r,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:u}}}({isDisabled:!u,onFocusWithinChange:g});return{isFocused:a,isFocusVisible:c,focusProps:u?y:E}}},84989:function(e,t,n){n.d(t,{X:function(){return s}});var r=n(7653);let o=!1,i=0;function u(){o=!0,setTimeout(()=>{o=!1},50)}function l(e){"touch"===e.pointerType&&u()}function a(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",l):document.addEventListener("touchend",u),i++,()=>{--i>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",l):document.removeEventListener("touchend",u))}}function s(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:u}=e,[l,s]=(0,r.useState)(!1),c=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(a,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,r.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,u||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},r=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(l.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||o||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!u&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:l,triggerHoverEnd:r}},[t,n,i,u,c]);return(0,r.useEffect)(()=>{u&&f({currentTarget:c.target},c.pointerType)},[u]),{hoverProps:d,isHovered:l}}}}]);