(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3783],{801:(e,t,r)=>{"use strict";r.d(t,{l:()=>h,o:()=>f});var n=r(85556),a=r(28693);!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(`html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--color);background:var(--border-color)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}} `);var o=e=>{switch(e){case"success":return c;case"error":return u;default:return null}},s=Array(12).fill(0),i=({visible:e})=>n.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},n.createElement("div",{className:"sonner-spinner"},s.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),l=0,d=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:l++,o=this.toasts.find(e=>e.id===a),s=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:s,title:r}):t):this.addToast({title:r,...n,dismissible:s,id:a}),a},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r=this.create({...t,promise:e,type:"loading",message:t.loading});return(e instanceof Promise?e:e()).then(e=>{let n="function"==typeof t.success?t.success(e):t.success;this.create({id:r,type:"success",message:n})}).catch(e=>{let n="function"==typeof t.error?t.error(e):t.error;this.create({id:r,type:"error",message:n})}).finally(t.finally),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||l++;this.publish({jsx:e(r),id:r,...t})},this.subscribers=[],this.toasts=[]}},f=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||l++;return d.addToast({title:e,...t,id:r}),r},{success:d.success,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading}),p=e=>{let{invert:t,toast:r,interacting:a,setHeights:s,visibleToasts:c,heights:u,index:l,toasts:d,expanded:f,removeToast:p,closeButton:m,style:h,className:g="",descriptionClassName:v="",duration:y,position:b,expandByDefault:x}=e,[w,C]=n.useState(!1),[E,P]=n.useState(!1),[S,R]=n.useState(!1),[j,k]=n.useState(!1),[O,T]=n.useState(0),[A,M]=n.useState(0),I=n.useRef(null),N=n.useRef(null),_=0===l,D=l+1<=c,L=r.type,F=!1!==r.dismissible,q=r.className||"",B=r.descriptionClassName||"",U=n.useMemo(()=>u.findIndex(e=>e.toastId===r.id)||0,[u,r.id]),$=n.useMemo(()=>r.duration||y||4e3,[r.duration,y]),z=n.useRef(0),H=n.useRef(0),V=n.useRef($),Y=n.useRef(0),K=n.useRef(null),[G,J]=b.split("-"),W=n.useMemo(()=>u.reduce((e,t,r)=>r>=U?e:e+t.height,0),[u,U]),X=r.invert||t,Z="loading"===L;H.current=n.useMemo(()=>14*U+W,[U,W]),n.useEffect(()=>{C(!0)},[]),n.useLayoutEffect(()=>{if(!w)return;let e=N.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,M(n),s(e=>e.find(e=>e.toastId===r.id)?e.map(e=>e.toastId===r.id?{...e,height:n}:e):[{toastId:r.id,height:n},...e])},[w,r.title,r.description,s,r.id]);let Q=n.useCallback(()=>{P(!0),T(H.current),s(e=>e.filter(e=>e.toastId!==r.id)),setTimeout(()=>{p(r)},200)},[r,p,s,H]);return n.useEffect(()=>{let e;if((!r.promise||"loading"!==L)&&r.duration!==1/0)return f||a?(()=>{if(Y.current{var e;null==(e=r.onAutoClose)||e.call(r,r),Q()},V.current)),()=>clearTimeout(e)},[f,a,x,r,$,Q,r.promise,L]),n.useEffect(()=>{let e=N.current;if(e){let t=e.getBoundingClientRect().height;return M(t),s(e=>[{toastId:r.id,height:t},...e]),()=>s(e=>e.filter(e=>e.toastId!==r.id))}},[s,r.id]),n.useEffect(()=>{r.delete&&Q()},[Q,r.delete]),n.createElement("li",{"aria-live":r.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:N,className:g+" "+q,"data-sonner-toast":"","data-styled":!r.jsx,"data-mounted":w,"data-promise":!!r.promise,"data-removed":E,"data-visible":D,"data-y-position":G,"data-x-position":J,"data-index":l,"data-front":_,"data-swiping":S,"data-dismissible":F,"data-type":L,"data-invert":X,"data-swipe-out":j,"data-expanded":!!(f||x&&w),style:{"--index":l,"--toasts-before":l,"--z-index":d.length-l,"--offset":`${E?O:H.current}px`,"--initial-height":x?"auto":`${A}px`,...h,...r.style},onPointerDown:e=>{Z||!F||(I.current=new Date,T(H.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(R(!0),K.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,a;if(j||!F)return;K.current=null;let o=Number((null==(e=N.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),s=Math.abs(o)/(new Date().getTime()-(null==(t=I.current)?void 0:t.getTime()));if(Math.abs(o)>=20||s>.11){T(H.current),null==(n=r.onDismiss)||n.call(r,r),Q(),k(!0);return}null==(a=N.current)||a.style.setProperty("--swipe-amount","0px"),R(!1)},onPointerMove:e=>{var t;if(!K.current||!F)return;let r=e.clientY-K.current.y,n=e.clientX-K.current.x,a=("top"===G?Math.min:Math.max)(0,r),o="touch"===e.pointerType?10:2;Math.abs(a)>o?null==(t=N.current)||t.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>o&&(K.current=null)}},m&&!r.jsx?n.createElement("button",{"aria-label":"Close toast","data-disabled":Z,"data-close-button":!0,onClick:Z||!F?void 0:()=>{var e;Q(),null==(e=r.onDismiss)||e.call(r,r)}},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,r.jsx||n.isValidElement(r.title)?r.jsx||r.title:n.createElement(n.Fragment,null,L||r.icon||r.promise?n.createElement("div",{"data-icon":""},r.promise||"loading"===r.type?n.createElement(i,{visible:"loading"===L}):null,r.icon||o(L)):null,n.createElement("div",{"data-content":""},n.createElement("div",{"data-title":""},r.title),r.description?n.createElement("div",{"data-description":"",className:v+B},r.description):null),r.cancel?n.createElement("button",{"data-button":!0,"data-cancel":!0,onClick:()=>{var e;F&&(Q(),null!=(e=r.cancel)&&e.onClick&&r.cancel.onClick())}},r.cancel.label):null,r.action?n.createElement("button",{"data-button":"",onClick:e=>{var t;null==(t=r.action)||t.onClick(e),e.defaultPrevented||Q()}},r.action.label):null))};function m(){if("undefined"==typeof window)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var h=e=>{var t;let{invert:r,position:o="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:c,className:u,offset:l,theme:f="light",richColors:h,duration:g,style:v,visibleToasts:y=3,toastOptions:b,dir:x=m()}=e,[w,C]=n.useState([]),[E,P]=n.useState([]),[S,R]=n.useState(!1),[j,k]=n.useState(!1),[O,T]=n.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),[A,M]=o.split("-"),I=n.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=n.useRef(null),D=n.useRef(!1),L=n.useCallback(e=>C(t=>t.filter(({id:t})=>t!==e.id)),[]);return n.useEffect(()=>d.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{a.flushSync(()=>{C(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==f){T(f);return}"system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{T(e?"dark":"light")})},[f]),n.useEffect(()=>{w.length<=1&&R(!1)},[w]),n.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(R(!0),null==(t=I.current)||t.focus()),"Escape"===e.code&&(document.activeElement===I.current||null!=(r=I.current)&&r.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),n.useEffect(()=>{if(I.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,D.current=!1)}},[I.current]),w.length?n.createElement("section",{"aria-label":`Notifications ${N}`,tabIndex:-1},n.createElement("ol",{dir:"auto"===x?m():x,tabIndex:-1,ref:I,className:u,"data-sonner-toaster":!0,"data-theme":O,"data-rich-colors":h,"data-y-position":A,"data-x-position":M,style:{"--front-toast-height":`${null==(t=E[0])?void 0:t.height}px`,"--offset":"number"==typeof l?`${l}px`:l||"32px","--width":"356px","--gap":"14px",...v},onBlur:e=>{D.current&&!e.currentTarget.contains(e.relatedTarget)&&(D.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||D.current||(D.current=!0,_.current=e.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{j||R(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||k(!0)},onPointerUp:()=>k(!1)},w.map((e,t)=>n.createElement(p,{key:e.id,index:t,toast:e,duration:g,className:null==b?void 0:b.className,descriptionClassName:null==b?void 0:b.descriptionClassName,invert:r,visibleToasts:y,closeButton:c,interacting:j,position:o,style:null==b?void 0:b.style,removeToast:L,toasts:w,heights:E,setHeights:P,expandByDefault:i,expanded:S})))):null}},9270:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(85556),a=r(98892),o=r(66078),s=r(68987),i=r(10488);function c(e){let t=e+"CollectionProvider",[r,c]=(0,a.A)(t),[u,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,a=n.useRef(null),o=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:o,collectionRef:a,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=l(f,r),c=(0,o.s)(t,a.collectionRef);return(0,i.jsx)(s.DX,{ref:c,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:a,...c}=e,u=n.useRef(null),d=(0,o.s)(t,u),f=l(m,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...c}),()=>void f.itemMap.delete(u))),(0,i.jsx)(s.DX,{[h]:"",ref:d,children:a})});return g.displayName=m,[{Provider:d,Slot:p,ItemSlot:g},function(t){let r=l(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},c]}},15765:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Image:()=>R,Link:()=>E,PrefetchCrossZoneLinks:()=>w,PrefetchCrossZoneLinksContext:()=>h,PrefetchCrossZoneLinksProvider:()=>g,useZoneForHref:()=>C});var n=r(85556),a=r(11410),o=r.n(a);function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}var c=r(10488),u=r(19722),l=r(52150),d=class{constructor(e,t){if(this.pathCache={},this.serialized=e,t?.removeFlaggedPaths)for(let t of Object.values(e.applications))t.routing&&(t.routing=t.routing.filter(e=>!e.flag));this.applications=e.applications}static fromEnv(e,t){if(!e)throw Error("No microfrontends configuration found");return new d(JSON.parse(e),t)}isEqual(e){return JSON.stringify(this.applications)===JSON.stringify(e.applications)}getApplicationNameForPath(e){if(!e.startsWith("/"))throw Error("Path must start with a /");if(this.pathCache[e])return this.pathCache[e];let t=new URL(e,"https://example.com").pathname;for(let[r,n]of Object.entries(this.applications))if(n.routing){for(let a of n.routing)for(let n of a.paths)if((function e(t,r,n){var a;return t instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,a=r.exec(e.source);a;)t.push({name:a[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),a=r.exec(e.source);return e}(t,r):Array.isArray(t)?(a=t.map(function(t){return e(t,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),i(n))):function(e,t,r){void 0===r&&(r={});for(var n=r.strict,a=void 0!==n&&n,o=r.start,c=r.end,u=r.encode,l=void 0===u?function(e){return e}:u,d=r.delimiter,f=r.endsWith,p="[".concat(s(void 0===f?"":f),"]|$"),m="[".concat(s(void 0===d?"/#?":d),"]"),h=void 0===o||o?"^":"",g=0;g-1:void 0===w;a||(h+="(?:".concat(m,"(?=").concat(p,"))?")),C||(h+="(?=".concat(m,"|").concat(p,")"))}return new RegExp(h,i(r))}(function(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=o;continue}if("("===n){var i=1,c="",o=r+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '.concat(o));for(;oe.default);return r?(this.pathCache[e]=r[0],r[0]):null}serialize(){return this.serialized}},f=null;async function p(){try{let e=await fetch("/.well-known/vercel/microfrontends/client-config");if(200!==e.status)return null;let t=await e.json();return new d(t.config)}catch{return null}}function m(e,{removeFlaggedPathsFromDefault:t}={}){let[r,a]=(0,n.useState)(d.fromEnv(e,{removeFlaggedPaths:t})),[o,s]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{if(!Object.values(d.fromEnv(e).applications).some(e=>e.routing?.some(e=>e.flag))){s(!1);return}f||(f=p()),f.then(e=>{e&&a(t=>t.isEqual(e)?t:e)}).finally(()=>{s(!1)})},[e,r.applications]),{clientConfig:r,isLoading:o}}var h=(0,n.createContext)({prefetchHref:()=>{}});function g({children:e}){let[t,r]=(0,n.useState)(new Set),[a,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{o("u">typeof navigator&&(navigator.userAgent.includes("Firefox")||navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")))},[]);let s=(0,n.useCallback)(e=>{t.has(e)||r(new Set(t).add(e))},[t]),i=(0,n.useMemo)(()=>({prefetchHref:s}),[s]);return a?(0,c.jsxs)(h.Provider,{value:i,children:[e,[...t].map(e=>(0,c.jsx)("link",{as:"fetch",href:e,rel:"preload"},e))]}):(0,c.jsx)(c.Fragment,{children:e})}var v="data-prefetch",y={anyZone:"[data-zone]",external:'[data-zone="null"]',sameZone:'[data-zone="same"]',prefetch:`[${v}]`},b={and:[{href_matches:"/*"},{selector_matches:y.anyZone},{not:{selector_matches:y.sameZone}},{not:{selector_matches:y.external}}]},x={and:[{href_matches:"/*"},{selector_matches:y.anyZone},{not:{selector_matches:y.sameZone}},{not:{selector_matches:y.external}},{selector_matches:y.prefetch}]};function w(){let{isLoading:e}=m('{"applications":{"nextjs-conf":{"default":false,"routing":[{"group":"next-conf-pages","paths":["/assets/cube-transformed.glb","/conf","/conf/:path*","/nextjs-conf/:path+","/vc-ap-nextjs-conf/:path+"]}]},"next-site":{"default":true}}}'),[t,r]=(0,n.useState)([]);return(0,n.useEffect)(()=>{if(e)return;let r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!e.target.hasAttribute(v)&&function e(t){if(!t)return!0;if("checkVisibility"in t)return t.checkVisibility({opacityProperty:!0});let r=window.getComputedStyle(t);return"none"!==r.display&&"hidden"!==r.visibility&&"0"!==r.opacity&&e(t.parentElement)}(e.target)&&e.target.setAttribute(v,"true")})},{root:null,rootMargin:"0px",threshold:.1});return t.forEach(e=>r.observe(e)),()=>{r.disconnect()}},[e,t]),(0,n.useEffect)(()=>{if(e)return;let t=new MutationObserver(e=>{e.some(e=>"childList"===e.type&&e.addedNodes.length>0||"attributes"===e.type&&"href"===e.attributeName)&&r(Array.from(document.querySelectorAll(`a${y.anyZone}:not(${y.prefetch}):not(${y.sameZone}):not(${y.external})`)))});return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href"]}),()=>{t.disconnect()}},[e]),e?null:(0,c.jsx)(u.default,{dangerouslySetInnerHTML:{__html:JSON.stringify({prefetch:[{eagerness:"moderate",where:b},{eagerness:"immediate",where:x}],prerender:[{eagerness:"conservative",where:b}]})},id:"prefetch-zones-links",type:"speculationrules"})}function C(e){let{clientConfig:t,isLoading:r}=m('{"applications":{"nextjs-conf":{"default":false,"routing":[{"group":"next-conf-pages","paths":["/assets/cube-transformed.glb","/conf","/conf/:path*","/nextjs-conf/:path+","/vc-ap-nextjs-conf/:path+"]}]},"next-site":{"default":true}}}',{removeFlaggedPathsFromDefault:!0}),n="string"==typeof e&&e.startsWith("/"),a=n?t.getApplicationNameForPath(e):null;return"string"!=typeof e||e.length?{zoneOfHref:a,isDifferentZone:!n||!!a&&"next-site"!==a,isLoading:r}:{zoneOfHref:null,isDifferentZone:!1,isLoading:!1}}var E=(0,n.forwardRef)(({children:e,...t},r)=>{let{prefetchHref:a}=(0,n.useContext)(h),{zoneOfHref:s,isDifferentZone:i,isLoading:u}=C(t.href);function l(){t.href&&a(t.href)}if(i&&null!==s){let{prefetch:r,...n}=t;return(0,c.jsx)("a",{...n,"data-zone":s,onFocus:!1!==t.prefetch?l:void 0,onMouseOver:!1!==t.prefetch?l:void 0,children:e})}return(0,c.jsx)(o(),{...t,"data-zone":s?"same":"null",prefetch:t.prefetch??(!u&&void 0),ref:r,children:e})});E.displayName="MicrofrontendsLink";var P="next-site",S=(e,t)=>()=>`/${e}${t}`,R=(0,n.forwardRef)(({...e},t)=>{let{clientConfig:r}=m('{"applications":{"nextjs-conf":{"default":false,"routing":[{"group":"next-conf-pages","paths":["/assets/cube-transformed.glb","/conf","/conf/:path*","/nextjs-conf/:path+","/vc-ap-nextjs-conf/:path+"]}]},"next-site":{"default":true}}}'),n=P&&!r.applications[P]?.default?function({name:e}){if(!e)throw Error("Name is required to generate an asset prefix");return`vc-ap-${e}`}({name:P}):null,{props:{src:a}}=(0,l.getImageProps)(e);return(0,c.jsx)(l.default,{loader:n?S(n,a):void 0,...e,ref:t})});R.displayName="MicrofrontendsImage"},16868:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(85556),a=r(73445),o=r(77799);function s({children:e,features:t,strict:r=!1}){let[,s]=(0,n.useState)(!i(t)),c=(0,n.useRef)(void 0);if(!i(t)){let{renderer:e,...r}=t;c.current=e,(0,o.Y)(r)}return(0,n.useEffect)(()=>{i(t)&&t().then(({renderer:e,...t})=>{(0,o.Y)(t),c.current=e,s(!0)})},[]),n.createElement(a.Y.Provider,{value:{renderer:c.current,strict:r}},e)}function i(e){return"function"==typeof e}},18835:(e,t,r)=>{"use strict";var n,a;r.d(t,{LocalhostController:()=>i}),r(85556);function o(e,t){if(!n)return()=>{};let r=e=>{try{let r=e.data&&"string"==typeof e.data?JSON.parse(e.data):void 0;r&&t(r)}catch{}};return n.addEventListener(e,r),()=>{n?.removeEventListener(e,r)}}async function s(e,t){if(!a)return{error:"No toolbar server"};try{let r=await fetch(`${a}${e}`,t?{method:"POST",body:JSON.stringify(t)}:void 0),n=await r.json();return r.ok?{result:n}:{error:n.error}}catch(e){return{error:`${e}`}}}function i(){return null}},23281:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},a={};for(let e in n)a[e]={isEnabled:t=>n[e].some(e=>!!t[e])}},23450:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>i});let a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let i=function(e,t,r){if(a.randomUUID&&!t&&!e)return a.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(i)}},28878:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{"use strict";r.d(t,{WX:()=>c});var n=r(85556);function a(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var o={};a(o,"SSRProvider",()=>c),a(o,"useSSRSafeId",()=>l),a(o,"useIsSSR",()=>d);let s={prefix:String(Math.round(1e10*Math.random())),current:0},i=n.createContext(s);function c(e){let t=(0,n.useContext)(i),r=(0,n.useMemo)(()=>({prefix:t===s?"":`${t.prefix}-${++t.current}`,current:0}),[t]);return n.createElement(i.Provider,{value:r},e.children)}let u=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e){let t=(0,n.useContext)(i);return t!==s||u||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server."),(0,n.useMemo)(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function d(){let e=(0,n.useContext)(i)!==s,[t,r]=(0,n.useState)(e);return"undefined"!=typeof window&&e&&(0,n.useLayoutEffect)(()=>{r(!1)},[]),t}},37253:(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 c},getImageProps:function(){return i}});let n=r(93425),a=r(57915),o=r(70847),s=n._(r(66945));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[24,48,64,72,128,192,300],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=o.Image},42546:(e,t,r)=>{"use strict";r.d(t,{j:()=>m});var n=r(85556),a=r(38711),o=r(84125),s=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function i(){return"undefined"!=typeof window}function c(){return"production"}function u(){return"development"===((i()?window.vam:c())||"production")}function l(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function d(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0}){var t;if(!i())return;(function(e="auto"){if("auto"===e){window.vam=c();return}window.vam=e})(e.mode),s(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:u()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.5.0",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},u()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==o&&void 0!==o.env)return o.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}var f=()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)(),r=(0,a.usePathname)();return e?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=l(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=l(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:r}:{route:null,path:r}};function p(e){let{route:t,path:r}=f();return n.createElement(d,{path:r,route:t,...e,basePath:function(){if(void 0!==o&&void 0!==o.env)return o.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}function m(e){return n.createElement(n.Suspense,{fallback:null},n.createElement(p,{...e}))}},48895:function(e){e.exports=function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=n(),i=a&&a.miss||function(){return Promise.resolve()};return s.then(function(e){return i(e)}).then(function(){return s})},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function o(e,t){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var u={Read:1,Write:2,Any:3};function l(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function d(e){return"string"==typeof e?{protocol:"https",url:e,accept:u.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||u.Any}}var f="POST";function p(e,r,a,o){var s,i,c,u=[],f=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),r.data))}(a,o),p=(s=t(t({},e.headers),o.headers),i={},Object.keys(s).forEach(function(e){var t=s[e];i[e.toLowerCase()]=t}),i),v=a.method,y="GET"!==a.method?{}:t(t({},a.data),o.data),b=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),y),o.queryParameters),x=0,w=function t(r,n){var s,i,c,d,y=r.pop();if(void 0===y)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:h(u)};var w={data:f,headers:p,method:v,url:(s=y,i=a.path,c=m(b),d="".concat(s.protocol,"://").concat(s.url,"/").concat("/"===i.charAt(0)?i.substr(1):i),c.length&&(d+="?".concat(c)),d),connectTimeout:n(x,e.timeouts.connect),responseTimeout:n(x,o.timeout)},C=function(e){var t={request:w,response:e,host:y,triesLeft:r.length};return u.push(t),t},E={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}}(e)},onRetry:function(a){var o=C(a);return a.isTimedOut&&x++,Promise.all([e.logger.info("Retryable failure",g(o)),e.hostsCache.set(y,l(y,a.isTimedOut?3:2))]).then(function(){return t(r,n)})},onFail:function(e){throw C(e),function(e,t){var r=e.content,n=e.status,a=r;try{a=JSON.parse(r).message}catch(e){}return{name:"ApiError",message:a,status:n,transporterStackTrace:t}}(e,h(u))}};return e.requester.send(w).then(function(e){var t,r,n;return(t=e.status,e.isTimedOut||(r=e.isTimedOut,n=e.status,!r&&0==~~n)||2!=~~(t/100)&&4!=~~(t/100))?E.onRetry(e):2==~~(e.status/100)?E.onSuccess(e):E.onFail(e)})};return(c=e.hostsCache,Promise.all(r.map(function(e){return c.get(e,function(){return Promise.resolve(l(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),a=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),o=[].concat(n(t),n(a));return{getTimeout:function(e,t){return(0===a.length&&0===e?1:a.length+3+e)*t},statelessHosts:o.length>0?o.map(function(e){return d(e)}):r}})).then(function(e){return w(n(e.statelessHosts).reverse(),e.getTimeout)})}function m(e){return Object.keys(e).map(function(t){var r;return s("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]))}).join("&")}function h(e){return e.map(function(e){return g(e)})}function g(e){var r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),r)})})}var v=function(e){var n,a,s,l,f,m,h,g,v,y,b,x,w,C=e.appId,E=(n=void 0!==e.authMode?e.authMode:i.WithinHeaders,a={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":C},{headers:function(){return n===i.WithinHeaders?a:{}},queryParameters:function(){return n===i.WithinQueryParameters?a:{}}}),P=(l=(s=t(t({hosts:[{url:"".concat(C,"-dsn.algolia.net"),accept:u.Read},{url:"".concat(C,".algolia.net"),accept:u.Write}].concat(function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:"".concat(C,"-1.algolianet.com")},{url:"".concat(C,"-2.algolianet.com")},{url:"".concat(C,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},E.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},E.queryParameters()),e.queryParameters)})).hostsCache,f=s.logger,m=s.requester,h=s.requestsCache,g=s.responsesCache,v=s.timeouts,y=s.userAgent,b=s.hosts,x=s.queryParameters,w={hostsCache:l,logger:f,requester:m,requestsCache:h,responsesCache:g,timeouts:v,userAgent:y,headers:s.headers,queryParameters:x,hosts:b.map(function(e){return d(e)}),read:function(e,t){var n=c(t,w.timeouts.read),a=function(){return p(w,w.hosts.filter(function(e){return 0!=(e.accept&u.Read)}),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return a();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:w.queryParameters,headers:w.headers}};return w.responsesCache.get(o,function(){return w.requestsCache.get(o,function(){return w.requestsCache.set(o,a()).then(function(e){return Promise.all([w.requestsCache.delete(o),e])},function(e){return Promise.all([w.requestsCache.delete(o),Promise.reject(e)])}).then(function(e){var t=r(e,2);return t[0],t[1]})})},{miss:function(e){return w.responsesCache.set(o,e)}})},write:function(e,t){return p(w,w.hosts.filter(function(e){return 0!=(e.accept&u.Write)}),e,c(t,w.timeouts.write))}});return o({transporter:P,appId:C,addAlgoliaAgent:function(e,t){P.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([P.requestsCache.clear(),P.responsesCache.clear()]).then(function(){})}},e.methods)},y=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},b=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{params:m(e.params||{})})});return e.transporter.read({method:f,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},x=function(e){return function(r,n){return Promise.all(r.map(function(r){var a=r.params,o=a.facetName,s=a.facetQuery,i=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(a,["facetName","facetQuery"]);return y(e)(r.indexName,{methods:{searchForFacetValues:E}}).searchForFacetValues(o,s,t(t({},n),i))}))}},w=function(e){return function(t,r,n){return e.transporter.read({method:f,path:s("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},C=function(e){return function(t,r){return e.transporter.read({method:f,path:s("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},E=function(e){return function(t,r,n){return e.transporter.read({method:f,path:s("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}};function P(e,o,s){var c,u,l,d,f,p;return v(t(t(t({},{appId:e,apiKey:o,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return r.setRequestHeader(t,e.headers[t])});var n,a=function(e,n){return setTimeout(function(){r.abort(),t({status:0,content:n,isTimedOut:!0})},1e3*e)},o=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(o),n=a(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(o),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(o),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:function e(t){var a=n(t.caches),o=a.shift();return void 0===o?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return r(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return o.get(t,r,n).catch(function(){return e({caches:a}).get(t,r,n)})},set:function(t,r){return o.set(t,r).catch(function(){return e({caches:a}).set(t,r)})},delete:function(t){return o.delete(t).catch(function(){return e({caches:a}).delete(t)})},clear:function(){return o.clear().catch(function(){return e({caches:a}).clear()})}}}({caches:[(c={key:"".concat("4.10.5","-").concat(e)},l="algoliasearch-client-js-".concat(c.key),d=function(){return void 0===u&&(u=c.localStorage||window.localStorage),u},f=function(){return JSON.parse(d().getItem(l)||"{}")},{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var r=JSON.stringify(e),n=f()[r];return Promise.all([n||t(),void 0!==n])}).then(function(e){var t=r(e,2),a=t[0];return Promise.all([a,t[1]||n.miss(a)])}).then(function(e){return r(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var r=f();return r[JSON.stringify(e)]=t,d().setItem(l,JSON.stringify(r)),t})},delete:function(e){return Promise.resolve().then(function(){var t=f();delete t[JSON.stringify(e)],d().setItem(l,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){d().removeItem(l)})}}),a()]}),userAgent:(p={value:"Algolia for JavaScript (".concat("4.10.5",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===p.value.indexOf(t)&&(p.value="".concat(p.value).concat(t)),p}}).add({segment:"Browser",version:"lite"}),authMode:i.WithinQueryParameters}),s),{},{methods:{search:b,searchForFacetValues:x,multipleQueries:b,multipleSearchForFacetValues:x,initIndex:function(e){return function(t){return y(e)(t,{methods:{search:C,searchForFacetValues:E,findAnswers:w}})}}}}))}return P.version="4.10.5",P}()},52150:(e,t,r)=>{"use strict";r.d(t,{default:()=>a.a});var n=r(37253),a=r.n(n);r.o(n,"getImageProps")&&r.d(t,{getImageProps:function(){return n.getImageProps}})},68134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return o}});let n=r(85556),a=r(54029);function o(){return(0,n.useContext)(a.RouterContext)}("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)},68261:(e,t,r)=>{"use strict";r.d(t,{UnmountController:()=>c});var n,a=r(84125),o={scriptHostname:("u">typeof a?a.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof a?a.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof a?a.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof a?a.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof a?"dpl_8FnyZ32Dn9rkShWpqyYBCrXzrzna":void 0},s=r(85556),i=!1;function c({shouldMount:e}){return(0,s.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(o,e);let t=document.createElement("script");for(let[e,r]of(t.src=`${o.scriptHostname}/_next-live/feedback/feedback.js`,t.setAttribute("data-explicit-opt-in","true"),Object.entries((o.ownerId&&o.projectId?{"data-owner-id":o.ownerId,"data-project-id":o.projectId,"data-branch":n??o.branch}:o.deploymentId?{"data-deployment-id":o.deploymentId}:void 0)??{})))r&&t.setAttribute(e,r);(document.head||document.documentElement).appendChild(t)}}(),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}},73445:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});let n=(0,r(85556).createContext)({strict:!1})},75905:(e,t,r)=>{"use strict";var n=r(28878),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,s,i,c,u,l,d,f=!1;t||(t={}),s=t.debug||!1;try{if(c=n(),u=document.createRange(),l=document.getSelection(),(d=document.createElement("span")).textContent=e,d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=a[t.format]||a.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),l.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){s&&console.error("unable to copy using execCommand: ",n),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){s&&console.error("unable to copy using clipboardData: ",n),s&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",i=r.replace(/#{\s*key\s*}/g,o),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},77799:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(23281);function a(e){for(let t in e)n.B[t]={...n.B[t],...e[t]}}},85797:(e,t,r)=>{"use strict";r.d(t,{UC:()=>e9,q7:()=>e7,ZL:()=>e3,bL:()=>e4,l9:()=>e6});var n=r(85556),a=r(84151),o=r(98892),s=r(23154),i=r(9270),c=r(66078),u=r(76419),l=r(6760),d=r(31382),f=r(63490),p=r(88415),m=r(80517),h=r(42748),g=r(19026),v=r(92247),y=r(19903),b=r(10488),x="rovingFocusGroup.onEntryFocus",w={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[E,P,S]=(0,i.N)(C),[R,j]=(0,o.A)(C,[S]),[k,O]=R(C),T=n.forwardRef((e,t)=>(0,b.jsx)(E.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(E.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(A,{...e,ref:t})})}));T.displayName=C;var A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:l,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:h=!1,...g}=e,C=n.useRef(null),E=(0,c.s)(t,C),S=(0,u.jH)(l),[R=null,j]=(0,y.i)({prop:d,defaultProp:f,onChange:p}),[O,T]=n.useState(!1),A=(0,v.c)(m),M=P(r),I=n.useRef(!1),[N,D]=n.useState(0);return n.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(x,A),()=>e.removeEventListener(x,A)},[A]),(0,b.jsx)(k,{scope:r,orientation:o,dir:S,loop:i,currentTabStopId:R,onItemFocus:n.useCallback(e=>j(e),[j]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>D(e=>e-1),[]),children:(0,b.jsx)(s.sG.div,{tabIndex:O||0===N?-1:0,"data-orientation":o,...g,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(x,w);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);_([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),h)}}I.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>T(!1))})})}),M="RovingFocusGroupItem",I=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:c,...u}=e,l=(0,p.B)(),d=c||l,f=O(M,r),m=f.currentTabStopId===d,h=P(r),{onFocusableItemAdd:g,onFocusableItemRemove:v}=f;return n.useEffect(()=>{if(o)return g(),()=>v()},[o,g,v]),(0,b.jsx)(E.ItemSlot,{scope:r,id:d,focusable:o,active:i,children:(0,b.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{o?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return N[a]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=f.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>_(r))}})})})});I.displayName=M;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var D=r(68987),L=r(45789),F=r(53045),q=["Enter"," "],B=["ArrowUp","PageDown","End"],U=["ArrowDown","PageUp","Home",...B],$={ltr:[...q,"ArrowRight"],rtl:[...q,"ArrowLeft"]},z={ltr:["ArrowLeft"],rtl:["ArrowRight"]},H="Menu",[V,Y,K]=(0,i.N)(H),[G,J]=(0,o.A)(H,[K,m.Bk,j]),W=(0,m.Bk)(),X=j(),[Z,Q]=G(H),[ee,et]=G(H),er=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:o,onOpenChange:s,modal:i=!0}=e,c=W(t),[l,d]=n.useState(null),f=n.useRef(!1),p=(0,v.c)(s),h=(0,u.jH)(o);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.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,b.jsx)(m.bL,{...c,children:(0,b.jsx)(Z,{scope:t,open:r,onOpenChange:p,content:l,onContentChange:d,children:(0,b.jsx)(ee,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:i,children:a})})})};er.displayName=H;var en=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=W(r);return(0,b.jsx)(m.Mz,{...a,...n,ref:t})});en.displayName="MenuAnchor";var ea="MenuPortal",[eo,es]=G(ea,{forceMount:void 0}),ei=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=Q(ea,t);return(0,b.jsx)(eo,{scope:t,forceMount:r,children:(0,b.jsx)(g.C,{present:r||o.open,children:(0,b.jsx)(h.Z,{asChild:!0,container:a,children:n})})})};ei.displayName=ea;var ec="MenuContent",[eu,el]=G(ec),ed=n.forwardRef((e,t)=>{let r=es(ec,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Q(ec,e.__scopeMenu),s=et(ec,e.__scopeMenu);return(0,b.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:n||o.open,children:(0,b.jsx)(V.Slot,{scope:e.__scopeMenu,children:s.modal?(0,b.jsx)(ef,{...a,ref:t}):(0,b.jsx)(ep,{...a,ref:t})})})})}),ef=n.forwardRef((e,t)=>{let r=Q(ec,e.__scopeMenu),o=n.useRef(null),s=(0,c.s)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,L.Eq)(e)},[]),(0,b.jsx)(em,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ep=n.forwardRef((e,t)=>{let r=Q(ec,e.__scopeMenu);return(0,b.jsx)(em,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),em=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:u,disableOutsidePointerEvents:p,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,onDismiss:w,disableOutsideScroll:C,...E}=e,P=Q(ec,r),S=et(ec,r),R=W(r),j=X(r),k=Y(r),[O,A]=n.useState(null),M=n.useRef(null),I=(0,c.s)(t,M,P.onContentChange),N=n.useRef(0),_=n.useRef(""),L=n.useRef(0),q=n.useRef(null),$=n.useRef("right"),z=n.useRef(0),H=C?F.A:n.Fragment,V=C?{as:D.DX,allowPinchZoom:!0}:void 0,K=e=>{let t=_.current+e,r=k().filter(e=>!e.disabled),n=document.activeElement,a=r.find(e=>e.ref.current===n)?.textValue,o=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return s!==r?s:void 0}(r.map(e=>e.textValue),t,a),s=r.find(e=>e.textValue===o)?.ref.current;!function e(t){_.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout(()=>e(""),1e3))}(t),s&&setTimeout(()=>s.focus())};n.useEffect(()=>()=>window.clearTimeout(N.current),[]),(0,d.Oh)();let G=n.useCallback(e=>$.current===q.current?.side&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(c-s)*(n-i)/(u-i)+s&&(a=!a)}return a}({x:e.clientX,y:e.clientY},t)}(e,q.current?.area),[]);return(0,b.jsx)(eu,{scope:r,searchRef:_,onItemEnter:n.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:n.useCallback(e=>{G(e)||(M.current?.focus(),A(null))},[G]),onTriggerLeave:n.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:L,onPointerGraceIntentChange:n.useCallback(e=>{q.current=e},[]),children:(0,b.jsx)(H,{...V,children:(0,b.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,a.m)(i,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,b.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,onDismiss:w,children:(0,b.jsx)(T,{asChild:!0,...j,dir:S.dir,orientation:"vertical",loop:o,currentTabStopId:O,onCurrentTabStopIdChange:A,onEntryFocus:(0,a.m)(h,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eU(P.open),"data-radix-menu-content":"",dir:S.dir,...R,...E,ref:I,style:{outline:"none",...E.style},onKeyDown:(0,a.m)(E.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&K(e.key));let a=M.current;if(e.target!==a||!U.includes(e.key))return;e.preventDefault();let o=k().filter(e=>!e.disabled).map(e=>e.ref.current);B.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),_.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,eH(e=>{let t=e.target,r=z.current!==e.clientX;e.currentTarget.contains(t)&&r&&($.current=e.clientX>z.current?"right":"left",z.current=e.clientX)}))})})})})})})});ed.displayName=ec;var eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(s.sG.div,{role:"group",...n,ref:t})});eh.displayName="MenuGroup";var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(s.sG.div,{...n,ref:t})});eg.displayName="MenuLabel";var ev="MenuItem",ey="menu.itemSelect",eb=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...i}=e,u=n.useRef(null),l=et(ev,e.__scopeMenu),d=el(ev,e.__scopeMenu),f=(0,c.s)(t,u),p=n.useRef(!1);return(0,b.jsx)(ex,{...i,ref:f,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>o?.(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:l.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!r&&(!t||" "!==e.key)&&q.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eb.displayName=ev;var ex=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:i,...u}=e,l=el(ev,r),d=X(r),f=n.useRef(null),p=(0,c.s)(t,f),[m,h]=n.useState(!1),[g,v]=n.useState("");return n.useEffect(()=>{let e=f.current;e&&v((e.textContent??"").trim())},[u.children]),(0,b.jsx)(V.ItemSlot,{scope:r,disabled:o,textValue:i??g,children:(0,b.jsx)(I,{asChild:!0,...d,focusable:!o,children:(0,b.jsx)(s.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:p,onPointerMove:(0,a.m)(e.onPointerMove,eH(e=>{o?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eH(e=>l.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>h(!0)),onBlur:(0,a.m)(e.onBlur,()=>h(!1))})})})}),ew=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,b.jsx)(eO,{scope:e.__scopeMenu,checked:r,children:(0,b.jsx)(eb,{role:"menuitemcheckbox","aria-checked":e$(r)?"mixed":r,...o,ref:t,"data-state":ez(r),onSelect:(0,a.m)(o.onSelect,()=>n?.(!!e$(r)||!r),{checkForDefaultPrevented:!1})})})});ew.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[eE,eP]=G(eC,{value:void 0,onValueChange:()=>{}}),eS=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,o=(0,v.c)(n);return(0,b.jsx)(eE,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,b.jsx)(eh,{...a,ref:t})})});eS.displayName=eC;var eR="MenuRadioItem",ej=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=eP(eR,e.__scopeMenu),s=r===o.value;return(0,b.jsx)(eO,{scope:e.__scopeMenu,checked:s,children:(0,b.jsx)(eb,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":ez(s),onSelect:(0,a.m)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ej.displayName=eR;var ek="MenuItemIndicator",[eO,eT]=G(ek,{checked:!1}),eA=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,o=eT(ek,r);return(0,b.jsx)(g.C,{present:n||e$(o.checked)||!0===o.checked,children:(0,b.jsx)(s.sG.span,{...a,ref:t,"data-state":ez(o.checked)})})});eA.displayName=ek;var eM=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eM.displayName="MenuSeparator";var eI=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=W(r);return(0,b.jsx)(m.i3,{...a,...n,ref:t})});eI.displayName="MenuArrow";var eN="MenuSub",[e_,eD]=G(eN),eL="MenuSubTrigger",eF=n.forwardRef((e,t)=>{let r=Q(eL,e.__scopeMenu),o=et(eL,e.__scopeMenu),s=eD(eL,e.__scopeMenu),i=el(eL,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),d(null)}},[l,d]),(0,b.jsx)(en,{asChild:!0,...f,children:(0,b.jsx)(ex,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":eU(r.open),...e,ref:(0,c.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,eH(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(i.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eH(e=>{p();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,a="right"===n,o=t[a?"left":"right"],s=t[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:o,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let n=""!==i.searchRef.current;!e.disabled&&(!n||" "!==t.key)&&$[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});eF.displayName=eL;var eq="MenuSubContent",eB=n.forwardRef((e,t)=>{let r=es(ec,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,i=Q(ec,e.__scopeMenu),u=et(ec,e.__scopeMenu),l=eD(eq,e.__scopeMenu),d=n.useRef(null),f=(0,c.s)(t,d);return(0,b.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:o||i.open,children:(0,b.jsx)(V.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(em,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=z[u.dir].includes(e.key);t&&r&&(i.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function eU(e){return e?"open":"closed"}function e$(e){return"indeterminate"===e}function ez(e){return e$(e)?"indeterminate":e?"checked":"unchecked"}function eH(e){return t=>"mouse"===t.pointerType?e(t):void 0}eB.displayName=eq;var eV="ContextMenu",[eY,eK]=(0,o.A)(eV,[J]),eG=J(),[eJ,eW]=eY(eV),eX=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:a,dir:o,modal:s=!0}=e,[i,c]=n.useState(!1),u=eG(t),l=(0,v.c)(a),d=n.useCallback(e=>{c(e),l(e)},[l]);return(0,b.jsx)(eJ,{scope:t,open:i,onOpenChange:d,modal:s,children:(0,b.jsx)(er,{...u,dir:o,open:i,onOpenChange:d,modal:s,children:r})})};eX.displayName=eV;var eZ="ContextMenuTrigger",eQ=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,disabled:o=!1,...i}=e,c=eW(eZ,r),u=eG(r),l=n.useRef({x:0,y:0}),d=n.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),f=n.useRef(0),p=n.useCallback(()=>window.clearTimeout(f.current),[]),m=e=>{l.current={x:e.clientX,y:e.clientY},c.onOpenChange(!0)};return n.useEffect(()=>p,[p]),n.useEffect(()=>void(o&&p()),[o,p]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(en,{...u,virtualRef:d}),(0,b.jsx)(s.sG.span,{"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,...i,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:(0,a.m)(e.onContextMenu,e=>{p(),m(e),e.preventDefault()}),onPointerDown:o?e.onPointerDown:(0,a.m)(e.onPointerDown,e8(e=>{p(),f.current=window.setTimeout(()=>m(e),700)})),onPointerMove:o?e.onPointerMove:(0,a.m)(e.onPointerMove,e8(p)),onPointerCancel:o?e.onPointerCancel:(0,a.m)(e.onPointerCancel,e8(p)),onPointerUp:o?e.onPointerUp:(0,a.m)(e.onPointerUp,e8(p))})]})});eQ.displayName=eZ;var e0=e=>{let{__scopeContextMenu:t,...r}=e,n=eG(t);return(0,b.jsx)(ei,{...n,...r})};e0.displayName="ContextMenuPortal";var e1="ContextMenuContent",e5=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...a}=e,o=eW(e1,r),s=eG(r),i=n.useRef(!1);return(0,b.jsx)(ed,{...s,...a,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&i.current&&t.preventDefault(),i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||o.modal||(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e5.displayName=e1,n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eh,{...a,...n,ref:t})}).displayName="ContextMenuGroup",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eg,{...a,...n,ref:t})}).displayName="ContextMenuLabel";var e2=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eb,{...a,...n,ref:t})});function e8(e){return t=>"mouse"!==t.pointerType?e(t):void 0}e2.displayName="ContextMenuItem",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(ew,{...a,...n,ref:t})}).displayName="ContextMenuCheckboxItem",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eS,{...a,...n,ref:t})}).displayName="ContextMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(ej,{...a,...n,ref:t})}).displayName="ContextMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eA,{...a,...n,ref:t})}).displayName="ContextMenuItemIndicator",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eM,{...a,...n,ref:t})}).displayName="ContextMenuSeparator",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eI,{...a,...n,ref:t})}).displayName="ContextMenuArrow",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eF,{...a,...n,ref:t})}).displayName="ContextMenuSubTrigger",n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=eG(r);return(0,b.jsx)(eB,{...a,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="ContextMenuSubContent";var e4=eX,e6=eQ,e3=e0,e9=e5,e7=e2},95031:(e,t,r)=>{e.exports=r(68134)},95032:(e,t,r)=>{"use strict";r.d(t,{b:()=>f});var n=r(85556),a=r(38711),o=r(84125),s=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function i(){return"development"===function(){return"production"}()}function c(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if("undefined"==typeof window||null===e.route)return null;s();let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.2.0",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==o&&void 0!==o.env)return o.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(t.current=r.setRoute)}},[e.route]),null}var l=()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,r=(0,a.usePathname)();return e?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=c(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=c(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function d(e){let t=l();return n.createElement(u,{route:t,...e,framework:"next",basePath:function(){if(void 0!==o&&void 0!==o.env)return o.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function f(e){return n.createElement(n.Suspense,{fallback:null},n.createElement(d,{...e}))}}}]);