"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6734],{86579: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)},45012:function(e,t,n){n.d(t,{h_:function(){return P},kF:function(){return w},wA:function(){return y}});var r=n(53248),o=n(23443),u=n(57409),l=n(12581),i=n(31105),c=n(6703),a=n(56492),s=n(15328),d=n(20740),f=n(54608),h=n(54626);let v=r.Fragment,m=(0,h.yV)(function(e,t){let n=(0,r.useRef)(null),u=(0,s.T)((0,s.h)(e=>{n.current=e}),t),m=(0,c.i)(n),E=function(e){let t=(0,d.n)(),n=(0,r.useContext)(p),o=(0,c.i)(e),[u,l]=(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 u=o.createElement("div");return u.setAttribute("id","headlessui-portal-root"),o.body.appendChild(u)});return(0,r.useEffect)(()=>{null!==u&&(null!=o&&o.body.contains(u)||null==o||o.body.appendChild(u))},[u,o]),(0,r.useEffect)(()=>{t||null!==n&&l(n.current)},[n,l,t]),u}(n),[w]=(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)(g),y=(0,a.H)();return(0,l.e)(()=>{!E||!w||E.contains(w)||(w.setAttribute("data-headlessui-portal",""),E.appendChild(w))},[E,w]),(0,l.e)(()=>{if(w&&b)return b.register(w)},[b,w]),(0,i.L)(()=>{var e;E&&w&&(w instanceof Node&&E.contains(w)&&E.removeChild(w),E.childNodes.length<=0&&(null==(e=E.parentElement)||e.removeChild(E)))}),y&&E&&w?(0,o.createPortal)((0,h.sY)({ourProps:{ref:u},theirProps:e,slot:{},defaultTag:v,name:"Portal"}),w):null}),E=r.Fragment,p=(0,r.createContext)(null),g=(0,r.createContext)(null);function w(){let e=(0,r.useContext)(g),t=(0,r.useRef)([]),n=(0,u.z)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,u.z)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),l=(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(g.Provider,{value:l},t)},[l])]}let b=(0,h.yV)(function(e,t){let n=(0,s.T)(t),{enabled:o=!0,...u}=e;return o?r.createElement(m,{...u,ref:n}):(0,h.sY)({ourProps:{ref:n},theirProps:u,slot:{},defaultTag:v,name:"Portal"})}),y=(0,h.yV)(function(e,t){let{target:n,...o}=e,u={ref:(0,s.T)(t)};return r.createElement(p.Provider,{value:n},(0,h.sY)({ourProps:u,theirProps:o,defaultTag:E,name:"Popover.Group"}))}),P=Object.assign(b,{Group:y})},98857:function(e,t,n){n.d(t,{O:function(){return u}});var r=n(53248),o=n(88435);function u(e,t,n,u){let l=(0,o.E)(n);(0,r.useEffect)(()=>{function n(e){l.current(e)}return(e=null!=e?e:window).addEventListener(t,n,u),()=>e.removeEventListener(t,n,u)},[e,t,u])}},69713:function(e,t,n){n.d(t,{g:function(){return a}});var r=n(53248);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 u=n(53846),l=n(12581),i=n(18291);let c=new o(()=>(0,u.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 a(e,t){let n=c.get(t),o=(0,r.useId)(),u=(0,i.o)(n);if((0,l.e)(()=>{if(e)return n.dispatch("ADD",o),()=>n.dispatch("REMOVE",o)},[n,e]),!e)return!1;let a=u.indexOf(o),s=u.length;return -1===a&&(a=s,s+=1),a===s-1}},92249:function(e,t,n){n.d(t,{m:function(){return l}});var r=n(53248),o=n(36795),u=n(88435);function l(e,t,n){let l=(0,u.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(()=>l.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>l.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,l,e])}},31105:function(e,t,n){n.d(t,{L:function(){return l}});var r=n(53248),o=n(49080),u=n(57409);function l(e){let t=(0,u.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},44934:function(e,t,n){n.d(t,{O:function(){return s}});var r=n(53248),o=n(56716),u=n(41558),l=n(88435);function i(e,t,n,o){let u=(0,l.E)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){u.current(e)}},[e,t,o])}var c=n(69713),a=n(24860);function s(e,t,n){let s=(0,c.g)(e,"outside-click"),d=(0,l.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]),h=(0,r.useRef)(null);i(s,"pointerdown",e=>{var t,n;h.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),i(s,"mousedown",e=>{var t,n;h.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),i(s,"click",e=>{(0,u.tq)()||h.current&&(f(e,()=>h.current),h.current=null)},!0);let v=(0,r.useRef)({x:0,y:0});i(s,"touchstart",e=>{v.current.x=e.touches[0].clientX,v.current.y=e.touches[0].clientY},!0),i(s,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-v.current.x)>=30||Math.abs(t.y-v.current.y)>=30))return f(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),(0,a.s)(s,"blur",e=>f(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},6703:function(e,t,n){n.d(t,{i:function(){return u}});var r=n(53248),o=n(17726);function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...t),[...t])}},3407:function(e,t,n){n.d(t,{H1:function(){return d},Jl:function(){return s},vs:function(){return c}});var r=n(53248),o=n(27336),u=n(17726),l=n(57409),i=n(6703);function c(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.i)(n),o=(0,l.z)(()=>{var o,u;let l=[];for(let t of e)null!==t&&(t instanceof HTMLElement?l.push(t):"current"in t&&t.current instanceof HTMLElement&&l.push(t.current));if(null!=t&&t.current)for(let e of t.current)l.push(e);for(let e of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(u=null==n?void 0:n.getRootNode())?void 0:u.host))||l.some(t=>e.contains(t))||l.push(e));return l});return{resolveContainers:o,contains:(0,l.z)(e=>o().some(t=>t.contains(e)))}}let a=(0,r.createContext)(null);function s(e){let{children:t,node:n}=e,[l,i]=(0,r.useState)(null),c=d(null!=n?n:l);return r.createElement(a.Provider,{value:c},t,null===c&&r.createElement(o._,{features:o.x.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,u.r)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(e)){i(r);break}}}}))}function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,r.useContext)(a))?e:t}},86309:function(e,t,n){n.d(t,{P:function(){return s}});var r=n(18291),o=n(12581),u=n(36795),l=n(53846),i=n(41558);let c=(0,l.M)(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,u.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,l={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},c=[(0,i.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,u.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,l=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),u=t.querySelector(r);u&&!o(u)&&(l=u)}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),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=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,u=Math.max(0,o.clientWidth-o.offsetWidth),l=Math.max(0,t-u);r.style(o,"paddingRight","".concat(l,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];c.forEach(e=>{let{before:t}=e;return null==t?void 0:t(l)}),c.forEach(e=>{let{after:t}=e;return null==t?void 0:t(l)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});c.subscribe(()=>{let e=c.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)&&c.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&c.dispatch("TEARDOWN",n)}});var a=n(69713);function s(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:[]}),u=(0,r.o)(c),l=t?u.get(t):void 0;l&&l.count,(0,o.e)(()=>{if(!(!t||!e))return c.dispatch("PUSH",t,n),()=>c.dispatch("POP",t,n)},[e,t])}((0,a.g)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},18291:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(53248);function o(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},61672:function(e,t,n){let r;n.d(t,{N:function(){return l},l:function(){return i}});var o=n(53248),u=n(24860),l=((r=l||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function i(){let e=(0,o.useRef)(0);return(0,u.s)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},24860:function(e,t,n){n.d(t,{s:function(){return u}});var r=n(53248),o=n(88435);function u(e,t,n,u){let l=(0,o.E)(n);(0,r.useEffect)(()=>{if(e)return window.addEventListener(t,n,u),()=>window.removeEventListener(t,n,u);function n(e){l.current(e)}},[e,t,u])}},50572:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(53248);let o=(0,r.createContext)(()=>{});function u(e){let{value:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},27336:function(e,t,n){let r;n.d(t,{_:function(){return l},x:function(){return u}});var o=n(54626),u=((r=u||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let l=(0,o.yV)(function(e,t){var n;let{features:r=1,...u}=e,l={ref:t,"aria-hidden":(2&r)==2||(null!=(n=u["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:l,theirProps:u,slot:{},defaultTag:"span",name:"Hidden"})})},20740:function(e,t,n){n.d(t,{O:function(){return l},n:function(){return u}});var r=n(53248);let o=(0,r.createContext)(!1);function u(){return(0,r.useContext)(o)}function l(e){return r.createElement(o.Provider,{value:e.force},e.children)}},56716:function(e,t,n){let r,o,u,l,i;n.d(t,{C5:function(){return y},EO:function(){return x},GO:function(){return E},TO:function(){return h},fE:function(){return v},jA:function(){return A},sP:function(){return g},tJ:function(){return p},wI:function(){return w},y:function(){return d},z2:function(){return P}});var c=n(36795),a=n(12773),s=n(17726);let d=["[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 h=((r=h||{})[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),m=((u=m||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u);function E(){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)))}var p=((l=p||{})[l.Strict=0]="Strict",l[l.Loose=1]="Loose",l);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(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function w(e){let t=(0,s.r)(e);(0,c.k)().nextFrame(()=>{t&&!g(t.activeElement,0)&&y(e)})}var b=((i=b||{})[i.Keyboard=0]="Keyboard",i[i.Mouse=1]="Mouse",i);function y(e){null==e||e.focus({preventScroll:!0})}function P(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 x(e,t){return A(E(),t,{relativeTo:e})}function A(e,t){var n,r,o;let{sorted:u=!0,relativeTo:l=null,skipElements:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?u?P(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):E(e);i.length>0&&a.length>1&&(a=a.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),l=null!=l?l:c.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,a.indexOf(l))-1;if(4&t)return Math.max(0,a.indexOf(l))+1;if(8&t)return a.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},v=0,m=a.length,p;do{if(v>=m||v+m<=0)return 0;let e=d+v;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(p=a[e])||p.focus(h),v+=s}while(p!==c.activeElement);return 6&t&&null!=(o=null==(r=null==(n=p)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&p.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))},17726:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(54608);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}},41558: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}})},53846: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,u=Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];let i=t[e].call(n,...u);i&&(n=i,r.forEach(e=>e()))}}}}}]);