!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fb9eee07-7f7f-5c6c-a496-8f1c3aab2e22")}catch(e){}}(); (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7786],{97984:(e,t,r)=>{"use strict";r.d(t,{c:()=>h,x:()=>d});var n=r(9479),o=r(72303),i=r(71966),a=r(40106),l=r(34533),c=r(91399),s=r.n(c);let u=(0,o.createContext)({rootOrigin:{x:0,y:0},rootBounds:{width:0,height:0},portalRef:null,activeId:null,setActiveId:()=>void 0,hoveredId:null,setHoveredId:()=>void 0,updateActiveContextCard:()=>void 0,skipTransition:!1,rootVisible:!1,distanceFromLast:0,lastOrigin:null});function d(e){let{children:t}=e,[r,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>l(!0),[]);let[c,d]=(0,a.A)(),h=(0,o.useRef)(null),[f,m]=(0,o.useState)(null),[x,g]=(0,o.useState)(!1),[_,w]=(0,o.useState)(null),v=(0,o.useRef)(null);function y(e){v.current=e,g(null!==e)}let p=e=>{((null==e?void 0:e.id)===v.current||null===e)&&m(e)},C=(0,o.useMemo)(()=>f?{width:f.contentSize.width+2,height:f.contentSize.height+2,x:f.origin.x,y:f.origin.y,offsetX:f.offset.x,offsetY:f.offset.y,side:f.side}:{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0,side:"top"},[f]),b=function(e){let t=(0,o.useRef)(null);return(0,o.useEffect)(()=>{t.current=e}),t.current}(C),S=(0,o.useMemo)(()=>{if(!b)return 0;let e=Math.max(C.x,b.x),t=Math.min(C.x+C.width,b.x+b.width),r=Math.max(C.y,b.y),n=Math.min(C.y+C.height,b.y+b.height);if(e{var e,t;return Math.sqrt(((null!==(e=null==b?void 0:b.x)&&void 0!==e?e:0)-C.x)**2+((null!==(t=null==b?void 0:b.y)&&void 0!==t?t:0)-C.y)**2)},[C.x,C.y,null==b?void 0:b.x,null==b?void 0:b.y]),M=(0,o.useMemo)(()=>b?{x:b.x-C.x,y:b.y-C.y}:null,[C,b]),E=(0,o.useMemo)(()=>k>150||S>100,[k,S]),j=(0,o.useMemo)(()=>({updateActiveContextCard:p,rootOrigin:{...C},rootBounds:d,portalRef:h,setActiveId:y,activeId:v,setHoveredId:w,hoveredId:_,skipTransition:E,rootVisible:x,distanceFromLast:k,lastOrigin:M}),[C,d,_,E,x,k,M]),R=(0,o.useMemo)(()=>"top"===C.side?0:"bottom"===C.side?180:"left"===C.side?270:90,[C]);return(0,n.jsxs)(u.Provider,{value:j,children:[t,r?(0,i.createPortal)((0,n.jsx)("div",{className:s().portal,ref:c,children:(0,n.jsxs)("div",{className:s().contextCardRootVisibility,style:{opacity:x?1:0},children:[(0,n.jsx)("div",{className:s().contextCardTip,"data-skip-transition":E,style:{transform:"translate(".concat(C.x-C.offsetX,"px, ").concat(C.y-C.offsetY,"px) rotate(").concat(R,"deg)")},children:(0,n.jsxs)("svg",{height:"10",viewBox:"0 0 14 10",width:"14",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M7.00009 8.11236L1.46893 0H12.5312L7.00009 8.11236Z",fill:"var(--ds-background-100)"}),(0,n.jsx)("path",{d:"M0.94043 1L7.00009 9.8875L13.0597 1H11.8494L7.00009 8.11236L2.15075 1H0.94043Z",fill:"var(--ds-gray-400)"})]})}),(0,n.jsx)("div",{className:s().contextCardRoot,"data-skip-transition":E,style:{transform:"translate(".concat(C.x,"px,").concat(C.y,"px)"),width:C.width,height:C.height},children:(0,n.jsx)("div",{ref:h})})]})}),document.body):null]})}let h={Provider:d,Trigger:function(e){let{content:t,children:r,side:c="right",align:d="center",sideOffset:h=16,alignOffset:f=0,ignoreCardPointerEvents:m=!1,noPadding:x}=e,g=(0,o.useRef)(null),_=(0,o.useRef)(null),[w,v]=(0,a.A)(),{portalRef:y,updateActiveContextCard:p,activeId:C,setActiveId:b,hoveredId:S,setHoveredId:k,skipTransition:M,rootVisible:E}=(0,o.useContext)(u),j=(0,o.useId)(),R=(0,l.usePrefersReducedMotion)(),[A,N]=(0,o.useState)(!1),[T,L]=(0,o.useState)(!1),[O,I]=(0,o.useState)(!1),F=(0,o.useRef)(null),P=(0,o.useRef)(null);(0,o.useEffect)(()=>{A&&v.width>0&&v.height>0&&(b(j),D())},[A,v]);let V=(0,o.useRef)(null);function D(){_.current&&p({id:j,...function e(t){let r,n;if(!g.current)throw Error("Trigger not found");if(!_.current)throw Error("Content not found");let o=null!=t?t:c,i=g.current.getBoundingClientRect(),a=_.current.getBoundingClientRect(),l={width:a.width,height:a.height},s=i.width/2,u=i.height/2,m=a.width/2,x=a.height/2,w=i.top,v=i.left,y=v+s-m+f;"start"===d&&(y=v-a.width+f+14),"end"===d&&(y=v+i.width+f-14);let p=w+u-x+f;switch("start"===d&&(p=w-a.height+f+14),"end"===d&&(p=w+i.height+f-14),o){case"top":r={x:y,y:w-a.height-h};break;case"right":r={x:v+i.width+h,y:p};break;case"bottom":r={x:y,y:w+i.height+h};break;case"left":r={x:v-a.width-h,y:p};break;default:throw Error("Unknown side")}if(r.x<0&&!t&&"left"===c)return e("right");if(r.x+a.width>document.documentElement.clientWidth&&!t&&"right"===c)return e("left");let C=r.x-v-f;"center"===d&&(C=r.x-v-s-f+7),"end"===d&&(C=r.x-v-i.width-f+14);let b=r.y-w;switch("center"===d&&(b=r.y-w-u+7),"end"===d&&(b=r.y-w-i.height+14),o){case"top":n={x:C-1,y:r.y-w+h};break;case"right":n={x:r.x-v-i.width+10-h,y:b-3};break;case"bottom":n={x:C-1,y:r.y-w-i.height+10-h-2};break;case"left":n={x:r.x-v+h+2,y:b-3};break;default:throw Error("Unknown side")}return{origin:r,contentSize:l,offset:n,side:o}}()})}return(0,o.useEffect)(()=>{V.current&&clearTimeout(V.current),S!==j?I(!1):V.current=setTimeout(()=>{I(!0)},0)},[S,j,R,M]),(0,o.useEffect)(()=>(document.addEventListener("scroll",D,!0),window.addEventListener("resize",D),()=>{document.removeEventListener("scroll",D,!0),window.removeEventListener("resize",D)}),[]),(0,n.jsxs)("div",{className:s().contextCardTrigger,onMouseEnter:function(){F.current&&clearTimeout(F.current),P.current&&clearTimeout(P.current),k(j),N(!0)},onMouseLeave:function(){N(!1),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>{C.current===j&&b(null)},500),L(!0),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{L(!1)},2e3)},ref:g,children:[r,y.current&&(A||T)?(0,i.createPortal)((0,n.jsx)("div",{className:s().contextCardContent,ref:_,style:{...x?{padding:0}:{},pointerEvents:E&&O&&!m?"all":"none"},children:(0,n.jsx)("div",{className:s().contextCardContentVisibility,ref:w,style:{opacity:Number(O)},children:t})},j),y.current):null]})}}},22970:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Dialog:()=>m,DialogContext:()=>h});var n=r(9479),o=r(83844),i=r(72303),a=r(56093),l=r(15542),c=r(22429),s=r(97095),u=r(35350),d=r.n(u);r(6026),r(33611);try{let e=Object.defineProperty({},"passive",{get(){}}),t=()=>{};window.addEventListener("scroll",t,e),window.removeEventListener("scroll",t,e)}catch(e){}let h=(0,i.createContext)(void 0),f={dark:"#000",light:"#999999"};function m(e){let{active:t,children:r,className:u,onAnimationDone:m,onClickOutside:g,height:w="auto",allowOverflow:v,drawer:y=!0,drawerClassname:p="",verticalScroll:C=!0,style:b,enableSkip:S,onScroll:k,container:M,fixed:E,resetScroll:j,"data-testid":R,nested:A,isModal:N=!1}=e,T=A?a._.NestedRoot:a._.Root,L=(0,i.useRef)(null);(0,i.useEffect)(()=>{t&&L.current&&(L.current.scrollTop=0)},[t,j]);let O=(0,i.useMemo)(()=>({isInDialog:!0}),[]),I=(0,i.useRef)(null),{metaThemeColor:F}=(0,l.lo)("dashboard"),{resolvedTheme:P}=(0,c.D)(),V=function(e){let t=(0,i.useRef)();return(0,i.useEffect)(()=>{t.current=e}),t.current||!1}(t),D=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!(0,s.nr)()||V===t)return;let e=f[null!=P?P:"dark"],r=t?F:e,n=t?e:F,o=performance.now(),i=e=>{let a=Math.min((e-o)/400,1),c=_(a);if(D.current){let e=c;t||(e=1-e),D.current.style.opacity="".concat(100*e,"%")}let s=x(r,n,c);(0,l.a7)({color:s,setBackgroundColor:!0}),a<1&&(I.current=requestAnimationFrame(i))};return I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(i),()=>{I.current&&cancelAnimationFrame(I.current)}},[t,F,P]),(0,n.jsx)(T,{dismissible:!S,fixed:E,modal:N,onOpenChange:e=>{e||(g(),window.requestAnimationFrame(()=>document.body.style.pointerEvents="auto"),setTimeout(()=>{null==m||m()},500))},open:t,children:(0,n.jsxs)(a._.Portal,{container:M,children:[(0,n.jsx)("div",{className:(0,o.$)(d().overlay,t&&d().open,!(0,s.nr)()&&d().notSafari),onClick:()=>{g()},ref:D,style:{"--animation-duration":"".concat(400,"ms"),"--curve":"cubic-bezier(".concat(.32,", ").concat(.72,", ").concat(0,", ").concat(1,")")}}),(0,n.jsx)(a._.Content,{className:(0,o.$)({[String(d().drawer)]:y},p,"geist-dialog",u),"data-testid":R,onAnimationEnd:e=>{e||null==m||m()},style:b,children:(0,n.jsx)("div",{className:(0,o.$)({[String(d().allowOverflow)]:y&&v,[String(d().inner)]:y,[String(d().max)]:"max"===w,[String(d().noVerticalScroll)]:!C},"tailwind"),onScroll:()=>{L.current&&(null==k||k(L.current))},ref:L,children:(0,n.jsx)(h.Provider,{value:O,children:r})})})]})})}let x=(e,t,r)=>{let n=Number.parseInt(e.slice(1,3),16),o=Number.parseInt(e.slice(3,5),16),i=Number.parseInt(e.slice(5,7),16),a=Number.parseInt(t.slice(1,3),16),l=Number.parseInt(t.slice(3,5),16),c=Number.parseInt(t.slice(5,7),16),s=Math.round(n+r*(a-n)),u=Math.round(o+r*(l-o)),d=Math.round(i+r*(c-i));return"#".concat(s.toString(16).padStart(2,"0")).concat(u.toString(16).padStart(2,"0")).concat(d.toString(16).padStart(2,"0"))},g=[0,.021468159999999997,.04267328,.06361631999999999,.08429824,.10472000000000002,.12488255999999998,.14478687999999998,.16443392000000004,.18382464,.20296000000000003,.22184096000000003,.24046847999999998,.25884352,.27696704,.29483999999999994,.3124633599999999,.32983808,.34696512000000007,.3638454400000001,.3804800000000001,.39686976,.41301568,.42891872000000003,.44457983999999995,.45999999999999996,.47518016,.49012127999999994,.50482432,.5192902399999999,.5335199999999999,.5475145599999999,.5612748799999999,.57480192,.58809664,.6011599999999999,.61399296,.6265964799999999,.6389715200000001,.65111904,.6630400000000001,.6747353600000001,.68620608,.6974531200000001,.7084774400000001,.7192800000000001,.72986176,.7402236799999999,.7503667200000002,.7602918399999999,.77,.7794921599999999,.7887692800000001,.79783232,.80668224,.81532,.82374656,.83196288,.8399699199999999,.84776864,.85536,.8627449599999999,.86992448,.87689952,.8836710400000001,.8902400000000001,.89660736,.9027740800000001,.90874112,.91450944,.92008,.92545376,.9306316800000001,.9356147199999999,.9404038399999999,.945,.94940416,.95361728,.9576403200000001,.96147424,.9651200000000001,.9685785600000001,.97185088,.97493792,.9778406399999999,.9805599999999999,.9830969599999999,.9854524800000001,.98762752,.9896230400000001,.9914400000000001,.9930793600000001,.99454208,.99582912,.9969414400000001,.99788,.99864576,.9992396800000001,.99966272,.9999158399999999,1],_=e=>{let t=100*Math.min(Math.max(e,0),1),r=Math.min(Math.floor(t),99),n=g[r];return n+t%1*(g[r+1]-n)}},27786:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(9479),o=r(72303),i=r(22970);let a=e=>{let{height:t,show:r=!1,onDismiss:a,onAnimationDone:l,children:c,container:s,className:u,verticalScroll:d,fixed:h,resetScroll:f,onScroll:m,nested:x}=e,g=(0,o.useMemo)(()=>({height:t}),[t]);return(0,n.jsx)(i.Dialog,{active:r,className:u,container:s,drawer:!0,fixed:h,height:t,nested:x,onAnimationDone:l,onClickOutside:a,onScroll:m,resetScroll:f,style:g,verticalScroll:d,children:c})}},15542:(e,t,r)=>{"use strict";r.d(t,{ON:()=>m,a7:()=>_,lo:()=>g});var n=r(9479),o=r(72303),i=r(22429),a=r(60210),l=r(82798),c=r(97984),s=r(10116),u=r.n(s),d=r(77259),h=r.n(d);let f={light:"light-theme",dark:"dark-theme"};function m(e){let{children:t,storageKey:r="geist-theme",setBackgroundColor:a=!0,...s}=e;return u(),h(),(0,n.jsxs)(i.N,{attribute:"class",disableTransitionOnChange:!0,storageKey:r,value:f,...s,children:[(0,n.jsx)(o.Suspense,{children:(0,n.jsx)(w,{setBackgroundColor:a})}),(0,n.jsx)(l.B,{children:(0,n.jsx)(c.x,{children:t})})]})}let x={dashboard:{light:"#FFFFFF",dark:"#0A0A0A"},marketing:{light:"#FAFAFA",dark:"#000000"}},g=e=>{let{resolvedTheme:t}=(0,i.D)(),r=(0,a.useSelectedLayoutSegments)(),n=x[e||v(r)];return{metaThemeColor:"dark"===t?n.dark:n.light}},_=e=>{let{color:t,setBackgroundColor:r}=e,n=Array.from(document.querySelectorAll('meta[name="theme-color"]'));if(0===n.length){let e=document.createElement("meta");e.setAttribute("name","theme-color"),document.head.appendChild(e),n.push(e)}n.forEach(e=>{e.setAttribute("content",t)}),r&&(document.documentElement.style.backgroundColor=t)};function w(e){let{setBackgroundColor:t=!0}=e,{metaThemeColor:r}=g();return(0,o.useEffect)(()=>{_({color:r,setBackgroundColor:t})},[r,t]),null}let v=e=>{if(null===e||0===e.length)return"marketing";for(let t of e){if(t.includes("dashboard"))return"dashboard";if(t.includes("auth")){if("signup"===e[1])return"marketing";return"dashboard"}if(t.includes("(team)"))return"dashboard"}return"marketing"}},97095:(e,t,r)=>{"use strict";function n(){return c(/^iPhone/)}function o(){return c(/^iPad/)||c(/^Mac/)&&navigator.maxTouchPoints>1}function i(){return n()||o()}function a(){return c(/^Mac/)||n()||o()}function l(){return navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function c(e){return null!=window.navigator?e.test(window.navigator.platform):void 0}r.d(t,{f8:()=>a,nr:()=>l,un:()=>i})},91399:e=>{e.exports={portal:"context-card_portal__7uIMS",contextCardTip:"context-card_contextCardTip__JXUxK",contextCardRoot:"context-card_contextCardRoot__jBE_M",contextCardRootContent:"context-card_contextCardRootContent__MNlHW",contextCardContent:"context-card_contextCardContent__0vsq8",contextCardContentVisibility:"context-card_contextCardContentVisibility__OmjsA",contextCardTrigger:"context-card_contextCardTrigger__Pejgm",contextCardRootVisibility:"context-card_contextCardRootVisibility__WD8Ja"}},33611:e=>{e.exports={drawer:"dialog_drawer__zoHbY",noVerticalScroll:"dialog_noVerticalScroll__i73ML",allowOverflow:"dialog_allowOverflow__fDqDx",modalOpen:"dialog_modalOpen__pzqRA",inner:"dialog_inner__XIlj_",max:"dialog_max__C0YX9"}},35350:e=>{e.exports={drawer:"new-dialog_drawer__ykt7Q",noVerticalScroll:"new-dialog_noVerticalScroll__0Be1P",allowOverflow:"new-dialog_allowOverflow__XLQcK",inner:"new-dialog_inner__FYIY1",max:"new-dialog_max__P89aL",overlay:"new-dialog_overlay___0a9q",notSafari:"new-dialog_notSafari__UQu2r",fadeOut:"new-dialog_fadeOut__EAwu1",open:"new-dialog_open__DTLMi",fadeIn:"new-dialog_fadeIn__JDemh"}}}]); //# debugId=fb9eee07-7f7f-5c6c-a496-8f1c3aab2e22