1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3361],{7454:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(5893),s=n(512);let l=e=>{let{invert:t=!1,className:n,...l}=e;return(0,r.jsx)("hr",{className:(0,s.Z)("my-2",t?"border-background":"border-foreground",n),...l})}},8462:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(5893),s=n(7484),l=n.n(s),i=n(7294),a=n(6432),c=n(8838);let o=e=>{let{streams:t,track:n,headerRef:s,loading:o,onItemClick:u}=e,[d,m]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e={};t.forEach(t=>{var n;let r=l()(t.endTime).format("YYYYMMDD");e[r]||(e[r]=[]),null===(n=e[r])||void 0===n||n.push(t)}),m(Object.entries(e).sort((e,t)=>e[0]>t[0]?-1:e[0]<t[0]?1:0))},[t]);let f=(0,i.useMemo)(()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0},[s.current]);return!1===o&&0===t.length?(0,r.jsxs)("div",{className:"grid w-full place-items-center py-20",children:[(0,r.jsx)(a.TOX,{}),(0,r.jsx)("p",{className:"m-0 text-text-grey",children:"Looks like you don't have any recent streams"})]}):(0,r.jsx)("ul",{children:(void 0===o||o)&&d.length<1?Array(10).fill(null).map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsx)(c.fO,{})},t)):d.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"sticky z-[29] bg-background py-2",style:{top:"".concat(f-1,"px")},children:l()(e[1][0].endTime).format("LL")}),(0,r.jsx)("li",{children:(0,r.jsx)("ul",{children:e[1].map((e,t)=>(0,r.jsx)("li",{onClick:u,children:(0,r.jsx)(c.cb,{track:"track"in e?e.track:n,...e})},t))},t)},t)]},"recentStreams-".concat(t)))})}},4156:function(e,t,n){n.d(t,{$0:function(){return r.$},GN:function(){return c},kh:function(){return d},fp:function(){return u},Oe:function(){return f}});var r=n(5571),s=n(5893),l=n(512),i=n(6432),a=n(9986);let c=e=>{let{next:t,callback:n,...r}=e,[c,o]=(0,a.s0)(t?a.Nm.Next:a.Nm.Previous);return(0,s.jsx)("button",{"aria-label":t?"Go to next slide":"Go to previous slide",className:(0,l.Z)("rounded-full bg-foreground p-2 transition-all","focus-within:ring-2 focus:outline-none focus:ring focus:ring-neutral-500",o?"":"active:scale-95"),disabled:c.disabled,onClick:()=>{n&&n(),c.onClick()},...r,children:t?(0,s.jsx)(i.sOJ,{className:o?"":"fill-white"}):(0,s.jsx)(i.D68,{className:o?"":"fill-white"})})};var o=n(5391);let u=e=>{let{description:t,link:n,children:r}=e;return(0,s.jsxs)(o.v,{children:[(0,s.jsx)(o.v.Button,{"aria-label":"More options",className:"rounded-full bg-foreground p-2 focus-within:ring-2 focus:outline-none focus:ring focus:ring-neutral-500 active:scale-95",children:(0,s.jsx)(i.xr$,{className:"text-white"})}),(0,s.jsxs)(o.v.Items,{className:"w-96",children:[r,t&&n&&(0,s.jsx)(o.v.Item,{children:(0,s.jsxs)("a",{className:"flex gap-2 [&>svg]:shrink-0",target:"blank",href:n,children:[(0,s.jsx)(i.eJU,{className:"text-white"}),t]})})]})]})},d=e=>{let[t,n]=(0,a.G_)();return t.items.length>0?(0,s.jsx)("button",{"aria-label":"grid mode",className:(0,l.Z)("rounded-full bg-foreground p-2 transition-all","focus-within:ring-2 focus:outline-none focus:ring focus:ring-neutral-500"),onClick:()=>{if(t.gridMode&&window.scrollY>t.itemsRef.current.offsetTop){var r,s;window.scrollTo({top:(null!==(s=null===(r=t.itemsRef.current)||void 0===r?void 0:r.offsetTop)&&void 0!==s?s:0)-120,behavior:"smooth"})}let l=null;e.callback&&(l=e.callback(t.gridMode)),n({type:a.Us.SetGridMode,value:null!==l?l:!t.gridMode})},children:t.gridMode?(0,s.jsx)(i.EeZ,{className:"text-white opacity-80"}):(0,s.jsx)(i.USG,{className:"text-white opacity-80"})}):(0,s.jsx)(s.Fragment,{})};var m=n(7294);let f=e=>{let[t,n]=(0,m.useState)(!1);return(0,s.jsx)("button",{"aria-label":"friend mode",title:t?"Click to see global top":"Click to show your top",className:"rounded-full bg-foreground p-2 transition-all focus-within:ring-2 focus:outline-none focus:ring focus:ring-neutral-500",onClick:()=>{e.callback(!t),n(!t)},children:t?(0,s.jsx)(i.Vyx,{className:"text-white opacity-80"}):(0,s.jsx)(i.sv$,{className:"text-white opacity-80"})})}},3758:function(e,t,n){n.d(t,{O:function(){return a}});var r=n(5893),s=n(512),l=n(6159);let i={pulse:"animate-pulse"},a={Image:e=>{let{animation:t="pulse",width:n,height:l}=e;return(0,r.jsx)("span",{className:(0,s.Z)("block rounded-lg bg-foreground",t&&i[t]),style:{width:n,height:l}})},Text:e=>{let{animation:t="pulse",width:n,height:l="1rem"}=e;return(0,r.jsx)("span",{className:(0,s.Z)("rounded-full bg-foreground",t&&i[t]),style:{height:l,width:n}})},Avatar:e=>{let{animation:t="pulse",size:n="md"}=e;return(0,r.jsx)("div",{className:(0,s.Z)("aspect-square rounded-full bg-foreground",t&&i[t]),style:{width:l.J[n]}})}}},7157:function(e,t,n){n.d(t,{G0:function(){return i},kl:function(){return l},sz:function(){return a}});var r=n(5893),s=n(7759);let l=e=>{let{path:t}=e;return(0,r.jsx)("a",{href:"https://open.spotify.com".concat(t),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(s.ZZ,{className:"size-7 !fill-icon transition-colors hover:!fill-[#1DB954]"})})},i=e=>{let{path:t}=e;return(0,r.jsx)("a",{href:"https://discord.com".concat(t),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(s.D7,{
1className:"size-7 !fill-icon transition-colors hover:!fill-[#5468ff]"})})},a=e=>{let{path:t}=e;return(0,r.jsx)("a",{href:"https://music.apple.com".concat(t),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(s.Au,{className:"size-7 !fill-icon transition-colors hover:!fill-applemusic",hover:!1})})}},5990:function(e,t,n){n.d(t,{E:function(){return l}});var r=n(5893),s=n(1721);let l=e=>{let{stats:t}=e;return(0,r.jsx)("ul",{className:"grid grid-cols-2 gap-6 md:grid-cols-4",children:t.map((e,t)=>(0,r.jsx)(s.A,{...e},t))})}},1721:function(e,t,n){n.d(t,{A:function(){return a}});var r=n(5893),s=n(4794),l=n(1163),i=n(3758);let a=e=>{let{value:t,label:n,as:a="li",loginRequired:c,loading:o}=e,{user:u,login:d}=(0,s.aC)(),m=(0,l.useRouter)(),f=e=>(0,r.jsxs)(a,{children:[e.children,(0,r.jsx)("span",{className:"m-0 line-clamp-2 text-lg",children:n})]});return c&&!u?(0,r.jsx)(f,{children:(0,r.jsx)("h3",{className:"h-9 cursor-pointer truncate text-xl leading-8 hover:underline",onClick:()=>d(m.asPath),children:"Login to see"})}):o?(0,r.jsx)(f,{children:(0,r.jsx)("div",{className:"flex h-9 items-center",children:(0,r.jsx)(i.O.Text,{width:"50%",height:"28px"})})}):(0,r.jsx)(f,{children:(0,r.jsx)("h3",{className:"truncate capitalize",children:t})})}},8838:function(e,t,n){n.d(t,{G7:function(){return c},A4:function(){return u},cb:function(){return f},fO:function(){return h}});var r=n(5893),s=n(336),l=n(1664),i=n.n(l),a=n(9813);let c=e=>{var t;let{track:n,playedMs:l,streams:c,position:o}=e,u=[l&&"".concat(a.Z.formatMinutes(l)," minutes"),c&&"".concat(a.Z.localiseNumber(c)," streams")].filter(Boolean).join(" ⢠");return(0,r.jsxs)("div",{className:"flex w-40 flex-col transition-transform duration-300 ease-in-out active:scale-95",children:[(0,r.jsx)(i(),{legacyBehavior:!0,href:"/track/".concat(n.id),passHref:!0,children:(0,r.jsxs)("a",{children:[(0,r.jsx)("div",{className:"aspect-square w-full group-hover:opacity-90",children:(null===(t=n.albums[0])||void 0===t?void 0:t.image)&&(0,r.jsx)(s.E,{src:n.albums[0].image,alt:n.name,width:160,height:160})}),(0,r.jsxs)("h4",{className:"mt-2 line-clamp-2",children:[o&&"".concat(o,".")," ",n.name]})]})}),(0,r.jsxs)("p",{className:"m-0 line-clamp-2",title:u,children:[u,u&&" ⢠",(0,r.jsx)("span",{children:n.artists.map((e,t)=>(0,r.jsxs)("span",{children:[(0,r.jsx)(i(),{legacyBehavior:!0,href:"/artist/".concat(e.id),children:(0,r.jsx)("a",{className:"transition-colors hover:text-white",children:e.name})}),t!==n.artists.length-1&&", "]},e.id+t))})]})]})};var o=n(3758);let u=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.O.Image,{width:"10rem",height:"10rem"}),(0,r.jsxs)("div",{className:"mt-2 flex flex-col gap-2",children:[(0,r.jsx)(o.O.Text,{width:"9rem"}),(0,r.jsx)(o.O.Text,{width:"6.5rem"})]})]});var d=n(4754),m=n(7454);let f=e=>{var t,n,l,a;let{track:c,trackId:o,trackName:u,streams:f,endTime:h,playedMs:x}=e,j=c&&c.artists.map(e=>e.name).join(", "),g=c&&(null===(t=c.albums[0])||void 0===t?void 0:t.name),p=x?"listened for ".concat((0,d.Z)(x).format("m:ss")):null;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i(),{legacyBehavior:!0,href:"/track/".concat(c?c.id:o),className:"flex max-w-full items-center justify-between",passHref:!0,children:(0,r.jsxs)("a",{children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsxs)("div",{className:"flex w-10/12 items-center gap-3",children:[c&&(null===(n=c.albums[0])||void 0===n?void 0:n.image)&&(0,r.jsx)(s.E,{width:48,height:48,alt:c.name,src:null===(l=c.albums[0])||void 0===l?void 0:l.image}),(0,r.jsxs)("div",{className:"w-9/12 truncate leading-tight",children:[(0,r.jsx)("h4",{className:"truncate",children:c?c.name:u}),(0,r.jsx)("p",{className:"m-0 truncate",children:[j,g,void 0!==f?"".concat(f,"x streamed"):null,p].filter(Boolean).join(" ⢠")})]})]}),(0,r.jsx)("p",{className:"m-0 text-right",title:h&&(0,d.Z)(h).format("dddd, D MMMM YYYY HH:mm"),children:h?(0,d.Z)(h).fromNow():d.Z.duration(null!==(a=null==c?void 0:c.durationMs)&&void 0!==a?a:0,"milliseconds").format("m:ss")})]}),(0,r.jsx)(m.i,{})]})})})},h=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(o.O.Image,{width:"48px",height:"48px"}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(o.O.Text,{width:"4rem"}),(0,r.jsx)(o.O.Text,{width:"15rem"})]})]}),(0,r.jsx)(o.O.Text,{width:"4rem"})]}),(0,r.jsx)(m.i,{})]})},4754:function(e,t,n){var r=n(7484),s=n.n(r),l=n(1646),i=n.n(l),a=n(4110),c=n.n(a),o=n(6176),u=n.n(o);s().extend(i()),s().extend(c()),s().extend(u()),t.Z=s()},9813:function(e,t,n){var r=n(7484),s=n.n(r);let l="en-US",i=Intl.NumberFormat(l,{notation:"compact"});
1function a(e,t){return e.toLocaleString(null!=t?t:l)}t.Z={formatPopularity:function(e){return Number.isNaN(e)||!e?"-":a(e/10)},nounify:function(e){return e.endsWith("s")?"".concat(e,"'"):"".concat(e,"'s")},pluralise:function(e,t){return 1===t?e:"".concat(e,"s")},localiseNumber:a,formatNumberCompact:function(e){return i.format(e)},formatMinutes:function(e){return a(Math.floor(s().duration(e,"ms").asMinutes()))}}}}]);
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.