1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4894],{22968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return w},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return h}});let r=n(46216),o=n(6445),i=n(43603),l=r._(n(92546)),a=o._(n(63123)),u=n(40523),s=n(14127),c=n(48715),d=new Map,f=new Set,p=e=>{if(l.default.preinit){e.forEach(e=>{l.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},m=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:l="",strategy:a="afterInteractive",onError:u,stylesheets:c}=e,m=n||t;if(m&&f.has(m))return;if(d.has(t)){f.add(m),d.get(t).then(r,u);return}let v=()=>{o&&o(),f.add(m)},h=document.createElement("script"),g=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),r&&r.call(this,t),v()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});i?(h.innerHTML=i.__html||"",v()):l?(h.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):"",v()):t&&(h.src=t,d.set(t,g)),(0,s.setAttributesFromProps)(h,e),"worker"===a&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",a),c&&p(c),document.body.appendChild(h)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function h(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:d,stylesheets:p,...v}=e,{updateScripts:h,scripts:g,getIsSsr:w,appDir:y,nonce:b}=(0,a.useContext)(u.HeadManagerContext),x=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||n;x.current||(o&&e&&f.has(e)&&o(),x.current=!0)},[o,t,n]);let E=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(h?(g[s]=(g[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...v}]),h(g)):w&&w()?f.add(t||n):w&&!w()&&m(e)),y){if(p&&p.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return n?(l.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:b,crossOrigin:v.crossOrigin}:{as:"script",nonce:b,crossOrigin:v.crossOrigin}),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...v,id:t}])+")"}})):(v.dangerouslySetInnerHTML&&(v.children=v.dangerouslySetInnerHTML.__html,delete v.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...v,id:t}])+")"}}));"afterInteractive"===s&&n&&l.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:b,crossOrigin:v.crossOrigin}:{as:"script",nonce:b,crossOrigin:v.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let w=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)},14127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},r=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function i(e,t){for(let[i,l]of Object.entries(t)){if(!t.hasOwnProperty(i)||r.includes(i)||void 0===l)continue;let a=n[i]||i.toLowerCase();"SCRIPT"===e.tagName&&o(a)?e[a]=!!l:e.setAttribute(a,String(l)),(!1===l||"SCRIPT"===e.tagName&&o(a)&&(!l||"false"===l))&&(e.setAttribute(a,""),e.removeAttribute(a))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44297:(e,t,n)=>{"use strict";n.d(t,{so:()=>l});var r=n(45291),o=n(63123),i=(0,o.createContext)({client:r.Ay});function l(e){var t=e.children,n=e.client,l=e.apiKey,a=e.options,u=(0,o.useMemo)(function(){return(n&&l&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&a&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n)?n:(l&&(r.Ay.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),r.Ay.init(l,a)),r.Ay)},[n,l]);return o.createElement(i.Provider,{value:{client:u}},t)}},32564:(e,t,n)=>{"use strict";n.d(t,{u:()=>R});var r=n(63123);function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var i=function e(t,n){function r(e,r,i){if(!(typeof document>"u")){"number"==typeof(i=o({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in i)i[a]&&(l+="; "+a,!0===i[a]||(l+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+l}}return Object.create({set:r,get:function(e){if(!(typeof document>"u"||arguments.length&&!e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),l=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=t.read(l,a),e===a)break}catch{}}return e?r[e]:r}},remove:function(e,t){r(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function l(){return"u">typeof window}function a(){if(l())return window.matchMedia("(hover: none)").matches||navigator.userAgent.toLowerCase().includes("mobile")}function u(){if(l())return!a()}function s(e){var t,n;let r=null==(t=e.context)?void 0:t.includes("onDesktop"),o=null==(n=e.context)?void 0:n.includes("onMobile");r||o||e.handler(),r&&u()&&e.handler(),o&&a()&&e.handler()}function c(e){d(e),window.addEventListener("load",e,!0),window.addEventListener("mousemove",e,!0),window.addEventListener("mousedown",e,!0),window.addEventListener("keydown",e,!0),window.addEventListener("touchstart",e,!0),window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0)}function d(e){window.removeEventListener("load",e,!0),window.removeEventListener("mousemove",e,!0),window.removeEventListener("mousedown",e,!0),window.removeEventListener("keydown",e,!0),window.removeEventListener("touchstart",e,!0),window.removeEventListener("click",e,!0),window.removeEventListener("scroll",e,!0)}function f(e,t=200){let n;return{execute(r){clearTimeout(n),n=setTimeout(()=>e(r),t)},abort(){clearTimeout(n)}}}let p={onMobile:"onMobile",onTrigger:"onTrigger",onDesktop:"onDesktop",onUnsubscribe:"onUnsubscribe"},m={cookie:{daysToExpire:30,key:"exit-intent"},desktop:{triggerOnIdle:!1,useBeforeUnload:!1,triggerOnMouseLeave:!0,delayInSecondsToTrigger:10},mobile:{triggerOnIdle:!0,delayInSecondsToTrigger:10}};var v=Object.defineProperty,h=Object.defineProperties,g=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&x(e,n,t[n]);if(w)for(var n of w(t))b.call(t,n)&&x(e,n,t[n]);return e},C=(e,t)=>h(e,g(t));function R(e={}){let t=C(E({},m),{cookie:E(E({},m.cookie),e?.cookie),desktop:E(E({},m.desktop),e?.desktop),mobile:E(E({},m.mobile),e?.mobile)}),[n,o]=(0,r.useState)(t),[l,v]=(0,r.useState)(!1),[h,g]=(0,r.useState)(!1),w=(0,r.useRef)([]).current,y=(0,r.useRef)(!1),{mobile:b,desktop:x,cookie:S}=n;y.current=h||l;let k=(0,r.useCallback)(()=>{y.current||(v(!0),w.filter(e=>{var t,n;return(null==(t=e.context)?void 0:t.filter(e=>e!==p.onDesktop&&e!==p.onMobile).length)===0||(null==(n=e.context)?void 0:n.includes(p.onTrigger))}
1).forEach(s))},[]),M=(0,r.useCallback)(()=>{i.set(S.key,"true",{expires:S.daysToExpire,sameSite:"Strict"}),w.filter(e=>{var t;return null==(t=e.context)?void 0:t.includes(p.onUnsubscribe)}).forEach(s),g(!0)},[S?.key]),_=(0,r.useCallback)(()=>{i.remove(S?.key,{sameSite:"Strict"}),window.onbeforeunload=null,v(!1),g(!1)},[S?.key]),P=(0,r.useCallback)(()=>{_(),o(t)},[]),T=(0,r.useCallback)(e=>{let t=w.find(t=>t.id===e.id),n=C(E({},e),{context:e?.context||[]});if(t){w[w.indexOf(t)]=n;return}w.push(n)},[]),j=(0,r.useCallback)((e=m)=>{_(),o(t=>C(E(E({},t||{}),e||{}),{cookie:E(E({},t?.cookie||{}),e?.cookie||{}),desktop:E(E({},t?.desktop||{}),e?.desktop||{}),mobile:E(E({},t?.mobile||{}),e?.mobile||{})}))},[n]);return(0,r.useEffect)(()=>{g("true"===i.get(S.key))},[]),(0,r.useEffect)(()=>{if(a()){let{execute:e,abort:t}=f(k,1e3*b?.delayInSecondsToTrigger);if(y.current){d(e);return}return a()&&b?.triggerOnIdle&&(d(e),c(e)),()=>{t(),d(e)}}if(u()){let{execute:e,abort:t}=f(k,1e3*x?.delayInSecondsToTrigger);return null!=x&&x.triggerOnIdle&&c(e),null!=x&&x.triggerOnMouseLeave&&document.body.addEventListener("mouseleave",k),null!=x&&x.useBeforeUnload&&(window.onbeforeunload=()=>{if(!y.current)return k(),""}),()=>{t(),d(e),document.body.removeEventListener("mouseleave",k)}}}),{settings:n,resetState:_,isTriggered:l,unsubscribe:M,resetSettings:P,updateSettings:j,isUnsubscribed:h,registerHandler:T,willBeTriggered:!(h||l)}}},10276:e=>{e.exports={style:{fontFamily:"'Fanwood Text', 'Fanwood Text Fallback'",fontWeight:400},className:"__className_c28a82",variable:"__variable_c28a82"}},64483:e=>{e.exports={style:{fontFamily:"'League Spartan', 'League Spartan Fallback'",fontStyle:"normal"},className:"__className_430be8",variable:"__variable_430be8"}},57486:e=>{e.exports={style:{fontFamily:"'juniperBay'"},className:"__className_204d11",variable:"__variable_204d11"}},95240:e=>{e.exports={style:{fontFamily:"'leagueMono', 'leagueMono Fallback'"},className:"__className_2afe6c",variable:"__variable_2afe6c"}},51979:e=>{e.exports={style:{fontFamily:"'manicSketches'"},className:"__className_940877",variable:"__variable_940877"}},59236:e=>{e.exports={style:{fontFamily:"'oliviaHand'"},className:"__className_8fc4a1",variable:"__variable_8fc4a1"}},94058:(e,t,n)=>{"use strict";n.d(t,{H4:()=>x,_V:()=>b,bL:()=>y});var r=n(63123),o=n(55388),i=n(41616),l=n(16544),a=n(73343),u=n(43603),s="Avatar",[c,d]=(0,o.A)(s),[f,p]=c(s),m=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[i,l]=r.useState("idle");return(0,u.jsx)(f,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:(0,u.jsx)(a.sG.span,{...o,ref:t})})});m.displayName=s;var v="AvatarImage",h=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:s=()=>{},...c}=e,d=p(v,n),f=function(e){let[t,n]=r.useState("idle");return(0,l.N)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}},[e]),t}(o),m=(0,i.c)(e=>{s(e),d.onImageLoadingStatusChange(e)});return(0,l.N)(()=>{"idle"!==f&&m(f)},[f,m]),"loaded"===f?(0,u.jsx)(a.sG.img,{...c,ref:t,src:o}):null});h.displayName=v;var g="AvatarFallback",w=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...i}=e,l=p(g,n),[s,c]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==l.imageLoadingStatus?(0,u.jsx)(a.sG.span,{...i,ref:t}):null});w.displayName=g;var y=m,b=h,x=w},67172:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(63123),o=n(55388),i=n(20776),l=n(48310),a=n(43603);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.A)(t),[s,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(s,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),u=(0,i.s)(t,o.collectionRef);return(0,a.jsx)(l.DX,{ref:u,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>
1{let{scope:n,children:o,...u}=e,s=r.useRef(null),d=(0,i.s)(t,s),f=c(m,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,a.jsx)(l.DX,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},70504:(e,t,n)=>{"use strict";n.d(t,{jH:()=>i});var r=n(63123);n(43603);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},16807:(e,t,n)=>{"use strict";n.d(t,{H_:()=>ro,UC:()=>re,YJ:()=>rt,q7:()=>rr,VF:()=>ra,JU:()=>rn,ZL:()=>n9,z6:()=>ri,hN:()=>rl,bL:()=>n8,wv:()=>ru,Pb:()=>rs,G5:()=>rd,ZP:()=>rc,l9:()=>n7});var r,o=n(63123),i=n(51009),l=n(20776),a=n(43603);function u(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),l=n.length;n=[...n,r];let u=t=>{let{scope:n,children:r,...u}=t,s=n?.[e]?.[l]||i,c=o.useMemo(()=>u,Object.values(u));return(0,a.jsx)(s.Provider,{value:c,children:r})};return u.displayName=t+"Provider",[u,function(n,a){let u=a?.[e]?.[l]||i,s=o.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var s=n(43224),c=n(73343),d=n(67172),f=n(70504),p=n(41616),m=n(97560),v="dismissableLayer.update",h=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=o.forwardRef((e,t)=>{var n,u;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:g,onInteractOutside:b,onDismiss:x,...E}=e,C=o.useContext(h),[R,S]=o.useState(null),k=null!==(u=null==R?void 0:R.ownerDocument)&&void 0!==u?u:null===(n=globalThis)||void 0===n?void 0:n.document,[,M]=o.useState({}),_=(0,l.s)(t,e=>S(e)),P=Array.from(C.layers),[T]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),j=P.indexOf(T),O=R?P.indexOf(R):-1,L=C.layersWithOutsidePointerEventsDisabled.size>0,A=O>=j,N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));!A||n||(null==f||f(e),null==b||b(e),e.defaultPrevented||null==x||x())},k),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...C.branches].some(e=>e.contains(t))||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==x||x())},k);return(0,m.U)(e=>{O!==C.layers.size-1||(null==d||d(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},k),o.useEffect(()=>{if(R)return s&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(R)),C.layers.add(R),w(),()=>{s&&1===C.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=r)}},[R,k,s,C]),o.useEffect(()=>()=>{R&&(C.layers.delete(R),C.layersWithOutsidePointerEventsDisabled.delete(R),w())},[R,C]),o.useEffect(()=>{let e=()=>M({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,a.jsx)(c.sG.div,{...E,ref:_,style:{pointerEvents:L?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,N.onPointerDownCapture)})});function w(){let e=new CustomEvent(v);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,c.hO)(i,l):i.dispatchEvent(l)}g.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(h),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(c.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var b=0;function x(){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}var E=n(25857),C=n(24936);let R=["top","right","bottom","left"],S=Math.min,k=Math.max,M=Math.round,_=Math.floor,P=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function O(e,t){return"function"==typeof e?e(t):e}function L(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function N(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function I(e){return["top","bottom"].includes(L(e))?"y":"x"}function F(e){return e.replace(/start|end/g,e=>j[e])}function H(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function B(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function U(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function W(e,t,n){let r,{reference:o,floating:i}=e,l=I(t),a=N(I(t)),u=D(a),s=L(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(A(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let G=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=W(s,r,u),f=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:h,y:g,data:w,reset:y}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...w}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(s=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:c,y:d}=W(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function K(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=O(t,e),m=B(p),v=a[f?"floating"===d?"reference":"floating":d],h=U(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=U(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:u}):g);return{top:(h.top-b.top+m.top)/y.y,bottom:(b.bottom-h.bottom+m.bottom)/y.y,left:(h.left-b.left+m.left)/y.x,right:(b.right-h.right+m.right)/y.x}}function z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return R.some(t=>e[t]>=0)}async function X(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=L(n),a=A(n),u="y"===I(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,d=O(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function q(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return e instanceof Node||e instanceof Y(e).Node}function J(e){return e instanceof Element||e instanceof Y(e).Element}function Q(e){return e instanceof HTMLElement||e instanceof Y(e).HTMLElement}function ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot)}function et(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function en(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function er(e){let t=eo(),n=J(e)?el(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function eo(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ei(e){return["html","body","#document"].includes(q(e))}function el(e){return Y(e).getComputedStyle(e)}function ea(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===q(e))return e;let t=e.assignedSlot||e.parentNode||ee(e)&&e.host||$(e);return ee(t)?t.host:t}
1function es(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:Q(n)&&et(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Y(o);if(i){let e=ec(l);return t.concat(l,l.visualViewport||[],et(o)?o:[],e&&n?es(e):[])}return t.concat(o,es(o,[],n))}function ec(e){return Object.getPrototypeOf(e.parent)?e.frameElement:null}function ed(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Q(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=M(n)!==i||M(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ef(e){return J(e)?e:e.contextElement}function ep(e){let t=ef(e);if(!Q(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ed(t),l=(i?M(n.width):n.width)/r,a=(i?M(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let em=P(0);function ev(e){let t=Y(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:em}function eh(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ef(e),a=P(1);t&&(r?J(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===Y(l))&&o)?ev(l):P(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=Y(l),t=r&&J(r)?Y(r):r,n=e,o=ec(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=l,o=ec(n=Y(o))}}return U({width:d,height:f,x:s,y:c})}function eg(e){return eh($(e)).left+ea(e).scrollLeft}function ew(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=Y(e),r=$(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=$(e),n=ea(e),r=e.ownerDocument.body,o=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eg(e),a=-n.scrollTop;return"rtl"===el(r).direction&&(l+=k(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}($(e));else if(J(t))r=function(e,t){let n=eh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?ep(e):P(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ev(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return U(r)}function ey(e){return"static"===el(e).position}function eb(e,t){return Q(e)&&"fixed"!==el(e).position?t?t(e):e.offsetParent:null}function ex(e,t){let n=Y(e);if(en(e))return n;if(!Q(e)){let t=eu(e);for(;t&&!ei(t);){if(J(t)&&!ey(t))return t;t=eu(t)}return n}let r=eb(e,t);for(;r&&["table","td","th"].includes(q(r))&&ey(r);)r=eb(r,t);return r&&ei(r)&&ey(r)&&!er(r)?n:r||function(e){let t=eu(e);for(;Q(t)&&!ei(t);){if(er(t))return t;if(en(t))break;t=eu(t)}return null}(e)||n}let eE=async function(e){let t=this.getOffsetParent||ex,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Q(t),o=$(t),i="fixed"===n,l=eh(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=P(0);if(r||!r&&!i){if(("body"!==q(t)||et(o))&&(a=ea(t)),r){let e=eh(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eg(o))}return{x:l.left+a.scrollLeft-u.x,y:l.top+a.scrollTop-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eC={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=$(r),a=!!t&&en(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=P(1),c=P(0),d=Q(r);if((d||!d&&!i)&&(("body"!==q(r)||et(l))&&(u=ea(r)),Q(r))){let e=eh(r);s=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x,y:n.y*s.y-u.scrollTop*s.y+c.y}},getDocumentElement:$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?en(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=es(e,[],!1).filter(e=>J(e)&&"body"!==q(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;J(l)&&!ei(l);){let t=el(l),n=er(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||et(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!J(r)||ei(r))&&("fixed"===el(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eu(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=ew(t,n,o);return e.top=k(r.top,e.top),e.right=S(r.right,e.right),e.bottom=S(r.bottom,e.bottom),e.left=k(r.left,e.left),e},ew(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ex,getElementRects:eE,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ed(e);return{width:t,height:n}},getScale:ep,isElement:J,isRTL:function(e){return"rtl"===el(e).direction}},eR=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=O(e,t)||{};if(null==s)return{};let d=B(c),f={x:n,y:r},p=N(I(o)),m=D(p),v=await l.getDimensions(s),h="y"===p,g=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],y=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),x=b?b[g]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[g]||i.floating[m]);let E=x/2-v[m]/2-1,C=S(d[h?"top":"left"],E),R=S(d[h?"bottom":"right"],E),M=x-v[m]-R,_=x/2-v[m]/2+(w/2-y/2),P=k(C,S(_,M)),T=!u.arrow&&null!=A(o)&&_!==P&&i.reference[m]/2-(_<C?C:R)-v[m]/2<0,j=T?_<C?_-C:_-M:0;return{[p]:f[p]+j,data:{[p]:P,centerOffset:_-P-j,...T&&{alignmentOffset:j}},reset:T}}}),eS=(e,t,n)=>{let r=new Map,o={platform:eC,...n},i={...o.platform,_c:r};return G(e,t,{...o,platform:i})};var ek=n(92546),eM="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function e_(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e_(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!e_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eP(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eT(e,t){let n=eP(e);return Math.round(t*n)/n}function ej(e){let t=o.useRef(e);return eM(()=>{t.current=e}),t}let eO=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eR({element:n.current,padding:r}).fn(t):{}:n?eR({element:n,padding:r}).fn(t):{}}}),eL=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await X(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}),eA=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=O(e,t),s={x:n,y:r},c=await K(t,u),d=I(L(o)),f=N(d),p=s[f],m=s[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=k(n,S(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=k(n,S(m,r))}let v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}}(e),options:[e,t]}),eN=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=O(e,t),c={x:n,y:r},d=I(o),f=N(d),p=c[f],m=c[d],v=O(a,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,w;let e="y"===f?"width":"height",t=["top","left"].includes(L(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:h.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[d])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}}(e),options:[e,t]}),eD=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=O(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=L(a),x=I(c),E=L(c)===c,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),R=v||(E||!w?[H(c)]:function(e){let t=H(e);return[F(e),t,F(t)]}(c)),S="none"!==g;!v&&S&&R.push(...function(e,t,n,r){let o=A(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(L(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(F)))),i}(c,w,g,C));let k=[c,...R],M=await K(t,y),_=[],P=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&_.push(M[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),o=N(I(e)),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=H(l)),[l,H(l)]}(a,s,C);_.push(M[e[0]],M[e[1]])}if(P=[...P,{placement:a,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(i=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(h){case"bestFit":{let e=null==(l=P.filter(e=>{if(S){let t=I(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
1e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eI=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:o,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...s}=O(e,t),c=await K(t,s),d=L(o),f=A(o),p="y"===I(o),{width:m,height:v}=i.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let h=v-c.top-c.bottom,g=m-c.left-c.right,w=S(v-c[n],h),y=S(m-c[r],g),b=!t.middlewareData.shift,x=w,E=y;if(p?E=f||b?S(y,g):g:x=f||b?S(w,h):h,b&&!f){let e=k(c.left,0),t=k(c.right,0),n=k(c.top,0),r=k(c.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:k(c.left,c.right)):x=v-2*(0!==n||0!==r?n+r:k(c.top,c.bottom))}await u({...t,availableWidth:E,availableHeight:x});let C=await l.getDimensions(a.floating);return m!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),eF=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=O(e,t);switch(r){case"referenceHidden":{let e=z(await K(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:V(e)}}}case"escaped":{let e=z(await K(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:V(e)}}}default:return{}}}}}(e),options:[e,t]}),eH=(e,t)=>({...eO(e),options:[e,t]});var eB=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(c.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eB.displayName="Arrow";var eU=n(55388),eW=n(16544),eG="Popper",[eK,ez]=(0,eU.A)(eG),[eV,eX]=eK(eG),eq=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,a.jsx)(eV,{scope:t,anchor:r,onAnchorChange:i,children:n})};eq.displayName=eG;var eY="PopperAnchor",e$=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,u=eX(eY,n),s=o.useRef(null),d=(0,l.s)(t,s);return o.useEffect(()=>{u.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,a.jsx)(c.sG.div,{...i,ref:d})});e$.displayName=eY;var eZ="PopperContent",[eJ,eQ]=eK(eZ),e0=o.forwardRef((e,t)=>{var n,r,i,u,s,d,f,m;let{__scopePopper:v,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:M=!1,updatePositionStrategy:P="optimized",onPlaced:T,...j}=e,O=eX(eZ,v),[L,A]=o.useState(null),N=(0,l.s)(t,e=>
1A(e)),[D,I]=o.useState(null),F=function(e){let[t,n]=o.useState(void 0);return(0,eW.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,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;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(D),H=null!==(f=null==F?void 0:F.width)&&void 0!==f?f:0,B=null!==(m=null==F?void 0:F.height)&&void 0!==m?m:0,U="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(E)?E:[E],G=W.length>0,K={padding:U,boundary:W.filter(e4),altBoundary:G},{refs:z,floatingStyles:V,placement:X,isPositioned:q,middlewareData:Y}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);e_(p,r)||m(r);let[v,h]=o.useState(null),[g,w]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=o.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),x=l||v,E=a||g,C=o.useRef(null),R=o.useRef(null),S=o.useRef(d),k=null!=s,M=ej(s),_=ej(i),P=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),eS(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!e_(S.current,t)&&(S.current=t,ek.flushSync(()=>{f(t)}))})},[p,t,n,_]);eM(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=o.useRef(!1);eM(()=>(T.current=!0,()=>{T.current=!1}),[]),eM(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(M.current)return M.current(x,E,P);P()}},[x,E,P,M,k]);let j=o.useMemo(()=>({reference:C,floating:R,setReference:y,setFloating:b}),[y,b]),O=o.useMemo(()=>({reference:x,floating:E}),[x,E]),L=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eT(O.floating,d.x),r=eT(O.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eP(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:P,refs:j,elements:O,floatingStyles:L}),[d,P,j,O,L])}({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ef(e),d=i||l?[...c?es(c):[],...es(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,o=$(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let{left:s,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let p=_(c),m=_(o.clientWidth-(s+d)),v={rootMargin:-p+"px "+-m+"px "+-_(o.clientHeight-(c+f))+"px "+-_(s)+"px",threshold:k(0,S(1,u))||1},h=!0;function g(e){let t=e[0].intersectionRatio;if(t!==u){if(!h)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}h=!1}try{r=new IntersectionObserver(g,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let v=s?eh(e):null;return s&&function t(){let r=eh(e);v&&(r.x!==v.x||r.y!==v.y||r.width!==v.width||r.height!==v.height)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:O.anchor},middleware:[eL({mainAxis:g+B,alignmentAxis:y}),x&&eA({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eN():void 0,...K}),x&&eD({...K}),eI({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&eH({element:D,padding:b}),e6({arrowWidth:H,arrowHeight:B}),M&&eF({strategy:"referenceHidden",...K})]}),[Z,J]=e5(X),Q=(0,p.c)(T);(0,eW.N)(()=>{q&&(null==Q||Q())},[q,Q]);let ee=null===(n=Y.arrow)||void 0===n?void 0:n.x,et=null===(r=Y.arrow)||void 0===r?void 0:r.y,en=(null===(i=Y.arrow)||void 0===i?void 0:i.centerOffset)!==0,[er,eo]=o.use
1State();return(0,eW.N)(()=>{L&&eo(window.getComputedStyle(L).zIndex)},[L]),(0,a.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(u=Y.transformOrigin)||void 0===u?void 0:u.x,null===(s=Y.transformOrigin)||void 0===s?void 0:s.y].join(" "),...(null===(d=Y.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(eJ,{scope:v,placedSide:Z,onArrowChange:I,arrowX:ee,arrowY:et,shouldHideArrow:en,children:(0,a.jsx)(c.sG.div,{"data-side":Z,"data-align":J,...j,ref:N,style:{...j.style,animation:q?void 0:"none"}})})})});e0.displayName=eZ;var e1="PopperArrow",e2={top:"bottom",right:"left",bottom:"top",left:"right"},e3=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eQ(e1,n),i=e2[o.placedSide];return(0,a.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,a.jsx)(eB,{...r,ref:t,style:{...r.style,display:"block"}})})});function e4(e){return null!==e}e3.displayName=e1;var e6=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=e5(a),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,w="",y="";return"bottom"===p?(w=c?v:"".concat(h,"px"),y="".concat(-f,"px")):"top"===p?(w=c?v:"".concat(h,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=c?v:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),y=c?v:"".concat(g,"px")),{data:{x:w,y}}}});function e5(e){let[t,n="center"]=e.split("-");return[t,n]}var e8=o.forwardRef((e,t)=>{var n,r;let{container:i,...l}=e,[u,s]=o.useState(!1);(0,eW.N)(()=>s(!0),[]);let d=i||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return d?ek.createPortal((0,a.jsx)(c.sG.div,{...l,ref:t}),d):null});e8.displayName="Portal";var e7=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=o.useState(),l=o.useRef({}),a=o.useRef(e),u=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=e9(l.current);u.current="mounted"===s?e:"none"},[s]),(0,eW.N)(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=e9(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),(0,eW.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=e9(l.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=e9(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=(0,l.s)(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:a}):null};function e9(e){return(null==e?void 0:e.animationName)||"none"}e7.displayName="Presence";var te="rovingFocusGroup.onEntryFocus",tt={bubbles:!1,cancelable:!0},tn="RovingFocusGroup",[tr,to,ti]=(0,d.N)(tn),[tl,ta]=(0,eU.A)(tn,[ti]),[tu,ts]=tl(tn),tc=o.forwardRef((e,t)=>
1(0,a.jsx)(tr.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(tr.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(td,{...e,ref:t})})}));tc.displayName=tn;var td=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:u=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...y}=e,b=o.useRef(null),x=(0,l.s)(t,b),E=(0,f.jH)(d),[C=null,R]=(0,s.i)({prop:m,defaultProp:v,onChange:h}),[S,k]=o.useState(!1),M=(0,p.c)(g),_=to(n),P=o.useRef(!1),[T,j]=o.useState(0);return o.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(te,M),()=>e.removeEventListener(te,M)},[M]),(0,a.jsx)(tu,{scope:n,orientation:r,dir:E,loop:u,currentTabStopId:C,onItemFocus:o.useCallback(e=>R(e),[R]),onItemShiftTab:o.useCallback(()=>k(!0),[]),onFocusableItemAdd:o.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>j(e=>e-1),[]),children:(0,a.jsx)(c.sG.div,{tabIndex:S||0===T?-1:0,"data-orientation":r,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(te,tt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=_().filter(e=>e.focusable);tv([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),w)}}P.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>k(!1))})})}),tf="RovingFocusGroupItem",tp=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:u,...s}=e,d=(0,C.B)(),f=u||d,p=ts(tf,n),m=p.currentTabStopId===f,v=to(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=p;return o.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),(0,a.jsx)(tr.ItemSlot,{scope:n,id:f,focusable:r,active:l,children:(0,a.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tm[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>tv(n))}})})})});tp.displayName=tf;var tm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tv(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var th=n(48310),tg=n(69548),tw=n(76197),ty=n(90588),tb=n(10624),tx=(0,n(24445).f)(),tE=function(){},tC=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:tE,onWheelCapture:tE,onTouchMoveCapture:tE}),i=r[0],l=r[1],a=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,w=e.gapMode,y=(0,tw.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,tb.S)([n,t]),x=(0,tw.Cl)((0,tw.Cl)({},y),i);return o.createElement(o.Fragment,null,d&&o.createElement(p,{sideCar:tx,removeScrollBar:c,shards:f,noIsolation:m,inert:v,setCallbacks:l,allowPinchZoom:!!h,lockRef:n,gapMode:w}),a?o.cloneElement(o.Children.only(u),(0,tw.Cl)((0,tw.Cl)({},x),{ref:b})):o.createElement(void 0===g?"div":g,(0,tw.Cl)({},x,{className:s,ref:b}),u))});tC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tC.classNames={fullWidth:ty.pN,zeroRight:ty.Mi};var tR=n(13389),tS=n(98909),tk=n(2983),tM=!1;if("undefined"!=typeof window)try{var t_=Object.defineProperty({},"passive",{get:function(){return tM=!0,!0}});window.addEventListener("test",t_,t_),window.removeEventListener("test",t_,t_)}catch(e){tM=!1}var tP=!!tM&&{passive:!1},tT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},tj=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tO(e,r)){var o=tL(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1}
1,tO=function(e,t){return"v"===e?tT(t,"overflowY"):tT(t,"overflowX")},tL=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tA=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{var m=tL(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&tO(e,u)&&(f+=h,p+=v),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},tN=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tD=function(e){return[e.deltaX,e.deltaY]},tI=function(e){return e&&"current"in e?e.current:e},tF=0,tH=[];let tB=(0,tR.m)(tx,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(tF++)[0],l=o.useState(tk.T0)[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,tw.fX)([e.lockRef.current],(e.shards||[]).map(tI),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=tN(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tj(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tj(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return tA(p,t,e,"h"===p?u:s,!0)},[]),s=o.useCallback(function(e){if(tH.length&&tH[tH.length-1]===l){var n="deltaY"in e?tD(e):tN(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tI).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,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}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=tN(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,tD(t),t.target,u(t,e.lockRef.current))},[]),p=o.useCallback(function(t){c(t.type,tN(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return tH.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,tP),document.addEventListener("touchmove",s,tP),document.addEventListener("touchstart",d,tP),function(){tH=tH.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,tP),document.removeEventListener("touchmove",s,tP),document.removeEventListener("touchstart",d,tP)}},[]);var m=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(l,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?o.createElement(tS.jp,{gapMode:e.gapMode}):null)});var tU=o.forwardRef(function(e,t){return o.createElement(tC,(0,tw.Cl)({},e,{ref:t,sideCar:tB}))});tU.classNames=tC.classNames;var tW=["Enter"," "],tG=["ArrowUp","PageDown","End"],tK=["ArrowDown","PageUp","Home",...tG],tz={ltr:[...tW,"ArrowRight"],rtl:[...tW,"ArrowLeft"]},tV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tX="Menu",[tq,tY,t$]=(0,d.N)(tX),[tZ,tJ]=u(tX,[t$,ez,ta]),tQ=ez(),t0=ta(),[t1,t2]=tZ(tX),[t3,t4]=tZ(tX),t6=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:u=!0}
1=e,s=tQ(t),[c,d]=o.useState(null),m=o.useRef(!1),v=(0,p.c)(l),h=(0,f.jH)(i);return o.useEffect(()=>{let e=()=>{m.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>m.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,a.jsx)(eq,{...s,children:(0,a.jsx)(t1,{scope:t,open:n,onOpenChange:v,content:c,onContentChange:d,children:(0,a.jsx)(t3,{scope:t,onClose:o.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:m,dir:h,modal:u,children:r})})})};t6.displayName=tX;var t5=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tQ(n);return(0,a.jsx)(e$,{...o,...r,ref:t})});t5.displayName="MenuAnchor";var t8="MenuPortal",[t7,t9]=tZ(t8,{forceMount:void 0}),ne=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=t2(t8,t);return(0,a.jsx)(t7,{scope:t,forceMount:n,children:(0,a.jsx)(e7,{present:n||i.open,children:(0,a.jsx)(e8,{asChild:!0,container:o,children:r})})})};ne.displayName=t8;var nt="MenuContent",[nn,nr]=tZ(nt),no=o.forwardRef((e,t)=>{let n=t9(nt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=t2(nt,e.__scopeMenu),l=t4(nt,e.__scopeMenu);return(0,a.jsx)(tq.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(e7,{present:r||i.open,children:(0,a.jsx)(tq.Slot,{scope:e.__scopeMenu,children:l.modal?(0,a.jsx)(ni,{...o,ref:t}):(0,a.jsx)(nl,{...o,ref:t})})})})}),ni=o.forwardRef((e,t)=>{let n=t2(nt,e.__scopeMenu),r=o.useRef(null),u=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,tg.Eq)(e)},[]),(0,a.jsx)(na,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),nl=o.forwardRef((e,t)=>{let n=t2(nt,e.__scopeMenu);return(0,a.jsx)(na,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),na=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:w,disableOutsideScroll:y,...C}=e,R=t2(nt,n),S=t4(nt,n),k=tQ(n),M=t0(n),_=tY(n),[P,T]=o.useState(null),j=o.useRef(null),O=(0,l.s)(t,j,R.onContentChange),L=o.useRef(0),A=o.useRef(""),N=o.useRef(0),D=o.useRef(null),I=o.useRef("right"),F=o.useRef(0),H=y?tU:o.Fragment,B=y?{as:th.DX,allowPinchZoom:!0}:void 0,U=e=>{var t,n;let r=A.current+e,o=_().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(L.current),""!==t&&(L.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};o.useEffect(()=>()=>window.clearTimeout(L.current),[]),o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:x()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:x()),b++,()=>{1===b&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),b--}},[]);let W=o.useCallback(e=>{var t,n;return I.current===(null===(t=D.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,u=t[i].x,s=t[i].y;a>r!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=D.current)||void 0===n?void 0:n.area)},[]);return(0,a.jsx)(nn,{scope:n,searchRef:A,onItemEnter:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:o.useCallback(e=>{var t;W(e)||(null===(t=j.current)||void 0===t||t.focus(),T(null))},[W]),onTriggerLeave:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:N,onPointerGraceIntentChange:o.useCallback(e=>{D.current=e},[]),children:(0,a.jsx)(H,{...B,children:(0,a.jsx)(E.n,{asChild:!0,trapped:u,onMountAutoFocus:(0,i.m)(s,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,a.jsx)(g,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:w,children:(0,a.jsx)(tc,{asChild:!0,...M,dir:S.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:(0,i.m)(f,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,a.jsx)(e0,{role:"menu","aria-orientation":"vertical","data-state":nN(R.open),"data-radix-menu-content":"",dir:S.dir,...k,...C,ref:O,style:{outline:"none",...C.style},onKeyDown:(0,i.m)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&U(e.key));let o=j.current;if(e.target!==o||!tK.includes(e.key))return;e.preventDefault();let i=_().filter(e=>!e.disabled).map(e=>e.ref.current);tG.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),A.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,nF(e=>{let t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>F.current?"right":"left";I.current=t,F.current=e.clientX}}))})})})})})})});no.displayName=nt;var nu=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,a.jsx)(c.sG.div,{role:"group",...r,ref:t})});nu.displayName="MenuGroup";var ns=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,a.jsx)(c.sG.div,{...r,ref:t})});ns.displayName="MenuLabel";var nc="MenuItem",nd="menu.itemSelect",nf=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...u}=e,s=o.useRef(null),d=t4(nc,e.__scopeMenu),f=nr(nc,e.__scopeMenu),p=(0,l.s)(t,s),m=o.useRef(!1);return(0,a.jsx)(np,{...u,ref:p,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(nd,{bubbles:!0,cancelable:!0});e.addEventListener(nd,e=>null==r?void 0:r(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?m.current=!1:d.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),m.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;m.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!n&&(!t||" "!==e.key)&&tW.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nf.displayName=nc;var np=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:u,...s}=e,d=nr(nc,n),f=t0(n),p=o.useRef(null),m=(0,l.s)(t,p),[v,h]=o.useState(!1),[g,w]=o.useState("");return o.useEffect(()=>{let e=p.current;if(e){var t;w((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,a.jsx)(tq.ItemSlot,{scope:n,disabled:r,textValue:null!=u?u:g,children:(0,a.jsx)(tp,{asChild:!0,...f,focusable:!r,children:(0,a.jsx)(c.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:m,onPointerMove:(0,i.m)(e.onPointerMove,nF(e=>{r?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nF(e=>d.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>h(!0)),onBlur:(0,i.m)(e.onBlur,()=>h(!1))})})})}),nm=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,a.jsx)(nE,{scope:e.__scopeMenu,checked:n,children:(0,a.jsx)(nf,{role:"menuitemcheckbox","aria-checked":nD(n)?"mixed":n,...o,ref:t,"data-state":nI(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!nD(n)||!n),{checkForDefaultPrevented:!1})})})});nm.displayName="MenuCheckboxItem";var nv="MenuRadioGroup",[nh,ng]=tZ(nv,{value:void 0,onValueChange:()=>{}}),nw=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,p.c)(r);return(0,a.jsx)(nh,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,a.jsx)(nu,{...o,ref:t})})});nw.displayName=nv;var ny="MenuRadioItem",nb=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=ng(ny,e.__scopeMenu),l=n===o.value;return(0,a.jsx)(nE,{scope:e.__scopeMenu,checked:l,children:(0,a.jsx)(nf,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":nI(l),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});nb.displayName=ny;var nx="MenuItemIndicator",[nE,nC]=tZ(nx,{checked:!1}),nR=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=nC(nx,n);return(0,a.jsx)(e7,{present:r||nD(i.checked)||!0===i.checked,children:(0,a.jsx)(c.sG.span,{...o,ref:t,"data-state":nI(i.checked)})})});nR.displayName=nx;var nS=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,a.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});nS.displayName="MenuSeparator";var nk=o.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=tQ(n);return(0,a.jsx)(e3,{...o,...r,ref:t})});nk.displayName="MenuArrow";var nM="MenuSub",[n_,nP]=tZ(nM),nT=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=t2(nM,t),u=tQ(t),[s,c]=o.useState(null),[d,f]=o.useState(null),m=(0,p.c)(i);return o.useEffect(()=>(!1===l.open&&m(!1),()=>m(!1)),[l.open,m]),(0,a.jsx)(eq,{...u,children:(0,a.jsx)(t1,{scope:t,open:r,onOpenChange:m,content:d,onContentChange:f,children:(0,a.jsx)(n_,{scope:t,contentId:(0,C.B)(),triggerId:(0,C.B)(),trigger:s,onTriggerChange:c,children:n})})})};nT.displayName=nM;var nj="MenuSubTrigger",nO=o.forwardRef((e,t)=>{let n=t2(nj,e.__scopeMenu),r=t4(nj,e.__scopeMenu),u=nP(nj,e.__scopeMenu),s=nr(nj,e.__scopeMenu),c=o.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=s,p={__scopeMenu:e.__scopeMenu},m=o.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return o.useEffect(()=>m,[m]),o.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,a.jsx)(t5,{asChild:!0,...p,children:(0,a.jsx)(np,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":nN(n.open),...e,ref:(0,l.t)(t,u.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,nF(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nF(e=>{var t,r;m();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let o=""!==s.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tz[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});nO.displayName=nj;var nL="MenuSubContent",nA=o.forwardRef((e,t)=>{let n=t9(nt,e.__scopeMenu),{forceMount:r=n.forceMount,...u}=e,s=t2(nt,e.__scopeMenu),c=t4(nt,e.__scopeMenu),d=nP(nL,e.__scopeMenu),f=o.useRef(null),p=(0,l.s)(t,f);return(0,a.jsx)(tq.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(e7,{present:r||s.open,children:(0,a.jsx)(tq.Slot,{scope:e.__scopeMenu,children:(0,a.jsx)(na,{id:d.contentId,"aria-labelledby":d.triggerId,...u,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tV[c.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nN(e){return e?"open":"closed"}function nD(e){return"indeterminate"===e}function nI(e){return nD(e)?"indeterminate":e?"checked":"unchecked"}function nF(e){return t=>"mouse"===t.pointerType?e(t):void 0}nA.displayName=nL;var nH="DropdownMenu",[nB,nU]=u(nH,[tJ]),nW=tJ(),[nG,nK]=nB(nH),nz=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,d=nW(t),f=o.useRef(null),[p=!1,m]=(0,s.i)({prop:i,defaultProp:l,onChange:u});return(0,a.jsx)(nG,{scope:t,triggerId:(0,C.B)(),triggerRef:f,contentId:(0,C.B)(),open:p,onOpenChange:m,onOpenToggle:o.useCallback(()=>m(e=>!e),[m]),modal:c,children:(0,a.jsx)(t6,{...d,open:p,onOpenChange:m,dir:r,modal:c,children:n})})};nz.displayName=nH;var nV="DropdownMenuTrigger",nX=o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,u=nK(nV,n),s=nW(n);return(0,a.jsx)(t5,{asChild:!0,...s,children:(0,a.jsx)(c.sG.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.t)(t,u.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nX.displayName=nV;var nq=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nW(t);return(0,a.jsx)(ne,{...r,...n})};nq.displayName="DropdownMenuPortal";var nY="DropdownMenuContent",n$=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=nK(nY,n),u=nW(n),s=o.useRef(!1);return(0,a.jsx)(no,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...r,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;s.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n$.displayName=nY;var nZ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nu,{...o,...r,ref:t})});nZ.displayName="DropdownMenuGroup";var nJ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(ns,{...o,...r,ref:t})});nJ.displayName="DropdownMenuLabel";var nQ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nf,{...o,...r,ref:t})});nQ.displayName="DropdownMenuItem";var n0=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nm,{...o,...r,ref:t})});n0.displayName="DropdownMenuCheckboxItem";var n1=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nw,{...o,...r,ref:t})});n1.displayName="DropdownMenuRadioGroup";var n2=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nb,{...o,...r,ref:t})});n2.displayName="DropdownMenuRadioItem";var n3=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nR,{...o,...r,ref:t})});n3.displayName="DropdownMenuItemIndicator";var n4=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nS,{...o,...r,ref:t})});n4.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nk,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var n6=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nO,{...o,...r,ref:t})});n6.displayName="DropdownMenuSubTrigger";var n5=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nW(n);return(0,a.jsx)(nA,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n5.displayName="DropdownMenuSubContent";var n8=nz,n7=nX,n9=nq,re=n$,rt=nZ,rn=nJ,rr=nQ,ro=n0,ri=n1,rl=n2,ra=n3,ru=n4,rs=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=nW(t),[u=!1,c]=(0,s.i)({prop:r,defaultProp:i,onChange:o});return(0,a.jsx)(nT,{...l,open:u,onOpenChange:c,children:n})},rc=n6,rd=n5},96687:(e,t,n)=>{"use strict";n.d(t,{SpeedInsights:()=>m});var r=n(63123),o=n(16606),i=()=>{window.si||(window.si=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.siq=window.siq||[]).push(t)})};function l(){return false}function a(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}var u="https://va.vercel-scripts.com/v1/speed-insights",s="".concat(u,"/script.js"),c="".concat(u,"/script.debug.js");function d(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>
1{if(t.current)e.route&&t.current(e.route);else{let n=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("undefined"!=typeof window)||null===t.route)return null;i();let n=!!t.dsn,r=t.scriptSrc||(n?s:"/_vercel/speed-insights/script.js");if(document.head.querySelector('script[src*="'.concat(r,'"]')))return null;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend));let o=document.createElement("script");return o.src=r,o.defer=!0,o.dataset.sdkn="@vercel/speed-insights"+(t.framework?"/".concat(t.framework):""),o.dataset.sdkv="1.1.0",t.sampleRate&&(o.dataset.sampleRate=t.sampleRate.toString()),t.route&&(o.dataset.route=t.route),t.endpoint&&(o.dataset.endpoint=t.endpoint),t.dsn&&(o.dataset.dsn=t.dsn),o.onerror=()=>{console.log("[Vercel Speed Insights] Failed to load script from ".concat(r,". Please check if any content blockers are enabled and try again."))},document.head.appendChild(o),{setRoute:e=>{o.dataset.route=null!=e?e:void 0}}}({framework:e.framework||"react",...e});n&&(t.current=n.setRoute)}},[e.route]),null}var f=()=>{let e=(0,o.useParams)(),t=(0,o.useSearchParams)()||new URLSearchParams,n=(0,o.usePathname)();return e?function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function p(e){let t=f();return r.createElement(d,{route:t,...e,framework:"next"})}function m(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(p,{...e}))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.