1import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r}from"./index-BDiHYtDp.js";import{c as h}from"./cn-Dp_0yvsF.js";import{B as ee}from"./button-W_yBkJbl.js";import{S as Fn}from"./switch-BoLBViKm.js";import{u as Tt,P as he}from"./use-privacy-banner-state-BKoZDhSq.js";import{D as _n}from"./ds-styles-Cq9RbD_F.js";import{t as Dn,T as Bn,a as Hn}from"./toast-api-DedlawIr.js";import{T as zn}from"./toast-viewport-stacks-D51Kxv8-.js";import{a as Un,S as Vn}from"./supercut-logo-ChU87NYZ.js";import{a1 as $n,k as vt,a0 as Wn,a2 as Gn,a3 as qn,a4 as Yn,Z as It,a5 as Kn,a6 as Xn,D as Zn,g as Jn}from"./switch-guide-nav-D0soPK9Z.js";import{M as Qn,V as eo,l as Q,H as to}from"./marketing-picture-Bgq0iOca.js";import{L as te,u as no,n as oo}from"./components-D7b9MGRn.js";import{S as kt}from"./shield-check-D2uJMY_r.js";import{A as At}from"./arrow-up-right-C0-h4VfB.js";import{u as so}from"./react-hotkeys-hook.esm-B5fZCKAZ.js";import{S as ro}from"./shortcut-hint-DtoNiuqU.js";import{c as ao,u as io,h as lo,i as bt,e as co,s as uo,j as fo,a as po,b as mo,d as go,T as ho}from"./tooltip-Dh6IQhve.js";import{b as xo}from"./asset-url-CRoed1Kx.js";import{b as vo,c as bo,d as yo,C as yt}from"./context-menu-Y3-Fz3zQ.js";import{D as Lt}from"./download-DY3iuXhu.js";import{C as jo}from"./copy-9pffISRY.js";import{b as No,a as qe,p as wo}from"./site-DL9rudLI.js";import{S as Co}from"./shield-ztcZkkVz.js";import{H as Eo}from"./history-BBxcoT6m.js";import{U as Ro}from"./users-SIkWN6UT.js";import{S as So}from"./scan-search-C4SX41s_.js";import{B as Po,C as Mo}from"./cooking-pot-C9PwvKl5.js";import{c as To}from"./createLucideIcon-_RGAZfGm.js";import{A as Io}from"./arrow-left-right-CVllAMYt.js";import{I as ko}from"./import-BW4QvGtN.js";import{C as Ao}from"./circle-question-mark-CGWBfY47.js";import{C as Lo}from"./code-BDzuDWVJ.js";import{L as Ot,o as jt,b as Oo,d as K,m as Ze,q as Fo,k as He,g as Ft,c as ge,t as _o,l as Do,u as Bo,p as _t,a as Ho}from"./popover-surface-BcmF1eQk.js";import{a as Dt,d as Bt}from"./floating-ui.utils.dom-CaluP667.js";import{b as zo}from"./LabelableContext-Dc_CnefH.js";import{h as Se,g as Ht,e as xe,d as se,E as Je,b as we,f as Uo}from"./useRenderElement-COqWOz6u.js";import{R as Vo,m as Qe,t as zt,l as Ut,o as Fe,aa as $o,G as Be,a1 as Wo,L as ze,M as Ee,O as Vt,an as Go,N as $t,af as qo,s as Yo,ah as Ko,U as Xo,ab as Zo,a8 as Jo,H as Qo,ao as es,ap as ts}from"./ReactStore-LfPUh27t.js";import{u as Wt}from"./useTransitionStatus-BoT9US5M.js";import{g as me}from"./tabs-ByHbJQTk.js";import{q as ns,h as Gt,t as os,u as ss,o as rs,n as as,F as qt,w as nt,f as is,p as Yt,b as ls,a as Kt,l as cs}from"./popupStateMapping-CLlAbxLA.js";import{C as et}from"./CompositeRoot-B2LVdx8f.js";import{r as Ce}from"./index-BKDJwgBa.js";import{u as ot}from"./useBaseUiId-D3M5BXz2.js";import{u as us}from"./DirectionContext-S2jvXofu.js";import{i as Xt}from"./inertValue-GEVqJpV7.js";import{u as ds}from"./useValueAsRef-B0Bd1x0R.js";import{C as Zt}from"./CompositeItem-D-vTVtkl.js";import{a as Jt}from"./listbox-item-Be6o2c8L.js";import{f as Qt,e as fs,O as ps}from"./index-DJWW77IK.js";import{u as ms,b as gs,c as hs,D as xs}from"./DialogRoot-CctrLv9r.js";import{L as vs}from"./layout-grid-CtL2esos.js";import{A as bs}from"./arrow-right-BsoRHvFP.js";import"./badge-BuZYsTo1.js";import"./customer-story-grid-DUKJN9nf.js";import{a as ys}from"./matches-D4tX3FXR.js";import{o as js,l as Ns}from"./schemas-BWN1OP4q.js";/** 2 * @license lucide-react v0.564.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ws=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Cs=To("circle-dollar-sign",ws),Es="https://supercut.instatus.com/summary.json",Rs={UP:"All systems operational",HASISSUES:"Experiencing issues",UNDERMAINTENANCE:"Under maintenance"},Ss={UP:"bg-[#00B093]",HASISSUES:"bg-orange-400",UNDERMAINTENANCE:"bg-yellow-400"},Ps={UP:"text-[#00B093]",HASISSUES:"text-orange-400",UNDERMAINTENANCE:"text-yellow-400"},Ms=()=>{const[t,n]=r.useState(null);return r.useEffect(()=>{fetch(Es).then(o=>o.json()).then(o=>n(o.page?.status??null)).catch(()=>n(null))},[]),t?e.jsxs("a",{className:"group/status inline-flex items-center gap-2",href:$n,rel:"noopener noreferrer",target:"_blank",children:[e.jsx("span",{"aria-hidden":!0,
6className:h("motion-safe:animate-pulse2 inline-block size-2 shrink-0 rounded-full",Ss[t]??"bg-gray-400")}),e.jsx("span",{className:h("text-body font-medium",Ps[t]??"text-muted-foreground","group-hover/status:underline"),children:Rs[t]??"Status unknown"})]}):null},en="site-footer",Ts="text-muted-foreground hover:text-foreground text-caption leading-[28px] font-medium transition-colors",Nt="text-foreground text-[15px] leading-[28px] font-medium",Re=({href:t,external:n,reloadDocument:o,showExternalIcon:s=!0,className:f,children:l})=>{const d=n===!0&&s,g=h(Ts,d&&"inline-flex items-center gap-1",f);return n?e.jsxs("a",{className:g,href:t,rel:"noopener noreferrer",target:"_blank",children:[l,d?e.jsx(At,{"aria-hidden":!0,className:"size-3.5 shrink-0"}):null]}):e.jsx(te,{className:g,reloadDocument:o,to:t,children:l})},wt="w-max shrink-0 items-start",Ye=({title:t,links:n,secondaryLinks:o,secondaryTitle:s,className:f,showExternalIcon:l=!0})=>e.jsxs("div",{className:h("flex w-max flex-col items-start",f),children:[e.jsx("span",{className:Nt,children:t}),n.map(d=>e.jsx(Re,{external:d.external,href:d.href,reloadDocument:d.reloadDocument,showExternalIcon:l,children:d.label},d.label)),o&&o.length>0?e.jsxs("div",{className:h("flex w-full flex-col",s?"mt-8":"border-border mt-3 border-t pt-3"),children:[s?e.jsx("span",{className:Nt,children:s}):null,o.map(d=>e.jsx(Re,{external:d.external,href:d.href,reloadDocument:d.reloadDocument,showExternalIcon:l,children:d.label},d.label))]}):null]}),Ct=()=>e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(te,{"aria-label":"Supercut home",className:"inline-flex shrink-0",to:"/",children:e.jsx(Un,{className:"size-9 shrink-0",isDark:!0,isMonochrome:!0})}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(Ms,{}),e.jsx(Re,{className:"text-muted-foreground/55 hover:text-foreground pl-0.5",external:!0,href:Wn,children:"Report a vulnerability"})]})]}),Is=()=>e.jsxs("div",{className:"flex flex-wrap items-center gap-x-[17px] gap-y-1",children:[e.jsxs(Re,{className:"text-foreground hover:text-foreground text-[13px] leading-[27px] font-medium hover:underline",external:!0,href:Gn,showExternalIcon:!1,children:["©",new Date().getFullYear()," Float Labs Ltd"]}),qn.map(t=>e.jsx(Re,{href:t.href,children:t.label},t.label))]}),ks=()=>e.jsx("div",{className:"inline-flex flex-wrap items-center gap-2",children:Yn.map(t=>e.jsx("a",{href:It,rel:"noopener noreferrer",target:"_blank",children:e.jsx(ee,{leadingIcon:kt,pill:!0,shadow:"none",size:"sm",tone:"secondary",variant:"outline",children:t})},t))}),As=({className:t})=>{const[n,...o]=vt;return e.jsx(Qn,{ariaLabel:"Site footer",centerSplit:{desktop:!0},className:t,height:"auto",children:e.jsxs("footer",{id:en,className:"flex flex-col pb-16",children:[e.jsxs("div",{className:"flex flex-col gap-12 lg:hidden",children:[e.jsx(Ct,{}),e.jsx("div",{className:"grid grid-flow-col grid-rows-2 items-start gap-x-8 gap-y-12",children:vt.map(s=>e.jsx(Ye,{...s},s.title))})]}),e.jsxs("div",{className:"hidden lg:flex lg:w-full lg:items-start",children:[e.jsxs("div",{className:"flex w-1/2 shrink-0 items-start justify-between lg:pr-44",children:[e.jsx(Ct,{}),e.jsx(Ye,{className:wt,...n})]}),e.jsx("div",{className:"flex w-1/2 shrink-0 items-start justify-between",children:o.map(s=>e.jsx(Ye,{className:wt,...s},s.title))})]}),e.jsx(eo,{className:"my-8 lg:my-10"}),e.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between",children:[e.jsx(Is,{}),e.jsx(ks,{})]})]})})},tn=200,Ls=320,Os=t=>Math.min(1,Math.max(0,(t-window.innerHeight)/Ls)),Fs=t=>t>=window.innerHeight-tn,_s=()=>{const t=r.useRef(null),[n,o]=r.useState(!1);return r.useEffect(()=>{if(!window.matchMedia("(min-width: 1024px)").matches)return;const f=t.current,l=document.getElementById(en);if(!f||!l)return;let d=0;const g=()=>{d=0,f.style.opacity=String(Os(l.getBoundingClientRect().top))},m=()=>{d===0&&(d=requestAnimationFrame(g))};g(),window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m,{passive:!0});const u=window.matchMedia("(hover: hover)"),y=b=>{const a=Fs(b.clientY);o(j=>j===a?j:a)},x=()=>{o(!1)},v=()=>{window.addEventListener("mousemove",y,{passive:!0}),document.documentElement.addEventListener("mouseleave",x)},c=()=>{window.removeEventListener("mousemove",y),document.documentElement.removeEventListener("mouseleave",x),x()};u.matches&&v();const w=b=>{b.matches?v():c()};return u.addEventListener("change",w),()=>{d!==0&&cancelAnimationFrame(d),window.removeEventListener("scroll",m),window.removeEventListener("resize",m),c(),u.removeEventListener("change",w)}}
6,[]),e.jsx("div",{ref:t,"aria-hidden":!0,className:"pointer-events-none fixed inset-x-0 bottom-0 z-[45] hidden lg:block",style:{height:tn},children:e.jsx("div",{className:h("size-full bg-gradient-to-t from-black to-transparent","transition-opacity duration-200",n&&"opacity-0")})})},Ds=h("border-foreground/35 border-b border-dotted","text-muted-foreground transition-colors duration-150 ease-out","hover:border-foreground"),Bs=()=>{const[t,n]=r.useState(!1),[o,s]=r.useState(!1),[f,l]=r.useState(!1),[d,g]=Tt(),m=()=>{g(o?f?he.Accepted:he.Rejected:he.Accepted),n(!0)};return e.jsxs("div",{className:h("bg-background animation-fill-backwards animate-moveInBottom corner-superellipse fixed bottom-8 z-50 rounded-2xl border border-white/15 p-5 shadow-lg delay-1500 md:w-[340px]",t&&"animate-moveOutBottom delay-0","right-2 left-2 md:right-8 md:left-auto"),children:[o?e.jsxs("div",{className:"animate-fadeIn my-2 flex items-center justify-between gap-3",children:[e.jsx("div",{className:"text-body-web text-foreground",children:"Analytics cookies"}),e.jsx(Fn,{checked:f,onCheckedChange:u=>{l(u)},size:"sm"})]}):e.jsxs("p",{className:"text-caption text-foreground leading-normal",children:["We only use cookies to enhance your experience."," ",e.jsx("span",{className:"text-muted-foreground font-medium",children:"No cross-site tracking, no ads."})," ",e.jsx("span",{className:"text-muted-foreground",children:"Read our "}),e.jsx("a",{href:"/legal/cookies",className:Ds,children:"Cookie Policy"}),"."]}),e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(ee,{className:"mt-4",onClick:()=>{s(u=>!u)},pill:!0,shadow:"none",size:"sm",tone:"secondary",variant:"outline",children:o?"Cancel":"Settings"}),e.jsx(ee,{className:"mt-4",onClick:m,pill:!0,shadow:"none",size:"sm",tone:"default",variant:"solid",children:o?"Confirm":"Accept"})]})]})},nn=({className:t})=>e.jsx("div",{"aria-hidden":!0,className:h("pointer-events-none absolute inset-0 hidden lg:block",t),children:e.jsx("div",{className:h("border-border h-full border-x",Q.columnBetweenGuides)})}),Hs=({children:t,className:n})=>e.jsx("div",{className:h("dark bg-background relative min-h-screen w-full overflow-x-clip font-sans",n),"data-ds":!0,children:e.jsxs("div",{className:"relative",children:[t,e.jsx(nn,{className:Q.frameGuideLayer})]})}),zs=r.forwardRef(function(n,o){const{render:s,className:f,disabled:l=!1,nativeButton:d=!0,id:g,payload:m,handle:u,style:y,...x}=n,v=ms(!0),c=u?.store??v?.store;if(!c)throw new Error(Se(79));const w=ot(g),b=c.useState("floatingRootContext"),a=c.useState("isOpenedByTrigger",w),j=r.useRef(null),{registerTrigger:C,isMountedByThisTrigger:O}=ns(w,j,c,{payload:m}),{getButtonProps:R,buttonRef:I}=Ht({disabled:l,native:d}),M=Jt(b,{enabled:b!=null}),z=Gt([M]),A={disabled:l,open:a},S=c.useState("triggerProps",O);return xe("button",n,{state:A,ref:[I,o,C,j],props:[z.getReferenceProps(),S,{[Vo]:"",id:w},x,R],stateAttributesMapping:os})}),Us="Supercut_brand_pack.zip",Vs=xo("/img/Supercut_brand_pack.zip"),Ke="ãSupercut",$s="h-6 w-auto lg:h-[28px]",Ws=()=>{const t=()=>{navigator.clipboard.writeText(Ke).then(()=>{Dn.info("Copied to clipboard",{description:`"${Ke}" is ready to paste`,position:"top-left"})})},n=()=>{const o=document.createElement("a");o.href=Vs,o.download=Us,o.rel="noopener",document.body.appendChild(o),o.click(),document.body.removeChild(o)};return e.jsxs(vo,{children:[e.jsx(bo,{children:e.jsx(te,{"aria-label":"Supercut home",className:"inline-flex shrink-0",to:"/",children:e.jsx(Vn,{"aria-hidden":!0,className:$s,isDark:!0,isMonochrome:!0})})}),e.jsxs(yo,{className:"min-w-36",children:[e.jsx(yt,{leadingIcon:Lt,onClick:n,children:"Brand.zip"}),e.jsx(yt,{leadingIcon:jo,onClick:t,children:Ke})]})]})},Ue=({agentsPrefix:t,label:n})=>t?e.jsxs("span",{children:[e.jsx("span",{className:"text-primary",children:"_"}),"Agents"]}):n,st=t=>"tiles"in t,on=t=>st(t)||"children"in t,sn=[{label:"Product",tiles:Kn,sideLinks:[{icon:Lt,label:"Download",href:"/download-recorder"},{icon:Co,label:"Security",href:"/security"},{icon:Eo,label:"Changelog",href:"/changelog"}]},{label:"Made for",children:Xn},{icon:Ro,label:"Customers",href:"/customers"},{label:"Agents",agentsPrefix:!0,compact:!0,children:[{icon:So,label:"MCP overview",href:No},{icon:Po,label:"MCP setup",href:qe["mcp-setup-guides"]},{icon:Mo,label:"Recipes",href:qe.recipes},{icon:Zn,label:"Connections",href:qe.connections}]},{icon:Cs,label:"Pricing",href:"/pricing"},{label:"Resources",compact:!0,children:[{icon:Io,label:"Switch to Supercut",href:"/switch"},{icon:ko,label:"Import from Loom",href:"/import/loom"},{icon:Ao,label:"Help center",href:"https://help.supercut.ai",external:!0},{icon:Lo,label:"Developers",href:"https://api.supercut.ai/api/platform/v1/docs/",external:!0},{icon:kt,label:"Trust Center",href:It,external:!0}]}],rt=({external:t,label:n})=>e.jsxs("span",{className:h(t&&"inline-flex items-center gap-1"),children:[n,t?e.jsx(At,{"aria-hidden":!0,
6className:"size-3.5 shrink-0"}):null]}),rn=({className:t,icon:n})=>e.jsx(n,{"aria-hidden":!0,className:h(Jn,"!size-6",t),strokeWidth:1}),an=({className:t,sublink:n})=>{const o=n.icon;return o?e.jsx(rn,{className:t,icon:o}):null},ln=r.createContext(void 0);function $(t){const n=r.useContext(ln);if(n===void 0&&!t)throw new Error(Se(41));return n}const cn=r.createContext(void 0);function Pe(){return r.useContext(cn)}let B=function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t}({}),V=function(t){return t.availableWidth="--available-width",t.availableHeight="--available-height",t.anchorWidth="--anchor-width",t.anchorHeight="--anchor-height",t.transformOrigin="--transform-origin",t.positionerWidth="--positioner-width",t.positionerHeight="--positioner-height",t}({});const Gs=new Set([Ze,Fo,He]);function qs(t,n){const{width:o,height:s}=me(t);o===0||s===0||(t.style.setProperty(B.popupWidth,`${o}px`),t.style.setProperty(B.popupHeight,`${s}px`),n.style.setProperty(V.positionerWidth,`${o}px`),n.style.setProperty(V.positionerHeight,`${s}px`))}const Ys=r.forwardRef(function(n,o){const{defaultValue:s=null,value:f,onValueChange:l,actionsRef:d,delay:g=50,closeDelay:m=50,orientation:u="horizontal",onOpenChangeComplete:y}=n,x=ss()!=null,v=$(!0),[c,w]=zo({controlled:f,default:s,name:"NavigationMenu",state:"value"}),b=c!=null,a=r.useRef(void 0),j=r.useRef(null),[C,O]=r.useState(null),[R,I]=r.useState(null),[M,z]=r.useState(null),[A,S]=r.useState(null),[T,U]=r.useState(null),[W,L]=r.useState(void 0),[X,H]=r.useState(!1),E=r.useRef(null),re=r.useRef(null),ne=r.useRef(null),ve=r.useRef(null),ae=r.useRef(null),Z=r.useRef(null),F=r.useRef({abortController:null,owner:null}),{mounted:J,setMounted:_,transitionStatus:G}=Wt(b);r.useEffect(()=>{H(!1)},[c]);const Me=se((q,D)=>{q||(a.current=D.reason,U(null),L(void 0),C&&R&&qs(R,C)),q!==c&&l?.(q,D),!D.isCanceled&&(w(q),x&&!q&&D.reason===Ot&&v&&v.setValue(null,D))}),Te=se(()=>{const q=jt(j.current),D=Oo(q);!(a.current?Gs.has(a.current):!1)&&Dt(E.current)&&(D===jt(R).body||K(R,D))&&R&&(E.current.focus({preventScroll:!0}),E.current=void 0),_(!1),y?.(!1),U(null),L(void 0),re.current=null,a.current=void 0});Qe({enabled:!d,open:b,ref:{current:R},onComplete(){b||Te()}}),Qe({enabled:!d,open:b,ref:{current:A},onComplete(){b||Te()}});const Ie=r.useMemo(()=>({open:b,value:c,setValue:Me,mounted:J,transitionStatus:G,positionerElement:C,setPositionerElement:O,popupElement:R,setPopupElement:I,viewportElement:M,setViewportElement:z,viewportTargetElement:A,setViewportTargetElement:S,activationDirection:T,setActivationDirection:U,floatingRootContext:W,setFloatingRootContext:L,currentContentRef:re,nested:x,rootRef:j,beforeInsideRef:ne,afterInsideRef:ve,beforeOutsideRef:ae,afterOutsideRef:Z,prevTriggerElementRef:E,popupAutoSizeResetRef:F,delay:g,closeDelay:m,orientation:u,viewportInert:X,setViewportInert:H}),[b,c,Me,J,G,C,R,M,A,T,W,x,g,m,u,X]),ce=e.jsx(ln.Provider,{value:Ie,children:e.jsx(Ks,{componentProps:n,forwardedRef:o,children:n.children})});return x?ce:e.jsx(rs,{children:ce})});function Ks(t){const{className:n,render:o,defaultValue:s,value:f,onValueChange:l,actionsRef:d,delay:g,closeDelay:m,orientation:u,onOpenChangeComplete:y,style:x,...v}=t.componentProps,c=as(),{rootRef:w,nested:b}=$(),{open:a}=$(),j={open:a,nested:b},C=xe(b?"div":"nav",t.componentProps,{state:j,ref:[t.forwardedRef,w],props:v});return e.jsx(cn.Provider,{value:c,children:e.jsx(qt,{id:c,children:C})})}const un="data-base-ui-navigation-menu-trigger",tt=r.createContext(void 0);function Xs(){return r.useContext(tt)}const Zs=r.forwardRef(function(n,o){const{className:s,render:f,style:l,...d}=n,g=Pe(),{orientation:m,open:u,floatingRootContext:y,positionerElement:x,value:v,closeDelay:c,viewportElement:w,nested:b}=$(),a=r.useMemo(()=>nt(),[]),j=y||a,C=x?!0:!v;ao(j,{enabled:!!y&&(x||w?!0:!v),closeDelay:c,nodeId:g});const R=is(j,{enabled:C,outsidePressEvent:"intentional",outsidePress(T){return Ft(T)?.closest(`[${un}]`)===null}}),I=y?R:void 0,M={open:u},z=b?Je:{onKeyDown(T){(m==="horizontal"&&(T.key==="ArrowLeft"||T.key==="ArrowRight")||m==="vertical"&&(T.key==="ArrowUp"||T.key==="ArrowDown"))&&T.stopPropagation()}},A=[I?.floating||Je,z,{"aria-orientation":void 0},d],S=xe("ul",n,{state:M,ref:o,props:A,enabled:b});return b?e.jsx(tt.Provider,{value:I,children:S}):e.jsx(tt.Provider,{value:I,children:e.jsx(et,{render:f,className:s,style:l,state:M,refs:[o],props:A,loopFocus:!1,orientation:m,tag:"ul"})})}),dn=r.createContext(void 0);function fn(){const t=r.useContext(dn);if(!t)throw new Error(Se(39));return t}const Js=r.forwardRef(function(n,o){const{className:s,render:f,value:l,style:d,...g}=n,m=ot(),u=l??m,y=xe("li",n,{ref:o,props:g}),x=r.useMemo(()=>({value:u}),[u]);return e.jsx(dn.Provider,{value:x,children:y})}),Et={...Yt,...zt,activationDirection(t){return t?{"data-activation-direction":t}:null}},Qs=r.forwardRef(function(n,o){const{className:s,render:f,keepMounted:l=!1,style:d,...g}=n,{mounted:m,viewportElement:u,value:y,activationDirection:x,currentContentRef:v,viewportTargetElement:c}=$(),{value:w}=fn(),b=Pe(),a=m&&y===w,j=r.useRef(null),[C,O]=r.useState(!1),[R,I]=r.useState(!1),{mounted:M,setMounted:z,transitionStatus:A}=Wt(a);M&&!m&&z(!1),Qe({ref:j,open:a,onComplete(){a||z(!1)}}),we(()=>{a&&j.current&&(v.current=j.current)},[a,v]);const S={open:a,transitionStatus:A,activationDirection:x},T=r.useCallback(E=>
6{E&&(v.current=E)},[v]),U={onFocus(E){Ft(E.nativeEvent)?.hasAttribute("data-base-ui-focus-guard")||I(!0)},onBlur(E){K(E.currentTarget,E.relatedTarget)||I(!1)}},W=!a&&M?{style:{position:"absolute",top:0,left:0},inert:Xt(!R),...U}:U,L=c||u,X=l&&!M,H=l&&!L&&!C;return l&&L&&!C&&O(!0),H?e.jsx(et,{render:f,className:s,style:d,state:S,refs:[o],props:[W,{hidden:!0},g],stateAttributesMapping:Et}):!L||!M&&!l?null:Ce.createPortal(e.jsx(qt,{id:b,children:e.jsx(et,{render:f,className:s,style:d,state:S,refs:[o,j,T],props:[W,X?{hidden:!0}:Je,g],stateAttributesMapping:Et})}),L)});function pn({currentTarget:t,relatedTarget:n},o){const{popupElement:s,viewportElement:f,rootRef:l,tree:d,nodeId:g}=o,m=d?ls(d.nodesRef.current,g).some(y=>K(y.context?.elements.floating,n)):[];if(!s)return!K(l.current,n)&&!m;const u=s||f;return!K(u,t)&&!K(u,n)&&!K(l.current,n)&&!m&&!(K(u,n)&&n?.hasAttribute("data-base-ui-focus-guard"))}const Rt={width:0,height:0},er=r.forwardRef(function(n,o){const{className:s,render:f,nativeButton:l=!0,disabled:d,style:g,...m}=n,{value:u,setValue:y,mounted:x,open:v,positionerElement:c,setActivationDirection:w,setFloatingRootContext:b,popupElement:a,viewportElement:j,transitionStatus:C,rootRef:O,beforeOutsideRef:R,afterOutsideRef:I,afterInsideRef:M,beforeInsideRef:z,prevTriggerElementRef:A,popupAutoSizeResetRef:S,currentContentRef:T,delay:U,closeDelay:W,orientation:L,setViewportInert:X,nested:H}=$(),{value:E}=fn(),re=Pe(),ne=Kt(),ve=Xs(),ae=Ut(),Z=Fe(),F=Fe(),J=Fe(),_=Fe(),[G,Me]=r.useState(null),[Te,Ie]=r.useState(!0),[ce,q]=r.useState(""),D=r.useRef(null),be=r.useRef(!1),Y=r.useRef(Rt),ke=r.useRef(!1),k=v&&u===E,Ae=ds(k),ct=c?!0:!u,ue=c||j,wn=ue?!0:!u,Cn=$o(a,!1,!1),En=r.useCallback(i=>{D.current=i,Me(i)},[]),ie=se((i=!1)=>{!i&&S.current.owner!==E||(S.current.abortController?.abort(),S.current.abortController=null,S.current.owner=null)});we(()=>{k||(F.cancel(),_.cancel(),ie())},[k,F,_,ie]);function ut(){a&&(a.style.setProperty(B.popupWidth,"auto"),a.style.setProperty(B.popupHeight,"auto"))}function Ve(){!a||!c||(a.style.removeProperty(B.popupWidth),a.style.removeProperty(B.popupHeight),c.style.removeProperty(V.positionerWidth),c.style.removeProperty(V.positionerHeight))}function $e(i,p){!a||!c||(a.style.setProperty(B.popupWidth,`${i}px`),a.style.setProperty(B.popupHeight,`${p}px`),c.style.setProperty(V.positionerWidth,`${i}px`),c.style.setProperty(V.positionerHeight,`${p}px`))}function dt(){ie(!0);const i=new AbortController;S.current.abortController=i,S.current.owner=E,Cn(()=>{S.current.abortController!==i||S.current.owner!==E||(S.current.abortController=null,S.current.owner=null,ut())},i.signal)}const ye=se((i,p,N={})=>{if(!a||!c)return;ie(!0);const{syncPositioner:P=!1}=N;Ve();const{width:de,height:je}=me(a),Le=de||Y.current.width,Oe=je||Y.current.height;(p===0||i===0)&&(i=Le,p=Oe),a.style.setProperty(B.popupWidth,`${i}px`),a.style.setProperty(B.popupHeight,`${p}px`),c.style.setProperty(V.positionerWidth,`${P?i:Le}px`),c.style.setProperty(V.positionerHeight,`${P?p:Oe}px`),_.request(()=>{Ae.current&&(a.style.setProperty(B.popupWidth,`${Le}px`),a.style.setProperty(B.popupHeight,`${Oe}px`),P&&(c.style.setProperty(V.positionerWidth,`${Le}px`),c.style.setProperty(V.positionerHeight,`${Oe}px`)),dt())})}),ft=se((i,p)=>{!a||!c||(_.cancel(),F.cancel(),ie(!0),!(i===0||p===0)&&($e(i,p),F.request(()=>{F.request(()=>{Ve();const{width:N,height:P}=me(a),de=N||i||Y.current.width,je=P||p||Y.current.height;$e(i,p),_.request(()=>{Ae.current&&($e(de,je),dt())})})})))}),fe=se(()=>{if(!a||!c)return;_.cancel(),ie(!0),Ve();const{width:i,height:p}=me(a);i===0||p===0||(Y.current={width:i,height:p},ut(),c.style.setProperty(V.positionerWidth,`${i}px`),c.style.setProperty(V.positionerHeight,`${p}px`))}),pt=se(()=>{if(!a)return{size:Y.current,syncPositioner:!1};const i=a.style.getPropertyValue(B.popupWidth),p=a.style.getPropertyValue(B.popupHeight);return i!==""&&i!=="auto"&&p!==""&&p!=="auto"?{size:{width:a.offsetWidth||Y.current.width,height:a.offsetHeight||Y.current.height},syncPositioner:!0}:{size:Y.current,syncPositioner:!1}});r.useEffect(()=>{v||(ae.clear(),F.cancel(),J.cancel(),_.cancel(),ie(!0),ke.current=!1,q(""))},[ae,v,F,J,_,ie]),r.useEffect(()=>{x||(Y.current=Rt)},[x]),r.useEffect(()=>{if(!a||typeof ResizeObserver!="function")return;const i=new ResizeObserver(()=>{Y.current={width:a.offsetWidth,height:a.offsetHeight}});return i.observe(a),()=>{i.disconnect()}},[a]),r.useEffect(()=>{if(!v||!k||!a||!c)return;const i=Bt(c);function p(){J.cancel(),J.request(fe)}const N=Be(i,"resize",p);return()=>{J.cancel(),N()}},[v,k,a,c,J,fe]),r.useEffect(()=>{const i=T.current;if(!i||!a||!k||typeof MutationObserver!="function")return;const p=new MutationObserver(()=>{if(C==="starting"||a.hasAttribute(Wo.startingStyle)){fe();return}const{size:N,syncPositioner:P}=pt();if(P){ft(N.width,N.height);return}ye(N.width,N.height)});return p.observe(i,{childList:!0,subtree:!0,characterData:!0}
6),()=>{p.disconnect()}},[T,a,k,C,pt,ft,ye,fe]),r.useEffect(()=>(k&&v&&a&&be.current&&(be.current=!1,Z.request(()=>{R.current?.focus()})),()=>{Z.cancel()}),[R,Z,k,v,a]),we(()=>{if(Ae.current&&v&&a){if(C==="starting"&&T.current?.querySelector("[data-nested]")!=null)return _.request(fe),()=>{_.cancel()};if(ke.current){ke.current=!1;return}const{width:i,height:p}=me(a);ye(i,p)}},[T,ye,Ae,v,a,_,fe,C]);function Rn(i,p){const N=p.reason===Ze;if(!ct||ce==="touch"&&N||!i&&u!==E)return;function P(){N&&(Ie(!0),ae.clear(),ae.start(Ko,()=>{Ie(!1)})),i?y(E,p):(y(null,p),q(""))}N?Ce.flushSync(P):P()}const le=io({open:v,onOpenChange:Rn,elements:{reference:G,floating:ue}}),oe=lo(le),mt=ce!=="touch";r.useEffect(()=>{v||(le.context.dataRef.current.openEvent=void 0,oe.pointerType=void 0,oe.interactedInside=!1,oe.restTimeoutPending=!1,oe.openChangeTimeout.clear(),oe.restTimeout.clear(),bt(oe))},[le,oe,v]);const Sn=se(()=>!H||c||!D.current||!ue?null:nr(D.current,ue,re));function gt(){return!H||!c?D.current?.closest("ul")??null:null}const We=co(le,{enabled:wn,move:!1,handleClose:uo({blockPointerEvents:mt,getScope:gt}),restMs:x&&c?0:U,delay:{close:W},triggerElementRef:D,getHandleCloseContext:Sn}),Pn=r.useMemo(()=>We?{reference:We}:void 0,[We]),Mn=Jt(le,{enabled:ct,stickIfOpen:Te,toggle:k}),{getReferenceProps:Tn}=Gt([Pn,Mn]);we(()=>{k&&(b(le),A.current=G)},[k,le,b,A,G]);function ht(i){Ce.flushSync(()=>{const p=Dt(i.currentTarget)?i.currentTarget:null,N=A.current?.getBoundingClientRect();if(x&&N&&G){const P=G.getBoundingClientRect(),de=P.left>N.left,je=P.top>N.top;L==="horizontal"&&P.left!==N.left?w(de?"right":"left"):L==="vertical"&&P.top!==N.top&&w(je?"down":"up")}if(i.type!=="click"&&u!=null&&(le.context.dataRef.current.openEvent=void 0),!(ce==="touch"&&i.type!=="click")&&(u!=null&&y(E,ge(i.type==="mouseenter"?Ze:_o,i.nativeEvent)),i.type==="mouseenter"&&mt&&(!H||!c)&&ue&&p)){const P=()=>{const de=gt()??p.ownerDocument.body;fo(oe,{scopeElement:de,referenceElement:p,floatingElement:ue})};u!=null&&u!==E?queueMicrotask(P):P()}})}const Ge=se(i=>{if(!a||!c){ht(i);return}const{width:p,height:N}=me(a),P=u!=null&&u!==E&&(i.type==="click"||ce!=="touch");ht(i),P&&(ke.current=!0),ye(p,N)}),In={open:k};function xt(i){q(i.pointerType)}function kn(i){xt(i),bt(oe)}const An={tabIndex:0,onMouseEnter:Ge,onClick:Ge,onPointerEnter:xt,onPointerDown:kn,"aria-expanded":k,"aria-controls":k?a?.id:void 0,[un]:"",onFocus(){k&&X(!1)},onMouseMove(){be.current=!1},onKeyDown(i){if(be.current=!0,H)return;const p=L==="horizontal"&&i.key==="ArrowDown",N=L==="vertical"&&i.key==="ArrowRight";(p||N)&&(y(E,ge(Do,i.nativeEvent)),Ge(i),Yo(i))},onBlur(i){c&&a&&pn({currentTarget:i.currentTarget,relatedTarget:i.relatedTarget},{popupElement:a,rootRef:O,tree:ne,nodeId:re})&&y(null,ge(He,i.nativeEvent))}},{getButtonProps:Ln,buttonRef:On}=Ht({disabled:d,focusableWhenDisabled:!0,native:l}),pe=ue;return e.jsxs(r.Fragment,{children:[e.jsx(Zt,{tag:"button",render:f,className:s,style:g,state:In,stateAttributesMapping:cs,refs:[o,En,On],props:[Tn,ve?.reference||Uo,An,m,Ln]}),k&&e.jsxs(r.Fragment,{children:[e.jsx(ze,{ref:R,onFocus:i=>{pe&&Ee(i,pe)?z.current?.focus():Vt(G)?.focus()}}),e.jsx("span",{"aria-owns":j?.id,style:Go}),e.jsx(ze,{ref:I,onFocus:i=>{if(pe&&Ee(i,pe))Ce.flushSync(()=>{X(!1)}),(M.current||G)?.focus();else{let p=$t(G);H&&!c&&pe&&p&&K(pe,p)&&(p=qo(M.current)),p?.focus(),(!H||c)&&!K(O.current,p)&&y(null,ge(He,i.nativeEvent))}}})]})]})});function tr(t,n){const o=t.getBoundingClientRect(),s=n.getBoundingClientRect(),f=o.left+o.width/2,l=o.top+o.height/2,d=s.left+s.width/2,g=s.top+s.height/2,m=d-f,u=g-l;return Math.abs(m)>=Math.abs(u)?m>=0?"right":"left":u>=0?"bottom":"top"}function nr(t,n,o){return{placement:tr(t,n),elements:{domReference:t,floating:n},nodeId:o}}const mn=r.createContext(void 0);function or(){const t=r.useContext(mn);if(t===void 0)throw new Error(Se(40));return t}const sr=r.forwardRef(function(n,o){const{keepMounted:s=!1,...f}=n,{mounted:l}=$();return l||s?e.jsx(mn.Provider,{value:s,children:e.jsx(Xo,{ref:o,...f})}):null}),gn=r.createContext(void 0);function at(t=!1){const n=r.useContext(gn);if(!n&&!t)throw new Error(Se(42));return n}const rr=nt(),ar=r.forwardRef(function(n,o){const{open:s,mounted:f,positionerElement:l,setPositionerElement:d,floatingRootContext:g,nested:m,transitionStatus:u}=$(),{className:y,render:x,anchor:v,positionMethod:c="absolute",side:w="bottom",align:b="center",sideOffset:a=0,alignOffset:j=0,collisionBoundary:C="clipping-ancestors",collisionPadding:O=5,collisionAvoidance:R=m?Zo:Jo,arrowPadding:I=5,sticky:M=!1,disableAnchorTracking:z=!1,style:A,...S}=n,T=or(),U=Pe(),W=Ut(),[L,X]=r.useState(!1),H=r.useRef(null),E=r.useRef(null);r.useEffect(()=>{if(!l)return;function Z(F){l&&Ee(F)&&(F.type==="focusin"?es:ts)(l)}return Qo(Be(l,"focusin",Z,!0),Be(l,"focusout",Z,!0))},[l]);const re=(g||rr).useState("domReferenceElement"),ne=po({anchor:v??re??E,positionMethod:c,mounted:f,side:w,sideOffset:a,align:b,alignOffset:j,arrowPadding:I,collisionBoundary:C,collisionPadding:O,sticky:M,disableAnchorTracking:z,keepMounted:T,floatingRootContext:g,collisionAvoidance:R,nodeId:U,adaptiveOrigin:go}),ve={open:s,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,instant:L};r.useEffect(()=>{if(!s)return;function Z(){Ce.flushSync(()=>{X(!0)}),W.start(100,()=>{X(!1)})}const F=Bt(l);return Be(F,"resize",Z)},[s,W,l]);const ae=mo(n,ve,{styles:ne.positionerStyles,transitionStatus:u,props:S,refs:[o,d,H],hidden:!f,inert:!s});return e.jsx(gn.Provider,{value:ne,children:ae})}),ir=nt();function St({children:t}){const{beforeInsideRef:n,beforeOutsideRef:o,afterInsideRef:s,afterOutsideRef:f,positionerElement:l,viewportElement:d,floatingRootContext:g}=$(),m=!!at(!0),u=l||d;return!g&&!m?t:e.jsxs(r.Fragment,{children:[e.jsx(ze,{ref:n,onFocus:y=>{u&&Ee(y,u)?$t(u)?.focus():o.current?.focus()}}),t,e.jsx(ze,{ref:s,onFocus:y=>{u&&Ee(y,u)?Vt(u)?.focus():f.current?.focus()}})]})}const lr=r.forwardRef(function(n,o){const{className:s,render:f,children:l,id:d,style:g,...m}=n,u=Bo(d),{setViewportElement:y,setViewportTargetElement:x,floatingRootContext:v,prevTriggerElementRef:c,viewportInert:w,setViewportInert:b}=$(),j=!!at(!0),C=(v||ir).useState("domReferenceElement");we(()=>{C&&(c.current=C)},[C,c]);const O=xe("div",n,{ref:[o,y],props:[{id:u,onBlur(R){const I=R.relatedTarget,M=R.currentTarget;I&&!K(M,I)&&I!==C&&b(!0)},...!j&&w&&{inert:Xt(!0)},children:j?l:e.jsx(St,{children:e.jsx("div",{ref:x,children:l})})},m]});return j?e.jsx(St,{children:O}):O}),cr={...Yt,...zt},ur=r.forwardRef(function(n,o){const{className:s,render:f,id:l,style:d,...g}=n,{open:m,transitionStatus:u,setPopupElement:y}=$(),x=at(),v=us(),c=ot(l),w={open:m,transitionStatus:u,side:x.side,align:x.align,anchorHidden:x.anchorHidden};let b=x.side==="top",a=x.side==="left";return v==="rtl"?(b=b||x.side==="inline-end",a=a||x.side==="inline-end"):(b=b||x.side==="inline-start",a=a||x.side==="inline-start"),xe("nav",n,{state:w,ref:[o,y],props:[{id:c,tabIndex:-1,style:b?{position:"absolute",[x.side==="top"?"bottom":"top"]:"0",[a?"right":"left"]:"0"}:{}},g],stateAttributesMapping:cr})}),dr=r.forwardRef(function(n,o){const{className:s,render:f,active:l=!1,closeOnClick:d=!1,style:g,...m}=n,{setValue:u,popupElement:y,positionerElement:x,rootRef:v}=$(),c=Pe(),w=Kt(),b={active:l},a={"aria-current":l?"page":void 0,tabIndex:void 0,onClick(j){d&&u(null,ge(Ot,j.nativeEvent))},onBlur(j){x&&y&&pn({currentTarget:j.currentTarget,relatedTarget:j.relatedTarget},{popupElement:y,rootRef:v,tree:w,nodeId:c}
6)&&u(null,ge(He,j.nativeEvent))}};return e.jsx(Zt,{tag:"a",render:f,className:s,style:g,state:b,refs:[o],props:[a,m]})}),fr=h("h-full w-auto p-0","ease-web-out transition-[opacity,transform,translate] duration-[0.22s]","data-ending-style:opacity-0 data-starting-style:opacity-0","data-[motion=from-end]:data-starting-style:translate-x-52 data-[motion=from-start]:data-starting-style:-translate-x-52","data-[motion=to-end]:data-ending-style:translate-x-52 data-[motion=to-start]:data-ending-style:-translate-x-52"),pr=h("inline-flex items-center justify-center","text-caption text-muted-foreground font-normal outline-none","transition-colors duration-150 ease-out","hover:text-foreground focus-visible:text-foreground","data-popup-open:text-foreground data-open:text-foreground"),hn=({className:t,...n})=>e.jsx(Ys,{className:h("group/navigation-menu relative flex max-w-max items-center justify-center",t),...n});hn.displayName="NavigationMenu";const xn=({className:t,...n})=>e.jsx(Zs,{className:h("flex list-none items-center gap-5",t),...n});xn.displayName="NavigationMenuList";const it=({className:t,...n})=>e.jsx(Js,{className:h("relative",t),...n});it.displayName="NavigationMenuItem";const vn=({className:t,children:n,render:o,...s})=>e.jsx(er,{className:h(!o&&pr,t),render:o,...s,children:n});vn.displayName="NavigationMenuTrigger";const bn=({className:t,...n})=>e.jsx(Qs,{className:h(fr,t),...n});bn.displayName="NavigationMenuContent";const lt=({className:t,...n})=>e.jsx(dr,{className:h("text-caption text-muted-foreground inline-flex items-center outline-none","transition-colors duration-150 ease-out","hover:text-foreground focus-visible:text-foreground","data-[active]:text-foreground",t),closeOnClick:!0,...n});lt.displayName="NavigationMenuLink";const yn=({align:t="start",side:n="bottom",sideOffset:o=12,alignOffset:s=0,className:f,...l})=>e.jsx(sr,{children:e.jsx(ar,{align:t,alignOffset:s,className:h("isolate z-[1000] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width)","ease-web-in-out transition-[top,left,right,bottom] duration-[0.22s]","data-instant:transition-none",f),side:n,sideOffset:o,...l,children:e.jsx(ur,{..._t,className:h(Ho,"relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin)","ease-web-out overflow-hidden transition-[opacity,transform,width,height] duration-[0.22s]","data-ending-style:scale-95 data-ending-style:opacity-0 data-ending-style:duration-150","data-starting-style:scale-95 data-starting-style:opacity-0"),children:e.jsx(lr,{className:"relative size-full overflow-hidden"})})})});yn.displayName="NavigationMenuPositioner";const mr=h("flex h-full w-full items-center p-4 text-left outline-none","transition-colors duration-150 ease-out","hover:bg-secondary/50 focus-visible:bg-secondary/50","data-[active]:bg-secondary/50"),gr=h("flex w-full items-center gap-2 px-8 py-2.5 text-left outline-none","text-caption text-muted-foreground font-normal","transition-colors duration-150 ease-out","hover:text-foreground focus-visible:text-foreground","data-[active]:text-foreground"),_e="border-foreground
6/7 border-r",hr="border-foreground/7 border-b",jn=({children:t,className:n,sublink:o})=>{const s=o.external?e.jsx("a",{href:o.href,rel:"noopener noreferrer",target:"_blank"}):e.jsx(te,{to:o.href});return e.jsx(lt,{className:n,render:s,children:t})},Ne=({className:t,nowrap:n,sublink:o})=>{const s=!!o.description;return e.jsx(jn,{className:h(mr,t),sublink:o,children:e.jsxs("div",{className:h("flex gap-4",s?"items-start":"items-center"),children:[e.jsx(an,{sublink:o}),e.jsxs("div",{className:h("flex flex-col gap-0",n?"w-max":"min-w-0"),children:[e.jsx("span",{className:"text-body text-foreground font-medium",children:e.jsx(rt,{external:o.external,label:o.label})}),s?e.jsx("p",{className:h("text-caption text-muted-foreground leading-snug",n?"whitespace-nowrap":"line-clamp-2"),children:o.description}):null]})]})})},xr=({sublink:t})=>{const n=t.icon;return e.jsxs(jn,{className:gr,sublink:t,children:[n?e.jsx(n,{"aria-hidden":!0,className:"size-3.5 shrink-0",strokeWidth:1.5}):null,e.jsx(rt,{external:t.external,label:t.label})]})},vr=({sideLinks:t,tiles:[n,o,s,f]})=>e.jsx("div",{className:"w-max",children:e.jsxs("div",{className:"grid w-max grid-flow-col [grid-template-columns:repeat(2,minmax(max-content,1fr))_auto] grid-rows-2",children:[e.jsx(Ne,{className:h(_e,"border-b"),nowrap:!0,sublink:n}),e.jsx(Ne,{className:_e,nowrap:!0,sublink:o}),e.jsx(Ne,{className:h(_e,"border-b"),nowrap:!0,sublink:s}),e.jsx(Ne,{className:_e,nowrap:!0,sublink:f}),t.length>0?e.jsx("div",{className:"row-span-2 flex flex-col justify-center self-stretch",children:t.map(l=>e.jsx(xr,{sublink:l},l.href))}):null]})}),br=({compact:t,items:n})=>e.jsx("div",{className:t?"w-max":"w-[340px]",children:n.map((o,s)=>e.jsx(Ne,{className:s<n.length-1?hr:void 0,nowrap:t,sublink:o},o.href))}),yr=({item:t})=>st(t)?e.jsx(vr,{sideLinks:t.sideLinks,tiles:t.tiles}):e.jsx(br,{compact:t.compact,items:t.children}),jr=e.jsx(ee,{shadow:"none",size:"sm",tone:"secondary",variant:"plainLink"}),Nr=({external:t,href:n})=>t?e.jsx(ee,{nativeButton:!1,render:e.jsx("a",{href:n,rel:"noopener noreferrer",target:"_blank"}),shadow:"none",size:"sm",tone:"secondary",variant:"plainLink"}):e.jsx(ee,{nativeButton:!1,render:e.jsx(te,{to:n}),shadow:"none",size:"sm",tone:"secondary",variant:"plainLink"}),wr=({item:t})=>{const n=e.jsx(Ue,{agentsPrefix:t.agentsPrefix,label:t.label});return e.jsxs(it,{value:t.label,children:[e.jsx(vn,{nativeButton:!0,render:jr,children:n}),e.jsx(bn,{children:e.jsx(yr,{item:t})})]})},Cr=({item:t})=>{const n=e.jsx(Ue,{agentsPrefix:t.agentsPrefix,label:t.label});return e.jsx(it,{children:e.jsx(lt,{render:Nr(t),children:n})})},Er=({className:t,"data-slot":n})=>e.jsxs(hn,{className:h("hidden items-center lg:flex",t),closeDelay:200,"data-slot":n,delay:0,children:[e.jsx(xn,{children:sn.map(o=>on(o)?e.jsx(wr,{item:o},o.label):e.jsx(Cr,{item:o},o.label))}),e.jsx(yn,{})]}),Rr="text-title text-foreground flex w-full items-center gap-2 py-2 font-medium",Sr="text-caption text-muted-foreground/70 block w-full pb-1 font-normal",Pt="text-title text-foreground flex w-full items-center gap-2 py-2 font-medium",Pr="border-border mx-4 my-2 border-t",Mr="border-border my-4 border-t",Nn=t=>{const n=Qt();return o=>{const[s=o,f=""]=o.split("?"),l=f?`?${f}`:"";s===n.pathname&&l===n.search&&t()}},Xe=({onClose:t,sublink:n})=>{const o=Nn(t),s=e.jsx(rt,{external:n.external,label:n.label}),f=e.jsxs(e.Fragment,{children:[e.jsx(an,{sublink:n}),s]});return n.external?e.jsx("a",{className:Pt,href:n.href,onClick:t,rel:"noopener noreferrer",target:"_blank",children:f}):e.jsx(te,{className:Pt,onClick:()=>o(n.href),to:n.href,children:f})},Tr=({agentsPrefix:t,label:n})=>e.jsx("p",{className:Sr,children:e.jsx(Ue,{agentsPrefix:t,label:n})}),Ir=({item:t,onClose:n})=>{const o=st(t)?e.jsxs(e.Fragment,{children:[t.tiles.map(s=>e.jsx(Xe,{onClose:n,sublink:s},s.label)),t.sideLinks.length>0?e.jsx("div",{"aria-hidden":!0,className:Pr}):null,t.sideLinks.map(s=>e.jsx(Xe,{onClose:n,sublink:s},s.label))]}):t.children.map(s=>e.jsx(Xe,{onClose:n,sublink:s},s.label));return e.jsxs(e.Fragment,{children:[e.jsx(Tr,{agentsPrefix:t.agentsPrefix,label:t.label}),o]})},kr=({agentsPrefix:t,external:n,href:o,icon:s,label:f,linkClassName:l=Rr,onClose:d})=>{const g=Nn(d),m=e.jsxs(e.Fragment,{children:[s?e.jsx(rn,{icon:s}):null,e.jsx(Ue,{agentsPrefix:s?void 0:t,label:f})]});return n?e.jsx("a",{className:l,href:o,onClick:d,rel:"noopener noreferrer",target:"_blank",children:m}):e.jsx(te,{className:l,onClick:()=>g(o),to:o,children:m})},Ar=({isOpen:t,onClose:n})=>(r.useEffect(()=>{if(!t)return;const o=document.body.style.overflow,s=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=o,document.documentElement.style.overflow=s}},[t]),e.jsx(gs,{children:e.jsx(hs,{"aria-label":"Main menu",className:"dark bg-background top-header animate-moveInTop fixed inset-x-0 bottom-0 z-40 overflow-y-auto outline-none motion-reduce:animate-none lg:hidden",..._t,children:e.jsx("nav",{className:h("flex flex-col pt-6 pb-40",Q.headerShell),children:sn.map((o,s)=>e.jsxs("div",{children:[s>
60?e.jsx("div",{"aria-hidden":!0,className:Mr}):null,on(o)?e.jsx(Ir,{item:o,onClose:n}):e.jsx(kr,{agentsPrefix:o.agentsPrefix,external:o.external,href:o.href,icon:o.icon,label:o.label,onClose:n})]},o.label))})})})),Lr=()=>e.jsx(Ws,{}),Or=({email:t})=>{const n=fs();return so("w",()=>{n("/workspaces")},{enabled:!!t,enableOnContentEditable:!1,enableOnFormTags:!1}),t?e.jsx(ho,{content:e.jsxs("span",{className:"flex items-center gap-1.5 leading-snug",children:[e.jsx("span",{className:"text-muted-foreground text-[11px] font-normal",children:"Press"}),e.jsx(ro,{shortcutKey:"W",theme:"dark"}),e.jsx("span",{className:"text-muted-foreground text-[11px] font-normal",children:"to open workspace"})]}),side:"bottom",sideOffset:16,delay:200,title:`Logged in as ${t}`,children:e.jsxs(ee,{childContainsLeadingIcon:!0,nativeButton:!1,render:e.jsx(te,{to:"/workspaces"}),shadow:"elevated",size:"sm",tone:"default",variant:"outline",trailingContent:e.jsx(bs,{"aria-hidden":!0,className:"text-primary size-3.5 shrink-0"}),trailingContentType:"arrow",children:[e.jsx(vs,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),"Workspace"]})}):e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(ee,{nativeButton:!1,render:e.jsx(te,{to:"/login"}),size:"sm",tone:"secondary",variant:"plainLink",children:"Log in"}),e.jsx(ee,{nativeButton:!1,pill:!0,render:e.jsx(te,{to:"/signup"}),size:"sm",tone:"default",variant:"solid",children:"Sign up"})]})},Mt=h("bg-foreground absolute left-0 h-0.5 w-5 rounded-full","origin-center","transition-transform duration-[220ms] ease-[cubic-bezier(0.7,0,0.3,1)]","motion-reduce:transition-none"),Fr=({isOpen:t})=>e.jsx(zs,{nativeButton:!0,render:e.jsx(ee,{"aria-label":t?"Close menu":"Open menu",className:"group/menu ml-3 lg:hidden","data-open":t||void 0,shadow:"none",size:"sm",tone:"default",variant:"transparent",children:e.jsxs("span",{"aria-hidden":!0,className:"relative block size-5",children:[e.jsx("span",{className:h(Mt,"top-[5px]","group-data-[open]/menu:translate-y-1 group-data-[open]/menu:rotate-45")}),e.jsx("span",{className:h(Mt,"top-[13px]","group-data-[open]/menu:-translate-y-1 group-data-[open]/menu:-rotate-45")})]})})}),_r=({email:t,className:n})=>{const o=Qt(),[s,f]=r.useState(!1);r.useEffect(()=>{f(!1)},[o.pathname,o.search]);const l=()=>f(!1);return e.jsxs(xs,{modal:"trap-focus",onOpenChange:f,open:s,children:[e.jsxs("header",{className:h("fixed inset-x-0 top-0 z-50 w-full","bg-background/90 backdrop-blur-sm",Q.headerHeight,n),children:[e.jsx(nn,{className:Q.headerGuideLayer}),e.jsx("div",{"aria-hidden":!0,className:h(Q.splitGuideDash,Q.splitGuideViewportCenter,Q.headerCenterSplitLayer,"hidden lg:block")}),e.jsxs("div",{className:h("relative z-20 flex h-full items-center justify-between lg:grid lg:grid-cols-[1fr_auto_1fr]",Q.headerShell),children:[e.jsx("div",{className:"flex items-center","data-slot":"logo",children:e.jsx(Lr,{})}),e.jsx(Er,{className:"lg:-ml-3","data-slot":"nav"}),e.jsxs("div",{className:"flex items-center justify-end gap-3","data-slot":"actions",children:[e.jsx(Or,{email:t}),e.jsx(Fr,{isOpen:s})]})]}),e.jsx(to,{position:"bottom"})]}),e.jsx("div",{"aria-hidden":!0,className:h(Q.headerHeight,"bg-background relative w-full shrink-0")}),e.jsx(Ar,{isOpen:s,onClose:l})]})},Dr="Screen Recorder for Teams | Supercut",Br="The screen recorder built for teams. Record your screen, share a link the moment you stop talking, and turn recordings into the next step in your workflow.",De="Fast, polished screen recording for business communication. Video shows the work, agents move it forward.",Ga=()=>[{title:Dr},{name:"description",content:Br},{name:"theme-color",content:"#FFFFFF"},{property:"og:title",content:De},{property:"og:description",content:De},{property:"og:image",content:"https://supercut.ai/img/og-image.jpg"},{property:"og:url",content:"https://supercut.ai"},{name:"twitter:site",content:"@supercut_video"},{name:"twitter:image",content:"https://supercut.ai/img/twitter-image.jpg"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:De},{name:"twitter:description",content:De},{name:"google",content:"notranslate"},...wo],qa=ys.PUBLIC_SITE,Hr=js({hideFooter:Ns(!0)}),zr=()=>oo().some(t=>Hr.safeParse(t.handle).success),Ur="html:not([data-fonts-loaded]) .animate-hero-word-in{animation-play-state:running}
6.product-showcase-reveal{opacity:1}";function Ya(){const{email:t}=no(),[n,o]=Tt(),s=zr();return r.useEffect(()=>{t&&n===he.NotSet&&o(he.Accepted)},[t,n,o]),e.jsxs(e.Fragment,{children:[e.jsx(_n,{}),e.jsx("link",{as:"font",crossOrigin:"anonymous",href:"/fonts/inter/InterDisplay-Medium.woff2",rel:"preload",type:"font/woff2"}),e.jsx("noscript",{children:e.jsx("style",{dangerouslySetInnerHTML:{__html:Ur}})}),e.jsx(Bn,{toastManager:Hn,children:e.jsxs(Hs,{children:[e.jsx(_r,{email:t}),n===he.NotSet&&!t&&e.jsx(Bs,{}),e.jsx(ps,{context:{email:t}}),s?null:e.jsx(As,{}),e.jsx(_s,{}),e.jsx(zn,{})]})})]})}export{Ya as P,Br as a,De as b,qa as h,Ga as m,Dr as p};
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.