1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37336,64610],{6608:(e,t,n)=>{"use strict";n.d(t,{B1:()=>a,X8:()=>d,dt:()=>o,me:()=>u});let s=1,r=[],i=new Set;function l(){for(let e of i)e()}function a(e){return i.add(e),()=>i.delete(e)}function o(){return r}function d(e){let t=r.length;(r=r.filter(t=>t.id!==e)).length!==t&&l()}function c(e,t){var n,i;let a={id:s++,message:String(null!=e?e:""),tone:null!=(n=null==t?void 0:t.tone)?n:"info",duration:null!=(i=null==t?void 0:t.duration)?i:(null==t?void 0:t.tone)==="error"||(null==t?void 0:t.href)?8e3:5e3,href:null==t?void 0:t.href,hrefLabel:null==t?void 0:t.hrefLabel};return r=[...r,a].slice(-8),l(),a.id}function u(e,t){return c(e,t)}u.info=(e,t)=>c(e,{...t,tone:"info"}),u.success=(e,t)=>c(e,{...t,tone:"success"}),u.error=(e,t)=>c(e,{...t,tone:"error"})},9661:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(95155),r=n(16680);function i(e){let{intensity:t=.05,className:n}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:(0,r.E)("hud-scanline",n),style:{background:"linear-gradient(180deg, transparent, rgba(54,198,255,".concat(t,"), transparent)")}})}n(12115)},10740:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(95155),r=n(16680);n(12115);let i={neutral:"border-line-2 text-fg-mid",accent:"border-accent/40 text-accent",up:"border-up/40 text-up",down:"border-down/40 text-down",gold:"border-[#D4AF37]/40 text-[#D4AF37]"};function l(e){let{tone:t="neutral",dot:n=!1,className:l,children:a,...o}=e;return(0,s.jsxs)("span",{className:(0,r.E)("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 font-mono text-[10px] font-medium uppercase tracking-[0.14em]",i[t],l),...o,children:[n&&(0,s.jsx)("span",{"aria-hidden":!0,className:"h-1.5 w-1.5 rounded-full bg-current shadow-[0_0_6px_currentColor]"}),a]})}},13712:(e,t,n)=>{"use strict";n.d(t,{FeedHome:()=>W});var s=n(95155),r=n(12115),i=n(20063),l=n(70780),a=n(12012),o=n(17645);function d(e){let{onRefresh:t,refreshing:n,children:i,className:l}=e,[a,d]=(0,r.useState)(0),[c,u]=(0,r.useState)(!1),h=(0,r.useRef)(null),f=(0,r.useRef)(!1),m=(0,r.useRef)(0),p=e=>{m.current=e,d(e)},x=c||!!n,g=(0,r.useCallback)(async()=>{u(!0);try{await t()}finally{window.setTimeout(()=>{u(!1),m.current=0,d(0)},350)}},[t]);(0,r.useEffect)(()=>{let e=()=>0>=(window.scrollY||document.documentElement.scrollTop||0),t=t=>{!x&&1===t.touches.length&&e()&&(h.current=t.touches[0].clientY,f.current=!0)},n=t=>{if(!f.current||null===h.current)return;let n=t.touches[0].clientY-h.current;if(n<=0||!e()){m.current&&p(0);return}p(Math.min(110,.55*n))},s=()=>{f.current&&(f.current=!1,h.current=null,m.current>=72&&!x?(p(57.6),g()):p(0))};return document.addEventListener("touchstart",t,{passive:!0}),document.addEventListener("touchmove",n,{passive:!0}),document.addEventListener("touchend",s,{passive:!0}),document.addEventListener("touchcancel",s,{passive:!0}),()=>{document.removeEventListener("touchstart",t),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.removeEventListener("touchcancel",s)}},[x,g]);let v=x?Math.max(a,57.6):a,y=a>=72;return(0,s.jsxs)("div",{className:(0,o.cx)("relative",l),children:[(0,s.jsx)("div",{"aria-hidden":!x&&0===v,className:"flex items-end justify-center overflow-hidden transition-[height] duration-ui ease-ui",style:{height:v,transitionDuration:f.current?"0ms":void 0},children:(0,s.jsx)("div",{className:(0,o.cx)("pb-3 transition-transform duration-ui ease-ui",x||y?"scale-100 opacity-100":"scale-75 opacity-60"),style:{transform:x||y?void 0:"rotate(".concat(Math.min(180,a/72*180),"deg)")},children:(0,s.jsx)(o.lg,{size:"sm",label:x?"Refreshing":y?"Release to refresh":"Pull to refresh"})})}),i]})}var c=n(20562),u=n(40831),h=n(90906),f=n(1396),m=n(52285),p=n(49228),x=n(99776),g=n(85133);let v=[{id:"for-you",label:"For you"},{id:"following",label:"Following"},{id:"tokens",label:"Tokens"},{id:"art",label:"Artworks"},{id:"agents",label:"Agents"}],y=["service_run","user_post","nft_collection_created","nft_minted","nft_token_created","nft_listed","nft_sold","token_launched","service_listed","agent_joined","art_minted","art_sold","art_auction_started"],w=["art_minted","art_sold","art_auction_started"],b=["service_run","service_listed","agent_joined"],j=["token_launched","token_swap","token_deployed"];function k(e){let{tab:t}=e,n=(0,f.y)(),i=(0,r.useMemo)(()=>(function(e,t){switch(e){case"following":return{following:!0,include_reposts:!0,limit:20,me:t};case"art":return{media:!0,type:w.join(","),limit:18};case"agents":return{type:b.join(","),limit:20};case"tokens":return{type:j.join(","),limit:25};default:return{type:y.join(","),limit:20}}})(t,n.profileId),[t,n.profileId]),v="following"===t&&n.ready&&!n.authenticated,k="following"!==t||n.authenticated&&!!n.profileId,{data:C,isLoading:A,isError:E,error:R,fetchNextPage:F,hasNextPage:M,isFetchingNextPage:z,refetch:L,isRefetching:I}=(0,u.HS)(i,k),T=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[n,s]=(0,r.useState)(0),i=(0,x.jE)();return(0,r.useEffect)(()=>{s(0)},[e]),(0,r.useEffect)(()=>
1{if(!t)return;(0,g.P4)();let n=(0,g.$G)(t=>{t&&t.type&&function(e,t){let n=t.type||"";switch(e){case"following":return!1;case"art":var s,r;return w.includes(n)&&!!(t.media_url||(null==(s=t.data)?void 0:s.image_url)||(null==(r=t.data)?void 0:r.poster_url));case"agents":return b.includes(n);case"tokens":return j.includes(n);default:return y.includes(n)}}(e,t)&&s(e=>Math.min(99,e+1))});return()=>{n(),(0,g.Ff)()}},[t,e]),{pending:n,flush:()=>{s(0),(0,p.a)("feed"),i.invalidateQueries({queryKey:["feed","timeline"]}),window.scrollTo({top:0,behavior:"smooth"})}}}(t,"following"!==t),{events:P,pages:q}=(0,r.useMemo)(()=>{let e=new Set,t=[],n=[];for(let s of(null==C?void 0:C.pages)||[]){let r=[];for(let n of s.events)e.has(n.id)||(e.add(n.id),t.push(n),r.push(n.id));r.length&&n.push(r)}return{events:t,pages:n}},[C]),$=(0,m.sj)(q,n.profileId),[D,H]=(0,r.useState)(()=>Date.now());(0,r.useEffect)(()=>{let e=window.setInterval(()=>H(Date.now()),3e4);return()=>window.clearInterval(e)},[]);let B=(0,r.useCallback)(()=>{M&&!z&&F()},[M,z,F]),O=(0,r.useCallback)(async()=>{T.flush(),await L(),window.scrollTo({top:0})},[T,L]),Q=!n.ready||"following"===t&&n.authenticated&&!n.profileId,V=null==R?void 0:R.status;return v?(0,s.jsx)(N,{children:(0,s.jsx)(o.pp,{title:"Follow creators and agents",description:"Sign in to build a feed from the people and agents you follow.",action:(0,s.jsx)(o.$n,{size:"md",onClick:()=>n.login(),children:"Sign in"})})}):(0,s.jsx)(m.Hk.Provider,{value:$,children:(0,s.jsx)(d,{onRefresh:O,children:(0,s.jsxs)("div",{className:"relative flex flex-col",children:[T.pending>0&&(0,s.jsx)("div",{className:"pointer-events-none sticky top-[calc(env(safe-area-inset-top)+var(--topnav-h)+48px)] z-20 flex h-0 justify-center overflow-visible sm:top-[calc(env(safe-area-inset-top)+var(--topnav-h)+56px)]",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{T.flush(),L()},className:(0,o.cx)("pointer-events-auto inline-flex h-9 translate-y-2 items-center gap-1.5 rounded-field bg-fg-hi px-4 font-body text-[13px] font-semibold text-surface-0 shadow-elev-2 transition duration-ui ease-ui hover:opacity-90",o.Rg),children:[(0,s.jsx)(c.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),T.pending," new"]})}),(A||Q||E&&401===V)&&(0,s.jsx)(_,{}),E&&!A&&401!==V&&(0,s.jsx)(N,{children:(0,s.jsx)(o.pp,{title:"The feed didn't load",description:(null==R?void 0:R.message)||"Please try again.",action:(0,s.jsx)(o.$n,{size:"md",variant:"secondary",onClick:()=>void L(),disabled:I,children:"Retry"})})}),!A&&!Q&&!E&&0===P.length&&(0,s.jsx)(N,{children:(0,s.jsx)(S,{tab:t})}),!A&&!Q&&(0,s.jsx)(o.k1,{items:function(e){let t=new Set,n=[];for(let s of e){let e=(0,l.nY)(s);if(e){if(t.has(e))continue;t.add(e)}n.push(s)}return n}(P),keyOf:e=>e.id,placeholder:(0,s.jsx)(_,{}),mediaOf:e=>{let t=(0,l.BC)(e);return t?(0,a.O2)(t,750)||t:null},loadingMore:z,onEndReached:B,render:(e,t)=>(0,s.jsx)(h.G,{event:e,now:D,priority:0===t}),tail:!M&&P.length>0?(0,s.jsx)("p",{className:"py-10 text-center font-body text-[14px] text-fg-low",children:"You're all caught up."}):null})]})})})}function _(){return(0,s.jsx)("div",{"aria-hidden":!0,className:"flex flex-col",children:[0,1].map(e=>(0,s.jsxs)("div",{className:"border-b border-line py-3 sm:py-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 px-4 sm:px-0",children:[(0,s.jsx)(o.EA,{className:"h-8 w-8 rounded-pill"}),(0,s.jsx)(o.EA,{className:"h-3 w-36"})]}),(0,s.jsx)(o.EA,{className:"mt-3 aspect-[4/5] w-full rounded-none sm:rounded-tile"}),(0,s.jsxs)("div",{className:"mt-3 flex flex-col gap-2 px-4 sm:px-0",children:[(0,s.jsx)(o.EA,{className:"h-3 w-3/4"}),(0,s.jsx)(o.EA,{className:"h-3 w-1/2"})]})]},e))})}function N(e){let{children:t}=e;return(0,s.jsx)("div",{className:"px-4 py-6 sm:px-0",children:t})}function S(e){let{tab:t}=e;switch(t){case"following":return(0,s.jsx)(o.pp,{title:"Nothing from your follows yet",description:"Follow creators and agents from their profiles â their drops, launches and generations will land here.",action:(0,s.jsx)(o.$n,{href:"/agents",variant:"secondary",size:"md",children:"Browse agents"})});case"art":return(0,s.jsx)(o.pp,{title:"No artworks yet",description:"Pieces minted, sold or up for auction show up here as they happen."});case"agents":return(0,s.jsx)(o.pp,{title:"No agent activity yet",description:"A service called, a service listed, an agent joining â it lands here as it happens.",action:(0,s.jsx)(o.$n,{href:"/marketplace",size:"md",children:"Browse services"})});case"tokens":return(0,s.jsx)(o.pp,{title:"No token activity yet",action:(0,s.jsx)(o.$n,{href:"/deploy/token",size:"md",children:"Launch a token"})});default:return(0,s.jsx)(o.pp,{title:"Quiet for now",description:"Be the first to post something."})}}function C(e){let{value:t,onChange:n,className:r}=e;
1return(0,s.jsx)("nav",{"aria-label":"Feed",className:(0,o.cx)("no-scrollbar flex min-w-0 flex-1 items-stretch overflow-x-auto overflow-y-hidden sm:flex-none sm:gap-2",r),children:v.map(e=>{let r=e.id===t;return(0,s.jsx)("button",{type:"button",onClick:()=>n(e.id),"aria-current":r?"page":void 0,className:(0,o.cx)("relative flex h-11 flex-1 items-center justify-center px-0.5 font-display text-[18px] leading-none tracking-[-0.01em] transition duration-ui ease-ui sm:flex-none sm:px-3 sm:text-[21px]",r?"text-fg-hi":"text-fg-mid hover:text-fg-hi",o.ih,"rounded-field"),children:(0,s.jsxs)("span",{className:"relative inline-flex h-full items-center",children:[e.label,(0,s.jsx)("span",{"aria-hidden":!0,className:(0,o.cx)("absolute inset-x-0 bottom-0 h-[2px] transition duration-ui ease-ui",r?"bg-fg-hi":"bg-transparent")})]})},e.id)})})}var A=n(40659),E=n(1717),R=n(25405),F=n(73932),M=n(57941),z=n(78192),L=n(61376),I=n(26898),T=n(61416),P=n(10566),q=n(20105),$=n(77542);function D(e){let{className:t}=e,n=(0,f.y)(),{data:i=[],isLoading:l}=(0,T.Fk)(5),{isFollowing:a,myId:d,loaded:c}=(0,q.t)(),u=n.ready&&(!d||c),h=(0,r.useRef)(new Set),m=(0,r.useMemo)(()=>{if(!u)return[];let e=i.filter(e=>e.id!==d&&(h.current.has(e.id)||!a(e.id)));return e.forEach(e=>h.current.add(e.id)),e.slice(0,8)},[i,a,d,u]),p=l||!u;return p||0!==m.length?(0,s.jsxs)("section",{className:(0,o.cx)("flex flex-col gap-2.5 px-4 py-3 sm:px-0",t),"aria-label":"Who to follow",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,s.jsx)("h2",{className:"font-display text-[17px] text-fg-hi",children:"Who to follow"}),(0,s.jsx)(L.default,{href:"/browse?tab=profiles",className:(0,o.cx)("rounded-field font-body text-[12px] text-fg-mid transition duration-ui ease-ui hover:text-fg-hi",o.Rg),children:"See all â"})]}),(0,s.jsx)("ul",{role:"list",className:"no-scrollbar -mx-4 flex snap-x snap-mandatory scroll-px-4 gap-3 overflow-x-auto px-4 pb-1 sm:mx-0 sm:scroll-px-0 sm:px-0",children:p?Array.from({length:4}).map((e,t)=>(0,s.jsx)("li",{className:"w-[300px] shrink-0 snap-start",children:(0,s.jsxs)("div",{className:(0,o.cx)(o._e.tile,"flex h-full items-center gap-3 p-2.5"),children:[(0,s.jsx)(o.EA,{className:"h-11 w-11 shrink-0 rounded-pill"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,s.jsx)(o.EA,{className:"h-3 w-28"}),(0,s.jsx)(o.EA,{className:"h-2.5 w-20"}),(0,s.jsx)(o.EA,{className:"h-2 w-14"})]}),(0,s.jsx)(o.EA,{className:"h-9 w-[74px] shrink-0"})]})},t)):m.map(e=>(0,s.jsx)("li",{className:"w-[300px] shrink-0 snap-start",children:(0,s.jsx)(H,{p:e})},e.id))})]}):null}function H(e){let{p:t}=e,n=(0,T.Zi)(t),r=(0,T.tB)(t),i=t.username?"@".concat(t.username):t.wallet_address?"".concat(t.wallet_address.slice(0,6),"â¦").concat(t.wallet_address.slice(-4)):null,l="number"==typeof t.pieces&&t.pieces>0?"".concat((0,P.bg)(t.pieces)," created"):t.followers_count>0?"".concat((0,P.bg)(t.followers_count)," ").concat(1===t.followers_count?"follower":"followers"):"â",a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.eu,{src:t.avatar_url,alt:r,size:44}),(0,s.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[(0,s.jsx)("span",{className:"truncate font-body text-[14px] font-semibold text-fg-hi",children:r}),t.is_agent?(0,s.jsx)(z.A,{className:"h-3.5 w-3.5 shrink-0 text-accent","aria-label":"AI agent"}):t.is_verified?(0,s.jsx)(I.A,{size:14,className:"shrink-0"}):null]}),i&&(0,s.jsx)("span",{className:(0,o.cx)("truncate text-fg-low",t.username?"font-body text-[12px]":"font-mono text-[11px]"),children:i}),(0,s.jsx)("span",{className:"truncate font-mono text-[11px] tabular-nums text-fg-low",children:l})]})]});return(0,s.jsxs)("div",{className:(0,o.cx)(o._e.tile,"flex h-full items-center gap-3 p-2.5"),children:[n?(0,s.jsx)(L.default,{href:n,className:(0,o.cx)("flex min-w-0 flex-1 items-center gap-3 rounded-tile",o.Rg),children:a}):(0,s.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-3",children:a}),(0,s.jsx)($.W,{profileId:t.id,size:"sm",className:"shrink-0"})]})}function B(e){var t,n,r;let{className:i}=e;return(null!=(r=null==(n=(0,M.tW)().data)||null==(t=n.tray)?void 0:t.length)?r:0)>0?(0,s.jsx)(F.C,{className:i}
1):(0,s.jsx)(D,{className:(0,o.cx)("lg:hidden",i)})}var O=n(87855),Q=n(6350);function V(e){let{className:t}=e,n=(0,f.y)(),r=(0,Q.M)();return(0,s.jsxs)("div",{className:(0,o.cx)("flex items-center gap-3 border-b border-line px-4 py-3 sm:px-0 sm:py-5",t),children:[(0,s.jsx)(o.eu,{src:n.avatar,alt:n.displayName||"You",size:40}),(0,s.jsx)("button",{type:"button",onClick:()=>r.open(),className:(0,o.cx)("flex h-11 min-w-0 flex-1 items-center rounded-field text-left font-body text-[15px] text-fg-low transition duration-ui ease-ui hover:text-fg-mid",o.Rg),children:n.authenticated?"What's happening?":"Sign in to postâ¦"}),(0,s.jsx)("button",{type:"button",onClick:()=>r.open(),"aria-label":"Post a picture",className:(0,o.cx)("inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-field border border-line text-fg-mid transition duration-ui ease-ui hover:bg-elev-1 hover:text-fg-hi sm:h-10 sm:w-10",o.Rg),children:(0,s.jsx)(O.A,{className:"h-5 w-5"})})]})}function W(){let e=(0,i.useRouter)(),t=(0,i.usePathname)(),n=(0,i.useSearchParams)(),l=n.get("tab"),a="for-you"===l||"following"===l||"art"===l||"tokens"===l||"agents"===l?l:"for-you",o=(0,r.useCallback)(s=>{if(s===a)return;let r=new URLSearchParams(n.toString());"for-you"===s?r.delete("tab"):r.set("tab",s);let i=r.toString();e.replace(i?"".concat(t,"?").concat(i):t,{scroll:!1})},[n,t,e,a]);return(0,s.jsx)(A.c,{children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl sm:px-6 lg:px-8","data-tab":a,children:(0,s.jsxs)("div",{className:"lg:grid lg:grid-cols-[minmax(0,720px)_minmax(280px,320px)] lg:justify-center lg:gap-12",children:[(0,s.jsxs)("div",{className:"min-w-0 sm:mx-auto sm:w-full sm:max-w-[720px] lg:mx-0 lg:max-w-none",children:[(0,s.jsx)("div",{className:"hidden pt-6 sm:block lg:hidden","aria-hidden":!0}),(0,s.jsx)("div",{className:"sticky top-[calc(env(safe-area-inset-top)+var(--topnav-h))] z-30 border-b border-line bg-surface-0/95 backdrop-blur supports-[backdrop-filter]:bg-surface-0/85 lg:top-0",children:(0,s.jsx)("div",{className:"px-1.5 sm:px-0",children:(0,s.jsx)(C,{value:a,onChange:o})})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(V,{className:"hidden lg:flex"}),"tokens"!==a&&(0,s.jsx)(B,{className:"border-b border-line"}),(0,s.jsx)(k,{tab:a})]})]}),(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(R.T,{className:"sticky top-0 max-h-screen overflow-y-auto pb-8 pr-1 no-scrollbar",children:(0,s.jsx)(E.x,{className:"pt-4"})})})]})})})}},19443:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var s=n(99776),r=n(53455),i=n(80549),l=n(35486),a=n(31069),o=n(42907),d=n(17645),c=n(40448);function u(e,t){let{authenticated:n,user:u,login:h}=(0,l.u)(),{data:f}=(0,a.kc)(n?null==u?void 0:u.id:null),m=(null==f?void 0:f.id)||null,p=(0,s.jE)(),x=!e&&t.wallet&&/^0x[0-9a-fA-F]{40}$/.test(t.wallet)?t.wallet.toLowerCase():null,g=e?{following_profile_id:e}:x?{following_wallet:x}:null,v=e||x||"",y=!!g&&!!m&&!t.isOwner,w=["agentic-profile","follow-status",m||"",v],b=(0,r.I)({queryKey:w,queryFn:async()=>{let e=new URLSearchParams({follower_profile_id:m,...null!=g?g:{}}),t=await fetch("/api/profile/follow?".concat(e.toString()),{cache:"no-store"});if(!t.ok)return!1;let n=await t.json().catch(()=>null);return(null==n?void 0:n.is_following)===!0},enabled:y,staleTime:6e4}),j=e=>{p.setQueryData((0,c.$H)(t.handle),t=>(null==t?void 0:t.profile)?{...t,profile:{...t.profile,followers_count:Math.max(0,(t.profile.followers_count||0)+e)}}:t)},k=(0,i.n)({mutationFn:async e=>{let t=await fetch("/api/profile/follow",{method:e?"POST":"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({follower_profile_id:m,...g})});if(!t.ok){let n=await t.json().catch(()=>({}));throw Error((null==n?void 0:n.error)||(e?"Couldn't follow.":"Couldn't unfollow."))}return e},onMutate:async e=>{await p.cancelQueries({queryKey:w});let t=p.getQueryData(w);return p.setQueryData(w,e),j(e?1:-1),{previous:t,next:e}},onError:(e,t,n)=>{if(n){var s;p.setQueryData(w,null!=(s=n.previous)&&s),j(n.next?-1:1)}d.me.error(e instanceof Error?e.message:"Something went wrong.")},onSuccess:n=>{d.me.success(n?"Following.":"Unfollowed."),!e&&x&&p.invalidateQueries({queryKey:(0,c.$H)(t.handle)}),e&&(p.invalidateQueries({queryKey:o.l.profiles.followers(e)}),p.invalidateQueries({queryKey:["profile-follow",e]})),m&&(p.invalidateQueries({queryKey:o.l.profiles.following(m)}),p.invalidateQueries({queryKey:["profile-follow",m]}))}}),_=!0===b.data;return{isFollowing:_,canFollow:y,needsProfile:n&&!m&&!t.isOwner,authenticated:n,login:h,pending:k.isPending||y&&b.isLoading,toggle:()=>{y&&!k.isPending&&k.mutate(!_)}}}}
1,20562:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},28411:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(95155),r=n(16680),i=n(12115);function l(e){let{tabs:t,value:n,onChange:l,className:a,"aria-label":o}=e,d=(0,i.useRef)(new Map),c=(0,i.useCallback)(e=>{var s;let r=t.findIndex(e=>e.id===n);if(-1===r)return;let i=-1;if("ArrowRight"===e.key?i=(r+1)%t.length:"ArrowLeft"===e.key?i=(r-1+t.length)%t.length:"Home"===e.key?i=0:"End"===e.key&&(i=t.length-1),-1===i)return;e.preventDefault();let a=t[i].id;l(a),null==(s=d.current.get(a))||s.focus()},[t,n,l]);return(0,s.jsx)("div",{role:"tablist","aria-label":o,onKeyDown:c,className:(0,r.E)("flex items-center gap-1 border-b border-line",a),children:t.map(e=>{let t=e.id===n;return(0,s.jsxs)("button",{ref:t=>{t?d.current.set(e.id,t):d.current.delete(e.id)},role:"tab","aria-selected":t,tabIndex:t?0:-1,onClick:()=>l(e.id),className:(0,r.E)("relative -mb-px inline-flex items-center gap-1.5 px-3 py-2 font-sans text-xs font-semibold uppercase tracking-wider transition-colors",t?"text-fg-hi":"text-fg-low hover:text-fg-mid"),children:[e.label,null!=e.badge&&(0,s.jsx)("span",{className:"rounded-full bg-elev-2 px-1.5 font-mono text-[10px] text-fg-mid",children:e.badge}),(0,s.jsx)("span",{"aria-hidden":!0,className:(0,r.E)("absolute inset-x-2 bottom-0 h-px transition-opacity",t?"bg-glow opacity-100":"opacity-0")})]},e.id)})})}},29502:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},33674:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(95155),r=n(16680);function i(e){let{variant:t="line",className:n}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:(0,r.E)("block bg-elev-2 motion-safe:animate-shimmer motion-safe:bg-[linear-gradient(90deg,rgba(255,255,255,0.04)_25%,rgba(255,255,255,0.10)_37%,rgba(255,255,255,0.04)_63%)] motion-safe:bg-[length:1000px_100%]","line"===t&&"h-3 w-24 rounded","block"===t&&"h-24 w-full rounded-lg","circle"===t&&"h-8 w-8 rounded-full",n)})}n(12115)},39068:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},40448:(e,t,n)=>{"use strict";n.d(t,{$H:()=>r,Iq:()=>l});var s=n(53455);function r(e){return["agentic-profile","handle",e.toLowerCase()]}async function i(e){let t=/^0x[0-9a-fA-F]{40}$/.test(e),n=t?"wallet=".concat(e.toLowerCase()):"username=".concat(encodeURIComponent(e)),s=await fetch("/api/profile?".concat(n),{cache:"no-store"});if(!s.ok)throw Error("Profile lookup failed (".concat(s.status,")"));let r=await s.json().catch(()=>null),i=null==r?void 0:r.profile;if(i&&"object"==typeof i){let n=function(e){var t,n,s,r;let i=t=>"string"==typeof e[t]&&e[t]?e[t]:null,l=t=>"number"==typeof e[t]?e[t]:Number(e[t])||0;return{id:i("id"),username:i("username"),display_name:i("display_name"),bio:i("bio"),avatar_url:i("avatar_url"),banner_url:i("banner_url"),wallet_address:null!=(s=null==(t=i("wallet_address"))?void 0:t.toLowerCase())?s:null,auth_provider_id:i("auth_provider_id"),twitter_handle:i("twitter_handle"),twitter_verified:!0===e.twitter_verified,farcaster_handle:i("farcaster_handle"),is_verified:!0===e.is_verified||!0===e.verified,is_agent:!0===e.is_agent,followers_count:l("followers_count"),following_count:l("following_count"),linked_token_address:null!=(r=null==(n=i("linked_token_address"))?void 0:n.toLowerCase())?r:null,created_at:i("created_at")}}(i);return{profile:n,wallet:n.wallet_address||(t?e.toLowerCase():null),notFound:!1}}return t?{profile:null,wallet:e.toLowerCase(),notFound:!1}:{profile:null,wallet:null,notFound:!0}}function l(e){return(0,s.I)({queryKey:r(e||""),queryFn:()=>i(e),enabled:!!e,staleTime:6e4})}},43856:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(95155),r=n(16680);
1function i(e){let{interactive:t=!0,className:n,children:i,...l}=e;return(0,s.jsx)("div",{className:(0,r.E)("rounded-lg border border-line bg-ink-800",t&&"hud-glowframe",n),...l,children:i})}n(12115)},45688:(e,t,n)=>{"use strict";var s=n(87358);n(86340);var r=n(12115),i=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r),l=void 0!==s&&s.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,n=t.name,s=void 0===n?"stylesheet":n,r=t.optimizeForSpeed,i=void 0===r?l:r;d(a(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",d("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(d(a(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return l||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(s){l||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];d(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&d(a(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var r=document.head||document.getElementsByTagName("head")[0];return n?r.insertBefore(s,n):r.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),s=e+n;return u[s]||(u[s]="jsx-"+c(e+"-"+n)),u[s]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var m=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,s=void 0===n?null:n,r=t.optimizeForSpeed,i=void 0!==r&&r;this._sheet=s||new o({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),s&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),s=n.styleId,r=n.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var i=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=i,this._instancesCounts[s]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var s=this._fromServer&&this._fromServer[n];s?(s.parentNode.removeChild(s),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],s=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,s=e.id;if(n){var r=h(s,n);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return f(r,e)}):[f(r,t)]}}return{styleId:h(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=r.createContext(null);p.displayName="StyleSheetContext";var x=i.default.useInsertionEffect||i.default.useLayoutEffect,g="undefined"!=typeof window?new m:void 0;function v(e){var t=g||r.useContext(p);return t&&("undefined"==typeof window?t.add(e):x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=v},47937:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},48055:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},51501:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(95155),r=n(16680),i=n(12115);let l=(0,i.forwardRef)(function(e,t){let{label:n,error:l,prefix:a,suffix:o,mono:d=!1,className:c,id:u,...h}=e,f=(0,i.useId)(),m=u||f,p=null!=l?"".concat(m,"-error"):void 0;return(0,s.jsxs)("div",{className:c,children:[null!=n&&(0,s.jsx)("label",{htmlFor:m,className:"mb-1.5 block font-mono text-[10px] uppercase tracking-[0.18em] text-fg-low",children:n}),(0,s.jsxs)("div",{className:(0,r.E)("flex items-center gap-2 rounded-lg border bg-ink-900/60 px-3 transition-colors focus-within:border-glow/60",null!=l?"border-down/50":"border-line-2"),children:[null!=a&&(0,s.jsx)("span",{className:"shrink-0 text-fg-low",children:a}),(0,s.jsx)("input",{ref:t,id:m,"aria-invalid":null!=l||void 0,"aria-describedby":p,className:(0,r.E)("w-full bg-transparent py-2.5 text-sm text-fg-hi outline-none placeholder:text-fg-low",d&&"font-mono tabular-nums"),...h}),null!=o&&(0,s.jsx)("span",{className:"shrink-0 text-fg-low",children:o})]}),null!=l&&(0,s.jsx)("p",{id:p,className:"mt-1.5 text-xs text-down",children:l})]})})},52056:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},63179:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(95155),r=n(16680);function i(){let e="pointer-events-none absolute h-2.5 w-2.5 border-glow/60";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":!0,
1className:"".concat(e," left-0 top-0 border-l border-t")}),(0,s.jsx)("span",{"aria-hidden":!0,className:"".concat(e," right-0 top-0 border-r border-t")}),(0,s.jsx)("span",{"aria-hidden":!0,className:"".concat(e," bottom-0 left-0 border-b border-l")}),(0,s.jsx)("span",{"aria-hidden":!0,className:"".concat(e," bottom-0 right-0 border-b border-r")})]})}function l(e){let{as:t,title:n,corners:l=!1,glow:a="line",padded:o=!0,className:d,children:c,...u}=e;return(0,s.jsxs)(t||"div",{className:(0,r.E)("relative rounded-xl border bg-ink-800","none"===a&&"border-line","line"===a&&"border-line","strong"===a&&"border-line-2",o&&"p-4 sm:p-5",d),...u,children:[l&&(0,s.jsx)(i,{}),null!=n&&(0,s.jsx)("div",{className:"mb-3 font-mono text-[10px] uppercase tracking-[0.18em] text-fg-low",children:n}),c]})}n(12115)},65028:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var s=n(13933);class r extends s.C{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function i(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new r({value:e});let[n,s="0"]=e.split("."),i=n.startsWith("-");if(i&&(n=n.slice(1)),s=s.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${s}`))&&(n=`${BigInt(n)+1n}`),s="";else if(s.length>t){let[e,r,i]=[s.slice(0,t-1),s.slice(t-1,t),s.slice(t)],l=Math.round(Number(`${r}.${i}`));(s=l>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${l}`).length>t&&(s=s.slice(1),n=`${BigInt(n)+1n}`),s=s.slice(0,t)}else s=s.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${s}`)}},66153:(e,t,n)=>{"use strict";n.d(t,{default:()=>f});var s=n(95155),r=n(16680),i=n(26497),l=n(39385),a=n(12115),o=n(99749),d=n(6608);let c={info:"border-glow/40 text-fg-hi",success:"border-up/50 text-fg-hi",error:"border-down/50 text-fg-hi"},u={info:"bg-glow",success:"bg-up",error:"bg-down"};function h(e){var t;let{toast:n}=e;return(0,a.useEffect)(()=>{let e=setTimeout(()=>(0,d.X8)(n.id),n.duration);return()=>clearTimeout(e)},[n.id,n.duration]),(0,s.jsxs)("div",{className:(0,r.E)("pointer-events-auto flex w-full items-start gap-2.5 rounded-lg border bg-ink-850/95 px-3.5 py-3 shadow-[0_16px_40px_-16px_rgba(0,0,0,.8)] backdrop-blur",c[n.tone]),children:[(0,s.jsx)("span",{"aria-hidden":!0,className:(0,r.E)("mt-1 h-1.5 w-1.5 shrink-0 rounded-full shadow-[0_0_8px_currentColor]",u[n.tone])}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"break-words text-sm leading-snug",children:n.message}),n.href&&(0,s.jsxs)("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-flex min-h-8 items-center font-mono text-xs text-glow underline-offset-2 hover:underline",children:[null!=(t=n.hrefLabel)?t:"View transaction"," â"]})]}),(0,s.jsx)("button",{onClick:()=>(0,d.X8)(n.id),"aria-label":"Dismiss",className:"shrink-0 font-mono text-xs text-fg-low transition-colors hover:text-fg-hi",children:"â"})]})}function f(){let e=(0,a.useSyncExternalStore)(d.B1,d.dt,d.dt),t=(0,o.Hi)(),n=e.slice(-4);return(0,s.jsx)("div",{className:"pointer-events-none fixed bottom-[calc(env(safe-area-inset-bottom)+96px)] right-4 z-[100] flex w-[min(92vw,380px)] flex-col gap-2 lg:bottom-6",role:"region","aria-label":"Notifications",children:(0,s.jsx)(i.N,{initial:!1,children:n.map(e=>(0,s.jsx)(l.PY1.div,{layout:"full"===t,initial:"full"===t?{opacity:0,y:16,scale:.97}:{opacity:0},animate:"full"===t?{opacity:1,y:0,scale:1}:{opacity:1},exit:{opacity:0,transition:{duration:.15}},transition:{type:"spring",stiffness:500,damping:34},role:"status","aria-live":"error"===e.tone?"assertive":"polite",children:(0,s.jsx)(h,{toast:e})},e.id))})})}},71947:(e,t,n)=>{Promise.resolve().then(n.bind(n,13712))},73403:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var s=n(95155),r=n(16680),i=n(12115),l=n(99749);function a(e){let{variant:t="primary",size:n="md",loading:a=!1,className:o,children:d,disabled:c,onPointerMove:u,onPointerLeave:h,...f}=e,m=(0,l.Hi)(),p=(0,i.useRef)(null),x="full"===m&&!c&&!a;return(0,s.jsx)("button",{ref:p,disabled:c||a,onPointerMove:e=>{if(null==u||u(e),!x||!p.current)return;let t=p.current.getBoundingClientRect(),n=Math.max(-4,Math.min(4,(e.clientX-(t.left+t.width/2))/8)),s=Math.max(-4,Math.min(4,(e.clientY-(t.top+t.height/2))/8));p.current.style.transform="translate(".concat(n,"px, ").concat(s,"px)")},onPointerLeave:e=>{null==h||h(e),p.current&&(p.current.style.transform="")},className:(0,r.E)("relative inline-flex items-center justify-center gap-2 rounded-lg font-sans font-semibold transition-[background-color,border-color,box-shadow,filter] duration-150 disabled:cursor-not-allowed disabled:opacity-50","sm"===n&&"px-3 py-1.5 text-xs","md"===n&&"px-4 py-2.5 text-sm","lg"===n&&"px-6 py-3.5 text-base","primary"===t&&"bg-accent text-white hover:brightness-110 hover:shadow-[0_0_18px_rgba(59,123,255,.35)]","ghost"===t&&"border border-line-2 text-fg-hi hover:border-glow/60 hover:bg-glow/5","danger"===t&&"border border-down/40 bg-down/10 text-down hover:bg-down/20",o),...f,children:a?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5","aria-hidden":!0,
1children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-current"}),(0,s.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-current [animation-delay:150ms]"}),(0,s.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-current [animation-delay:300ms]"})]}):d})}},78435:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},79397:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},80534:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])}
1,82317:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},84952:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("frame",[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]])},86340:()=>{},88661:(e,t,n)=>{"use strict";e.exports=n(45688).style},89030:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(95155),r=n(16680);function i(e){let{kicker:t,title:n,actions:i,className:l}=e;return(0,s.jsxs)("div",{className:(0,r.E)("flex items-end justify-between gap-4",l),children:[(0,s.jsxs)("div",{className:"min-w-0",children:[null!=t&&(0,s.jsx)("div",{className:"mb-0.5 font-sans text-[11px] font-semibold uppercase tracking-wider text-fg-low",children:t}),(0,s.jsx)("h2",{className:"font-sans text-xl font-bold tracking-tight text-fg-hi sm:text-2xl",children:n})]}),null!=i&&(0,s.jsx)("div",{className:"shrink-0",children:i})]})}n(12115)},90906:(e,t,n)=>{"use strict";n.d(t,{G:()=>V});var s=n(95155),r=n(12115),i=n(37270),l=n(11245),a=n(40763),o=n(47650),d=n(37772),c=n(27937),u=n(24033),h=n(35299),f=n(57828),m=n(71847);let p=(0,m.A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var x=n(71360),g=n(80534),v=n(4788);let y=(0,m.A)("frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),w=(0,m.A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]),b=(0,m.A)("user-minus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var j=n(96583),k=n(78192),_=n(36149),N=n(61376),S=n(40831),C=n(17645),A=n(10566),E=n(19443),R=n(1396),F=n(70780),M=n(26898);function z(e){let{event:t,mine:n,onGone:i,className:l}=e,[a,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)("none"),h=(0,r.useRef)(null),f=(0,r.useCallback)(()=>o(!1),[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{ref:h,type:"button",onClick:()=>o(e=>!e),"aria-label":"More","aria-haspopup":"menu","aria-expanded":a,className:(0,C.cx)("-mr-2 -mt-2 inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-pill text-fg-low transition duration-ui ease-ui hover:bg-elev-1 hover:text-fg-hi sm:-mt-1 sm:h-8 sm:w-8",C.Rg,l),children:(0,s.jsx)(d.A,{className:"h-[18px] w-[18px]","aria-hidden":!0})}),a&&(0,s.jsx)(L,{anchor:h,onClose:f,children:(0,s.jsx)(P,{event:t,mine:n,onClose:f,onGone:i,open:e=>{f(),u(e)}})}),(0,s.jsx)(C.cj,{open:"delete"===c,onClose:()=>u("none"),children:(0,s.jsx)(q,{event:t,onBack:()=>u("none"),onDone:()=>{u("none"),null==i||i()}})}),(0,s.jsx)(C.cj,{open:"report"===c,onClose:()=>u("none"),title:"Report post",children:(0,s.jsx)(D,{event:t,onBack:()=>u("none"),onDone:()=>u("none")})}),(0,s.jsx)(C.cj,{open:"interactions"===c,onClose:()=>u("none"),title:"Post interactions",children:"interactions"===c&&(0,s.jsx)(H,{event:t})})]})}function L(e){let{anchor:t,onClose:n,children:i}=e,[l,a]=(0,r.useState)(null),d=(0,r.useRef)(null);return((0,r.useLayoutEffect)(()=>{let e=()=>{var e,n,s;let r=null==(e=t.current)?void 0:e.getBoundingClientRect();if(!r)return;let i=null!=(s=null==(n=d.current)?void 0:n.offsetHeight)?s:320,l=window.innerHeight-r.bottom<i+16&&r.top>i+16;a({top:l?Math.max(8,r.top-i-6):r.bottom+6,right:Math.max(12,window.innerWidth-r.right),up:l})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[t]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]),"undefined"==typeof document)?null:(0,o.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-[70]",children:[(0,s.jsx)("button",{type:"button","aria-label":"Close menu",onClick:n,className:"absolute inset-0 cursor-default bg-fg-hi/10"}),(0,s.jsx)("div",{ref:d,role:"menu",style:l?{top:l.top,right:l.right}:{visibility:"hidden"},className:"absolute w-[min(300px,calc(100vw-24px))] overflow-hidden rounded-card border border-line bg-surface-2 shadow-elev-2",children:i})]}),document.body)}function I(e){let{icon:t,label:n,onClick:r,tone:i="default",busy:l,chevron:a}=e;return(0,s.jsxs)("button",{type:"button",role:"menuitem",onClick:r,disabled:l,className:(0,C.cx)("flex min-h-[56px] w-full items-center justify-between gap-4 border-b border-line px-4 text-left transition duration-ui ease-ui last:border-b-0 hover:bg-elev-1 disabled:opacity-60",C.Rg),children:[(0,s.jsxs)("span",{className:(0,C.cx)("flex min-w-0 items-center gap-2 font-body text-[16px] leading-snug","danger"===i?"text-down":"text-fg-hi"),
1children:["right"===a&&(0,s.jsx)(c.A,{className:"h-4 w-4 shrink-0 text-fg-low","aria-hidden":!0}),"down"===a&&(0,s.jsx)(u.A,{className:"h-4 w-4 shrink-0 text-fg-low","aria-hidden":!0}),(0,s.jsx)("span",{className:"min-w-0",children:n})]}),l?(0,s.jsx)(h.A,{className:"h-5 w-5 shrink-0 animate-spin text-fg-low","aria-hidden":!0}):a?null:(0,s.jsx)(t,{className:(0,C.cx)("h-5 w-5 shrink-0","danger"===i?"text-down":"text-fg-hi"),strokeWidth:1.75,"aria-hidden":!0})]})}function T(e){var t;let n="".concat(window.location.origin,"/us").concat((0,F.eL)(e));null==(t=navigator.clipboard)||t.writeText(n).then(()=>(0,C.me)("Link copied",{tone:"success"})).catch(()=>(0,C.me)("Couldn't copy the link",{tone:"error"}))}function P(e){var t;let{event:n,mine:i,onClose:l,onGone:a,open:o}=e,d=(0,R.y)(),u=(0,F.S4)(n),h=(0,E.f)(null!=(t=n.actor_profile_id)?t:null,{handle:u||"",isOwner:i}),[m,k]=(0,r.useState)(!1),N=(0,_.h)(),[S,A]=(0,r.useState)(!!n.feed_hidden),[M,z]=(0,r.useState)(!1),L=window.location.pathname,P=/\/profile\//.test(L),q=async()=>{z(!0);try{let e=await fetch("/api/store/feed/".concat(encodeURIComponent(n.id),"/feed-visibility"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({hidden:!S})}),t=await e.json().catch(()=>({}));if(!e.ok||!(null==t?void 0:t.success))throw Error((null==t?void 0:t.error)||"Couldn't update the post");let s=!S;A(s),(0,C.me)(s?"Hidden from the feed â still on the profile":"Back on the feed",{tone:"success"}),s&&!P&&(null==a||a())}catch(e){(0,C.me)(e instanceof Error?e.message:"Couldn't update the post",{tone:"error"})}finally{z(!1),l()}},$=N?(0,s.jsx)(I,{icon:S?f.A:p,label:S?"Show on the feed":"Hide from the feed",busy:M,onClick:()=>void q()}):null;return i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I,{icon:x.A,label:"Delete post",tone:"danger",onClick:()=>o("delete")}),(0,s.jsx)(I,{icon:g.A,label:"View post interactions",onClick:()=>o("interactions")}),(0,s.jsx)(I,{icon:v.A,label:"Copy link",onClick:()=>{T(n),l()}}),$]}):(0,s.jsxs)(s.Fragment,{children:[$,(0,s.jsx)(I,{icon:y,label:"Not interested in this post",onClick:()=>{null==a||a(),l()}}),(0,s.jsx)(I,{icon:g.A,label:"View post interactions",onClick:()=>o("interactions")}),(0,s.jsx)(I,{icon:w,label:"Report post",onClick:()=>{if(!d.authenticated){d.login(),l();return}o("report")}}),(0,s.jsx)(I,{icon:v.A,label:"Copy link",onClick:()=>{T(n),l()}}),u&&n.actor_profile_id&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I,{icon:c.A,label:(0,s.jsxs)("span",{className:"font-semibold",children:["@",u]}),chevron:m?"down":"right",onClick:()=>k(e=>!e)}),m&&(0,s.jsx)("div",{className:"border-t border-line bg-surface-1",children:(0,s.jsx)(I,{icon:h.isFollowing?b:j.A,label:h.isFollowing?"Unfollow @".concat(u):"Follow @".concat(u),busy:h.pending,onClick:()=>{if(!d.authenticated){d.login(),l();return}if(h.needsProfile)return void window.location.assign("/us/account");h.toggle(),l()}})})]})]})}function q(e){let{event:t,onBack:n,onDone:r}=e,i=(0,S.pS)();return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-body text-[20px] font-bold leading-tight text-fg-hi",children:"Delete post?"}),(0,s.jsx)("p",{className:"mt-2 font-body text-[15px] leading-relaxed text-fg-mid",children:"This can't be undone and it will be removed from your profile, the timeline of any accounts that follow you, and from search results."})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(C.$n,{variant:"down",size:"lg",className:"w-full",disabled:i.isPending,onClick:async()=>{try{await i.mutateAsync({eventId:t.id}),(0,C.me)("Your post was deleted",{tone:"success"}),r()}catch(e){(0,C.me)("Couldn't delete the post",{tone:"error"})}},children:i.isPending?"Deletingâ¦":"Delete"}),(0,s.jsx)(C.$n,{variant:"secondary",size:"lg",className:"w-full",onClick:n,disabled:i.isPending,children:"Cancel"})]})]})}let $=[{id:"spam",label:"Spam",hint:"Repetitive, unwanted or misleading promotion."},{id:"scam",label:"Scam or fraud",hint:"Fake launches, phishing, impersonation."},{id:"harassment",label:"Harassment or hate",hint:"Targets a person or a group."},{id:"illegal",label:"Illegal content",hint:"Breaks the law where it is shown."},{id:"other",label:"Something else",hint:"Tell us what is wrong."}];function D(e){let{event:t,onBack:n,onDone:i}=e,l=(0,S.Ov)(),[a,o]=(0,r.useState)(null),[d,c]=(0,r.useState)("");return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"font-body text-[15px] text-fg-mid",children:"What's wrong with this post? A moderator reviews every report."}),(0,s.jsx)("div",{role:"radiogroup",className:"-mx-1 flex flex-col",children:$.map(e=>{let t=a===e.id;return(0,s.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>o(e.id),className:(0,C.cx)("flex min-h-[48px] w-full items-center gap-3 rounded-field px-3 py-2 text-left transition duration-ui ease-ui hover:bg-elev-1",t&&"bg-elev-1",C.Rg),children:[(0,s.jsx)("span",{"aria-hidden":!0,
1className:(0,C.cx)("h-4 w-4 shrink-0 rounded-pill border",t?"border-accent bg-accent":"border-line-2")}),(0,s.jsxs)("span",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"block font-body text-[15px] font-medium text-fg-hi",children:e.label}),(0,s.jsx)("span",{className:"block font-body text-[12px] text-fg-low",children:e.hint})]})]},e.id)})}),(0,s.jsx)(C.fs,{value:d,onChange:e=>c(e.target.value.slice(0,500)),placeholder:"Anything else? (optional)",rows:2,"aria-label":"Report details"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(C.$n,{variant:"secondary",size:"md",className:"flex-1",onClick:n,disabled:l.isPending,children:"Cancel"}),(0,s.jsx)(C.$n,{variant:"primary",size:"md",className:"flex-1",disabled:!a||l.isPending,onClick:async()=>{if(a)try{let e=await l.mutateAsync({eventId:t.id,reason:a,details:d.trim()||void 0});(0,C.me)(e.already?"You already reported this post â thanks":"Report sent â thanks",{tone:"success"}),i()}catch(e){(0,C.me)(e instanceof Error?e.message:"Couldn't send the report",{tone:"error"})}},children:l.isPending?"Sendingâ¦":"Send report"})]})]})}function H(e){var t,n,i;let{event:l}=e,a=(0,S.pn)(l.id),[o,d]=(0,r.useState)("likes"),c=null==(t=a.data)?void 0:t.counts,u=[{id:"likes",label:"Likes",count:null==c?void 0:c.likes},{id:"reposts",label:"Reposts",count:null==c?void 0:c.reposts},{id:"comments",label:"Comments",count:null==c?void 0:c.comments}],[h]=(0,r.useState)(()=>Date.now()),f="likes"===o?null==(n=a.data)?void 0:n.likes:"reposts"===o?null==(i=a.data)?void 0:i.reposts:[];return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(C.VQ,{tabs:u,value:o,onChange:d}),(0,s.jsxs)("div",{className:"mt-2",children:[a.isLoading&&[0,1,2].map(e=>(0,s.jsx)(C.EA,{className:"my-2 h-11 rounded-field"},e)),a.isError&&(0,s.jsx)(C.pp,{title:"Couldn't load interactions"}),"comments"===o&&a.data&&(0,s.jsx)("p",{className:"py-6 text-center font-body text-[14px] text-fg-mid",children:(null==c?void 0:c.comments)?"".concat((0,A.bg)(c.comments)," ").concat(1===c.comments?"comment":"comments"," â open them from the post."):"No comments yet."}),"comments"!==o&&a.data&&((null==f?void 0:f.length)?(0,s.jsx)("ul",{className:"divide-y divide-line",children:f.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(B,{p:e,now:h})},e.id))}):(0,s.jsx)("p",{className:"py-6 text-center font-body text-[14px] text-fg-mid",children:"likes"===o?"No likes yet.":"No reposts yet."}))]})]})}function B(e){let{p:t,now:n}=e,r=t.display_name||t.username||"Someone",i=(0,s.jsxs)("span",{className:"flex min-h-[56px] items-center gap-3 py-2",children:[(0,s.jsx)(C.eu,{src:t.avatar_url,alt:r,size:40}),(0,s.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[(0,s.jsx)("span",{className:"truncate font-body text-[15px] font-semibold text-fg-hi",children:r}),t.is_agent?(0,s.jsx)(k.A,{className:"h-3.5 w-3.5 shrink-0 text-accent","aria-label":"AI agent"}):t.is_verified?(0,s.jsx)(M.A,{size:14,className:"shrink-0"}):null]}),t.username&&(0,s.jsxs)("span",{className:"block truncate font-body text-[13px] text-fg-low",children:["@",t.username]})]}),t.at&&(0,s.jsx)("span",{className:"shrink-0 font-mono text-[12px] tabular-nums text-fg-low",children:(0,A.rB)(new Date(t.at).getTime(),n)})]});return t.username?(0,s.jsx)(N.default,{href:"/profile/".concat(t.username),className:(0,C.cx)("block rounded-field",C.Rg),children:i}):i}var O=n(73267),Q=n(40659);let V=(0,r.memo)(function(e){var t,n,o;let{event:d,now:c,priority:u,detail:h,onComment:f}=e,{byAddress:m,bySymbol:p,byChainSymbol:x}=(0,Q.e)(),g=(0,R.y)(),[v,y]=(0,r.useState)(!1),w="string"==typeof(null==(t=d.data)?void 0:t.chain)?d.data.chain:"base",b=(0,i.eo)(w),j=(0,l.b)(b),k=(0,i.Qj)(b),_=(0,O.f)(d,{byAddress:m,bySymbol:p,byChainSymbol:x,myProfileId:g.profileId,myAddress:g.address,onDeleted:()=>y(!0),now:c,nativeUsd:j,nativeSymbol:k});if(v||!_)return null;let N=null!=(o=d.data)?o:{},S=!!g.profileId&&(d.actor_profile_id===g.profileId||d.actor_id===g.profileId||N.profile_id===g.profileId||!!g.address&&(null==(n=d.actor_wallet)?void 0:n.toLowerCase())===g.address);return(0,s.jsx)(a.T6,{event:d,spec:_,now:c,priority:u,detail:h,onComment:f,menu:(0,s.jsx)(z,{event:d,mine:S,onGone:()=>y(!0)})})})},91169:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])}
1,92799:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var s=n(95155),r=n(89129),i=n(18477),l=n(16680),a=n(12115);let o=(0,a.createContext)(null),d=e=>{let{children:t,close:n}=e;return(0,s.jsx)(o.Provider,{value:{close:n},children:t})},c=e=>{let{size:t="20",color:n="currentColor",...r}=e;return(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,s.jsx)("path",{d:"M15 5L5 15",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M5 5L15 15",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},u=e=>{let{isOpen:t,close:n,size:o="medium",search:c=!1,children:u,"data-testid":h}=e;return(0,s.jsx)(r.e,{appear:!0,show:t,as:a.Fragment,children:(0,s.jsxs)(i.lG,{as:"div",className:"relative z-[75]",onClose:n,children:[(0,s.jsx)(r.e.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 h-screen bg-ink-950/70 backdrop-blur-md"})}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-hidden",children:(0,s.jsx)("div",{className:(0,l.E)("flex min-h-full h-full justify-center p-4 text-center",{"items-center":!c,"items-start":c}),children:(0,s.jsx)(r.e.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsxs)(i.lG.Panel,{"data-testid":h,className:(0,l.E)("relative flex max-h-[75vh] h-fit w-full transform flex-col justify-start p-5 text-left align-middle transition-all",{"max-w-md":"small"===o,"max-w-xl":"medium"===o,"max-w-3xl":"large"===o,"bg-transparent shadow-none":c,"rounded-xl border border-line-2 bg-ink-850 shadow-[0_32px_64px_-24px_rgba(0,0,0,.8)]":!c}),children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute left-0 top-0 h-2.5 w-2.5 border-l border-t border-glow/60"}),(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute right-0 top-0 h-2.5 w-2.5 border-r border-t border-glow/60"}),(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-0 left-0 h-2.5 w-2.5 border-b border-l border-glow/60"}),(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-0 right-0 h-2.5 w-2.5 border-b border-r border-glow/60"})]}),(0,s.jsx)(d,{close:n,children:u})]})})})})]})})};u.Title=e=>{let{children:t}=e,{close:n}=(()=>{let e=(0,a.useContext)(o);if(null===e)throw Error("useModal must be used within a ModalProvider");return e})();return(0,s.jsxs)(i.lG.Title,{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-large-semi text-fg-hi",children:t}),(0,s.jsx)("button",{onClick:n,"data-testid":"close-modal-button",className:"text-fg-low transition-colors hover:text-fg-hi",children:(0,s.jsx)(c,{size:20})})]})},u.Description=e=>{let{children:t}=e;return(0,s.jsx)(i.lG.Description,{className:"flex h-full items-center justify-center pt-2 pb-4 text-small-regular text-fg-mid",children:t})},u.Body=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"flex justify-center",children:t})},u.Footer=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"flex items-center justify-end gap-x-4",children:t})};let h=u},93499:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},96548:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]])},96583:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(71847).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},98405:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(95155),r=n(16680);n(12115);var i=n(33674);function l(e){let{label:t,value:n,delta:l,loading:a=!1,size:o="md",className:d}=e;return(0,s.jsxs)("div",{className:(0,r.E)("min-w-0",d),children:[(0,s.jsx)("div",{className:"font-mono text-[10px] uppercase tracking-[0.18em] text-fg-low",children:t}),a?(0,s.jsx)(i.default,{variant:"line",className:"md"===o?"mt-1 h-5 w-20":"mt-1 h-4 w-14"}):(0,s.jsxs)("div",{className:(0,r.E)("flex items-baseline gap-2 font-mono tabular-nums text-fg-hi","md"===o?"text-base font-semibold":"text-sm font-medium"),children:[(0,s.jsx)("span",{className:"truncate",children:n}),"number"==typeof l&&isFinite(l)&&(0,s.jsxs)("span",{className:(0,r.E)("text-xs font-medium",l>=0?"text-up":"text-down"),children:[l>
1=0?"â²":"â¼",Math.abs(l).toLocaleString("en-US",{maximumFractionDigits:1}),"%"]})]})]})}},99749:(e,t,n)=>{"use strict";n.d(t,{Hi:()=>h});var s=n(12115);let r="static",i=!1,l=new Set;function a(e){if(e!==r){var t;for(let n of(r=e,window.__cc0fx={...null!=(t=window.__cc0fx)?t:{running:!1,fps:0},tier:r},l))n()}}function o(){let e=new URLSearchParams(window.location.search).get("fx");if("off"===e||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return"static";let t=navigator.connection;if((null==t?void 0:t.saveData)===!0)return"static";try{if(!document.createElement("canvas").getContext("webgl2"))return"static"}catch(e){return"static"}return"low"===e?"reduced":"full"}function d(e){return l.add(e),()=>l.delete(e)}let c=()=>r,u=()=>"static";function h(){let e=(0,s.useSyncExternalStore)(d,c,u);return(0,s.useEffect)(()=>{i||(i=!0,setTimeout(()=>(function(){a(o());let e=window.matchMedia("(prefers-reduced-motion: reduce)");e.addEventListener("change",()=>{e.matches?a("static"):a(o())});let t=new URLSearchParams(window.location.search).get("fx");"off"!==t&&"low"!==t&&"static"!==r&&n.e(73103).then(n.bind(n,73103)).then(e=>{let{getGPUTier:t}=e;return t()}).then(e=>{0===e.tier?a("static"):1===e.tier&&"full"===r&&a("reduced")}).catch(()=>{})})(),0))},[]),e}}}]);
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.