1import{w as In}from"./with-props-D2TGs3yy.js";import{j as o,h as N,L as Q,r as a,N as yn,C as jn,O as Sn}from"./chunk-K6CSEXPM-C15gbqlR.js";import{L as Oe}from"./logo-t3v6rQ-N.js";import{S as Nn}from"./separator-Hh-z0cMw.js";import{u as ge}from"./use-client-env-CmiAy-aT.js";import{b as Pn}from"./button-sayus5zK.js";import{c as we,u as Me,P as T,b as h,e as ce,d as Dn}from"./index-DHKnJKUE.js";import{u as U,S as Tn,c as Fe}from"./index-CwJzZQFK.js";import{u as Le,a as xe}from"./index-BI0_dQ1Q.js";import{c as ke,u as Ge}from"./index-CnwNXlpq.js";import{D as An}from"./index-DZ1uUTKV.js";import{P as On,h as Fn,u as Ln,R as kn,F as Gn}from"./Combination-B0mUo81N.js";import{c as Ke,R as Kn,A as Un,C as Bn,a as $n}from"./index-ChOWoIFO.js";import{c as re}from"./index-Cki-OUTC.js";import{I as X}from"./icon-DgSc77XG.js";import{B as Vn}from"./copy-DqYFH0q0.js";import{B as Yn}from"./badge-qBfwWdB4.js";import{u as zn}from"./use-scroll-Cytm6K72.js";import{d as Hn}from"./proxy-Bo3PRL_j.js";import"./index-BborlOwK.js";const Xn=()=>{const{APP_NAME:e}=ge();return o.jsx("footer",{className:"container text-md",children:o.jsxs("div",{className:"pt-16",children:[o.jsxs("div",{className:"flex flex-wrap gap-x-24 gap-y-12 pb-12",children:[o.jsxs(De,{title:"Company",children:[o.jsx(z,{to:N("/faqs"),children:"FAQs"}),o.jsx(z,{to:N("/partner"),children:"Partners"}),o.jsx(z,{to:N("/blog"),children:"Blog"})]}),o.jsxs(De,{title:"Legal",children:[o.jsx(z,{to:N("/terms"),children:"Terms of Use"}),o.jsx(z,{to:N("/privacy"),children:"Privacy Policy"})]})]}),o.jsx(Nn,{}),o.jsxs("div",{className:"flex flex-col items-start justify-between gap-4 py-8 sm:flex-row sm:items-center",children:[o.jsx(Q,{to:"/",children:o.jsx(Oe,{className:"w-32"})}),o.jsxs("div",{className:"text-muted-foreground text-sm",children:["© ",new Date().getFullYear()," ",e,". All rights reserved. Made in Chicago ð©µ"]})]})]})})},De=({title:e,children:t})=>o.jsxs("div",{className:"space-y-2",children:[o.jsx("div",{className:"font-medium",children:e}),o.jsx("ul",{className:"flex flex-col gap-2",children:t})]}),z=({to:e,children:t})=>o.jsx(Q,{to:e,className:"text-muted-foreground underline-offset-4 hover:underline",prefetch:"intent",children:t});function Wn(e,t,n){a.useInsertionEffect(()=>e.on(t,n),[e,t,n])}var me="rovingFocusGroup.onEntryFocus",qn={bubbles:!1,cancelable:!0},ie="RovingFocusGroup",[ve,Ue,Qn]=ke(ie),[Zn,Be]=we(ie,[Qn]),[Jn,et]=Zn(ie),$e=a.forwardRef((e,t)=>o.jsx(ve.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(ve.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(nt,{...e,ref:t})})}));$e.displayName=ie;var nt=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:l,onEntryFocus:x,preventScrollOnEntryFocus:p=!1,...i}=e,m=a.useRef(null),g=U(t,m),v=Ge(c),[w=null,I]=Le({prop:u,defaultProp:d,onChange:l}),[M,b]=a.useState(!1),P=Me(x),ee=Ue(n),B=a.useRef(!1),[ne,A]=a.useState(0);return a.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(me,P),()=>C.removeEventListener(me,P)},[P]),o.jsx(Jn,{scope:n,orientation:r,dir:v,loop:s,currentTabStopId:w,onItemFocus:a.useCallback(C=>I(C),[I]),onItemShiftTab:a.useCallback(()=>b(!0),[]),onFocusableItemAdd:a.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:a.useCallback(()=>A(C=>C-1),[]),children:o.jsx(T.div,{tabIndex:M||ne===0?-1:0,"data-orientation":r,...i,ref:g,style:{outline:"none",...e.style},onMouseDown:h(e.onMouseDown,()=>{B.current=!0}),onFocus:h(e.onFocus,C=>{const k=!B.current;if(C.target===C.currentTarget&&k&&!M){const O=new CustomEvent(me,qn);if(C.currentTarget.dispatchEvent(O),!O.defaultPrevented){const $=ee().filter(j=>j.focusable),V=$.find(j=>j.active),te=$.find(j=>j.id===w),le=[V,te,...$].filter(Boolean).map(j=>j.ref.current);ze(le,p)}}B.current=!1}),onBlur:h(e.onBlur,()=>b(!1))})})}),Ve="RovingFocusGroupItem",Ye=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:c,...u}=e,d=xe(),l=c||d,x=et(Ve,n),p=x.currentTabStopId===l,i=Ue(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=x;return a.useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),o.jsx(ve.ItemSlot,{scope:n,id:l,focusable:r,active:s,children:o.jsx(T.span,{tabIndex:p?0:-1,"data-orientation":x.orientation,...u,ref:t,onMouseDown:h(e.onMouseDown,v=>{r?x.onItemFocus(l):v.preventDefault()}),onFocus:h(e.onFocus,()=>x.onItemFocus(l)),onKeyDown:h(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){x.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=rt(v,x.orientation,x.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let M=i().filter(b=>b.focusable).map(b=>b.ref.current);if(w==="last")M.reverse();else if(w==="prev"||w==="next"){w==="prev"&&M.reverse();const b=M.indexOf(v.currentTarget);M=x.loop?st(M,b+1):M.slice(b+1)}setTimeout(()=>ze(M))}})})})});Ye.displayName=Ve;var tt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ot(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rt(e,t,n){const r=ot(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tt[r]}
1function ze(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function st(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var at=$e,ct=Ye,he=["Enter"," "],it=["ArrowDown","PageUp","Home"],He=["ArrowUp","PageDown","End"],ut=[...it,...He],dt={ltr:[...he,"ArrowRight"],rtl:[...he,"ArrowLeft"]},lt={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Z="Menu",[W,ft,pt]=ke(Z),[F,Xe]=we(Z,[pt,Ke,Be]),ue=Ke(),We=Be(),[mt,L]=F(Z),[xt,J]=F(Z),qe=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:s,onOpenChange:c,modal:u=!0}=e,d=ue(t),[l,x]=a.useState(null),p=a.useRef(!1),i=Me(c),m=Ge(s);return a.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.jsx(Kn,{...d,children:o.jsx(mt,{scope:t,open:n,onOpenChange:i,content:l,onContentChange:x,children:o.jsx(xt,{scope:t,onClose:a.useCallback(()=>i(!1),[i]),isUsingKeyboardRef:p,dir:m,modal:u,children:r})})})};qe.displayName=Z;var vt="MenuAnchor",Ce=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=ue(n);return o.jsx(Un,{...s,...r,ref:t})});Ce.displayName=vt;var _e="MenuPortal",[ht,Qe]=F(_e,{forceMount:void 0}),Ze=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:s}=e,c=L(_e,t);return o.jsx(ht,{scope:t,forceMount:n,children:o.jsx(ce,{present:n||c.open,children:o.jsx(On,{asChild:!0,container:s,children:r})})})};Ze.displayName=_e;var E="MenuContent",[gt,be]=F(E),Je=a.forwardRef((e,t)=>{const n=Qe(E,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,c=L(E,e.__scopeMenu),u=J(E,e.__scopeMenu);return o.jsx(W.Provider,{scope:e.__scopeMenu,children:o.jsx(ce,{present:r||c.open,children:o.jsx(W.Slot,{scope:e.__scopeMenu,children:u.modal?o.jsx(wt,{...s,ref:t}):o.jsx(Mt,{...s,ref:t})})})})}),wt=a.forwardRef((e,t)=>{const n=L(E,e.__scopeMenu),r=a.useRef(null),s=U(t,r);return a.useEffect(()=>{const c=r.current;if(c)return Fn(c)},[]),o.jsx(Re,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:h(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Mt=a.forwardRef((e,t)=>{const n=L(E,e.__scopeMenu);return o.jsx(Re,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Re=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:l,onEscapeKeyDown:x,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...w}=e,I=L(E,n),M=J(E,n),b=ue(n),P=We(n),ee=ft(n),[B,ne]=a.useState(null),A=a.useRef(null),C=U(t,A,I.onContentChange),k=a.useRef(0),O=a.useRef(""),$=a.useRef(0),V=a.useRef(null),te=a.useRef("right"),oe=a.useRef(0),le=v?kn:a.Fragment,j=v?{as:Tn,allowPinchZoom:!0}:void 0,En=f=>{var K,Ne;const R=O.current+f,y=ee().filter(S=>!S.disabled),D=document.activeElement,fe=(K=y.find(S=>S.ref.current===D))==null?void 0:K.textValue,pe=y.map(S=>S.textValue),Se=Dt(pe,R,fe),Y=(Ne=y.find(S=>S.textValue===Se))==null?void 0:Ne.ref.current;(function S(Pe){O.current=Pe,window.clearTimeout(k.current),Pe!==""&&(k.current=window.setTimeout(()=>S(""),1e3))})(R),Y&&setTimeout(()=>Y.focus())};a.useEffect(()=>()=>window.clearTimeout(k.current),[]),Ln();const G=a.useCallback(f=>{var y,D;return te.current===((y=V.current)==null?void 0:y.side)&&At(f,(D=V.current)==null?void 0:D.area)},[]);return o.jsx(gt,{scope:n,searchRef:O,onItemEnter:a.useCallback(f=>{G(f)&&f.preventDefault()},[G]),onItemLeave:a.useCallback(f=>{var R;G(f)||((R=A.current)==null||R.focus(),ne(null))},[G]),onTriggerLeave:a.useCallback(f=>{G(f)&&f.preventDefault()},[G]),pointerGraceTimerRef:$,onPointerGraceIntentChange:a.useCallback(f=>{V.current=f},[]),children:o.jsx(le,{...j,children:o.jsx(Gn,{asChild:!0,trapped:s,onMountAutoFocus:h(c,f=>{var R;f.preventDefault(),(R=A.current)==null||R.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:o.jsx(An,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:x,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:m,onDismiss:g,children:o.jsx(at,{asChild:!0,...P,dir:M.dir,orientation:"vertical",loop:r,currentTabStopId:B,onCurrentTabStopIdChange:ne,onEntryFocus:h(l,f=>{M.isUsingKeyboardRef.current||f.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(Bn,{role:"menu","aria-orientation":"vertical","data-state":vn(I.open),"data-radix-menu-content":"",dir:M.dir,...b,...w,ref:C,style:{outline:"none",...w.style},onKeyDown:h(w.onKeyDown,f=>{const y=f.target.closest("[data-radix-menu-content]")===f.currentTarget,D=f.ctrlKey||f.altKey||f.metaKey,fe=f.key.length===1;y&&(f.key==="Tab"&&f.preventDefault(),!D&&fe&&En(f.key));const pe=A.current;if(f.target!==pe||!ut.includes(f.key))return;f.preventDefault();const Y=ee().filter(K=>!K.disabled).map(K=>K.ref.current);He.includes(f.key)&&Y.reverse(),Nt(Y)}),onBlur:h(e.onBlur,f=>{f.currentTarget.contains(f.target)||(window.clearTimeout(k.current),O.current="")}),onPointerMove:h(e.onPointerMove,q(f=>{const R=f.target,y=oe.current!==f.clientX;if(f.currentTarget.contains(R)&&y){const D=f.clientX>oe.current?"right":"left";te.current=D,oe.current=f.clientX}}))})})})})})})});Je.displayName=E;var Ct="MenuGroup",Ee=a.forwardRef((e,t)=>
1{const{__scopeMenu:n,...r}=e;return o.jsx(T.div,{role:"group",...r,ref:t})});Ee.displayName=Ct;var _t="MenuLabel",en=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.jsx(T.div,{...r,ref:t})});en.displayName=_t;var se="MenuItem",Te="menu.itemSelect",de=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...s}=e,c=a.useRef(null),u=J(se,e.__scopeMenu),d=be(se,e.__scopeMenu),l=U(t,c),x=a.useRef(!1),p=()=>{const i=c.current;if(!n&&i){const m=new CustomEvent(Te,{bubbles:!0,cancelable:!0});i.addEventListener(Te,g=>r==null?void 0:r(g),{once:!0}),Dn(i,m),m.defaultPrevented?x.current=!1:u.onClose()}};return o.jsx(nn,{...s,ref:l,disabled:n,onClick:h(e.onClick,p),onPointerDown:i=>{var m;(m=e.onPointerDown)==null||m.call(e,i),x.current=!0},onPointerUp:h(e.onPointerUp,i=>{var m;x.current||(m=i.currentTarget)==null||m.click()}),onKeyDown:h(e.onKeyDown,i=>{const m=d.searchRef.current!=="";n||m&&i.key===" "||he.includes(i.key)&&(i.currentTarget.click(),i.preventDefault())})})});de.displayName=se;var nn=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:s,...c}=e,u=be(se,n),d=We(n),l=a.useRef(null),x=U(t,l),[p,i]=a.useState(!1),[m,g]=a.useState("");return a.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[c.children]),o.jsx(W.ItemSlot,{scope:n,disabled:r,textValue:s??m,children:o.jsx(ct,{asChild:!0,...d,focusable:!r,children:o.jsx(T.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...c,ref:x,onPointerMove:h(e.onPointerMove,q(v=>{r?u.onItemLeave(v):(u.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:h(e.onPointerLeave,q(v=>u.onItemLeave(v))),onFocus:h(e.onFocus,()=>i(!0)),onBlur:h(e.onBlur,()=>i(!1))})})})}),bt="MenuCheckboxItem",tn=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...s}=e;return o.jsx(cn,{scope:e.__scopeMenu,checked:n,children:o.jsx(de,{role:"menuitemcheckbox","aria-checked":ae(n)?"mixed":n,...s,ref:t,"data-state":ye(n),onSelect:h(s.onSelect,()=>r==null?void 0:r(ae(n)?!0:!n),{checkForDefaultPrevented:!1})})})});tn.displayName=bt;var on="MenuRadioGroup",[Rt,Et]=F(on,{value:void 0,onValueChange:()=>{}}),rn=a.forwardRef((e,t)=>{const{value:n,onValueChange:r,...s}=e,c=Me(r);return o.jsx(Rt,{scope:e.__scopeMenu,value:n,onValueChange:c,children:o.jsx(Ee,{...s,ref:t})})});rn.displayName=on;var sn="MenuRadioItem",an=a.forwardRef((e,t)=>{const{value:n,...r}=e,s=Et(sn,e.__scopeMenu),c=n===s.value;return o.jsx(cn,{scope:e.__scopeMenu,checked:c,children:o.jsx(de,{role:"menuitemradio","aria-checked":c,...r,ref:t,"data-state":ye(c),onSelect:h(r.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,n)},{checkForDefaultPrevented:!1})})})});an.displayName=sn;var Ie="MenuItemIndicator",[cn,It]=F(Ie,{checked:!1}),un=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...s}=e,c=It(Ie,n);return o.jsx(ce,{present:r||ae(c.checked)||c.checked===!0,children:o.jsx(T.span,{...s,ref:t,"data-state":ye(c.checked)})})});un.displayName=Ie;var yt="MenuSeparator",dn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return o.jsx(T.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});dn.displayName=yt;var jt="MenuArrow",ln=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=ue(n);return o.jsx($n,{...s,...r,ref:t})});ln.displayName=jt;var St="MenuSub",[nr,fn]=F(St),H="MenuSubTrigger",pn=a.forwardRef((e,t)=>{const n=L(H,e.__scopeMenu),r=J(H,e.__scopeMenu),s=fn(H,e.__scopeMenu),c=be(H,e.__scopeMenu),u=a.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=c,x={__scopeMenu:e.__scopeMenu},p=a.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return a.useEffect(()=>p,[p]),a.useEffect(()=>{const i=d.current;return()=>{window.clearTimeout(i),l(null)}},[d,l]),o.jsx(Ce,{asChild:!0,...x,children:o.jsx(nn,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":vn(n.open),...e,ref:Fe(t,s.onTriggerChange),onClick:i=>{var m;(m=e.onClick)==null||m.call(e,i),!(e.disabled||i.defaultPrevented)&&(i.currentTarget.focu
1s(),n.open||n.onOpenChange(!0))},onPointerMove:h(e.onPointerMove,q(i=>{c.onItemEnter(i),!i.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:h(e.onPointerLeave,q(i=>{var g,v;p();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const w=(v=n.content)==null?void 0:v.dataset.side,I=w==="right",M=I?-5:5,b=m[I?"left":"right"],P=m[I?"right":"left"];c.onPointerGraceIntentChange({area:[{x:i.clientX+M,y:i.clientY},{x:b,y:m.top},{x:P,y:m.top},{x:P,y:m.bottom},{x:b,y:m.bottom}],side:w}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(i),i.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:h(e.onKeyDown,i=>{var g;const m=c.searchRef.current!=="";e.disabled||m&&i.key===" "||dt[r.dir].includes(i.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),i.preventDefault())})})})});pn.displayName=H;var mn="MenuSubContent",xn=a.forwardRef((e,t)=>{const n=Qe(E,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,c=L(E,e.__scopeMenu),u=J(E,e.__scopeMenu),d=fn(mn,e.__scopeMenu),l=a.useRef(null),x=U(t,l);return o.jsx(W.Provider,{scope:e.__scopeMenu,children:o.jsx(ce,{present:r||c.open,children:o.jsx(W.Slot,{scope:e.__scopeMenu,children:o.jsx(Re,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:x,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var i;u.isUsingKeyboardRef.current&&((i=l.current)==null||i.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:h(e.onFocusOutside,p=>{p.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:h(e.onEscapeKeyDown,p=>{u.onClose(),p.preventDefault()}),onKeyDown:h(e.onKeyDown,p=>{var g;const i=p.currentTarget.contains(p.target),m=lt[u.dir].includes(p.key);i&&m&&(c.onOpenChange(!1),(g=d.trigger)==null||g.focus(),p.preventDefault())})})})})})});xn.displayName=mn;function vn(e){return e?"open":"closed"}function ae(e){return e==="indeterminate"}function ye(e){return ae(e)?"indeterminate":e?"checked":"unchecked"}function Nt(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Pt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Dt(e,t,n){const s=t.length>1&&Array.from(t).every(x=>x===t[0])?t[0]:t,c=n?e.indexOf(n):-1;let u=Pt(e,Math.max(c,0));s.length===1&&(u=u.filter(x=>x!==n));const l=u.find(x=>x.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function Tt(e,t){const{x:n,y:r}=e;let s=!1;for(let c=0,u=t.length-1;c<t.length;u=c++){const d=t[c].x,l=t[c].y,x=t[u].x,p=t[u].y;l>r!=p>r&&n<(x-d)*(r-l)/(p-l)+d&&(s=!s)}return s}function At(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Tt(n,t)}function q(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ot=qe,Ft=Ce,Lt=Ze,kt=Je,Gt=Ee,Kt=en,Ut=de,Bt=tn,$t=rn,Vt=an,Yt=un,zt=dn,Ht=ln,Xt=pn,Wt=xn,je="DropdownMenu",[qt,tr]=we(je,[Xe]),_=Xe(),[Qt,hn]=qt(je),gn=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:s,defaultOpen:c,onOpenChange:u,modal:d=!0}=e,l=_(t),x=a.useRef(null),[p=!1,i]=Le({prop:s,defaultProp:c,onChange:u});return o.jsx(Qt,{scope:t,triggerId:xe(),triggerRef:x,contentId:xe(),open:p,onOpenChange:i,onOpenToggle:a.useCallback(()=>i(m=>!m),[i]),modal:d,children:o.jsx(Ot,{...l,open:p,onOpenChange:i,dir:r,modal:d,children:n})})};gn.displayName=je;var wn="DropdownMenuTrigger",Mn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,c=hn(wn,n),u=_(n);return o.jsx(Ft,{asChild:!0,...u,children:o.jsx(T.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:Fe(t,c.triggerRef),onPointerDown:h(e.onPointerDown,d=>{!r&&d.button===0&&d.ctrlKey===!1&&(c.onOpenToggle(),c.open||d.preventDefault())}),onKeyDown:h(e.onKeyDown,d=>{r||(["Enter"," "].includes(d.key)&&c.onOpenToggle(),d.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});Mn.displayName=wn;var Zt="DropdownMenuPortal",Cn=e=>{const{__scopeDropdownMenu:t,...n}=e,r=_(t);return o.jsx(Lt,{...r,...n})};Cn.displayName=Zt;var _n="DropdownMenuContent",bn=a.forwardRef((e,t)=>
1{const{__scopeDropdownMenu:n,...r}=e,s=hn(_n,n),c=_(n),u=a.useRef(!1);return o.jsx(kt,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...r,ref:t,onCloseAutoFocus:h(e.onCloseAutoFocus,d=>{var l;u.current||(l=s.triggerRef.current)==null||l.focus(),u.current=!1,d.preventDefault()}),onInteractOutside:h(e.onInteractOutside,d=>{const l=d.detail.originalEvent,x=l.button===0&&l.ctrlKey===!0,p=l.button===2||x;(!s.modal||p)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});bn.displayName=_n;var Jt="DropdownMenuGroup",eo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Gt,{...s,...r,ref:t})});eo.displayName=Jt;var no="DropdownMenuLabel",to=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Kt,{...s,...r,ref:t})});to.displayName=no;var oo="DropdownMenuItem",ro=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Ut,{...s,...r,ref:t})});ro.displayName=oo;var so="DropdownMenuCheckboxItem",ao=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Bt,{...s,...r,ref:t})});ao.displayName=so;var co="DropdownMenuRadioGroup",io=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx($t,{...s,...r,ref:t})});io.displayName=co;var uo="DropdownMenuRadioItem",lo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Vt,{...s,...r,ref:t})});lo.displayName=uo;var fo="DropdownMenuItemIndicator",po=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Yt,{...s,...r,ref:t})});po.displayName=fo;var mo="DropdownMenuSeparator",xo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(zt,{...s,...r,ref:t})});xo.displayName=mo;var vo="DropdownMenuArrow",ho=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Ht,{...s,...r,ref:t})});ho.displayName=vo;var go="DropdownMenuSubTrigger",wo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Xt,{...s,...r,ref:t})});wo.displayName=go;var Mo="DropdownMenuSubContent",Co=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=_(n);return o.jsx(Wt,{...s,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Co.displayName=Mo;var _o=gn,bo=Mn,Ro=Cn,Eo=bn;const Io=_o,yo=bo,jo=({className:e,sideOffset:t=4,...n})=>o.jsx(Ro,{children:o.jsx(Eo,{sideOffset:t,className:re("z-50 min-w-48 overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out data-[state=open]:animate-zoom-in-90 data-[state=closed]:animate-zoom-out-90 font-medium",e),...n})}),So=e=>{const t=a.useRef(null),n=a.useCallback(e,[]);return a.useEffect(()=>{const r=c=>{var u;!t.current||(u=t.current)!=null&&u.contains(c.target)||n(c)},s=c=>{c.key==="Escape"&&n(c)};return document.addEventListener("mousedown",r,!0),document.addEventListener("touchstart",r,!0),document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("mousedown",r,!0),document.removeEventListener("touchstart",r,!0),document.removeEventListener("keydown",s,!0)}},[n]),t},Rn=({link:e,expandable:t=!1,isActive:n,className:r,...s})=>o.jsxs("div",{className:re("flex items-center justify-between gap-2 rounded-md px-3 py-4 md:py-2 text-primary transition-colors duration-200 hover:bg-secondary text-md md:text-sm",n&&"bg-secondary",r),...s,children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[e.icon?o.jsx(X,{name:e.icon,className:"size-3.5"}):null,o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsxs("span",{className:"font-medium leading-none",children:[e.label," "]}),e.tag?o.jsx(Yn,{variant:"success",size:"sm",children:e.tag}):null]})]}),t?o.jsx(X,{name:"chevron-down"}):null]}),Ae=({link:e,...t})=>o.jsx(yn,{...t,to:e.to,prefetch:"intent",children:({isActive:n})=>o.jsx(Rn,{link:e,isActive:n})}),No=({link:e})=>o.jsxs(Q,{to:e.to,prefetch:"intent",className:"flex items-start gap-4 px-4 py-3 text-md transition-colors duration-200 hover:bg-primary/5",children:[e.icon?o.jsx(X,{name:e.icon,size:"xl"}):null,o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("span",{className:"font-medium leading-none",children:e.label}),o.jsx("span",{className:"text-muted-foreground",children:e.description})]})]}),Po=()=>{const{WEB_APP_URL:e}=ge(),t=a.useMemo(()=>[{label:"Story",to:N("/about"),icon:"book",type:"page"},{label:"Partners",to:N("/partner"),icon:"heart-handshake",type:"page"},{label:"Pricing",to:N("/pricing"),icon:"tag",type:"page"},{label:"Sign in",to:e,type:"action"}],[e]),n=t.filter(s=>s.type==="page"),r=t.filter(s=>s.type==="action");return{pageLinks:n,actionLinks:r}},Do=()=>{const{WEB_APP_URL:e}=ge(),{pageLinks:t,actionLinks:n}=Po(),[r,s]=a.useState(!1),c=So(()=>s(!1)),u=jn();return a.useEffect(()=>{s(!1)},[u.pathname]),o.jsxs(o.Fragment,{children:[r?null:o.jsx("button",{type:"button",className:"md:hidden",onClick:()=>s(!0),children:o.jsx(X,{name:"menu",size:"lg"})}),o.jsx("nav",{className:re("absolute right-0 top-0 h-svh w-60 p-4 bg-background border-l border-border md:static md:h-auto md:top-auto md:right-auto md:w-full md:bg-transparent md:p-0 md:border-l-0 z-10 md:z-auto transition-transform duration-300 ease-in-out",r?"translate-x-0":"translate-x-60 md:translate-x-0"),ref:c,children:o.jsxs("ul",{className:"flex flex-col md:flex-row md:items-center gap-y-8 md:gap-y-0 md:justify-between md:gap-x-8",children:[o.jsx("div",{className:"flex flex-col md:flex-row md:items-center gap-2",children:t.map(d=>o.jsx("li",{className:"shrink-0",children:d.children?o.jsxs(Io,{children:[o.jsx(yo,{children:o.jsx(Rn,{link:d,expandable:!0})}),o.jsx(jo,{align:"start",className:"p-0",children:d.children.map(l
1=>o.jsx(No,{link:l},l.to))})]}):o.jsx(Ae,{link:d})},d.to))}),o.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4",children:[n.map(d=>o.jsx("li",{className:"shrink-0",children:o.jsx(Ae,{link:d})},d.to)),o.jsx("li",{className:"w-full",children:o.jsxs(Q,{to:e,className:re(Pn(),"h-9 px-4 flex-row-reverse gap-1 w-full md:w-auto"),children:[o.jsx(X,{name:"arrow-right"}),Vn.PRIMARY_CTA]})})]})]})})]})},To=100,Ao=()=>{const{scrollY:e}=zn(),[t,n]=a.useState(!1);return Wn(e,"change",r=>{n(r>To)}),o.jsx(Hn.header,{variants:{initial:{boxShadow:"none",backgroundColor:"transparent"},scrolled:{boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",backgroundColor:"var(--background)"}},animate:t?"scrolled":"initial",transition:{duration:1},className:"fixed top-0 right-0 left-0 z-10 backdrop-blur-md",children:o.jsx("div",{className:"container flex w-full items-center justify-center text-md h-14",children:o.jsxs("div",{className:"flex w-full items-center justify-between gap-16",children:[o.jsx(Q,{to:N("/"),children:o.jsx(Oe,{className:"w-32"})}),o.jsx(Do,{})]})})})},or=In(function(){return o.jsxs("div",{className:"flex h-full min-h-svh flex-col justify-between",children:[o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx(Ao,{}),o.jsx("main",{className:"w-full",children:o.jsx(Sn,{})})]}),o.jsx(Xn,{})]})});export{or as default};
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.