diff --git a/docs/404.html b/docs/404.html index a07bcf6..2f0c3dc 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -Not Found | MAC-VO: Metric-Aware Covariance for Learning-based Stereo Visual Odometry

Page Not Found

Back to home
\ No newline at end of file +Not Found | MAC-VO: Metric-Aware Covariance for Learning-based Stereo Visual Odometry

Page Not Found

Back to home
\ No newline at end of file diff --git a/docs/_next/static/chunks/762-508864c46eae3c2e.js b/docs/_next/static/chunks/762-508864c46eae3c2e.js deleted file mode 100644 index 3f3a435..0000000 --- a/docs/_next/static/chunks/762-508864c46eae3c2e.js +++ /dev/null @@ -1,58 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[762],{5024:function(e,t,n){"use strict";e.exports=n.p+"static/media/re_viewer_bg.9a439e31.wasm"},7894:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(){"use strict";var t={771:function(t){t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};return function(){r.d(i,{default:function(){return u}});var e=r(771),t=r.n(e);let n=function(e,t,n){let r=n,i=0,a=e.length;for(;re.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(r=e.search(s));){r>0&&(i.push({type:"text",data:e.slice(0,r)}),e=e.slice(r));let s=t.findIndex(t=>e.startsWith(t.left));if(-1===(r=n(t[s].right,e,t[s].left.length)))break;let o=e.slice(0,r+t[s].right.length),l=a.test(o)?o:e.slice(t[s].left.length,r);i.push({type:"math",data:l,rawData:o,display:t[s].display}),e=e.slice(r+t[s].right.length)}return""!==e&&i.push({type:"text",data:e}),i};let o=function(e,n){let r=s(e,n.delimiters);if(1===r.length&&"text"===r[0].type)return null;let i=document.createDocumentFragment();for(let e=0;e-1===e.indexOf(" "+t+" "))&&l(r,t)}}};var u=function(e,t){if(!e)throw Error("No element provided to render");let n={};for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);n.delimiters=n.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],n.ignoredTags=n.ignoredTags||["script","noscript","style","textarea","pre","code","option"],n.ignoredClasses=n.ignoredClasses||[],n.errorCallback=n.errorCallback||console.error,n.macros=n.macros||{},l(e,n)}}(),i=i.default}()},e.exports=r(n(6320))},6533:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(4243);/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let o=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:d,iconNode:c,...f}=e;return(0,r.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:n,strokeWidth:l?24*Number(o)/Number(i):o,className:a("lucide",u),...f},[...c.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{className:l,...u}=n;return(0,r.createElement)(o,{ref:s,iconNode:t,className:a("lucide-".concat(i(e)),l),...u})});return n.displayName="".concat(e),n}},8797:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let r=(0,n(6533).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},9723:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let r=(0,n(6533).Z)("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]])},9298:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let r=(0,n(6533).Z)("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},1318:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** - * @license lucide-react v0.376.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */let r=(0,n(6533).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},2725:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(1896),i=n.n(r)},4414:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(1208),i=n.n(r)},965:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(5016)},8378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(5352);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function _(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:w=null,passHref:E,replace:x,shallow:k,scroll:T,locale:C,onClick:P,onMouseEnter:O,onTouchStart:S,legacyBehavior:N=!1,...R}=e;n=b,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let L=a.default.useContext(c.RouterContext),j=a.default.useContext(f.AppRouterContext),M=null!=L?L:j,A=!L,I=!1!==w,F=null===w?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:Z,as:D}=a.default.useMemo(()=>{if(!L){let e=_(l);return{href:e,as:g?_(g):e}}let[e,t]=(0,s.resolveHref)(L,l,!0);return{href:e,as:g?(0,s.resolveHref)(L,g):t||e}},[L,l,g]),$=a.default.useRef(Z),z=a.default.useRef(D);N&&(r=a.default.Children.only(n));let U=N?r&&"object"==typeof r&&r.ref:t,[V,H,W]=(0,h.useIntersection)({rootMargin:"200px"}),B=a.default.useCallback(e=>{(z.current!==D||$.current!==Z)&&(W(),z.current=D,$.current=Z),V(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[D,U,Z,W,V]);a.default.useEffect(()=>{M&&H&&I&&y(M,Z,D,{locale:C},{kind:F},A)},[D,Z,H,C,I,null==L?void 0:L.locale,M,A,F]);let K={ref:B,onClick(e){N||"function"!=typeof P||P(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,i,s,l,u,d){let{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};d?a.default.startTransition(f):f()}(e,M,Z,D,x,k,T,C,A)},onMouseEnter(e){N||"function"!=typeof O||O(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(I||!A)&&y(M,Z,D,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)},onTouchStart:function(e){N||"function"!=typeof S||S(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(I||!A)&&y(M,Z,D,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)}};if((0,u.isAbsoluteUrl)(D))K.href=D;else if(!N||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,p.getDomainLocale)(D,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);K.href=t||(0,m.addBasePath)((0,d.addLocale)(D,e,null==L?void 0:L.defaultLocale))}return N?a.default.cloneElement(r,K):(0,i.jsx)("a",{...R,...K,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return c}});let r=n(3006),i=n(8919),a=n(6650),s=n(7813),o=n(5352),l=n(6836),u=n(7675),d=n(8595);function c(e,t,n){let c;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,s.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,l.isLocalURL)(f))return n?[f]:f;try{c=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){c=new URL("/","http://n")}try{let e=new URL(f,c);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,d.interpolateAs)(e.pathname,e.pathname,n);s&&(t=(0,i.formatWithValidation)({pathname:s,hash:e.hash,query:(0,a.omit)(n,o)}))}let s=e.origin===c.origin?e.href.slice(e.origin.length):e.href;return n?[s,t||s]:s}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(4243),i=n(7531),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[d,c]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||d)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=o.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},o.push(n),s.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(r);let e=o.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&c(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!d){let e=(0,i.requestIdleCallback)(()=>c(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,d,f.current]),[h,d,(0,r.useCallback)(()=>{c(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5016:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l=[],u=!1,d=-1;function c(){u&&r&&(u=!1,r.length?l=r.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=o(c);u=!0;for(var t=l.length;t;){for(r=l,l=[];++d1)for(var n=1;n{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,i.default)({...a,modules:null==(n=a.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},813:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(415);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},238:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(9390),i=n(4243),a=n(813),s=n(7801);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,i.lazy)(()=>t.loader().then(o)),u=t.loading;function d(e){let o=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(s.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i.Suspense,{fallback:o,children:l})}return d.displayName="LoadableComponent",d}},7801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return a}});let r=n(9390),i=n(9745);function a(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),a=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},67:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(7546)._(n(4243)).default.createContext(null)},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return o},urlObjectKeys:function(){return s}});let r=n(8350)._(n(3006)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,a=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let d=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),""+a+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(d=d.replace("#","%23"))+o}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return a(e)}},7675:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(7279),i=n(6474)},8595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let r=n(8063),i=n(9738);function a(e,t,n){let a="",s=(0,i.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,r.getRouteMatcher)(s)(t):"")||n;a=e;let u=Object.keys(o);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=o[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(a=a.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},6474:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let r=n(3594),i=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},6836:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=n(7813),i=n(6725);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},6650:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},3006:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},8063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(7813);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},s={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(s[e]=~r.indexOf("/")?r.split("/").map(e=>a(e)):t.repeat?[a(r)]:a(r))}),s}}},9738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return l}});let r=n(3594),i=n(8706),a=n(374);function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function o(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},o=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:r,repeat:l}=s(a[1]);return n[e]={pos:o++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=s(a[1]);return n[e]={pos:o++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=o(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:a,keyPrefix:o}=e,{key:l,optional:u,repeat:d}=s(r),c=l.replace(/\W/g,"");o&&(c=""+o+c);let f=!1;(0===c.length||c.length>30)&&(f=!0),isNaN(parseInt(c.slice(0,1)))||(f=!0),f&&(c=n()),o?a[c]=""+o+l:a[c]=l;let h=t?(0,i.escapeStringRegexp)(t):"";return d?u?"(?:/"+h+"(?<"+c+">.+?))?":"/"+h+"(?<"+c+">.+?)":"/"+h+"(?<"+c+">[^/]+?)"}function d(e,t){let n;let s=(0,a.removeTrailingSlash)(e).slice(1).split("/"),o=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&a){let[n]=e.split(a[0]);return u({getSafeRouteKey:o,interceptionMarker:n,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?u({getSafeRouteKey:o,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function c(e,t){let n=d(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=o(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=d(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},7279:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function a(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},7813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return s},getURL:function(){return o},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),a=0;ai.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function o(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function c(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await c(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},7297:function(){},8544:function(e,t,n){"use strict";n.d(t,{dk:function(){return f},fw:function(){return c},zH:function(){return d}});var r=n(4243),i=n(9378),a=n(8922),s=n(2512),o=n(8046),l=n(3978);let u=(0,r.createContext)(null);function d(){var e,t;return null!=(t=null==(e=(0,r.useContext)(u))?void 0:e.value)?t:void 0}function c(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,i.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),a=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(u.Provider,{value:a},e.children)},[t])]}u.displayName="DescriptionContext";let f=Object.assign((0,l.yV)(function(e,t){let n=(0,r.useId)(),i=(0,o.B)(),{id:d="headlessui-description-".concat(n),...c}=e,f=function e(){let t=(0,r.useContext)(u);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),h=(0,s.T)(t);(0,a.e)(()=>f.register(d),[d,f.register]);let p=i||!1,m=(0,r.useMemo)(()=>({...f.slot,disabled:p}),[f.slot,p]),v={ref:h,...f.props,id:d};return(0,l.sY)({ourProps:v,theirProps:c,slot:m,defaultTag:"p",name:f.name||"Description"})}),{})},7155:function(e,t,n){"use strict";let r,i,a,s,o,l,u,d,c,f,h,p;n.d(t,{Vq:function(){return e3},ZR:function(){return e4},EM:function(){return e2},$N:function(){return e9}});var m=n(4243),v=n.t(m,2),g=n(9688),y=n(68);function _(e,t,n,r){let i=(0,y.E)(n);(0,m.useEffect)(()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}class b extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}function w(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;se()))}}}var E=n(8922);function x(e){return(0,m.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let k=new b(()=>w(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function T(e,t){let n=k.get(t),r=(0,m.useId)(),i=x(n);if((0,E.e)(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let a=i.indexOf(r),s=i.length;return -1===a&&(a=s,s+=1),a===s-1}var C=n(9378),P=n(2245),O=n(2229);let S=new Map,N=new Map;function R(e){var t;let n=null!=(t=N.get(e))?t:0;return N.set(e,n+1),0!==n||(S.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=N.get(e))?t:1;if(1===n?N.delete(e):N.set(e,n-1),1!==n)return;let r=S.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,S.delete(e))})(e)}function L(e,t,n){let r=(0,y.E)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,m.useEffect)(()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=(0,P.k)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,r,e])}var j=n(4166);let M=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),A=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var I=((r=I||{})[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),F=((i=F||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),Z=((a=Z||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),D=((s=D||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s),$=((o=$||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function z(e){null==e||e.focus({preventScroll:!0})}function U(e,t){var n,r,i;let{sorted:a=!0,relativeTo:s=null,skipElements:o=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?a?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(A)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(M)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);o.length>0&&u.length>1&&(u=u.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),s=null!=s?s:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(s))-1;if(4&t)return Math.max(0,u.indexOf(s))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,p=u.length,m;do{if(h>=p||h+p<=0)return 0;let e=c+h;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(m=u[e])||m.focus(f),h+=d}while(m!==l.activeElement);return 6&t&&null!=(i=null==(r=null==(n=m)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&i&&m.select(),2}function V(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function H(e,t,n,r){let i=(0,y.E)(n);(0,m.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function W(e,t,n,r){let i=(0,y.E)(n);(0,m.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function B(){for(var e=arguments.length,t=Array(e),n=0;n(0,O.r)(...t),[...t])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var K=n(4557);let Y=(0,m.createContext)(null);function q(e){let{children:t,node:n}=e,[r,i]=(0,m.useState)(null),a=G(null!=n?n:r);return m.createElement(Y.Provider,{value:a},t,null===a&&m.createElement(K._,{features:K.x.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,O.r)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(e)){i(r);break}}}}))}function G(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,m.useContext)(Y))?e:t}let X=w(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,P.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:i}=e,a={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(i)},s=[V()?{before(e){let{doc:t,d:n,meta:r}=e;function i(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,P.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),s=t.querySelector(r);s&&!i(s)&&(a=s)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName){if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var n;let{doc:r}=e,i=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-i.clientWidth)},after(e){let{doc:n,d:r}=e,i=n.documentElement,a=Math.max(0,i.clientWidth-i.offsetWidth),s=Math.max(0,t-a);r.style(i,"paddingRight","".concat(s,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];s.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),s.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});X.subscribe(()=>{let e=X.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&X.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&X.dispatch("TEARDOWN",n)}});var J=n(8199);function Q(){let e;let t=(e="undefined"==typeof document,(0,v.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,r]=m.useState(J.O.isHandoffComplete);return n&&!1===J.O.isHandoffComplete&&r(!1),m.useEffect(()=>{!0!==n&&r(!0)},[n]),m.useEffect(()=>J.O.handoff(),[]),!t&&n}var ee=n(2512);let et=(0,m.createContext)(()=>{});function en(e){let{value:t,children:n}=e;return m.createElement(et.Provider,{value:t},n)}let er=(0,m.createContext)(null);er.displayName="OpenClosedContext";var ei=((l=ei||{})[l.Open=1]="Open",l[l.Closed=2]="Closed",l[l.Closing=4]="Closing",l[l.Opening=8]="Opening",l);function ea(){return(0,m.useContext)(er)}function es(e){let{value:t,children:n}=e;return m.createElement(er.Provider,{value:t},n)}function eo(e){let{children:t}=e;return m.createElement(er.Provider,{value:null},t)}let el=(0,m.createContext)(!1);function eu(e){return m.createElement(el.Provider,{value:e.force},e.children)}var ed=n(3978),ec=n(8544),ef=n(1969);function eh(){let e=(0,m.useRef)(!1);return(0,E.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ep=n(792);function em(e){let t=(0,C.z)(e),n=(0,m.useRef)(!1);(0,m.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,ep.Y)(()=>{n.current&&t()})}),[t])}var ev=((u=ev||{})[u.Forwards=0]="Forwards",u[u.Backwards=1]="Backwards",u);function eg(e,t){let n=(0,m.useRef)([]),r=(0,C.z)(e);(0,m.useEffect)(()=>{let e=[...n.current];for(let[i,a]of t.entries())if(n.current[i]!==a){let i=r(t,e);return n.current=t,i}},[r,...t])}let ey=[];function e_(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||ey[0]===e.target)return;let t=e.target;t=t.closest(M),ey.unshift(null!=t?t:e.target),(ey=ey.filter(e=>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 eb=((d=eb||{})[d.None=0]="None",d[d.InitialFocus=1]="InitialFocus",d[d.TabLock=2]="TabLock",d[d.FocusLock=4]="FocusLock",d[d.RestoreFocus=8]="RestoreFocus",d[d.AutoFocus=16]="AutoFocus",d);let ew=Object.assign((0,ed.yV)(function(e,t){let n,r=(0,m.useRef)(null),i=(0,ee.T)(r,t),{initialFocus:a,initialFocusFallback:s,containers:o,features:l=15,...u}=e;Q()||(l=0);let d=B(r);!function(e,t){let{ownerDocument:n}=t,r=!!(8&e),i=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,m.useRef)(ey.slice());return eg((e,n)=>{let[r]=e,[i]=n;!0===i&&!1===r&&(0,ep.Y)(()=>{t.current.splice(0)}),!1===i&&!0===r&&(t.current=ey.slice())},[e,ey,t]),(0,C.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);eg(()=>{r||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&z(i())},[r]),em(()=>{r&&z(i())})}(l,{ownerDocument:d});let c=function(e,t){let{ownerDocument:n,container:r,initialFocus:i,initialFocusFallback:a}=t,s=(0,m.useRef)(null),o=T(!!(1&e),"focus-trap#initial-focus"),l=eh();return eg(()=>{if(0===e)return;if(!o){null!=a&&a.current&&z(a.current);return}let t=r.current;t&&(0,ep.Y)(()=>{if(!l.current)return;let r=null==n?void 0:n.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===r){s.current=r;return}}else if(t.contains(r)){s.current=r;return}if(null!=i&&i.current)z(i.current);else{if(16&e){if(U(t,I.First|I.AutoFocus)!==F.Error)return}else if(U(t,I.First)!==F.Error)return;if(null!=a&&a.current&&(z(a.current),(null==n?void 0:n.activeElement)===a.current))return;console.warn("There are no focusable elements inside the ")}s.current=null==n?void 0:n.activeElement})},[a,o,e]),s}(l,{ownerDocument:d,container:r,initialFocus:a,initialFocusFallback:s});!function(e,t){let{ownerDocument:n,container:r,containers:i,previousActiveElement:a}=t,s=eh(),o=!!(4&e);_(null==n?void 0:n.defaultView,"focus",e=>{if(!o||!s.current)return;let t=e_(i);r.current instanceof HTMLElement&&t.add(r.current);let n=a.current;if(!n)return;let l=e.target;l&&l instanceof HTMLElement?eE(t,l)?(a.current=l,z(l)):(e.preventDefault(),e.stopPropagation(),z(n)):z(a.current)},!0)}(l,{ownerDocument:d,container:r,containers:o,previousActiveElement:c});let f=(n=(0,m.useRef)(0),W(!0,"keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),h=(0,C.z)(e=>{let t=r.current;t&&(0,j.E)(f.current,{[ev.Forwards]:()=>{U(t,I.First,{skipElements:[e.relatedTarget,s]})},[ev.Backwards]:()=>{U(t,I.Last,{skipElements:[e.relatedTarget,s]})}})}),p=T(!!(2&l),"focus-trap#tab-lock"),v=(0,ef.G)(),g=(0,m.useRef)(!1);return m.createElement(m.Fragment,null,p&&m.createElement(K._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:K.x.Focusable}),(0,ed.sY)({ourProps:{ref:i,onKeyDown(e){"Tab"==e.key&&(g.current=!0,v.requestAnimationFrame(()=>{g.current=!1}))},onBlur(e){if(!(4&l))return;let t=e_(o);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(eE(t,n)||(g.current?U(r.current,(0,j.E)(f.current,{[ev.Forwards]:()=>I.Next,[ev.Backwards]:()=>I.Previous})|I.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&z(e.target)))}},theirProps:u,defaultTag:"div",name:"FocusTrap"}),p&&m.createElement(K._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:K.x.Focusable}))}),{features:eb});function eE(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var ex=n(4231);let ek=m.Fragment,eT=(0,ed.yV)(function(e,t){let n=(0,m.useRef)(null),r=(0,ee.T)((0,ee.h)(e=>{n.current=e}),t),i=B(n),a=function(e){let t=(0,m.useContext)(el),n=(0,m.useContext)(eP),r=B(e),[i,a]=(0,m.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(J.O.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return(0,m.useEffect)(()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))},[i,r]),(0,m.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),i}(n),[s]=(0,m.useState)(()=>{var e;return J.O.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null}),o=(0,m.useContext)(eO),l=Q();return(0,E.e)(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),(0,E.e)(()=>{if(s&&o)return o.register(s)},[o,s]),em(()=>{var e;a&&s&&(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),l&&a&&s?(0,ex.createPortal)((0,ed.sY)({ourProps:{ref:r},theirProps:e,slot:{},defaultTag:ek,name:"Portal"}),s):null}),eC=m.Fragment,eP=(0,m.createContext)(null),eO=(0,m.createContext)(null),eS=(0,ed.yV)(function(e,t){let n=(0,ee.T)(t),{enabled:r=!0,...i}=e;return r?m.createElement(eT,{...i,ref:n}):(0,ed.sY)({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:ek,name:"Portal"})}),eN=(0,ed.yV)(function(e,t){let{target:n,...r}=e,i={ref:(0,ee.T)(t)};return m.createElement(eP.Provider,{value:n},(0,ed.sY)({ourProps:i,theirProps:r,defaultTag:eC,name:"Popover.Group"}))}),eR=Object.assign(eS,{Group:eN});var eL=((c=eL||{})[c.None=0]="None",c[c.Closed=1]="Closed",c[c.Enter=2]="Enter",c[c.Leave=4]="Leave",c),ej=n(2143);function eM(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:e$)!==m.Fragment||1===m.Children.count(e.children)}let eA=(0,m.createContext)(null);eA.displayName="TransitionContext";var eI=((f=eI||{}).Visible="visible",f.Hidden="hidden",f);let eF=(0,m.createContext)(null);function eZ(e){return"children"in e?eZ(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function eD(e,t){let n=(0,y.E)(e),r=(0,m.useRef)([]),i=eh(),a=(0,ef.G)(),s=(0,C.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ed.l4.Hidden,s=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==s&&((0,j.E)(t,{[ed.l4.Unmount](){r.current.splice(s,1)},[ed.l4.Hidden](){r.current[s].state="hidden"}}),a.microTask(()=>{var e;!eZ(r)&&i.current&&(null==(e=n.current)||e.call(n))}))}),o=(0,C.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,ed.l4.Unmount)}),l=(0,m.useRef)([]),u=(0,m.useRef)(Promise.resolve()),d=(0,m.useRef)({enter:[],leave:[]}),c=(0,C.z)((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(d.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=(0,C.z)((e,t,n)=>{Promise.all(d.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,m.useMemo)(()=>({children:r,register:o,unregister:s,onStart:c,onStop:f,wait:u,chains:d}),[o,s,r,c,f,d,u])}eF.displayName="NestingContext";let e$=m.Fragment,ez=ed.VN.RenderStrategy,eU=(0,ed.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,s=(0,m.useRef)(null),o=eM(e),l=(0,ee.T)(...o?[s,t]:null===t?[]:[t]);Q();let u=ea();if(void 0===n&&null!==u&&(n=(u&ei.Open)===ei.Open),void 0===n)throw Error("A is used but it is missing a `show={true | false}` prop.");let[d,c]=(0,m.useState)(n?"visible":"hidden"),f=eD(()=>{n||c("hidden")}),[h,p]=(0,m.useState)(!0),v=(0,m.useRef)([n]);(0,E.e)(()=>{!1!==h&&v.current[v.current.length-1]!==n&&(v.current.push(n),p(!1))},[v,n]);let g=(0,m.useMemo)(()=>({show:n,appear:r,initial:h}),[n,r,h]);L(n,s,()=>c("hidden")),(0,E.e)(()=>{n?c("visible"):eZ(f)||null===s.current||c("hidden")},[n,f]);let y={unmount:i},_=(0,C.z)(()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),b=(0,C.z)(()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)});return m.createElement(eF.Provider,{value:f},m.createElement(eA.Provider,{value:g},(0,ed.sY)({ourProps:{...y,as:m.Fragment,children:m.createElement(eV,{ref:l,...y,...a,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:m.Fragment,features:ez,visible:"visible"===d,name:"Transition"})))}),eV=(0,ed.yV)(function(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:o,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:f,leave:h,leaveFrom:p,leaveTo:v,...g}=e,y=(0,m.useRef)(null),_=eM(e),b=(0,ee.T)(..._?[y,t]:null===t?[]:[t]),w=null==(n=g.unmount)||n?ed.l4.Unmount:ed.l4.Hidden,{show:x,appear:k,initial:T}=function(){let e=(0,m.useContext)(eA);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[O,S]=(0,m.useState)(x?"visible":"hidden"),N=function(){let e=(0,m.useContext)(eF);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:R,unregister:L}=N;(0,E.e)(()=>R(y),[R,y]),(0,E.e)(()=>{if(w===ed.l4.Hidden&&y.current){if(x&&"visible"!==O){S("visible");return}return(0,j.E)(O,{hidden:()=>L(y),visible:()=>R(y)})}},[O,y,R,L,x,w]);let M=Q();(0,E.e)(()=>{if(_&&M&&"visible"===O&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,O,M,_]);let A=T&&!k,I=k&&x&&T,F=(0,m.useRef)(!1),Z=eD(()=>{F.current||(S("hidden"),L(y))},N),D=(0,C.z)(e=>{F.current=!0,Z.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==a||a():"leave"===e&&(null==o||o())})}),$=(0,C.z)(e=>{let t=e?"enter":"leave";F.current=!1,Z.onStop(y,t,e=>{"enter"===e?null==s||s():"leave"===e&&(null==l||l())}),"leave"!==t||eZ(Z)||(S("hidden"),L(y))});(0,m.useEffect)(()=>{_&&i||(D(x),$(x))},[x,_,i]);let[,z]=function(e,t,n,r){let[i,a]=(0,m.useState)(n),{hasFlag:s,addFlag:o,removeFlag:l}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,m.useState)(e),r=(0,m.useCallback)(e=>n(e),[t]),i=(0,m.useCallback)(e=>n(t=>t|e),[t]),a=(0,m.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:a,removeFlag:(0,m.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,m.useCallback)(e=>n(t=>t^e),[n])}}(e&&i?3:0),u=(0,m.useRef)(!1),d=(0,m.useRef)(!1),c=(0,ef.G)();return(0,E.e)(function i(){var s;if(!e)return;n&&a(!0);let f=t.current;return f?(null==(s=null==r?void 0:r.start)||s.call(r,n),function(e,t){let{prepare:n,run:r,done:i,inFlight:a}=t,s=(0,P.k)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let i=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=i}(e,{prepare:n,inFlight:a}),s.nextFrame(()=>{s.add(function(e,t){let n;let r=(n={called:!1},function(){for(var e=arguments.length,r=Array(e),i=0;i{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),u=o+l;if(0!==u){let t=i.group(n=>{let i=n.setTimeout(()=>{r(),n.dispose()},u);n.addEventListener(e,"transitionrun",a=>{a.target===a.currentTarget&&(i(),n.addEventListener(e,"transitioncancel",e=>{e.target===e.currentTarget&&(r(),t())}))})});i.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(r(),i.dispose())})}else r();return i.dispose}(e,i)),r()}),s.dispose}(f,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,d.current||(n?(o(3),l(4)):(o(4),l(2)))},run(){d.current?n?(l(3),o(4)):(l(4),o(3)):n?l(1):o(1)},done(){var e;d.current&&"function"==typeof f.getAnimations&&f.getAnimations().length>0||(u.current=!1,l(7),n||a(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):n?(o(3),c.nextFrame(()=>i())):void 0},[e,n,t,c]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(!(!i||!_||!M||A),y,x,{start:D,end:$}),U=(0,ed.oA)({ref:b,className:(null==(r=(0,ej.A)(g.className,I&&u,I&&d,z.enter&&u,z.enter&&z.closed&&d,z.enter&&!z.closed&&c,z.leave&&h,z.leave&&!z.closed&&p,z.leave&&z.closed&&v,!z.transition&&x&&f))?void 0:r.trim())||void 0,...function(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}(z)}),V=0;return"visible"===O&&(V|=ei.Open),"hidden"===O&&(V|=ei.Closed),z.enter&&(V|=ei.Opening),z.leave&&(V|=ei.Closing),m.createElement(eF.Provider,{value:Z},m.createElement(es,{value:V},(0,ed.sY)({ourProps:U,theirProps:g,defaultTag:e$,features:ez,visible:"visible"===O,name:"Transition.Child"})))}),eH=(0,ed.yV)(function(e,t){let n=null!==(0,m.useContext)(eA),r=null!==ea();return m.createElement(m.Fragment,null,!n&&r?m.createElement(eU,{ref:t,...e}):m.createElement(eV,{ref:t,...e}))}),eW=Object.assign(eU,{Child:eH,Root:eU});var eB=((h=eB||{})[h.Open=0]="Open",h[h.Closed=1]="Closed",h),eK=((p=eK||{})[p.SetTitleId=0]="SetTitleId",p);let eY={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eq=(0,m.createContext)(null);function eG(e){let t=(0,m.useContext)(eq);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eG),t}return t}function eX(e,t){return(0,j.E)(t.type,eY,e,t)}eq.displayName="DialogContext";let eJ=(0,ed.yV)(function(e,t){var n;let r,i,a,s,o,l,u,d,c,f,h=(0,m.useId)(),{id:p="headlessui-dialog-".concat(h),open:v,onClose:b,initialFocus:w,role:k="dialog",autoFocus:S=!0,__demoMode:N=!1,unmount:A=!1,...I}=e,F=(0,m.useRef)(!1);k="dialog"===k||"alertdialog"===k?k:(F.current||(F.current=!0,console.warn("Invalid role [".concat(k,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let Z=ea();void 0===v&&null!==Z&&(v=(Z&ei.Open)===ei.Open);let $=(0,m.useRef)(null),z=(0,ee.T)($,t),U=B($),K=v?0:1,[Y,q]=(0,m.useReducer)(eX,{titleId:null,descriptionId:null,panelRef:(0,m.createRef)()}),J=(0,C.z)(()=>b(!1)),et=(0,C.z)(e=>q({type:0,id:e})),er=!!Q()&&0===K,[es,el]=(r=(0,m.useContext)(eO),i=(0,m.useRef)([]),a=(0,C.z)(e=>(i.current.push(e),r&&r.register(e),()=>s(e))),s=(0,C.z)(e=>{let t=i.current.indexOf(e);-1!==t&&i.current.splice(t,1),r&&r.unregister(e)}),o=(0,m.useMemo)(()=>({register:a,unregister:s,portals:i}),[a,s,i]),[i,(0,m.useMemo)(()=>function(e){let{children:t}=e;return m.createElement(eO.Provider,{value:o},t)},[o])]),ef=G(),{resolveContainers:eh}=function(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=B(n),i=(0,C.z)(()=>{var i,a;let s=[];for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"current"in t&&t.current instanceof HTMLElement&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(i=null==r?void 0:r.querySelectorAll("html > *, body > *"))?i:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(a=null==n?void 0:n.getRootNode())?void 0:a.host))||s.some(t=>e.contains(t))||s.push(e));return s});return{resolveContainers:i,contains:(0,C.z)(e=>i().some(t=>t.contains(e)))}}({mainTreeNode:ef,portals:es,defaultContainers:[{get current(){var ep;return null!=(ep=Y.panelRef.current)?ep:$.current}}]}),em=null!==Z&&(Z&ei.Closing)===ei.Closing;(function(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=T(e,"inert-others");(0,E.e)(()=>{var e,i;if(!r)return;let a=(0,P.k)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&a.add(R(t));let s=null!=(i=null==t?void 0:t())?i:[];for(let e of s){if(!e)continue;let t=(0,O.r)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||a.add(R(e));n=n.parentElement}}return a.dispose},[r,t,n])})(!N&&!em&&er,{allowed:(0,C.z)(()=>{var e,t;return[null!=(t=null==(e=$.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,C.z)(()=>{var e;return[null!=(e=null==ef?void 0:ef.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),n=e=>{e.preventDefault(),J()},l=T(er,"outside-click"),u=(0,y.E)(n),d=(0,m.useCallback)(function(e,t){if(e.defaultPrevented)return;let n=t(e);if(null!==n&&n.getRootNode().contains(n)&&n.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(eh)){if(null===t)continue;let r=t instanceof HTMLElement?t:t.current;if(null!=r&&r.contains(n)||e.composed&&e.composedPath().includes(r))return}return!function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,O.r)(e))?void 0:t.body)&&(0,j.E)(n,{0:()=>e.matches(M),1(){let t=e;for(;null!==t;){if(t.matches(M))return!0;t=t.parentElement}return!1}})}(n,D.Loose)&&-1!==n.tabIndex&&e.preventDefault(),u.current(e,n)}},[u]),c=(0,m.useRef)(null),H(l,"pointerdown",e=>{var t,n;c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),H(l,"mousedown",e=>{var t,n;c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),H(l,"click",e=>{V()||/Android/gi.test(window.navigator.userAgent)||c.current&&(d(e,()=>c.current),c.current=null)},!0),f=(0,m.useRef)({x:0,y:0}),H(l,"touchstart",e=>{f.current.x=e.touches[0].clientX,f.current.y=e.touches[0].clientY},!0),H(l,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-f.current.x)>=30||Math.abs(t.y-f.current.y)>=30))return d(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),W(l,"blur",e=>d(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=T(e,"escape");_(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===g.R.Escape&&n(e))})}(er,null==U?void 0:U.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),J()}),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=x(X),i=t?r.get(t):void 0;i&&i.count,(0,E.e)(()=>{if(!(!t||!e))return X.dispatch("PUSH",t,n),()=>X.dispatch("POP",t,n)},[e,t])}(T(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!N&&!em&&er,U,eh),L(er,$,J);let[ev,eg]=(0,ec.fw)(),ey=(0,m.useMemo)(()=>[{dialogState:K,close:J,setTitleId:et,unmount:A},Y],[K,Y,J,et,A]),e_=(0,m.useMemo)(()=>({open:0===K}),[K]),eE={ref:z,id:p,role:k,tabIndex:-1,"aria-modal":N?void 0:0===K||void 0,"aria-labelledby":Y.titleId,"aria-describedby":ev,unmount:A},ex=!function(){var e;let[t]=(0,m.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,m.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,E.e)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),ek=eb.None;return er&&!N&&(ek|=eb.RestoreFocus,ek|=eb.TabLock,S&&(ek|=eb.AutoFocus),ex&&(ek|=eb.InitialFocus)),m.createElement(eo,null,m.createElement(eu,{force:!0},m.createElement(eR,null,m.createElement(eq.Provider,{value:ey},m.createElement(eN,{target:$},m.createElement(eu,{force:!1},m.createElement(eg,{slot:e_},m.createElement(el,null,m.createElement(ew,{initialFocus:w,initialFocusFallback:$,containers:eh,features:ek},m.createElement(en,{value:J},(0,ed.sY)({ourProps:eE,theirProps:I,slot:e_,defaultTag:eQ,features:e0,visible:0===K,name:"Dialog"})))))))))))}),eQ="div",e0=ed.VN.RenderStrategy|ed.VN.Static,e1=(0,ed.yV)(function(e,t){let{transition:n=!1,open:r,...i}=e,a=ea(),s=e.hasOwnProperty("open")||null!==a,o=e.hasOwnProperty("onClose");if(!s&&!o)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!o)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&"boolean"!=typeof e.open)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(e.open));if("function"!=typeof e.onClose)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(e.onClose));return(void 0!==r||n)&&!i.static?m.createElement(q,null,m.createElement(eW,{show:r,transition:n,unmount:i.unmount},m.createElement(eJ,{ref:t,...i}))):m.createElement(q,null,m.createElement(eJ,{ref:t,open:r,...i}))}),e2=(0,ed.yV)(function(e,t){let n=(0,m.useId)(),{id:r="headlessui-dialog-panel-".concat(n),transition:i=!1,...a}=e,[{dialogState:s,unmount:o},l]=eG("Dialog.Panel"),u=(0,ee.T)(t,l.panelRef),d=(0,m.useMemo)(()=>({open:0===s}),[s]),c=(0,C.z)(e=>{e.stopPropagation()});return m.createElement(i?eH:m.Fragment,{...i?{unmount:o}:{}},(0,ed.sY)({ourProps:{ref:u,id:r,onClick:c},theirProps:a,slot:d,defaultTag:"div",name:"Dialog.Panel"}))}),e4=(0,ed.yV)(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:a}]=eG("Dialog.Backdrop"),s=(0,m.useMemo)(()=>({open:0===i}),[i]);return m.createElement(n?eH:m.Fragment,{...n?{unmount:a}:{}},(0,ed.sY)({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))}),e9=(0,ed.yV)(function(e,t){let n=(0,m.useId)(),{id:r="headlessui-dialog-title-".concat(n),...i}=e,[{dialogState:a,setTitleId:s}]=eG("Dialog.Title"),o=(0,ee.T)(t);(0,m.useEffect)(()=>(s(r),()=>s(null)),[r,s]);let l=(0,m.useMemo)(()=>({open:0===a}),[a]);return(0,ed.sY)({ourProps:{ref:o,id:r},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),e3=Object.assign(e1,{Panel:e2,Title:e9,Description:ec.dk})},9688:function(e,t,n){"use strict";let r;n.d(t,{R:function(){return i}});var i=((r=i||{}).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)},4395:function(e,t,n){"use strict";n.d(t,{rs:function(){return ee}});let r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;var a=n(4243);let s=null,o=new Set,l=new Map,u=!1,d=!1,c={Tab:!0,Escape:!0};function f(e,t){for(let n of o)n(e,t)}function h(e){var t,n;u=!0,e.metaKey||(t=/^Mac/i,!("undefined"!=typeof window&&null!=window.navigator&&t.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform))&&e.altKey)||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(s="keyboard",f("keyboard",e))}function p(e){s="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(u=!0,f("pointer",e))}function m(e){var t,n;(0===e.mozInputSource&&e.isTrusted?0:(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some(e=>t.test(e.brand)))||t.test(window.navigator.userAgent))&&e.pointerType)?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(u=!0,s="virtual")}function v(e){e.target!==window&&e.target!==document&&(u||d||(s="virtual",f("virtual",e)),u=!1,d=!1)}function g(){u=!1,d=!0}function y(e){if("undefined"==typeof window||l.get(i(e)))return;let t=i(e),n=r(e),a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){u=!0,a.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",m,!0),t.addEventListener("focus",v,!0),t.addEventListener("blur",g,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",p,!0),n.addEventListener("pointermove",p,!0),n.addEventListener("pointerup",p,!0)):(n.addEventListener("mousedown",p,!0),n.addEventListener("mousemove",p,!0),n.addEventListener("mouseup",p,!0)),t.addEventListener("beforeunload",()=>{_(e)},{once:!0}),l.set(t,{focus:a})}let _=(e,t)=>{let n=i(e),a=r(e);t&&a.removeEventListener("DOMContentLoaded",t),l.has(n)&&(n.HTMLElement.prototype.focus=l.get(n).focus,a.removeEventListener("keydown",h,!0),a.removeEventListener("keyup",h,!0),a.removeEventListener("click",m,!0),n.removeEventListener("focus",v,!0),n.removeEventListener("blur",g,!1),"undefined"!=typeof PointerEvent?(a.removeEventListener("pointerdown",p,!0),a.removeEventListener("pointermove",p,!0),a.removeEventListener("pointerup",p,!0)):(a.removeEventListener("mousedown",p,!0),a.removeEventListener("mousemove",p,!0),a.removeEventListener("mouseup",p,!0)),l.delete(n))};function b(){return"pointer"!==s}"undefined"!=typeof document&&function(e){let t;let n=r(void 0);"loading"!==n.readyState?y(void 0):(t=()=>{y(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>_(e,t)}();let w=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),E="undefined"!=typeof document?a.useLayoutEffect:()=>{};class x{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function k(e){let t=(0,a.useRef)({isFocused:!1,observer:null});E(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,a.useRef)(null);return E(()=>{t.current=e},[e]),(0,a.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,a.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new x("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let T=!1,C=0;function P(){T=!0,setTimeout(()=>{T=!1},50)}function O(e){"touch"===e.pointerType&&P()}function S(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",O):document.addEventListener("touchend",P),C++,()=>{--C>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",O):document.removeEventListener("touchend",P))}}var N=n(2229),R=n(1969),L=n(9378),j=n(8922);function M(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}var A=n(2512),I=n(8046),F=n(4231);function Z(e,t){return e?e+"["+t+"]":t}var D=n(3978),$=n(4557);let z=(0,a.createContext)(null);function U(e){let{children:t}=e,n=(0,a.useContext)(z);if(!n)return a.createElement(a.Fragment,null,t);let{target:r}=n;return r?(0,F.createPortal)(a.createElement(a.Fragment,null,t),r):null}function V(e){let{data:t,form:n,disabled:r,onReset:i,overrides:s}=e,[o,l]=(0,a.useState)(null),u=(0,R.G)();return(0,a.useEffect)(()=>{if(i&&o)return u.addEventListener(o,"reset",i)},[o,n,i]),a.createElement(U,null,a.createElement(H,{setForm:l,formId:n}),(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,a]of Object.entries(t))!function t(n,r,i){if(Array.isArray(i))for(let[e,a]of i.entries())t(n,Z(r,e.toString()),a);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,"".concat(i)]):null==i?n.push([r,""]):e(i,r,n)}(r,Z(n,i),a);return r})(t).map(e=>{let[t,i]=e;return a.createElement($._,{features:$.x.Hidden,...(0,D.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:i,...s})})}))}function H(e){let{setForm:t,formId:n}=e;return(0,a.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:a.createElement($._,{features:$.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}let W=(0,a.createContext)(void 0);function B(){return(0,a.useContext)(W)}var K=n(8544),Y=n(9688);let q=(0,a.createContext)(null);function G(e){var t,n,r;let i=null!=(n=null==(t=(0,a.useContext)(q))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}q.displayName="LabelContext";let X=Object.assign((0,D.yV)(function(e,t){var n;let r=(0,a.useId)(),i=function e(){let t=(0,a.useContext)(q);if(null===t){let t=Error("You used a