1import{i as e,t}from"./react-BHnxGwFE.js";import{n,t as r}from"./link-DdeVNgZt.js";import{i,t as a}from"./useQuery-BXr4MM90.js";import{t as o}from"./jsx-runtime-Be3IG5NX.js";import{n as s,r as c,t as l}from"./wallet-panel-CLRSeBGx.js";import{t as u}from"./useNavigate-mKKWmVm5.js";import{t as d}from"./useRouteContext-Q-pQ5r8m.js";import{t as f}from"./useRouterState-BNiUKAwN.js";import{c as p,i as m,n as h,o as g,r as _,t as v}from"./button-BQNSfn0a.js";import{t as y}from"./dist-BuHeodtz.js";import{t as b}from"./dist-C8wuoIny.js";import{c as ee,d as x,f as S,i as te,l as ne,m as re,o as ie,s as ae,u as oe}from"./es2015-B4ljhvUJ.js";import{_ as se,d as ce,f as le,g as ue,h as de,i as fe,m as pe,p as me,r as he,s as ge,t as _e,u as C,v as ve}from"./dialog-CMIaxWGP.js";import{a as ye,i as be,n as xe,r as Se,t as Ce}from"./dist-BHLO8F-y.js";import"./form-39cXR7ew.js";import{i as we,n as Te,r as Ee,t as De}from"./popover-DVw11Fea.js";import{t as w}from"./cn-lMC04Nfr.js";import{_ as Oe,p as ke}from"./schemas-B_Vk_BeK.js";import{_ as T,b as Ae,g as je,p as Me,u as Ne}from"./config-BptVNYi3.js";import{i as E}from"./context-Dh-jCAfG.js";import{t as D}from"./analytics-events-D1G3pj6-.js";import{p as O}from"./analytics-CbvcZ7kA.js";import{n as Pe}from"./use-state-deadline-BKb4Xt93.js";import{i as Fe}from"./seo-CcUtcEnd.js";import{a as Ie}from"./character-editions-CHpnGk1f.js";import{t as Le}from"./BookmarkSimple.es-BnoGSMEy.js";import{t as Re}from"./Bug.es-CTYyu4hn.js";import{t as ze}from"./CaretDown.es-CGoIVye5.js";import{t as Be}from"./CaretRight.es-BIGGpaOf.js";import{E as Ve,c as He,i as Ue,s as We}from"./auth-gate-8A9F_S8i.js";import{n as Ge,t as Ke}from"./List.es-BsJGXSV2.js";import{n as qe,r as Je}from"./scene-list-TiwHCNSD.js";import{t as Ye}from"./Gift.es-lECVjpNq.js";import{t as Xe}from"./PenNib.es-DlobJHDh.js";import{n as Ze}from"./Phone.es-5NL6z-Of.js";import{i as Qe,o as $e,t as et}from"./postcard-D65k_NRv.js";import{t as tt}from"./Sparkle.es-6uDGN9gW.js";import{t as nt}from"./UsersThree.es-BR5S0wL4.js";import{t as rt}from"./VideoCamera.es-ockSPpYW.js";import{t as k}from"./IconBase.es-P1gSWlyl.js";import{t as it}from"./void-handler-Bo6_Q-3F.js";import{n as at,t as ot}from"./logo-BLZXJe2S.js";import{n as st,t as ct}from"./persisted-json-BPpKecXM.js";import{o as lt}from"./api-error-DVd6WVYs.js";import{s as A,t as ut}from"./client-CIlm-q7L.js";import{f as dt,v as ft}from"./catalog-T0j3YSnu.js";import"./user-name-CHJw74pt.js";import{Ft as pt,t as mt,u as ht}from"./auth-analytics-CWecwyHF.js";import{c as gt}from"./call-event-BYp5wKCF.js";import{t as _t}from"./blur-image-t4i2PcBo.js";import{a as vt,i as yt}from"./onboarding-Dt7khSgt.js";import{i as bt}from"./consent-banner-BCMYn1C4.js";import{t as xt}from"./use-mobile-CNkhydVW.js";import{t as j}from"./skeleton-CaxsfRVO.js";import{t as St}from"./icon-button-0dAAcu3L.js";import{n as Ct,r as wt}from"./recent-chats-BuyiL5di.js";import{r as Tt}from"./first-ring-BZgvDUgc.js";import{n as Et}from"./reply-markup-FknhCQxo.js";import{a as Dt}from"./scene-CfRGydFf.js";import{a as Ot,n as kt,r as At}from"./scene-event-BHM89NjM.js";import{t as jt}from"./initials-C58N6IRm.js";import{i as Mt,n as Nt}from"./morph-gy4N85uU.js";import{n as Pt,t as Ft}from"./app-handoff-bar-BEsYZCT6.js";import{t as It}from"./credit-icon-CHjFnlf-.js";import{a as Lt}from"./gated-fetch-CU57K1TD.js";import{r as M,t as Rt}from"./notifications-CiHXsTvz.js";import{t as zt}from"./character-streams-CZk2Zu4U.js";import{t as Bt}from"./viewer-DaJwC63Y.js";import{a as Vt,c as Ht,i as Ut,n as Wt,t as Gt}from"./faults-BuU-qP8F.js";var N=e(t(),1),Kt=!1;function qt(){let[e,t]=N.useState(Kt);return N.useEffect(()=>{Kt||(Kt=!0,t(!0))},[]),e}var Jt=N.useSyncExternalStore;function Yt(){return()=>{}}function Xt(){return Jt(Yt,()=>!0,()=>!1)}var Zt=typeof Jt==`function`?Xt:qt,P=o(),Qt=`Avatar`,[$t,en]=re(Qt),[tn,nn]=$t(Qt),rn=N.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=N.useState(`idle`);return(0,P.jsx)(tn,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,P.jsx)(y.span,{...r,ref:t})})});rn.displayName=Qt;var an=`AvatarImage`,on=N.forwardRef((e,t)=>
1{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=nn(an,n),s=un(r,a),c=ae(e=>{i(e),o.onImageLoadingStatusChange(e)});return x(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,P.jsx)(y.img,{...a,ref:t,src:r}):null});on.displayName=an;var sn=`AvatarFallback`,cn=N.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=nn(sn,n),[o,s]=N.useState(r===void 0);return N.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,P.jsx)(y.span,{...i,ref:t}):null});cn.displayName=sn;function ln(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function un(e,{referrerPolicy:t,crossOrigin:n}){let r=Zt(),i=N.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=N.useState(()=>ln(a,e));return x(()=>{s(ln(a,e))},[a,e]),x(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var dn=rn,fn=on,pn=cn,mn=`Separator`,hn=`horizontal`,gn=[`horizontal`,`vertical`],_n=N.forwardRef((e,t)=>{let{decorative:n,orientation:r=hn,...i}=e,a=vn(r)?r:hn,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,P.jsx)(y.div,{"data-orientation":a,...o,...i,ref:t})});_n.displayName=mn;function vn(e){return gn.includes(e)}var yn=_n,[F,bn]=re(`Tooltip`,[ye]),I=ye(),xn=`TooltipProvider`,Sn=700,L=`tooltip.open`,[Cn,R]=F(xn),wn=e=>{let{__scopeTooltip:t,delayDuration:n=Sn,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=N.useRef(!0),s=N.useRef(!1),c=N.useRef(0);return N.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,P.jsx)(Cn,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:N.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:N.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:N.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};wn.displayName=xn;var z=`Tooltip`,[Tn,B]=F(z),En=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=R(z,e.__scopeTooltip),l=I(t),[u,d]=N.useState(null),f=ee(),p=N.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=N.useRef(!1),[_,v]=oe({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(L))):c.onClose(),a?.(e)},caller:z}),y=N.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=N.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=N.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=N.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return N.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,P.jsx)(be,{...l,children:(0,P.jsx)(Tn,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:N.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:N.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};En.displayName=z;var Dn=`TooltipTrigger`,On=N.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=B(Dn,n),a=R(Dn,n),o=I(n),s=p(t,N.useRef(null),i.onTriggerChange),c=N.useRef(!1),l=N.useRef(!1),u=N.useCallback(()=>c.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,P.jsx)(Ce,{asChild:!0,...o,children:(0,P.jsx)(y.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:S(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:S(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:S(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:S(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:S(e.onBlur,i.onClose),onClick:S(e.onClick,i.onClose)})})});On.displayName=Dn;var kn=`TooltipPortal`,[An,jn]=F(kn,{forceMount:void 0}),Mn=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=B(kn,t);return(0,P.jsx)(An,{scope:t,forceMount:n,children:(0,P.jsx)(ne,{present:n||a.open,children:(0,P.jsx)(te,{asChild:!0,container:i,children:r})})})};Mn.displayName=kn;var V=`TooltipContent`,Nn=N.forwardRef((e,t)=>
vendor: 6,409 bytes, line 1
1{let n=jn(V,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=B(V,e.__scopeTooltip);return(0,P.jsx)(ne,{present:r||o.open,children:o.disableHoverableContent?(0,P.jsx)(Rn,{side:i,...a,ref:t}):(0,P.jsx)(Pn,{side:i,...a,ref:t})})}),Pn=N.forwardRef((e,t)=>{let n=B(V,e.__scopeTooltip),r=R(V,e.__scopeTooltip),i=N.useRef(null),a=p(t,i),[o,s]=N.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=N.useCallback(()=>{s(null),d(!1)},[d]),m=N.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Hn(r,Vn(r,n.getBoundingClientRect())),a=Un(t.getBoundingClientRect());s(Gn([...i,...a])),d(!0)},[d]);return N.useEffect(()=>()=>f(),[f]),N.useEffect(()=>{if(c&&u){let e=e=>m(e,u),t=e=>m(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,m,f]),N.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Wn(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,P.jsx)(Rn,{...e,ref:a})}),[Fn,In]=F(z,{isInside:!1}),Ln=g(`TooltipContent`),Rn=N.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=B(V,n),l=I(n),{onClose:u}=c;return N.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),N.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,P.jsx)(ie,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,P.jsxs)(Se,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,P.jsx)(Ln,{children:r}),(0,P.jsx)(Fn,{scope:n,isInside:!0,children:(0,P.jsx)(b,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Nn.displayName=V;var zn=`TooltipArrow`,Bn=N.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=I(n);return In(zn,n).isInside?null:(0,P.jsx)(xe,{...i,...r,ref:t})});Bn.displayName=zn;function Vn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Hn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Un(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Wn(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Gn(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Kn(t)}function Kn(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qn=wn,Jn=En,Yn=On,Xn=Mn,Zn=Nn,Qn=Bn,$n=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13
1-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z`}))]]),er=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212ZM163.27,77l-56,24a12,12,0,0,0-6.3,6.3l-24,56A12,12,0,0,0,92.73,179l56-24a12,12,0,0,0,6.3-6.3l24-56A12,12,0,0,0,163.27,77Zm-28.41,57.89-24,10.29,10.29-24,24-10.29Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm16,112L80,176l32-64,64-32Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm51.58,57.79-32,64a4.08,4.08,0,0,1-1.79,1.79l-64,32a4,4,0,0,1-5.37-5.37l32-64a4.08,4.08,0,0,1,1.79-1.79l64-32A4,4,0,0,1,179.58,81.79Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM173.32,74.63l-64,32a6,6,0,0,0-2.69,2.69l-32,64A6,6,0,0,0,80,182a6.06,6.06,0,0,0,2.68-.63l64-32a6,6,0,0,0,2.69-2.69l32-64a6,6,0,0,0-8.05-8.05Zm-33.79,64.9L93.42,162.58l23-46.11,46.11-23Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM174.21,76.42l-64,32a4.08,4.08,0,0,0-1.79,1.79l-32,64A4,4,0,0,0,80,180a4.05,4.05,0,0,0,1.79-.42l64-32a4.08,4.08,0,0,0,1.79-1.79l32-64a4,4,0,0,0-5.37-5.37ZM141,141l-52.08,26L115,115l52.08-26Z`}))]]),tr=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32
1-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z`}))]]),nr=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M184.63,23.14a12,12,0,0,1,15-8A72.34,72.34,0,0,1,228.4,32a12,12,0,0,1-16.58,17.35,48.31,48.31,0,0,0-19.2-11.2A12,12,0,0,1,184.63,23.14ZM232.85,167.8A92,92,0,0,1,64.31,190l-40-69.32A32,32,0,0,1,36,77a31.72,31.72,0,0,1,7.54-3.14A32,32,0,0,1,88.65,32.45a32,32,0,0,1,53,3.55l14.53,25.17A32,32,0,0,1,206.35,68l17.31,30A91.38,91.38,0,0,1,232.85,167.8Zm-30-57.81L185.57,80a8,8,0,0,0-13.86,8h0l6.68,11.57a12,12,0,0,1-3.18,15.59,28,28,0,0,0-6.41,38.1,12,12,0,1,1-19.86,13.46,52.05,52.05,0,0,1,3.9-63.4L120.9,48A8,8,0,0,0,107,56l24.25,42a12,12,0,1,1-20.78,12L79.33,56a8,8,0,0,0-13.85,8L99,122a12,12,0,0,1-20.78,12L58.93,100.67a8,8,0,1,0-13.85,8L85.1,178a68,68,0,0,0,117.78-68ZM50.46,198a12,12,0,1,0-20.78,12,132.79,132.79,0,0,0,20,26.38,12,12,0,1,0,17.17-16.76A109.2,109.2,0,0,1,50.46,198Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M184,213.27A80,80,0,0,1,74.7,184l-40-69.32a20,20,0,0,1,34.64-20L55.08,70A20,20,0,0,1,89.73,50l6.92,12h0a20,20,0,0,1,34.64-20l30,52A20,20,0,0,1,196,74l17.31,30A80,80,0,0,1,184,213.27Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M219.31,98.46A88,88,0,1,1,67.08,186.77h0L26.15,115.88a16,16,0,0,1,27.69-16L72.4,132a8,8,0,0,0,13.86-8L47,56A16,16,0,0,1,74.69,40L114,108a8,8,0,1,0,13.85-8l-30-52a16,16,0,0,1,27.71-16L166,102.12A48.25,48.25,0,0,0,152,136a47.59,47.59,0,0,0,9.6,28.8,8,8,0,1,0,12.79-9.61A32,32,0,0,1,181,110.26a8,8,0,0,0,2.17-10.43L171.71,80a16,16,0,0,1,27.71-16l19.89,34.46Zm-29.37-57A43.74,43.74,0,0,1,216.74,62l.33.57a8,8,0,0,0,13.86-8L230.6,54a59.64,59.64,0,0,0-36.54-28,8,8,0,0,0-4.12,15.46ZM79.58,225.72A103.58,103.58,0,0,1,53.93,196a8,8,0,0,0-13.86,8,119.56,119.56,0,0,0,29.6,34.28,8,8,0,0,0,9.91-12.56Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M218.44,101,201.13,71a26,26,0,0,0-45.58,1L136.47,39a26,26,0,0,0-46.14,2.19A26,26,0,0,0,49.88,73l3.29,5.7a26,26,0,0,0-23.69,39L69.5,187a85.44,85.44,0,0,0,52.21,40.08,86.71,86.71,0,0,0,22.4,3,86,86,0,0,0,74.33-129Zm-3,62.16A74,74,0,0,1,79.89,181l-40-69.32a14,14,0,0,1,24.25-14L83.36,131a6,6,0,0,0,10.39-6L60.27,67A14,14,0,1,1,84.52,53l31.17,54a6,6,0,0,0,5.2,3,5.9,5.9,0,0,0,3-.81,6,6,0,0,0,2.2-8.2L101.83,59a14,14,0,0,1,24.25-14l34.2,59.23a46,46,0,0,0-6.4,59.13,6,6,0,0,0,9.94-6.73,34,34,0,0,1,7.76-46.26,6,6,0,0,0,1.6-7.8L166.49,91a14,14,0,1,1,24.25-14l17.31,30A73.53,73.53,0,0,1,215.44,163.14ZM186.18,32.22A6,6,0,0,1,193.52,28a57.59,57.59,0,0,1,35.32,27l.33.57a6,6,0,1,1-10.39,6l-.33-.57a45.69,45.69,0,0,0-28-21.43A6,6,0,0,1,186.18,32.22ZM79.32,235.71a6,6,0,0,1-8.42,1A117.79,117.79,0,0,1,41.79,203a6,6,0,0,1,10.4-6,105.48,105.48,0,0,0,26.14,30.29A6,6,0,0,1,79.32,235.71Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.
169,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216.71,102,199.4,72a24,24,0,0,0-43.57,4.52L134.74,40a24,24,0,0,0-43.69,4.9A24,24,0,0,0,51.61,72l5.31,9.19a24,24,0,0,0-25.71,35.47l40,69.32a83.4,83.4,0,0,0,51,39.14,84.45,84.45,0,0,0,21.88,2.9,84,84,0,0,0,72.6-126Zm.67,61.67A76,76,0,0,1,78.16,182l-40-69.32a16,16,0,0,1,27.71-16L85.09,130A4,4,0,0,0,92,126L58.54,68A16,16,0,1,1,86.25,52l31.17,54a4,4,0,1,0,6.93-4L100.1,60a16,16,0,0,1,27.72-16l35,60.63a44,44,0,0,0-7.28,57.61,4,4,0,1,0,6.62-4.49,36,36,0,0,1,8.22-49,4,4,0,0,0,1.07-5.2L164.76,92a16,16,0,1,1,27.71-16l17.31,30A75.52,75.52,0,0,1,217.38,163.65ZM188.12,32.74A4,4,0,0,1,193,29.9,55.65,55.65,0,0,1,227.11,56l.33.58A4,4,0,0,1,226,62a4,4,0,0,1-5.47-1.46l-.33-.57A47.62,47.62,0,0,0,191,37.63,4,4,0,0,1,188.12,32.74ZM77.75,234.48A4,4,0,0,1,74.61,236a4,4,0,0,1-2.47-.86A115.55,115.55,0,0,1,43.53,202a4,4,0,1,1,6.92-4,107.72,107.72,0,0,0,26.64,30.86A4,4,0,0,1,77.75,234.48Z`}))]]),rr=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M252,120a52.06,52.06,0,0,0-52-52H160.32c-3.44-.21-52.6-4-99.46-43.3A20,20,0,0,0,28,40V200a19.8,19.8,0,0,0,11.54,18.12,19.86,19.86,0,0,0,21.32-2.81A192.92,192.92,0,0,1,144,174.47v26.2a20,20,0,0,0,8.9,16.64,11.35,11.35,0,0,0,1.39.8l14.44,7.06A20,20,0,0,0,198.37,213l11.09-41.82A52.07,52.07,0,0,0,252,120ZM52,191.63V48.4c36.17,28.07,72.17,38.1,92,41.66V150C124.17,153.52,88.17,163.55,52,191.63ZM176.39,202.2,168,198.1V172h16.4ZM200,148H168V92h32a28,28,0,1,1,0,56Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M240,120a40,40,0,0,1-40,40H160V80h40A40,40,0,0,1,240,120Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M200,72H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48,48,0,0,0,200,72ZM179,207.89l0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M246,120a46.05,46.05,0,0,0-46-46H160.15c-2.58-.15-54.1-3.57-103.15-44.71A14,14,0,0,0,34,40V200a13.85,13.85,0,0,0,8.07,12.68A14.16,14.16,0,0,0,48,214a13.9,13.9,0,0,0,9-3.3c40-33.52,81.57-42,97-44.07v34a14,14,0,0,0,6.23,11.65l11,7.33a14,14,0,0,0,21.32-8.17l12.13-45.71A46.07,46.07,0,0,0,246,120ZM49.29,201.52A2,2,0,0,1,46,200V40a1.9,1.9,0,0,1,1.15-1.8A2.08,2.08,0,0,1,48,38a1.91,1.91,0,0,1,1.26.48c44,36.92,89,45.19,104.71,47v69C138.29,156.33,93.3,164.61,49.29,201.52Zm131.64,7a2,2,0,0,1-3.05,1.18l-11-7.33a2,2,0,0,1-.89-1.67V166h26.2ZM200,154H166V86h34a34,34,0,1,1,0,68Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M200,76H160.1c-2.19-.11-54.55-3.38-104.38-45.17A12,12,0,0,0,36,40V200a11.88,11.88,0,0,0,6.92,10.87A12.18,12.18,0,0,0,48,212a11.93,11.93,0,0,0,7.69-2.83c42.46-35.62,86.76-43.25,100.28-44.8v36.29a12,12,0,0,0,5.34,10l11,7.33a12,12,0,0,0,18.28-7l12.49-47.09A44,44,0,0,0,200,76Zm-44,80.3c-13.53,1.35-60,8.62-105.42,46.75A4,4,0,0,1,44,200V40a4,4,0,0,1,2.3-3.62A4.32,4.32,0,0,1,48.05,36a3.88,3.88,0,0,1,2.53,1C96,75.09,142.47,82.36,156,83.71ZM182.87,209a4,4,0,0,1-6.1,2.36l-11-7.33a4,4,0,0,1-1.78-3.33V164h30.8ZM200,156H164V84h36a36,36,0,0,1,0,72Z`}))]]),ir=new Map([[`bold`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,104H72v20H44ZM72,60V80H44V60ZM44,148H72v48H44Zm168,48H96V60H212Z`}))],[`duotone`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z`,opacity:`0.2`}),N.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z`}))],[`fill`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM64,152H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16ZM216,200H88V56H216V200Z`}))],[`light`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V150H56a6,6,0,0,0,0-12H38V118H56a6,6,0,0,0,0-12H38V86H56a6,6,0,0,0,0-12H38V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z`}))],[`regular`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z`}))],[`thin`,N.createElement(N.Fragment,null,N.createElement(`path`,{d:`M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V148H56a4,4,0,0,0,0-8H36V116H56a4,4,0,0,0,0-8H36V84H56a4,4,0,0,0,0-8H36V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z`}))]]),ar=N.forwardRef((e,t)=>
1N.createElement(k,{ref:t,...e,weights:$n}));ar.displayName=`BellIcon`;var or=ar,sr=N.forwardRef((e,t)=>N.createElement(k,{ref:t,...e,weights:er}));sr.displayName=`CompassIcon`;var cr=sr,lr=N.forwardRef((e,t)=>N.createElement(k,{ref:t,...e,weights:tr}));lr.displayName=`GearIcon`;var ur=lr,dr=N.forwardRef((e,t)=>N.createElement(k,{ref:t,...e,weights:nr}));dr.displayName=`HandWavingIcon`;var fr=dr,pr=N.forwardRef((e,t)=>N.createElement(k,{ref:t,...e,weights:rr}));pr.displayName=`MegaphoneIcon`;var mr=pr,hr=N.forwardRef((e,t)=>N.createElement(k,{ref:t,...e,weights:ir}));hr.displayName=`SidebarIcon`;var gr=hr,_r=(0,N.createContext)(!1);function vr({value:e,children:t}){return(0,P.jsx)(_r.Provider,{value:e,children:t})}function yr(){return(0,N.useContext)(_r)}function br({delayDuration:e=0,...t}){return(0,P.jsx)(qn,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function xr({...e}){return(0,P.jsx)(Jn,{"data-slot":`tooltip`,...e})}function Sr({...e}){return(0,P.jsx)(Yn,{"data-slot":`tooltip-trigger`,...e})}function H({className:e,sideOffset:t=4,children:n,...r}){return(0,P.jsx)(Xn,{children:(0,P.jsxs)(Zn,{"data-slot":`tooltip-content`,sideOffset:t,className:w(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg border border-border bg-popover/95 px-3 py-1.5 text-xs text-popover-foreground shadow-pop backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=instant-open]:animate-in`,e),...r,children:[n,(0,P.jsx)(Qn,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_1px)] rotate-45 rounded-[2px] border-b border-r border-border bg-popover fill-popover`})]})})}function Cr({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,P.jsx)(yn,{"data-slot":`separator`,decorative:n,orientation:t,className:w(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...r})}function wr({...e}){return(0,P.jsx)(ue,{"data-slot":`sheet`,...e})}function Tr({...e}){return(0,P.jsx)(ve,{"data-slot":`sheet-trigger`,...e})}function Er({...e}){return(0,P.jsx)(de,{"data-slot":`sheet-portal`,...e})}function Dr({className:e,...t}){return(0,P.jsx)(pe,{"data-slot":`sheet-overlay`,className:w(`fixed inset-0 z-50 bg-overlay-backdrop data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function Or({className:e,children:t,side:n=`right`,showCloseButton:r=!0,container:i,...a}){return(0,P.jsxs)(Er,{container:i??void 0,children:[(0,P.jsx)(Dr,{}),(0,P.jsxs)(le,{"data-slot":`sheet-content`,className:w(`fixed z-50 flex flex-col gap-4 bg-sidebar shadow-pop transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...a,children:[t,r&&(0,P.jsxs)(ce,{className:`absolute right-4 top-4 z-20 grid size-8 place-items-center rounded-lg text-muted-foreground opacity-80 transition-[color,background-color,opacity] duration-200 ease-smooth hover:bg-secondary hover:text-foreground hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none`,children:[(0,P.jsx)(C,{className:`size-4`}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function kr({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`sheet-header`,className:w(`flex flex-col gap-1.5 p-4`,e),...t})}function Ar({className:e,...t}){return(0,P.jsx)(se,{"data-slot":`sheet-title`,className:w(`font-semibold text-foreground`,e),...t})}function jr({className:e,...t}){return(0,P.jsx)(me,{"data-slot":`sheet-description`,className:w(`text-sm text-muted-foreground`,e),...t})}var Mr=`sidebar_state`,Nr=3600*24*7,Pr=`16rem`,Fr=`18rem`,Ir=`3rem`,Lr=`b`,Rr=N.createContext(null);function U(){let e=N.useContext(Rr);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}var W=null;function zr({defaultOpen:e=!0,ignoreRememberedOpen:t=!1,open:n,onOpenChange:r,className:i,style:a,children:o,...s}){let c=xt(),[l,u]=N.useState(!1),[d,f]=N.useState(t?e:W??e),p=n??d,m=N.useCallback(e=>{let t=typeof e==`function`?e(p):e;r?r(t):f(t),W=t,document.cookie=`${Mr}=${t}; path=/; max-age=${Nr}`},[r,p]);N.useEffect(()=>{if(t||W!==null)return;let e=document.cookie.match(/(?:^|;\s*)sidebar_state=(true|false)/);e&&(W=e[1]===`true`,f(W))},[]);let h=N.useCallback(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);N.useEffect(()=>{let e=e=>
1{e.key===Lr&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=N.useMemo(()=>({state:g,open:p,setOpen:m,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,u,h]);return(0,P.jsx)(Rr.Provider,{value:_,children:(0,P.jsx)(br,{delayDuration:0,children:(0,P.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Pr,"--sidebar-width-icon":Ir,...a},className:w(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,i),...s,children:o})})})}function Br({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=U();return n===`none`?(0,P.jsx)(`div`,{"data-slot":`sidebar`,className:w(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,`[background-image:radial-gradient(130%_85%_at_50%_-12%,color-mix(in_oklch,var(--primary)_10%,transparent)_0%,transparent_58%)]`,r),...a,children:i}):o?(0,P.jsx)(wr,{open:c,onOpenChange:l,...a,children:(0,P.jsxs)(Or,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":Fr},side:e,children:[(0,P.jsxs)(kr,{className:`sr-only`,children:[(0,P.jsx)(Ar,{children:`Sidebar`}),(0,P.jsx)(jr,{children:`Displays the mobile sidebar.`})]}),(0,P.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,P.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,P.jsx)(`div`,{"data-slot":`sidebar-gap`,className:w(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-300 ease-smooth`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,P.jsx)(`div`,{"data-slot":`sidebar-container`,className:w(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-300 ease-smooth md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,P.jsxs)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`relative isolate flex h-full w-full flex-col overflow-hidden group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-e1`,children:[(0,P.jsx)(`div`,{"aria-hidden":!0,className:`bg-rail pointer-events-none absolute inset-y-0 left-0 -z-10 w-(--sidebar-width)`}),i]})})]})}function Vr({className:e,onClick:t,children:n,...r}){let{toggleSidebar:i}=U();return(0,P.jsxs)(v,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:w(`size-7`,e),onClick:e=>{t?.(e),i()},...r,children:[n??(0,P.jsx)(gr,{weight:`duotone`,className:`size-5`}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Hr({className:e,...t}){let{toggleSidebar:n,setOpen:r,state:i}=U(),a=N.useRef(null);return(0,P.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,title:`Drag to collapse`,onPointerDown:e=>{a.current={startX:e.clientX,moved:!1},e.currentTarget.setPointerCapture?.(e.pointerId)},onPointerMove:e=>{if(!a.current)return;let t=e.clientX-a.current.startX;Math.abs(t)>36&&(a.current.moved=!0,t<0&&i===`expanded`?r(!1):t>0&&i===`collapsed`&&r(!0),a.current=null)},onPointerUp:e=>{e.currentTarget.releasePointerCapture?.(e.pointerId),a.current&&!a.current.moved&&n(),a.current=null},className:w(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-[left,right] duration-300 ease-smooth group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] after:transition-colors hover:after:bg-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function Ur({className:e,...t}){return(0,P.jsx)(`main`,{"data-slot":`sidebar-inset`,className:w(`relative flex w-full min-w-0 flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-e1 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...t})}function Wr({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:w(`flex flex-col gap-2 p-2`,e),...t})}function Gr({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:w(`flex flex-col gap-2 p-2`,e),...t})}function Kr({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:w(`flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function G({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:w(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function qr({className:e,asChild:t=!1,...n}){return(0,P.jsx)(t?m:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:w(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground
1/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-300 ease-smooth focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...n})}function K({className:e,...t}){return(0,P.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:w(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function q({className:e,...t}){return(0,P.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:w(`group/menu-item relative`,e),...t})}var Jr=_(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding,background-color,box-shadow] duration-300 ease-smooth group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-gradient-to-r data-[active=true]:from-sidebar-accent data-[active=true]:to-sidebar-accent/40 data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-[inset_0_1px_0_color-mix(in_oklch,white_8%,transparent)] data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background ring-1 ring-inset ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent`},size:{default:`h-8 pointer-coarse:h-11 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Yr({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?m:`button`,{isMobile:c,state:l}=U(),u=(0,P.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:w(Jr({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,P.jsxs)(xr,{children:[(0,P.jsx)(Sr,{asChild:!0,children:u}),(0,P.jsx)(H,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}var Xr=`M15.5 3.2 A 9.6 9.6 0 1 0 15.5 20.8 A 7.4 7.4 0 1 1 15.5 3.2 Z`,Zr=`M8.4 11.1 q1 0.9 2 0 q-1 -0.45 -2 0 Z M11.8 11.1 q1 0.9 2 0 q-1 -0.45 -2 0 Z`,Qr=`M9.4 11.1 a0.85 0.85 0 1 0 0.01 0 Z M12.8 11.1 a0.85 0.85 0 1 0 0.01 0 Z`,$r=`M19.4 3.6 C 19.8 5.5 20.5 6.2 22.4 6.6 C 20.5 7 19.8 7.7 19.4 9.6 C 19 7.7 18.3 7 16.4 6.6 C 18.3 6.2 19 5.5 19.4 3.6 Z`;function ei({collapsed:e,className:t}){return(0,P.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":!0,focusable:`false`,className:w(`transition-transform duration-300 ease-smooth motion-reduce:transition-none`,e&&`-scale-x-100`,t),children:[(0,P.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`${Xr} ${Qr}`}),(0,P.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`${Xr} ${Zr}`,className:w(`transition-opacity duration-300 ease-smooth motion-reduce:transition-none`,e?`opacity-0`:`opacity-100`)}),(0,P.jsx)(`path`,{fill:`currentColor`,d:$r,className:w(`origin-center transition-[opacity,scale] duration-300 ease-smooth motion-reduce:transition-none`,e?`scale-100 opacity-100`:`scale-50 opacity-0`)})]})}var ti=`prelulu:chat-seen`,ni={decode(e){return!e||typeof e!=`object`||Array.isArray(e)?null:Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`number`&&Number.isFinite(e[1])))},encode(e){return e}},J=void 0,Y=null,ri={},X=new Set;function ii(){return J?`${ti}:${J}`:null}function ai(){if(Y)return Y;let e=ii();if(typeof window>`u`||!e)return Y=ri;try{let t=ct(window.localStorage.getItem(e),ni);Y=t.status===`accepted`?t.value:{}}catch{Y={}}return Y}function oi(e){if(e!==J){J=e,Y=null;
1for(let e of X)e()}}function si(e,t){let n=ai(),r={...n,[e]:Math.max(n[e]??0,t)};Y=r;let i=ii();if(i)try{window.localStorage.setItem(i,st(r,ni))}catch{}for(let e of X)e()}function ci(e,t){return e>(t??0)}function li(){return ai()}function ui(){return ri}function di(e){return X.add(e),()=>X.delete(e)}var fi=ke({text:{text:Oe().trim().min(1).max(1600)}.text}),pi=/^â¦thought(?::[A-Za-z0-9\-_]*)?â§\n/;function mi(e){let t=e.trimStart(),n=pi.exec(t);return n?fi.safeParse({text:t.slice(n[0].length)}).data??null:null}function hi(e,t){let n=[...t].reverse(),r=new Map,i=0;for(let t of e){if(t.kind!==`note`||!t.reached)continue;let e=n[i++];if(e===void 0)break;r.set(t.id,e)}return r}var gi=/(^|[^*])\*\*(?!\*)([\s\S]*?[^*])\*\*(?!\*)/g;function _i(e,t){if(!e)return``;let n=gt(e);if(n){let e=n.mode===`video`,t=e?`ð¹`:`ð`,r=e?`Video call`:`Voice call`;return n.kind===`answered`?`${t} ${r}`:`${t} Missed ${r.toLowerCase()}`}let r=At(e);if(r)return Ot(r);let i=kt(e);if(i)return`ð¬ ${i.title||`A new scene`}`;let a=et(e);if(a)return`âï¸ ${Qe(a)}`;if(mi(e))return`ð ${t(`chat.thoughtTitle`)}`;let o=Et(e.replace(gi,`$1$2`)).map(e=>e.text).join(``).replace(/\s+/g,` `).trim();return/^[*\s]*$/.test(o)?``:o}function vi(e){return{name:e.character?.name??yi(e.characterId),slug:e.character?.slug??e.characterId,portrait:e.character?.portrait??null}}function yi(e){let t=e.replace(/[-_]+/g,` `).trim();return t?t.replace(/\b\w/g,e=>e.toUpperCase()):`Chat`}var bi=n((0,N.forwardRef)(function({label:e,count:t,className:n,...r},i){return(0,P.jsxs)(`a`,{ref:i,"aria-label":e,title:e,className:w(`group/seeall -my-1.5 ml-auto flex items-center gap-1 rounded-md px-1.5 py-1.5 text-muted-dim outline-hidden transition-colors duration-200 ease-smooth hover:bg-sidebar-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring`,n),...r,children:[typeof t==`number`?(0,P.jsx)(`span`,{className:`text-[10px] font-medium leading-none tabular-nums`,children:t}):null,(0,P.jsx)(Be,{weight:`bold`,"aria-hidden":!0,className:`size-3 shrink-0 transition-transform duration-200 ease-smooth group-hover/seeall:translate-x-px`})]})})),xi=e=>(0,P.jsx)(bi,{...e});function Si(e){let t=Ie(e);if(!t)return null;try{return decodeURIComponent(t)}catch{return t}}function Ci(){let{t:e}=E(),{data:t}=A(),n=t?.user?.id??null,{data:i=[],isPending:o}=a({...wt(n),enabled:!!n});(0,N.useEffect)(()=>{n&&i.length>0&&Tt(!0)},[n,i.length]);let s=i.slice(0,4),c=(0,N.useSyncExternalStore)(di,li,ui),l=f({select:e=>e.location.pathname}),u=Si(l),d=l!==`/`&&u===null,[p,m]=(0,N.useState)(!1);(0,N.useEffect)(()=>{oi(n),m(!0)},[n]),(0,N.useEffect)(()=>{if(!p||!u)return;let e=i.find(e=>(e.character?.slug??e.characterId)===u);e&&ci(e.updatedAt,c[e.characterId])&&si(e.characterId,e.updatedAt)},[u,i,c,p]);let h;return h=n?o?(0,P.jsx)(`div`,{className:`flex flex-col gap-1 group-data-[collapsible=icon]:hidden`,"aria-hidden":!0,children:[0,1,2].map(e=>(0,P.jsxs)(`div`,{className:`flex min-h-14 items-center gap-3 px-2 py-2`,children:[(0,P.jsx)(j,{className:`size-9 shrink-0 rounded-full`}),(0,P.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2`,children:[(0,P.jsx)(j,{className:`h-3 w-24 rounded`}),(0,P.jsx)(j,{className:`h-3 w-3/4 rounded`})]})]},e))}):i.length===0?(0,P.jsx)(`p`,{className:`px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden`,children:e(`account.empty.chats`)}):(0,P.jsx)(K,{"data-testid":`recent-chats`,children:s.map(t=>{let{name:n,slug:i,portrait:a}=vi(t),o=_i(t.lastMessage,e),s=u!==null&&u===i,l=p&&!s&&ci(t.updatedAt,c[t.characterId]);return(0,P.jsx)(q,{children:(0,P.jsx)(Yr,{asChild:!0,isActive:s,tooltip:n,className:`h-auto min-h-14 gap-3 py-2 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:min-h-0 group-data-[collapsible=icon]:!p-0 group-data-[collapsible=icon]:justify-center`,children:(0,P.jsxs)(r,{to:`/character/$slug`,params:{slug:i},"aria-current":s?`page`:void 0,onClick:e=>Nt(e.currentTarget.querySelector(`img`),i),children:[a?(0,P.jsx)(`img`,{src:a,alt:``,"data-morph":!0,style:d?Mt(i):void 0,className:w(`aspect-square size-9 shrink-0 rounded-full object-cover ring-1 ring-white/10 group-data-[collapsible=icon]:size-6`,s&&`group-data-[collapsible=icon]:ring-primary-bright`),loading:`lazy`}
1):(0,P.jsx)(`span`,{"aria-hidden":!0,className:w(`grid aspect-square size-9 shrink-0 place-items-center rounded-full bg-secondary text-xs font-semibold uppercase text-muted-foreground group-data-[collapsible=icon]:size-6`,s&&`group-data-[collapsible=icon]:ring-1 group-data-[collapsible=icon]:ring-primary-bright`),children:jt(n)}),(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5 group-data-[collapsible=icon]:hidden`,children:[(0,P.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,P.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium leading-snug`,dir:`auto`,children:n}),l?(0,P.jsx)(`span`,{className:`ms-auto size-1.5 shrink-0 rounded-full bg-primary-bright`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:e(`notifications.unread`)})}):null]}),o?(0,P.jsx)(`span`,{className:`mp-mask truncate text-xs leading-normal text-muted-foreground`,dir:`auto`,children:o}):null]})]})})},t.characterId)})}):(0,P.jsx)(`p`,{className:`px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden`,children:e(`chat.inboxSignInTitle`)}),(0,P.jsxs)(G,{className:`pt-0 group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:pt-1`,children:[(0,P.jsxs)(qr,{children:[e(`chat.recentTitle`),i.length>0?(0,P.jsx)(xi,{to:`/account`,search:{tab:`chats`},label:e(`chat.showAll`),"data-testid":`recent-chats-show-all`}):null]}),h]})}var wi=12;function Ti(){let{data:e}=A(),t=e?.user?.id??null,{data:n=[]}=a({...qe(t),enabled:!!t}),{data:i}=a(Ct()),o=n.filter(e=>i?.get(e.characterId)),s=[...o].sort((e,t)=>Number(t.lastOutcome===`in_progress`)-Number(e.lastOutcome===`in_progress`)).slice(0,wi);return!t||o.length===0?null:(0,P.jsxs)(G,{className:`pt-0 group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:pt-1`,children:[(0,P.jsxs)(qr,{children:[`Games`,(0,P.jsx)(xi,{to:`/games`,label:`All games`,count:o.length,"data-testid":`scene-games-see-all`})]}),(0,P.jsx)(`div`,{"data-testid":`scene-games`,className:w(`no-scrollbar flex gap-2 overflow-x-auto px-2 py-1 scroll-px-2`,`[mask-image:linear-gradient(to_right,#000_calc(100%-2.5rem),transparent)]`,`group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:gap-1.5 group-data-[collapsible=icon]:overflow-visible group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:[mask-image:none] group-data-[collapsible=icon]:[&>*:nth-child(n+4)]:hidden`),children:s.map(e=>{let t=i?.get(e.characterId);if(!t)return null;let n=e.lastOutcome===`in_progress`?`Resume`:e.lastOutcome?`Play again`:Dt[e.genre];return(0,P.jsxs)(xr,{delayDuration:200,children:[(0,P.jsx)(Sr,{asChild:!0,children:(0,P.jsx)(r,{to:`/character/$slug`,params:{slug:t.slug},search:{game:e.gameId,src:`library`},"aria-label":`${e.title} â ${n}`,className:`group/tile press-sm relative size-12 shrink-0 overflow-hidden rounded-lg bg-secondary image-outline ring-sidebar-ring outline-hidden transition-[filter,scale] duration-200 ease-smooth hover:brightness-110 focus-visible:ring-2 group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:rounded-md`,children:e.wonCgUrl??e.coverUrl?(0,P.jsx)(`img`,{src:e.wonCgUrl??e.coverUrl??void 0,alt:``,loading:`lazy`,className:w(`size-full object-cover transition-[scale] duration-500 ease-smooth group-hover/tile:scale-[1.12]`,e.wonCgUrl&&`object-[center_18%]`)}):(0,P.jsx)(`span`,{className:`grid size-full place-items-center`,children:(0,P.jsx)(Je,{weight:`duotone`,className:`size-5 text-muted-foreground`})})})}),(0,P.jsxs)(H,{side:`right`,className:`flex max-w-52 flex-col gap-0.5 bg-popover/80 shadow-e2 backdrop-blur-md data-[state=delayed-open]:slide-in-from-left-1`,children:[(0,P.jsx)(`span`,{className:`font-medium`,children:e.title}
1),(0,P.jsx)(`span`,{className:`text-popover-foreground/70`,children:n})]})]},e.gameId)})})]})}function Ei({className:e,...t}){return(0,P.jsx)(dn,{"data-slot":`avatar`,className:w(`relative flex size-10 shrink-0 overflow-hidden rounded-full`,e),...t})}function Di({className:e,...t}){return(0,P.jsx)(fn,{"data-slot":`avatar-image`,className:w(`aspect-square size-full`,e),...t})}function Oi({className:e,...t}){return(0,P.jsx)(pn,{"data-slot":`avatar-fallback`,className:w(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground`,e),...t})}function ki({open:e,onOpenChange:t}){return(0,P.jsx)(_e,{open:e,onOpenChange:t,children:(0,P.jsxs)(he,{className:`sm:max-w-md`,children:[(0,P.jsx)(ge,{children:`Wallet`}),(0,P.jsx)(fe,{className:`sr-only`,children:`Your live-call balance and membership.`}),(0,P.jsx)(l,{onNavigate:()=>t(!1)})]})})}var Ai=`prelulu.lowBalanceChipDismissed`;function ji(){let{t:e}=E(),{balance:t,nudgeAt:n}=pt(),[r,i]=(0,N.useState)(()=>typeof window<`u`&&sessionStorage.getItem(Ai)===`1`),a=!r&&t!==null&&t<=n,o=(0,N.useRef)(!1);return(0,N.useEffect)(()=>{if(!a){o.current=!1;return}o.current||(o.current=!0,O(D.lowBalanceNudge,{action:`shown`,balance:t}))},[a,t]),a?(0,P.jsxs)(`div`,{className:`flex items-center gap-1.5 rounded-lg border border-active-line bg-active-tint px-2 py-1.5 group-data-[collapsible=icon]:hidden`,children:[(0,P.jsxs)(`button`,{type:`button`,"data-testid":`low-balance-chip`,onClick:()=>{O(D.lowBalanceNudge,{action:`tapped`,balance:t}),Ue(void 0,void 0,{title:e(`account.lowBalance.title`),description:e(`account.lowBalance.description`)},`low_balance_chip`)},className:`press-sm flex min-w-0 flex-1 items-center gap-1.5 text-left text-xs font-medium text-primary-bright transition-interactive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,P.jsx)(Ve,{weight:`fill`,className:`size-3.5 shrink-0`}),(0,P.jsx)(`span`,{className:`truncate`,children:e(`account.lowBalance.chip`)})]}),(0,P.jsx)(`button`,{type:`button`,"aria-label":e(`account.lowBalance.dismiss`),onClick:()=>{O(D.lowBalanceNudge,{action:`dismissed`,balance:t}),typeof window<`u`&&sessionStorage.setItem(Ai,`1`),i(!0)},className:`press-sm shrink-0 rounded-md p-0.5 text-muted-foreground transition-interactive hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,P.jsx)(C,{className:`size-3.5`})})]}):null}function Mi(){let e=f({select:e=>e.location}),t=ht(e.pathname+e.searchStr+(e.hash?`#${e.hash}`:``)),{data:n,isPending:i}=A(),{promptUpgrade:a,isGuest:o}=He(),{t:s}=E(),{balance:c}=pt(),[l,u]=(0,N.useState)(!1),[d,p]=(0,N.useState)(!1);if((0,N.useEffect)(()=>p(!0),[]),!d||i)return(0,P.jsxs)(`div`,{"aria-hidden":!0,className:`flex flex-col gap-1.5 group-data-[collapsible=icon]:gap-1`,children:[(0,P.jsx)(`div`,{className:`h-9 animate-pulse rounded-lg bg-muted group-data-[collapsible=icon]:hidden`}),(0,P.jsx)(`div`,{className:`h-9 animate-pulse rounded-lg bg-muted group-data-[collapsible=icon]:size-8`})]});if(!n?.user)return(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5 group-data-[collapsible=icon]:gap-1`,children:[(0,P.jsx)(v,{asChild:!0,size:`sm`,className:`w-full group-data-[collapsible=icon]:hidden`,children:(0,P.jsx)(r,{to:`/signup`,search:t,onClick:e=>mt(e,`sidebar_signup`),"data-testid":`nav-signup`,children:s(`account.sidebar.getStarted`)})}),(0,P.jsx)(v,{asChild:!0,variant:`ghost`,size:`sm`,className:`w-full justify-center group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:p-0`,children:(0,P.jsxs)(r,{to:`/auth-modal`,search:t,mask:{to:`/login`,search:t,unmaskOnReload:!0},onClick:e=>mt(e,`sidebar_signin`),"data-testid":`nav-signin`,"aria-label":s(`auth.signInButton`),children:[(0,P.jsx)($e,{className:`size-4`}),(0,P.jsx)(`span`,{className:`group-data-[collapsible=icon]:hidden`,children:s(`auth.signInButton`)})]})})]});let{user:m}=n,h=jt(m.name||m.email)||`?`;return o?(0,P.jsxs)(`button`,{type:`button`,"data-testid":`sidebar-guest`,"aria-label":s(`account.sidebar.saveAccount`),onClick:()=>a({title:s(`account.sidebar.guest.saveTitle`),description:s(`account.sidebar.guest.saveDescription`)}),className:`press flex w-full items-center gap-2 rounded-lg p-1 text-left transition-colors duration-200 ease-smooth hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:p-0`,children:[(0,P.jsx)(`span`,{className:`flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-secondary`,children:(0,P.jsx)(`img`,{src:`/brand/mascot/moon-anon.png`,alt:``,"aria-hidden":!0,draggable:!1,
1className:`size-7 select-none object-contain`})}),(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col group-data-[collapsible=icon]:hidden`,children:[(0,P.jsx)(`span`,{className:`truncate text-sm font-medium leading-tight`,children:s(`account.sidebar.newMoon`)}),(0,P.jsxs)(`span`,{className:`flex items-center gap-1 text-xs font-medium leading-tight text-primary-bright`,children:[(0,P.jsx)(tt,{weight:`fill`,className:`size-3 shrink-0`}),s(`account.sidebar.saveAccount`)]})]})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ji,{}),(0,P.jsxs)(`div`,{className:`flex items-center gap-1 rounded-lg p-1 transition-colors duration-200 ease-smooth hover:bg-sidebar-accent group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:p-0`,children:[(0,P.jsxs)(r,{to:`/account`,"aria-label":s(`account.sidebar.account`),className:`press flex min-w-0 flex-1 items-center gap-2 rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-data-[collapsible=icon]:flex-none`,children:[(0,P.jsxs)(Ei,{className:`size-8 shrink-0 border border-border`,children:[m.image?(0,P.jsx)(Di,{src:m.image,alt:m.name??``}):null,(0,P.jsx)(Oi,{className:`bg-secondary text-sm font-medium`,children:h})]}),(0,P.jsx)(`p`,{className:`flex min-w-0 items-center gap-1 text-sm font-medium leading-tight group-data-[collapsible=icon]:hidden`,children:(0,P.jsx)(`span`,{className:`truncate`,children:m.name||`Account`})})]}),(0,P.jsxs)(v,{variant:`ghost`,size:`sm`,"aria-label":s(`nav.wallet`),onClick:()=>u(!0),className:`h-8 shrink-0 gap-1.5 px-2 text-muted-foreground group-data-[collapsible=icon]:hidden`,children:[(0,P.jsx)(It,{className:`size-4`}),c===null?null:(0,P.jsx)(`span`,{className:w(`text-xs font-semibold tabular-nums`,ft(c)&&`text-primary-bright`),children:ft(c)?s(`nav.walletTopUp`):`${dt(c)}m`})]}),(0,P.jsx)(v,{asChild:!0,variant:`ghost`,size:`icon`,"aria-label":s(`account.sidebar.settings`),className:`size-8 shrink-0 text-muted-foreground group-data-[collapsible=icon]:hidden`,children:(0,P.jsx)(r,{to:`/settings`,children:(0,P.jsx)(ur,{className:`size-4`})})})]}),(0,P.jsx)(ki,{open:l,onOpenChange:u})]})}var Z=1e3,Ni=60*Z,Pi=60*Ni,Fi=24*Pi,Ii=7*Fi;function Li(e){let t=Math.abs(e);return Math.round(t/Z)<60?{value:Math.round(e/Z),unit:`second`}:Math.round(t/Ni)<60?{value:Math.round(e/Ni),unit:`minute`}:Math.round(t/Pi)<24?{value:Math.round(e/Pi),unit:`hour`}:Math.round(t/Fi)<7?{value:Math.round(e/Fi),unit:`day`}:{value:Math.round(e/Ii),unit:`week`}}var Ri={announcement:{icon:mr,tint:`text-primary-bright`},welcome:{icon:fr,tint:`text-primary-bright`},reward:{icon:Ve,tint:`text-premium`},referral:{icon:nt,tint:`text-premium`},gift:{icon:Ye,tint:`text-accent`},character:{icon:rt,tint:`text-primary-bright`},call:{icon:Ze,tint:`text-primary-bright`},system:{icon:we,tint:`text-muted-foreground`}};function zi({item:e,locale:t,onActivate:n,onDismiss:i}){let{icon:a,tint:o}=Ri[e.kind]??Ri.system,s=(0,N.useMemo)(()=>Vi(e.createdAt,t),[e.createdAt,t]),c=(0,P.jsxs)(P.Fragment,{children:[e.image?(0,P.jsx)(`img`,{src:e.image,alt:``,className:`mt-0.5 size-7 shrink-0 rounded-full object-cover ring-1 ring-border`}):(0,P.jsx)(`span`,{className:w(`mt-0.5 grid size-7 shrink-0 place-items-center rounded-full bg-secondary`,o),children:(0,P.jsx)(a,{weight:`duotone`,className:`size-4`})}),(0,P.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,P.jsxs)(`span`,{className:`flex items-start gap-1.5`,children:[(0,P.jsx)(`span`,{className:w(`min-w-0 flex-1 text-sm font-medium leading-tight`,e.read?`text-muted-foreground`:`text-foreground`),children:e.title}),e.read?null:(0,P.jsx)(`span`,{"aria-hidden":!0,className:`mt-1 size-1.5 shrink-0 rounded-full bg-primary-bright`})]}),e.body?(0,P.jsx)(`span`,{className:`mt-0.5 block line-clamp-2 text-xs leading-snug text-muted-foreground`,children:e.body}):null,(0,P.jsxs)(`span`,{className:`mt-1 flex items-center gap-1.5 text-eyebrow text-muted-dim`,children:[(0,P.jsx)(`span`,{children:s}),e.href&&e.ctaLabel?(0,P.jsxs)(`span`,{className:`text-primary-bright`,children:[`· `,e.ctaLabel]}):null]})]})]}),l=w(`flex w-full items-start gap-3 rounded-lg px-3 py-2.5 text-left transition-interactive press-sm`,e.read?`hover:bg-secondary`:`bg-active-tint hover:bg-active-tint-strong`);return(0,P.jsxs)(`li`,{className:`group/notif relative`,children:[e.href?(0,P.jsx)(r,{to:e.href,className:l,onClick:()=>n(e),children:c}):(0,P.jsx)(`button`,{type:`button`,className:l,onClick:()=>n(e),children:c}),(0,P.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>i(e),className:`absolute right-1.5 top-1.5 grid size-6 place-items-center rounded-md text-muted-dim opacity-0 transition-interactive press hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-hover/notif:opacity-100`,children:(0,P.jsx)(C,{weight:`bold`,className:`size-3.5`})})]})}function Bi(){let{t:e,locale:t}=E(),{data:n}=A(),o=n?.user?.id??null,s=i(),[c,l]=(0,N.useState)(!1),{data:u,isPending:d,error:f,refetch:p}=a({...M(o),enabled:!!o}),m=u?.items??[],h=u?.unreadCount??0,g=d&&!u;if(!o)return null;async function _(e){let{action:t}=e;if(t===`read-all`)s.setQueryData(M(o).queryKey,e=>e&&{...e,unreadCount:0,items:e.items.map(e=>({...e,read:!0}))});else if(e.action===`read`&&e.id){let{id:t}=e;s.setQueryData(M(o).queryKey,e=>e&&{...e,unreadCount:Math.max(0,e.unreadCount-+!!e.items.some(e=>e.id===t&&!e.read)),items:e.items.map(e=>e.id===t?{...e,read:!0}:e)})}try{await Lt(ut.api.notifications.post(e))}catch{await p()}finally{Rt(s)}}function v(e){l(e),e&&O(D.notificationsOpened,{unread:h})}function y(e){O(D.notificationClicked,{kind:e.kind}),e.read||_({action:`read`,id:e.id}),e.href&&l(!1)}return(0,P.jsxs)(De,{open:c,onOpenChange:v,children:[(0,P.jsx)(Ee,{asChild:!0,children:(0,P.jsxs)(`button`,{type:`button`,"data-testid":`notification-bell`,"aria-label":e(`notifications.open`),className:`fx-row relative flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm text-sidebar-foreground transition-interactive press hover:bg-sidebar-accent hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0`,children:[(0,P.jsxs)(`span`,{className:`relative grid size-4 shrink-0 place-items-center`,children:[(0,P.jsx)(or,{weight:h>0?`fill`:`duotone`,className:w(`size-4`,h>0&&`text-primary-bright`)}),h>
10?(0,P.jsx)(`span`,{"aria-hidden":!0,className:`absolute -right-1 -top-1 hidden size-1.5 rounded-full bg-primary-bright group-data-[collapsible=icon]:block`}):null]}),(0,P.jsx)(`span`,{className:`flex-1 text-left group-data-[collapsible=icon]:hidden`,children:e(`notifications.title`)}),h>0?(0,P.jsx)(`span`,{"aria-hidden":!0,className:`num-pop ml-auto inline-flex min-w-5 items-center justify-center rounded-full bg-primary px-1.5 py-0.5 text-eyebrow font-semibold tabular-nums text-primary-foreground group-data-[collapsible=icon]:hidden`,children:h>9?`9+`:h},h):null]})}),(0,P.jsxs)(Te,{side:`right`,align:`end`,sideOffset:10,className:`w-80 overflow-hidden p-0`,"data-testid":`notification-panel`,role:`region`,"aria-label":e(`notifications.title`),children:[(0,P.jsxs)(`header`,{className:`flex items-center justify-between gap-2 border-b border-border px-3 py-2.5`,children:[(0,P.jsx)(`span`,{className:`text-sm font-semibold`,children:e(`notifications.title`)}),h>0?(0,P.jsx)(`button`,{type:`button`,"data-testid":`notifications-mark-all`,onClick:()=>void _({action:`read-all`}),className:`rounded-md px-1.5 py-0.5 text-xs font-medium text-primary-bright transition-interactive press hover:bg-sidebar-accent`,children:e(`notifications.markAllRead`)}):null]}),(0,P.jsx)(`div`,{className:`border-b border-border px-3 py-2`,children:(0,P.jsx)(r,{to:`/notification-settings`,className:`text-sm text-primary-bright`,onClick:()=>l(!1),children:e(`notifications.inboxSettings`)})}),f?(0,P.jsxs)(`div`,{role:`alert`,className:`space-y-2 p-4`,children:[(0,P.jsx)(`p`,{className:`text-sm text-destructive`,children:e(`common.refreshFailed`)}),(0,P.jsx)(`button`,{type:`button`,onClick:()=>void p(),className:`text-sm text-primary-bright`,children:e(`common.tryAgain`)})]}):null,g?(0,P.jsx)(`ul`,{className:`flex flex-col gap-0.5 p-1.5`,"aria-hidden":!0,children:[0,1,2].map(e=>(0,P.jsxs)(`li`,{className:`flex items-start gap-3 px-3 py-2.5`,children:[(0,P.jsx)(j,{className:`size-7 shrink-0 rounded-full`}),(0,P.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1.5`,children:[(0,P.jsx)(j,{className:`h-3 w-2/3 rounded`}),(0,P.jsx)(j,{className:`h-3 w-full rounded`})]})]},e))}):f&&m.length===0?null:m.length===0?(0,P.jsxs)(`div`,{className:`rise-in flex flex-col items-center gap-2 px-6 py-8 text-center`,children:[(0,P.jsx)(`img`,{src:`/brand/mascot/moon-wave.png`,alt:``,"aria-hidden":!0,draggable:!1,className:`size-16 select-none object-contain opacity-90 [filter:drop-shadow(0_0_10px_color-mix(in_oklch,var(--primary)_35%,transparent))]`}),(0,P.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:e(`notifications.empty`)}),(0,P.jsx)(`p`,{className:`text-xs text-muted-dim`,children:e(`notifications.emptySub`)})]}):(0,P.jsx)(`ul`,{className:`flex max-h-[22rem] flex-col gap-0.5 overflow-y-auto p-1.5`,children:m.map(e=>(0,P.jsx)(zi,{item:e,locale:t,onActivate:y,onDismiss:e=>void _({action:`dismiss`,id:e.id})},e.id))})]})]})}function Vi(e,t){let{value:n,unit:r}=Li(e-Date.now());return new Intl.RelativeTimeFormat(t,{numeric:`auto`}).format(n,r)}var Hi=[{labelKey:`nav.discover`,to:`/`,icon:cr,anim:`fx-seek`},{labelKey:`nav.live`,to:`/live`,icon:rt,anim:`fx-broadcast`,deco:`live`},{labelKey:`nav.create`,to:`/create`,icon:Xe,anim:`fx-write`,deco:`ink`},{labelKey:`nav.invite`,to:`/invite`,icon:Ye,anim:`fx-twinkle`}];function Ui({className:e}){return(0,P.jsxs)(`svg`,{viewBox:`0 0 2048 2048`,"aria-hidden":!0,focusable:`false`,className:w(`tonight-emblem`,e),children:[(0,P.jsx)(`path`,{className:`tonight-curtain tonight-curtain--l`,d:`M 844.254 297.5 C 866.109 297.499 926.126 293.388 942.477 301.473 C 951.596 305.982 957.271 312.97 960.189 322.666 C 965.85 341.477 959.023 396.208 956.909 417.756 C 942.388 565.778 916.069 736.333 842.942 867.457 C 797.198 949.479 736.164 1018.15 657.431 1069.89 C 640.512 1081.01 623.028 1091.97 604.827 1100.87 C 569.061 1118.38 531.599 1130.62 493.387 1141.47 C 498.727 1156.45 506.363 1173.53 512.282 1188.7 C 533.134 1241.67 554.485 1294.45 576.331 1347.02 C 602.606 1410.78 627.5 1476.16 653.634 1540.2 C 669.686 1579.33 685.514 1618.56 701.119 1657.87 C 708.779 1676.93 717.024 1695.94 724.138 1715.05 C 728.609 1726.71 725.048 1742.52 716.118 1751.26 C 701.074 1765.97 667.657 1762.05 647.5 1761.97 L 419.929 1761.98 L 360.422 1761.52 C 319.64 1761.1 296.969 1762.27 296.735 1712.16 L 296.853 1118.42 L 297.009 922.155 C 297.023 835.842 292.405 775.449 313.416 690.708 C 336.146 598.882 383.733 515.092 450.954 448.532 C 533.629 365.712 641.987 313.432 758.266 300.262 C 786.908 297.063 815.453 297.613 844.254 297.5 z`}),(0,P.jsx)(`path`,{className:`tonight-curtain tonight-curtain--r`,d:`M 1125.78 297.266 C 1126.68 297.206 1127.58 297.155 1128.48 297.114 C 1148.6 296.145 1176.16 297.222 1196.76 297.092 C 1228.88 296.889 1264.47 296.673 1296.22 300.126 C 1404.92 312.743 1506.75 359.723 1586.9 434.226 C 1687.04 526.937 1746.98 655.107 1753.95 791.394 C 1754.9 812.749 1754.53 836.155 1754.62 857.714 L 1754.85 975.588 L 1754.95 1313.77 L 1754.65 1602.51 L 1754.39 1681.86 C 1754.35 1701.09 1757.9 1735.96 1744.48 1749.95 C 1739.28 1755.35 1732.55 1759.04 1725.19 1760.52 C 1713.27 1762.81 1665.61 1761.
161 1650.82 1761.59 L 1488.92 1761.55 C 1464.95 1761.63 1363.37 1764.97 1347.52 1758.1 C 1338.21 1754.07 1332.14 1746.45 1328.64 1737.09 C 1325.36 1728.35 1326.07 1720.66 1328.7 1711.92 C 1336.7 1685.36 1349.35 1659.08 1360.14 1633.5 C 1372.29 1604.11 1384.16 1574.61 1395.75 1545 L 1473.04 1355.04 C 1501.57 1284.05 1530.19 1209.81 1560.3 1139.62 C 1497.1 1123.73 1438.62 1100.53 1384.66 1063.31 C 1348.71 1038.27 1315.82 1009.1 1286.68 976.394 C 1186.26 864.84 1145.48 735.256 1118.87 590.062 C 1107.27 523.663 1098.8 456.755 1093.5 389.56 C 1092.45 376.644 1089.13 341.733 1090.33 330.185 C 1090.96 323.984 1093.23 318.062 1096.91 313.031 C 1104.31 302.869 1113.98 299.132 1125.78 297.266 z`}),(0,P.jsx)(`path`,{className:`tonight-star`,d:`M 1020.4 910.18 C 1060.88 906.364 1072.1 945.648 1086.85 975.382 C 1103.45 1008.71 1119.8 1042.16 1135.89 1075.73 C 1171.84 1078.24 1211.41 1087.13 1247.49 1090.9 C 1266.2 1092.85 1299.75 1095.72 1313.12 1108.67 C 1321.51 1116.91 1326.3 1128.15 1326.45 1139.91 C 1326.71 1165.42 1300.47 1185.02 1283.56 1202.45 L 1203.64 1284.55 C 1211.33 1340.12 1225.03 1395.35 1232.08 1450.58 C 1235.83 1479.98 1197.3 1501.25 1172.29 1490.91 C 1156.9 1484.54 1142 1475.06 1127.44 1467.09 C 1095.67 1449.52 1063.66 1432.41 1031.4 1415.75 C 1029.28 1414.98 1027.91 1414.04 1025.8 1414.8 C 1014.16 1419.01 999.596 1426.87 988.946 1432.71 L 921.383 1469.06 C 907.676 1476.46 890.497 1486.84 875.905 1491.82 C 858.643 1497.72 835.929 1489.65 826.549 1473.59 C 816.678 1456.69 821.962 1439.82 824.945 1421.98 L 833.303 1371.11 C 837.773 1344.84 841.925 1310.17 847.957 1285.02 C 825.352 1262.5 803.174 1238.09 780.372 1215.45 C 765.372 1199.75 749.615 1184.67 735.251 1168.39 C 722.706 1154.17 721.732 1133.39 731.154 1117.44 C 736.171 1109.07 743.916 1102.68 753.087 1099.34 C 760.433 1096.64 783.171 1093.98 791.866 1092.74 L 872.023 1081.29 C 885.551 1079.44 903.526 1078.07 916.37 1074.72 C 921.977 1065.2 930.21 1046.33 935.529 1035.42 L 969.142 967.882 C 982.243 941.22 988.159 916.761 1020.4 910.18 z`})]})}function Wi(){return(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":!0,focusable:`false`,className:`pointer-events-none absolute inset-0 size-4 overflow-visible`,children:[(0,P.jsx)(`circle`,{className:`coin coin--1`,cx:`5`,cy:`4.5`,r:`1.5`}),(0,P.jsx)(`circle`,{className:`coin coin--2`,cx:`8`,cy:`3.1`,r:`1.7`}),(0,P.jsx)(`circle`,{className:`coin coin--3`,cx:`11`,cy:`4.5`,r:`1.5`})]})}function Gi(){return(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":!0,focusable:`false`,className:`pointer-events-none absolute inset-0 size-4 overflow-visible`,children:[(0,P.jsx)(`path`,{className:`ink-line ink-line--1`,pathLength:1,d:`M5 13.2 H13.5`}),(0,P.jsx)(`path`,{className:`ink-line ink-line--2`,pathLength:1,d:`M5 15.2 H10`})]})}function Ki({className:e}){return(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,focusable:`false`,className:w(`shrink-0 overflow-visible`,e),children:[(0,P.jsx)(`rect`,{className:`gift-body`,x:`3`,y:`8`,width:`10`,height:`5.6`,rx:`1`}),(0,P.jsx)(`rect`,{className:`gift-lid`,x:`2.2`,y:`5.6`,width:`11.6`,height:`2.6`,rx:`0.7`}),(0,P.jsxs)(`g`,{className:`gift-ribbon`,children:[(0,P.jsx)(`path`,{className:`gift-strand`,d:`M8 6 V13.2`}),(0,P.jsxs)(`g`,{className:`gift-bow`,children:[(0,P.jsx)(`ellipse`,{cx:`6.5`,cy:`4.5`,rx:`1.5`,ry:`1.05`,transform:`rotate(-20 6.5 4.5)`}),(0,P.jsx)(`ellipse`,{cx:`9.5`,cy:`4.5`,rx:`1.5`,ry:`1.05`,transform:`rotate(20 9.5 4.5)`}),(0,P.jsx)(`circle`,{cx:`8`,cy:`4.8`,r:`0.72`})]})]}),(0,P.jsx)(`rect`,{className:`confetti confetti--1`,x:`6.0`,y:`2.2`,width:`1.6`,height:`1.6`,rx:`0.4`}),(0,P.jsx)(`rect`,{className:`confetti confetti--5`,x:`7.3`,y:`1.5`,width:`1.5`,height:`1.5`,rx:`0.4`}),(0,P.jsx)(`rect`,{className:`confetti confetti--2`,x:`8.5`,y:`2.2`,width:`1.6`,height:`1.6`,rx:`0.4`}),(0,P.jsx)(`rect`,{className:`confetti confetti--3`,x:`4.6`,y:`3.0`,width:`1.4`,height:`1.4`,rx:`0.4`}),(0,P.jsx)(`rect`,{className:`confetti confetti--4`,x:`10.0`,y:`3.0`,width:`1.4`,height:`1.4`,rx:`0.4`})]})}function qi(){return(0,P.jsxs)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute -right-0.5 -top-0.5 grid size-2 place-items-center`,children:[(0,P.jsx)(`span`,{className:`fx-signal absolute size-2 roun
1ded-full ring-1 ring-live`}),(0,P.jsx)(`span`,{className:`fx-signal fx-signal--2 absolute size-2 rounded-full ring-1 ring-live`}),(0,P.jsx)(`span`,{className:`live-dot relative size-2 rounded-full bg-live on-air-pulse`})]})}function Ji(){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Le,{weight:`fill`,"aria-hidden":!0,className:`bookmark-sweep pointer-events-none absolute inset-0 m-auto size-4 text-primary-bright`}),(0,P.jsx)(tt,{weight:`fill`,"aria-hidden":!0,className:`bookmark-sparkle pointer-events-none absolute -right-1 -top-1 size-2 text-accent`})]})}function Yi({className:e}){return(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":!0,focusable:`false`,className:w(`shrink-0 overflow-visible`,e),children:[(0,P.jsx)(`rect`,{className:`live-bar live-bar--1`,x:`1.02`,y:`5.5`,width:`2.1`,height:`5`,rx:`1.05`}),(0,P.jsx)(`rect`,{className:`live-bar live-bar--2`,x:`4.97`,y:`3.5`,width:`2.1`,height:`9`,rx:`1.05`}),(0,P.jsx)(`rect`,{className:`live-bar live-bar--3`,x:`8.92`,y:`4.75`,width:`2.1`,height:`6.5`,rx:`1.05`}),(0,P.jsx)(`rect`,{className:`live-bar live-bar--4`,x:`12.87`,y:`6.25`,width:`2.1`,height:`3.5`,rx:`1.05`})]})}function Xi(){let{toggleSidebar:e,state:t}=U(),n=t===`collapsed`;return(0,P.jsx)(St,{type:`button`,size:`sm`,onClick:e,"aria-label":n?`Expand sidebar`:`Collapse sidebar`,title:n?`Expand sidebar`:`Collapse sidebar`,className:w(`text-muted-dim hover:bg-sidebar-accent hover:text-foreground`,`group-data-[collapsible=icon]:text-primary-bright`),children:(0,P.jsx)(ei,{collapsed:n,className:`size-4`})})}function Zi(){let{t:e,locale:t}=E(),n=f({select:e=>e.location.pathname}),i=Ae(n),a=i===`/tonight`,o=yr()||zt.length>0?Hi:Hi.filter(e=>e.to!==`/live`);return(0,P.jsxs)(Br,{collapsible:`icon`,side:Me(t)===`rtl`?`right`:`left`,children:[(0,P.jsx)(Wr,{children:(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2 group-data-[collapsible=icon]:justify-center`,children:[(0,P.jsxs)(r,{to:T(`/`,t),"aria-label":`Prelulu home`,className:`group/logo flex items-center gap-1.5 px-1 py-1.5 group-data-[collapsible=icon]:hidden`,children:[(0,P.jsx)(at,{className:`size-6 shrink-0 translate-y-px`}),(0,P.jsxs)(`span`,{className:`font-display text-xl font-semibold leading-none`,children:[`pre`,(0,P.jsx)(`span`,{className:`text-primary-bright`,children:`lulu`})]})]}),(0,P.jsx)(Xi,{})]})}),(0,P.jsxs)(Kr,{children:[(0,P.jsx)(G,{children:(0,P.jsxs)(K,{children:[o.map(a=>{let o=a.to===`/`?i===`/`:n===a.to||n.startsWith(`${a.to}/`),s=a.icon,c=e(a.labelKey);return(0,P.jsx)(q,{children:(0,P.jsx)(Yr,{asChild:!0,isActive:o,tooltip:c,children:(0,P.jsxs)(r,{to:je(a.to,t),"data-testid":a.to===`/`?`nav-discover`:void 0,"aria-current":o?`page`:void 0,className:`fx-row`,children:[a.to===`/invite`?(0,P.jsx)(`span`,{className:`relative grid size-4 shrink-0 place-items-center`,children:(0,P.jsx)(Ki,{className:`size-4`})}):a.deco?(0,P.jsxs)(`span`,{className:`relative grid size-4 shrink-0 place-items-center`,children:[(0,P.jsx)(s,{weight:o?`fill`:`duotone`,className:w(`size-4`,a.anim,a.deco===`rose`&&`bookmark-base`)}),a.deco===`coins`?(0,P.jsx)(Wi,{}):a.deco===`ink`?(0,P.jsx)(Gi,{}):a.deco===`live`?(0,P.jsx)(qi,{}):(0,P.jsx)(Ji,{})]}):(0,P.jsx)(s,{weight:o?`fill`:`duotone`,className:a.anim}),(0,P.jsx)(`span`,{className:`truncate`,children:c})]})})},a.to)}),(0,P.jsx)(`li`,{"aria-hidden":!0,className:`mx-2 my-1.5 h-px bg-sidebar-border group-data-[collapsible=icon]:hidden`}),(0,P.jsx)(q,{children:(0,P.jsx)(Yr,{asChild:!0,isActive:a,tooltip:e(`nav.tonight`),children:(0,P.jsxs)(r,{to:T(`/tonight`,t),"data-testid":`nav-tonight`,"aria-current":a?`page`:void 0,className:`fx-row`,children:[(0,P.jsx)(Ui,{className:`size-4 shrink-0`}),(0,P.jsx)(`span`,{className:`tonight-label font-medium`,children:e(`nav.tonight`)})]})})})]})}),(0,P.jsx)(G,{className:`py-1 group-data-[collapsible=icon]:px-0`,children:(0,P.jsx)(K,{children:(0,P.jsx)(q,{children:(0,P.jsxs)(r,{to:T(`/pricing`,t),"data-testid":`nav-pricing`,"aria-label":`Prelulu+ â ${e(`account.upgrade.pillSub`)}`,title:`Prelulu+ â ${e(`account.upgrade.pillSub`)}`,className:`fx-row premium-border premium-fill flex items-center gap-2.5 rounded-xl px-3 py-1 font-semibold text-foreground shadow-e1 transition-shadow duration-300 ease-smooth hover:shadow-glow press-sm group-data-[collapsible=icon]:mx-auto group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:rounded-full group-data-[collapsible=icon]:p-0 group-data-[collapsible=icon]:sha
1dow-none group-data-[collapsible=icon]:[&::before]:hidden`,children:[(0,P.jsx)(`img`,{src:`/brand/mascot/moon-crown.png`,srcSet:`/brand/mascot/moon-crown-64.png 64w, /brand/mascot/moon-crown-128.png 128w, /brand/mascot/moon-crown-256.png 256w, /brand/mascot/moon-crown.png 512w`,sizes:`32px`,width:512,height:512,alt:``,"aria-hidden":!0,draggable:!1,className:`size-7 shrink-0 select-none object-contain fx-twinkle brightness-110 group-data-[collapsible=icon]:size-7 [filter:drop-shadow(0_0_5px_color-mix(in_oklch,var(--premium)_72%,transparent))_drop-shadow(0_0_12px_color-mix(in_oklch,var(--accent)_45%,transparent))]`}),(0,P.jsx)(`span`,{className:`text-sm font-semibold tracking-tight group-data-[collapsible=icon]:hidden`,children:`Prelulu+`}),(0,P.jsx)(Yi,{className:`ml-auto size-4 group-data-[collapsible=icon]:hidden`})]})})})}),(0,P.jsx)(Ci,{}),(0,P.jsx)(Ti,{})]}),(0,P.jsxs)(Gr,{children:[(0,P.jsx)(Ft,{leading:(0,P.jsx)(at,{className:`size-5 shrink-0`}),className:`flex min-h-11 items-center gap-2 rounded-lg px-2 text-sm text-muted-foreground transition-interactive hover:bg-sidebar-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`}),(0,P.jsx)(Bi,{}),(0,P.jsx)(Mi,{})]}),(0,P.jsx)(Hr,{})]})}function Qi({states:e,navigate:t,aboveComposer:n=!1}){let{isAdmin:r}=Bt(),a=i(),[o,s]=(0,N.useState)(!1),c=Vt(),l=Pe(),[,u]=(0,N.useState)(0),d=o&&l.length>0;if((0,N.useEffect)(()=>{if(!d)return;let e=setInterval(()=>u(e=>e+1),250);return()=>clearInterval(e)},[d]),!r)return null;let f={qc:a,navigate:t},p=Date.now(),m=[];for(let t of e)(m.find(e=>e.group===t.group)??m[m.push({group:t.group,items:[]})-1]).items.push(t);return(0,P.jsx)(`div`,{className:`fixed right-4 z-[120] print:hidden ${n?`bottom-28`:`bottom-4`}`,children:(0,P.jsxs)(De,{open:o,onOpenChange:s,children:[(0,P.jsx)(Ee,{asChild:!0,children:(0,P.jsxs)(`button`,{type:`button`,title:c.size?`${c.size} fault${c.size>1?`s`:``} armed â this app is pretending to be broken`:`Admin only â summon app states for debugging`,className:`inline-flex items-center gap-2 rounded-full border bg-card/90 px-3 py-2 text-xs font-medium shadow-e2 backdrop-blur-xl transition-interactive press ${c.size?`border-warning text-warning opacity-100`:`border-border text-muted-foreground opacity-60 hover:text-foreground hover:opacity-100`}`,children:[(0,P.jsx)(Re,{weight:`fill`,"aria-hidden":!0,className:`size-3.5`}),c.size?`${c.size} fault${c.size>1?`s`:``} armed`:`Debug`]})}),(0,P.jsx)(Te,{side:`top`,align:`end`,className:`max-h-[min(70vh,32rem)] w-64 overflow-y-auto p-3`,children:(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,P.jsx)(`p`,{className:`eyebrow font-semibold text-muted-dim`,children:`Debug states · admin`}),m.map(e=>(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground`,children:e.group}),(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.items.map(e=>(0,P.jsx)(`button`,{type:`button`,title:e.note,onClick:()=>e.run(f),className:`press-sm rounded-md border border-border bg-card px-2 py-1 text-[11px] font-medium text-foreground transition-colors duration-200 ease-smooth hover:border-active-line hover:bg-active-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:e.label},e.id))})]},e.group)),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5 border-t border-border pt-2.5`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,P.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Faults`}),c.size?(0,P.jsx)(`button`,{type:`button`,onClick:Wt,className:`text-[10px] font-medium text-warning underline-offset-2 transition-colors duration-200 ease-smooth hover:underline`,children:`Clear all`}):null]}),(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Gt.map(e=>{let t=c.has(e.id);return(0,P.jsx)(`button`,{type:`button`,"aria-pressed":t,title:`${e.what}\n\nHolds: ${e.summons} (${(Ht(e.summons)?.exits.find(e=>e.kind===`timer`)?.budgetMs??0)/1e3}s budget)`,onClick:()=>Ut(e.id),className:`press-sm rounded-md border px-2 py-1 text-[11px] font-medium transition-colors duration-200 ease-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${t?`border-warning bg-warning/15 text-warning`:`border-border bg-card text-foreground hover:border-active-line hover:bg-active-tint`}`,children:e.label},e.id)})})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5 border-t border-border pt-2.5`,children:[(0,P.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Holding`}),l.length===0?(0,P.jsx)(`p`,{className:`text-[10px] text-muted-dim`,children:`Nothing is blocking â no clocks running.`}):l.map(e=>{let t=p-e.startedAt,n=Math.min(100,t/e.budgetMs*100);return(0,P.jsxs)(`div`,{className:`flex flex-col gap-1`,title:Ht(e.name)?.what,children:[(0,P.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2 font-mono text-[10px]`,children:[(0,P.jsx)(`span`,{className:`text-foreground`,children:e.name}),(0,P.jsxs)(`span`,{className:n>75?`text-warning`:`text-muted-dim`,children:[(t/1e3).toFixed(1),`s / `,(e.budgetMs/1e3).toFixed(0),`s`]})]}),(0,P.jsx)(`div`,{className:`h-0.5 overflow-hidden rounded-full bg-active-tint`,children:(0,P.jsx)(`div`,{className:`h-full rounded-full ${n>75?`bg-warning`:`bg-muted-dim`}`,style:{width:`${n}%`}})})]},`${e.name}-${e.startedAt}`)})]})]})})]})})}var $i=[{id:`onboarding-open`,group:`Onboarding`,label:`Open picker`,run:()=>yt(`manual`)},{id:`onboarding-reset`,group:`Onboarding`,label:`Reset + reopen`,note:`clears the 'seen' flag so the first-visit auto-open can fire again`,run:()=>{vt(),yt(`manual`)}},{id:`wall-auth`,group:`Walls`,label:`Auth / signup`,run:()=>We(void 0,{title:`Don't lose him`,description:`Create an account to keep your story.`},`debug`)},{id:`wall-credit`,group:`Walls`,label:`Out of credits`,run:()=>Ue({required:120,balance:15,deficit:105,feature:`live`}
1,void 0,{title:`Keep tonight going`,description:`Top up to stay on the line.`})},{id:`wall-upgrade`,group:`Walls`,label:`Top up (video)`,run:()=>Ue({required:120,balance:15,deficit:105,feature:`live`},void 0,{title:`See their face`,description:`A few more credits brings them to video.`})},{id:`checkin-show`,group:`Check-in`,label:`Open daily gift`,run:({navigate:e})=>e({to:`/wallet`})},{id:`checkin-reset`,group:`Check-in`,label:`Refresh eligibility`,run:({qc:e})=>{e.invalidateQueries({queryKey:c})}},{id:`nav-wallet`,group:`Jump to`,label:`Wallet`,run:({navigate:e})=>e({to:`/wallet`})},{id:`nav-pricing`,group:`Jump to`,label:`Pricing`,run:({navigate:e})=>e({to:`/pricing`})}];function ea(){let{t:e}=E(),{data:t}=A(),n=t?.user?.id??null,[r,i]=(0,N.useState)(!1),o=(0,N.useRef)(!1);(0,N.useEffect)(()=>{i(!1),o.current=!1},[n]);let{data:s}=a({queryKey:[`moment-takeover`,n],enabled:!!n,queryFn:async()=>await lt(ut.api.moments.get()).catch(()=>({takeover:null})),staleTime:1/0,retry:!1}),c=s?.takeover??null;return(0,N.useEffect)(()=>{!c||o.current||(o.current=!0,O(D.momentSeen,{campaign:c.campaignId,reward_minutes:c.rewardMinutes}))},[c]),!c||r?null:(0,P.jsx)(_e,{open:!0,onOpenChange:e=>!e&&i(!0),children:(0,P.jsxs)(he,{className:`max-w-sm overflow-hidden p-0`,children:[(0,P.jsx)(`div`,{className:`relative aspect-[3/2] w-full overflow-hidden bg-active-tint`,children:c.imageUrl?(0,P.jsx)(_t,{src:c.imageUrl,alt:``,className:`size-full object-cover`}):(0,P.jsx)(`div`,{className:`grid size-full place-items-center bg-gradient-to-br from-active-tint to-secondary`,children:(0,P.jsx)(`img`,{src:`/brand/mascot/moon-star.png`,alt:``,"aria-hidden":!0,draggable:!1,className:`size-20 select-none object-contain`})})}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3 p-5`,children:[(0,P.jsx)(ge,{className:`font-display text-xl leading-tight text-foreground`,children:c.title}),(0,P.jsx)(fe,{className:`text-sm leading-relaxed text-muted-foreground`,children:c.body}),c.rewardMinutes>0?(0,P.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-primary-bright/25 bg-primary/10 px-3 py-2`,children:[(0,P.jsx)(tt,{weight:`fill`,className:`size-4 shrink-0 text-primary-bright`}),(0,P.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:e(`common.momentRewardPill`,{mins:c.rewardMinutes,s:c.rewardMinutes===1?``:`s`})})]}):null,(0,P.jsxs)(`div`,{className:`mt-1 flex flex-col gap-1.5`,children:[(0,P.jsx)(`button`,{type:`button`,onClick:()=>{O(D.momentActed,{campaign:c.campaignId}),c.href?(lt(ut.api.moments.post({campaignId:c.campaignId},{fetch:{keepalive:!0}})).catch(()=>{}),window.location.href=c.href):i(!0)},className:w(h({size:`default`}),`w-full`),children:c.ctaLabel||e(`common.momentDefaultCta`)}),(0,P.jsx)(`button`,{type:`button`,onClick:()=>i(!0),className:`w-full rounded-lg py-1.5 text-xs text-muted-foreground transition-colors duration-200 ease-smooth hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:e(`common.momentLater`)})]})]})]})})}function ta({children:e,bare:t=!1,bleed:n=!1,collapsedSidebar:i=!1,viewportLocked:a=!1}){let o=u(),{t:c,locale:l}=E();return(0,P.jsxs)(zr,{defaultOpen:!i,ignoreRememberedOpen:a,className:a?`h-dvh max-h-dvh min-h-0 overflow-hidden`:void 0,children:[(0,P.jsx)(`a`,{href:`#main-content`,className:`sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-50 focus:rounded-lg focus:bg-primary focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-primary-foreground`,children:c(`common.skipToContent`)}),(0,P.jsx)(Zi,{}),(0,P.jsxs)(Ur,{className:a?`h-dvh max-h-dvh min-h-0 overflow-hidden`:void 0,children:[t?null:(0,P.jsxs)(`header`,{className:`sticky top-0 z-30 flex h-14 shrink-0 items-center gap-2 border-b border-border bg-background/80 px-4 backdrop-blur-xl lg:hidden`,children:[(0,P.jsx)(Vr,{className:`-ml-1 shrink-0 text-muted-foreground hover:text-foreground`,children:(0,P.jsx)(Ke,{weight:`bold`,className:`size-5`})}),(0,P.jsx)(`span`,{"aria-hidden":!0,className:`h-5 w-px shrink-0 bg-border`}),(0,P.jsx)(r,{to:T(`/`,l),"aria-label":c(`common.homeAriaLabel`),className:`inline-flex items-center rounded-lg transition-interactive press-sm`,children:(0,P.jsx)(ot,{})})]}),t?null:(0,P.jsx)(Pt,{className:`sticky top-14`}
1),(0,P.jsx)(`main`,{id:`main-content`,tabIndex:-1,className:w(`min-w-0 outline-none`,t?a?`flex h-full min-h-0 flex-1 flex-col overflow-hidden`:`flex min-h-0 flex-1 flex-col`:n?`flex flex-1 flex-col`:`flex-1 px-4 py-6 sm:px-6 lg:px-8`),children:e}),t?null:(0,P.jsx)(na,{}),(0,P.jsx)(Qi,{aboveComposer:t,states:$i,navigate:it(o)}),t?null:(0,P.jsx)(s,{}),t?null:(0,P.jsx)(ea,{})]})]})}function na(){let{t:e,locale:t}=E(),{localizedFooter:n}=d({from:`__root__`});return(0,P.jsx)(`footer`,{className:`bg-footer mt-auto px-4 pb-6 pt-16 sm:px-6 lg:px-8`,children:(0,P.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[88rem] flex-col gap-2 text-xs text-muted-foreground sm:flex-row sm:items-center sm:justify-between`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,P.jsx)(`img`,{src:`/brand/moon-sf-bridge.webp`,width:400,height:323,loading:`lazy`,decoding:`async`,alt:``,"aria-hidden":!0,draggable:!1,className:`h-8 w-auto shrink-0 select-none object-contain`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,P.jsx)(`p`,{className:`font-display text-sm font-medium text-foreground/90`,children:e(`common.tagline`)}),(0,P.jsx)(`p`,{className:`text-pretty text-[11px] leading-snug text-muted-dim`,children:e(`common.disclaimer`)})]})]}),(0,P.jsxs)(`nav`,{"aria-label":e(`common.navFooter`),className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,P.jsx)(Q,{to:`/pricing`,label:e(`common.pricing`)}),(0,P.jsx)(Q,{to:`/tropes`,label:e(`common.tropes`)}),(0,P.jsx)(Q,{to:`/glossary`,label:e(`common.glossary`)}),t===`en`||n?.blog?(0,P.jsx)(Q,{to:Ne(t),label:e(`common.blog`)}):null,(0,P.jsxs)(`a`,{href:Fe,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 font-medium transition-colors duration-200 ease-smooth hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,P.jsx)(Ge,{weight:`fill`,className:`size-4 shrink-0 text-primary-bright`}),`Discord`]}),(0,P.jsx)(oa,{localized:n}),(0,P.jsx)(sa,{})]})]})})}function Q({to:e,label:t}){let{locale:n}=E();return(0,P.jsx)(r,{to:je(e,n),"data-testid":`app-footer-${e.slice(1)}`,className:`font-medium transition-colors duration-200 ease-smooth hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:t})}var ra=[{to:`/ai-video-chat`,label:`Live video calls`},{to:`/realtime-ai-avatar`,label:`Live avatar guide`},{to:`/voice-call`,label:`AI voice calls`},{to:`/memory`,label:`Memory that remembers you`},{to:`/free-romance-chat`,label:`Free romance chat`},{to:`/ai-companion-for-women`,label:`Built for connection`},{to:`/create-your-own-character`,label:`Create your own character`},{to:`/ai-dating-sim`,label:`AI dating sim`}],$=`block rounded-lg px-2.5 py-1.5 text-left text-foreground/85 transition-colors duration-200 ease-smooth hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,ia=`inline-flex cursor-pointer list-none items-center gap-1 font-medium transition-colors duration-200 ease-smooth hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden`,aa=`absolute bottom-full right-0 z-40 mb-2 flex flex-col gap-0.5 rounded-xl border border-border bg-card p-2 shadow-pop`;function oa({localized:e}){let{t,locale:n}=E(),i=n===`en`?ra:(e?.landers??[]).map(e=>({to:e.path,label:e.label}));return i.length===0?null:(0,P.jsxs)(`details`,{className:`group/feat relative`,children:[(0,P.jsxs)(`summary`,{className:ia,children:[t(`common.features`),(0,P.jsx)(ze,{weight:`bold`,className:`size-3 transition-transform duration-200 ease-smooth group-open/feat:rotate-180`})]}),(0,P.jsx)(`div`,{className:w(aa,`min-w-56`),children:i.map(e=>(0,P.jsx)(r,{to:e.to,className:$,children:e.label},e.to))})]})}function sa(){let{t:e}=E();return(0,P.jsxs)(`details`,{className:`group/legal relative`,children:[(0,P.jsxs)(`summary`,{className:ia,children:[e(`common.legal`),(0,P.jsx)(ze,{weight:`bold`,className:`size-3 transition-transform duration-200 ease-smooth group-open/legal:rotate-180`})]}),(0,P.jsxs)(`div`,{className:w(aa,`min-w-44`),children:[(0,P.jsx)(r,{to:`/terms`,className:$,children:e(`common.terms`)}),(0,P.jsx)(r,{to:`/privacy`,className:$,children:e(`common.privacy`)}),(0,P.jsx)(r,{to:`/cookies`,className:$,children:e(`common.cookies`)}),(0,P.jsx)(`button`,{type:`button`,onClick:()=>bt(),className:$,children:e(`common.privacyChoices`)})]})]})}export{br as _,Di as a,cr as b,wr as c,kr as d,Ar as f,H as g,xr as h,Oi as i,Or as l,Cr as m,Li as n,mi as o,Tr as p,Ei as r,hi as s,ta as t,jr as u,Sr as v,vr as y};
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.