(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9087],{1455:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(97839);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={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"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:f,...h}=e;return(0,n.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:r,strokeWidth:l?24*Number(s)/Number(o):s,className:i("lucide",u),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(h)&&{"aria-hidden":"true"},...h},[...f.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:l,...u}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:i("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...u})});return r.displayName=o(e),r}},5498:(e,t,r)=>{"use strict";r.d(t,{default:()=>o.a});var n=r(15971),o=r.n(n)},11939:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(97839),o=r(59240),i=r(22509),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[o,a]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[f,h]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===f?e:"none"},[f]),(0,i.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,o=s(t);e?h("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):r&&n!==o?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,i.N)(()=>{if(o){var e;let t,r=null!=(e=o.ownerDocument.defaultView)?e:window,n=e=>{let n=s(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&n&&(h("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=s(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,o.s)(a.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},12548:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},15092:(e,t,r)=>{"use strict";r.d(t,{n:()=>f});var n=r(97839),o=r(59240),i=r(29398),a=r(28321),s=r(66695),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},f=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:f=!1,onMountAutoFocus:g,onUnmountAutoFocus:v,...y}=e,[b,E]=n.useState(null),w=(0,a.c)(g),C=(0,a.c)(v),A=n.useRef(null),T=(0,o.s)(t,e=>E(e)),S=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(f){let e=function(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?A.current=t:p(A.current,{select:!0})},t=function(e){if(S.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(A.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[f,b,S.paused]),n.useEffect(()=>{if(b){m.add(S);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(p(n,{select:t}),document.activeElement!==r)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,C),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,C),m.remove(S)},0)}}},[b,w,C,S]);let _=n.useCallback(e=>{if(!r&&!f||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,i]=function(e){let t=h(e);return[d(t,e),d(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&p(i,{select:!0})):(e.preventDefault(),r&&p(o,{select:!0})):n===t&&e.preventDefault()}},[r,f,S.paused]);return(0,s.jsx)(i.sG.div,{tabIndex:-1,...y,ref:T,onKeyDown:_})});function h(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function d(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}f.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=g(e,t)).unshift(t)},remove(t){var r;null==(r=(e=g(e,t))[0])||r.resume()}}}();function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},15709:(e,t,r)=>{"use strict";function n(e,t,{signal:r,edges:o}={}){let i,a=null,s=null!=o&&o.includes("leading"),l=null==o||o.includes("trailing"),u=()=>{null!==a&&(e.apply(i,a),i=void 0,a=null)},c=null,f=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,l&&u(),h()},t)},h=()=>{null!==c&&(clearTimeout(c),c=null),i=void 0,a=null},d=function(...e){if(r?.aborted)return;i=this,a=e;let t=null==c;f(),s&&t&&u()};return d.schedule=f,d.cancel=h,d.flush=()=>{u()},r?.addEventListener("abort",h,{once:!0}),d}r.d(t,{s:()=>n})},15971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return p},initScriptLoader:function(){return m}});let n=r(52748),o=r(40841),i=r(66695),a=n._(r(11614)),s=o._(r(97839)),l=r(19302),u=r(34706),c=r(49134),f=new Map,h=new Set,d=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:s="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,p=r||t;if(p&&h.has(p))return;if(f.has(t)){h.add(p),f.get(t).then(n,c);return}let m=()=>{o&&o(),h.add(p)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(g.innerHTML=i.__html||"",m()):s?(g.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",m()):t&&(g.src=t,f.set(t,v)),(0,u.setAttributesFromProps)(g,e),"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),d&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(g)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>d(e))}):d(e)}function m(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:u="afterInteractive",onError:f,stylesheets:p,...m}=e,{updateScripts:g,scripts:v,getIsSsr:y,appDir:b,nonce:E}=(0,s.useContext)(l.HeadManagerContext);E=m.nonce||E;let w=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;w.current||(o&&e&&h.has(e)&&o(),w.current=!0)},[o,t,r]);let C=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!C.current){if("afterInteractive"===u)d(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>d(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>d(e))}));C.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(g?(v[u]=(v[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...m,nonce:E}]),g(v)):y&&y()?h.add(t||r):y&&!y()&&d({...e,nonce:E})),b){if(p&&p.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:t}])+")"}});else return a.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:E,crossOrigin:m.crossOrigin}:{as:"script",nonce:E,crossOrigin:m.crossOrigin}),(0,i.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...m,id:t}])+")"}});"afterInteractive"===u&&r&&a.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:E,crossOrigin:m.crossOrigin}:{as:"script",nonce:E,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("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)},18540:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ea,Y9:()=>eo,q7:()=>en,bL:()=>er,l9:()=>ei});var n=r(97839),o=r(34468),i=r(20052),a=r(59240),s=r(12548),l=r(80233),u=r(29398),c=r(22509),f=r(11939),h=r(68145),d=r(66695),p="Collapsible",[m,g]=(0,o.A)(p),[v,y]=m(p),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...c}=e,[f,m]=(0,l.i)({prop:o,defaultProp:null!=i&&i,onChange:s,caller:p});return(0,d.jsx)(v,{scope:r,disabled:a,contentId:(0,h.B)(),open:f,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,d.jsx)(u.sG.div,{"data-state":S(f),"data-disabled":a?"":void 0,...c,ref:t})})});b.displayName=p;var E="CollapsibleTrigger",w=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=y(E,r);return(0,d.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":S(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,s.mK)(e.onClick,o.onOpenToggle)})});w.displayName=E;var C="CollapsibleContent",A=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=y(C,e.__scopeCollapsible);return(0,d.jsx)(f.C,{present:r||o.open,children:e=>{let{present:r}=e;return(0,d.jsx)(T,{...n,ref:t,present:r})}})});A.displayName=C;var T=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:i,...s}=e,l=y(C,r),[f,h]=n.useState(o),p=n.useRef(null),m=(0,a.s)(t,p),g=n.useRef(0),v=g.current,b=n.useRef(0),E=b.current,w=l.open||f,A=n.useRef(w),T=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=p.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,A.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),h(o)}},[l.open,o]),(0,d.jsx)(u.sG.div,{"data-state":S(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...s,ref:m,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":E?"".concat(E,"px"):void 0,...e.style},children:w&&i})});function S(e){return e?"open":"closed"}var _=r(89183),R="Accordion",x=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[N,L,P]=(0,i.N)(R),[O,H]=(0,o.A)(R,[P,g]),I=g(),M=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,d.jsx)(N.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,d.jsx)(G,{...n,ref:t}):(0,d.jsx)(j,{...n,ref:t})})});M.displayName=R;var[B,F]=O(R),[k,D]=O(R,{collapsible:!1}),j=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[u,c]=(0,l.i)({prop:r,defaultProp:null!=o?o:"",onChange:i,caller:R});return(0,d.jsx)(B,{scope:e.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:n.useCallback(()=>a&&c(""),[a,c]),children:(0,d.jsx)(k,{scope:e.__scopeAccordion,collapsible:a,children:(0,d.jsx)(V,{...s,ref:t})})})}),G=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:i=()=>{},...a}=e,[s,u]=(0,l.i)({prop:r,defaultProp:null!=o?o:[],onChange:i,caller:R}),c=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),f=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,d.jsx)(B,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:f,children:(0,d.jsx)(k,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(V,{...a,ref:t})})})}),[U,W]=O(R),V=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:o,dir:i,orientation:l="vertical",...c}=e,f=n.useRef(null),h=(0,a.s)(f,t),p=L(r),m="ltr"===(0,_.jH)(i),g=(0,s.mK)(e.onKeyDown,e=>{var t;if(!x.includes(e.key))return;let r=e.target,n=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=n.findIndex(e=>e.ref.current===r),i=n.length;if(-1===o)return;e.preventDefault();let a=o,s=i-1,u=()=>{(a=o+1)>s&&(a=0)},c=()=>{(a=o-1){let{__scopeAccordion:r,value:n,...o}=e,i=W(K,r),a=F(K,r),s=I(r),l=(0,h.B)(),u=n&&a.value.includes(n)||!1,c=i.disabled||e.disabled;return(0,d.jsx)(X,{scope:r,open:u,disabled:c,triggerId:l,children:(0,d.jsx)(b,{"data-orientation":i.orientation,"data-state":et(u),...s,...o,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});Z.displayName=K;var Y="AccordionHeader",q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=W(R,r),i=z(Y,r);return(0,d.jsx)(u.sG.h3,{"data-orientation":o.orientation,"data-state":et(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});q.displayName=Y;var $="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=W(R,r),i=z($,r),a=D($,r),s=I(r);return(0,d.jsx)(N.ItemSlot,{scope:r,children:(0,d.jsx)(w,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});J.displayName=$;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=W(R,r),i=z(Q,r),a=I(r);return(0,d.jsx)(A,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=M,en=Z,eo=q,ei=J,ea=ee},18852:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let i=t.formatters[n];if("function"==typeof i){let t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(o(e,r))return!1;for(let r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(73539),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function o(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function i(e,t,r){var o=n(e,t,"set");if(o.set)o.set.call(e,r);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=r}return r}r.d(t,{N:()=>h});var a,s=r(97839),l=r(34468),u=r(59240),c=r(47666),f=r(66695);function h(e){let t=e+"CollectionProvider",[r,n]=(0,l.A)(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:r}=e,n=s.useRef(null),i=s.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:i,collectionRef:n,children:r})};a.displayName=t;let h=e+"CollectionSlot",d=(0,c.TL)(h),p=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=i(h,r),a=(0,u.s)(t,o.collectionRef);return(0,f.jsx)(d,{ref:a,children:n})});p.displayName=h;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,c.TL)(m),y=s.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,a=s.useRef(null),l=(0,u.s)(t,a),c=i(m,r);return s.useEffect(()=>(c.itemMap.set(a,{ref:a,...o}),()=>void c.itemMap.delete(a))),(0,f.jsx)(v,{...{[g]:""},ref:l,children:n})});return y.displayName=m,[{Provider:a,Slot:p,ItemSlot:y},function(t){let r=i(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var d=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),o=n>=0?n:r+n;return o=r?-1:o}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}a=new WeakMap,class e extends Map{set(e,t){return d.get(this)&&(this.has(e)?o(this,a)[o(this,a).indexOf(e)]=e:o(this,a).push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),s=o(this,a).length,l=m(e),u=l>=0?l:s+l,c=u=s?-1:u;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,r),this;let f=this.size+ +!i;l=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r=0;e--){let r=this.at(e);i=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[i,r,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n0&&(o=r-1);for(let e=t;e{"use strict";r.d(t,{i3:()=>tR,UC:()=>t_,ZL:()=>tS,bL:()=>tA,l9:()=>tT});var n=r(97839),o=r(12548),i=r(59240),a=r(34468),s=r(83349),l=r(37475),u=r(15092),c=r(68145);let f=["top","right","bottom","left"],h=Math.min,d=Math.max,p=Math.round,m=Math.floor,g=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function b(e,t){return"function"==typeof e?e(t):e}function E(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function C(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}let T=new Set(["top","bottom"]);function S(e){return T.has(E(e))?"y":"x"}function _(e){return e.replace(/start|end/g,e=>y[e])}let R=["left","right"],x=["right","left"],N=["top","bottom"],L=["bottom","top"];function P(e){return e.replace(/left|right|bottom|top/g,e=>v[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function H(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function I(e,t,r){let n,{reference:o,floating:i}=e,a=S(t),s=C(S(t)),l=A(s),u=E(t),c="y"===a,f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;switch(u){case"top":n={x:f,y:o.y-i.height};break;case"bottom":n={x:f,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:h};break;case"left":n={x:o.x-i.width,y:h};break;default:n={x:o.x,y:o.y}}switch(w(t)){case"start":n[s]-=d*(r&&c?-1:1);break;case"end":n[s]+=d*(r&&c?-1:1)}return n}let M=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=I(u,n,l),h=n,d={},p=0;for(let r=0;re[t]>=0)}let D=new Set(["left","top"]);async function j(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=E(r),s=w(r),l="y"===S(r),u=D.has(a)?-1:1,c=i&&l?-1:1,f=b(t,e),{mainAxis:h,crossAxis:d,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*c,y:h*u}:{x:h*u,y:d*c}}function G(){return"undefined"!=typeof window}function U(e){return K(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(K(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function K(e){return!!G()&&(e instanceof Node||e instanceof W(e).Node)}function X(e){return!!G()&&(e instanceof Element||e instanceof W(e).Element)}function z(e){return!!G()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function Z(e){return!!G()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let Y=new Set(["inline","contents"]);function q(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=es(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Y.has(o)}let $=new Set(["table","td","th"]),J=[":popover-open",":modal"];function Q(e){return J.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let ee=["transform","translate","scale","rotate","perspective"],et=["transform","translate","scale","rotate","perspective","filter"],er=["paint","layout","strict","content"];function en(e){let t=eo(),r=X(e)?es(e):e;return ee.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||et.some(e=>(r.willChange||"").includes(e))||er.some(e=>(r.contain||"").includes(e))}function eo(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ei=new Set(["html","body","#document"]);function ea(e){return ei.has(U(e))}function es(e){return W(e).getComputedStyle(e)}function el(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===U(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||V(e);return Z(t)?t.host:t}function ec(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=eu(t);return ea(r)?t.ownerDocument?t.ownerDocument.body:t.body:z(r)&&q(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=W(o);if(i){let e=ef(a);return t.concat(a,a.visualViewport||[],q(o)?o:[],e&&r?ec(e):[])}return t.concat(o,ec(o,[],r))}function ef(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eh(e){let t=es(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=z(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=p(r)!==i||p(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function ed(e){return X(e)?e:e.contextElement}function ep(e){let t=ed(e);if(!z(t))return g(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=eh(t),a=(i?p(r.width):r.width)/n,s=(i?p(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let em=g(0);function eg(e){let t=W(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:em}function ev(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=ed(e),s=g(1);t&&(n?X(n)&&(s=ep(n)):s=ep(e));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===W(a))&&o)?eg(a):g(0),u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a){let e=W(a),t=n&&X(n)?W(n):n,r=e,o=ef(r);for(;o&&n&&t!==r;){let e=ep(o),t=o.getBoundingClientRect(),n=es(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,h*=e.y,u+=i,c+=a,o=ef(r=W(o))}}return H({width:f,height:h,x:u,y:c})}function ey(e,t){let r=el(e).scrollLeft;return t?t.left+r:ev(V(e)).left+r}function eb(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ey(e,r),y:r.top+t.scrollTop}}let eE=new Set(["absolute","fixed"]);function ew(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=W(e),n=V(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=eo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}let u=ey(n);if(uX(e)&&"body"!==U(e)),o=null,i="fixed"===es(e).position,a=i?eu(e):e;for(;X(a)&&!ea(a);){let t=es(a),r=en(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&!!o&&eE.has(o.position)||q(a)&&!r&&function e(t,r){let n=eu(t);return!(n===r||!X(n)||ea(n))&&("fixed"===es(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):o=t,a=eu(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce((e,r)=>{let n=ew(t,r,o);return e.top=d(n.top,e.top),e.right=h(n.right,e.right),e.bottom=h(n.bottom,e.bottom),e.left=d(n.left,e.left),e},ew(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eT,getElementRects:eS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=eh(e);return{width:t,height:r}},getScale:ep,isElement:X,isRTL:function(e){return"rtl"===es(e).direction}};function eR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=b(e,t)||{};if(null==u)return{};let f=O(c),p={x:r,y:n},m=C(S(o)),g=A(m),v=await a.getDimensions(u),y="y"===m,E=y?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[m]-p[m]-i.floating[g],_=p[m]-i.reference[m],R=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),x=R?R[E]:0;x&&await (null==a.isElement?void 0:a.isElement(R))||(x=s.floating[E]||i.floating[g]);let N=x/2-v[g]/2-1,L=h(f[y?"top":"left"],N),P=h(f[y?"bottom":"right"],N),H=x-v[g]-P,I=x/2-v[g]/2+(T/2-_/2),M=d(L,h(I,H)),B=!l.arrow&&null!=w(o)&&I!==M&&i.reference[g]/2-(I{t.current=e}),t}var eM=r(29398),eB=r(66695),eF=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,eB.jsx)(eM.sG.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eB.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eF.displayName="Arrow";var ek=r(28321),eD=r(22509),ej="Popper",[eG,eU]=(0,a.A)(ej),[eW,eV]=eG(ej),eK=e=>{let{__scopePopper:t,children:r}=e,[o,i]=n.useState(null);return(0,eB.jsx)(eW,{scope:t,anchor:o,onAnchorChange:i,children:r})};eK.displayName=ej;var eX="PopperAnchor",ez=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,s=eV(eX,r),l=n.useRef(null),u=(0,i.s)(t,l),c=n.useRef(null);return n.useEffect(()=>{let e=c.current;c.current=(null==o?void 0:o.current)||l.current,e!==c.current&&s.onAnchorChange(c.current)}),o?null:(0,eB.jsx)(eM.sG.div,{...a,ref:u})});ez.displayName=eX;var eZ="PopperContent",[eY,eq]=eG(eZ),e$=n.forwardRef((e,t)=>{var r,o,a,s,l,u,c,f;let{__scopePopper:p,side:g="bottom",sideOffset:v=0,align:y="center",alignOffset:T=0,arrowPadding:O=0,avoidCollisions:H=!0,collisionBoundary:I=[],collisionPadding:G=0,sticky:U="partial",hideWhenDetached:W=!1,updatePositionStrategy:K="optimized",onPlaced:X,...z}=e,Z=eV(eZ,p),[Y,q]=n.useState(null),$=(0,i.s)(t,e=>q(e)),[J,Q]=n.useState(null),ee=function(e){let[t,r]=n.useState(void 0);return(0,eD.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(J),et=null!=(c=null==ee?void 0:ee.width)?c:0,er=null!=(f=null==ee?void 0:ee.height)?f:0,en="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},eo=Array.isArray(I)?I:[I],ei=eo.length>0,ea={padding:en,boundary:eo.filter(e1),altBoundary:ei},{refs:es,floatingStyles:el,placement:eu,isPositioned:ef,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[f,h]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=n.useState(o);eP(d,o)||p(o);let[m,g]=n.useState(null),[v,y]=n.useState(null),b=n.useCallback(e=>{e!==A.current&&(A.current=e,g(e))},[]),E=n.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),w=a||m,C=s||v,A=n.useRef(null),T=n.useRef(null),S=n.useRef(f),_=null!=u,R=eI(u),x=eI(i),N=eI(c),L=n.useCallback(()=>{if(!A.current||!T.current)return;let e={placement:t,strategy:r,middleware:d};x.current&&(e.platform=x.current),((e,t,r)=>{let n=new Map,o={platform:e_,...r},i={...o.platform,_c:n};return M(e,t,{...o,platform:i})})(A.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};P.current&&!eP(S.current,t)&&(S.current=t,eN.flushSync(()=>{h(t)}))})},[d,t,r,x,N]);eL(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let P=n.useRef(!1);eL(()=>(P.current=!0,()=>{P.current=!1}),[]),eL(()=>{if(w&&(A.current=w),C&&(T.current=C),w&&C){if(R.current)return R.current(w,C,L);L()}},[w,C,L,R,_]);let O=n.useMemo(()=>({reference:A,floating:T,setReference:b,setFloating:E}),[b,E]),H=n.useMemo(()=>({reference:w,floating:C}),[w,C]),I=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!H.floating)return e;let t=eH(H.floating,f.x),n=eH(H.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eO(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,H.floating,f.x,f.y]);return n.useMemo(()=>({...f,update:L,refs:O,elements:H,floatingStyles:I}),[f,L,O,H,I])}({strategy:"fixed",placement:g+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{i&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let p=c&&l?function(e,t){let r,n=null,o=V(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let u=e.getBoundingClientRect(),{left:c,top:f,width:p,height:g}=u;if(s||t(),!p||!g)return;let v=m(f),y=m(o.clientWidth-(c+p)),b={rootMargin:-v+"px "+-y+"px "+-m(o.clientHeight-(f+g))+"px "+-m(c)+"px",threshold:d(0,h(1,l))||1},E=!0;function w(t){let n=t[0].intersectionRatio;if(n!==l){if(!E)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||eR(u,e.getBoundingClientRect())||a(),E=!1}try{n=new IntersectionObserver(w,{...b,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(w,b)}n.observe(e)}(!0),i}(c,r):null,g=-1,v=null;s&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y=u?ev(e):null;return u&&function t(){let n=ev(e);y&&!eR(y,n)&&r(),y=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===K})},elements:{reference:Z.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:s}=t,l=await j(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}))({mainAxis:v+er,alignmentAxis:T}),H&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=b(e,t),u={x:r,y:n},c=await B(t,l),f=S(E(o)),p=C(f),m=u[p],g=u[f];if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=m+c[e],n=m-c[t];m=d(r,h(m,n))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=g+c[e],n=g-c[t];g=d(r,h(g,n))}let v=s.fn({...t,[p]:m,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:i,[f]:a}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===U?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=b(e,t),c={x:r,y:n},f=S(o),h=C(f),d=c[h],p=c[f],m=b(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+g.mainAxis,r=i.reference[h]+i.reference[e]-g.mainAxis;dr&&(d=r)}if(u){var v,y;let e="y"===h?"width":"height",t=D.has(E(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);pn&&(p=n)}return{[h]:d,[f]:p}}}}(e),options:[e,t]}))():void 0,...ea}),H&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...T}=b(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let O=E(s),H=S(c),I=E(c)===c,M=await (null==f.isRTL?void 0:f.isRTL(h.floating)),F=m||(I||!y?[P(c)]:function(e){let t=P(e);return[_(e),t,_(t)]}(c)),k="none"!==v;!m&&k&&F.push(...function(e,t,r,n){let o=w(e),i=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?x:R;return t?R:x;case"left":case"right":return t?N:L;default:return[]}}(E(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(_)))),i}(c,y,v,M));let D=[c,...F],j=await B(t,T),G=[],U=(null==(n=l.flip)?void 0:n.overflows)||[];if(d&&G.push(j[O]),p){let e=function(e,t,r){void 0===r&&(r=!1);let n=w(e),o=C(S(e)),i=A(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=P(a)),[a,P(a)]}(s,u,M);G.push(j[e[0]],j[e[1]])}if(U=[...U,{placement:s,overflows:G}],!G.every(e=>eS(e.placement)!==H||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let r=null==(i=U.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(g){case"bestFit":{let e=null==(a=U.filter(e=>{if(k){let t=S(e.placement);return t===H||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}))({...ea}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let o,i,{placement:a,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...f}=b(e,t),p=await B(t,f),m=E(a),g=w(a),v="y"===S(a),{width:y,height:C}=s.floating;"top"===m||"bottom"===m?(o=m,i=g===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(i=m,o="end"===g?"top":"bottom");let A=C-p.top-p.bottom,T=y-p.left-p.right,_=h(C-p[o],A),R=h(y-p[i],T),x=!t.middlewareData.shift,N=_,L=R;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(L=T),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(N=A),x&&!g){let e=d(p.left,0),t=d(p.right,0),r=d(p.top,0),n=d(p.bottom,0);v?L=y-2*(0!==e||0!==t?e+t:d(p.left,p.right)):N=C-2*(0!==r||0!==n?r+n:d(p.top,p.bottom))}await c({...t,availableWidth:L,availableHeight:N});let P=await l.getDimensions(u.floating);return y!==P.width||C!==P.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...ea,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:i,height:a}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(o,"px")),s.setProperty("--radix-popper-anchor-width","".concat(i,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),J&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?ex({element:r.current,padding:n}).fn(t):{}:r?ex({element:r,padding:n}).fn(t):{}}}))(e),options:[e,t]}))({element:J,padding:O}),e2({arrowWidth:et,arrowHeight:er}),W&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=b(e,t);switch(n){case"referenceHidden":{let e=F(await B(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=F(await B(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...ea})]}),[ep,em]=e3(eu),eg=(0,ek.c)(X);(0,eD.N)(()=>{ef&&(null==eg||eg())},[ef,eg]);let ey=null==(r=eh.arrow)?void 0:r.x,eb=null==(o=eh.arrow)?void 0:o.y,eE=(null==(a=eh.arrow)?void 0:a.centerOffset)!==0,[ew,eC]=n.useState();return(0,eD.N)(()=>{Y&&eC(window.getComputedStyle(Y).zIndex)},[Y]),(0,eB.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...el,transform:ef?el.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ew,"--radix-popper-transform-origin":[null==(s=eh.transformOrigin)?void 0:s.x,null==(l=eh.transformOrigin)?void 0:l.y].join(" "),...(null==(u=eh.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eB.jsx)(eY,{scope:p,placedSide:ep,onArrowChange:Q,arrowX:ey,arrowY:eb,shouldHideArrow:eE,children:(0,eB.jsx)(eM.sG.div,{"data-side":ep,"data-align":em,...z,ref:$,style:{...z.style,animation:ef?void 0:"none"}})})})});e$.displayName=eZ;var eJ="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},e0=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eq(eJ,r),i=eQ[o.placedSide];return(0,eB.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eB.jsx)(eF,{...n,ref:t,style:{...n.style,display:"block"}})})});function e1(e){return null!==e}e0.displayName=eJ;var e2=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,f=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[d,p]=e3(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(i=null==(n=u.arrow)?void 0:n.x)?i:0)+f/2,v=(null!=(a=null==(o=u.arrow)?void 0:o.y)?a:0)+h/2,y="",b="";return"bottom"===d?(y=c?m:"".concat(g,"px"),b="".concat(-h,"px")):"top"===d?(y=c?m:"".concat(g,"px"),b="".concat(l.floating.height+h,"px")):"right"===d?(y="".concat(-h,"px"),b=c?m:"".concat(v,"px")):"left"===d&&(y="".concat(l.floating.width+h,"px"),b=c?m:"".concat(v,"px")),{data:{x:y,y:b}}}});function e3(e){let[t,r="center"]=e.split("-");return[t,r]}var e6=r(52903),e9=r(11939),e8=r(47666),e5=r(80233),e4=r(82956),e7=r(21065),te="Popover",[tt,tr]=(0,a.A)(te,[eU]),tn=eU(),[to,ti]=tt(te),ta=e=>{let{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=tn(t),u=n.useRef(null),[f,h]=n.useState(!1),[d,p]=(0,e5.i)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:te});return(0,eB.jsx)(eK,{...l,children:(0,eB.jsx)(to,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:d,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>h(!0),[]),onCustomAnchorRemove:n.useCallback(()=>h(!1),[]),modal:s,children:r})})};ta.displayName=te;var ts="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,i=ti(ts,r),a=tn(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,eB.jsx)(ez,{...a,...o,ref:t})}).displayName=ts;var tl="PopoverTrigger",tu=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=ti(tl,r),s=tn(r),l=(0,i.s)(t,a.triggerRef),u=(0,eB.jsx)(eM.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tC(a.open),...n,ref:l,onClick:(0,o.mK)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,eB.jsx)(ez,{asChild:!0,...s,children:u})});tu.displayName=tl;var tc="PopoverPortal",[tf,th]=tt(tc,{forceMount:void 0}),td=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=ti(tc,t);return(0,eB.jsx)(tf,{scope:t,forceMount:r,children:(0,eB.jsx)(e9.C,{present:r||i.open,children:(0,eB.jsx)(e6.Z,{asChild:!0,container:o,children:n})})})};td.displayName=tc;var tp="PopoverContent",tm=n.forwardRef((e,t)=>{let r=th(tp,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=ti(tp,e.__scopePopover);return(0,eB.jsx)(e9.C,{present:n||i.open,children:i.modal?(0,eB.jsx)(tv,{...o,ref:t}):(0,eB.jsx)(ty,{...o,ref:t})})});tm.displayName=tp;var tg=(0,e8.TL)("PopoverContent.RemoveScroll"),tv=n.forwardRef((e,t)=>{let r=ti(tp,e.__scopePopover),a=n.useRef(null),s=(0,i.s)(t,a),l=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,e4.Eq)(e)},[]),(0,eB.jsx)(e7.A,{as:tg,allowPinchZoom:!0,children:(0,eB.jsx)(tb,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ty=n.forwardRef((e,t)=>{let r=ti(tp,e.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return(0,eB.jsx)(tb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(o.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),tb=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:d,...p}=e,m=ti(tp,r),g=tn(r);return(0,l.Oh)(),(0,eB.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,eB.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onDismiss:()=>m.onOpenChange(!1),children:(0,eB.jsx)(e$,{"data-state":tC(m.open),role:"dialog",id:m.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tE="PopoverClose";n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=ti(tE,r);return(0,eB.jsx)(eM.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=tE;var tw=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=tn(r);return(0,eB.jsx)(e0,{...o,...n,ref:t})});function tC(e){return e?"open":"closed"}tw.displayName="PopoverArrow";var tA=ta,tT=tu,tS=td,t_=tm,tR=tw},21065:(e,t,r)=>{"use strict";r.d(t,{A:()=>K});var n,o,i=r(50787),a=r(97839),s="right-scroll-bar-position",l="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function h(e){return e}var d=function(e){void 0===e&&(e={});var t,r,n,o=(void 0===t&&(t=h),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return o.options=(0,i.Cl)({async:!0,ssr:!1},e),o}(),p=function(){},m=a.forwardRef(function(e,t){var r,n,o,s,l=a.useRef(null),h=a.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),m=h[0],g=h[1],v=e.forwardProps,y=e.children,b=e.className,E=e.removeScrollBar,w=e.enabled,C=e.shards,A=e.sideCar,T=e.noRelative,S=e.noIsolation,_=e.inert,R=e.allowPinchZoom,x=e.as,N=e.gapMode,L=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(r=[l,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,s=o.facade,c(function(){var e=f.get(s);if(e){var t=new Set(e),n=new Set(r),o=s.current;t.forEach(function(e){n.has(e)||u(e,null)}),n.forEach(function(e){t.has(e)||u(e,o)})}f.set(s,r)},[r]),s),O=(0,i.Cl)((0,i.Cl)({},L),m);return a.createElement(a.Fragment,null,w&&a.createElement(A,{sideCar:d,removeScrollBar:E,shards:C,noRelative:T,noIsolation:S,inert:_,setCallbacks:g,allowPinchZoom:!!R,lockRef:l,gapMode:N}),v?a.cloneElement(a.Children.only(y),(0,i.Cl)((0,i.Cl)({},O),{ref:P})):a.createElement(void 0===x?"div":x,(0,i.Cl)({},O,{className:b,ref:P}),y))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:l,zeroRight:s};var g=function(e){var t=e.sideCar,r=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,i.Cl)({},r))};g.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=v();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},E={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[w(r),w(n),w(o)]},A=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return E;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},T=b(),S="data-scroll-locked",_=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(s," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(l," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n right: 0 ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},R=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},x=function(){a.useEffect(function(){return document.body.setAttribute(S,(R()+1).toString()),function(){var e=R()-1;eo[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},M=function(e,t){return"v"===e?H(t,"overflowY"):H(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,f=s>0,h=0,d=0;do{if(!l)break;var p=B(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&M(e,l)&&(h+=g,d+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return f&&(o&&1>Math.abs(h)||!o&&s>h)?c=!0:!f&&(o&&1>Math.abs(d)||!o&&-s>d)&&(c=!0),c},k=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},D=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},G=0,U=[];let W=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(G++)[0],s=a.useState(b)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(j),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=k(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,f=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var h=I(f,c);if(!h)return!0;if(h?o=f:(o="v"===f?"h":"v",h=I(f,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=o),!o)return!0;var d=n.current||o;return F(d,t,e,"h"===d?s:u,!0)},[]),c=a.useCallback(function(e){if(U.length&&U[U.length-1]===s){var r="deltaY"in e?D(e):k(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(l.current.shards||[]).map(j).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),f=a.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),h=a.useCallback(function(e){r.current=k(e),n.current=void 0},[]),d=a.useCallback(function(t){f(t.type,D(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){f(t.type,k(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return U.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,O),document.addEventListener("touchmove",c,O),document.addEventListener("touchstart",h,O),function(){U=U.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,O),document.removeEventListener("touchmove",c,O),document.removeEventListener("touchstart",h,O)}},[]);var m=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(s,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?a.createElement(N,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},d.useMedium(n),g);var V=a.forwardRef(function(e,t){return a.createElement(m,(0,i.Cl)({},e,{ref:t,sideCar:W}))});V.classNames=m.classNames;let K=V},21455:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(56199);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let i=o(t)||o(n);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},22509:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(97839),o=globalThis?.document?n.useLayoutEffect:()=>{}},22561:(e,t,r)=>{"use strict";r.d(t,{Ub:()=>C});var n=r(97839),o=r(96583),i=r.n(o),a=/[A-Z]/g,s=/^ms-/,l={};function u(e){return"-"+e.toLowerCase()}let c=function(e){if(l.hasOwnProperty(e))return l[e];var t=e.replace(a,u);return l[e]=s.test(t)?"-"+t:t};var f=r(44356),h=r.n(f);let d=h().oneOfType([h().string,h().number]),p={all:h().bool,grid:h().bool,aural:h().bool,braille:h().bool,handheld:h().bool,print:h().bool,projection:h().bool,screen:h().bool,tty:h().bool,tv:h().bool,embossed:h().bool},{type:m,...g}={orientation:h().oneOf(["portrait","landscape"]),scan:h().oneOf(["progressive","interlace"]),aspectRatio:h().string,deviceAspectRatio:h().string,height:d,deviceHeight:d,width:d,deviceWidth:d,color:h().bool,colorIndex:h().bool,monochrome:h().bool,resolution:d,type:Object.keys(p)},v={minAspectRatio:h().string,maxAspectRatio:h().string,minDeviceAspectRatio:h().string,maxDeviceAspectRatio:h().string,minHeight:d,maxHeight:d,minDeviceHeight:d,maxDeviceHeight:d,minWidth:d,maxWidth:d,minDeviceWidth:d,maxDeviceWidth:d,minColor:h().number,maxColor:h().number,minColorIndex:h().number,maxColorIndex:h().number,minMonochrome:h().number,maxMonochrome:h().number,minResolution:d,maxResolution:d,...g};var y={all:{...p,...v}};let b=(0,n.createContext)(void 0),E=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[c(r)]=e[r],t),{})},w=()=>{let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current=!0},[]),e.current},C=(e,t,r)=>{let o=(e=>{let t=(0,n.useContext)(b),r=()=>E(e)||E(t),[o,i]=(0,n.useState)(r);return(0,n.useEffect)(()=>{let e=r();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(let n=0;n{let t=()=>(e=>e.query||(e=>{let t=[];return Object.keys(y.all).forEach(r=>{let n=e[r];null!=n&&t.push(((e,t)=>{let r=c(e);if("number"==typeof t&&(t=`${t}px`),!0===t)return r;if(!1===t)return`not ${r}`;return`(${r}: ${t})`})(r,n))}),t.join(" and ")})(e))(e),[r,o]=(0,n.useState)(t);return(0,n.useEffect)(()=>{let e=t();r!==e&&o(e)},[e]),r})(e);if(!a)throw Error("Invalid or missing MediaQuery!");let s=((e,t)=>{let r=()=>i()(e,t||{},!!t),[o,a]=(0,n.useState)(r),s=w();return(0,n.useEffect)(()=>{if(s){let e=r();return a(e),()=>{e&&e.dispose()}}},[e,t]),o})(a,o),l=(e=>{let[t,r]=(0,n.useState)(e.matches);return(0,n.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t})(s),u=w();return(0,n.useEffect)(()=>{u&&r&&r(l)},[l]),(0,n.useEffect)(()=>()=>{s&&s.dispose()},[]),l}},28321:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(97839);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},29398:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>s});var n=r(97839),o=r(11614),i=r(47666),a=r(66695),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},31139:(e,t,r)=>{var n=r(37811);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(18852)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},34468:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>i});var n=r(97839),o=r(66695);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,a=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let a=n.createContext(i),s=r.length;r=[...r,i];let l=t=>{let{scope:r,children:i,...l}=t,u=r?.[e]?.[s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(r,o){let l=o?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},34706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function i(e,t){for(let[i,a]of Object.entries(t)){if(!t.hasOwnProperty(i)||n.includes(i)||void 0===a)continue;let s=r[i]||i.toLowerCase();"SCRIPT"===e.tagName&&o(s)?e[s]=!!a:e.setAttribute(s,String(a)),(!1===a||"SCRIPT"===e.tagName&&o(s)&&(!a||"false"===a))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("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)},37475:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>i});var n=r(97839),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},41069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(52748)._(r(87381));function o(e,t){var r;let o={};"function"==typeof e&&(o.loader=e);let i={...o,...t};return(0,n.default)({...i,modules:null==(r=i.loadableGenerated)?void 0:r.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)},44356:(e,t,r)=>{e.exports=r(45872)()},45872:(e,t,r)=>{"use strict";var n=r(81827);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},46003:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>eR,kc:()=>eO,c3:()=>eP});var n,o,i,a,s,l,u,c=r(97839),f=r(50787);function h(e,t){var r=t&&t.cache?t.cache:v,n=t&&t.serializer?t.serializer:m;return(t&&t.strategy?t.strategy:function(e,t){var r,n,o=1===e.length?d:p;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function d(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function p(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}var m=function(){return JSON.stringify(arguments)},g=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),v={create:function(){return new g}},y={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,p.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,d.bind(this,e,r,n)}};function b(e){return e.type===o.literal}function E(e){return e.type===o.number}function w(e){return e.type===o.date}function C(e){return e.type===o.time}function A(e){return e.type===o.select}function T(e){return e.type===o.plural}function S(e){return e.type===o.tag}function _(e){return!!(e&&"object"==typeof e&&e.type===i.number)}function R(e){return!!(e&&"object"==typeof e&&e.type===i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,N=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,L=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,P=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?[rs]?$/g,H=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function M(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(O,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function B(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function F(e){var t=B(e);return t||{}}var k={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},D=new RegExp("^".concat(x.source,"*")),j=new RegExp("".concat(x.source,"*$"));function G(e,t){return{start:e,end:t}}var U=!!String.prototype.startsWith&&"_a".startsWith("a",1),W=!!String.fromCodePoint,V=!!Object.fromEntries,K=!!String.prototype.codePointAt,X=!!String.prototype.trimStart,z=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},Y=!0;try{Y=(null==(a=er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:a[0])==="a"}catch(e){Y=!1}var q=U?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},$=W?String.fromCodePoint:function(){for(var e,t=[],r=0;ri;){if((e=t[i++])>1114111)throw RangeError(e+" is not a valid code point");n+=e>10)+55296,e%1024+56320)}return n},J=V?Object.fromEntries:function(e){for(var t={},r=0;r=n)){var o=e.charCodeAt(t);return o56319||t+1===n||(r=e.charCodeAt(t+1))57343?o:(o-55296=33&&n=37&&n=46&&n=58&&n=60&&n=63&&n=162&&n=8208&&n=8214&&n=8219&&n=8224&&n=8240&&n=8251&&n=8257&&n=8263&&n=8277&&n=8592&&n=8597&&n=8602&&n=8604&&n=8609&&n=8612&&n=8615&&n=8623&&n=8654&&n=8656&&n=8661&&n=8692&&n=8960&&n=8972&&n=8992&&n=8994&&n=9003&&n=9085&&n=9115&&n=9140&&n=9180&&n=9186&&n=9255&&n=9280&&n=9291&&n=9472&&n=9656&&n=9666&&n=9720&&n=9728&&n=9840&&n=10132&&n=10176&&n=10183&&n=10224&&n=10240&&n=10496&&n=10649&&n=10716&&n=10750&&n=11008&&n=11056&&n=11077&&n=11079&&n=11085&&n=11124&&n=11126&&n=11159&&n=11776&&n=11782&&n=11790&&n=11800&&n=11806&&n=11818&&n=11824&&n=11834&&n=11836&&n=11843&&n=11856&&n=11859&&n=12289&&n=12306&&n=12318&&n=65093&&n=65536?2:1}return $.apply(void 0,r)};var eo=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),i.push({type:o.pound,location:G(l,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek())if(60===a&&!this.ignoreTag&&ei(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:""),location:G(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,G(r,this.clonePosition()));var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(!this.bumpIf(""))return this.error(n.UNCLOSED_TAG,G(r,this.clonePosition()));if(this.isEOF()||!ei(this.char()))return this.error(n.INVALID_TAG,G(l,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,G(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:o.tag,value:i,children:s,location:G(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,G(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e=97&&e=65&&e=192&&e=216&&e=248&&e=895&&e=8204&&e=8255&&e=8304&&e=11264&&e=12289&&e=63744&&e=65008&&e=65536&&e0?null:(this.bump(),$(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,G(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(n.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:G(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(n.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=s(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:G(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,a){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,G(l,c));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=et(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:G(d,this.clonePosition())}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var v=G(a,this.clonePosition());if(h&&q(null==h?void 0:h.style,"::",0)){var y=ee(h.style.slice(2));if("number"===u){var p=this.parseNumberSkeletonFromString(y,h.styleLocation);if(p.err)return p;return{val:{type:o.number,value:r,location:v,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,v);var b,E=y;this.locale&&(E=function(e,t){for(var r="",n=0;n>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(k[t||""]||k[n||""]||k["".concat(n,"-001")]||k["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else"J"===o?r+="H":r+=o}return r}(y,this.locale));var m={type:i.dateTime,pattern:E,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(b={},E.replace(N,function(e){var t=e.length;switch(e[0]){case"G":b.era=4===t?"long":5===t?"narrow":"short";break;case"y":b.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":b.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":b.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":b.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(L).filter(function(e){return e.length>0}),r=[],n=0;n1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(H,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else if(o&&i)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(I.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(P.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(P,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var o=n.options[0];"w"===o?t=(0,f.Cl)((0,f.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,f.Cl)((0,f.Cl)({},t),M(o)));continue}if(O.test(n.stem)){t=(0,f.Cl)((0,f.Cl)({},t),M(n.stem));continue}var i=B(n.stem);i&&(t=(0,f.Cl)((0,f.Cl)({},t),i));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!I.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);a&&(t=(0,f.Cl)((0,f.Cl)({},t),a))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var i,a=!1,s=[],l=new Set,u=o.value,c=o.location;;){if(0===u.length){var f=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=G(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(d);if(m.err)return m;s.push([u,{value:p.val,location:G(d,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(n.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(a>=48&&a=this.message.length)throw Error("out of bound");var t=Q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ea(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ei(e){return e>=97&&e=65&&e=9&&e=8206&&e0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=es,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class ep extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var em=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(em||{});function eg(...e){return e.filter(Boolean).join(".")}function ev(e){return eg(e.namespace,e.key)}function ey(e){console.error(e)}function eb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eE(e,t){return h(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:y.variadic})}function ew(e,t){return eE((...t)=>new e(...t),t)}function eC(e){return{getDateTimeFormat:ew(Intl.DateTimeFormat,e.dateTime),getNumberFormat:ew(Intl.NumberFormat,e.number),getPluralRules:ew(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:ew(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:ew(Intl.ListFormat,e.list),getDisplayNames:ew(Intl.DisplayNames,e.displayNames)}}function eA(e,t,r,n){let o=eg(n,r);if(!t)throw Error(o);let i=t;return r.split(".").forEach(t=>{let r=i[t];if(null==t||null==r)throw Error(o+` (${e})`);i=r}),i}let eT={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var eS=r(66695);let e_=(0,c.createContext)(void 0);function eR({children:e,formats:t,getMessageFallback:r,locale:n,messages:o,now:i,onError:a,timeZone:s}){let l=(0,c.useContext)(e_),u=(0,c.useMemo)(()=>l?.cache||eb(),[n,l?.cache]),f=(0,c.useMemo)(()=>l?.formatters||eC(u),[u,l?.formatters]),h=(0,c.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:n,...o}){return{...o,formats:e||void 0,messages:r||void 0,onError:n||ey,getMessageFallback:t||ev}}({locale:n,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===o?l?.messages:o,now:i||l?.now,onError:a||l?.onError,timeZone:s||l?.timeZone}),formatters:f,cache:u}),[u,t,f,r,n,o,i,a,l,s]);return(0,eS.jsx)(e_.Provider,{value:h,children:e})}function ex(){let e=(0,c.useContext)(e_);if(!e)throw Error(void 0);return e}let eN=!1,eL="undefined"==typeof window;function eP(e){return function(e,t,r){let{cache:n,formats:o,formatters:i,getMessageFallback:a,locale:s,onError:l,timeZone:u}=ex(),f=e["!"],h="!"===t?void 0:t.slice((r+".").length);return u||eN||!eL||(eN=!0,l(new ep(em.ENVIRONMENT_FALLBACK,void 0))),(0,c.useMemo)(()=>(function(e){let t=function(e,t,r,n=ey){try{if(!t)throw Error(void 0);let n=r?eA(e,t,r):t;if(!n)throw Error(r);return n}catch(t){let e=new ep(em.MISSING_MESSAGE,t.message);return n(e),e}}(e.locale,e.messages,e.namespace,e.onError);return function({cache:e,formats:t,formatters:r,getMessageFallback:n=ev,locale:o,messagesOrError:i,namespace:a,onError:s,timeZone:l}){let u=i instanceof ep;function f(e,t,r){let o=new ep(t,r);return s(o),n({error:o,key:e,namespace:a})}function h(s,h,d){var p;let m,g;if(u)return n({error:i,key:s,namespace:a});try{m=eA(o,i,s,a)}catch(e){return f(s,em.MISSING_MESSAGE,e.message)}if("object"==typeof m){let e;return f(s,Array.isArray(m)?em.INVALID_MESSAGE:em.INSUFFICIENT_PATH,e)}let v=(p=m,h||/'[{}]/.test(p)?void 0:p);if(v)return v;r.getMessageFormat||(r.getMessageFormat=eE((...e)=>new ed(e[0],e[1],e[2],{formatters:r,...e[3]}),e.message));try{g=r.getMessageFormat(m,o,function(e,t,r){let n=ed.formats.date,o=ed.formats.time,i={...e?.dateTime,...t?.dateTime},a={date:{...n,...i},time:{...o,...i},number:{...e?.number,...t?.number}};return r&&["date","time"].forEach(e=>{let t=a[e];for(let[e,n]of Object.entries(t))t[e]={timeZone:r,...n}}),a}(t,d,l),{formatters:{...r,getDateTimeFormat:(e,t)=>r.getDateTimeFormat(e,{timeZone:l,...t})}})}catch(e){return f(s,em.INVALID_MESSAGE,e.message)}try{let e=g.format(h?function(e){let t={};return Object.keys(e).forEach(r=>{let n,o=0,i=e[r];n="function"==typeof i?e=>{let t=i(e);return(0,c.isValidElement)(t)?(0,c.cloneElement)(t,{key:r+o++}):t}:i,t[r]=n}),t}(h):h);if(null==e)throw Error(void 0);return(0,c.isValidElement)(e)||Array.isArray(e)||"string"==typeof e?e:String(e)}catch(e){return f(s,em.FORMATTING_ERROR,e.message)}}function d(e,t,r){let n=h(e,t,r);return"string"!=typeof n?f(e,em.INVALID_MESSAGE,void 0):n}return d.rich=h,d.markup=(e,t,r)=>h(e,t,r),d.raw=e=>{if(u)return n({error:i,key:e,namespace:a});try{return eA(o,i,e,a)}catch(t){return f(e,em.MISSING_MESSAGE,t.message)}},d.has=e=>{if(u)return!1;try{return eA(o,i,e,a),!0}catch{return!1}},d}({...e,messagesOrError:t})})({cache:n,formatters:i,getMessageFallback:a,messages:f,namespace:h,onError:l,formats:o,locale:s,timeZone:u}),[n,i,a,f,h,l,o,s,u])}({"!":ex().messages},e?`!.${e}`:"!","!")}function eO(){let{formats:e,formatters:t,locale:r,now:n,onError:o,timeZone:i}=ex();return(0,c.useMemo)(()=>(function(e){let{_cache:t=eb(),_formatters:r=eC(t),formats:n,locale:o,onError:i=ey,timeZone:a}=e;function s(e){return e?.timeZone||(a?e={...e,timeZone:a}:i(new ep(em.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,n,o){let a;try{a=function(e,t,r){let n;if("string"==typeof t){if(!(n=e?.[t])){let e=new ep(em.MISSING_FORMAT,void 0);throw i(e),e}}else n=t;return r&&(n={...n,...r}),n}(r,e,t)}catch{return o()}try{return n(a)}catch(e){return i(new ep(em.FORMATTING_ERROR,e.message)),o()}}function u(e,t,i){return l(t,i,n?.dateTime,t=>(t=s(t),r.getDateTimeFormat(o,t).format(e)),()=>String(e))}function c(){return e.now?e.now:(i(new ep(em.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(e,t,i){return l(t,i,n?.number,t=>r.getNumberFormat(o,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let i,a,s={};t instanceof Date||"number"==typeof t?i=new Date(t):t&&(i=null!=t.now?new Date(t.now):c(),a=t.unit,s.style=t.style,s.numberingSystem=t.numberingSystem),i||(i=c());let l=(new Date(e).getTime()-i.getTime())/1e3;a||(a=function(e){let t=Math.abs(e);return t{let t=r.getListFormat(o,e).formatToParts(a).map(e=>"literal"===e.type?e.value:s.get(e.value)||e.value);return s.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,i,a){return l(i,a,n?.dateTime,n=>(n=s(n),r.getDateTimeFormat(o,n).formatRange(e,t)),()=>[u(e),u(t)].join(" – "))}}})({formats:e,locale:r,now:n,onError:o,timeZone:i,_formatters:t}),[e,t,n,r,o,i])}},47666:(e,t,r)=>{"use strict";r.d(t,{DX:()=>s,TL:()=>a});var n=r(97839),o=r(59240),i=r(66695);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...a}=e,s=n.Children.toArray(o),l=s.find(u);if(l){let e=l.props.children,o=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var s=a("Slot"),l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},49134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="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)},n="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)},49596:(e,t,r)=>{"use strict";r.d(t,{default:()=>o.a});var n=r(41069),o=r.n(n)},50787:(e,t,r)=>{"use strict";r.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}Object.create;function s(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o{"use strict";r.d(t,{Z:()=>l});var n=r(97839),o=r(11614),i=r(29398),a=r(22509),s=r(66695),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[f,h]=n.useState(!1);(0,a.N)(()=>h(!0),[]);let d=u||f&&(null==(l=globalThis)||null==(r=l.document)?void 0:r.body);return d?o.createPortal((0,s.jsx)(i.sG.div,{...c,ref:t}),d):null});l.displayName="Portal"},59240:(e,t,r)=>{"use strict";r.d(t,{s:()=>a,t:()=>i});var n=r(97839);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{"use strict";function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(66695),r(11614),r(99080),r(46245)},65386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return i},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function i(){return o?new o:new n}function a(e){return o?o.bind(e):n.bind(e)}function s(){return o?o.snapshot():function(e,...t){return e(...t)}}},68145:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,o=r(97839),i=r(22509),a=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=o.useState(a());return(0,i.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},68772:(e,t,r)=>{"use strict";r.d(t,{c3:()=>i});var n=r(46003);function o(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let i=o(0,n.c3);o(0,n.kc)},71274:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1455).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},73539:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,o,i,a,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return r.long?(o=Math.abs(n=e))>=864e5?t(n,o,864e5,"day"):o>=36e5?t(n,o,36e5,"hour"):o>=6e4?t(n,o,6e4,"minute"):o>=1e3?t(n,o,1e3,"second"):n+" ms":(a=Math.abs(i=e))>=864e5?Math.round(i/864e5)+"d":a>=36e5?Math.round(i/36e5)+"h":a>=6e4?Math.round(i/6e4)+"m":a>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},79622:(e,t)=>{"use strict";t.Y=function(e,t){return(function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(r),i=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!i&&"not"===i.toLowerCase(),l.type=a?a.toLowerCase():"all",l.expressions=(s=s.match(/\([^\)]+\)/g)||[]).map(function(e){var t=e.match(n),r=t[1].toLowerCase().match(o);return{modifier:r[1],feature:r[2],value:t[2]}}),l})})(e).some(function(e){var r=e.inverse,n="all"===e.type||t.type===e.type;if(n&&r||!(n||r))return!1;var o=e.expressions.every(function(e){var r=e.feature,n=e.modifier,o=e.value,i=t[r];if(!i)return!1;switch(r){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=u(o),i=u(i);break;case"resolution":o=l(o),i=l(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(n){case"min":return i>=o;case"max":return i{"use strict";r.d(t,{i:()=>s});var n,o=r(97839),i=r(22509),a=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,s,l]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),i=o.useRef(r),s=o.useRef(t);return a(()=>{s.current=t},[t]),o.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,n,s]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,o.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},81827:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},82956:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],f=[],h=new Set,d=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||d.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),f.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),a++,function(){f.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),l(n,o,r,"aria-hidden")):function(){return null}}},83349:(e,t,r)=>{"use strict";r.d(t,{qW:()=>h});var n,o=r(97839),i=r(12548),a=r(29398),s=r(59240),l=r(28321),u=r(66695),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=o.forwardRef((e,t)=>{var r,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:E,...w}=e,C=o.useContext(f),[A,T]=o.useState(null),S=null!=(h=null==A?void 0:A.ownerDocument)?h:null==(r=globalThis)?void 0:r.document,[,_]=o.useState({}),R=(0,s.s)(t,e=>T(e)),x=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),L=x.indexOf(N),P=A?x.indexOf(A):-1,O=C.layersWithOutsidePointerEventsDisabled.size>0,H=P>=L,I=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){p("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...C.branches].some(e=>e.contains(t));H&&!r&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==E||E())},S),M=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==E||E())},S);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{P===C.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},S),o.useEffect(()=>{if(A)return m&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(n=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(A)),C.layers.add(A),d(),()=>{m&&1===C.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=n)}},[A,S,m,C]),o.useEffect(()=>()=>{A&&(C.layers.delete(A),C.layersWithOutsidePointerEventsDisabled.delete(A),d())},[A,C]),o.useEffect(()=>{let e=()=>_({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...w,ref:R,style:{pointerEvents:O?H?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function d(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.hO)(i,s):i.dispatchEvent(s)}h.displayName="DismissableLayer",o.forwardRef((e,t)=>{let r=o.useContext(f),n=o.useRef(null),i=(0,s.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},87258:(e,t,r)=>{"use strict";function n(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(93206)},87381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(66695),o=r(97839),i=r(87258);function a(e){return{default:e&&"default"in e?e.default:e}}r(60183);let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...s,...e},r=(0,o.lazy)(()=>t.loader().then(a)),l=t.loading;function u(e){let a=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,u=s?o.Suspense:o.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...s?{fallback:a}:{},children:c})}return u.displayName="LoadableComponent",u}},89183:(e,t,r)=>{"use strict";r.d(t,{jH:()=>i});var n=r(97839);r(66695);var o=n.createContext(void 0);function i(e){let t=n.useContext(o);return e||t||"ltr"}},95656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(65386).createAsyncLocalStorage)()},96583:(e,t,r)=>{"use strict";var n=r(79622).Y,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,r){var i,a=this;function s(e){a.matches=e.matches,a.media=e.media}o&&!r&&(i=o.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=n(e,t),this.media=e),this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(s)}}e.exports=function(e,t,r){return new i(e,t,r)}},99080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(95656)}}]);