1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8310],{37666:function(e,t,n){var r=n(67294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,u=r.useRef,a=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var f=u(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var v=i(e,(f=l(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&d.hasValue){var t=d.value;if(c(t,e))return u=t}return u=e}if(t=u,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,u=n)}var i,u,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]))[0],f[1]);return a(function(){d.hasValue=!0,d.value=v},[v]),s(v),v}},31103:function(e,t,n){e.exports=n(37666)},37317:function(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{Dx:function(){return O},Jj:function(){return i},Kx:function(){return function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let u=function e(t){let n=C(t);return _(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&d(n)?n:e(n)}(t),a=u===(null==(o=t.ownerDocument)?void 0:o.body),l=i(u);if(a){let t=k(l);return n.concat(l,l.visualViewport||[],d(u)?u:[],t&&r?e(t):[])}return n.concat(u,e(u,[],r))}},Lw:function(){return T},Ow:function(){return C},Pf:function(){return E},Py:function(){return _},Re:function(){return s},Ze:function(){return p},ao:function(){return d},gQ:function(){return w},hT:function(){return x},kK:function(){return l},tF:function(){return u},tR:function(){return m},wK:function(){return k},wk:function(){return o}});let f=new Set(["inline","contents"]);function d(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!f.has(o)}let v=new Set(["table","td","th"]);function p(e){return v.has(o(e))}let h=[":popover-open",":modal"];function m(e){return h.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let g=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function x(e){let t=E(),n=l(e)?O(e):e;return g.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function w(e){let t=C(e);for(;s(t)&&!_(t);){if(x(t))return t;if(m(t))break;t=C(t)}return null}function E(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let S=new Set(["html","body","#document"]);function _(e){return S.has(o(e))}function O(e){return i(e).getComputedStyle(e)}function T(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||u(e);return c(t)?t.host:t}function k(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},71347:function(e,t,n){n.d(t,{Fp:function(){return o},GW:function(){return u},I4:function(){return h},JB:function(){return R},KX:function(){return T},NM:function(){return i},Qq:function(){return g},Rn:function(){return p},VV:function(){return r},Wh:function(){return y},gy:function(){return x},hp:function(){return v},i8:function(){return b},k3:function(){return d},ku:function(){return f},pw:function(){return C},uZ:function(){return c},yd:function(){return k},ze:function(){return a}});let r=Math.min,o=Math.max,i=Math.round,u=Math.floor,a=e=>({x:e,y:e}
1),l={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let m=new Set(["top","bottom"]);function g(e){return m.has(d(e))?"y":"x"}function y(e){return p(g(e))}function b(e,t,n){void 0===n&&(n=!1);let r=v(e),o=y(e),i=h(o),u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=C(u)),[u,C(u)]}function x(e){let t=C(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,e=>s[e])}let E=["left","right"],S=["right","left"],_=["top","bottom"],O=["bottom","top"];function T(e,t,n,r){let o=v(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:E;return t?E:S;case"left":case"right":return t?_:O;default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function C(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},22944:function(e,t,n){n.d(t,{F:function(){return N}});var r,o=n(67294);let i="undefined"!=typeof document?o.useLayoutEffect:()=>{},u=null!==(r=o.useInsertionEffect)&&void 0!==r?r:i;function a(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function l(e){let t=(0,o.useRef)({isFocused:!1,observer:null});i(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,o.useRef)(null);return u(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,o.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(a(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 s(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function c(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 f(e){let t=null;return()=>(null==t&&(t=e()),t)}let d=f(function(){return c(/^Mac/i)}),v=f(function(){return c(/^iPhone/i)}),p=f(function(){return c(/^iPad/i)||d()&&navigator.maxTouchPoints>1}),h=f(function(){return v()||p()});f(function(){return d()||h()}
1),f(function(){return s(/AppleWebKit/i)&&!m()});let m=f(function(){return s(/Chrome/i)}),g=f(function(){return s(/Android/i)});f(function(){return s(/Firefox/i)});var y=n(78837);let b=null,x=new Set,w=new Map,E=!1,S=!1,_={Tab:!0,Escape:!0};function O(e,t){for(let n of x)n(e,t)}function T(e){E=!0,e.metaKey||!d()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(b="keyboard",O("keyboard",e))}function C(e){b="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(E=!0,O("pointer",e))}function k(e){(""===e.pointerType&&e.isTrusted||(g()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(E=!0,b="virtual")}function R(e){e.target!==window&&e.target!==document&&e.isTrusted&&(E||S||(b="virtual",O("virtual",e)),E=!1,S=!1)}function M(){E=!1,S=!0}function P(e){if("undefined"==typeof window||"undefined"==typeof document||w.get((0,y.kR)(e)))return;let t=(0,y.kR)(e),n=(0,y.r3)(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",k,!0),t.addEventListener("focus",R,!0),t.addEventListener("blur",M,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",C,!0),n.addEventListener("pointermove",C,!0),n.addEventListener("pointerup",C,!0)),t.addEventListener("beforeunload",()=>{F(e)},{once:!0}),w.set(t,{focus:r})}let F=(e,t)=>{let n=(0,y.kR)(e),r=(0,y.r3)(e);t&&r.removeEventListener("DOMContentLoaded",t),w.has(n)&&(n.HTMLElement.prototype.focus=w.get(n).focus,r.removeEventListener("keydown",T,!0),r.removeEventListener("keyup",T,!0),r.removeEventListener("click",k,!0),n.removeEventListener("focus",R,!0),n.removeEventListener("blur",M,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",C,!0),r.removeEventListener("pointermove",C,!0),r.removeEventListener("pointerup",C,!0)),w.delete(n))};function A(){return"pointer"!==b}"undefined"!=typeof document&&function(e){let t;let n=(0,y.r3)(void 0);"loading"!==n.readyState?P(void 0):(t=()=>{P(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>F(e,t)}();let L=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var I=n(6445),D=n(36116);function N(e={}){var t,n,r;let{autoFocus:i=!1,isTextInput:u,within:s}=e,c=(0,o.useRef)({isFocused:!1,isFocusVisible:i||A()}),[f,d]=(0,o.useState)(!1),[v,p]=(0,o.useState)(()=>c.current.isFocused&&c.current.isFocusVisible),h=(0,o.useCallback)(()=>p(c.current.isFocused&&c.current.isFocusVisible),[]),m=(0,o.useCallback)(e=>{c.current.isFocused=e,d(e),h()},[h]);t=e=>{c.current.isFocusVisible=e,h()},n=[],r={isTextInput:u},P(),(0,o.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=(0,y.r3)(null==n?void 0:n.target),o="undefined"!=typeof window?(0,y.kR)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?(0,y.kR)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u="undefined"!=typeof window?(0,y.kR)(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?(0,y.kR)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!L.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof u&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!_[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(A())};return x.add(e),()=>{x.delete(e)}},n);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,u=(0,o.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),a=l(u),s=(0,o.useCallback)(e=>{let t=(0,y.r3)(e.target),r=t?(0,I.vY)(t):(0,I.vY)();e.target===e.currentTarget&&r===(0,I.NI)(e.nativeEvent)&&(n&&n(e),i&&i(!0),a(e))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?u:void 0}}}({isDisabled:s,onFocusChange:m}),{focusWithinProps:b}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,u=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=(0,D.x)(),f=(0,o.useCallback)(e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,c(),n&&n(e),i&&i(!1))},[n,i,u,c]),d=l(f),v=(0,o.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,y.r3)(e.target),n=(0,I.vY)(t);
1if(!u.current.isFocusWithin&&n===(0,I.NI)(e.nativeEvent)){r&&r(e),i&&i(!0),u.current.isFocusWithin=!0,d(e);let n=e.currentTarget;s(t,"focus",e=>{if(u.current.isFocusWithin&&!(0,I.bE)(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),f(a(r))}},{capture:!0})}},[r,i,d,s,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:f}}}({isDisabled:!s,onFocusWithinChange:m});return{isFocused:f,isFocusVisible:v,focusProps:s?b:g}}},18419:function(e,t,n){n.d(t,{X:function(){return f}});var r=n(36116),o=n(78837),i=n(6445),u=n(67294);let a=!1,l=0;function s(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},50))}function c(){if("undefined"!=typeof document)return 0===l&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",s),l++,()=>{--l>0||"undefined"==typeof PointerEvent||document.removeEventListener("pointerup",s)}}function f(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:l,isDisabled:s}=e,[f,d]=(0,u.useState)(!1),v=(0,u.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,u.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:h}=(0,r.x)(),{hoverProps:m,triggerHoverEnd:g}=(0,u.useMemo)(()=>{let e=(e,u)=>{if(v.pointerType=u,s||"touch"===u||v.isHovered||!e.currentTarget.contains(e.target))return;v.isHovered=!0;let a=e.currentTarget;v.target=a,p((0,o.r3)(e.target),"pointerover",e=>{v.isHovered&&v.target&&!(0,i.bE)(v.target,e.target)&&r(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:u}),n&&n(!0),d(!0)},r=(e,t)=>{let r=v.target;v.pointerType="",v.target=null,"touch"!==t&&v.isHovered&&r&&(v.isHovered=!1,h(),l&&l({type:"hoverend",target:r,pointerType:t}),n&&n(!1),d(!1))},u={};return"undefined"!=typeof PointerEvent&&(u.onPointerEnter=t=>{a&&"mouse"===t.pointerType||e(t,t.pointerType)},u.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:r}}
1,[t,n,l,s,v,p,h]);return(0,u.useEffect)(()=>{s&&g({currentTarget:v.target},v.pointerType)},[s]),{hoverProps:m,isHovered:f}}},6445:function(e,t,n){function r(e,t){return!!t&&!!e&&e.contains(t)}n.d(t,{vY:function(){return o},NI:function(){return i},bE:function(){return r}}),n(78837);let o=(e=document)=>e.activeElement;function i(e){return e.target}},78837:function(e,t,n){n.d(t,{Zq:function(){return i},kR:function(){return o},r3:function(){return r}});let r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function i(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},36116:function(e,t,n){n.d(t,{x:function(){return o}});var r=n(67294);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{var i;let u=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,u,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},39632:function(e,t,n){n.d(t,{hQ:function(){return e4},Q$:function(){return e$},gA:function(){return e0},O2:function(){return e3},L5:function(){return e2}});var r,o,i,u,a,l=n(73292),s=n(76341),c=n(67462),f=n(32207),d=n(93128),v=n(22944),p=n(18419),h=n(67294),m=n(73935);function g(e,t,n){let r,o=n.initialDeps??[],i=!0;function u(){var u,a,l;let s,c;n.key&&(null==(u=n.debug)?void 0:u.call(n))&&(s=Date.now());let f=e();if(!(f.length!==o.length||f.some((e,t)=>o[t]!==e)))return r;if(o=f,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(c=Date.now()),r=t(...f),n.key&&(null==(l=n.debug)?void 0:l.call(n))){let e=Math.round((Date.now()-s)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${o(t,5)} /${o(e,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(i&&n.skipInitialOnChange)&&n.onChange(r),i=!1,r}return u.updateDeps=e=>{o=e},u}function y(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let b=(e,t)=>1.01>Math.abs(e-t),x=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},w=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},E=e=>e,S=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},_=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let o=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(w(n)),!r.ResizeObserver)return()=>{};let i=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){o({width:t.inlineSize,height:t.blockSize});return}}o(w(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},O={passive:!0},T="undefined"==typeof window||"onscrollend"in window,C=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let o=0,i=e.options.useScrollendEvent&&T?()=>void 0:x(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),u=r=>()=>{let{horizontal:u,isRtl:a}=e.options;o=u?n.scrollLeft*(a&&-1||1):n.scrollTop,i(),t(o,r)},a=u(!0),l=u(!1);l(),n.addEventListener("scroll",a,O);let s=e.options.useScrollendEvent&&T;return s&&n.addEventListener("scrollend",l,O),()=>{n.removeEventListener("scroll",a),s&&n.removeEventListener("scrollend",l)}},k=(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"]}
vendor: 3,018 bytes, line 4
4,R=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class M{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,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=>{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:E,rangeExtractor:S,onChange:()=>{},measureElement:k,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=g(()=>(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,r=new Map;for(let o=t-1;o>=0;o--){let t=e[o];if(n.has(t.lane))continue;let i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=g(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,o,i)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i}),{key:!1,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=g(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i},u)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let a=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let l=this.measurementsCache.slice(0,a),s=Array(i).fill(void 0);for(let e=0;e<a;e++){let t=l[e];t&&(s[t.lane]=e)}for(let o=a;o<e;o++){let e,i;let a=r(o),c=this.laneAssignments.get(o);if(void 0!==c&&this.options.lanes>1){let r=s[e=c],o=void 0!==r?l[r]:void 0;i=o?o.end+this.options.gap:t+n}else{let r=1===this.options.lanes?l[o-1]:this.getFurthestMeasurement(l,o);i=r?r.end+this.options.gap:t+n,e=r?r.lane:o%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(o,e)}let f=u.get(a),d="number"==typeof f?f:this.options.estimateSize(o),v=i+d;l[o]={index:o,start:i,size:d,end:v,key:a,lane:e},s[e]=o}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=g(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=P(0,o,t=>e[t].start,n),u=i;if(1===r)for(;u<o&&e[u].end<n+t;)u++;else if(r>1){let a=Array(r).fill(0);for(;u<o&&a.some(e=>e<n+t);){let t=e[u];a[t.lane]=t.end,u++}let l=Array(r).fill(n+t);for(;i>=0&&l.some(e=>e>=n);){let t=e[i];l[t.lane]=t.start,i--}i=Math.max(0,i-i%r),u=Math.min(o,u+(r-1-u%r))}return{startIndex:i,endIndex:u}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=g(()=>{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,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,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),r=this.measurementsCache[n];if(!r)return;let o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,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 r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,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=g(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,o=e.length;r<o;r++){let o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return y(t[P(0,t.length-1,e=>y(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let r=this.getSize(),o=this.getScrollOffset();return"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getTotalSize()+this.options.scrollMargin-r,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 r=this.getSize(),o=this.getScrollOffset();if("auto"===t){if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,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.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"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}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0,o=t=>{if(!this.targetWindow)return;let r=this.getOffsetForIndex(e,t);if(!r){console.warn("Failed to get offset for index:",e);return}let[o,u]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,u);if(!n){console.warn("Failed to get offset for index:",e);return}b(n[0],t)||i(u)})},i=t=>{this.targetWindow&&(++r<10?this.targetWindow.requestAnimationFrame(()=>o(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"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),r=n.length-1;for(;r>=0&&e.some(e=>null===e);){let t=n[r];null===e[t.lane]&&(e[t.lane]=t.end),r--}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.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let P=(e,t,n,r)=>{for(;e<=t;){let o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},F="undefined"!=typeof document?h.useLayoutEffect:h.useEffect;var A=n(13006),L=n(13252),I=n(15232),D=n(11523),N=n(20626),z=n(32023),j=n(46978),V=n(36736),W=n(62815),H=n(62922),B=n(83579),G=n(9601),U=n(50048),q=n(84305),K=n(74742),J=n(44740),Y=n(14371);function Q(e){var t,n,r,o,i,u=(0,h.useRef)({value:"",selectionStart:null,selectionEnd:null});return t=e,n="blur",r=function(e){var t=e.target;J.LL(t)&&(u.current={value:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})},i=(0,B.E)(r),(0,h.useEffect)(function(){var e=function(e){i.current(e)};return(t=null!=t?t:window).addEventListener(n,e,void 0),function(){return t.removeEventListener(n,e,o)}},[t,n,o]),(0,j.z)(function(){if(!(0,Y.H9)(e)&&J.LL(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==u.current.value)e.setSelectionRange(e.value.length,e.value.length);else{var t=u.current,n=t.selectionStart,r=t.selectionEnd;null!==n&&null!==r&&e.setSelectionRange(n,r)}u.current={value:"",selectionStart:null,selectionEnd:null}}})}var X=n(65141),Z=n(23317),$=n(99125),ee=n(78405),et=n(32990),en=n(73730),er=n(53353);function eo(e,t){var n=(0,h.useRef)([]),r=(0,j.z)(e);(0,h.useEffect)(function(){var e=(0,er._)(n.current),o=!0,i=!1,u=void 0;try{for(var a,l=t.entries()[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var s=(0,d._)(a.value,2),c=s[0],f=s[1];if(n.current[c]!==f){var v=r(t,e);return n.current=t,v}}}catch(e){i=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw u}}},[r].concat((0,er._)(t)))}var ei=n(56382),eu=n(86605),ea=n(34050),el=n(75733),es=n(29160),ec=n(20476),ef=n(77864),ed=n(13027),ev=n(4918),ep=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(function(){var e=function(e){if(J.sP(e.target)&&e.target!==document.body&&ep[0]!==e.target){var t=e.target;t=t.closest(ev.y),ep.unshift(null!=t?t:e.target),(ep=ep.filter(function(e){return null!=e&&e.isConnected})).splice(10)}};window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var eh=n(64908),em=n(87112),eg=n(28277),ey=n(15021),eb=n(84629),ex=n(12508),ew=n(72118),eE=n(37308),eS=n(60846),e_=n(34988),eO=n(58109),eT=n(71484),eC=n(29033),ek=n(50684),eR=n(72348),eM=n(55897),eP=n(5798),eF=n(97030),eA=Object.defineProperty,eL=function(e,t,n){var r;return(r=(void 0===t?"undefined":(0,eR._)(t))!="symbol"?t+"":t)in e?eA(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},eI=((r=eI||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),eD=((o=eD||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),eN=((i=eN||{})[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i),ez=((u=ez||{})[u.OpenCombobox=0]="OpenCombobox",u[u.CloseCombobox=1]="CloseCombobox",u[u.GoToOption=2]="GoToOption",u[u.SetTyping=3]="SetTyping",u[u.RegisterOption=4]="RegisterOption",u[u.UnregisterOption=5]="UnregisterOption",u[u.DefaultToFirstOption=6]="DefaultToFirstOption",u[u.SetActivationTrigger=7]="SetActivationTrigger",u[u.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",u[u.SetInputElement=9]="SetInputElement",u[u.SetButtonElement=10]="SetButtonElement",u[u.SetOptionsElement=11]="SetOptionsElement",u[u.MarkInputAsMoved=12]="MarkInputAsMoved",u);function ej(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&null!==r[0].dataRef.current.order?r.sort(function(e,t){return e.dataRef.current.order-t.dataRef.current.order}):(0,ev.z2)(r,function(e){return e.dataRef.current.domRef.current}),i=n?o.indexOf(n):null;return -1===i&&(i=null),{options:o,activeOptionIndex:i}}var eV=(a={},(0,l._)(a,1,function(e){if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;var t,n=e.inputElement?eF.On.Tracked((0,eF.kn)(e.inputElement)):e.inputPositionState;return(0,c._)((0,s._)({},e),{activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1})}),(0,l._)(a,0,function(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){var r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==r)return(0,c._)((0,s._)({},e),{activeOptionIndex:r,comboboxState:0,__demoMode:!1,inputPositionState:eF.On.Idle})}return(0,c._)((0,s._)({},e),{comboboxState:0,inputPositionState:eF.On.Idle,__demoMode:!1})}),(0,l._)(a,3,function(e,t){return e.isTyping===t.isTyping?e:(0,c._)((0,s._)({},e),{isTyping:t.isTyping})}),(0,l._)(a,2,function(e,t){if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(r=e.dataRef.current)&&r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){var n,r,o,i,u=e.virtual,a=u.options,l=u.disabled,f=t.focus===eh.T.Specific?t.idx:(0,eh.d)(t,{resolveItems:function(){return a},resolveActiveIndex:function(){var t,n;
4return null!=(n=null!=(t=e.activeOptionIndex)?t:a.findIndex(function(e){return!l(e)}))?n:null},resolveDisabled:l,resolveId:function(){throw Error("Function not implemented.")}}),d=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===f&&e.activationTrigger===d?e:(0,c._)((0,s._)({},e),{activeOptionIndex:f,activationTrigger:d,isTyping:!1,__demoMode:!1})}var v=ej(e);if(null===v.activeOptionIndex){var p=v.options.findIndex(function(e){return!e.dataRef.current.disabled});-1!==p&&(v.activeOptionIndex=p)}var h=t.focus===eh.T.Specific?t.idx:(0,eh.d)(t,{resolveItems:function(){return v.options},resolveActiveIndex:function(){return v.activeOptionIndex},resolveId:function(e){return e.id},resolveDisabled:function(e){return e.dataRef.current.disabled}}),m=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===h&&e.activationTrigger===m?e:(0,c._)((0,s._)({},e,v),{isTyping:!1,activeOptionIndex:h,activationTrigger:m,__demoMode:!1})}),(0,l._)(a,4,function(e,t){if(null!=(n=e.dataRef.current)&&n.virtual)return(0,c._)((0,s._)({},e),{options:(0,er._)(e.options).concat([t.payload])});var n,r,o,i,u=t.payload,a=ej(e,function(e){return e.push(u),e});null===e.activeOptionIndex&&null!=(o=(r=e.dataRef.current).isSelected)&&o.call(r,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(u));var l=(0,c._)((0,s._)({},e,a),{activationTrigger:2});return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l}),(0,l._)(a,5,function(e,t){if(null!=(n=e.dataRef.current)&&n.virtual)return(0,c._)((0,s._)({},e),{options:e.options.filter(function(e){return e.id!==t.id})});var n,r=ej(e,function(e){var n=e.findIndex(function(e){return e.id===t.id});return -1!==n&&e.splice(n,1),e});return(0,c._)((0,s._)({},e,r),{activationTrigger:2})}),(0,l._)(a,6,function(e,t){return e.defaultToFirstOption===t.value?e:(0,c._)((0,s._)({},e),{defaultToFirstOption:t.value})}),(0,l._)(a,7,function(e,t){return e.activationTrigger===t.trigger?e:(0,c._)((0,s._)({},e),{activationTrigger:t.trigger})}),(0,l._)(a,8,function(e,t){if(null===e.virtual)return(0,c._)((0,s._)({},e),{virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:function(){return!1}}});if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;var n,r,o=e.activeOptionIndex;if(null!==e.activeOptionIndex){var i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==i?i:null}return(0,c._)((0,s._)({},e),{activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:function(){return!1}}})}),(0,l._)(a,9,function(e,t){return e.inputElement===t.element?e:(0,c._)((0,s._)({},e),{inputElement:t.element})}),(0,l._)(a,10,function(e,t){return e.buttonElement===t.element?e:(0,c._)((0,s._)({},e),{buttonElement:t.element})}),(0,l._)(a,11,function(e,t){return e.optionsElement===t.element?e:(0,c._)((0,s._)({},e),{optionsElement:t.element})}),(0,l._)(a,12,function(e){return"Tracked"!==e.inputPositionState.kind?e:(0,c._)((0,s._)({},e),{inputPositionState:eF.On.Moved})}),a),eW=function(e){(0,ek._)(n,e);var t=(0,eM._)(n);function n(e){(0,eT._)(this,n),r=t.call(this,e),eL((0,eO._)(r),"actions",{onChange:function(e){var t,n=r.state.dataRef.current,o=n.onChange,i=n.compare,u=n.mode,a=n.value;return(0,eg.E)(u,(t={},(0,l._)(t,0,function(){return null==o?void 0:o(e)}),(0,l._)(t,1,function(){var t=a.slice(),n=t.findIndex(function(t){return i(t,e)});return -1===n?t.push(e):t.splice(n,1),null==o?void 0:o(t)}),t))},registerOption:function(e,t){return r.send({type:4,payload:{id:e,dataRef:t}}),function(){r.state.activeOptionIndex===r.state.dataRef.current.calculateIndex(t.current.value)&&r.send({type:6,value:!0}),r.send({type:5,id:e})}},goToOption:function(e,t){return r.send({type:6,value:!1}),r.send((0,c._)((0,s._)({type:2},e),{trigger:t}))},setIsTyping:function(e){r.send({type:3,isTyping:e})},closeCombobox:function(){var e,t;r.send({type:1}),r.send({type:6,value:!1}),null==(t=(e=r.state.dataRef.current).onClose)||t.call(e)},openCombobox:function(){r.send({type:0}),r.send({type:6,value:!0})},setActivationTrigger:function(e){r.send({type:7,trigger:e})},selectActiveOption:function(){var e=r.selectors.activeOptionIndex(r.state);if(null!==e){if(r.actions.setIsTyping(!1),r.state.virtual)r.actions.onChange(r.state.virtual.options[e]);else{var t=r.state.options[e].dataRef;r.actions.onChange(t.current.value)}r.actions.goToOption({focus:eh.T.Specific,idx:e})}},setInputElement:function(e){r.send({type:9,element:e})},setButtonElement:function(e){r.send({type:10,element:e})},setOptionsElement:function(e){r.send({type:11,element:e})}}),eL((0,eO._)(r),"selectors",{activeDescendantId:function(e){var t,n,o=r.selectors.activeOptionIndex(e);if(null!==o)return e.virtual?null==(n=e.options.find(function(t){return!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:function(e){if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){var t=e.virtual,n=t.options,r=t.disabled,o=n.findIndex(function(e){var t;return!(null!=(t=null==r?void 0:r(e))&&t)});if(-1!==o)return o}var i=e.options.findIndex(function(e){return!e.dataRef.current.disabled});if(-1!==i)return i}return e.activeOptionIndex},activeOption:function(e){var t,n,o=r.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:function(e,t,n){var o,i=r.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(o=e.options[i])?void 0:o.id)===n)},shouldScrollIntoView:function(e,t,n){return!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!r.selectors.isActive(e,t,n))},didInputMove:function(e){return"Moved"===e.inputPositionState.kind}});var r,o=r.state.id,i=ef.n.get(null);return r.disposables.add(i.on(ef.M.Push,function(e){i.selectors.isTop(e,o)||0!==r.
4state.comboboxState||r.actions.closeCombobox()})),r.on(0,function(){return i.actions.push(o)}),r.on(1,function(){return i.actions.pop(o)}),r.disposables.group(function(e){r.on(1,function(t){t.inputElement&&(e.dispose(),e.add((0,eF.hS)(t.inputElement,t.inputPositionState,function(){r.send({type:12})})))})}),r}return(0,eC._)(n,[{key:"reduce",value:function(e,t){return(0,eg.E)(t.type,eV,e,t)}}],[{key:"new",value:function(e){var t,r=e.id,o=e.virtual,i=void 0===o?null:o,u=e.__demoMode,a=void 0!==u&&u;return new n({id:r,dataRef:{current:{}},comboboxState:a?0:1,isTyping:!1,options:[],virtual:i?{options:i.options,disabled:null!=(t=i.disabled)?t:function(){return!1}}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:a,inputPositionState:eF.On.Idle})}}]),n}(eP.J),eH=n(75185),eB=(0,h.createContext)(null);function eG(e){var t=(0,h.useContext)(eB);if(null===t){var n=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,eU),n}return t}function eU(e){var t=e.id,n=e.virtual,r=void 0===n?null:n,o=e.__demoMode,i=void 0!==o&&o,u=(0,h.useMemo)(function(){return eW.new({id:t,virtual:r,__demoMode:i})},[]);return(0,eH.L)(function(){return u.dispose()}),u}var eq=(0,h.createContext)(null);function eK(e){var t=(0,h.useContext)(eq);if(null===t){var n=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,eK),n}return t}eq.displayName="ComboboxDataContext";var eJ=(0,h.createContext)(null);function eY(e){var t=eG("VirtualProvider"),n=eK("VirtualProvider").virtual.options,r=(0,ed.M)(t,function(e){return e.optionsElement}),o=(0,d._)((0,h.useMemo)(function(){if(!r)return[0,0];var e=window.getComputedStyle(r);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[r]),2),i=o[0],u=o[1],a=function(e){let t=h.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,m.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[r]=h.useState(()=>new M(n));return r.setOptions(n),F(()=>r._didMount(),[]),F(()=>r._willUpdate()),r}({observeElementRect:_,observeElementOffset:C,scrollToFn:R,enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:u,count:n.length,estimateSize:function(){return 40},getScrollElement:function(){return t.state.optionsElement},overscan:12}),l=(0,d._)((0,h.useState)(0),2),f=l[0],v=l[1];(0,H.e)(function(){v(function(e){return e+1})},[n]);var p=a.getVirtualItems(),g=(0,ed.M)(t,function(e){return e.activationTrigger===eN.Pointer}),y=(0,ed.M)(t,t.selectors.activeOptionIndex);return 0===p.length?null:h.createElement(eJ.Provider,{value:a},h.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(a.getTotalSize(),"px")},ref:function(e){e&&(g||null!==y&&n.length>y&&a.scrollToIndex(y))}},p.map(function(t){var r;return h.createElement(h.Fragment,{key:t.key},h.cloneElement(null==(r=e.children)?void 0:r.call(e,(0,c._)((0,s._)({},e.slot),{option:n[t.index]})),{key:"".concat(f,"-").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"}}))})))}var eQ=h.Fragment,eX=eb.VN.RenderStrategy|eb.VN.Static,eZ=(0,eb.yV)(function(e,t){var n,r=(0,h.useId)(),o=(0,ei.B)(),i=e.value,u=e.defaultValue,a=e.onChange,s=e.form,c=e.name,v=e.by,p=e.invalid,m=void 0!==p&&p,g=e.disabled,y=void 0===g?o||!1:g,b=e.onClose,x=e.__demoMode,w=void 0!==x&&x,E=e.multiple,S=void 0!==E&&E,_=e.immediate,O=void 0!==_&&_,T=e.virtual,C=void 0===T?null:T,k=(e.nullable,(0,f._)(e,["value","defaultValue","onChange","form","name","by","invalid","disabled","onClose","__demoMode","multiple","immediate","virtual","nullable"])),R=(0,D.L)(u),M=(0,d._)((0,I.q)(i,a,R),2),P=M[0],F=void 0===P?S?[]:void 0:P,A=M[1],N=eU({id:r,virtual:C,__demoMode:w}),z=(0,h.useRef)({static:!1,hold:!1}),V=(0,L.J)(v),W=(0,j.z)(function(e){return C?null===v?C.options.indexOf(e):C.options.findIndex(function(t){return V(t,e)}):N.state.options.findIndex(function(t){return V(t.dataRef.current.value,e)})}),B=(0,h.useCallback)(function(e){var t;return(0,eg.E)(K.mode,(t={},(0,l._)(t,eD.Multi,function(){return F.some(function(t){return V(t,e)})}),(0,l._)(t,eD.Single,function(){return V(F,e)}),t))},[F]),G=(0,ed.M)(N,function(e){return e.virtual}
4),q=(0,j.z)(function(){return null==b?void 0:b()}),K=(0,h.useMemo)(function(){return{__demoMode:w,immediate:O,optionsPropsRef:z,value:F,defaultValue:R,disabled:y,invalid:m,mode:S?eD.Multi:eD.Single,virtual:C?G:null,onChange:A,isSelected:B,calculateIndex:W,compare:V,onClose:q}},[w,O,z,F,R,y,m,S,C,G,A,B,W,V,q]);(0,H.e)(function(){var e;C&&N.send({type:ez.UpdateVirtualConfiguration,options:C.options,disabled:null!=(e=C.disabled)?e:null})},[C,null==C?void 0:C.options,null==C?void 0:C.disabled]),(0,H.e)(function(){N.state.dataRef.current=K},[K]);var J=(0,d._)((0,ed.M)(N,function(e){return[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]}),4),Y=J[0],Q=J[1],X=J[2],Z=J[3],ee=ef.n.get(null),et=(0,ed.M)(ee,(0,h.useCallback)(function(e){return ee.selectors.isTop(e,r)},[ee,r]));(0,U.O)(et,[Q,X,Z],function(){return N.actions.closeCombobox()});var en=(0,ed.M)(N,N.selectors.activeOptionIndex),er=(0,ed.M)(N,N.selectors.activeOption),eo=(0,$.x)({open:Y===eI.Open,disabled:y,invalid:m,activeIndex:en,activeOption:er,value:F}),el=(0,d._)((0,eE.bE)(),2),es=el[0],ev=el[1],ep=(0,h.useCallback)(function(){if(void 0!==R)return null==A?void 0:A(R)},[A,R]),eh=(0,eb.L6)();return h.createElement(ev,{value:es,props:{htmlFor:null==X?void 0:X.id},slot:{open:Y===eI.Open,disabled:y}},h.createElement(eu.HO,null,h.createElement(eq.Provider,{value:K},h.createElement(eB.Provider,{value:N},h.createElement(ec.up,{value:(0,eg.E)(Y,(n={},(0,l._)(n,eI.Open,ec.ZM.Open),(0,l._)(n,eI.Closed,ec.ZM.Closed),n))},null!=c&&h.createElement(ea.Mt,{disabled:y,data:null!=F?(0,l._)({},c,F):{},form:s,onReset:ep}),eh({ourProps:null===t?{}:{ref:t},theirProps:k,slot:eo,defaultTag:eQ,name:"Combobox"}))))))}),e$=(0,eb.yV)(function(e,t){var n=eG("Combobox.Button"),r=eK("Combobox.Button"),o=(0,d._)((0,h.useState)(null),2),i=o[0],u=o[1],a=(0,ee.T)(t,u,n.actions.setButtonElement),l=(0,h.useId)(),s=e.id,c=void 0===s?"headlessui-combobox-button-".concat(l):s,g=e.disabled,y=void 0===g?r.disabled||!1:g,b=e.autoFocus,x=void 0!==b&&b,w=(0,f._)(e,["id","disabled","autoFocus"]),E=(0,d._)((0,ed.M)(n,function(e){return[e.comboboxState,e.inputElement,e.optionsElement]}),3),S=E[0],_=E[1],O=E[2],T=Q(_),C=S===eI.Open;(0,K.G)(C,{trigger:i,action:(0,h.useCallback)(function(e){if(null!=i&&i.contains(e.target)||null!=_&&_.contains(e.target))return K.a.Ignore;var t=e.target.closest('[role="option"]:not([data-disabled])');return J.Re(t)?K.a.Select(t):null!=O&&O.contains(e.target)?K.a.Ignore:K.a.Close},[i,_,O]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});var k=(0,j.z)(function(e){switch(e.key){case ew.R.Space:case ew.R.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eI.Closed&&(0,m.flushSync)(function(){return n.actions.openCombobox()}),T();return;case ew.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eI.Closed&&((0,m.flushSync)(function(){return n.actions.openCombobox()}),n.state.dataRef.current.value||n.actions.goToOption({focus:eh.T.First})),T();return;case ew.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eI.Closed&&((0,m.flushSync)(function(){return n.actions.openCombobox()}),n.state.dataRef.current.value||n.actions.goToOption({focus:eh.T.Last}
4)),T();return;case ew.R.Escape:if(n.state.comboboxState!==eI.Open)return;e.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,m.flushSync)(function(){return n.actions.closeCombobox()}),T();return;default:return}}),R=(0,V.a)(function(){n.state.comboboxState===eI.Open?n.actions.closeCombobox():n.actions.openCombobox(),T()}),M=(0,eE.wp)([c]),P=(0,v.F)({autoFocus:x}),F=P.isFocusVisible,L=P.focusProps,I=(0,p.X)({isDisabled:y}),D=I.isHovered,N=I.hoverProps,z=(0,A.x)({disabled:y}),W=z.pressed,H=z.pressProps,B=(0,$.x)({open:S===eI.Open,active:W||S===eI.Open,disabled:y,invalid:r.invalid,value:r.value,hover:D,focus:F}),G=(0,eb.dG)({ref:a,id:c,type:(0,X.f)(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==O?void 0:O.id,"aria-expanded":S===eI.Open,"aria-labelledby":M,disabled:y||void 0,autoFocus:x,onKeyDown:k},R,L,N,H);return(0,eb.L6)()({ourProps:G,theirProps:w,slot:B,defaultTag:"button",name:"Combobox.Button"})}),e0=(0,eb.yV)(function(e,t){var n,r,o=eG("Combobox.Input"),i=eK("Combobox.Input"),u=(0,h.useId)(),a=(0,es.Q)(),s=e.id,c=e.onChange,g=e.displayValue,y=e.disabled,b=void 0===y?i.disabled||!1:y,x=e.autoFocus,w=void 0!==x&&x,E=e.type,S=(0,f._)(e,["id","onChange","displayValue","disabled","autoFocus","type"]),_=(0,h.useRef)(null),O=(0,ee.T)(_,t,(0,eu.AZ)(),o.actions.setInputElement),T=(0,d._)((0,ed.M)(o,function(e){return[e.comboboxState,e.isTyping]}),2),C=T[0],k=T[1],R=(0,N.G)(),M=(0,j.z)(function(){o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:eh.T.Nothing})});eo(function(e,t){var n=(0,d._)(e,2),r=n[0],i=n[1],u=(0,d._)(t,2),a=u[0],l=u[1];if(!o.state.isTyping){var s=_.current;s&&((l===eI.Open&&i===eI.Closed||r!==a)&&(s.value=r),requestAnimationFrame(function(){if(!(o.state.isTyping||!s||(0,Y.H9)(s))){var e=s.selectionStart,t=s.selectionEnd;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}}))}},[(0,h.useMemo)(function(){var e;return"function"==typeof g&&void 0!==i.value?null!=(e=g(i.value))?e:"":"string"==typeof i.value?i.value:""},[i.value,g]),C,k]),eo(function(e,t){var n=(0,d._)(e,1)[0],r=(0,d._)(t,1)[0];if(n===eI.Open&&r===eI.Closed){if(o.state.isTyping)return;var i=_.current;if(!i)return;var u=i.value,a=i.selectionStart,l=i.selectionEnd,s=i.selectionDirection;i.value="",i.value=u,null!==s?i.setSelectionRange(a,l,s):i.setSelectionRange(a,l)}},[C]);var P=(0,h.useRef)(!1),F=(0,j.z)(function(){P.current=!0}),A=(0,j.z)(function(){R.nextFrame(function(){P.current=!1})}),L=(0,j.z)(function(e){var t,n;switch(o.actions.setIsTyping(!0),e.key){case ew.R.Enter:if(o.state.comboboxState!==eI.Open||P.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state)){o.actions.closeCombobox();return}o.actions.selectActiveOption(),i.mode===eD.Single&&o.actions.closeCombobox();break;case ew.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,eg.E)(o.state.comboboxState,(t={},(0,l._)(t,eI.Open,function(){return o.actions.goToOption({focus:eh.T.Next})}),(0,l._)(t,eI.Closed,function(){return o.actions.openCombobox()}),t));case ew.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,eg.E)(o.state.comboboxState,(n={},(0,l._)(n,eI.Open,function(){return o.actions.goToOption({focus:eh.T.Previous})}),(0,l._)(n,eI.Closed,function(){(0,m.flushSync)(function(){return o.actions.openCombobox()}),i.value||o.actions.goToOption({focus:eh.T.Last})}),n));case ew.R.Home:if(o.state.comboboxState===eI.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eh.T.First});case ew.R.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eh.T.First});case ew.R.End:if(o.state.comboboxState===eI.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eh.T.Last});case ew.R.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eh.T.Last});case ew.R.Escape:return o.state.comboboxState!==eI.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===eD.Single&&null===i.value&&M(),o.actions.closeCombobox());case ew.R.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==eI.Open)return;i.mode===eD.Single&&o.state.activationTrigger!==eN.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}}),I=(0,j.z)(function(e){null==c||c(e),i.mode===eD.Single&&""===e.target.value&&M(),o.actions.openCombobox()}),D=(0,j.z)(function(e){var t,n,r,u=null!=(t=e.relatedTarget)?t:ep.find(function(t){return t!==e.currentTarget});
4if(!(null!=(n=o.state.optionsElement)&&n.contains(u))&&!(null!=(r=o.state.buttonElement)&&r.contains(u))&&o.state.comboboxState===eI.Open)return e.preventDefault(),i.mode===eD.Single&&null===i.value&&M(),o.actions.closeCombobox()}),z=(0,j.z)(function(e){var t,n,r,u=null!=(t=e.relatedTarget)?t:ep.find(function(t){return t!==e.currentTarget});null!=(n=o.state.buttonElement)&&n.contains(u)||null!=(r=o.state.optionsElement)&&r.contains(u)||i.disabled||i.immediate&&o.state.comboboxState!==eI.Open&&R.microTask(function(){(0,m.flushSync)(function(){return o.actions.openCombobox()}),o.actions.setActivationTrigger(eN.Focus)})}),V=(0,eE.wp)(),W=(0,ex.zH)(),H=(0,v.F)({autoFocus:w}),B=H.isFocused,G=H.focusProps,U=(0,p.X)({isDisabled:b}),q=U.isHovered,K=U.hoverProps,J=(0,ed.M)(o,function(e){return e.optionsElement}),Q=(0,$.x)({open:C===eI.Open,disabled:b,invalid:i.invalid,hover:q,focus:B,autofocus:w}),X=(0,eb.dG)({ref:O,id:void 0===s?a||"headlessui-combobox-input-".concat(u):s,role:"combobox",type:void 0===E?"text":E,"aria-controls":null==J?void 0:J.id,"aria-expanded":C===eI.Open,"aria-activedescendant":(0,ed.M)(o,o.selectors.activeDescendantId),"aria-labelledby":V,"aria-describedby":W,"aria-autocomplete":"list",defaultValue:null!=(r=null!=(n=e.defaultValue)?n:void 0!==i.defaultValue?null==g?void 0:g(i.defaultValue):null)?r:i.defaultValue,disabled:b||void 0,autoFocus:w,onCompositionStart:F,onCompositionEnd:A,onKeyDown:L,onChange:I,onFocus:z,onBlur:D},G,K);return(0,eb.L6)()({ourProps:X,theirProps:S,slot:Q,defaultTag:"input",name:"Combobox.Input"})}),e1=eE.__,e2=(0,eb.yV)(function(e,t){var n,r,o,i,u,a,l,v,p,m,g=(0,h.useId)(),y=e.id,b=e.hold,x=void 0!==b&&b,w=e.anchor,E=e.portal,S=void 0!==E&&E,_=e.modal,O=void 0===_||_,T=e.transition,C=(0,f._)(e,["id","hold","anchor","portal","modal","transition"]),k=eG("Combobox.Options"),R=eK("Combobox.Options"),M=(0,eu.Vy)(w);M&&(S=!0);var P=(0,d._)((0,eu.ES)(M),2),F=P[0],A=P[1],L=(0,d._)((0,h.useState)(null),2),I=L[0],D=L[1],N=(0,eu.U8)(),V=(0,ee.T)(t,M?F:null,k.actions.setOptionsElement,D),B=(0,d._)((0,ed.M)(k,function(e){return[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]}),5),U=B[0],K=B[1],J=B[2],Q=B[3],X=B[4],et=(0,q.i)(K||J),er=(0,q.i)(Q),eo=(0,ec.oJ)(),ei=(0,d._)((0,en.Y)(void 0!==T&&T,I,null!==eo?(eo&ec.ZM.Open)===ec.ZM.Open:U===eI.Open),2),ea=ei[0],es=ei[1];(0,G.m)(ea,K,k.actions.closeCombobox);var ef=!R.__demoMode&&O&&U===eI.Open;(0,Z.P)(ef,er);var ev=!R.__demoMode&&O&&U===eI.Open;(0,W.s)(ev,{allowed:(0,h.useCallback)(function(){return[K,J,Q]},[K,J,Q])});var ep=!(0,ed.M)(k,k.selectors.didInputMove)&&ea;(0,H.e)(function(){var t;R.optionsPropsRef.current.static=null!=(t=e.static)&&t},[R.optionsPropsRef,e.static]),(0,H.e)(function(){R.optionsPropsRef.current.hold=x},[R.optionsPropsRef,x]),n=U===eI.Open,o=(r={container:Q,accept:function(e){return"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(e){e.setAttribute("role","none")}}).container,i=r.accept,u=r.walk,a=(0,h.useRef)(i),l=(0,h.useRef)(u),(0,h.useEffect)(function(){a.current=i,l.current=u},[i,u]),(0,H.e)(function(){if(o&&n){var e=(0,Y.r3)(o);if(e)for(var t=a.current,r=l.current,i=Object.assign(function(e){return t(e)},{acceptNode:t}),u=e.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);u.nextNode();)r(u.currentNode)}},[o,n,a,l]);var eh=(0,eE.wp)([null==J?void 0:J.id]),em=(0,$.x)({open:U===eI.Open,option:void 0}),eg=(0,j.z)(function(){k.actions.setActivationTrigger(eN.Pointer)}),ey=(0,j.z)(function(e){e.preventDefault(),k.actions.setActivationTrigger(eN.Pointer)}),ex=(0,eb.dG)(M?N():{},(0,s._)({"aria-labelledby":eh,role:"listbox","aria-multiselectable":R.mode===eD.Multi||void 0,id:void 0===y?"headlessui-combobox-options-".concat(g):y,ref:V,style:(0,c._)((0,s._)({},C.style,A),{"--input-width":(0,z.h)(ea,K,!0).width,"--button-width":(0,z.h)(ea,J,!0).width}),onWheel:X===eN.Pointer?void 0:eg,onMouseDown:ey},(0,en.X)(es))),ew=ea&&U===eI.Closed&&!e.static,eS=(0,el._)(ew,null==(v=R.virtual)?void 0:v.options),eO=(0,el._)(ew,R.value),eT=(0,h.useCallback)(function(e){return R.compare(eO,e)},[R.compare,eO]),eC=(0,h.useMemo)(function(){if(!R.virtual)return R;if(void 0===eS)throw Error("Missing `options` in virtual mode");return eS!==R.virtual.options?(0,c._)((0,s._)({},R),{virtual:(0,c._)((0,s._)({},R.virtual),{options:eS})}):R},[R,eS,null==(p=R.virtual)?void 0:p.options]);R.virtual&&Object.assign(C,{children:h.createElement(eq.Provider,{value:eC},h.createElement(eY,{slot:em},C.children))});var ek=(0,eb.L6)(),eR=(0,h.useMemo)(function(){return R.mode===eD.Multi?R:(0,c._)((0,s._)({},R),{isSelected:eT})},[R,eT]);return h.createElement(e_.h_,{enabled:!!S&&(e.static||ea),ownerDocument:et},h.createElement(eq.Provider,{value:eR},ek({ourProps:ex,theirProps:(0,c._)((0,s._)({},C),{children:h.createElement(el.F,{freeze:ew}
4,"function"==typeof C.children?null==(m=C.children)?void 0:m.call(C,em):C.children)}),slot:em,defaultTag:"div",features:eX,visible:ep,name:"Combobox.Options"})))}),e3=(0,eb.yV)(function(e,t){var n,r,o,i=eK("Combobox.Option"),u=eG("Combobox.Option"),a=(0,h.useId)(),l=e.id,s=void 0===l?"headlessui-combobox-option-".concat(a):l,c=e.value,v=e.disabled,p=void 0===v?null!=(o=null==(r=null==(n=i.virtual)?void 0:n.disabled)?void 0:r.call(n,c))&&o:v,m=e.order,g=(0,f._)(e,["id","value","disabled","order"]),y=Q((0,d._)((0,ed.M)(u,function(e){return[e.inputElement]}),1)[0]),b=(0,ed.M)(u,(0,h.useCallback)(function(e){return u.selectors.isActive(e,c,s)},[c,s])),x=i.isSelected(c),w=(0,h.useRef)(null),E=(0,B.E)({disabled:p,value:c,domRef:w,order:void 0===m?null:m}),S=(0,h.useContext)(eJ),_=(0,ee.T)(t,w,S?S.measureElement:null),O=(0,j.z)(function(){u.actions.setIsTyping(!1),u.actions.onChange(c)});(0,H.e)(function(){return u.actions.registerOption(s,E)},[E,s]);var T=(0,ed.M)(u,(0,h.useCallback)(function(e){return u.selectors.shouldScrollIntoView(e,c,s)},[c,s]));(0,H.e)(function(){if(T)return(0,em.k)().requestAnimationFrame(function(){var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[T,w]);var C=(0,j.z)(function(e){e.preventDefault(),e.button===eS.t.Left&&(p||(O(),(0,ey.tq)()||requestAnimationFrame(function(){return y()}),i.mode===eD.Single&&u.actions.closeCombobox()))}),k=(0,j.z)(function(){if(p)return u.actions.goToOption({focus:eh.T.Nothing});var e=i.calculateIndex(c);u.actions.goToOption({focus:eh.T.Specific,idx:e})}),R=(0,et.g)(),M=(0,j.z)(function(e){return R.update(e)}),P=(0,j.z)(function(e){if(R.wasMoved(e)&&!p&&(!b||u.state.activationTrigger!==eN.Pointer)){var t=i.calculateIndex(c);u.actions.goToOption({focus:eh.T.Specific,idx:t},eN.Pointer)}}),F=(0,j.z)(function(e){R.wasMoved(e)&&(p||b&&(i.optionsPropsRef.current.hold||u.state.activationTrigger===eN.Pointer&&u.actions.goToOption({focus:eh.T.Nothing})))}),A=(0,$.x)({active:b,focus:b,selected:x,disabled:p});return(0,eb.L6)()({ourProps:{id:s,ref:_,role:"option",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,"aria-selected":x,disabled:void 0,onMouseDown:C,onFocus:k,onPointerEnter:M,onMouseEnter:M,onPointerMove:P,onMouseMove:P,onPointerLeave:F,onMouseLeave:F},theirProps:g,slot:A,defaultTag:"div",name:"Combobox.Option"})}),e4=Object.assign(eZ,{Input:e0,Button:e$,Label:e1,Options:e2,Option:e3})},12508:function(e,t,n){n.d(t,{zH:function(){return v}});var r=n(76341),o=n(67462),i=n(32207),u=n(67294),a=n(62922),l=n(99125),s=n(78405),c=n(56382),f=n(84629),d=(0,u.createContext)(null);function v(){var e,t;return null!=(t=null==(e=(0,u.useContext)(d))?void 0:e.value)?t:void 0}d.displayName="DescriptionContext",Object.assign((0,f.yV)(function(e,t){var n=(0,u.useId)(),v=(0,c.B)(),p=e.id,h=void 0===p?"headlessui-description-".concat(n):p,m=(0,i._)(e,["id"]),g=function e(){var t=(0,u.useContext)(d);if(null===t){var n=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return t}(),y=(0,s.T)(t);(0,a.e)(function(){return g.register(h)},[h,g.register]);var b=(0,l.x)((0,o._)((0,r._)({},g.slot),{disabled:v||!1})),x=(0,o._)((0,r._)({ref:y},g.props),{id:h});return(0,f.L6)()({ourProps:x,theirProps:m,slot:b,defaultTag:"p",name:g.name||"Description"})}),{})},72118:function(e,t,n){n.d(t,{R:function(){return o}});var r,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)},37308:function(e,t,n){n.d(t,{__:function(){return x},bE:function(){return b},wp:function(){return y}});var r=n(76341),o=n(67462),i=n(32207),u=n(93128),a=n(53353),l=n(67294),s=n(46978),c=n(62922),f=n(99125),d=n(78405),v=n(56382),p=n(29160),h=n(44740),m=n(84629),g=(0,l.createContext)(null);function y(e){var t,n,r,o=null!=(n=null==(t=(0,l.useContext)(g))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>
40?[o].concat((0,a._)(e)).filter(Boolean).join(" "):o}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.inherit,n=y(),r=(0,u._)((0,l.useState)([]),2),o=r[0],i=r[1],c=void 0!==t&&t?[n].concat((0,a._)(o)).filter(Boolean):o;return[c.length>0?c.join(" "):void 0,(0,l.useMemo)(function(){return function(e){var t=(0,s.z)(function(e){return i(function(t){return(0,a._)(t).concat([e])}),function(){return i(function(t){var n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n})}}),n=(0,l.useMemo)(function(){return{register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}},[t,e.slot,e.name,e.props,e.value]);return l.createElement(g.Provider,{value:n},e.children)}},[i])]}g.displayName="LabelContext";var x=Object.assign((0,m.yV)(function(e,t){var n,u=(0,l.useId)(),a=function e(){var t=(0,l.useContext)(g);if(null===t){var n=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return t}(),y=(0,p.Q)(),b=(0,v.B)(),x=e.id,w=void 0===x?"headlessui-label-".concat(u):x,E=e.htmlFor,S=void 0===E?null!=y?y:null==(n=a.props)?void 0:n.htmlFor:E,_=e.passive,O=(0,i._)(e,["id","htmlFor","passive"]),T=(0,d.T)(t);(0,c.e)(function(){return a.register(w)},[w,a.register]);var C=(0,s.z)(function(e){var t=e.currentTarget;if(!(e.target!==e.currentTarget&&h.jF(e.target))&&(h.dz(t)&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),h.dz(t))){var n=document.getElementById(t.htmlFor);if(n){var r=n.getAttribute("disabled");if("true"===r||""===r)return;var o=n.getAttribute("aria-disabled");if("true"===o||""===o)return;(h.LL(n)&&("file"===n.type||"radio"===n.type||"checkbox"===n.type)||"radio"===n.role||"checkbox"===n.role||"switch"===n.role)&&n.click(),n.focus({preventScroll:!0})}}}),k=(0,f.x)((0,o._)((0,r._)({},a.slot),{disabled:b||!1})),R=(0,o._)((0,r._)({ref:T},a.props),{id:w,htmlFor:S,onClick:C});return void 0!==_&&_&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in O&&delete O.onClick),(0,m.L6)()({ourProps:R,theirProps:O,slot:k,defaultTag:S?"label":"div",name:a.name||"Label"})}),{})},60846:function(e,t,n){n.d(t,{t:function(){return o}});var r,o=((r=o||{})[r.Left=0]="Left",r[r.Right=2]="Right",r)},34988:function(e,t,n){n.d(t,{h_:function(){return w}});var r=n(76341),o=n(67462),i=n(32207),u=n(93128),a=n(67294),l=n(73935),s=n(20626),c=n(75185),f=n(84305),d=n(78405),v=(0,a.createContext)(!1),p=n(51128),h=n(84629),m=a.Fragment,g=(0,h.yV)(function(e,t){var n,r,o,g,y,w,E=e.ownerDocument,S=void 0===E?null:E,_=(0,i._)(e,["ownerDocument"]),O=(0,a.useRef)(null),T=(0,d.T)((0,d.h)(function(e){O.current=e}),t),C=(0,f.i)(O.current),k=(n=null!=S?S:C,r=(0,a.useContext)(v),o=(0,a.useContext)(b),y=(g=(0,u._)((0,a.useState)(function(){if(!r&&null!==o)return null!=(e=o.current)?e:null;if(p.O.isServer)return null;var e,t=null==n?void 0:n.getElementById("headlessui-portal-root");if(t)return t;if(null===n)return null;var i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)}),2))[0],w=g[1],(0,a.useEffect)(function(){null!==y&&(null!=n&&n.body.contains(y)||null==n||n.body.appendChild(y))},[y,n]),(0,a.useEffect)(function(){r||null!==o&&w(o.current)},[o,w,r]),y),R=(0,a.useContext)(x),M=(0,s.G)(),P=(0,h.L6)();return(0,c.L)(function(){var e;k&&k.childNodes.length<=0&&(null==(e=k.parentElement)||e.removeChild(k))}),k?(0,l.createPortal)(a.createElement("div",{"data-headlessui-portal":"",ref:function(e){M.dispose(),R&&e&&M.add(R.register(e))}},P({ourProps:{ref:T},theirProps:_,slot:{},defaultTag:m,name:"Portal"})),k):null}),y=a.Fragment,b=(0,a.createContext)(null),x=(0,a.createContext)(null),w=Object.assign((0,h.yV)(function(e,t){var n=(0,d.T)(t),u=e.enabled,l=e.ownerDocument,s=(0,i._)(e,["enabled","ownerDocument"]),c=(0,h.L6)();return void 0===u||u?a.createElement(g,(0,o._)((0,r._)({},s),{ownerDocument:l,ref:n})):c({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:m,name:"Portal"})}),{Group:(0,h.yV)(function(e,t){var n=e.target,r=(0,i._)(e,["target"]),o={ref:(0,d.T)(t)},u=(0,h.L6)();return a.createElement(b.Provider,{value:n},u({ourProps:o,theirProps:r,defaultTag:y,name:"Popover.Group"}))})})},13006:function(e,t,n){n.d(t,{x:function(){return l}});var r=n(93128),o=n(67294),i=n(14371),u=n(20626),a=n(46978);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=(0,o.useRef)(null),l=(0,r._)((0,o.useState)(!1),2),s=l[0],c=l[1],f=(0,u.G)(),d=(0,a.z)(function(){n.current=null,c(!1),f.dispose()}),v=(0,a.z)(function(e){if(f.dispose(),null===n.current){n.current=e.currentTarget,c(!0);var t=(0,i.r3)(e.currentTarget);f.addEventListener(t,"pointerup",d,!1),f.addEventListener(t,"pointermove",function(e){if(n.current){var t,r,o,i;c((t=e.width/2,r=e.height/2,o={top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t},i=n.current.getBoundingClientRect(),!(!o||!i||o.right<i.left||o.left>i.right||o.bottom<i.top||o.top>i.bottom)))}},!1),f.addEventListener(t,"pointercancel",d,!1)}});return{pressed:s,pressProps:void 0!==t&&t?{}:{onPointerDown:v,onPointerUp:d,onClick:d}}}},13252:function(e,t,n){n.d(t,{J:function(){return i}});var r=n(67294);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 i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,r.useCallback)(function(t,n){return"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n)},[e])}},15232:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(93128),o=n(67294),i=n(73935),u=n(46978);function a(e,t,n){var a=(0,r._)((0,o.useState)(n),2),l=a[0],s=a[1],c=void 0!==e,f=(0,o.useRef)(c),d=(0,o.useRef)(!1),v=(0,o.useRef)(!1);return!c||f.current||d.current?c||!f.current||v.current||(v.current=!0,f.current=c,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.")):(d.current=!0,f.current=c,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.")),[c?e:l,(0,u.z)(function(e){return c||(0,i.flushSync)(function(){return s(e)}),null==t?void 0:t(e)})]}},11523:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(93128),o=n(67294);function i(e){return(0,r._)((0,o.useState)(e),1)[0]}},20626:function(e,t,n){n.d(t,{G:function(){return u}});var r=n(93128),o=n(67294),i=n(87112);function u(){var e=(0,r._)((0,o.useState)(i.k),1)[0];return(0,o.useEffect)(function(){return function(){return e.dispose()}},[e]),e}},57050:function(e,t,n){n.d(t,{I:function(){return i}});var r=n(67294),o=n(83579);function i(e,t,n,i){var u=(0,o.E)(n);(0,r.useEffect)(function(){var n=function(e){u.current(e)};if(e)return document.addEventListener(t,n,i),function(){return document.removeEventListener(t,n,i)}},[e,t,i])}},32023:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(93128),o=n(67294),i=n(87112),u=n(62922);function a(e){if(null===e)return{width:0,height:0};var t=e.getBoundingClientRect();return{width:t.width,height:t.height}}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=(0,r._)((0,o.useState)(function(){return a(t)}),2),s=l[0],c=l[1];return(0,u.e)(function(){if(t&&e){var n=(0,i.k)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),c(function(e){var n=a(t);return n.width===e.width&&n.height===e.height?e:n})}),function(){n.dispose()}}},[t,e]),n?{width:"".concat(s.width,"px"),height:"".concat(s.height,"px")}:s}},46978:function(e,t,n){n.d(t,{z:function(){return u}});var r=n(53353),o=n(67294),i=n(83579),u=function(e){var t,n=(0,i.E)(e);return o.useCallback(function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return(t=n).current.apply(t,(0,r._)(o))},[n])}},36736:function(e,t,n){n.d(t,{a:function(){return l}});var r=n(67294),o=n(60846),i=n(44740);function u(e){for(var t=e.parentElement,n=null;t&&!i.zO(t);)i.CD(t)&&(n=t),t=t.parentElement;var r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;for(var t=e.previousElementSibling;null!==t;){if(i.CD(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}var a=n(46978);function l(e){var t=(0,r.useRef)(null);return{onPointerDown:(0,a.z)(function(n){t.current=n.pointerType,u(n.currentTarget)||"mouse"!==n.pointerType||n.button!==o.t.Left||(n.preventDefault(),e(n))}),onClick:(0,a.z)(function(n){"mouse"!==t.current&&(u(n.currentTarget)||e(n))})}}},62815:function(e,t,n){n.d(t,{s:function(){return c}});var r=n(87112),o=n(14371),i=n(67686),u=n(62922),a=new Map,l=new Map;function s(e){var t,n=null!=(t=l.get(e))?t:0;return l.set(e,n+1),0!==n||(a.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),function(){return function(e){var t,n=null!=(t=l.get(e))?t:1;if(1===n?l.delete(e):l.set(e,n-1),1===n){var r=a.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,a.delete(e))}}(e)}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowed,a=t.disallowed,l=(0,i.g)(e,"inert-others");(0,u.e)(function(){if(l){var e=(0,r.k)(),t=!0,i=!1,u=void 0;try{for(var c,f,d,v=(null!=(c=null==a?void 0:a())?c:[])[Symbol.iterator]();!(t=(d=v.next()).done);t=!0){var p=d.value;p&&e.add(s(p))}}catch(e){i=!0,u=e}finally{try{t||null==v.return||v.return()}finally{if(i)throw u}}var h=null!=(f=null==n?void 0:n())?f:[],m=!0,g=!1,y=void 0;try{for(var b,x=h[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){var w=b.value;if(w){var E=(0,o.r3)(w);if(E)for(var S=w.parentElement;S&&S!==E.body;){var _=!0,O=!1,T=void 0;try{for(var C,k=S.children[Symbol.iterator]();!(_=(C=k.next()).done);_=!0)!function(){var t=C.value;h.some(function(e){return t.contains(e)})||e.add(s(t))}()}catch(e){O=!0,T=e}finally{try{_||null==k.return||k.return()}finally{if(O)throw T}}S=S.parentElement}}}}catch(e){g=!0,y=e}finally{try{m||null==x.return||x.return()}finally{if(g)throw y}}return e.dispose}},[l,n,a])}},67686:function(e,t,n){n.d(t,{g:function(){return l}});var r=n(93128),o=n(67294),i=n(77864),u=n(13027),a=n(62922);function l(e,t){var n=(0,o.useId)(),l=i.n.get(t),s=(0,r._)((0,u.M)(l,(0,o.useCallback)(function(e){return[l.selectors.isTop(e,n),l.selectors.inStack(e,n)]},[l,n])),2),c=s[0],f=s[1];return(0,a.e)(function(){if(e)return l.actions.push(n),function(){return l.actions.pop(n)}},[l,e,n]),!!e&&(!f||c)}},62922:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(67294),o=n(51128),i=function(e,t){o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},83579:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(67294),o=n(62922);function i(e){var t=(0,r.useRef)(e);return(0,o.e)(function(){t.current=e},[e]),t}},9601:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(67294),o=n(87112),i=n(44740),u=n(83579);function a(e,t,n){var a=(0,u.E)(function(e){var t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(function(){if(e){var n=null===t?null:i.Re(t)?t:t.current;if(n){var r=(0,o.k)();if("undefined"!=typeof ResizeObserver){var u=new ResizeObserver(function(){return a.current(n)});u.observe(n),r.add(function(){return u.disconnect()})}if("undefined"!=typeof IntersectionObserver){var l=new IntersectionObserver(function(){return a.current(n)});l.observe(n),r.add(function(){return l.disconnect()})}return function(){return r.dispose()}}}},[t,a,e])}},75185:function(e,t,n){n.d(t,{L:function(){return u}});var r=n(67294),o=n(13463),i=n(46978);function u(e){var t=(0,i.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(function(){return n.current=!1,function(){n.current=!0,(0,o.Y)(function(){n.current&&t()})}},[t])}},50048:function(e,t,n){n.d(t,{O:function(){return s}});var r=n(67294),o=n(44740),i=n(4918),u=n(15021),a=n(57050),l=n(83579);function s(e,t,n){var s,c,f,d=(0,l.E)(n),v=(0,r.useCallback)(function(e,n){if(!e.defaultPrevented){var r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){var o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t),u=!0,a=!1,l=void 0;try{for(var s,c=o[Symbol.iterator]();!(u=(s=c.next()).done);u=!0){var f=s.value;if(null!==f&&(f.contains(r)||e.composed&&e.composedPath().includes(f)))return}}catch(e){a=!0,l=e}finally{try{u||null==c.return||c.return()}finally{if(a)throw l}}return(0,i.sP)(r,i.tJ.Loose)||-1===r.tabIndex||e.preventDefault(),d.current(e,r)}}},[d,t]),p=(0,r.useRef)(null);(0,a.I)(e,"pointerdown",function(e){var t,n;(0,u.tq)()||(p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),(0,a.I)(e,"pointerup",function(e){if(!(0,u.tq)()&&p.current){var t=p.current;return p.current=null,v(e,function(){return t})}},!0);var h=(0,r.useRef)({x:0,y:0});(0,a.I)(e,"touchstart",function(e){h.current.x=e.touches[0].clientX,h.current.y=e.touches[0].clientY},!0),(0,a.I)(e,"touchend",function(e){var t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-h.current.x)>=30||Math.abs(t.y-h.current.y)>
4=30))return v(e,function(){return o.sP(e.target)?e.target:null})},!0),s="blur",c=function(e){return v(e,function(){return o.jQ(window.document.activeElement)?window.document.activeElement:null})},f=(0,l.E)(c),(0,r.useEffect)(function(){var t=function(e){f.current(e)};if(e)return window.addEventListener(s,t,!0),function(){return window.removeEventListener(s,t,!0)}},[e,s,!0])}},84305:function(e,t,n){n.d(t,{i:function(){return u}});var r=n(53353),o=n(67294),i=n(14371);function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(function(){return i.r3.apply(void 0,(0,r._)(t))},(0,r._)(t))}},74742:function(e,t,n){n.d(t,{G:function(){return s},a:function(){return l}});var r,o=n(67294),i=n(44740),u=n(57050),a=((r=a||{})[r.Ignore=0]="Ignore",r[r.Select=1]="Select",r[r.Close=2]="Close",r),l={Ignore:{kind:0},Select:function(e){return{kind:1,target:e}},Close:{kind:2}};function s(e,t){var n=t.trigger,r=t.action,a=t.close,l=t.select,s=(0,o.useRef)(null),c=(0,o.useRef)(null),f=(0,o.useRef)(null);(0,u.I)(e&&null!==n,"pointerdown",function(e){i.UG(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(c.current=e.x,f.current=e.y,s.current=e.timeStamp)}),(0,u.I)(e&&null!==n,"pointerup",function(e){var t,n,o=s.current;if(!(null===o||(s.current=null,!i.sP(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=f.current)?n:e.y)))){var u=r(e);switch(u.kind){case 0:return;case 1:e.timeStamp-o>200&&(l(u.target),a());break;case 2:a()}}},{capture:!0})}},65141:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(67294);function o(e,t){return(0,r.useMemo)(function(){if(e.type)return e.type;var n,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])}},23317:function(e,t,n){n.d(t,{P:function(){return g}});var r,o,i,u,a=n(53353),l=n(67294),s=n(62922),c=n(93128),f=n(87112),d=n(44740),v=n(15021);function p(e){var t={},n=!0,r=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value;Object.assign(t,a(t))}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}return t}var h=(r=function(){return new Map},o={PUSH:function(e,t){var n,r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,f.k)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=p(r.meta),this.set(e,r),this},POP:function(e,t){var n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=p(n.meta)),this},SCROLL_PREVENT:function(e){var t,n={doc:e.doc,d:e.d,meta:function(){return e.computedMeta}},r=[(0,v.gn)()?{before:function(e){var t=e.doc,n=e.d,r=e.meta;function o(e){var t=!0,n=!1,o=void 0,i=!0,u=!1,a=void 0;try{for(var l,s=r().containers[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=l.value;try{for(var f,d=c()[Symbol.iterator]();!(t=(f=d.next()).done);t=!0)if(f.value.contains(e))return!0}catch(e){n=!0,o=e}finally{try{t||null==d.return||d.return()}finally{if(n)throw o}}}}catch(e){u=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(u)throw a}}return!1}n.microTask(function(){if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){var e,r=(0,f.k)();r.style(t.documentElement,"scrollBehavior","auto"),n.add(function(){return n.microTask(function(){return r.dispose()})})}var i=null!=(e=window.scrollY)?e:window.pageYOffset,u=null;n.addEventListener(t,"click",function(e){if(d.sP(e.target))try{var n=e.target.closest("a");if(!n)return;var r=new URL(n.href).hash,i=t.querySelector(r);d.sP(i)&&!o(i)&&(u=i)}catch(e){}},!0),n.group(function(e){n.addEventListener(t,"touchstart",function(t){if(e.dispose(),d.sP(t.target)&&d.nR(t.target)){if(o(t.target)){for(var n=t.target;n.parentElement&&o(n.parentElement);)n=n.parentElement;e.style(n,"overscrollBehavior","contain")}else e.style(t.target,"touchAction","none")}})}),n.addEventListener(t,"touchmove",function(e){if(d.sP(e.target)&&!d.LL(e.target)){if(o(e.target)){for(var t=e.target;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(function(){var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),u&&u.isConnected&&(u.scrollIntoView({block:"nearest"}),u=null)})})}}:{},{before:function(e){var n,r=e.doc,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after:function(e){var n=e.doc,r=e.d,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:function(e){var t=e.doc;e.d.style(t.documentElement,"overflow","hidden")}}];r.forEach(function(e){var t=e.before;return null==t?void 0:t(n)}),r.forEach(function(e){var t=e.after;return null==t?void 0:t(n)})},SCROLL_ALLOW:function(e){e.d.dispose()},TEARDOWN:function(e){var t=e.doc;this.delete(t)}},i=r(),u=new Set,{getSnapshot:function(){return i},subscribe:function(e){return u.add(e),function(){return u.delete(e)}},dispatch:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];var s=(t=o[e]).call.apply(t,[i].concat((0,a._)(r)));s&&(i=s,u.forEach(function(e){return e()}))}});h.subscribe(function(){var e=h.getSnapshot(),t=new Map,n=!0,r=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done);
4n=!0){var a=(0,c._)(i.value,1)[0];t.set(a,a.documentElement.style.overflow)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}var l=!0,s=!1,f=void 0;try{for(var d,v=e.values()[Symbol.iterator]();!(l=(d=v.next()).done);l=!0){var p=d.value,m="hidden"===t.get(p.doc),g=0!==p.count;(g&&!m||!g&&m)&&h.dispatch(p.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",p),0===p.count&&h.dispatch("TEARDOWN",p)}}catch(e){s=!0,f=e}finally{try{l||null==v.return||v.return()}finally{if(s)throw f}}});var m=n(67686);function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return[document.body]};!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return{containers:[]}},r=(0,l.useSyncExternalStore)(h.subscribe,h.getSnapshot,h.getSnapshot),o=t?r.get(t):void 0;o&&o.count,(0,s.e)(function(){if(!(!t||!e))return h.dispatch("PUSH",t,n),function(){return h.dispatch("POP",t,n)}},[e,t])}((0,m.g)(e,"scroll-lock"),t,function(e){var t;return{containers:(0,a._)(null!=(t=e.containers)?t:[]).concat([n])}})}},99125:function(e,t,n){n.d(t,{x:function(){return o}});var r=n(67294);function o(e){return(0,r.useMemo)(function(){return e},Object.values(e))}},78405:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return a}});var r=n(73292),o=n(67294),i=n(46978),u=Symbol();function a(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,(0,r._)({},u,t))}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,o.useRef)(t);(0,o.useEffect)(function(){r.current=t},[t]);var a=(0,i.z)(function(e){var t=!0,n=!1,o=void 0;try{for(var i,u=r.current[Symbol.iterator]();!(t=(i=u.next()).done);t=!0){var a=i.value;null!=a&&("function"==typeof a?a(e):a.current=e)}}catch(e){n=!0,o=e}finally{try{t||null==u.return||u.return()}finally{if(n)throw o}}});return t.every(function(e){return null==e||(null==e?void 0:e[u])})?void 0:a}},32990:function(e,t,n){n.d(t,{g:function(){return i}});var r=n(67294);function o(e){return[e.screenX,e.screenY]}function i(){var e=(0,r.useRef)([-1,-1]);return{wasMoved:function(t){var n=o(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update:function(t){e.current=o(t)}}}},73730:function(e,t,n){n.d(t,{X:function(){return v},Y:function(){return p}});var r,o,i,u=n(93128),a=n(67294),l=n(87112),s=n(20626),c=n(62922),f=n(34155);void 0!==f&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(o=null==f?void 0:f.env)?void 0:o.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.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 d=((r=d||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function v(e){var t={};for(var n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function p(e,t,n,r){var o=(0,u._)((0,a.useState)(n),2),i=o[0],f=
4o[1],d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(0,u._)((0,a.useState)(e),2),n=t[0],r=t[1],o=(0,a.useCallback)(function(e){return r(e)},[]),i=(0,a.useCallback)(function(e){return r(function(t){return t|e})},[]),l=(0,a.useCallback)(function(e){return(n&e)===e},[n]);return{flags:n,setFlag:o,addFlag:i,hasFlag:l,removeFlag:(0,a.useCallback)(function(e){return r(function(t){return t&~e})},[]),toggleFlag:(0,a.useCallback)(function(e){return r(function(t){return t^e})},[])}}(e&&i?3:0),v=d.hasFlag,p=d.addFlag,h=d.removeFlag,m=(0,a.useRef)(!1),g=(0,a.useRef)(!1),y=(0,s.G)();return(0,c.e)(function(){var o,i,u,a,s,c,d;if(e){if(n&&f(!0),!t){n&&p(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),u=(i={inFlight:m,prepare:function(){g.current?g.current=!1:g.current=m.current,m.current=!0,g.current||(n?(p(3),h(4)):(p(4),h(2)))},run:function(){g.current?n?(h(3),p(4)):(h(4),p(3)):n?h(1):p(1)},done:function(){var e,o,i;g.current&&(null!=(i=null==(o=t.getAnimations)?void 0:o.call(t))?i:[]).some(function(e){return e instanceof CSSTransition&&"finished"!==e.playState})||(m.current=!1,h(7),n||f(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}}).prepare,a=i.run,s=i.done,c=i.inFlight,d=(0,l.k)(),function(e,t){var n=t.inFlight,r=t.prepare;if(null!=n&&n.current){r();return}var o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(t,{prepare:u,inFlight:c}),d.nextFrame(function(){a(),d.requestAnimationFrame(function(){d.add(function(e,t){var n,r,o=(0,l.k)();if(!e)return o.dispose;var i=!1;o.add(function(){i=!0});var u=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(function(e){return e instanceof CSSTransition}))?r:[];return 0===u.length?t():Promise.allSettled(u.map(function(e){return e.finished})).then(function(){i||t()}),o.dispose}(t,s))})}),d.dispose}},[e,n,t,y]),e?[i,{closed:v(1),enter:v(2),leave:v(4),transition:v(2)||v(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},56382:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(67294),o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},86605:function(e,t,n){n.d(t,{AZ:function(){return y},ES:function(){return w},HO:function(){return E},L:function(){return b},U8:function(){return x},Vy:function(){return g}});var r=n(76341),o=n(67462),i=n(93128),u=n(53353),a=n(7893),l=n(78894),s=n(14353),c=n(67294),f=n(20626),d=n(46978),v=n(62922),p=n(44740),h=(0,c.createContext)({styles:void 0,setReference:function(){},setFloating:function(){},getReferenceProps:function(){return{}},getFloatingProps:function(){return{}},slot:{}});h.displayName="FloatingContext";var m=(0,c.createContext)(null);function g(e){return(0,c.useMemo)(function(){return e?"string"==typeof e?{to:e}:e:null},[e])}function y(){return(0,c.useContext)(h).setReference}function b(){return(0,c.useContext)(h).getReferenceProps}function x(){var e=(0,c.useContext)(h),t=e.getFloatingProps,n=e.slot;return(0,c.useCallback)(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return Object.assign({},t.apply(void 0,(0,u._)(r)),{"data-anchor":n.anchor})},[t,n])}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});var t=(0,c.useContext)(m),n=(0,c.useMemo)(function(){return e},[JSON.stringify(e,function(e,t){var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,v.e)(function(){null==t||t(null!=n?n:null)},[t,n]);var r=(0,c.useContext)(h);return(0,c.useMemo)(function(){return[r.setFloating,e?r.styles:{}]},[r.setFloating,e,r.styles])}function E(e){var t,n,u,f,g,y,b=e.children,x=e.enabled,w=(0,i._)((0,c.useState)(null),2),E=w[0],_=w[1],O=(0,i._)((0,c.useState)(0),2),T=O[0],C=O[1],k=(0,c.useRef)(null),R=(0,i._)((0,c.useState)(null),2),M=R[0],P=R[1];(0,v.e)(function(){if(M){var e=new MutationObserver(function(){var e=window.getComputedStyle(M).maxHeight,t=parseFloat(e);if(!isNaN(t)){var n=parseInt(e);isNaN(n)||t!==n&&(M.style.maxHeight="".concat(Math.ceil(t),"px"))}});return e.observe(M,{attributes:!0,attributeFilter:["style"]}),function(){e.disconnect()}}},[M]);var F=(void 0===x||x)&&null!==E&&null!==M,A=(f=S(null!=(t=null==E?void 0:E.gap)?t:"var(--anchor-gap, 0)",M),g=S(null!=(n=null==E?void 0:E.offset)?n:"var(--anchor-offset, 0)",M),y=S(null!=(u=null==E?void 0:E.padding)?u:"var(--anchor-padding, 0)",M),(0,o._)((0,r._)({},E),{gap:f,offset:g,padding:y}
4)),L=A.to,I=A.gap,D=A.offset,N=A.padding,z=void 0===N?0:N,j=A.inner,V=(0,i._)((void 0===L?"bottom":L).split(" "),2),W=V[0],H=V[1],B=void 0===H?"center":H;(0,v.e)(function(){F&&C(0)},[F]);var G=(0,a.YF)({open:F,placement:"selection"===W?"center"===B?"bottom":"bottom-".concat(B):"center"===B?"".concat(W):"".concat(W,"-").concat(B),strategy:"absolute",transform:!1,middleware:[(0,l.cv)({mainAxis:"selection"===W?0:void 0===I?0:I,crossAxis:void 0===D?0:D}),(0,l.uY)({padding:z}),"selection"!==W&&(0,l.RR)({padding:z}),"selection"===W&&j?(0,a.aN)((0,o._)((0,r._)({},j),{padding:z,overflowRef:k,offset:T,minItemsVisible:4,referenceOverflowThreshold:z,onFallbackChange:function(e){if(e){var t=K.elements.floating;if(t){var n=parseFloat(getComputedStyle(t).scrollPaddingBottom)||0,r=Math.min(4,t.childElementCount),o=0,i=0,u=!0,a=!1,l=void 0;try{for(var s,c,f,d=(null!=(c=null==(s=K.elements.floating)?void 0:s.childNodes)?c:[])[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var v=f.value;if(p.Re(v)){var h=v.offsetTop,m=h+v.clientHeight+n,g=t.scrollTop,y=g+t.clientHeight;if(h>=g&&m<=y)r--;else{i=Math.max(0,Math.min(m,y)-Math.max(h,g)),o=v.clientHeight;break}}}}catch(e){a=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(a)throw l}}r>=1&&C(function(e){var t=o*r-i+n;return e>=t?e:t})}}}})):null,(0,l.dp)({padding:z,apply:function(e){var t=e.availableWidth,n=e.availableHeight;Object.assign(e.elements.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:s.Me}),U=G.refs,q=G.floatingStyles,K=G.context,J=(0,i._)(K.placement.split("-"),2),Y=J[0],Q=void 0===Y?W:Y,X=J[1],Z=void 0===X?B:X;"selection"===W&&(Q="selection");var $=(0,c.useMemo)(function(){return{anchor:[Q,Z].filter(Boolean).join(" ")}},[Q,Z]),ee=(0,a.Rz)(K,{overflowRef:k,onChange:C}),et=(0,a.NI)([ee]),en=et.getReferenceProps,er=et.getFloatingProps,eo=(0,d.z)(function(e){P(e),U.setFloating(e)});return c.createElement(m.Provider,{value:_},c.createElement(h.Provider,{value:{setFloating:eo,setReference:U.setReference,styles:q,getReferenceProps:en,getFloatingProps:er,slot:$}},b))}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,f.G)(),o=(0,d.z)(function(e,t){if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];var o=_(e,t);return[o,function(n){var a=function e(t){var n=/var\((.*)\)/.exec(t);if(n){var r=n[1].indexOf(",");if(-1===r)return[n[1]];var o=n[1].slice(0,r).trim(),i=n[1].slice(r+1).trim();return i?[o].concat((0,u._)(e(i))):[o]}return[]}(e),l=a.map(function(e){return window.getComputedStyle(t).getPropertyValue(e)});return r.requestAnimationFrame(function u(){r.nextFrame(u);var s=!1,c=!0,f=!1,d=void 0;try{for(var v,p=a.entries()[Symbol.iterator]();!(c=(v=p.next()).done);c=!0){var h=(0,i._)(v.value,2),m=h[0],g=h[1],y=window.getComputedStyle(t).getPropertyValue(g);if(l[m]!==y){l[m]=y,s=!0;break}}}catch(e){f=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(f)throw d}}if(s){var b=_(e,t);o!==b&&(n(b),o=b)}}),r.dispose}]}return[n,null]}),a=(0,c.useMemo)(function(){return o(e,t)[0]},[e,t]),l=(0,i._)((0,c.useState)(),2),s=l[0],p=l[1];return(0,v.e)(function(){var n=(0,i._)(o(e,t),2),r=n[0],u=n[1];if(p(r),u)return u(p)},[e,t]),void 0===s?a:s}function _(e,t){var n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");var r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}m.displayName="PlacementContext"},34050:function(e,t,n){n.d(t,{Mt:function(){return m}});var r,o=n(76341),i=n(93128),u=n(67294),a=n(73935),l=n(20626),s=n(27032),c=n(84629),f=n(32207),d=((r=d||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r),v=(0,c.yV)(function(e,t){var n,r=e.features,i=void 0===r?1:r,u=(0,f._)(e,["features"]),a={ref:t,"aria-hidden":(2&i)==2||(null!=(n=u["aria-hidden"])?n:void 0),hidden:(4&i)==4||void 0,style:(0,o._)({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&i)==4&&(2&i)!=2&&{display:"none"})};return(0,c.L6)()({ourProps:a,theirProps:u,slot:{},defaultTag:"span",name:"Hidden"})}),p=(0,u.createContext)(null);function h(e){var t=e.children,n=(0,u.useContext)(p);if(!n)return u.createElement(u.Fragment,null,t);var r=n.target;return r?(0,a.createPortal)(u.createElement(u.Fragment,null,t),r):null}function m(e){var t=e.data,n=e.form,r=e.disabled,a=e.onReset,f=e.overrides,p=(0,i._)((0,u.useState)(null),2),m=p[0],y=p[1],b=(0,l.G)();return(0,u.useEffect)(function(){if(a&&m)return b.addEventListener(m,"reset",a)},[m,n,a]),u.createElement(h,null,u.createElement(g,{setForm:y,formId:n}),(0,s.t)(t).map(function(e){var t=(0,i._)(e,2),a=t[0],l=t[1];return u.createElement(v,(0,o._)({features:d.Hidden},(0,c.oA)((0,o._)({key:a,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:a,value:l}
4,f))))}))}function g(e){var t=e.setForm,n=e.formId;return(0,u.useEffect)(function(){if(n){var e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:u.createElement(v,{features:d.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:function(e){if(e){var n=e.closest("form");n&&t(n)}}})}},75733:function(e,t,n){n.d(t,{F:function(){return i},_:function(){return u}});var r=n(93128),o=n(67294),i=o.forwardRef(function(e,t){var n=e.children,r=u(e.freeze,n);return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{ref:t}):o.createElement(o.Fragment,null,r)});function u(e,t){var n=(0,r._)((0,o.useState)(t),2),i=n[0],u=n[1];return e||i===t||u(t),e?i:t}},29160:function(e,t,n){n.d(t,{Q:function(){return i}});var r=n(67294),o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},20476:function(e,t,n){n.d(t,{ZM:function(){return u},oJ:function(){return a},up:function(){return l}});var r,o=n(67294),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 a(){return(0,o.useContext)(i)}function l(e){var t=e.value,n=e.children;return o.createElement(i.Provider,{value:t},n)}},5798:function(e,t,n){n.d(t,{J:function(){return x},dC:function(){return _},wU:function(){return w}});var r,o,i,u=n(71484),a=n(29033),l=n(93128),s=n(53353),c=n(72348),f=n(2909),d=n(87112),v=n(51128),p=Object.defineProperty,h=function(e,t,n){var r;return(r=(void 0===t?"undefined":(0,c._)(t))!="symbol"?t+"":t)in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},m=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},g=function(e,t,n){return m(e,t,"read from private field"),n?n.call(e):t.get(e)},y=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},b=function(e,t,n,r){return m(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n},x=function(){function e(t){var n=this;(0,u._)(this,e),y(this,r,{}),y(this,o,new f.G(function(){return new Set})),y(this,i,new Set),h(this,"disposables",(0,d.k)()),b(this,r,t),v.O.isServer&&this.disposables.microTask(function(){n.dispose()})}return(0,a._)(e,[{key:"dispose",value:function(){this.disposables.dispose()}},{key:"state",get:function(){return g(this,r)}},{key:"subscribe",value:function(e,t){var n=this;if(v.O.isServer)return function(){};var o={selector:e,callback:t,current:e(g(this,r))};return g(this,i).add(o),this.disposables.add(function(){g(n,i).delete(o)})}},{key:"on",value:function(e,t){var n=this;return v.O.isServer?function(){}:(g(this,o).get(e).add(t),this.disposables.add(function(){g(n,o).get(e).delete(t)}))}},{key:"send",value:function(e){var t=this.reduce(g(this,r),e);if(t!==g(this,r)){b(this,r,t);var n=!0,u=!1,a=void 0;try{for(var l,s=g(this,i)[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var c=l.value,f=c.selector(g(this,r));w(c.current,f)||(c.current=f,c.callback(f))}}catch(e){u=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(u)throw a}}var d=!0,v=!1,p=void 0;try{for(var h,m=g(this,o).get(e.type)[Symbol.iterator]();!(d=(h=m.next()).done);d=!0)(0,h.value)(g(this,r),e)}catch(e){v=!0,p=e}finally{try{d||null==m.return||m.return()}finally{if(v)throw p}}}}}]),e}();function w(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&E(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&E(e.entries(),t.entries()):!!(S(e)&&S(t))&&E(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function E(e,t){for(;;){var n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function S(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function _(e){var t=(0,l._)(e(),2),n=t[0],r=t[1],o=(0,d.k)();return function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n.apply(void 0,(0,s._)(t)),o.dispose(),o.microTask(r)}
4}r=new WeakMap,o=new WeakMap,i=new WeakMap},77864:function(e,t,n){n.d(t,{M:function(){return x},n:function(){return S}});var r,o,i=n(58109),u=n(71484),a=n(29033),l=n(73292),s=n(50684),c=n(76341),f=n(67462),d=n(53353),v=n(72348),p=n(55897),h=n(5798),m=n(2909),g=n(28277),y=Object.defineProperty,b=function(e,t,n){var r;return(r=(void 0===t?"undefined":(0,v._)(t))!="symbol"?t+"":t)in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},x=((r=x||{})[r.Push=0]="Push",r[r.Pop=1]="Pop",r),w=(o={},(0,l._)(o,0,function(e,t){var n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){var i=e.stack.slice();return i.splice(o,1),i.push(n),r=i,(0,f._)((0,c._)({},e),{stack:r})}return(0,f._)((0,c._)({},e),{stack:(0,d._)(e.stack).concat([n])})}),(0,l._)(o,1,function(e,t){var n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;var o=e.stack.slice();return o.splice(r,1),(0,f._)((0,c._)({},e),{stack:o})}),o),E=function(e){(0,s._)(n,e);var t=(0,p._)(n);function n(){var e;return(0,u._)(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),b((0,i._)(e),"actions",{push:function(t){return e.send({type:0,id:t})},pop:function(t){return e.send({type:1,id:t})}}),b((0,i._)(e),"selectors",{isTop:function(e,t){return e.stack[e.stack.length-1]===t},inStack:function(e,t){return e.stack.includes(t)}}),e}return(0,a._)(n,[{key:"reduce",value:function(e,t){return(0,g.E)(t.type,w,e,t)}}],[{key:"new",value:function(){return new n({stack:[]})}}]),n}(h.J),S=new m.G(function(){return E.new()})},13027:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(31103),o=n(46978),i=n(5798);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.wU;return(0,r.useSyncExternalStoreWithSelector)((0,o.z)(function(t){return e.subscribe(a,t)}),(0,o.z)(function(){return e.state}),(0,o.z)(function(){return e.state}),(0,o.z)(t),n)}function a(e){return e}},64908:function(e,t,n){n.d(t,{T:function(){return o},d:function(){return i}});var r,o=((r=o||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function i(e,t){var n=t.resolveItems();if(n.length<=0)return null;var r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(var i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r;case 1:-1===o&&(o=n.length);for(var u=o-1;u>=0;--u)if(!t.resolveDisabled(n[u],u,n))return u;return r;case 2:for(var a=o+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r;case 3:for(var l=n.length-1;l>=0;--l)if(!t.resolveDisabled(n[l],l,n))return l;return r;case 4:for(var s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}},2909:function(e,t,n){n.d(t,{G:function(){return c}});var r=n(71484),o=n(29033),i=n(27642);function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,i.X)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}})(e,t,n||e)}var a=n(50684),l=n(97144),s=n(55897),c=function(e){(0,a._)(n,e);var t=(0,s._)(n);function n(e){var o;return(0,r._)(this,n),(o=t.call(this)).factory=e,o}return(0,o._)(n,[{key:"get",value:function(e){var t=u((0,i._)(n.prototype),"get",this).call(this,e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}]),n}((0,l._)(Map))},87112:function(e,t,n){n.d(t,{k:function(){return function e(){var t=[],n={addEventListener:function(e,t,r,o){return e.addEventListener(t,r,o),n.add(function(){return e.removeEventListener(t,r,o)})},requestAnimationFrame:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=requestAnimationFrame.apply(void 0,(0,o._)(t));return n.add(function(){return cancelAnimationFrame(i)})},nextFrame:function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.requestAnimationFrame(function(){return(e=n).requestAnimationFrame.apply(e,(0,o._)(r))})},setTimeout:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=setTimeout.apply(void 0,(0,o._)(t));return n.add(function(){return clearTimeout(i)})},microTask:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o={current:!0};return(0,i.Y)(function(){o.current&&t[0]()}),n.add(function(){o.current=!1})},style:function(e,t,n){var o=e.style.getPropertyValue(t);return Object.assign(e.style,(0,r._)({},t,n)),this.add(function(){Object.assign(e.style,(0,r._)({},t,o))})},group:function(t){var n=e();return t(n),this.add(function(){return n.dispose()})},add:function(e){return t.includes(e)||t.push(e),function(){var n=t.indexOf(e),r=!0,o=!1,i=void 0;if(n>=0)try{for(var u,a=t.splice(n,1)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0)(0,u.value)()}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}},dispose:function(){var e=!0,n=!1,r=void 0;try{for(var o,i=t.splice(0)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0)(0,o.value)()}catch(e){n=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}};return n}}});var r=n(73292),o=n(53353),i=n(13463)},44740:function(e,t,n){function r(e){return"object"==typeof e&&null!==e&&"n
4odeType"in e}function o(e){return r(e)&&"tagName"in e}function i(e){return o(e)&&"accessKey"in e}function u(e){return o(e)&&"tabIndex"in e}function a(e){return o(e)&&"style"in e}function l(e){return i(e)&&"IFRAME"===e.nodeName}function s(e){return i(e)&&"INPUT"===e.nodeName}function c(e){return i(e)&&"LABEL"===e.nodeName}function f(e){return i(e)&&"FIELDSET"===e.nodeName}function d(e){return i(e)&&"LEGEND"===e.nodeName}function v(e){return!!o(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}n.d(t,{CD:function(){return d},LL:function(){return s},Re:function(){return i},UG:function(){return r},dz:function(){return c},jF:function(){return v},jQ:function(){return l},nR:function(){return a},sP:function(){return u},zO:function(){return f}})},97030:function(e,t,n){n.d(t,{On:function(){return o},hS:function(){return u},kn:function(){return i}});var r=n(87112),o={Idle:{kind:"Idle"},Tracked:function(e){return{kind:"Tracked",position:e}},Moved:{kind:"Moved"}};function i(e){var t=e.getBoundingClientRect();return"".concat(t.x,",").concat(t.y)}function u(e,t,n){var o=(0,r.k)();if("Tracked"===t.kind){var u=function(){a!==i(e)&&(o.dispose(),n())},a=t.position,l=new ResizeObserver(u);l.observe(e),o.add(function(){return l.disconnect()}),o.addEventListener(window,"scroll",u,{passive:!0}),o.addEventListener(window,"resize",u)}return function(){return o.dispose()}}},51128:function(e,t,n){n.d(t,{O:function(){return l}});var r=n(71484),o=n(29033),i=n(72348),u=Object.defineProperty,a=function(e,t,n){var r;return(r=(void 0===t?"undefined":(0,i._)(t))!="symbol"?t+"":t)in e?u(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},l=new(function(){function e(){(0,r._)(this,e),a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}return(0,o._)(e,[{key:"set",value:function(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}},{key:"reset",value:function(){this.set(this.detect())}},{key:"nextId",value:function(){return++this.currentId}},{key:"isServer",get:function(){return"server"===this.current}},{key:"isClient",get:function(){return"client"===this.current}},{key:"detect",value:function(){return"undefined"==typeof document?"server":"client"}},{key:"handoff",value:function(){"pending"===this.handoffState&&(this.handoffState="complete")}},{key:"isHandoffComplete",get:function(){return"complete"===this.handoffState}}]),e}())},4918:function(e,t,n){n.d(t,{EO:function(){return w},TO:function(){return v},sP:function(){return y},tJ:function(){return g},y:function(){return f},z2:function(){return x}});var r,o,i,u,a,l=n(73292),s=n(28277),c=n(14371),f=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(function(e){return"".concat(e,":not([tabindex='-1'])")}).join(","),d=["[data-autofocus]"].map(function(e){return"".concat(e,":not([tabindex='-1'])")}).join(","),v=((r=v||{})[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),h=((i=h||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(f)).sort(function(e,t){return Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))})}var g=((u=g||{})[u.Strict=0]="Strict",u[u.Loose=1]="Loose",u);function y(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r3)(e))?void 0:t.body)&&(0,s.E)(r,(n={},(0,l._)(n,0,function(){return e.matches(f)}),(0,l._)(n,1,function(){for(var t=e;null!==t;){if(t.matches(f))return!0;t=t.parentElement}return!1}),n))}var b=((a=b||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return e.slice().sort(function(e,n){var r=t(e),o=t(n);if(null===r||null===o)return 0;var i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===e?document.body:(0,c.k3)(e);return function(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i.sorted,a=i.relativeTo,l=void 0===a?null:a,s=i.skipElements,f=void 0===s?[]:s,v=Array.isArray(e)?e.length>0?(0,c.k3)(e[0]):document:(0,c.k3)(e),p=Array.isArray(e)?void 0===u||u?x(e):e:64&t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort(function(e,t){return Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))})}(e):m(e);f.length>0&&p.length>1&&(p=p.filter(function(e){return!f.some(function(t){return null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e})})),l=null!=l?l:null==v?void 0:v.activeElement;var h,g=function(){if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),y=function(){if(1&t)return 0;if(2&t)return Math.max(0,p.indexOf(l))-1;if(4&t)return Math.max(0,p.indexOf(l))+1;if(8&t)return p.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),b=32&t?{preventScroll:!0}:{},w=0,E=p.length;do{if(w>=E||w+E<=0)return 0;var S=y+w;if(16&t)S=(S+E)%E;else{if(S<0)return 3;if(S>=E)return 1}null==(h=p[S])||h.focus(b),w+=g}while(h!==(0,c.vY)(h));return 6&t&&null!=(o=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&h.select(),2}(m(n),t,{relativeTo:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",function(e){1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},27032:function(e,t,n){n.d(t,{g:function(){return u},t:function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=!0,l=!1,s=void 0;try{for(var c,f=Object.entries(t)[Symbol.iterator]();!(a=(c=f.next()).done);a=!0){var d=(0,r._)(c.value,2),v=d[0],p=d[1];!function t(n,u,a){var l=!0,s=!1,c=void 0;if(Array.isArray(a))try{for(var f,d=a.entries()[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var v=(0,r._)(f.value,2),p=v[0],h=v[1];t(n,i(u,p.toString()),h)}}catch(e){s=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw c}}else a instanceof Date?n.push([u,a.toISOString()]):"boolean"==typeof a?n.push([u,a?"1":"0"]):"string"==typeof a?n.push([u,a]):"number"==typeof a?n.push([u,"".concat(a)]):null==a?n.push([u,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(a)&&!(0,o.isValidElement)(a)&&e(a,u,n)}(u,i(n,v),p)}}catch(e){l=!0,s=e}finally{try{a||null==f.return||f.return()}finally{if(l)throw s}}return u}}});var r=n(93128),o=n(67294);function i(e,t){return e?e+"["+t+"]":t}function u(e){var t=null!=(i=null==e?void 0:e.form)?i:e.closest("form");if(t){var n=!0,r=!1,o=void 0;try{for(var i,u,a,l=t.elements[Symbol.iterator]();!(n=(a=l.next()).done);
4n=!0){var s=a.value;if(s!==e&&("INPUT"===s.tagName&&"submit"===s.type||"BUTTON"===s.tagName&&"submit"===s.type||"INPUT"===s.nodeName&&"image"===s.type)){s.click();return}}}catch(e){r=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}null==(u=t.requestSubmit)||u.call(t)}}},28277:function(e,t,n){n.d(t,{E:function(){return o}});var r=n(53353);function o(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),u=2;u<n;u++)i[u-2]=arguments[u];if(e in t){var a=t[e];return"function"==typeof a?a.apply(void 0,(0,r._)(i)):a}var l=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(function(e){return'"'.concat(e,'"')}).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(l,o),l}},13463:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}},14371:function(e,t,n){n.d(t,{H9:function(){return a},k3:function(){return i},r3:function(){return o},vY:function(){return u}});var r=n(51128);function o(e){var t;return r.O.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function i(e){var t,n;return r.O.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function u(e){var t,n;return null!=(n=null==(t=i(e))?void 0:t.activeElement)?n:null}function a(e){return u(e)===e}},15021: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}})},84629:function(e,t,n){n.d(t,{VN:function(){return p},oA:function(){return E},yV:function(){return w},dG:function(){return x},L6:function(){return m}});var r,o,i=n(73292),u=n(76341),a=n(67462),l=n(32207),s=n(93128),c=n(53353),f=n(67294);function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(function(e){return"string"==typeof e?e.split(" "):[]}))).filter(Boolean).join(" ")}var v=n(28277),p=((r=p||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),h=((o=h||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function m(){var e,t,n=(e=(0,f.useRef)([]),t=(0,f.useCallback)(function(t){var n=!0,r=!1,o=void 0;try{for(var i,u=e.current[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value;null!=a&&("function"==typeof a?a(t):a.current=t)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}},[]),function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(function(e){return null==e}))return e.current=r,t});return(0,f.useCallback)(function(e){return function(e){var t=e.ourProps,n=e.theirProps,r=e.slot,o=e.defaultTag,s=e.features,c=e.visible,f=e.name,d=e.mergeRefs;d=null!=d?d:y;var p=b(n,t);if(void 0===c||c)return g(p,r,o,f,d);var h=null!=s?s:0;if(2&h){var m=p.static,x=(0,l._)(p,["static"]);if(void 0!==m&&m)return g(x,r,o,f,d)}if(1&h){var w,E=p.unmount,S=(0,l._)(p,["unmount"]);return(0,v.E)(void 0===E||E?0:1,(w={},(0,i._)(w,0,function(){return null}),(0,i._)(w,1,function(){return g((0,a._)((0,u._)({},S),{hidden:!0,style:{display:"none"}}),r,o,f,d)}),w))}return g(p,r,o,f,d)}((0,u._)({mergeRefs:n},e))},[n])}function g(e){var 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,u=S(e,["unmount","static"]),a=u.as,v=void 0===a?n:a,p=u.children,h=u.refName,m=(0,l._)(u,["as","children","refName"]),g=void 0!==e.ref?(0,i._)({},void 0===h?"ref":h,e.ref):{},y="function"==typeof p?p(t):p;"className"in m&&m.className&&"function"==typeof m.className&&(m.className=m.className(t)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);var x={};if(t){var w=!1,O=[],T=!0,C=!1,k=void 0;try{for(var R,M=Object.entries(t)[Symbol.iterator]();!(T=(R=M.next()).done);T=!0){var P=(0,s._)(R.value,2),F=P[0],A=P[1];"boolean"==typeof A&&(w=!0),!0===A&&O.push(F.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))}}catch(e){C=!0,k=e}finally{try{T||null==M.return||M.return()}finally{if(C)throw k}}if(w){x["data-headlessui-state"]=O.join(" ");var L=!0,I=!1,D=void 0;try{for(var N,z=O[Symbol.iterator]();!(L=(N=z.next()).done);L=!0){var j=N.value;x["data-".concat(j)]=""}}catch(e){I=!0,D=e}finally{try{L||null==z.return||z.return()}finally{if(I)throw D}}}}if(_(v)&&(Object.keys(E(m)).length>
40||Object.keys(E(x)).length>0)){if(!(0,f.isValidElement)(y)||Array.isArray(y)&&y.length>1||_(y.type)){if(Object.keys(E(m)).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(E(m)).concat(Object.keys(E(x))).map(function(e){return" - ".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(function(e){return" - ".concat(e)}).join("\n")].join("\n"))}else{var V=y.props,W=null==V?void 0:V.className,H="function"==typeof W?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(W.apply(void 0,(0,c._)(t)),m.className)}:d(W,m.className),B=b(y.props,E(S(m,["ref"])));for(var G in x)G in B&&delete x[G];return(0,f.cloneElement)(y,Object.assign({},B,x,g,{ref:o(f.version.split(".")[0]>="19"?y.props.ref:y.ref,g.ref)},H?{className:H}:{}))}}return(0,f.createElement)(v,Object.assign({},S(m,["ref"]),!_(v)&&g,!_(v)&&x),y)}function y(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return null==e})?void 0:function(e){var n=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value;null!=a&&("function"==typeof a?a(e):a.current=e)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}}}function b(){for(var e=function(e){Object.assign(o,(0,i._)({},e,function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=u[e],a=!0,l=!1,s=void 0;try{for(var f,d=i[Symbol.iterator]();!(a=(f=d.next()).done);a=!0){var v=f.value;if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;v.apply(void 0,[t].concat((0,c._)(r)))}}catch(e){l=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(l)throw s}}}))},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(0===n.length)return{};if(1===n.length)return n[0];var o={},u={},a=!0,l=!1,s=void 0;try{for(var f,d=n[Symbol.iterator]();!(a=(f=d.next()).done);a=!0){var v=f.value;for(var p in v)p.startsWith("on")&&"function"==typeof v[p]?(null!=u[p]||(u[p]=[]),u[p].push(v[p])):o[p]=v[p]}}catch(e){l=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(l)throw s}}if(o.disabled||o["aria-disabled"])for(var h in u)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(h)&&(u[h]=[function(e){var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(var m in u)e(m);return o}function x(){for(var e=function(e){Object.assign(o,(0,i._)({},e,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=u[e],i=!0,a=!1,l=void 0;try{for(var s,f=o[Symbol.iterator]();!(i=(s=f.next()).done);i=!0){var d=s.value;null==d||d.apply(void 0,(0,c._)(n))}}catch(e){a=!0,l=e}finally{try{i||null==f.return||f.return()}finally{if(a)throw l}}}))},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(0===n.length)return{};if(1===n.length)return n[0];var o={},u={},a=!0,l=!1,s=void 0;try{for(var f,d=n[Symbol.iterator]();!(a=(f=d.next()).done);a=!0){var v=f.value;for(var p in v)p.startsWith("on")&&"function"==typeof v[p]?(null!=u[p]||(u[p]=[]),u[p].push(v[p])):o[p]=v[p]}}catch(e){l=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(l)throw s}}for(var h in u)e(h);return o}function w(e){var t;return Object.assign((0,f.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function E(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e),r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var l=u.value;l in n&&delete n[l]}}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}function _(e){return e===f.Fragment||e===Symbol.for("react.fragment")}},14353:function(e,t,n){n.d(t,{Me:function(){return z},oo:function(){return G},US:function(){return j},RR:function(){return H},cv:function(){return V},uY:function(){return W},dp:function(){return B}});var r,o,i=n(30137),u=n(76341),a=n(67462),l=n(93128),s=n(53353),c=n(97582),f=n(71347),d=n(73292),v=n(32207);function p(e,t,n){var r,o=e.reference,i=e.floating,u=(0,f.Qq)(t),a=(0,f.Wh)(t),l=(0,f.I4)(a),s=(0,f.k3)(t),c="y"===u,d=o.x+o.width/2-i.width/2,v=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:v};break;case"left":r={x:o.x-i.width,y:v};break;default:r={x:o.x,y:o.y}}switch((0,f.hp)(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}var h=(r=(0,i._)(function(e,t,n){var r,o,i,l,s,f,v,h,m,g,y,b,x,w,E,S,_,O,T,C,k,R,M,P,F,A;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return o=void 0===(r=n.placement)?"bottom":r,l=void 0===(i=n.strategy)?"absolute":i,f=void 0===(s=n.middleware)?[]:s,v=n.platform,h=f.filter(Boolean),[4,null==v.isRTL?void 0:v.isRTL(t)];case 1:return m=c.sent(),[4,v.getElementRects({reference:e,floating:t,strategy:l})];case 2:b=(y=p(g=c.sent(),o,m)).x,x=y.y,w=o,E={},S=0,_=0,c.label=3;case 3:if(!(_<h.length))return[3,11];return T=(O=h[_]).name,[4,(0,O.fn)({x:b,y:x,initialPlacement:o,placement:w,strategy:l,middlewareData:E,rects:g,platform:v,elements:{reference:e,floating:t}})];case 4:if(k=(C=c.sent()).x,R=C.y,M=C.data,P=C.reset,b=null!=k?k:b,x=null!=R?R:x,E=(0,a._)((0,u._)({},E),(0,d._)({},T,(0,u._)({},E[T],M))),!(P&&S<=50))return[3,10];if(S++,"object"!=typeof P)return[3,9];if(P.placement&&(w=P.placement),!P.rects)return[3,8];if(!0!==P.rects)return[3,6];return[4,v.getElementRects({reference:e,floating:t,strategy:l})];case 5:return F=c.sent(),[3,7];case 6:F=P.rects,c.label=7;case 7:g=F,c.label=8;case 8:b=(A=p(g,w,m)).x,x=A.y,c.label=9;case 9:_=-1,c.label=10;case 10:return _++,[3,3];case 11:return[2,{x:b,y:x,placement:w,strategy:l,middlewareData:E}]}})}),function(e,t,n){return r.apply(this,arguments)});function m(e,t){return g.apply(this,arguments)}function g(){return(g=(0,i._)(function(e,t){var n,r,o,i,u,a,l,s,d,v,p,h,m,g,y,b,x,w,E,S,_,O,T,C,k,R,M,P,F,A,L,I;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return void 0===t&&(t={}),r=e.x,o=e.y,i=e.platform,u=e.rects,a=e.elements,l=e.strategy,v=void 0===(d=(s=(0,f.ku)(t,e)).boundary)?"clippingAncestors":d,h=void 0===(p=s.rootBoundary)?"viewport":p,g=void 0===(m=s.elementContext)?"floating":m,b=void 0!==(y=s.altBoundary)&&y,w=void 0===(x=s.padding)?0:x,E=(0,f.yd)(w),S="floating"===g?"reference":"floating",_=a[b?S:g],T=i.getClippingRect,C={}
4,[4,null==i.isElement?void 0:i.isElement(_)];case 1:if(!(null==(n=c.sent())||n))return[3,2];return k=_,[3,5];case 2:if(R=_.contextElement)return[3,4];return[4,null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)];case 3:R=c.sent(),c.label=4;case 4:k=R,c.label=5;case 5:return[4,T.apply(i,[(C.element=k,C.boundary=v,C.rootBoundary=h,C.strategy=l,C)])];case 6:return O=f.JB.apply(void 0,[c.sent()]),M="floating"===g?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,[4,null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)];case 7:return P=c.sent(),[4,null==i.isElement?void 0:i.isElement(P)];case 8:if(!c.sent())return[3,10];return[4,null==i.getScale?void 0:i.getScale(P)];case 9:return A=c.sent()||{x:1,y:1},[3,11];case 10:A={x:1,y:1},c.label=11;case 11:if(F=A,!i.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:P,strategy:l})];case 12:return I=c.sent(),[3,14];case 13:I=M,c.label=14;case 14:return L=f.JB.apply(void 0,[I]),[2,{top:(O.top-L.top+E.top)/F.y,bottom:(L.bottom-O.bottom+E.bottom)/F.y,left:(O.left-L.left+E.left)/F.x,right:(L.right-O.right+E.right)/F.x}]}})})).apply(this,arguments)}var y=new Set(["left","top"]);function b(){return(b=(0,i._)(function(e,t){var n,r,o,i,u,a,l,s,d,v,p,h,m,g;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return n=e.placement,r=e.platform,o=e.elements,[4,null==r.isRTL?void 0:r.isRTL(o.floating)];case 1:return i=c.sent(),u=(0,f.k3)(n),a=(0,f.hp)(n),l="y"===(0,f.Qq)(n),s=y.has(u)?-1:1,d=i&&l?-1:1,h=(p="number"==typeof(v=(0,f.ku)(t,e))?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis}).mainAxis,m=p.crossAxis,g=p.alignmentAxis,a&&"number"==typeof g&&(m="end"===a?-1*g:g),[2,l?{x:m*d,y:h*s}:{x:h*s,y:m*d}]}})})).apply(this,arguments)}var x=n(37317);function w(e){var t=(0,x.Dx)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,x.Re)(e),i=o?e.offsetWidth:n,u=o?e.offsetHeight:r,a=(0,f.NM)(n)!==i||(0,f.NM)(r)!==u;return a&&(n=i,r=u),{width:n,height:r,$:a}}function E(e){return(0,x.kK)(e)?e:e.contextElement}function S(e){var t=E(e);if(!(0,x.Re)(t))return(0,f.ze)(1);var n=t.getBoundingClientRect(),r=w(t),o=r.width,i=r.height,u=r.$,a=(u?(0,f.NM)(n.width):n.width)/o,l=(u?(0,f.NM)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}var _=(0,f.ze)(0);function O(e){var t=(0,x.Jj)(e);return(0,x.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_}function T(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o,i=e.getBoundingClientRect(),u=E(e),a=(0,f.ze)(1);t&&(r?(0,x.kK)(r)&&(a=S(r)):a=S(e));var l=(void 0===(o=n)&&(o=!1),r&&(!o||r===(0,x.Jj)(u))&&o)?O(u):(0,f.ze)(0),s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,v=i.height/a.y;if(u)for(var p=(0,x.Jj)(u),h=r&&(0,x.kK)(r)?(0,x.Jj)(r):r,m=p,g=(0,x.wK)(m);g&&r&&h!==m;){var y=S(g),b=g.getBoundingClientRect(),w=(0,x.Dx)(g),_=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,T=b.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;s*=y.x,c*=y.y,d*=y.x,v*=y.y,s+=_,c+=T,m=(0,x.Jj)(g),g=(0,x.wK)(m)}return(0,f.JB)({width:d,height:v,x:s,y:c})}function C(e,t){var n=(0,x.Lw)(e).scrollLeft;return t?t.left+n:T((0,x.tF)(e)).left+n}function k(e,t){var n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-C(e,n),y:n.top+t.scrollTop}}var R=new Set(["absolute","fixed"]);function M(e,t,n){if("viewport"===t)r=function(e,t){var n=(0,x.Jj)(e),r=(0,x.tF)(e),o=n.visualViewport,i=r.clientWidth,u=r.clientHeight,a=0,l=0;if(o){i=o.width,u=o.height;var s=(0,x.Pf)();(!s||s&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}var c=C(r);if(c<=0){var f=r.ownerDocument,d=f.body,v=getComputedStyle(d),p="CSS1Compat"===f.compatMode&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,h=Math.abs(r.clientWidth-d.clientWidth-p);h<=25&&(i-=h)}else c<=25&&(i+=c);return{width:i,height:u,x:a,y:l}}(e,n);else if("document"===t)o=(0,x.tF)(e),i=(0,x.tF)(o),u=(0,x.Lw)(o),a=o.ownerDocument.body,l=(0,f.Fp)(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),s=(0,f.Fp)(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight),c=-u.scrollLeft+C(o),d=-u.scrollTop,"rtl"===(0,x.Dx)(a).direction&&(c+=(0,f.Fp)(i.clientWidth,a.clientWidth)-l),r={width:l,height:s,x:c,y:d};else if((0,x.kK)(t))p=(v=T(t,!0,"fixed"===n)).top+t.clientTop,h=v.left+t.clientLeft,m=(0,x.Re)(t)?S(t):(0,f.ze)(1),r={width:t.clientWidth*m.x,height:t.clientHeight*m.y,x:h*m.x,y:p*m.y};else{var r,o,i,u,a,l,s,c,d,v,p,h,m,g=O(e);r={x:t.x-g.x,y:t.y-g.y,width:t.width,height:t.height}}return(0,f.JB)(r)}function P(e,t,n){var r=(0,x.Re)(t),o=(0,x.tF)(t),i="fixed"===n,u=T(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=(0,f.ze)(0);if(r||!r&&!i){if(("body"!==(0,x.wk)(t)||(0,x.ao)(o))&&(a=(0,x.Lw)(t)),r){var s=T(t,!0,i,t);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else o&&(l.x=C(o))}i&&!r&&o&&(l.x=C(o));var c=!o||r||i?(0,f.ze)(0):k(o,a);return{x:u.left+a.scrollLeft-l.x-c.x,y:u.top+a.scrollTop-l.y-c.y,width:u.width,height:u.height}}function F(e){return"static"===(0,x.Dx)(e).position}function A(e,t){if(!(0,x.Re)(e)||"fixed"===(0,x.Dx)(e).position)return null;if(t)return t(e);var n=e.offsetParent;return(0,x.tF)(e)===n&&(n=n.ownerDocument.body),n}function L(e,t){var n=(0,x.Jj)(e);if((0,x.tR)(e))return n;if(!(0,x.Re)(e)){for(var r=(0,x.Ow)(e);r&&!(0,x.Py)(r);){if((0,x.kK)(r)&&!F(r))return r;r=(0,x.Ow)(r)}return n}for(var o=A(e,t);o&&(0,x.Ze)(o)&&F(o);)o=A(o,t);return o&&(0,x.Py)(o)&&F(o)&&!(0,x.hT)(o)?n:o||(0,x.gQ)(e)||n}var I=(o=(0,i._)(function(e){var t,n,r,o;return(0,c.Jh)(this,function(i){switch(i.label){case 0:return t=this.getOffsetParent||L,[4,(0,this.getDimensions)(e.floating)];case 1:return n=i.sent(),r={},o=[e.reference],[4,t(e.floating)];case 2:return[2,(r.reference=P.apply(void 0,o.concat([i.sent(),e.strategy])),r.floating={x:0,y:0,width:n.width,height:n.height},r)]}})}),function(e){return o.apply(this,arguments)}),D={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.elements,n=e.rect,r=e.offsetParent,o="fixed"===e.strategy,i=(0,x.tF)(r),u=!!t&&(0,x.tR)(t.floating);if(r===i||u&&o)return n;var a={scrollLeft:0,scrollTop:0},l=(0,f.ze)(1),s=(0,f.ze)(0),c=(0,x.Re)(r);if((c||!c&&!o)&&(("body"!==(0,x.wk)(r)||(0,x.ao)(i))&&(a=(0,x.Lw)(r)),(0,x.Re)(r))){var d=T(r);l=S(r),s.x=d.x+r.clientLeft,s.y=d.y+r.clientTop}var v=!i||c||o?(0,f.ze)(0):k(i,a);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+s.x+v.x,y:n.y*l.y-a.scrollTop*l.y+s.y+v.y}},getDocumentElement:x.tF,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i="clippingAncestors"===n?(0,x.tR)(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=(0,x.Kx)(e,[],!1).filter(function(e){return(0,x.kK)(e)&&"body"!==(0,x.wk)(e)}),o=null,i="fixed"===(0,x.Dx)(e).position,u=i?(0,x.Ow)(e):e;(0,x.kK)(u)&&!(0,x.Py)(u);){var a=(0,x.Dx)(u),l=(0,x.hT)(u);l||"fixed"!==a.position||(o=null),(i?!l&&!o:!l&&"static"===a.position&&!!o&&R.has(o.position)||(0,x.ao)(u)&&!l&&function e(t,n){var r=(0,x.Ow)(t);return!(r===n||!(0,x.kK)(r)||(0,x.Py)(r))&&("fixed"===(0,x.Dx)(r).position||e(r,n))}(e,u))?r=r.filter(function(e){return e!==u}):o=a,u=(0,x.Ow)(u)}return t.set(e,r),r}(t,this._c):[].concat(n),u=(0,s._)(i).concat([r]),a=u[0],l=u.reduce(function(e,n){var r=M(t,n,o);return e.top=(0,f.Fp)(r.top,e.top),e.right=(0,f.VV)(r.right,e.right),e.bottom=(0,f.VV)(r.bottom,e.bottom),e.left=(0,f.Fp)(r.left,e.left),e},M(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:L,getElementRects:I,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=w(e);return{width:t.width,height:t.height}},getScale:S,isElement:x.kK,isRTL:function(e){return"rtl"===(0,x.Dx)(e).direction}};function N(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function z(e,t,n,r){void 0===r&&(r={});var o,i=r.ancestorScroll,c=void 0===i||i,d=r.ancestorResize,v=void 0===d||d,p=r.elementResize,h=void 0===p?"function"==typeof ResizeObserver:p,m=r.layoutShift,g=void 0===m?"function"==typeof IntersectionObserver:m,y=r.animationFrame,b=void 0!==y&&y,w=E(e),S=c||v?(0,s._)(w?(0,x.Kx)(w):[]).concat((0,s._)((0,x.Kx)(t))):[];
4S.forEach(function(e){c&&e.addEventListener("scroll",n,{passive:!0}),v&&e.addEventListener("resize",n)});var _=w&&g?function(e,t){var n,r=null,o=(0,x.tF)(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();var d=e.getBoundingClientRect(),v=d.left,p=d.top,h=d.width,m=d.height;if(s||t(),h&&m){var g={rootMargin:-(0,f.GW)(p)+"px "+-(0,f.GW)(o.clientWidth-(v+h))+"px "+-(0,f.GW)(o.clientHeight-(p+m))+"px "+-(0,f.GW)(v)+"px",threshold:(0,f.Fp)(0,(0,f.VV)(1,c))||1},y=!0;try{r=new IntersectionObserver(b,(0,a._)((0,u._)({},g),{root:o.ownerDocument}))}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}function b(t){var r=t[0].intersectionRatio;if(r!==c){if(!y)return l();r?l(!1,r):n=setTimeout(function(){l(!1,1e-7)},1e3)}1!==r||N(d,e.getBoundingClientRect())||l(),y=!1}}(!0),i}(w,n):null,O=-1,C=null;h&&(C=new ResizeObserver(function(e){var r=(0,l._)(e,1)[0];r&&r.target===w&&C&&(C.unobserve(t),cancelAnimationFrame(O),O=requestAnimationFrame(function(){var e;null==(e=C)||e.observe(t)})),n()}),w&&!b&&C.observe(w),C.observe(t));var k=b?T(e):null;return b&&function t(){var r=T(e);k&&!N(k,r)&&n(),k=r,o=requestAnimationFrame(t)}(),n(),function(){var e;S.forEach(function(e){c&&e.removeEventListener("scroll",n),v&&e.removeEventListener("resize",n)}),null==_||_(),null==(e=C)||e.disconnect(),C=null,b&&cancelAnimationFrame(o)}}var j=m,V=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return(0,i._)(function(){var n,r,o,i,l,s,f;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return o=t.x,i=t.y,l=t.placement,s=t.middlewareData,[4,function(e,t){return b.apply(this,arguments)}(t,e)];case 1:if(f=c.sent(),l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset)return[2,{}];return[2,{x:o+f.x,y:i+f.y,data:(0,a._)((0,u._)({},f),{placement:l})}]}})})()}}},W=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return(0,i._)(function(){var n,r,o,i,l,s,p,h,g,y,b,x,w,E,S,_,O,T,C,k,R,M,P,F,A,L,I,D;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return n=t.x,r=t.y,o=t.placement,s=void 0===(l=(i=(0,f.ku)(e,t)).mainAxis)||l,h=void 0!==(p=i.crossAxis)&&p,y=void 0===(g=i.limiter)?{fn:function(e){return{x:e.x,y:e.y}}}:g,b=(0,v._)(i,["mainAxis","crossAxis","limiter"]),x={x:n,y:r},[4,m(t,b)];case 1:return w=c.sent(),E=(0,f.Qq)((0,f.k3)(o)),_=x[S=(0,f.Rn)(E)],O=x[E],s&&(T="y"===S?"top":"left",C="y"===S?"bottom":"right",k=_+w[T],R=_-w[C],_=(0,f.uZ)(k,_,R)),h&&(M="y"===E?"top":"left",P="y"===E?"bottom":"right",F=O+w[M],A=O-w[P],O=(0,f.uZ)(F,O,A)),I=y.fn((0,a._)((0,u._)({},t),(L={},(0,d._)(L,S,_),(0,d._)(L,E,O),L))),[2,(0,a._)((0,u._)({},I),{data:{x:I.x-n,y:I.y-r,enabled:(D={},(0,d._)(D,S,s),(0,d._)(D,E,h),D)}})]}})})()}}},H=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return(0,i._)(function(){var n,r,o,i,u,a,l,d,p,h,g,y,b,x,w,E,S,_,O,T,C,k,R,M,P,F,A,L,I,D,N,z,j,V,W,H,B,G,U,q;return(0,c.Jh)(this,function(c){switch(c.label){case 0:if(o=t.placement,i=t.middlewareData,u=t.rects,a=t.initialPlacement,l=t.platform,d=t.elements,g=void 0===(h=(p=(0,f.ku)(e,t)).mainAxis)||h,b=void 0===(y=p.crossAxis)||y,x=p.fallbackPlacements,E=void 0===(w=p.fallbackStrategy)?"bestFit":w,_=void 0===(S=p.fallbackAxisSideDirection)?"none":S,T=void 0===(O=p.flipAlignment)||O,C=(0,v._)(p,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),null!=(n=i.arrow)&&n.alignmentOffset)return[2,{}];return k=(0,f.k3)(o),R=(0,f.Qq)(a),M=(0,f.k3)(a)===a,[4,null==l.isRTL?void 0:l.isRTL(d.floating)];case 1:return P=c.sent(),F=x||(M||!T?[(0,f.pw)(a)]:(0,f.gy)(a)),A="none"!==_,!x&&A&&(L=F).push.apply(L,(0,s._)((0,f.KX)(a,T,_,P))),I=[a].concat((0,s._)(F)),[4,m(t,C)];case 2:if(D=c.sent(),N=[],z=(null==(r=i.flip)?void 0:r.overflows)||[],g&&N.push(D[k]),b&&(j=(0,f.i8)(o,u,P),N.push(D[j[0]],D[j[1]])),z=(0,s._)(z).concat([{placement:o,overflows:N}]),!N.every(function(e){return e<=0})){if((B=I[H=((null==(V=i.flip)?void 0:V.index)||0)+1])&&(!("alignment"===b&&R!==(0,f.Qq)(B))||z.every(function(e){return(0,f.Qq)(e.placement)!==R||e.overflows[0]>0})))return[2,{data:{index:H,overflows:z},reset:{placement:B}}];if(!(G=null==(W=z.filter(function(e){return e.overflows[0]<=0}).sort(function(e,t){return e.overflows[1]-t.overflows[1]})[0])?void 0:W.placement))switch(E){case"bestFit":(q=null==(U=z.filter(function(e){if(A){var t=(0,f.Qq)(e.placement);return t===R||"y"===t}return!0}).map(function(e){return[e.placement,e.overflows.filter(function(e){return e>0}).reduce(function(e,t){return e+t},0)]}).sort(function(e,t){return e[1]-t[1]})[0])?void 0:U[0])&&(G=q);break;case"initialPlacement":G=a}if(o!==G)return[2,{reset:{placement:G}}]}return[2,{}]}})})()}}},B=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return(0,i._)(function(){var n,r,o,i,l,s,d,p,h,g,y,b,x,w,E,S,_,O,T,C,k,R,M,P,F,A,L,I,D,N;return(0,c.Jh)(this,function(c){switch(c.label){case 0:return o=t.placement,i=t.rects,l=t.platform,s=t.elements,h=void 0===(p=(d=(0,f.ku)(e,t)).apply)?function(){}:p,[4,m(t,(0,v._)(d,["apply"]))];case 1:if(g=c.sent(),y=(0,f.k3)(o),b=(0,f.hp)(o),x="y"===(0,f.Qq)(o),E=(w=i.floating).width,S=w.height,!("top"===y||"bottom"===y))return[3,3];return _=y,[4,null==l.isRTL?void 0:l.isRTL(s.floating)];case 2:return O=b===(c.sent()?"start":"end")?"left":"right",[3,4];case 3:O=y,_="end"===b?"top":"bottom",c.label=4;case 4:return T=S-g.top-g.bottom,C=E-g.left-g.right,k=(0,f.VV)(S-g[_],T),R=(0,f.VV)(E-g[O],C),M=!t.middlewareData.shift,P=k,F=R,null!=(n=t.middlewareData.shift)&&n.enabled.x&&(F=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=T),M&&!b&&(A=(0,f.Fp)(g.left,0),L=(0,f.Fp)(g.right,0),I=(0,f.Fp)(g.top,0),D=(0,f.Fp)(g.bottom,0),x?F=E-2*(0!==A||0!==L?A+L:(0,f.Fp)(g.left,g.right)):P=S-2*(0!==I||0!==D?I+D:(0,f.Fp)(g.top,g.bottom))),[4,h((0,a._)((0,u._)({},t),{availableWidth:F,availableHeight:P}))];case 5:return c.sent(),[4,l.getDimensions(s.floating)];case 6:if(N=c.sent(),E!==N.width||S!==N.height)return[2,{reset:{rects:!0}}];return[2,{}]}})})()}}},G=function(e,t,n){var r=new Map,o=(0,u._)({platform:D},n),i=(0,a._)((0,u._)({},o.platform),{_c:r});return h(e,t,(0,a._)((0,u._)({},o),{platform:i}))}},78894:function(e,t,n){n.d(t,{RR:function(){return y},YF:function(){return h},cv:function(){return m},dp:function(){return b},uY:function(){return g}});var r=n(76341),o=n(67462),i=n(93128),u=n(72348),a=n(14353),l=n(67294),s=n(73935),c="undefined"!=typeof document?l.useLayoutEffect:function(){};function f(e,t){if(e===t)return!0;
4if((void 0===e?"undefined":(0,u._)(e))!==(void 0===t?"undefined":(0,u._)(t)))return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!f(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var n,r,o,i=o[r];if(("_owner"!==i||!e.$$typeof)&&!f(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}function d(e){return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function v(e,t){var n=d(e);return Math.round(t*n)/n}function p(e){var t=l.useRef(e);return c(function(){t.current=e}),t}function h(e){void 0===e&&(e={});var t=e.placement,n=void 0===t?"bottom":t,u=e.strategy,h=void 0===u?"absolute":u,m=e.middleware,g=void 0===m?[]:m,y=e.platform,b=e.elements,x=void 0===b?{}:b,w=x.reference,E=x.floating,S=e.transform,_=void 0===S||S,O=e.whileElementsMounted,T=e.open,C=(0,i._)(l.useState({x:0,y:0,strategy:h,placement:n,middlewareData:{},isPositioned:!1}),2),k=C[0],R=C[1],M=(0,i._)(l.useState(g),2),P=M[0],F=M[1];f(P,g)||F(g);var A=(0,i._)(l.useState(null),2),L=A[0],I=A[1],D=(0,i._)(l.useState(null),2),N=D[0],z=D[1],j=l.useCallback(function(e){e!==B.current&&(B.current=e,I(e))},[]),V=l.useCallback(function(e){e!==G.current&&(G.current=e,z(e))},[]),W=w||L,H=E||N,B=l.useRef(null),G=l.useRef(null),U=l.useRef(k),q=null!=O,K=p(O),J=p(y),Y=p(T),Q=l.useCallback(function(){if(B.current&&G.current){var e={placement:n,strategy:h,middleware:P};J.current&&(e.platform=J.current),(0,a.oo)(B.current,G.current,e).then(function(e){var t=(0,o._)((0,r._)({},e),{isPositioned:!1!==Y.current});X.current&&!f(U.current,t)&&(U.current=t,s.flushSync(function(){R(t)}))})}},[P,n,h,J,Y]);c(function(){!1===T&&U.current.isPositioned&&(U.current.isPositioned=!1,R(function(e){return(0,o._)((0,r._)({},e),{isPositioned:!1})}))},[T]);var X=l.useRef(!1);c(function(){return X.current=!0,function(){X.current=!1}},[]),c(function(){if(W&&(B.current=W),H&&(G.current=H),W&&H){if(K.current)return K.current(W,H,Q);Q()}},[W,H,Q,K,q]);var Z=l.useMemo(function(){return{reference:B,floating:G,setReference:j,setFloating:V}},[j,V]),$=l.useMemo(function(){return{reference:W,floating:H}}
4,[W,H]),ee=l.useMemo(function(){var e={position:h,left:0,top:0};if(!$.floating)return e;var t=v($.floating,k.x),n=v($.floating,k.y);return _?(0,r._)((0,o._)((0,r._)({},e),{transform:"translate("+t+"px, "+n+"px)"}),d($.floating)>=1.5&&{willChange:"transform"}):{position:h,left:t,top:n}},[h,_,$.floating,k.x,k.y]);return l.useMemo(function(){return(0,o._)((0,r._)({},k),{update:Q,refs:Z,elements:$,floatingStyles:ee})},[k,Q,Z,$,ee])}var m=function(e,t){return(0,o._)((0,r._)({},(0,a.cv)(e)),{options:[e,t]})},g=function(e,t){return(0,o._)((0,r._)({},(0,a.uY)(e)),{options:[e,t]})},y=function(e,t){return(0,o._)((0,r._)({},(0,a.RR)(e)),{options:[e,t]})},b=function(e,t){return(0,o._)((0,r._)({},(0,a.dp)(e)),{options:[e,t]})}},63097:function(e,t,n){n.d(t,{ij:function(){return r}});function r(){var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}},10428:function(e,t,n){n.d(t,{_:function(){return o}});var r=n(72348);function o(e){var t=function(e,t){if("object"!==(0,r._type_of)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r._type_of)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r._type_of)(t)?t:String(t)}}}]); 5//# sourceMappingURL=8310-ba402c291c0ef8e0.js.map
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.