diff --git a/src/ui/dist/assets/Albums-e315f40c.js b/src/ui/dist/assets/Albums-9666741f.js similarity index 59% rename from src/ui/dist/assets/Albums-e315f40c.js rename to src/ui/dist/assets/Albums-9666741f.js index 4234398da..1d1b14928 100644 --- a/src/ui/dist/assets/Albums-e315f40c.js +++ b/src/ui/dist/assets/Albums-9666741f.js @@ -1 +1 @@ -import{C as s}from"./CollectionHeader-b8a4afb0.js";import{_ as c,e as t,c as a,g as n,o as _,m as d,n as p,a as l}from"./index-effe4d2f.js";const r={components:{CollectionHeader:s},name:"Albums"},m=e=>(d("data-v-c5689964"),e=e(),p(),e),i={class:"padding-20"},u=m(()=>l("div",{class:"albums"}," Albums ",-1));function f(e,v,b,h,C,x){const o=t("CollectionHeader");return _(),a("div",i,[n(o),u])}const $=c(r,[["render",f],["__scopeId","data-v-c5689964"]]);export{$ as default}; +import{C as s}from"./CollectionHeader-55cbbce2.js";import{_ as c,e as t,c as a,g as n,o as _,m as d,n as p,a as l}from"./index-926884cb.js";const r={components:{CollectionHeader:s},name:"Albums"},m=e=>(d("data-v-c5689964"),e=e(),p(),e),i={class:"padding-20"},u=m(()=>l("div",{class:"albums"}," Albums ",-1));function f(e,v,b,h,C,x){const o=t("CollectionHeader");return _(),a("div",i,[n(o),u])}const $=c(r,[["render",f],["__scopeId","data-v-c5689964"]]);export{$ as default}; diff --git a/src/ui/dist/assets/Artist-320cfdeb.js b/src/ui/dist/assets/Artist-144ae9ea.js similarity index 95% rename from src/ui/dist/assets/Artist-320cfdeb.js rename to src/ui/dist/assets/Artist-144ae9ea.js index 13c31f331..cd71c7e58 100644 --- a/src/ui/dist/assets/Artist-320cfdeb.js +++ b/src/ui/dist/assets/Artist-144ae9ea.js @@ -1 +1 @@ -import{i as F,o as t,f as n,w as x,b as j,t as p,C as w,_ as L,B as D,s as H,D as R,q as h,G as U,E as Y,c as o,cb as q,d as i,g as y,L as z,a,h as V,O as B,F as v,j as g,u as M,Y as O,P as G,bY as J,cg as Q,ck as E,cl as W,bQ as K,m as X,n as Z}from"./index-effe4d2f.js";import{F as A}from"./FactCard-e9e3d5c4.js";import{P as ee}from"./PlaylistEntry-9c8199d3.js";import{s as te}from"./spotify-50eca206.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";const ae=F({__name:"Tag",props:{tag:{type:String,required:!0},withHash:{type:Boolean,default:!1}},setup(d){return(b,C)=>(t(),n(w,{class:"tag px-4 py-2 cursor-pointer","with-hover":""},{default:x(()=>[j(p(d.withHash?"#":"")+p(d.tag),1)]),_:1}))}});const se=L(ae,[["__scopeId","data-v-2712639d"]]),k=d=>(X("data-v-58a94783"),d=d(),Z(),d),le={key:1,class:"fill-page"},oe={key:2,class:"artist p-4"},ne={class:"wrap"},re={class:"artist__data"},ie={class:"upper"},ue={class:"trac__info__details__normal"},ce={key:0,class:"mt-0 mb-2 flex flex-row gap-2"},de={class:"flex flew-row items-center"},_e={class:"font-black text-5xl ml-4"},ve={class:"features flex flex-row gap-4 mt-4 overflow-x-auto"},pe={class:"spotify-infos pt-4 pb-2"},me={class:"meta items-center"},fe={key:0,class:"flex flex-row align-items"},he=k(()=>a("span",{class:"material-symbols-rounded ms-fill mr-2"},"local_fire_department",-1)),ye={class:"font-bold"},ge=k(()=>a("hr",{class:"mb-4"},null,-1)),xe={class:"items"},we={key:0,class:"spotify-suggestions mt-4"},ke=k(()=>a("h2",null,"Top Tracks",-1)),be={class:"items"},Ce=k(()=>a("h2",null,"Related Artists",-1)),$e={class:"flex flex-row items-center gap-4"},Ie={class:"flex flex-col"},Se={class:"font-bold"},Te=F({__name:"Artist",setup(d){const b=D();H();const C=R(()=>b.params.name),e=h(null),m=h(null),u=h(null),f=h("url"),c=h(!1),$=async()=>{const r=await fetch(`/api/artists/${C.value}`);e.value=await r.json(),m.value=null,u.value="",c.value=!1,e.value.metadata.id.length==22&&(u.value="https://open.spotify.com/artist/"+e.value.metadata.id,c.value=!0),f.value="link"},I=async r=>{await fetch(`/api/artists/${C.value}`,{method:"PUT",body:JSON.stringify({spotifyId:r})}),e.value=null,await $()};U(u,()=>{var r,l;if(((l=(r=e.value)==null?void 0:r.metadata)==null?void 0:l.id)==E(u.value,"artist")){f.value="link";return}f.value="save"});const P=()=>{if(f.value=="link"){W(u.value);return}I(E(u.value,"artist"))};return Y($),U(()=>b.params.name,()=>{e.value=null,$()}),(r,l)=>{var S,T,N;return t(),o(v,null,[e.value?(t(),n(q,{key:0,src:e.value.cover,class:"-z-10"},null,8,["src"])):i("",!0),e.value?(t(),o("div",oe,[a("div",ne,[a("div",re,[a("div",ie,[y(V,{src:e.value.cover,class:"max-w-sm rounded-xl",placeholder:"person"},null,8,["src"]),a("div",{class:B([{"justify-end":e.value.metadata,"justify-center":!e.value.metadata},"track__info__details flex flex-col"])},[a("div",ue,[(S=e.value.metadata)!=null&&S.genres?(t(),o("div",ce,[(t(!0),o(v,null,g(e.value.metadata.genres,s=>(t(),n(se,{tag:s,"with-hash":""},null,8,["tag"]))),256))])):i("",!0),a("div",de,[a("h1",_e,p(e.value.name),1)])]),e.value.metadata?(t(),o(v,{key:0},[a("div",ve,[e.value.metadata.followers?(t(),n(A,{key:0,"primary-text":e.value.metadata.followers.toLocaleString(),class:"w-full","secondary-text":"Followers"},null,8,["primary-text"])):i("",!0),e.value.songs.length?(t(),n(A,{key:1,"primary-text":e.value.songs.length,class:"w-full","secondary-text":"Tracks in Your Library"},null,8,["primary-text"])):i("",!0)]),a("div",pe,[a("div",me,[e.value.metadata.popularity?(t(),o("span",fe,[he,a("span",ye,p(e.value.metadata.popularity),1)])):i("",!0)]),y(M(te),{class:B([{enabled:c.value},"spotify-enable"]),onClick:l[0]||(l[0]=s=>c.value=!c.value)},null,8,["class"]),c.value?(t(),n(O,{key:0,modelValue:u.value,"onUpdate:modelValue":l[1]||(l[1]=s=>u.value=s),icon:f.value,onClick:P},null,8,["modelValue","icon"])):i("",!0),a("span",{class:"material-symbols-rounded cursor-pointer",onClick:l[2]||(l[2]=s=>c.value?I(!1):I(!0))},p(c.value?"delete":"search"),1)])],64)):i("",!0)],2)]),y(G,{class:"hideIfMobile mt-8","with-album":"","with-more":""}),ge,a("div",xe,[(t(!0),o(v,null,g(e.value.songs,s=>J((t(),n(ee,{index:e.value.songs.findIndex(_=>_.source==s.source),selected:m.value==s.id,song:s,"playlist-id":"artist","with-album":"","with-cover":"","with-more":"",artist:e.value.name,onClick:_=>m.value==s.id?m.value=-1:m.value=s.id,onUpdate:l[3]||(l[3]=_=>r.$emit("update"))},null,8,["index","selected","song","artist","onClick"])),[[K,!0]])),256))]),e.value.metadata?(t(),o("div",we,[(T=e.value.metadata.topTracks)!=null&&T.length?(t(),n(w,{key:0,class:"p-4"},{default:x(()=>[ke,a("div",be,[(t(!0),o(v,null,g(e.value.metadata.topTracks,(s,_)=>(t(),n(Q,{index:_,song:s,"can-import":"","cannot-add":"","with-album":"","with-cover":"","with-more":"",onUpdate:l[4]||(l[4]=Ne=>r.$emit("update"))},null,8,["index","song"]))),256))])]),_:1})):i("",!0),(N=e.value.metadata.related)!=null&&N.length?(t(),n(w,{key:1,class:"p-4 flex flex-col gap-2 related overflow-y-auto"},{default:x(()=>[Ce,(t(!0),o(v,null,g(e.value.metadata.related,s=>(t(),n(w,{class:"cursor-pointer px-4 py-2","with-hover":"",onClick:_=>r.$router.push(`/artist/${s.name}`)},{default:x(()=>[a("div",$e,[y(V,{src:s.cover,class:"w-8 h-8 rounded-xl",placeholder:"person"},null,8,["src"]),a("div",Ie,[a("h3",Se,p(s.name),1)])])]),_:2},1032,["onClick"]))),256))]),_:1})):i("",!0)])):i("",!0)])])])):(t(),o("div",le,[y(z)]))],64)}}});const Le=L(Te,[["__scopeId","data-v-58a94783"]]);export{Le as default}; +import{i as F,o as t,f as n,w as x,b as j,t as p,C as w,_ as L,B as D,s as H,D as R,q as h,G as U,E as Y,c as o,cb as q,d as i,g as y,L as z,a,h as V,O as B,F as v,j as g,u as M,Y as O,P as G,bY as J,cg as Q,ck as E,cl as W,bQ as K,m as X,n as Z}from"./index-926884cb.js";import{F as A}from"./FactCard-517d18b6.js";import{P as ee}from"./PlaylistEntry-c58cccb9.js";import{s as te}from"./spotify-3cee06ae.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";const ae=F({__name:"Tag",props:{tag:{type:String,required:!0},withHash:{type:Boolean,default:!1}},setup(d){return(b,C)=>(t(),n(w,{class:"tag px-4 py-2 cursor-pointer","with-hover":""},{default:x(()=>[j(p(d.withHash?"#":"")+p(d.tag),1)]),_:1}))}});const se=L(ae,[["__scopeId","data-v-2712639d"]]),k=d=>(X("data-v-58a94783"),d=d(),Z(),d),le={key:1,class:"fill-page"},oe={key:2,class:"artist p-4"},ne={class:"wrap"},re={class:"artist__data"},ie={class:"upper"},ue={class:"trac__info__details__normal"},ce={key:0,class:"mt-0 mb-2 flex flex-row gap-2"},de={class:"flex flew-row items-center"},_e={class:"font-black text-5xl ml-4"},ve={class:"features flex flex-row gap-4 mt-4 overflow-x-auto"},pe={class:"spotify-infos pt-4 pb-2"},me={class:"meta items-center"},fe={key:0,class:"flex flex-row align-items"},he=k(()=>a("span",{class:"material-symbols-rounded ms-fill mr-2"},"local_fire_department",-1)),ye={class:"font-bold"},ge=k(()=>a("hr",{class:"mb-4"},null,-1)),xe={class:"items"},we={key:0,class:"spotify-suggestions mt-4"},ke=k(()=>a("h2",null,"Top Tracks",-1)),be={class:"items"},Ce=k(()=>a("h2",null,"Related Artists",-1)),$e={class:"flex flex-row items-center gap-4"},Ie={class:"flex flex-col"},Se={class:"font-bold"},Te=F({__name:"Artist",setup(d){const b=D();H();const C=R(()=>b.params.name),e=h(null),m=h(null),u=h(null),f=h("url"),c=h(!1),$=async()=>{const r=await fetch(`/api/artists/${C.value}`);e.value=await r.json(),m.value=null,u.value="",c.value=!1,e.value.metadata.id.length==22&&(u.value="https://open.spotify.com/artist/"+e.value.metadata.id,c.value=!0),f.value="link"},I=async r=>{await fetch(`/api/artists/${C.value}`,{method:"PUT",body:JSON.stringify({spotifyId:r})}),e.value=null,await $()};U(u,()=>{var r,l;if(((l=(r=e.value)==null?void 0:r.metadata)==null?void 0:l.id)==E(u.value,"artist")){f.value="link";return}f.value="save"});const P=()=>{if(f.value=="link"){W(u.value);return}I(E(u.value,"artist"))};return Y($),U(()=>b.params.name,()=>{e.value=null,$()}),(r,l)=>{var S,T,N;return t(),o(v,null,[e.value?(t(),n(q,{key:0,src:e.value.cover,class:"-z-10"},null,8,["src"])):i("",!0),e.value?(t(),o("div",oe,[a("div",ne,[a("div",re,[a("div",ie,[y(V,{src:e.value.cover,class:"max-w-sm rounded-xl",placeholder:"person"},null,8,["src"]),a("div",{class:B([{"justify-end":e.value.metadata,"justify-center":!e.value.metadata},"track__info__details flex flex-col"])},[a("div",ue,[(S=e.value.metadata)!=null&&S.genres?(t(),o("div",ce,[(t(!0),o(v,null,g(e.value.metadata.genres,s=>(t(),n(se,{tag:s,"with-hash":""},null,8,["tag"]))),256))])):i("",!0),a("div",de,[a("h1",_e,p(e.value.name),1)])]),e.value.metadata?(t(),o(v,{key:0},[a("div",ve,[e.value.metadata.followers?(t(),n(A,{key:0,"primary-text":e.value.metadata.followers.toLocaleString(),class:"w-full","secondary-text":"Followers"},null,8,["primary-text"])):i("",!0),e.value.songs.length?(t(),n(A,{key:1,"primary-text":e.value.songs.length,class:"w-full","secondary-text":"Tracks in Your Library"},null,8,["primary-text"])):i("",!0)]),a("div",pe,[a("div",me,[e.value.metadata.popularity?(t(),o("span",fe,[he,a("span",ye,p(e.value.metadata.popularity),1)])):i("",!0)]),y(M(te),{class:B([{enabled:c.value},"spotify-enable"]),onClick:l[0]||(l[0]=s=>c.value=!c.value)},null,8,["class"]),c.value?(t(),n(O,{key:0,modelValue:u.value,"onUpdate:modelValue":l[1]||(l[1]=s=>u.value=s),icon:f.value,onClick:P},null,8,["modelValue","icon"])):i("",!0),a("span",{class:"material-symbols-rounded cursor-pointer",onClick:l[2]||(l[2]=s=>c.value?I(!1):I(!0))},p(c.value?"delete":"search"),1)])],64)):i("",!0)],2)]),y(G,{class:"hideIfMobile mt-8","with-album":"","with-more":""}),ge,a("div",xe,[(t(!0),o(v,null,g(e.value.songs,s=>J((t(),n(ee,{index:e.value.songs.findIndex(_=>_.source==s.source),selected:m.value==s.id,song:s,"playlist-id":"artist","with-album":"","with-cover":"","with-more":"",artist:e.value.name,onClick:_=>m.value==s.id?m.value=-1:m.value=s.id,onUpdate:l[3]||(l[3]=_=>r.$emit("update"))},null,8,["index","selected","song","artist","onClick"])),[[K,!0]])),256))]),e.value.metadata?(t(),o("div",we,[(T=e.value.metadata.topTracks)!=null&&T.length?(t(),n(w,{key:0,class:"p-4"},{default:x(()=>[ke,a("div",be,[(t(!0),o(v,null,g(e.value.metadata.topTracks,(s,_)=>(t(),n(Q,{index:_,song:s,"can-import":"","cannot-add":"","with-album":"","with-cover":"","with-more":"",onUpdate:l[4]||(l[4]=Ne=>r.$emit("update"))},null,8,["index","song"]))),256))])]),_:1})):i("",!0),(N=e.value.metadata.related)!=null&&N.length?(t(),n(w,{key:1,class:"p-4 flex flex-col gap-2 related overflow-y-auto"},{default:x(()=>[Ce,(t(!0),o(v,null,g(e.value.metadata.related,s=>(t(),n(w,{class:"cursor-pointer px-4 py-2","with-hover":"",onClick:_=>r.$router.push(`/artist/${s.name}`)},{default:x(()=>[a("div",$e,[y(V,{src:s.cover,class:"w-8 h-8 rounded-xl",placeholder:"person"},null,8,["src"]),a("div",Ie,[a("h3",Se,p(s.name),1)])])]),_:2},1032,["onClick"]))),256))]),_:1})):i("",!0)])):i("",!0)])])])):(t(),o("div",le,[y(z)]))],64)}}});const Le=L(Te,[["__scopeId","data-v-58a94783"]]);export{Le as default}; diff --git a/src/ui/dist/assets/Artist-144ae9ea.js.gz b/src/ui/dist/assets/Artist-144ae9ea.js.gz new file mode 100644 index 000000000..d1ea12fc1 Binary files /dev/null and b/src/ui/dist/assets/Artist-144ae9ea.js.gz differ diff --git a/src/ui/dist/assets/Artist-320cfdeb.js.gz b/src/ui/dist/assets/Artist-320cfdeb.js.gz deleted file mode 100644 index 542799d0d..000000000 Binary files a/src/ui/dist/assets/Artist-320cfdeb.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Artists-9a115461.js.gz b/src/ui/dist/assets/Artists-9a115461.js.gz deleted file mode 100644 index 3ce40d962..000000000 Binary files a/src/ui/dist/assets/Artists-9a115461.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Artists-9a115461.js b/src/ui/dist/assets/Artists-ee6d8494.js similarity index 91% rename from src/ui/dist/assets/Artists-9a115461.js rename to src/ui/dist/assets/Artists-ee6d8494.js index d3d945d30..601912512 100644 --- a/src/ui/dist/assets/Artists-9a115461.js +++ b/src/ui/dist/assets/Artists-ee6d8494.js @@ -1 +1 @@ -import{F as C}from"./FullShelf-94271883.js";import{_ as h,C as F,e as i,o as n,f as w,w as g,g as f,a as e,t as m,c as p,J as u,d as A,F as B,j as S}from"./index-effe4d2f.js";import{C as k}from"./CollectionHeader-b8a4afb0.js";const x={components:{Card:F},name:"ArtistItem",methods:{follow(o){o.stopPropagation();const s=this.following?"DELETE":"POST";fetch("/api/spotify/following",{method:s,body:JSON.stringify({artistId:this.id})}).then(t=>{t.status==200&&(this.following=!this.following)})}},data(){return{following:this.initiallyFollowing}},props:{cover:String,name:String,description:String,id:String,initiallyFollowing:Boolean,showFollowButton:Boolean}},I={class:"item"},b=["src"],H=["innerHTML"];function E(o,s,t,y,r,c){const d=i("add-artist-to-playlist"),_=i("Card");return n(),w(_,{class:"wrapper","with-hover":"",onClick:s[1]||(s[1]=u(l=>o.$router.push("/artist/"+t.name),["stop"]))},{default:g(()=>[f(d,{ref:"import",artist:{id:t.id,name:t.name,href:`https://open.spotify.com/artist/${t.id}`,image:t.cover}},null,8,["artist"]),e("div",I,[e("img",{src:t.cover},null,8,b),e("h4",null,m(t.name),1),e("p",{innerHTML:t.description},null,8,H),t.showFollowButton?(n(),p("button",{key:0,class:"followButton",onClick:s[0]||(s[0]=u((...l)=>c.follow&&c.follow(...l),["stop"]))},m(r.following?"unfollow":"Follow"),1)):A("",!0)])]),_:1})}const L=h(x,[["render",E],["__scopeId","data-v-353b4692"]]);const N={components:{CollectionHeader:k,ArtistItem:L,FullShelf:C},name:"Artists",data(){return fetch("/api/spotify/artists").then(o=>o.json()).then(o=>this.spotifyArtists.push(...o)),{spotifyArtists:[]}}},T={class:"padding-20"},M={class:"artists"};function V(o,s,t,y,r,c){const d=i("CollectionHeader"),_=i("artist-item"),l=i("full-shelf");return n(),p("div",T,[f(d),e("div",M,[f(l,{heading:"Following on Spotify"},{default:g(()=>[(n(!0),p(B,null,S(r.spotifyArtists,(a,v)=>(n(),w(_,{id:a.id,key:v,cover:a.cover,description:a.description,name:a.name,"initially-following":"","show-follow-button":""},null,8,["id","cover","description","name"]))),128))]),_:1})])])}const O=h(N,[["render",V],["__scopeId","data-v-f17668c2"]]);export{O as default}; +import{F as C}from"./FullShelf-e5484026.js";import{_ as h,C as F,e as i,o as n,f as w,w as g,g as f,a as e,t as m,c as p,J as u,d as A,F as B,j as S}from"./index-926884cb.js";import{C as k}from"./CollectionHeader-55cbbce2.js";const x={components:{Card:F},name:"ArtistItem",methods:{follow(o){o.stopPropagation();const s=this.following?"DELETE":"POST";fetch("/api/spotify/following",{method:s,body:JSON.stringify({artistId:this.id})}).then(t=>{t.status==200&&(this.following=!this.following)})}},data(){return{following:this.initiallyFollowing}},props:{cover:String,name:String,description:String,id:String,initiallyFollowing:Boolean,showFollowButton:Boolean}},I={class:"item"},b=["src"],H=["innerHTML"];function E(o,s,t,y,r,c){const d=i("add-artist-to-playlist"),_=i("Card");return n(),w(_,{class:"wrapper","with-hover":"",onClick:s[1]||(s[1]=u(l=>o.$router.push("/artist/"+t.name),["stop"]))},{default:g(()=>[f(d,{ref:"import",artist:{id:t.id,name:t.name,href:`https://open.spotify.com/artist/${t.id}`,image:t.cover}},null,8,["artist"]),e("div",I,[e("img",{src:t.cover},null,8,b),e("h4",null,m(t.name),1),e("p",{innerHTML:t.description},null,8,H),t.showFollowButton?(n(),p("button",{key:0,class:"followButton",onClick:s[0]||(s[0]=u((...l)=>c.follow&&c.follow(...l),["stop"]))},m(r.following?"unfollow":"Follow"),1)):A("",!0)])]),_:1})}const L=h(x,[["render",E],["__scopeId","data-v-353b4692"]]);const N={components:{CollectionHeader:k,ArtistItem:L,FullShelf:C},name:"Artists",data(){return fetch("/api/spotify/artists").then(o=>o.json()).then(o=>this.spotifyArtists.push(...o)),{spotifyArtists:[]}}},T={class:"padding-20"},M={class:"artists"};function V(o,s,t,y,r,c){const d=i("CollectionHeader"),_=i("artist-item"),l=i("full-shelf");return n(),p("div",T,[f(d),e("div",M,[f(l,{heading:"Following on Spotify"},{default:g(()=>[(n(!0),p(B,null,S(r.spotifyArtists,(a,v)=>(n(),w(_,{id:a.id,key:v,cover:a.cover,description:a.description,name:a.name,"initially-following":"","show-follow-button":""},null,8,["id","cover","description","name"]))),128))]),_:1})])])}const O=h(N,[["render",V],["__scopeId","data-v-f17668c2"]]);export{O as default}; diff --git a/src/ui/dist/assets/Artists-ee6d8494.js.gz b/src/ui/dist/assets/Artists-ee6d8494.js.gz new file mode 100644 index 000000000..db68ce86b Binary files /dev/null and b/src/ui/dist/assets/Artists-ee6d8494.js.gz differ diff --git a/src/ui/dist/assets/BigPlayer-82fedc52.js.gz b/src/ui/dist/assets/BigPlayer-82fedc52.js.gz deleted file mode 100644 index f6b5107dc..000000000 Binary files a/src/ui/dist/assets/BigPlayer-82fedc52.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/BigPlayer-82fedc52.js b/src/ui/dist/assets/BigPlayer-f7f84fb2.js similarity index 91% rename from src/ui/dist/assets/BigPlayer-82fedc52.js rename to src/ui/dist/assets/BigPlayer-f7f84fb2.js index f6ec664c0..b96541e79 100644 --- a/src/ui/dist/assets/BigPlayer-82fedc52.js +++ b/src/ui/dist/assets/BigPlayer-f7f84fb2.js @@ -1 +1 @@ -import{i as T,c9 as z,k as D,D as c,q as m,G as E,E as M,e as V,o as n,c as p,u as a,F as h,a as e,g as k,O as w,h as q,f as B,w as F,d as O,t as C,z as j,j as A,J as G,m as J,n as L,_ as H}from"./index-effe4d2f.js";import{_ as K}from"./Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js";import{P as Q}from"./PlaylistItem-8e935ec4.js";import"./PlaylistEntry-9c8199d3.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";const _=r=>(J("data-v-97399d1e"),r=r(),L(),r),R={class:"bigPlayer"},U={class:"upNow"},W=_(()=>e("div",{style:{"animation-delay":"0s"},class:"block"},null,-1)),X=_(()=>e("div",{style:{"animation-delay":".25s"},class:"block"},null,-1)),Y=_(()=>e("div",{style:{"animation-delay":".5s"},class:"block"},null,-1)),Z=[W,X,Y],ee={class:"settings"},se={key:1,class:"no-playlist-selected"},te={class:"wrapper"},ae=_(()=>e("h2",null,"Nothing playing yet...",-1)),oe={class:"playlists"},le=T({__name:"BigPlayer",emits:["maximise"],setup(r,{emit:x}){const s=z(),b=D(),v=c(()=>s.playing),P=c(()=>s.song.cover),S=c(()=>s.song.id),g=c(()=>s.loaded?`${s.song.title} • ${s.song.artist}`:"reAudioPlayer One"),$=c(()=>b.playlists),f=m(null),I=x;document.title=g.value,E(g,o=>{document.title=o}),M(()=>{window.setTimeout(()=>{var t,u;if((t=f.value)!=null&&t.scrollTop)return;const o=(u=document.getElementById(`bplayer-entry-${S.value}`))==null?void 0:u.offsetTop;o>=354&&(f.value.scrollTop=o-354)},1e3)});let d=m(!1);const N=()=>{d.value=!d.value,I("maximise",d.value)},y=m(!1),i=m(!1);return(o,t)=>{const u=V("Card");return n(),p("div",R,[a(s).loaded?(n(),p(h,{key:0},[e("div",U,[k(q,{class:w([{playing:v.value,animate:i.value},"drop-shadow-2xl"]),src:P.value,type:"track","with-ambient":"",name:a(s).song.title},null,8,["class","src","name"]),e("div",{class:w([{playing:v.value,animate:i.value},"blocks"])},Z,2)]),a(s).playlist?(n(),B(u,{class:"playlist-overflow drop-shadow-2xl relative",key:a(s).playlist.id},{default:F(()=>[k(K,{playlist:a(s).playlist,"use-queue":""},null,8,["playlist"])]),_:1})):O("",!0),e("div",ee,[e("span",{class:"iconButton material-symbols-rounded",onClick:N},C(a(d)?"fullscreen_exit":"fullscreen"),1),e("span",{style:j({transform:`rotate(${y.value?0:180}deg)`}),class:"iconButton material-symbols-rounded",onClick:t[0]||(t[0]=()=>y.value=!y.value)},"menu_open",4),e("span",{class:"iconButton material-symbols-rounded",onClick:t[1]||(t[1]=()=>i.value=!i.value)},C(i.value?"motion_photos_off":"animation"),1),e("span",{class:"iconButton material-symbols-rounded",onClick:t[2]||(t[2]=l=>o.$router.push("/player/insights"))}," insights ")])],64)):(n(),p("div",se,[e("div",te,[ae,e("div",oe,[(n(!0),p(h,null,A($.value,l=>(n(),B(Q,{key:l.id,cover:l.cover,description:l.description,title:l.name,onClick:G(()=>a(s).loadPlaylist(l.id),["stop"])},null,8,["cover","description","title","onClick"]))),128))])])]))])}}});const me=H(le,[["__scopeId","data-v-97399d1e"]]);export{me as default}; +import{i as T,c9 as z,k as D,D as c,q as m,G as E,E as M,e as V,o as n,c as p,u as a,F as h,a as e,g as k,O as w,h as q,f as B,w as F,d as O,t as C,z as j,j as A,J as G,m as J,n as L,_ as H}from"./index-926884cb.js";import{_ as K}from"./Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js";import{P as Q}from"./PlaylistItem-705d9df8.js";import"./PlaylistEntry-c58cccb9.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";const _=r=>(J("data-v-97399d1e"),r=r(),L(),r),R={class:"bigPlayer"},U={class:"upNow"},W=_(()=>e("div",{style:{"animation-delay":"0s"},class:"block"},null,-1)),X=_(()=>e("div",{style:{"animation-delay":".25s"},class:"block"},null,-1)),Y=_(()=>e("div",{style:{"animation-delay":".5s"},class:"block"},null,-1)),Z=[W,X,Y],ee={class:"settings"},se={key:1,class:"no-playlist-selected"},te={class:"wrapper"},ae=_(()=>e("h2",null,"Nothing playing yet...",-1)),oe={class:"playlists"},le=T({__name:"BigPlayer",emits:["maximise"],setup(r,{emit:x}){const s=z(),b=D(),v=c(()=>s.playing),P=c(()=>s.song.cover),S=c(()=>s.song.id),g=c(()=>s.loaded?`${s.song.title} • ${s.song.artist}`:"reAudioPlayer One"),$=c(()=>b.playlists),f=m(null),I=x;document.title=g.value,E(g,o=>{document.title=o}),M(()=>{window.setTimeout(()=>{var t,u;if((t=f.value)!=null&&t.scrollTop)return;const o=(u=document.getElementById(`bplayer-entry-${S.value}`))==null?void 0:u.offsetTop;o>=354&&(f.value.scrollTop=o-354)},1e3)});let d=m(!1);const N=()=>{d.value=!d.value,I("maximise",d.value)},y=m(!1),i=m(!1);return(o,t)=>{const u=V("Card");return n(),p("div",R,[a(s).loaded?(n(),p(h,{key:0},[e("div",U,[k(q,{class:w([{playing:v.value,animate:i.value},"drop-shadow-2xl"]),src:P.value,type:"track","with-ambient":"",name:a(s).song.title},null,8,["class","src","name"]),e("div",{class:w([{playing:v.value,animate:i.value},"blocks"])},Z,2)]),a(s).playlist?(n(),B(u,{class:"playlist-overflow drop-shadow-2xl relative",key:a(s).playlist.id},{default:F(()=>[k(K,{playlist:a(s).playlist,"use-queue":""},null,8,["playlist"])]),_:1})):O("",!0),e("div",ee,[e("span",{class:"iconButton material-symbols-rounded",onClick:N},C(a(d)?"fullscreen_exit":"fullscreen"),1),e("span",{style:j({transform:`rotate(${y.value?0:180}deg)`}),class:"iconButton material-symbols-rounded",onClick:t[0]||(t[0]=()=>y.value=!y.value)},"menu_open",4),e("span",{class:"iconButton material-symbols-rounded",onClick:t[1]||(t[1]=()=>i.value=!i.value)},C(i.value?"motion_photos_off":"animation"),1),e("span",{class:"iconButton material-symbols-rounded",onClick:t[2]||(t[2]=l=>o.$router.push("/player/insights"))}," insights ")])],64)):(n(),p("div",se,[e("div",te,[ae,e("div",oe,[(n(!0),p(h,null,A($.value,l=>(n(),B(Q,{key:l.id,cover:l.cover,description:l.description,title:l.name,onClick:G(()=>a(s).loadPlaylist(l.id),["stop"])},null,8,["cover","description","title","onClick"]))),128))])])]))])}}});const me=H(le,[["__scopeId","data-v-97399d1e"]]);export{me as default}; diff --git a/src/ui/dist/assets/BigPlayer-f7f84fb2.js.gz b/src/ui/dist/assets/BigPlayer-f7f84fb2.js.gz new file mode 100644 index 000000000..161b91cc6 Binary files /dev/null and b/src/ui/dist/assets/BigPlayer-f7f84fb2.js.gz differ diff --git a/src/ui/dist/assets/Breaking-4d1ad9b4.js b/src/ui/dist/assets/Breaking-4d1ad9b4.js new file mode 100644 index 000000000..7ce68d586 --- /dev/null +++ b/src/ui/dist/assets/Breaking-4d1ad9b4.js @@ -0,0 +1 @@ +import{T as r}from"./Template-d4a34a3b.js";import{f as o,o as t}from"./index-926884cb.js";import"./PlaylistEntry-c58cccb9.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";import"./FactCard-517d18b6.js";import"./gistClient-c2987d49.js";import"./Markdown.vue_vue_type_style_index_0_lang-863128c2.js";const k={__name:"Breaking",setup(e){return(p,i)=>(t(),o(r,{id:"breaking","cover-icon":"trending_up"}))}};export{k as default}; diff --git a/src/ui/dist/assets/Breaking-e008ad36.js b/src/ui/dist/assets/Breaking-e008ad36.js deleted file mode 100644 index 2e976f4b7..000000000 --- a/src/ui/dist/assets/Breaking-e008ad36.js +++ /dev/null @@ -1 +0,0 @@ -import{T as r}from"./Template-e0818326.js";import{f as o,o as t}from"./index-effe4d2f.js";import"./PlaylistEntry-9c8199d3.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";import"./FactCard-e9e3d5c4.js";import"./gistClient-63edeca1.js";import"./Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js";const k={__name:"Breaking",setup(e){return(p,i)=>(t(),o(r,{id:"breaking","cover-icon":"trending_up"}))}};export{k as default}; diff --git a/src/ui/dist/assets/CollectionHeader-b8a4afb0.js b/src/ui/dist/assets/CollectionHeader-55cbbce2.js similarity index 91% rename from src/ui/dist/assets/CollectionHeader-b8a4afb0.js rename to src/ui/dist/assets/CollectionHeader-55cbbce2.js index 47f9e6de1..9d4dd5769 100644 --- a/src/ui/dist/assets/CollectionHeader-b8a4afb0.js +++ b/src/ui/dist/assets/CollectionHeader-55cbbce2.js @@ -1 +1 @@ -import{_ as l,e as n,o as d,c as _,g as s,w as t,d as i,m as r,n as p,a as c}from"./index-effe4d2f.js";const f={name:"CollectionHeader",props:{href:String}},a=e=>(r("data-v-e1bef9dd"),e=e(),p(),e),u={class:"wrapper"},m=a(()=>c("div",{class:"collection"}," Playlists ",-1)),h=a(()=>c("div",{class:"collection"}," Releases ",-1)),v=a(()=>c("div",{class:"collection"}," Artists ",-1));function k(e,C,x,w,y,I){const o=n("router-link");return d(),_("div",u,[s(o,{class:"link",to:"/collection/playlists"},{default:t(()=>[m]),_:1}),s(o,{class:"link",to:"/collection/releases"},{default:t(()=>[h]),_:1}),s(o,{class:"link",to:"/collection/artists"},{default:t(()=>[v]),_:1}),i("",!0)])}const $=l(f,[["render",k],["__scopeId","data-v-e1bef9dd"]]);export{$ as C}; +import{_ as l,e as n,o as d,c as _,g as s,w as t,d as i,m as r,n as p,a as c}from"./index-926884cb.js";const f={name:"CollectionHeader",props:{href:String}},a=e=>(r("data-v-e1bef9dd"),e=e(),p(),e),u={class:"wrapper"},m=a(()=>c("div",{class:"collection"}," Playlists ",-1)),h=a(()=>c("div",{class:"collection"}," Releases ",-1)),v=a(()=>c("div",{class:"collection"}," Artists ",-1));function k(e,C,x,w,y,I){const o=n("router-link");return d(),_("div",u,[s(o,{class:"link",to:"/collection/playlists"},{default:t(()=>[m]),_:1}),s(o,{class:"link",to:"/collection/releases"},{default:t(()=>[h]),_:1}),s(o,{class:"link",to:"/collection/artists"},{default:t(()=>[v]),_:1}),i("",!0)])}const $=l(f,[["render",k],["__scopeId","data-v-e1bef9dd"]]);export{$ as C}; diff --git a/src/ui/dist/assets/Create-b56d4917.js.gz b/src/ui/dist/assets/Create-b56d4917.js.gz deleted file mode 100644 index a2157abbb..000000000 Binary files a/src/ui/dist/assets/Create-b56d4917.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Create-b56d4917.js b/src/ui/dist/assets/Create-fcb01c1e.js similarity index 94% rename from src/ui/dist/assets/Create-b56d4917.js rename to src/ui/dist/assets/Create-fcb01c1e.js index d75837bc6..5c7ebf77c 100644 --- a/src/ui/dist/assets/Create-b56d4917.js +++ b/src/ui/dist/assets/Create-fcb01c1e.js @@ -1 +1 @@ -import{i as d,s as p,B as y,E as m,o as f,c as x,a as e,g as n,w as r,C as i,R as h,m as v,n as C,_ as w}from"./index-effe4d2f.js";const s=a=>(v("data-v-907ec981"),a=a(),C(),a),b={class:"flex h-full w-full items-center justify-center"},k={class:"types"},B=s(()=>e("div",{class:"flex flex-row justify-center"},[e("span",{class:"text-9xl material-symbols-rounded icon"},"library_music")],-1)),I=s(()=>e("h4",null,"Classic Playlist",-1)),S=s(()=>e("p",{class:"text-sm text-muted"},"Manage your playlist manually",-1)),g=s(()=>e("div",{class:"flex flex-row justify-center"},[e("span",{class:"text-9xl material-symbols-rounded icon"},"bolt")],-1)),j=s(()=>e("h4",null,"Smart Playlist",-1)),P=s(()=>e("p",{class:"text-sm text-muted"}," Define rules to automatically update your playlist ",-1)),R=d({__name:"Create",setup(a){const u=p(),l=y(),o=async c=>{const t=await h(c);u.push(t)};return m(()=>{l.query.type&&o(l.query.type)}),(c,t)=>(f(),x("div",b,[e("div",k,[n(i,{"with-hover":"",class:"cursor-pointer",onClick:t[0]||(t[0]=_=>o("classic"))},{default:r(()=>[B,I,S]),_:1}),n(i,{"with-hover":"",class:"cursor-pointer",onClick:t[1]||(t[1]=_=>o("smart"))},{default:r(()=>[g,j,P]),_:1})])]))}});const E=w(R,[["__scopeId","data-v-907ec981"]]);export{E as default}; +import{i as d,s as p,B as y,E as m,o as f,c as x,a as e,g as n,w as r,C as i,R as h,m as v,n as C,_ as w}from"./index-926884cb.js";const s=a=>(v("data-v-907ec981"),a=a(),C(),a),b={class:"flex h-full w-full items-center justify-center"},k={class:"types"},B=s(()=>e("div",{class:"flex flex-row justify-center"},[e("span",{class:"text-9xl material-symbols-rounded icon"},"library_music")],-1)),I=s(()=>e("h4",null,"Classic Playlist",-1)),S=s(()=>e("p",{class:"text-sm text-muted"},"Manage your playlist manually",-1)),g=s(()=>e("div",{class:"flex flex-row justify-center"},[e("span",{class:"text-9xl material-symbols-rounded icon"},"bolt")],-1)),j=s(()=>e("h4",null,"Smart Playlist",-1)),P=s(()=>e("p",{class:"text-sm text-muted"}," Define rules to automatically update your playlist ",-1)),R=d({__name:"Create",setup(a){const u=p(),l=y(),o=async c=>{const t=await h(c);u.push(t)};return m(()=>{l.query.type&&o(l.query.type)}),(c,t)=>(f(),x("div",b,[e("div",k,[n(i,{"with-hover":"",class:"cursor-pointer",onClick:t[0]||(t[0]=_=>o("classic"))},{default:r(()=>[B,I,S]),_:1}),n(i,{"with-hover":"",class:"cursor-pointer",onClick:t[1]||(t[1]=_=>o("smart"))},{default:r(()=>[g,j,P]),_:1})])]))}});const E=w(R,[["__scopeId","data-v-907ec981"]]);export{E as default}; diff --git a/src/ui/dist/assets/Create-fcb01c1e.js.gz b/src/ui/dist/assets/Create-fcb01c1e.js.gz new file mode 100644 index 000000000..2323ca39a Binary files /dev/null and b/src/ui/dist/assets/Create-fcb01c1e.js.gz differ diff --git a/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js b/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js similarity index 96% rename from src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js rename to src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js index ac599f8ac..033d4cfa1 100644 --- a/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js +++ b/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js @@ -1 +1 @@ -import{i as y,q as s,G as w,o as b,f as x,w as _,g as h,x as S,c4 as k,cL as q,cr as F}from"./index-effe4d2f.js";const j=y({__name:"EditSong",props:{song:{type:Object,required:!0}},emits:["close","update"],setup(u,{expose:l,emit:p}){const a=u,m=p,i=async(t,e)=>{const o=new FormData,v="."+e.name.split(".").pop();var f=e.slice(0,e.size,e.type),g=new File([f],a.song.id+v,{type:e.type});return o.append("file",g),await(await fetch(t,{method:"POST",body:o})).text()},n=s([{name:"source",type:"upload",icon:"music_note",accept:"audio/mp3",required:!0,onUpload:t=>{i("/api/config/tracks",t).then(e=>n.value.find(o=>o.name=="source").value=e)},value:a.song.source},{name:"title",type:"text",icon:"title",required:!0,value:a.song.title},{name:"artist",type:"text",icon:"person",required:!0,value:a.song.artist},{name:"album",type:"text",icon:"album",value:a.song.album},{name:"cover",type:"upload",icon:"art_track",accept:"image/*",imagePreview:!0,value:a.song.cover,onUpload:t=>{i("/api/config/images",t).then(e=>n.value.find(o=>o.name=="cover").value=e)}}]),d=async()=>{const t=c.value.toObject();await q({...a.song,...t}),m("update"),F.addSuccess(t.title,"Updated",3e3)},r=s(null),c=s(null);return l({show:()=>{r.value.show()}}),w(a,()=>{var t;for(const e of n.value.map(o=>o.name))n.value.find(o=>o.name==e).value=(t=a.song)==null?void 0:t[e]},{deep:!0}),(t,e)=>(b(),x(k,{ref_key:"modal",ref:r,submit:{label:"Save",icon:"save"},name:"Edit Song",onClose:e[0]||(e[0]=o=>t.$emit("close")),onSubmit:d},{default:_(()=>[h(S,{ref_key:"form",ref:c,options:n.value},null,8,["options"])]),_:1},512))}});export{j as _}; +import{i as y,q as s,G as w,o as b,f as x,w as _,g as h,x as S,c4 as k,cL as q,cr as F}from"./index-926884cb.js";const j=y({__name:"EditSong",props:{song:{type:Object,required:!0}},emits:["close","update"],setup(u,{expose:l,emit:p}){const a=u,m=p,i=async(t,e)=>{const o=new FormData,v="."+e.name.split(".").pop();var f=e.slice(0,e.size,e.type),g=new File([f],a.song.id+v,{type:e.type});return o.append("file",g),await(await fetch(t,{method:"POST",body:o})).text()},n=s([{name:"source",type:"upload",icon:"music_note",accept:"audio/mp3",required:!0,onUpload:t=>{i("/api/config/tracks",t).then(e=>n.value.find(o=>o.name=="source").value=e)},value:a.song.source},{name:"title",type:"text",icon:"title",required:!0,value:a.song.title},{name:"artist",type:"text",icon:"person",required:!0,value:a.song.artist},{name:"album",type:"text",icon:"album",value:a.song.album},{name:"cover",type:"upload",icon:"art_track",accept:"image/*",imagePreview:!0,value:a.song.cover,onUpload:t=>{i("/api/config/images",t).then(e=>n.value.find(o=>o.name=="cover").value=e)}}]),d=async()=>{const t=c.value.toObject();await q({...a.song,...t}),m("update"),F.addSuccess(t.title,"Updated",3e3)},r=s(null),c=s(null);return l({show:()=>{r.value.show()}}),w(a,()=>{var t;for(const e of n.value.map(o=>o.name))n.value.find(o=>o.name==e).value=(t=a.song)==null?void 0:t[e]},{deep:!0}),(t,e)=>(b(),x(k,{ref_key:"modal",ref:r,submit:{label:"Save",icon:"save"},name:"Edit Song",onClose:e[0]||(e[0]=o=>t.$emit("close")),onSubmit:d},{default:_(()=>[h(S,{ref_key:"form",ref:c,options:n.value},null,8,["options"])]),_:1},512))}});export{j as _}; diff --git a/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js.gz b/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js.gz new file mode 100644 index 000000000..5ca53cf75 Binary files /dev/null and b/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js.gz differ diff --git a/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js.gz b/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js.gz deleted file mode 100644 index 7482ccfa4..000000000 Binary files a/src/ui/dist/assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Editor-728b12af.js b/src/ui/dist/assets/Editor-059c28c4.js similarity index 91% rename from src/ui/dist/assets/Editor-728b12af.js rename to src/ui/dist/assets/Editor-059c28c4.js index 0537038a3..a0f93023b 100644 --- a/src/ui/dist/assets/Editor-728b12af.js +++ b/src/ui/dist/assets/Editor-059c28c4.js @@ -1 +1 @@ -import{i as S,B as x,s as I,D as E,k as B,q as _,G as U,U as $,V as A,E as F,W as R,o as i,c as n,a as l,g as s,I as d,X as L,t as f,Y as y,F as b,j as h,w as M,C as N,Z as O,$ as T,_ as W}from"./index-effe4d2f.js";import{_ as j}from"./Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js";import"./PlaylistEntry-9c8199d3.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";const q={class:"playlist-editor"},G={class:"editor"},X={class:"sort my-2"},Y={class:"filters"},Z={class:"uppercase mt-0"},z={class:"items"},H={class:"item"},J=["onClick"],K={class:"preview"},Q=S({__name:"Editor",setup(ee){const w=x(),V=I(),r=E(()=>w.params.id),c=B(),e=_({name:"",description:"",direction:"asc",sort:"id",filter:{title:[],artist:[],album:[],duration:{}}}),p=_();U([()=>e.value.sort,()=>e.value.filter,()=>e.value.direction],$.debounce(async()=>{p.value=await A(e.value)},3*1e3),{deep:!0});const k=[{value:"title",label:"Title",icon:"title"},{value:"artist",label:"Artist",icon:"person"},{value:"album",label:"Album",icon:"album"},{value:"duration",label:"Duration",icon:"timer"},{value:"id",label:"Added",icon:"date_range"}],m=["title","artist","album"],C={title:"title",artist:"person",album:"album"};F(async()=>{e.value=await R(r.value),e.value.filter||(e.value.filter={});const o=e.value.filter;for(const a of m)o[a]||(o[a]=[]);e.value.filter=o});const g=async()=>{await O(r.value,e.value),c.fetchPlaylists()},D=async()=>{await T(r.value),c.fetchPlaylists(),V.push("/")};return(o,a)=>(i(),n("div",q,[l("div",G,[l("div",X,[s(d,{label:"Save",icon:"save",type:"success",class:"!mt-0",onClick:g}),s(d,{label:"Delete",icon:"delete",type:"danger",class:"!mt-0",onClick:D}),s(L,{modelValue:e.value.sort,"onUpdate:modelValue":a[0]||(a[0]=t=>e.value.sort=t),options:k,icon:"filter_list"},null,8,["modelValue"]),l("span",{class:"cursor-pointer material-symbols-rounded ms-wght-100 text-5xl",onClick:a[1]||(a[1]=t=>e.value.direction=e.value.direction=="asc"?"desc":"asc")},f(e.value.direction=="asc"?"arrow_drop_up":"arrow_drop_down"),1),s(y,{modelValue:e.value.limit,"onUpdate:modelValue":a[2]||(a[2]=t=>e.value.limit=t),type:"number",placeholder:"Limit...",icon:"123"},null,8,["modelValue"])]),l("div",Y,[(i(),n(b,null,h(m,t=>s(N,{class:"filter"},{default:M(()=>[l("h4",Z,f(t),1),l("div",z,[(i(!0),n(b,null,h(e.value.filter[t],(P,u)=>(i(),n("div",H,[s(y,{modelValue:e.value.filter[t][u],"onUpdate:modelValue":v=>e.value.filter[t][u]=v,icon:C[t]},null,8,["modelValue","onUpdate:modelValue","icon"]),l("span",{class:"material-symbols-rounded",onClick:v=>e.value.filter[t].splice(u,1)}," delete ",8,J)]))),256)),s(d,{label:"OR",icon:"add",onClick:P=>e.value.filter[t].push("")},null,8,["onClick"])])]),_:2},1024)),64))])]),l("div",K,[s(j,{playlist:p.value},null,8,["playlist"])])]))}});const ie=W(Q,[["__scopeId","data-v-51eda3dd"]]);export{ie as default}; +import{i as S,B as x,s as I,D as E,k as B,q as _,G as U,U as $,V as A,E as F,W as R,o as i,c as n,a as l,g as s,I as d,X as L,t as f,Y as y,F as b,j as h,w as M,C as N,Z as O,$ as T,_ as W}from"./index-926884cb.js";import{_ as j}from"./Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js";import"./PlaylistEntry-c58cccb9.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";const q={class:"playlist-editor"},G={class:"editor"},X={class:"sort my-2"},Y={class:"filters"},Z={class:"uppercase mt-0"},z={class:"items"},H={class:"item"},J=["onClick"],K={class:"preview"},Q=S({__name:"Editor",setup(ee){const w=x(),V=I(),r=E(()=>w.params.id),c=B(),e=_({name:"",description:"",direction:"asc",sort:"id",filter:{title:[],artist:[],album:[],duration:{}}}),p=_();U([()=>e.value.sort,()=>e.value.filter,()=>e.value.direction],$.debounce(async()=>{p.value=await A(e.value)},3*1e3),{deep:!0});const k=[{value:"title",label:"Title",icon:"title"},{value:"artist",label:"Artist",icon:"person"},{value:"album",label:"Album",icon:"album"},{value:"duration",label:"Duration",icon:"timer"},{value:"id",label:"Added",icon:"date_range"}],m=["title","artist","album"],C={title:"title",artist:"person",album:"album"};F(async()=>{e.value=await R(r.value),e.value.filter||(e.value.filter={});const o=e.value.filter;for(const a of m)o[a]||(o[a]=[]);e.value.filter=o});const g=async()=>{await O(r.value,e.value),c.fetchPlaylists()},D=async()=>{await T(r.value),c.fetchPlaylists(),V.push("/")};return(o,a)=>(i(),n("div",q,[l("div",G,[l("div",X,[s(d,{label:"Save",icon:"save",type:"success",class:"!mt-0",onClick:g}),s(d,{label:"Delete",icon:"delete",type:"danger",class:"!mt-0",onClick:D}),s(L,{modelValue:e.value.sort,"onUpdate:modelValue":a[0]||(a[0]=t=>e.value.sort=t),options:k,icon:"filter_list"},null,8,["modelValue"]),l("span",{class:"cursor-pointer material-symbols-rounded ms-wght-100 text-5xl",onClick:a[1]||(a[1]=t=>e.value.direction=e.value.direction=="asc"?"desc":"asc")},f(e.value.direction=="asc"?"arrow_drop_up":"arrow_drop_down"),1),s(y,{modelValue:e.value.limit,"onUpdate:modelValue":a[2]||(a[2]=t=>e.value.limit=t),type:"number",placeholder:"Limit...",icon:"123"},null,8,["modelValue"])]),l("div",Y,[(i(),n(b,null,h(m,t=>s(N,{class:"filter"},{default:M(()=>[l("h4",Z,f(t),1),l("div",z,[(i(!0),n(b,null,h(e.value.filter[t],(P,u)=>(i(),n("div",H,[s(y,{modelValue:e.value.filter[t][u],"onUpdate:modelValue":v=>e.value.filter[t][u]=v,icon:C[t]},null,8,["modelValue","onUpdate:modelValue","icon"]),l("span",{class:"material-symbols-rounded",onClick:v=>e.value.filter[t].splice(u,1)}," delete ",8,J)]))),256)),s(d,{label:"OR",icon:"add",onClick:P=>e.value.filter[t].push("")},null,8,["onClick"])])]),_:2},1024)),64))])]),l("div",K,[s(j,{playlist:p.value},null,8,["playlist"])])]))}});const ie=W(Q,[["__scopeId","data-v-51eda3dd"]]);export{ie as default}; diff --git a/src/ui/dist/assets/Editor-059c28c4.js.gz b/src/ui/dist/assets/Editor-059c28c4.js.gz new file mode 100644 index 000000000..69b8cf1e6 Binary files /dev/null and b/src/ui/dist/assets/Editor-059c28c4.js.gz differ diff --git a/src/ui/dist/assets/Editor-728b12af.js.gz b/src/ui/dist/assets/Editor-728b12af.js.gz deleted file mode 100644 index 40248925a..000000000 Binary files a/src/ui/dist/assets/Editor-728b12af.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Explore-4b9b1614.js.gz b/src/ui/dist/assets/Explore-4b9b1614.js.gz deleted file mode 100644 index b1b849f05..000000000 Binary files a/src/ui/dist/assets/Explore-4b9b1614.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Explore-4b9b1614.js b/src/ui/dist/assets/Explore-6a451902.js similarity index 96% rename from src/ui/dist/assets/Explore-4b9b1614.js rename to src/ui/dist/assets/Explore-6a451902.js index e8305d88d..d48ce779d 100644 --- a/src/ui/dist/assets/Explore-4b9b1614.js +++ b/src/ui/dist/assets/Explore-6a451902.js @@ -1 +1 @@ -import{_,o as n,c as r,a as t,r as u,z as h,m as f,n as m,e as y,F as k,j as v,p,A as g,g as a,w as c,M as d,u as S}from"./index-effe4d2f.js";const $={props:{src:String}},x=s=>(f("data-v-0c755b69"),s=s(),m(),s),C=x(()=>t("div",{class:"filter"},null,-1)),I={class:"info"};function b(s,o,l,i,e,B){return n(),r("div",{class:"image",style:h({backgroundImage:"url("+l.src+")"})},[C,t("div",I,[u(s.$slots,"default",{},void 0,!0)])],4)}const O=_($,[["render",b],["__scopeId","data-v-0c755b69"]]);const w={class:"songContent"},E={class:"play"},H=["onClick"],M={class:"info"},P={data(){return fetch("/api/playlists").then(async s=>{this.playlists=await s.json(),this.pick()}),{playlists:[],picks:[]}},mounted(){},methods:{parseCover:p,pick(){console.log("pick"),this.songs=this.playlists.map(s=>s.songs).flat();for(let s=0;s<4;s++)this.picks.push(this.songs[Math.floor(Math.random()*this.songs.length)])},onScroll(){this.$refs.container.clientHeight+this.$refs.container.scrollTop>=this.$refs.container.scrollHeight-100&&this.pick()},href(s){return`/track/${g(s.id)}`},loadPlaylist(s){console.log(s),fetch("/api/player/load",{method:"POST",body:JSON.stringify({id:s,type:"track"})})}}},j=Object.assign(P,{__name:"Explore",setup(s){return(o,l)=>{const i=y("router-link");return n(),r("div",{ref:"container",class:"explore",onScroll:l[0]||(l[0]=(...e)=>o.onScroll&&o.onScroll(...e))},[(n(!0),r(k,null,v(o.picks,e=>(n(),r("div",{key:e.name,class:"item"},[a(O,{src:S(p)(e.cover)},{default:c(()=>[t("div",w,[t("div",E,[t("span",{id:"loadPlaylist",class:"material-symbols-rounded play",onClick:()=>o.loadPlaylist(e.id)},"play_circle",8,H)]),t("div",M,[a(i,{to:o.href(e),class:"linkOnHover"},{default:c(()=>[t("h1",null,[a(d,{text:e.title},null,8,["text"])])]),_:2},1032,["to"]),a(i,{to:`/search/${e.artist}`,class:"linkOnHover"},{default:c(()=>[t("p",null,[a(d,{text:e.artist},null,8,["text"])])]),_:2},1032,["to"])])])]),_:2},1032,["src"])]))),128))],544)}}}),T=_(j,[["__scopeId","data-v-579c8068"]]);export{T as default}; +import{_,o as n,c as r,a as t,r as u,z as h,m as f,n as m,e as y,F as k,j as v,p,A as g,g as a,w as c,M as d,u as S}from"./index-926884cb.js";const $={props:{src:String}},x=s=>(f("data-v-0c755b69"),s=s(),m(),s),C=x(()=>t("div",{class:"filter"},null,-1)),I={class:"info"};function b(s,o,l,i,e,B){return n(),r("div",{class:"image",style:h({backgroundImage:"url("+l.src+")"})},[C,t("div",I,[u(s.$slots,"default",{},void 0,!0)])],4)}const O=_($,[["render",b],["__scopeId","data-v-0c755b69"]]);const w={class:"songContent"},E={class:"play"},H=["onClick"],M={class:"info"},P={data(){return fetch("/api/playlists").then(async s=>{this.playlists=await s.json(),this.pick()}),{playlists:[],picks:[]}},mounted(){},methods:{parseCover:p,pick(){console.log("pick"),this.songs=this.playlists.map(s=>s.songs).flat();for(let s=0;s<4;s++)this.picks.push(this.songs[Math.floor(Math.random()*this.songs.length)])},onScroll(){this.$refs.container.clientHeight+this.$refs.container.scrollTop>=this.$refs.container.scrollHeight-100&&this.pick()},href(s){return`/track/${g(s.id)}`},loadPlaylist(s){console.log(s),fetch("/api/player/load",{method:"POST",body:JSON.stringify({id:s,type:"track"})})}}},j=Object.assign(P,{__name:"Explore",setup(s){return(o,l)=>{const i=y("router-link");return n(),r("div",{ref:"container",class:"explore",onScroll:l[0]||(l[0]=(...e)=>o.onScroll&&o.onScroll(...e))},[(n(!0),r(k,null,v(o.picks,e=>(n(),r("div",{key:e.name,class:"item"},[a(O,{src:S(p)(e.cover)},{default:c(()=>[t("div",w,[t("div",E,[t("span",{id:"loadPlaylist",class:"material-symbols-rounded play",onClick:()=>o.loadPlaylist(e.id)},"play_circle",8,H)]),t("div",M,[a(i,{to:o.href(e),class:"linkOnHover"},{default:c(()=>[t("h1",null,[a(d,{text:e.title},null,8,["text"])])]),_:2},1032,["to"]),a(i,{to:`/search/${e.artist}`,class:"linkOnHover"},{default:c(()=>[t("p",null,[a(d,{text:e.artist},null,8,["text"])])]),_:2},1032,["to"])])])]),_:2},1032,["src"])]))),128))],544)}}}),T=_(j,[["__scopeId","data-v-579c8068"]]);export{T as default}; diff --git a/src/ui/dist/assets/Explore-6a451902.js.gz b/src/ui/dist/assets/Explore-6a451902.js.gz new file mode 100644 index 000000000..5ae41cdac Binary files /dev/null and b/src/ui/dist/assets/Explore-6a451902.js.gz differ diff --git a/src/ui/dist/assets/Export-50946e36.js.gz b/src/ui/dist/assets/Export-50946e36.js.gz deleted file mode 100644 index 1ea8de0ec..000000000 Binary files a/src/ui/dist/assets/Export-50946e36.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Export-50946e36.js b/src/ui/dist/assets/Export-be62f3c3.js similarity index 99% rename from src/ui/dist/assets/Export-50946e36.js rename to src/ui/dist/assets/Export-be62f3c3.js index 7cad55c19..d24f6ac90 100644 --- a/src/ui/dist/assets/Export-50946e36.js +++ b/src/ui/dist/assets/Export-be62f3c3.js @@ -1,4 +1,4 @@ -import{h as Yt,C as qt,p as Wt,c6 as Jt,_ as wt,e as W,f as xt,w as Ht,o as L,a as _,g as q,c as V,t as N,d as Z,b as yt,F as Bt,cu as dt,c8 as Xt,k as zt,I as Kt,j as Zt,m as Qt,n as vt}from"./index-effe4d2f.js";import{G as Q}from"./gistClient-63edeca1.js";var gt={},J={};J.byteLength=ir;J.toByteArray=nr;J.fromByteArray=ur;var R=[],T=[],tr=typeof Uint8Array<"u"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var D=0,rr=v.length;D0)throw new Error("Invalid string. Length must be a multiple of 4");var h=l.indexOf("=");h===-1&&(h=c);var p=h===c?0:4-h%4;return[h,p]}function ir(l){var c=mt(l),h=c[0],p=c[1];return(h+p)*3/4-p}function er(l,c,h){return(c+h)*3/4-h}function nr(l){var c,h=mt(l),p=h[0],y=h[1],f=new tr(er(l,p,y)),a=0,o=y>0?p-4:p,w;for(w=0;w>16&255,f[a++]=c>>8&255,f[a++]=c&255;return y===2&&(c=T[l.charCodeAt(w)]<<2|T[l.charCodeAt(w+1)]>>4,f[a++]=c&255),y===1&&(c=T[l.charCodeAt(w)]<<10|T[l.charCodeAt(w+1)]<<4|T[l.charCodeAt(w+2)]>>2,f[a++]=c>>8&255,f[a++]=c&255),f}function or(l){return R[l>>18&63]+R[l>>12&63]+R[l>>6&63]+R[l&63]}function sr(l,c,h){for(var p,y=[],f=c;fo?o:a+f));return p===1?(c=l[h-1],y.push(R[c>>2]+R[c<<4&63]+"==")):p===2&&(c=(l[h-2]<<8)+l[h-1],y.push(R[c>>10]+R[c>>4&63]+R[c<<2&63]+"=")),y.join("")}var tt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */tt.read=function(l,c,h,p,y){var f,a,o=y*8-p-1,w=(1<>1,I=-7,F=h?y-1:0,P=h?-1:1,A=l[c+F];for(F+=P,f=A&(1<<-I)-1,A>>=-I,I+=o;I>0;f=f*256+l[c+F],F+=P,I-=8);for(a=f&(1<<-I)-1,f>>=-I,I+=p;I>0;a=a*256+l[c+F],F+=P,I-=8);if(f===0)f=1-C;else{if(f===w)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,p),f=f-C}return(A?-1:1)*a*Math.pow(2,f-p)};tt.write=function(l,c,h,p,y,f){var a,o,w,C=f*8-y-1,I=(1<>1,P=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=p?0:f-1,O=p?1:-1,G=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,a=I):(a=Math.floor(Math.log(c)/Math.LN2),c*(w=Math.pow(2,-a))<1&&(a--,w*=2),a+F>=1?c+=P/w:c+=P*Math.pow(2,1-F),c*w>=2&&(a++,w/=2),a+F>=I?(o=0,a=I):a+F>=1?(o=(c*w-1)*Math.pow(2,y),a=a+F):(o=c*Math.pow(2,F-1)*Math.pow(2,y),a=0));y>=8;l[h+A]=o&255,A+=O,o/=256,y-=8);for(a=a<0;l[h+A]=a&255,A+=O,a/=256,C-=8);l[h+A-O]|=G*128};/*! +import{h as Yt,C as qt,p as Wt,c6 as Jt,_ as wt,e as W,f as xt,w as Ht,o as L,a as _,g as q,c as V,t as N,d as Z,b as yt,F as Bt,cu as dt,c8 as Xt,k as zt,I as Kt,j as Zt,m as Qt,n as vt}from"./index-926884cb.js";import{G as Q}from"./gistClient-c2987d49.js";var gt={},J={};J.byteLength=ir;J.toByteArray=nr;J.fromByteArray=ur;var R=[],T=[],tr=typeof Uint8Array<"u"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var D=0,rr=v.length;D0)throw new Error("Invalid string. Length must be a multiple of 4");var h=l.indexOf("=");h===-1&&(h=c);var p=h===c?0:4-h%4;return[h,p]}function ir(l){var c=mt(l),h=c[0],p=c[1];return(h+p)*3/4-p}function er(l,c,h){return(c+h)*3/4-h}function nr(l){var c,h=mt(l),p=h[0],y=h[1],f=new tr(er(l,p,y)),a=0,o=y>0?p-4:p,w;for(w=0;w>16&255,f[a++]=c>>8&255,f[a++]=c&255;return y===2&&(c=T[l.charCodeAt(w)]<<2|T[l.charCodeAt(w+1)]>>4,f[a++]=c&255),y===1&&(c=T[l.charCodeAt(w)]<<10|T[l.charCodeAt(w+1)]<<4|T[l.charCodeAt(w+2)]>>2,f[a++]=c>>8&255,f[a++]=c&255),f}function or(l){return R[l>>18&63]+R[l>>12&63]+R[l>>6&63]+R[l&63]}function sr(l,c,h){for(var p,y=[],f=c;fo?o:a+f));return p===1?(c=l[h-1],y.push(R[c>>2]+R[c<<4&63]+"==")):p===2&&(c=(l[h-2]<<8)+l[h-1],y.push(R[c>>10]+R[c>>4&63]+R[c<<2&63]+"=")),y.join("")}var tt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */tt.read=function(l,c,h,p,y){var f,a,o=y*8-p-1,w=(1<>1,I=-7,F=h?y-1:0,P=h?-1:1,A=l[c+F];for(F+=P,f=A&(1<<-I)-1,A>>=-I,I+=o;I>0;f=f*256+l[c+F],F+=P,I-=8);for(a=f&(1<<-I)-1,f>>=-I,I+=p;I>0;a=a*256+l[c+F],F+=P,I-=8);if(f===0)f=1-C;else{if(f===w)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,p),f=f-C}return(A?-1:1)*a*Math.pow(2,f-p)};tt.write=function(l,c,h,p,y,f){var a,o,w,C=f*8-y-1,I=(1<>1,P=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=p?0:f-1,O=p?1:-1,G=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,a=I):(a=Math.floor(Math.log(c)/Math.LN2),c*(w=Math.pow(2,-a))<1&&(a--,w*=2),a+F>=1?c+=P/w:c+=P*Math.pow(2,1-F),c*w>=2&&(a++,w/=2),a+F>=I?(o=0,a=I):a+F>=1?(o=(c*w-1)*Math.pow(2,y),a=a+F):(o=c*Math.pow(2,F-1)*Math.pow(2,y),a=0));y>=8;l[h+A]=o&255,A+=O,o/=256,y-=8);for(a=a<0;l[h+A]=a&255,A+=O,a/=256,C-=8);l[h+A-O]|=G*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/src/ui/dist/assets/Export-be62f3c3.js.gz b/src/ui/dist/assets/Export-be62f3c3.js.gz new file mode 100644 index 000000000..5a703ad64 Binary files /dev/null and b/src/ui/dist/assets/Export-be62f3c3.js.gz differ diff --git a/src/ui/dist/assets/FactCard-e9e3d5c4.js b/src/ui/dist/assets/FactCard-517d18b6.js similarity index 88% rename from src/ui/dist/assets/FactCard-e9e3d5c4.js rename to src/ui/dist/assets/FactCard-517d18b6.js index 2ba036d36..f9b46e3ef 100644 --- a/src/ui/dist/assets/FactCard-e9e3d5c4.js +++ b/src/ui/dist/assets/FactCard-517d18b6.js @@ -1 +1 @@ -import{i as s,o as t,f as c,w as o,a as r,t as a,c as d,d as n,C as l,_}from"./index-effe4d2f.js";const i={class:"mx-4"},m={key:0,class:"my-0 text-muted"},p=s({__name:"FactCard",props:{withHover:{type:Boolean,default:!1},primaryText:{type:null,default:""},secondaryText:{type:String,default:"",required:!1}},setup(e){return(u,y)=>(t(),c(l,{"with-hover":e.withHover,class:"card p-4"},{default:o(()=>[r("h2",i,a(e.primaryText),1),e.secondaryText?(t(),d("p",m,a(e.secondaryText),1)):n("",!0)]),_:1},8,["with-hover"]))}});const f=_(p,[["__scopeId","data-v-23b147ec"]]);export{f as F}; +import{i as s,o as t,f as c,w as o,a as r,t as a,c as d,d as n,C as l,_}from"./index-926884cb.js";const i={class:"mx-4"},m={key:0,class:"my-0 text-muted"},p=s({__name:"FactCard",props:{withHover:{type:Boolean,default:!1},primaryText:{type:null,default:""},secondaryText:{type:String,default:"",required:!1}},setup(e){return(u,y)=>(t(),c(l,{"with-hover":e.withHover,class:"card p-4"},{default:o(()=>[r("h2",i,a(e.primaryText),1),e.secondaryText?(t(),d("p",m,a(e.secondaryText),1)):n("",!0)]),_:1},8,["with-hover"]))}});const f=_(p,[["__scopeId","data-v-23b147ec"]]);export{f as F}; diff --git a/src/ui/dist/assets/FullShelf-94271883.js b/src/ui/dist/assets/FullShelf-e5484026.js similarity index 87% rename from src/ui/dist/assets/FullShelf-94271883.js rename to src/ui/dist/assets/FullShelf-e5484026.js index 6ef21788f..35d2552a1 100644 --- a/src/ui/dist/assets/FullShelf-94271883.js +++ b/src/ui/dist/assets/FullShelf-e5484026.js @@ -1 +1 @@ -import{_ as c,o as t,c as a,a as s,b as i,t as n,d as l,r as _}from"./index-effe4d2f.js";const d={name:"FullShelf",props:{heading:String,icon:String}},r={class:"shelf"},u={class:"header"},f={key:0,class:"icon material-icons-outlined"},h={class:"items"};function m(o,p,e,S,g,v){return t(),a("div",r,[s("div",u,[s("h2",null,[i(n(e.heading),1),e.icon?(t(),a("span",f,n(e.icon),1)):l("",!0)])]),s("div",h,[_(o.$slots,"default",{},void 0,!0)])])}const y=c(d,[["render",m],["__scopeId","data-v-8fb8961a"]]);export{y as F}; +import{_ as c,o as t,c as a,a as s,b as i,t as n,d as l,r as _}from"./index-926884cb.js";const d={name:"FullShelf",props:{heading:String,icon:String}},r={class:"shelf"},u={class:"header"},f={key:0,class:"icon material-icons-outlined"},h={class:"items"};function m(o,p,e,S,g,v){return t(),a("div",r,[s("div",u,[s("h2",null,[i(n(e.heading),1),e.icon?(t(),a("span",f,n(e.icon),1)):l("",!0)])]),s("div",h,[_(o.$slots,"default",{},void 0,!0)])])}const y=c(d,[["render",m],["__scopeId","data-v-8fb8961a"]]);export{y as F}; diff --git a/src/ui/dist/assets/Import-d1f36c56.js b/src/ui/dist/assets/Import-2f67c72f.js similarity index 98% rename from src/ui/dist/assets/Import-d1f36c56.js rename to src/ui/dist/assets/Import-2f67c72f.js index 78f5c207c..37ac3a35c 100644 --- a/src/ui/dist/assets/Import-d1f36c56.js +++ b/src/ui/dist/assets/Import-2f67c72f.js @@ -1,4 +1,4 @@ -import{i as M,D as F,o as d,c as m,g as P,h as V,a as r,M as A,N as H,t as k,F as B,j as D,O as N,d as h,_ as G,f as C,w as q,b as j,C as I,q as S,k as K,G as Z,E as Q,I as R,L as U,cu as X,y as Y,Z as ee,$ as te,m as se,n as ae,cv as le,cw as ne,cx as oe}from"./index-effe4d2f.js";import{G as J}from"./gistClient-63edeca1.js";const ie=(e,c)=>{const t={source:e.source,id:e.id,changed:{}},a=t.changed,i=["id","href","duration","plays","artists"];for(const l of Object.keys(e))if(!i.includes(l)){if(l==="metadata"){const f=e.metadata,p=c.metadata;if(f&&p){if(!f.spotify&&!p.spotify)continue;if(!f.spotify&&p.spotify){a.metadata={from:f,to:p};continue}if(f.spotify&&!p.spotify){a.metadata={from:f,to:p};continue}f.spotify.id!==p.spotify.id&&(a.metadata={from:f,to:p})}else(f||p)&&(a.metadata={from:f,to:p});continue}l!=="id"&&e[l]!==c[l]&&(a[l]={from:e[l],to:c[l]})}return Object.keys(a).length?t:null},de=(e,c)=>{const t={name:e.playlist.name,id:e.playlist.id,added:[],removed:[],modified:[]};if(e.playlist.type!==c.playlist.type)return null;if(e.playlist.type==="smart"){const a=e.playlist,i=c.playlist;return JSON.stringify(a.definition)!==JSON.stringify(i.definition)?t:null}if(c.playlist.type!=="smart"){for(const a of e.playlist.songs){const i=c.playlist.songs.find(l=>l.source===a.source);if(i){const l=ie(a,i);l&&t.modified.push(l)}else t.removed.push(a)}for(const a of c.playlist.songs)e.playlist.songs.find(l=>l.source===a.source)||t.added.push(a);return t.added.length||t.removed.length||t.modified.length?t:null}},ce=(e,c)=>{const t={added:[],removed:[],modified:[]};for(const a of e.collection){const i=c.collection.find(l=>l.playlist.name===a.playlist.name);if(i){const l=de(a,i);l&&t.modified.push(l)}else t.removed.push(a)}for(const a of c.collection)e.collection.find(l=>l.playlist.name===a.playlist.name)||t.added.push(a);return t},re={class:"overflow-hidden"},ue={class:"title my-0"},fe={key:0,class:"info"},pe={class:"key"},ye={class:"value"},me=M({__name:"SongDiff",props:{song:{type:Object,required:!0},diff:{type:Object,required:!0},isBase:{type:Boolean,required:!1},expanded:{type:Object,required:!1}},emits:["exclude","toggle-expanded"],setup(e,{emit:c}){const t=e,a=F(()=>t.diff.removed.some(o=>o.source===t.song.source)?"removed":t.diff.modified.some(o=>o.source===t.song.source)?"modified":t.isBase?"base":t.diff.added.some(o=>o.source===t.song.source)?"added":"base"),i=c,l=()=>{i("toggle-expanded",t.song)},f=["title","artist","album","source","cover","favourite","metadata"],p=o=>{var _,b,w;const x=(b=(_=t.diff.modified.find($=>$.source===t.song.source))==null?void 0:_.changed)==null?void 0:b[o],v=t.isBase?"from":"to",y=(x==null?void 0:x[v])??t.song[o];return o=="metadata"?(w=y==null?void 0:y.spotify)==null?void 0:w.id:y};return(o,x)=>{var v,y;return!e.isBase&&a.value=="removed"?h("",!0):(d(),m("div",{key:0,class:N([a.value,"song px-4 py-2"])},[P(V,{src:e.song.cover,class:"rounded-md"},null,8,["src"]),r("div",re,[r("p",ue,[P(A,{text:e.song.title},null,8,["text"])]),P(H,{artist:e.song.artist,class:"artist text-muted"},null,8,["artist"])]),r("span",{class:"material-symbols-rounded cursor-pointer",onClick:l},k(((v=e.expanded)==null?void 0:v.source)==e.song.source?"expand_less":"expand_more"),1),((y=e.expanded)==null?void 0:y.source)==e.song.source?(d(),m("div",fe,[(d(),m(B,null,D(f,_=>{var b,w;return r("div",{key:_,class:N([{modified:(w=(b=e.diff.modified.find($=>$.source===e.song.source))==null?void 0:b.changed)==null?void 0:w[_]},"info__table"])},[r("span",pe,k(_),1),r("span",ye,k(p(_)),1)],2)}),64))])):h("",!0)],2))}}});const ge=G(me,[["__scopeId","data-v-1805c709"]]),ve={class:"info"},xe={class:"title"},he={key:0,class:"material-symbols-rounded"},_e={key:0,class:"text-muted"},be={class:"flex flex-row justify-between items-center"},ke={key:0,class:"text-very-muted"},Se={key:0},Pe=M({__name:"PlaylistDiff",props:{playlist:{type:Object,required:!0},diff:{type:Object,required:!0},isBase:{type:Boolean,required:!1},expanded:{type:Boolean,required:!1},expandedSong:{type:Object,required:!1}},emits:["exclude","toggle-expanded","toggle-expanded-song"],setup(e,{emit:c}){const t=e,a=F(()=>t.diff.removed.some(o=>o.playlist.name===t.playlist.name)?"removed":t.diff.modified.some(o=>o.name===t.playlist.name)?"modified":t.isBase?"base":t.diff.added.some(o=>o.playlist.name===t.playlist.name)?"added":"base"),i=c,l=()=>{i("toggle-expanded",t.playlist)},f=o=>{i("toggle-expanded-song",o)},p=o=>{const x=t.diff.modified.find(v=>v.name===o.name);return x||{name:o.name,added:[],removed:[],modified:[]}};return(o,x)=>(d(),C(I,{class:N([a.value,"playlist p-4 rounded-xl relative"])},{default:q(()=>{var v;return[P(V,{src:e.playlist.cover,class:"rounded-xl self-start"},null,8,["src"]),r("div",ve,[r("div",xe,[e.playlist.type!="classic"?(d(),m("span",he,k(e.playlist.type=="smart"?"neurology":"bolt"),1)):h("",!0),r("h2",null,k(e.playlist.name),1)]),e.playlist.description?(d(),m("p",_e,k(e.playlist.description),1)):h("",!0),r("div",be,[e.playlist.type==="classic"?(d(),m("p",ke,[r("strong",null,k((v=e.playlist.songs)==null?void 0:v.length),1),j(" tracks ")])):h("",!0),r("span",{class:"material-symbols-rounded cursor-pointer",title:"Expand",onClick:l},k(e.expanded?"expand_less":"expand_more"),1)])]),e.expanded?(d(),C(I,{key:0,class:"col-span-2 flex flex-col gap-2 z-10 p-4"},{default:q(()=>[e.playlist.type==="classic"?(d(!0),m(B,{key:0},D(e.playlist.songs,y=>(d(),C(ge,{key:y.source,diff:p(e.playlist),expanded:e.expandedSong,"is-base":e.isBase,song:y,onToggleExpanded:f},null,8,["diff","expanded","is-base","song"]))),128)):h("",!0),r("pre",null,[j(" "),e.playlist.type==="smart"?(d(),m("code",Se,` +import{i as M,D as F,o as d,c as m,g as P,h as V,a as r,M as A,N as H,t as k,F as B,j as D,O as N,d as h,_ as G,f as C,w as q,b as j,C as I,q as S,k as K,G as Z,E as Q,I as R,L as U,cu as X,y as Y,Z as ee,$ as te,m as se,n as ae,cv as le,cw as ne,cx as oe}from"./index-926884cb.js";import{G as J}from"./gistClient-c2987d49.js";const ie=(e,c)=>{const t={source:e.source,id:e.id,changed:{}},a=t.changed,i=["id","href","duration","plays","artists"];for(const l of Object.keys(e))if(!i.includes(l)){if(l==="metadata"){const f=e.metadata,p=c.metadata;if(f&&p){if(!f.spotify&&!p.spotify)continue;if(!f.spotify&&p.spotify){a.metadata={from:f,to:p};continue}if(f.spotify&&!p.spotify){a.metadata={from:f,to:p};continue}f.spotify.id!==p.spotify.id&&(a.metadata={from:f,to:p})}else(f||p)&&(a.metadata={from:f,to:p});continue}l!=="id"&&e[l]!==c[l]&&(a[l]={from:e[l],to:c[l]})}return Object.keys(a).length?t:null},de=(e,c)=>{const t={name:e.playlist.name,id:e.playlist.id,added:[],removed:[],modified:[]};if(e.playlist.type!==c.playlist.type)return null;if(e.playlist.type==="smart"){const a=e.playlist,i=c.playlist;return JSON.stringify(a.definition)!==JSON.stringify(i.definition)?t:null}if(c.playlist.type!=="smart"){for(const a of e.playlist.songs){const i=c.playlist.songs.find(l=>l.source===a.source);if(i){const l=ie(a,i);l&&t.modified.push(l)}else t.removed.push(a)}for(const a of c.playlist.songs)e.playlist.songs.find(l=>l.source===a.source)||t.added.push(a);return t.added.length||t.removed.length||t.modified.length?t:null}},ce=(e,c)=>{const t={added:[],removed:[],modified:[]};for(const a of e.collection){const i=c.collection.find(l=>l.playlist.name===a.playlist.name);if(i){const l=de(a,i);l&&t.modified.push(l)}else t.removed.push(a)}for(const a of c.collection)e.collection.find(l=>l.playlist.name===a.playlist.name)||t.added.push(a);return t},re={class:"overflow-hidden"},ue={class:"title my-0"},fe={key:0,class:"info"},pe={class:"key"},ye={class:"value"},me=M({__name:"SongDiff",props:{song:{type:Object,required:!0},diff:{type:Object,required:!0},isBase:{type:Boolean,required:!1},expanded:{type:Object,required:!1}},emits:["exclude","toggle-expanded"],setup(e,{emit:c}){const t=e,a=F(()=>t.diff.removed.some(o=>o.source===t.song.source)?"removed":t.diff.modified.some(o=>o.source===t.song.source)?"modified":t.isBase?"base":t.diff.added.some(o=>o.source===t.song.source)?"added":"base"),i=c,l=()=>{i("toggle-expanded",t.song)},f=["title","artist","album","source","cover","favourite","metadata"],p=o=>{var _,b,w;const x=(b=(_=t.diff.modified.find($=>$.source===t.song.source))==null?void 0:_.changed)==null?void 0:b[o],v=t.isBase?"from":"to",y=(x==null?void 0:x[v])??t.song[o];return o=="metadata"?(w=y==null?void 0:y.spotify)==null?void 0:w.id:y};return(o,x)=>{var v,y;return!e.isBase&&a.value=="removed"?h("",!0):(d(),m("div",{key:0,class:N([a.value,"song px-4 py-2"])},[P(V,{src:e.song.cover,class:"rounded-md"},null,8,["src"]),r("div",re,[r("p",ue,[P(A,{text:e.song.title},null,8,["text"])]),P(H,{artist:e.song.artist,class:"artist text-muted"},null,8,["artist"])]),r("span",{class:"material-symbols-rounded cursor-pointer",onClick:l},k(((v=e.expanded)==null?void 0:v.source)==e.song.source?"expand_less":"expand_more"),1),((y=e.expanded)==null?void 0:y.source)==e.song.source?(d(),m("div",fe,[(d(),m(B,null,D(f,_=>{var b,w;return r("div",{key:_,class:N([{modified:(w=(b=e.diff.modified.find($=>$.source===e.song.source))==null?void 0:b.changed)==null?void 0:w[_]},"info__table"])},[r("span",pe,k(_),1),r("span",ye,k(p(_)),1)],2)}),64))])):h("",!0)],2))}}});const ge=G(me,[["__scopeId","data-v-1805c709"]]),ve={class:"info"},xe={class:"title"},he={key:0,class:"material-symbols-rounded"},_e={key:0,class:"text-muted"},be={class:"flex flex-row justify-between items-center"},ke={key:0,class:"text-very-muted"},Se={key:0},Pe=M({__name:"PlaylistDiff",props:{playlist:{type:Object,required:!0},diff:{type:Object,required:!0},isBase:{type:Boolean,required:!1},expanded:{type:Boolean,required:!1},expandedSong:{type:Object,required:!1}},emits:["exclude","toggle-expanded","toggle-expanded-song"],setup(e,{emit:c}){const t=e,a=F(()=>t.diff.removed.some(o=>o.playlist.name===t.playlist.name)?"removed":t.diff.modified.some(o=>o.name===t.playlist.name)?"modified":t.isBase?"base":t.diff.added.some(o=>o.playlist.name===t.playlist.name)?"added":"base"),i=c,l=()=>{i("toggle-expanded",t.playlist)},f=o=>{i("toggle-expanded-song",o)},p=o=>{const x=t.diff.modified.find(v=>v.name===o.name);return x||{name:o.name,added:[],removed:[],modified:[]}};return(o,x)=>(d(),C(I,{class:N([a.value,"playlist p-4 rounded-xl relative"])},{default:q(()=>{var v;return[P(V,{src:e.playlist.cover,class:"rounded-xl self-start"},null,8,["src"]),r("div",ve,[r("div",xe,[e.playlist.type!="classic"?(d(),m("span",he,k(e.playlist.type=="smart"?"neurology":"bolt"),1)):h("",!0),r("h2",null,k(e.playlist.name),1)]),e.playlist.description?(d(),m("p",_e,k(e.playlist.description),1)):h("",!0),r("div",be,[e.playlist.type==="classic"?(d(),m("p",ke,[r("strong",null,k((v=e.playlist.songs)==null?void 0:v.length),1),j(" tracks ")])):h("",!0),r("span",{class:"material-symbols-rounded cursor-pointer",title:"Expand",onClick:l},k(e.expanded?"expand_less":"expand_more"),1)])]),e.expanded?(d(),C(I,{key:0,class:"col-span-2 flex flex-col gap-2 z-10 p-4"},{default:q(()=>[e.playlist.type==="classic"?(d(!0),m(B,{key:0},D(e.playlist.songs,y=>(d(),C(ge,{key:y.source,diff:p(e.playlist),expanded:e.expandedSong,"is-base":e.isBase,song:y,onToggleExpanded:f},null,8,["diff","expanded","is-base","song"]))),128)):h("",!0),r("pre",null,[j(" "),e.playlist.type==="smart"?(d(),m("code",Se,` `+k(JSON.stringify(e.playlist.definition,null,4))+` `,1)):h("",!0),j(` `)])]),_:1})):h("",!0),a.value!="base"?(d(),m("span",{key:1,class:"material-symbols-rounded exclude",title:"Exclude",onClick:x[0]||(x[0]=y=>o.$emit("exclude",e.playlist))}," block ")):h("",!0)]}),_:1},8,["class"]))}});const T=G(Pe,[["__scopeId","data-v-cda0dc11"]]),L=e=>(se("data-v-5b4910f3"),e=e(),ae(),e),we={class:"pb-4 pr-4 flex flex-col gap-4 h-full"},Ee={class:"flex flex-row justify-end"},$e=L(()=>r("div",{class:"grid grid-cols-2 gap-4"},[r("h1",null,"Local"),r("h1",null,"Incoming")],-1)),Be={key:1,class:"fill-page"},Ce={key:1,class:"fill-page !grid !grid-cols-2 gap-4"},Oe=L(()=>r("h2",null,[r("span",{class:"material-symbols-rounded"},"file_upload"),j(" From File ")],-1)),je=L(()=>r("h2",null,[r("span",{class:"material-symbols-rounded"},"cloud_download"),j(" GitHub Gist ")],-1)),De=M({__name:"Import",setup(e){const c=S(!1),t=S(null),a=S({}),i=S({}),l=F(()=>ce(a.value,i.value)),f=K();let p=!1;const o=async()=>{var g;if(c.value||p)return;p=!0;const n=[];for(const s of(g=f.playlists)==null?void 0:g.filter(u=>u.type!="special")){const u=Object.assign({},s);n.push(u)}a.value=await X(n),p=!1};Z(()=>f.playlists,o),Q(o);const x=n=>{a.value.collection=a.value.collection.filter(g=>g.playlist.name!==n.name),i.value.collection=i.value.collection.filter(g=>g.playlist.name!==n.name)},v=S(null),y=S(null),_=n=>{var g;((g=v.value)==null?void 0:g.name)===n.name?v.value=null:v.value=n},b=n=>{var g;((g=y.value)==null?void 0:g.id)===n.id?y.value=null:y.value=n},w=async()=>{c.value=!0;const n=[],g=s=>{n.push(le(s.id,s.added));for(const u of s.removed)n.push(ne(s.id,u.id));for(const u of s.modified)for(const E of Object.keys(u.changed))n.push(oe(u.id,E,u.changed[E].to))};for(const s of l.value.added)a.value.collection.push(s),n.push(Y(s.playlist.type,s.playlist.name,s.playlist.description,s.playlist.cover).then(u=>{s.playlist.id=u,s.playlist.type==="classic"?g({id:s.playlist.id,name:s.playlist.name,added:s.playlist.songs,removed:[],modified:[]}):s.playlist.type==="smart"&&n.push(ee(s.playlist.id,s.playlist.definition))}));for(const s of l.value.modified)g(s);for(const s of l.value.removed)n.push(te(s.playlist.id));await Promise.all(n),window.setTimeout(async()=>{await f.fetchPlaylists(),c.value=!1,await o()},1e3)},$=S(!1);J.connected().then(n=>$.value=n);const z=async()=>{const n=document.createElement("input");n.type="file",n.accept=".one.*",n.name="my.one.collection",n.onchange=async()=>{if(!n.files)return;const s=await n.files[0].text(),u=JSON.parse(s);i.value=u,t.value="file"},n.click()},W=async()=>{i.value=await J.getContent(),t.value="gist"};return S(null),(n,g)=>(d(),m("div",we,[r("div",Ee,[P(R,{icon:"merge",label:"Merge",onClick:w})]),t.value?(d(),m(B,{key:0},[c.value?(d(),m("div",Be,[P(U)])):(d(),m(B,{key:0},[$e,(d(!0),m(B,null,D(a.value.collection,s=>{var u,E;return d(),m("div",{key:s.playlist.name,class:"grid grid-cols-2 gap-4"},[a.value.collection.some(O=>O.playlist.name===s.playlist.name)?(d(),C(T,{key:0,diff:l.value,expanded:((u=v.value)==null?void 0:u.name)===s.playlist.name,"expanded-song":y.value,playlist:s.playlist,class:"grid-1","is-base":"",onExclude:x,onToggleExpanded:_,onToggleExpandedSong:b},null,8,["diff","expanded","expanded-song","playlist"])):h("",!0),i.value.collection.some(O=>O.playlist.name===s.playlist.name)?(d(),C(T,{key:1,diff:l.value,expanded:((E=v.value)==null?void 0:E.name)===s.playlist.name,"expanded-song":y.value,playlist:i.value.collection.find(O=>O.playlist.name===s.playlist.name).playlist,class:"grid-2",onExclude:x,onToggleExpanded:_,onToggleExpandedSong:b},null,8,["diff","expanded","expanded-song","playlist"])):h("",!0)])}),128)),(d(!0),m(B,null,D(l.value.added,s=>{var u;return d(),m("div",{key:s.playlist.name,class:"grid grid-cols-2 gap-4"},[i.value.collection.some(E=>E.playlist.name===s.playlist.name)?(d(),C(T,{key:0,diff:l.value,expanded:((u=v.value)==null?void 0:u.name)===s.playlist.name,"expanded-song":y.value,playlist:s.playlist,class:"grid-2",onExclude:x,onToggleExpanded:_,onToggleExpandedSong:b},null,8,["diff","expanded","expanded-song","playlist"])):h("",!0)])}),128))],64))],64)):(d(),m("div",Ce,[P(I,{"with-hover":"",class:"cursor-pointer",onClick:z},{default:q(()=>[Oe]),_:1}),P(I,{disabled:!$.value,"with-hover":"",class:"cursor-pointer",onClick:W},{default:q(()=>[je]),_:1},8,["disabled"])]))]))}});const Te=G(De,[["__scopeId","data-v-5b4910f3"]]);export{Te as default}; diff --git a/src/ui/dist/assets/Import-2f67c72f.js.gz b/src/ui/dist/assets/Import-2f67c72f.js.gz new file mode 100644 index 000000000..382ef4860 Binary files /dev/null and b/src/ui/dist/assets/Import-2f67c72f.js.gz differ diff --git a/src/ui/dist/assets/Import-d1f36c56.js.gz b/src/ui/dist/assets/Import-d1f36c56.js.gz deleted file mode 100644 index f33ff137d..000000000 Binary files a/src/ui/dist/assets/Import-d1f36c56.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/ImportLink-dd654ee2.js b/src/ui/dist/assets/ImportLink-a264ba07.js similarity index 95% rename from src/ui/dist/assets/ImportLink-dd654ee2.js rename to src/ui/dist/assets/ImportLink-a264ba07.js index 571aae428..fc5e4fd23 100644 --- a/src/ui/dist/assets/ImportLink-dd654ee2.js +++ b/src/ui/dist/assets/ImportLink-a264ba07.js @@ -1 +1 @@ -import{i as w,B as b,s as C,q as _,E as B,o as a,c as n,a as s,t as c,b as d,f as I,w as j,F as $,j as L,g as f,I as m,u as N,C as R,cy as V,_ as E}from"./index-effe4d2f.js";const F={class:"max-w-[60ch] w-full h-full flex items-center justify-center"},S={class:"flex-col"},q={key:0,class:"text-muted italic text-sm"},A={class:"ml-0"},D={class:"flex gap-2 items-center"},M={class:"text-muted uppercase text-sm"},O=["onClick"],T={class:"buttons flex gap-2"},z=w({__name:"ImportLink",setup(G){const h=b(),l=C(),r=_(""),e=_([]);B(async()=>{const i=h.params.id,o=atob(i),[t,...u]=o.split(":");if(t==="gist"){const[p,v,y]=u,g=`https://gist.githubusercontent.com/${p}/${v}/raw/${y}`,k=await(await fetch(g)).json();e.value=[k],r.value=p}});const x=async()=>{await V(e.value),l.push("/")};return(i,o)=>(a(),n("div",F,[s("div",S,[s("strong",null,c(r.value),1),d(" wants to share: "),e.value.length==0?(a(),n("span",q,"Nothing")):(a(),I(R,{key:1,class:"p-4 mt-4 w-max flex flex-col gap-4"},{default:j(()=>[s("ul",A,[(a(!0),n($,null,L(e.value,t=>(a(),n("li",D,[s("span",M,c(t.type),1),d(" "+c(t.playlist.name)+" ",1),s("span",{class:"material-symbols-rounded cursor-pointer",onClick:u=>e.value.splice(e.value.indexOf(t),1)}," delete ",8,O)]))),256))]),s("div",T,[f(m,{type:"success",icon:"check",label:"Accept",onClick:x}),f(m,{type:"danger",icon:"close",label:"Reject",onClick:o[0]||(o[0]=t=>N(l).push("/"))})])]),_:1}))])]))}});const K=E(z,[["__scopeId","data-v-608ea9fa"]]);export{K as default}; +import{i as w,B as b,s as C,q as _,E as B,o as a,c as n,a as s,t as c,b as d,f as I,w as j,F as $,j as L,g as f,I as m,u as N,C as R,cy as V,_ as E}from"./index-926884cb.js";const F={class:"max-w-[60ch] w-full h-full flex items-center justify-center"},S={class:"flex-col"},q={key:0,class:"text-muted italic text-sm"},A={class:"ml-0"},D={class:"flex gap-2 items-center"},M={class:"text-muted uppercase text-sm"},O=["onClick"],T={class:"buttons flex gap-2"},z=w({__name:"ImportLink",setup(G){const h=b(),l=C(),r=_(""),e=_([]);B(async()=>{const i=h.params.id,o=atob(i),[t,...u]=o.split(":");if(t==="gist"){const[p,v,y]=u,g=`https://gist.githubusercontent.com/${p}/${v}/raw/${y}`,k=await(await fetch(g)).json();e.value=[k],r.value=p}});const x=async()=>{await V(e.value),l.push("/")};return(i,o)=>(a(),n("div",F,[s("div",S,[s("strong",null,c(r.value),1),d(" wants to share: "),e.value.length==0?(a(),n("span",q,"Nothing")):(a(),I(R,{key:1,class:"p-4 mt-4 w-max flex flex-col gap-4"},{default:j(()=>[s("ul",A,[(a(!0),n($,null,L(e.value,t=>(a(),n("li",D,[s("span",M,c(t.type),1),d(" "+c(t.playlist.name)+" ",1),s("span",{class:"material-symbols-rounded cursor-pointer",onClick:u=>e.value.splice(e.value.indexOf(t),1)}," delete ",8,O)]))),256))]),s("div",T,[f(m,{type:"success",icon:"check",label:"Accept",onClick:x}),f(m,{type:"danger",icon:"close",label:"Reject",onClick:o[0]||(o[0]=t=>N(l).push("/"))})])]),_:1}))])]))}});const K=E(z,[["__scopeId","data-v-608ea9fa"]]);export{K as default}; diff --git a/src/ui/dist/assets/ImportLink-a264ba07.js.gz b/src/ui/dist/assets/ImportLink-a264ba07.js.gz new file mode 100644 index 000000000..078e607b7 Binary files /dev/null and b/src/ui/dist/assets/ImportLink-a264ba07.js.gz differ diff --git a/src/ui/dist/assets/ImportLink-dd654ee2.js.gz b/src/ui/dist/assets/ImportLink-dd654ee2.js.gz deleted file mode 100644 index 090e35255..000000000 Binary files a/src/ui/dist/assets/ImportLink-dd654ee2.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Insight-a38a8858.js.gz b/src/ui/dist/assets/Insight-a38a8858.js.gz deleted file mode 100644 index 3f569b474..000000000 Binary files a/src/ui/dist/assets/Insight-a38a8858.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Insight-a38a8858.js b/src/ui/dist/assets/Insight-e5370e3a.js similarity index 99% rename from src/ui/dist/assets/Insight-a38a8858.js rename to src/ui/dist/assets/Insight-e5370e3a.js index ab77f9885..4987d59e8 100644 --- a/src/ui/dist/assets/Insight-a38a8858.js +++ b/src/ui/dist/assets/Insight-e5370e3a.js @@ -1,4 +1,4 @@ -var Kn=Object.defineProperty;var qn=(i,t,e)=>t in i?Kn(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(qn(i,typeof t!="symbol"?t+"":t,e),e);import{i as Gn,q as Zt,c9 as Zn,cD as Qn,E as Jn,o as to,c as eo,g as wt,u as Mt,cb as io,a as I,w as Vt,C as Nt,t as ei,F as so,m as no,n as oo,_ as ao}from"./index-effe4d2f.js";/*! +var Kn=Object.defineProperty;var qn=(i,t,e)=>t in i?Kn(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(qn(i,typeof t!="symbol"?t+"":t,e),e);import{i as Gn,q as Zt,c9 as Zn,cD as Qn,E as Jn,o as to,c as eo,g as wt,u as Mt,cb as io,a as I,w as Vt,C as Nt,t as ei,F as so,m as no,n as oo,_ as ao}from"./index-926884cb.js";/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela diff --git a/src/ui/dist/assets/Insight-e5370e3a.js.gz b/src/ui/dist/assets/Insight-e5370e3a.js.gz new file mode 100644 index 000000000..16714cfce Binary files /dev/null and b/src/ui/dist/assets/Insight-e5370e3a.js.gz differ diff --git a/src/ui/dist/assets/Liked-7933f62e.js b/src/ui/dist/assets/Liked-7933f62e.js deleted file mode 100644 index 0d6883d50..000000000 --- a/src/ui/dist/assets/Liked-7933f62e.js +++ /dev/null @@ -1 +0,0 @@ -import{T as o}from"./Template-e0818326.js";import{f as r,o as t}from"./index-effe4d2f.js";import"./PlaylistEntry-9c8199d3.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";import"./FactCard-e9e3d5c4.js";import"./gistClient-63edeca1.js";import"./Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js";const d={__name:"Liked",setup(e){return(p,m)=>(t(),r(o,{id:"liked"}))}};export{d as default}; diff --git a/src/ui/dist/assets/Liked-b900d113.js b/src/ui/dist/assets/Liked-b900d113.js new file mode 100644 index 000000000..be6802664 --- /dev/null +++ b/src/ui/dist/assets/Liked-b900d113.js @@ -0,0 +1 @@ +import{T as o}from"./Template-d4a34a3b.js";import{f as r,o as t}from"./index-926884cb.js";import"./PlaylistEntry-c58cccb9.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";import"./FactCard-517d18b6.js";import"./gistClient-c2987d49.js";import"./Markdown.vue_vue_type_style_index_0_lang-863128c2.js";const d={__name:"Liked",setup(e){return(p,m)=>(t(),r(o,{id:"liked"}))}};export{d as default}; diff --git a/src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js b/src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js similarity index 99% rename from src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js rename to src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js index 4162a585e..9ef2b0c65 100644 --- a/src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js +++ b/src/ui/dist/assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js @@ -1,4 +1,4 @@ -import{c0 as Ht,c2 as Zt,i as Jt,q as Wt,o as Yt,f as Qt,w as Kt,a as Xt,u as nr,c4 as tr}from"./index-effe4d2f.js";var q={};const rr="Á",or="á",er="Ă",sr="ă",cr="∾",ir="∿",ar="∾̳",lr="Â",ur="â",pr="´",fr="А",hr="а",dr="Æ",mr="æ",gr="⁡",_r="𝔄",br="𝔞",kr="À",xr="à",vr="ℵ",yr="ℵ",Cr="Α",wr="α",Ar="Ā",qr="ā",Dr="⨿",Er="&",Sr="&",Fr="⩕",Lr="⩓",Tr="∧",Rr="⩜",zr="⩘",Ir="⩚",Br="∠",Nr="⦤",Mr="∠",Pr="⦨",Or="⦩",Ur="⦪",Vr="⦫",$r="⦬",Gr="⦭",jr="⦮",Hr="⦯",Zr="∡",Jr="∟",Wr="⊾",Yr="⦝",Qr="∢",Kr="Å",Xr="⍼",no="Ą",to="ą",ro="𝔸",oo="𝕒",eo="⩯",so="≈",co="⩰",io="≊",ao="≋",lo="'",uo="⁡",po="≈",fo="≊",ho="Å",mo="å",go="𝒜",_o="𝒶",bo="≔",ko="*",xo="≈",vo="≍",yo="Ã",Co="ã",wo="Ä",Ao="ä",qo="∳",Do="⨑",Eo="≌",So="϶",Fo="‵",Lo="∽",To="⋍",Ro="∖",zo="⫧",Io="⊽",Bo="⌅",No="⌆",Mo="⌅",Po="⎵",Oo="⎶",Uo="≌",Vo="Б",$o="б",Go="„",jo="∵",Ho="∵",Zo="∵",Jo="⦰",Wo="϶",Yo="ℬ",Qo="ℬ",Ko="Β",Xo="β",ne="ℶ",te="≬",re="𝔅",oe="𝔟",ee="⋂",se="◯",ce="⋃",ie="⨀",ae="⨁",le="⨂",ue="⨆",pe="★",fe="▽",he="△",de="⨄",me="⋁",ge="⋀",_e="⤍",be="⧫",ke="▪",xe="▴",ve="▾",ye="◂",Ce="▸",we="␣",Ae="▒",qe="░",De="▓",Ee="█",Se="=⃥",Fe="≡⃥",Le="⫭",Te="⌐",Re="𝔹",ze="𝕓",Ie="⊥",Be="⊥",Ne="⋈",Me="⧉",Pe="┐",Oe="╕",Ue="╖",Ve="╗",$e="┌",Ge="╒",je="╓",He="╔",Ze="─",Je="═",We="┬",Ye="╤",Qe="╥",Ke="╦",Xe="┴",ns="╧",ts="╨",rs="╩",os="⊟",es="⊞",ss="⊠",cs="┘",is="╛",as="╜",ls="╝",us="└",ps="╘",fs="╙",hs="╚",ds="│",ms="║",gs="┼",_s="╪",bs="╫",ks="╬",xs="┤",vs="╡",ys="╢",Cs="╣",ws="├",As="╞",qs="╟",Ds="╠",Es="‵",Ss="˘",Fs="˘",Ls="¦",Ts="𝒷",Rs="ℬ",zs="⁏",Is="∽",Bs="⋍",Ns="⧅",Ms="\\",Ps="⟈",Os="•",Us="•",Vs="≎",$s="⪮",Gs="≏",js="≎",Hs="≏",Zs="Ć",Js="ć",Ws="⩄",Ys="⩉",Qs="⩋",Ks="∩",Xs="⋒",nc="⩇",tc="⩀",rc="ⅅ",oc="∩︀",ec="⁁",sc="ˇ",cc="ℭ",ic="⩍",ac="Č",lc="č",uc="Ç",pc="ç",fc="Ĉ",hc="ĉ",dc="∰",mc="⩌",gc="⩐",_c="Ċ",bc="ċ",kc="¸",xc="¸",vc="⦲",yc="¢",Cc="·",wc="·",Ac="𝔠",qc="ℭ",Dc="Ч",Ec="ч",Sc="✓",Fc="✓",Lc="Χ",Tc="χ",Rc="ˆ",zc="≗",Ic="↺",Bc="↻",Nc="⊛",Mc="⊚",Pc="⊝",Oc="⊙",Uc="®",Vc="Ⓢ",$c="⊖",Gc="⊕",jc="⊗",Hc="○",Zc="⧃",Jc="≗",Wc="⨐",Yc="⫯",Qc="⧂",Kc="∲",Xc="”",ni="’",ti="♣",ri="♣",oi=":",ei="∷",si="⩴",ci="≔",ii="≔",ai=",",li="@",ui="∁",pi="∘",fi="∁",hi="ℂ",di="≅",mi="⩭",gi="≡",_i="∮",bi="∯",ki="∮",xi="𝕔",vi="ℂ",yi="∐",Ci="∐",wi="©",Ai="©",qi="℗",Di="∳",Ei="↵",Si="✗",Fi="⨯",Li="𝒞",Ti="𝒸",Ri="⫏",zi="⫑",Ii="⫐",Bi="⫒",Ni="⋯",Mi="⤸",Pi="⤵",Oi="⋞",Ui="⋟",Vi="↶",$i="⤽",Gi="⩈",ji="⩆",Hi="≍",Zi="∪",Ji="⋓",Wi="⩊",Yi="⊍",Qi="⩅",Ki="∪︀",Xi="↷",na="⤼",ta="⋞",ra="⋟",oa="⋎",ea="⋏",sa="¤",ca="↶",ia="↷",aa="⋎",la="⋏",ua="∲",pa="∱",fa="⌭",ha="†",da="‡",ma="ℸ",ga="↓",_a="↡",ba="⇓",ka="‐",xa="⫤",va="⊣",ya="⤏",Ca="˝",wa="Ď",Aa="ď",qa="Д",Da="д",Ea="‡",Sa="⇊",Fa="ⅅ",La="ⅆ",Ta="⤑",Ra="⩷",za="°",Ia="∇",Ba="Δ",Na="δ",Ma="⦱",Pa="⥿",Oa="𝔇",Ua="𝔡",Va="⥥",$a="⇃",Ga="⇂",ja="´",Ha="˙",Za="˝",Ja="`",Wa="˜",Ya="⋄",Qa="⋄",Ka="⋄",Xa="♦",nl="♦",tl="¨",rl="ⅆ",ol="ϝ",el="⋲",sl="÷",cl="÷",il="⋇",al="⋇",ll="Ђ",ul="ђ",pl="⌞",fl="⌍",hl="$",dl="𝔻",ml="𝕕",gl="¨",_l="˙",bl="⃜",kl="≐",xl="≑",vl="≐",yl="∸",Cl="∔",wl="⊡",Al="⌆",ql="∯",Dl="¨",El="⇓",Sl="⇐",Fl="⇔",Ll="⫤",Tl="⟸",Rl="⟺",zl="⟹",Il="⇒",Bl="⊨",Nl="⇑",Ml="⇕",Pl="∥",Ol="⤓",Ul="↓",Vl="↓",$l="⇓",Gl="⇵",jl="̑",Hl="⇊",Zl="⇃",Jl="⇂",Wl="⥐",Yl="⥞",Ql="⥖",Kl="↽",Xl="⥟",nu="⥗",tu="⇁",ru="↧",ou="⊤",eu="⤐",su="⌟",cu="⌌",iu="𝒟",au="𝒹",lu="Ѕ",uu="ѕ",pu="⧶",fu="Đ",hu="đ",du="⋱",mu="▿",gu="▾",_u="⇵",bu="⥯",ku="⦦",xu="Џ",vu="џ",yu="⟿",Cu="É",wu="é",Au="⩮",qu="Ě",Du="ě",Eu="Ê",Su="ê",Fu="≖",Lu="≕",Tu="Э",Ru="э",zu="⩷",Iu="Ė",Bu="ė",Nu="≑",Mu="ⅇ",Pu="≒",Ou="𝔈",Uu="𝔢",Vu="⪚",$u="È",Gu="è",ju="⪖",Hu="⪘",Zu="⪙",Ju="∈",Wu="⏧",Yu="ℓ",Qu="⪕",Ku="⪗",Xu="Ē",np="ē",tp="∅",rp="∅",op="◻",ep="∅",sp="▫",cp=" ",ip=" ",ap=" ",lp="Ŋ",up="ŋ",pp=" ",fp="Ę",hp="ę",dp="𝔼",mp="𝕖",gp="⋕",_p="⧣",bp="⩱",kp="ε",xp="Ε",vp="ε",yp="ϵ",Cp="≖",wp="≕",Ap="≂",qp="⪖",Dp="⪕",Ep="⩵",Sp="=",Fp="≂",Lp="≟",Tp="⇌",Rp="≡",zp="⩸",Ip="⧥",Bp="⥱",Np="≓",Mp="ℯ",Pp="ℰ",Op="≐",Up="⩳",Vp="≂",$p="Η",Gp="η",jp="Ð",Hp="ð",Zp="Ë",Jp="ë",Wp="€",Yp="!",Qp="∃",Kp="∃",Xp="ℰ",nf="ⅇ",tf="ⅇ",rf="≒",of="Ф",ef="ф",sf="♀",cf="ffi",af="ff",lf="ffl",uf="𝔉",pf="𝔣",ff="fi",hf="◼",df="▪",mf="fj",gf="♭",_f="fl",bf="▱",kf="ƒ",xf="𝔽",vf="𝕗",yf="∀",Cf="∀",wf="⋔",Af="⫙",qf="ℱ",Df="⨍",Ef="½",Sf="⅓",Ff="¼",Lf="⅕",Tf="⅙",Rf="⅛",zf="⅔",If="⅖",Bf="¾",Nf="⅗",Mf="⅜",Pf="⅘",Of="⅚",Uf="⅝",Vf="⅞",$f="⁄",Gf="⌢",jf="𝒻",Hf="ℱ",Zf="ǵ",Jf="Γ",Wf="γ",Yf="Ϝ",Qf="ϝ",Kf="⪆",Xf="Ğ",nh="ğ",th="Ģ",rh="Ĝ",oh="ĝ",eh="Г",sh="г",ch="Ġ",ih="ġ",ah="≥",lh="≧",uh="⪌",ph="⋛",fh="≥",hh="≧",dh="⩾",mh="⪩",gh="⩾",_h="⪀",bh="⪂",kh="⪄",xh="⋛︀",vh="⪔",yh="𝔊",Ch="𝔤",wh="≫",Ah="⋙",qh="⋙",Dh="ℷ",Eh="Ѓ",Sh="ѓ",Fh="⪥",Lh="≷",Th="⪒",Rh="⪤",zh="⪊",Ih="⪊",Bh="⪈",Nh="≩",Mh="⪈",Ph="≩",Oh="⋧",Uh="𝔾",Vh="𝕘",$h="`",Gh="≥",jh="⋛",Hh="≧",Zh="⪢",Jh="≷",Wh="⩾",Yh="≳",Qh="𝒢",Kh="ℊ",Xh="≳",nd="⪎",td="⪐",rd="⪧",od="⩺",ed=">",sd=">",cd="≫",id="⋗",ad="⦕",ld="⩼",ud="⪆",pd="⥸",fd="⋗",hd="⋛",dd="⪌",md="≷",gd="≳",_d="≩︀",bd="≩︀",kd="ˇ",xd=" ",vd="½",yd="ℋ",Cd="Ъ",wd="ъ",Ad="⥈",qd="↔",Dd="⇔",Ed="↭",Sd="^",Fd="ℏ",Ld="Ĥ",Td="ĥ",Rd="♥",zd="♥",Id="…",Bd="⊹",Nd="𝔥",Md="ℌ",Pd="ℋ",Od="⤥",Ud="⤦",Vd="⇿",$d="∻",Gd="↩",jd="↪",Hd="𝕙",Zd="ℍ",Jd="―",Wd="─",Yd="𝒽",Qd="ℋ",Kd="ℏ",Xd="Ħ",nm="ħ",tm="≎",rm="≏",om="⁃",em="‐",sm="Í",cm="í",im="⁣",am="Î",lm="î",um="И",pm="и",fm="İ",hm="Е",dm="е",mm="¡",gm="⇔",_m="𝔦",bm="ℑ",km="Ì",xm="ì",vm="ⅈ",ym="⨌",Cm="∭",wm="⧜",Am="℩",qm="IJ",Dm="ij",Em="Ī",Sm="ī",Fm="ℑ",Lm="ⅈ",Tm="ℐ",Rm="ℑ",zm="ı",Im="ℑ",Bm="⊷",Nm="Ƶ",Mm="⇒",Pm="℅",Om="∞",Um="⧝",Vm="ı",$m="⊺",Gm="∫",jm="∬",Hm="ℤ",Zm="∫",Jm="⊺",Wm="⋂",Ym="⨗",Qm="⨼",Km="⁣",Xm="⁢",ng="Ё",tg="ё",rg="Į",og="į",eg="𝕀",sg="𝕚",cg="Ι",ig="ι",ag="⨼",lg="¿",ug="𝒾",pg="ℐ",fg="∈",hg="⋵",dg="⋹",mg="⋴",gg="⋳",_g="∈",bg="⁢",kg="Ĩ",xg="ĩ",vg="І",yg="і",Cg="Ï",wg="ï",Ag="Ĵ",qg="ĵ",Dg="Й",Eg="й",Sg="𝔍",Fg="𝔧",Lg="ȷ",Tg="𝕁",Rg="𝕛",zg="𝒥",Ig="𝒿",Bg="Ј",Ng="ј",Mg="Є",Pg="є",Og="Κ",Ug="κ",Vg="ϰ",$g="Ķ",Gg="ķ",jg="К",Hg="к",Zg="𝔎",Jg="𝔨",Wg="ĸ",Yg="Х",Qg="х",Kg="Ќ",Xg="ќ",n0="𝕂",t0="𝕜",r0="𝒦",o0="𝓀",e0="⇚",s0="Ĺ",c0="ĺ",i0="⦴",a0="ℒ",l0="Λ",u0="λ",p0="⟨",f0="⟪",h0="⦑",d0="⟨",m0="⪅",g0="ℒ",_0="«",b0="⇤",k0="⤟",x0="←",v0="↞",y0="⇐",C0="⤝",w0="↩",A0="↫",q0="⤹",D0="⥳",E0="↢",S0="⤙",F0="⤛",L0="⪫",T0="⪭",R0="⪭︀",z0="⤌",I0="⤎",B0="❲",N0="{",M0="[",P0="⦋",O0="⦏",U0="⦍",V0="Ľ",$0="ľ",G0="Ļ",j0="ļ",H0="⌈",Z0="{",J0="Л",W0="л",Y0="⤶",Q0="“",K0="„",X0="⥧",n_="⥋",t_="↲",r_="≤",o_="≦",e_="⟨",s_="⇤",c_="←",i_="←",a_="⇐",l_="⇆",u_="↢",p_="⌈",f_="⟦",h_="⥡",d_="⥙",m_="⇃",g_="⌊",__="↽",b_="↼",k_="⇇",x_="↔",v_="↔",y_="⇔",C_="⇆",w_="⇋",A_="↭",q_="⥎",D_="↤",E_="⊣",S_="⥚",F_="⋋",L_="⧏",T_="⊲",R_="⊴",z_="⥑",I_="⥠",B_="⥘",N_="↿",M_="⥒",P_="↼",O_="⪋",U_="⋚",V_="≤",$_="≦",G_="⩽",j_="⪨",H_="⩽",Z_="⩿",J_="⪁",W_="⪃",Y_="⋚︀",Q_="⪓",K_="⪅",X_="⋖",nb="⋚",tb="⪋",rb="⋚",ob="≦",eb="≶",sb="≶",cb="⪡",ib="≲",ab="⩽",lb="≲",ub="⥼",pb="⌊",fb="𝔏",hb="𝔩",db="≶",mb="⪑",gb="⥢",_b="↽",bb="↼",kb="⥪",xb="▄",vb="Љ",yb="љ",Cb="⇇",wb="≪",Ab="⋘",qb="⌞",Db="⇚",Eb="⥫",Sb="◺",Fb="Ŀ",Lb="ŀ",Tb="⎰",Rb="⎰",zb="⪉",Ib="⪉",Bb="⪇",Nb="≨",Mb="⪇",Pb="≨",Ob="⋦",Ub="⟬",Vb="⇽",$b="⟦",Gb="⟵",jb="⟵",Hb="⟸",Zb="⟷",Jb="⟷",Wb="⟺",Yb="⟼",Qb="⟶",Kb="⟶",Xb="⟹",nk="↫",tk="↬",rk="⦅",ok="𝕃",ek="𝕝",sk="⨭",ck="⨴",ik="∗",ak="_",lk="↙",uk="↘",pk="◊",fk="◊",hk="⧫",dk="(",mk="⦓",gk="⇆",_k="⌟",bk="⇋",kk="⥭",xk="‎",vk="⊿",yk="‹",Ck="𝓁",wk="ℒ",Ak="↰",qk="↰",Dk="≲",Ek="⪍",Sk="⪏",Fk="[",Lk="‘",Tk="‚",Rk="Ł",zk="ł",Ik="⪦",Bk="⩹",Nk="<",Mk="<",Pk="≪",Ok="⋖",Uk="⋋",Vk="⋉",$k="⥶",Gk="⩻",jk="◃",Hk="⊴",Zk="◂",Jk="⦖",Wk="⥊",Yk="⥦",Qk="≨︀",Kk="≨︀",Xk="¯",nx="♂",tx="✠",rx="✠",ox="↦",ex="↦",sx="↧",cx="↤",ix="↥",ax="▮",lx="⨩",ux="М",px="м",fx="—",hx="∺",dx="∡",mx=" ",gx="ℳ",_x="𝔐",bx="𝔪",kx="℧",xx="µ",vx="*",yx="⫰",Cx="∣",wx="·",Ax="⊟",qx="−",Dx="∸",Ex="⨪",Sx="∓",Fx="⫛",Lx="…",Tx="∓",Rx="⊧",zx="𝕄",Ix="𝕞",Bx="∓",Nx="𝓂",Mx="ℳ",Px="∾",Ox="Μ",Ux="μ",Vx="⊸",$x="⊸",Gx="∇",jx="Ń",Hx="ń",Zx="∠⃒",Jx="≉",Wx="⩰̸",Yx="≋̸",Qx="ʼn",Kx="≉",Xx="♮",nv="ℕ",tv="♮",rv=" ",ov="≎̸",ev="≏̸",sv="⩃",cv="Ň",iv="ň",av="Ņ",lv="ņ",uv="≇",pv="⩭̸",fv="⩂",hv="Н",dv="н",mv="–",gv="⤤",_v="↗",bv="⇗",kv="↗",xv="≠",vv="≐̸",yv="​",Cv="​",wv="​",Av="​",qv="≢",Dv="⤨",Ev="≂̸",Sv="≫",Fv="≪",Lv=` +import{c0 as Ht,c2 as Zt,i as Jt,q as Wt,o as Yt,f as Qt,w as Kt,a as Xt,u as nr,c4 as tr}from"./index-926884cb.js";var q={};const rr="Á",or="á",er="Ă",sr="ă",cr="∾",ir="∿",ar="∾̳",lr="Â",ur="â",pr="´",fr="А",hr="а",dr="Æ",mr="æ",gr="⁡",_r="𝔄",br="𝔞",kr="À",xr="à",vr="ℵ",yr="ℵ",Cr="Α",wr="α",Ar="Ā",qr="ā",Dr="⨿",Er="&",Sr="&",Fr="⩕",Lr="⩓",Tr="∧",Rr="⩜",zr="⩘",Ir="⩚",Br="∠",Nr="⦤",Mr="∠",Pr="⦨",Or="⦩",Ur="⦪",Vr="⦫",$r="⦬",Gr="⦭",jr="⦮",Hr="⦯",Zr="∡",Jr="∟",Wr="⊾",Yr="⦝",Qr="∢",Kr="Å",Xr="⍼",no="Ą",to="ą",ro="𝔸",oo="𝕒",eo="⩯",so="≈",co="⩰",io="≊",ao="≋",lo="'",uo="⁡",po="≈",fo="≊",ho="Å",mo="å",go="𝒜",_o="𝒶",bo="≔",ko="*",xo="≈",vo="≍",yo="Ã",Co="ã",wo="Ä",Ao="ä",qo="∳",Do="⨑",Eo="≌",So="϶",Fo="‵",Lo="∽",To="⋍",Ro="∖",zo="⫧",Io="⊽",Bo="⌅",No="⌆",Mo="⌅",Po="⎵",Oo="⎶",Uo="≌",Vo="Б",$o="б",Go="„",jo="∵",Ho="∵",Zo="∵",Jo="⦰",Wo="϶",Yo="ℬ",Qo="ℬ",Ko="Β",Xo="β",ne="ℶ",te="≬",re="𝔅",oe="𝔟",ee="⋂",se="◯",ce="⋃",ie="⨀",ae="⨁",le="⨂",ue="⨆",pe="★",fe="▽",he="△",de="⨄",me="⋁",ge="⋀",_e="⤍",be="⧫",ke="▪",xe="▴",ve="▾",ye="◂",Ce="▸",we="␣",Ae="▒",qe="░",De="▓",Ee="█",Se="=⃥",Fe="≡⃥",Le="⫭",Te="⌐",Re="𝔹",ze="𝕓",Ie="⊥",Be="⊥",Ne="⋈",Me="⧉",Pe="┐",Oe="╕",Ue="╖",Ve="╗",$e="┌",Ge="╒",je="╓",He="╔",Ze="─",Je="═",We="┬",Ye="╤",Qe="╥",Ke="╦",Xe="┴",ns="╧",ts="╨",rs="╩",os="⊟",es="⊞",ss="⊠",cs="┘",is="╛",as="╜",ls="╝",us="└",ps="╘",fs="╙",hs="╚",ds="│",ms="║",gs="┼",_s="╪",bs="╫",ks="╬",xs="┤",vs="╡",ys="╢",Cs="╣",ws="├",As="╞",qs="╟",Ds="╠",Es="‵",Ss="˘",Fs="˘",Ls="¦",Ts="𝒷",Rs="ℬ",zs="⁏",Is="∽",Bs="⋍",Ns="⧅",Ms="\\",Ps="⟈",Os="•",Us="•",Vs="≎",$s="⪮",Gs="≏",js="≎",Hs="≏",Zs="Ć",Js="ć",Ws="⩄",Ys="⩉",Qs="⩋",Ks="∩",Xs="⋒",nc="⩇",tc="⩀",rc="ⅅ",oc="∩︀",ec="⁁",sc="ˇ",cc="ℭ",ic="⩍",ac="Č",lc="č",uc="Ç",pc="ç",fc="Ĉ",hc="ĉ",dc="∰",mc="⩌",gc="⩐",_c="Ċ",bc="ċ",kc="¸",xc="¸",vc="⦲",yc="¢",Cc="·",wc="·",Ac="𝔠",qc="ℭ",Dc="Ч",Ec="ч",Sc="✓",Fc="✓",Lc="Χ",Tc="χ",Rc="ˆ",zc="≗",Ic="↺",Bc="↻",Nc="⊛",Mc="⊚",Pc="⊝",Oc="⊙",Uc="®",Vc="Ⓢ",$c="⊖",Gc="⊕",jc="⊗",Hc="○",Zc="⧃",Jc="≗",Wc="⨐",Yc="⫯",Qc="⧂",Kc="∲",Xc="”",ni="’",ti="♣",ri="♣",oi=":",ei="∷",si="⩴",ci="≔",ii="≔",ai=",",li="@",ui="∁",pi="∘",fi="∁",hi="ℂ",di="≅",mi="⩭",gi="≡",_i="∮",bi="∯",ki="∮",xi="𝕔",vi="ℂ",yi="∐",Ci="∐",wi="©",Ai="©",qi="℗",Di="∳",Ei="↵",Si="✗",Fi="⨯",Li="𝒞",Ti="𝒸",Ri="⫏",zi="⫑",Ii="⫐",Bi="⫒",Ni="⋯",Mi="⤸",Pi="⤵",Oi="⋞",Ui="⋟",Vi="↶",$i="⤽",Gi="⩈",ji="⩆",Hi="≍",Zi="∪",Ji="⋓",Wi="⩊",Yi="⊍",Qi="⩅",Ki="∪︀",Xi="↷",na="⤼",ta="⋞",ra="⋟",oa="⋎",ea="⋏",sa="¤",ca="↶",ia="↷",aa="⋎",la="⋏",ua="∲",pa="∱",fa="⌭",ha="†",da="‡",ma="ℸ",ga="↓",_a="↡",ba="⇓",ka="‐",xa="⫤",va="⊣",ya="⤏",Ca="˝",wa="Ď",Aa="ď",qa="Д",Da="д",Ea="‡",Sa="⇊",Fa="ⅅ",La="ⅆ",Ta="⤑",Ra="⩷",za="°",Ia="∇",Ba="Δ",Na="δ",Ma="⦱",Pa="⥿",Oa="𝔇",Ua="𝔡",Va="⥥",$a="⇃",Ga="⇂",ja="´",Ha="˙",Za="˝",Ja="`",Wa="˜",Ya="⋄",Qa="⋄",Ka="⋄",Xa="♦",nl="♦",tl="¨",rl="ⅆ",ol="ϝ",el="⋲",sl="÷",cl="÷",il="⋇",al="⋇",ll="Ђ",ul="ђ",pl="⌞",fl="⌍",hl="$",dl="𝔻",ml="𝕕",gl="¨",_l="˙",bl="⃜",kl="≐",xl="≑",vl="≐",yl="∸",Cl="∔",wl="⊡",Al="⌆",ql="∯",Dl="¨",El="⇓",Sl="⇐",Fl="⇔",Ll="⫤",Tl="⟸",Rl="⟺",zl="⟹",Il="⇒",Bl="⊨",Nl="⇑",Ml="⇕",Pl="∥",Ol="⤓",Ul="↓",Vl="↓",$l="⇓",Gl="⇵",jl="̑",Hl="⇊",Zl="⇃",Jl="⇂",Wl="⥐",Yl="⥞",Ql="⥖",Kl="↽",Xl="⥟",nu="⥗",tu="⇁",ru="↧",ou="⊤",eu="⤐",su="⌟",cu="⌌",iu="𝒟",au="𝒹",lu="Ѕ",uu="ѕ",pu="⧶",fu="Đ",hu="đ",du="⋱",mu="▿",gu="▾",_u="⇵",bu="⥯",ku="⦦",xu="Џ",vu="џ",yu="⟿",Cu="É",wu="é",Au="⩮",qu="Ě",Du="ě",Eu="Ê",Su="ê",Fu="≖",Lu="≕",Tu="Э",Ru="э",zu="⩷",Iu="Ė",Bu="ė",Nu="≑",Mu="ⅇ",Pu="≒",Ou="𝔈",Uu="𝔢",Vu="⪚",$u="È",Gu="è",ju="⪖",Hu="⪘",Zu="⪙",Ju="∈",Wu="⏧",Yu="ℓ",Qu="⪕",Ku="⪗",Xu="Ē",np="ē",tp="∅",rp="∅",op="◻",ep="∅",sp="▫",cp=" ",ip=" ",ap=" ",lp="Ŋ",up="ŋ",pp=" ",fp="Ę",hp="ę",dp="𝔼",mp="𝕖",gp="⋕",_p="⧣",bp="⩱",kp="ε",xp="Ε",vp="ε",yp="ϵ",Cp="≖",wp="≕",Ap="≂",qp="⪖",Dp="⪕",Ep="⩵",Sp="=",Fp="≂",Lp="≟",Tp="⇌",Rp="≡",zp="⩸",Ip="⧥",Bp="⥱",Np="≓",Mp="ℯ",Pp="ℰ",Op="≐",Up="⩳",Vp="≂",$p="Η",Gp="η",jp="Ð",Hp="ð",Zp="Ë",Jp="ë",Wp="€",Yp="!",Qp="∃",Kp="∃",Xp="ℰ",nf="ⅇ",tf="ⅇ",rf="≒",of="Ф",ef="ф",sf="♀",cf="ffi",af="ff",lf="ffl",uf="𝔉",pf="𝔣",ff="fi",hf="◼",df="▪",mf="fj",gf="♭",_f="fl",bf="▱",kf="ƒ",xf="𝔽",vf="𝕗",yf="∀",Cf="∀",wf="⋔",Af="⫙",qf="ℱ",Df="⨍",Ef="½",Sf="⅓",Ff="¼",Lf="⅕",Tf="⅙",Rf="⅛",zf="⅔",If="⅖",Bf="¾",Nf="⅗",Mf="⅜",Pf="⅘",Of="⅚",Uf="⅝",Vf="⅞",$f="⁄",Gf="⌢",jf="𝒻",Hf="ℱ",Zf="ǵ",Jf="Γ",Wf="γ",Yf="Ϝ",Qf="ϝ",Kf="⪆",Xf="Ğ",nh="ğ",th="Ģ",rh="Ĝ",oh="ĝ",eh="Г",sh="г",ch="Ġ",ih="ġ",ah="≥",lh="≧",uh="⪌",ph="⋛",fh="≥",hh="≧",dh="⩾",mh="⪩",gh="⩾",_h="⪀",bh="⪂",kh="⪄",xh="⋛︀",vh="⪔",yh="𝔊",Ch="𝔤",wh="≫",Ah="⋙",qh="⋙",Dh="ℷ",Eh="Ѓ",Sh="ѓ",Fh="⪥",Lh="≷",Th="⪒",Rh="⪤",zh="⪊",Ih="⪊",Bh="⪈",Nh="≩",Mh="⪈",Ph="≩",Oh="⋧",Uh="𝔾",Vh="𝕘",$h="`",Gh="≥",jh="⋛",Hh="≧",Zh="⪢",Jh="≷",Wh="⩾",Yh="≳",Qh="𝒢",Kh="ℊ",Xh="≳",nd="⪎",td="⪐",rd="⪧",od="⩺",ed=">",sd=">",cd="≫",id="⋗",ad="⦕",ld="⩼",ud="⪆",pd="⥸",fd="⋗",hd="⋛",dd="⪌",md="≷",gd="≳",_d="≩︀",bd="≩︀",kd="ˇ",xd=" ",vd="½",yd="ℋ",Cd="Ъ",wd="ъ",Ad="⥈",qd="↔",Dd="⇔",Ed="↭",Sd="^",Fd="ℏ",Ld="Ĥ",Td="ĥ",Rd="♥",zd="♥",Id="…",Bd="⊹",Nd="𝔥",Md="ℌ",Pd="ℋ",Od="⤥",Ud="⤦",Vd="⇿",$d="∻",Gd="↩",jd="↪",Hd="𝕙",Zd="ℍ",Jd="―",Wd="─",Yd="𝒽",Qd="ℋ",Kd="ℏ",Xd="Ħ",nm="ħ",tm="≎",rm="≏",om="⁃",em="‐",sm="Í",cm="í",im="⁣",am="Î",lm="î",um="И",pm="и",fm="İ",hm="Е",dm="е",mm="¡",gm="⇔",_m="𝔦",bm="ℑ",km="Ì",xm="ì",vm="ⅈ",ym="⨌",Cm="∭",wm="⧜",Am="℩",qm="IJ",Dm="ij",Em="Ī",Sm="ī",Fm="ℑ",Lm="ⅈ",Tm="ℐ",Rm="ℑ",zm="ı",Im="ℑ",Bm="⊷",Nm="Ƶ",Mm="⇒",Pm="℅",Om="∞",Um="⧝",Vm="ı",$m="⊺",Gm="∫",jm="∬",Hm="ℤ",Zm="∫",Jm="⊺",Wm="⋂",Ym="⨗",Qm="⨼",Km="⁣",Xm="⁢",ng="Ё",tg="ё",rg="Į",og="į",eg="𝕀",sg="𝕚",cg="Ι",ig="ι",ag="⨼",lg="¿",ug="𝒾",pg="ℐ",fg="∈",hg="⋵",dg="⋹",mg="⋴",gg="⋳",_g="∈",bg="⁢",kg="Ĩ",xg="ĩ",vg="І",yg="і",Cg="Ï",wg="ï",Ag="Ĵ",qg="ĵ",Dg="Й",Eg="й",Sg="𝔍",Fg="𝔧",Lg="ȷ",Tg="𝕁",Rg="𝕛",zg="𝒥",Ig="𝒿",Bg="Ј",Ng="ј",Mg="Є",Pg="є",Og="Κ",Ug="κ",Vg="ϰ",$g="Ķ",Gg="ķ",jg="К",Hg="к",Zg="𝔎",Jg="𝔨",Wg="ĸ",Yg="Х",Qg="х",Kg="Ќ",Xg="ќ",n0="𝕂",t0="𝕜",r0="𝒦",o0="𝓀",e0="⇚",s0="Ĺ",c0="ĺ",i0="⦴",a0="ℒ",l0="Λ",u0="λ",p0="⟨",f0="⟪",h0="⦑",d0="⟨",m0="⪅",g0="ℒ",_0="«",b0="⇤",k0="⤟",x0="←",v0="↞",y0="⇐",C0="⤝",w0="↩",A0="↫",q0="⤹",D0="⥳",E0="↢",S0="⤙",F0="⤛",L0="⪫",T0="⪭",R0="⪭︀",z0="⤌",I0="⤎",B0="❲",N0="{",M0="[",P0="⦋",O0="⦏",U0="⦍",V0="Ľ",$0="ľ",G0="Ļ",j0="ļ",H0="⌈",Z0="{",J0="Л",W0="л",Y0="⤶",Q0="“",K0="„",X0="⥧",n_="⥋",t_="↲",r_="≤",o_="≦",e_="⟨",s_="⇤",c_="←",i_="←",a_="⇐",l_="⇆",u_="↢",p_="⌈",f_="⟦",h_="⥡",d_="⥙",m_="⇃",g_="⌊",__="↽",b_="↼",k_="⇇",x_="↔",v_="↔",y_="⇔",C_="⇆",w_="⇋",A_="↭",q_="⥎",D_="↤",E_="⊣",S_="⥚",F_="⋋",L_="⧏",T_="⊲",R_="⊴",z_="⥑",I_="⥠",B_="⥘",N_="↿",M_="⥒",P_="↼",O_="⪋",U_="⋚",V_="≤",$_="≦",G_="⩽",j_="⪨",H_="⩽",Z_="⩿",J_="⪁",W_="⪃",Y_="⋚︀",Q_="⪓",K_="⪅",X_="⋖",nb="⋚",tb="⪋",rb="⋚",ob="≦",eb="≶",sb="≶",cb="⪡",ib="≲",ab="⩽",lb="≲",ub="⥼",pb="⌊",fb="𝔏",hb="𝔩",db="≶",mb="⪑",gb="⥢",_b="↽",bb="↼",kb="⥪",xb="▄",vb="Љ",yb="љ",Cb="⇇",wb="≪",Ab="⋘",qb="⌞",Db="⇚",Eb="⥫",Sb="◺",Fb="Ŀ",Lb="ŀ",Tb="⎰",Rb="⎰",zb="⪉",Ib="⪉",Bb="⪇",Nb="≨",Mb="⪇",Pb="≨",Ob="⋦",Ub="⟬",Vb="⇽",$b="⟦",Gb="⟵",jb="⟵",Hb="⟸",Zb="⟷",Jb="⟷",Wb="⟺",Yb="⟼",Qb="⟶",Kb="⟶",Xb="⟹",nk="↫",tk="↬",rk="⦅",ok="𝕃",ek="𝕝",sk="⨭",ck="⨴",ik="∗",ak="_",lk="↙",uk="↘",pk="◊",fk="◊",hk="⧫",dk="(",mk="⦓",gk="⇆",_k="⌟",bk="⇋",kk="⥭",xk="‎",vk="⊿",yk="‹",Ck="𝓁",wk="ℒ",Ak="↰",qk="↰",Dk="≲",Ek="⪍",Sk="⪏",Fk="[",Lk="‘",Tk="‚",Rk="Ł",zk="ł",Ik="⪦",Bk="⩹",Nk="<",Mk="<",Pk="≪",Ok="⋖",Uk="⋋",Vk="⋉",$k="⥶",Gk="⩻",jk="◃",Hk="⊴",Zk="◂",Jk="⦖",Wk="⥊",Yk="⥦",Qk="≨︀",Kk="≨︀",Xk="¯",nx="♂",tx="✠",rx="✠",ox="↦",ex="↦",sx="↧",cx="↤",ix="↥",ax="▮",lx="⨩",ux="М",px="м",fx="—",hx="∺",dx="∡",mx=" ",gx="ℳ",_x="𝔐",bx="𝔪",kx="℧",xx="µ",vx="*",yx="⫰",Cx="∣",wx="·",Ax="⊟",qx="−",Dx="∸",Ex="⨪",Sx="∓",Fx="⫛",Lx="…",Tx="∓",Rx="⊧",zx="𝕄",Ix="𝕞",Bx="∓",Nx="𝓂",Mx="ℳ",Px="∾",Ox="Μ",Ux="μ",Vx="⊸",$x="⊸",Gx="∇",jx="Ń",Hx="ń",Zx="∠⃒",Jx="≉",Wx="⩰̸",Yx="≋̸",Qx="ʼn",Kx="≉",Xx="♮",nv="ℕ",tv="♮",rv=" ",ov="≎̸",ev="≏̸",sv="⩃",cv="Ň",iv="ň",av="Ņ",lv="ņ",uv="≇",pv="⩭̸",fv="⩂",hv="Н",dv="н",mv="–",gv="⤤",_v="↗",bv="⇗",kv="↗",xv="≠",vv="≐̸",yv="​",Cv="​",wv="​",Av="​",qv="≢",Dv="⤨",Ev="≂̸",Sv="≫",Fv="≪",Lv=` `,Tv="∄",Rv="∄",zv="𝔑",Iv="𝔫",Bv="≧̸",Nv="≱",Mv="≱",Pv="≧̸",Ov="⩾̸",Uv="⩾̸",Vv="⋙̸",$v="≵",Gv="≫⃒",jv="≯",Hv="≯",Zv="≫̸",Jv="↮",Wv="⇎",Yv="⫲",Qv="∋",Kv="⋼",Xv="⋺",ny="∋",ty="Њ",ry="њ",oy="↚",ey="⇍",sy="‥",cy="≦̸",iy="≰",ay="↚",ly="⇍",uy="↮",py="⇎",fy="≰",hy="≦̸",dy="⩽̸",my="⩽̸",gy="≮",_y="⋘̸",by="≴",ky="≪⃒",xy="≮",vy="⋪",yy="⋬",Cy="≪̸",wy="∤",Ay="⁠",qy=" ",Dy="𝕟",Ey="ℕ",Sy="⫬",Fy="¬",Ly="≢",Ty="≭",Ry="∦",zy="∉",Iy="≠",By="≂̸",Ny="∄",My="≯",Py="≱",Oy="≧̸",Uy="≫̸",Vy="≹",$y="⩾̸",Gy="≵",jy="≎̸",Hy="≏̸",Zy="∉",Jy="⋵̸",Wy="⋹̸",Yy="∉",Qy="⋷",Ky="⋶",Xy="⧏̸",nC="⋪",tC="⋬",rC="≮",oC="≰",eC="≸",sC="≪̸",cC="⩽̸",iC="≴",aC="⪢̸",lC="⪡̸",uC="∌",pC="∌",fC="⋾",hC="⋽",dC="⊀",mC="⪯̸",gC="⋠",_C="∌",bC="⧐̸",kC="⋫",xC="⋭",vC="⊏̸",yC="⋢",CC="⊐̸",wC="⋣",AC="⊂⃒",qC="⊈",DC="⊁",EC="⪰̸",SC="⋡",FC="≿̸",LC="⊃⃒",TC="⊉",RC="≁",zC="≄",IC="≇",BC="≉",NC="∤",MC="∦",PC="∦",OC="⫽⃥",UC="∂̸",VC="⨔",$C="⊀",GC="⋠",jC="⊀",HC="⪯̸",ZC="⪯̸",JC="⤳̸",WC="↛",YC="⇏",QC="↝̸",KC="↛",XC="⇏",nw="⋫",tw="⋭",rw="⊁",ow="⋡",ew="⪰̸",sw="𝒩",cw="𝓃",iw="∤",aw="∦",lw="≁",uw="≄",pw="≄",fw="∤",hw="∦",dw="⋢",mw="⋣",gw="⊄",_w="⫅̸",bw="⊈",kw="⊂⃒",xw="⊈",vw="⫅̸",yw="⊁",Cw="⪰̸",ww="⊅",Aw="⫆̸",qw="⊉",Dw="⊃⃒",Ew="⊉",Sw="⫆̸",Fw="≹",Lw="Ñ",Tw="ñ",Rw="≸",zw="⋪",Iw="⋬",Bw="⋫",Nw="⋭",Mw="Ν",Pw="ν",Ow="#",Uw="№",Vw=" ",$w="≍⃒",Gw="⊬",jw="⊭",Hw="⊮",Zw="⊯",Jw="≥⃒",Ww=">⃒",Yw="⤄",Qw="⧞",Kw="⤂",Xw="≤⃒",n1="<⃒",t1="⊴⃒",r1="⤃",o1="⊵⃒",e1="∼⃒",s1="⤣",c1="↖",i1="⇖",a1="↖",l1="⤧",u1="Ó",p1="ó",f1="⊛",h1="Ô",d1="ô",m1="⊚",g1="О",_1="о",b1="⊝",k1="Ő",x1="ő",v1="⨸",y1="⊙",C1="⦼",w1="Œ",A1="œ",q1="⦿",D1="𝔒",E1="𝔬",S1="˛",F1="Ò",L1="ò",T1="⧁",R1="⦵",z1="Ω",I1="∮",B1="↺",N1="⦾",M1="⦻",P1="‾",O1="⧀",U1="Ō",V1="ō",$1="Ω",G1="ω",j1="Ο",H1="ο",Z1="⦶",J1="⊖",W1="𝕆",Y1="𝕠",Q1="⦷",K1="“",X1="‘",nA="⦹",tA="⊕",rA="↻",oA="⩔",eA="∨",sA="⩝",cA="ℴ",iA="ℴ",aA="ª",lA="º",uA="⊶",pA="⩖",fA="⩗",hA="⩛",dA="Ⓢ",mA="𝒪",gA="ℴ",_A="Ø",bA="ø",kA="⊘",xA="Õ",vA="õ",yA="⨶",CA="⨷",wA="⊗",AA="Ö",qA="ö",DA="⌽",EA="‾",SA="⏞",FA="⎴",LA="⏜",TA="¶",RA="∥",zA="∥",IA="⫳",BA="⫽",NA="∂",MA="∂",PA="П",OA="п",UA="%",VA=".",$A="‰",GA="⊥",jA="‱",HA="𝔓",ZA="𝔭",JA="Φ",WA="φ",YA="ϕ",QA="ℳ",KA="☎",XA="Π",nq="π",tq="⋔",rq="ϖ",oq="ℏ",eq="ℎ",sq="ℏ",cq="⨣",iq="⊞",aq="⨢",lq="+",uq="∔",pq="⨥",fq="⩲",hq="±",dq="±",mq="⨦",gq="⨧",_q="±",bq="ℌ",kq="⨕",xq="𝕡",vq="ℙ",yq="£",Cq="⪷",wq="⪻",Aq="≺",qq="≼",Dq="⪷",Eq="≺",Sq="≼",Fq="≺",Lq="⪯",Tq="≼",Rq="≾",zq="⪯",Iq="⪹",Bq="⪵",Nq="⋨",Mq="⪯",Pq="⪳",Oq="≾",Uq="′",Vq="″",$q="ℙ",Gq="⪹",jq="⪵",Hq="⋨",Zq="∏",Jq="∏",Wq="⌮",Yq="⌒",Qq="⌓",Kq="∝",Xq="∝",nD="∷",tD="∝",rD="≾",oD="⊰",eD="𝒫",sD="𝓅",cD="Ψ",iD="ψ",aD=" ",lD="𝔔",uD="𝔮",pD="⨌",fD="𝕢",hD="ℚ",dD="⁗",mD="𝒬",gD="𝓆",_D="ℍ",bD="⨖",kD="?",xD="≟",vD='"',yD='"',CD="⇛",wD="∽̱",AD="Ŕ",qD="ŕ",DD="√",ED="⦳",SD="⟩",FD="⟫",LD="⦒",TD="⦥",RD="⟩",zD="»",ID="⥵",BD="⇥",ND="⤠",MD="⤳",PD="→",OD="↠",UD="⇒",VD="⤞",$D="↪",GD="↬",jD="⥅",HD="⥴",ZD="⤖",JD="↣",WD="↝",YD="⤚",QD="⤜",KD="∶",XD="ℚ",nE="⤍",tE="⤏",rE="⤐",oE="❳",eE="}",sE="]",cE="⦌",iE="⦎",aE="⦐",lE="Ř",uE="ř",pE="Ŗ",fE="ŗ",hE="⌉",dE="}",mE="Р",gE="р",_E="⤷",bE="⥩",kE="”",xE="”",vE="↳",yE="ℜ",CE="ℛ",wE="ℜ",AE="ℝ",qE="ℜ",DE="▭",EE="®",SE="®",FE="∋",LE="⇋",TE="⥯",RE="⥽",zE="⌋",IE="𝔯",BE="ℜ",NE="⥤",ME="⇁",PE="⇀",OE="⥬",UE="Ρ",VE="ρ",$E="ϱ",GE="⟩",jE="⇥",HE="→",ZE="→",JE="⇒",WE="⇄",YE="↣",QE="⌉",KE="⟧",XE="⥝",nS="⥕",tS="⇂",rS="⌋",oS="⇁",eS="⇀",sS="⇄",cS="⇌",iS="⇉",aS="↝",lS="↦",uS="⊢",pS="⥛",fS="⋌",hS="⧐",dS="⊳",mS="⊵",gS="⥏",_S="⥜",bS="⥔",kS="↾",xS="⥓",vS="⇀",yS="˚",CS="≓",wS="⇄",AS="⇌",qS="‏",DS="⎱",ES="⎱",SS="⫮",FS="⟭",LS="⇾",TS="⟧",RS="⦆",zS="𝕣",IS="ℝ",BS="⨮",NS="⨵",MS="⥰",PS=")",OS="⦔",US="⨒",VS="⇉",$S="⇛",GS="›",jS="𝓇",HS="ℛ",ZS="↱",JS="↱",WS="]",YS="’",QS="’",KS="⋌",XS="⋊",nF="▹",tF="⊵",rF="▸",oF="⧎",eF="⧴",sF="⥨",cF="℞",iF="Ś",aF="ś",lF="‚",uF="⪸",pF="Š",fF="š",hF="⪼",dF="≻",mF="≽",gF="⪰",_F="⪴",bF="Ş",kF="ş",xF="Ŝ",vF="ŝ",yF="⪺",CF="⪶",wF="⋩",AF="⨓",qF="≿",DF="С",EF="с",SF="⊡",FF="⋅",LF="⩦",TF="⤥",RF="↘",zF="⇘",IF="↘",BF="§",NF=";",MF="⤩",PF="∖",OF="∖",UF="✶",VF="𝔖",$F="𝔰",GF="⌢",jF="♯",HF="Щ",ZF="щ",JF="Ш",WF="ш",YF="↓",QF="←",KF="∣",XF="∥",nL="→",tL="↑",rL="­",oL="Σ",eL="σ",sL="ς",cL="ς",iL="∼",aL="⩪",lL="≃",uL="≃",pL="⪞",fL="⪠",hL="⪝",dL="⪟",mL="≆",gL="⨤",_L="⥲",bL="←",kL="∘",xL="∖",vL="⨳",yL="⧤",CL="∣",wL="⌣",AL="⪪",qL="⪬",DL="⪬︀",EL="Ь",SL="ь",FL="⌿",LL="⧄",TL="/",RL="𝕊",zL="𝕤",IL="♠",BL="♠",NL="∥",ML="⊓",PL="⊓︀",OL="⊔",UL="⊔︀",VL="√",$L="⊏",GL="⊑",jL="⊏",HL="⊑",ZL="⊐",JL="⊒",WL="⊐",YL="⊒",QL="□",KL="□",XL="⊓",nT="⊏",tT="⊑",rT="⊐",oT="⊒",eT="⊔",sT="▪",cT="□",iT="▪",aT="→",lT="𝒮",uT="𝓈",pT="∖",fT="⌣",hT="⋆",dT="⋆",mT="☆",gT="★",_T="ϵ",bT="ϕ",kT="¯",xT="⊂",vT="⋐",yT="⪽",CT="⫅",wT="⊆",AT="⫃",qT="⫁",DT="⫋",ET="⊊",ST="⪿",FT="⥹",LT="⊂",TT="⋐",RT="⊆",zT="⫅",IT="⊆",BT="⊊",NT="⫋",MT="⫇",PT="⫕",OT="⫓",UT="⪸",VT="≻",$T="≽",GT="≻",jT="⪰",HT="≽",ZT="≿",JT="⪰",WT="⪺",YT="⪶",QT="⋩",KT="≿",XT="∋",n2="∑",t2="∑",r2="♪",o2="¹",e2="²",s2="³",c2="⊃",i2="⋑",a2="⪾",l2="⫘",u2="⫆",p2="⊇",f2="⫄",h2="⊃",d2="⊇",m2="⟉",g2="⫗",_2="⥻",b2="⫂",k2="⫌",x2="⊋",v2="⫀",y2="⊃",C2="⋑",w2="⊇",A2="⫆",q2="⊋",D2="⫌",E2="⫈",S2="⫔",F2="⫖",L2="⤦",T2="↙",R2="⇙",z2="↙",I2="⤪",B2="ß",N2=" ",M2="⌖",P2="Τ",O2="τ",U2="⎴",V2="Ť",$2="ť",G2="Ţ",j2="ţ",H2="Т",Z2="т",J2="⃛",W2="⌕",Y2="𝔗",Q2="𝔱",K2="∴",X2="∴",nR="∴",tR="Θ",rR="θ",oR="ϑ",eR="ϑ",sR="≈",cR="∼",iR="  ",aR=" ",lR=" ",uR="≈",pR="∼",fR="Þ",hR="þ",dR="˜",mR="∼",gR="≃",_R="≅",bR="≈",kR="⨱",xR="⊠",vR="×",yR="⨰",CR="∭",wR="⤨",AR="⌶",qR="⫱",DR="⊤",ER="𝕋",SR="𝕥",FR="⫚",LR="⤩",TR="‴",RR="™",zR="™",IR="▵",BR="▿",NR="◃",MR="⊴",PR="≜",OR="▹",UR="⊵",VR="◬",$R="≜",GR="⨺",jR="⃛",HR="⨹",ZR="⧍",JR="⨻",WR="⏢",YR="𝒯",QR="𝓉",KR="Ц",XR="ц",nz="Ћ",tz="ћ",rz="Ŧ",oz="ŧ",ez="≬",sz="↞",cz="↠",iz="Ú",az="ú",lz="↑",uz="↟",pz="⇑",fz="⥉",hz="Ў",dz="ў",mz="Ŭ",gz="ŭ",_z="Û",bz="û",kz="У",xz="у",vz="⇅",yz="Ű",Cz="ű",wz="⥮",Az="⥾",qz="𝔘",Dz="𝔲",Ez="Ù",Sz="ù",Fz="⥣",Lz="↿",Tz="↾",Rz="▀",zz="⌜",Iz="⌜",Bz="⌏",Nz="◸",Mz="Ū",Pz="ū",Oz="¨",Uz="_",Vz="⏟",$z="⎵",Gz="⏝",jz="⋃",Hz="⊎",Zz="Ų",Jz="ų",Wz="𝕌",Yz="𝕦",Qz="⤒",Kz="↑",Xz="↑",nI="⇑",tI="⇅",rI="↕",oI="↕",eI="⇕",sI="⥮",cI="↿",iI="↾",aI="⊎",lI="↖",uI="↗",pI="υ",fI="ϒ",hI="ϒ",dI="Υ",mI="υ",gI="↥",_I="⊥",bI="⇈",kI="⌝",xI="⌝",vI="⌎",yI="Ů",CI="ů",wI="◹",AI="𝒰",qI="𝓊",DI="⋰",EI="Ũ",SI="ũ",FI="▵",LI="▴",TI="⇈",RI="Ü",zI="ü",II="⦧",BI="⦜",NI="ϵ",MI="ϰ",PI="∅",OI="ϕ",UI="ϖ",VI="∝",$I="↕",GI="⇕",jI="ϱ",HI="ς",ZI="⊊︀",JI="⫋︀",WI="⊋︀",YI="⫌︀",QI="ϑ",KI="⊲",XI="⊳",nB="⫨",tB="⫫",rB="⫩",oB="В",eB="в",sB="⊢",cB="⊨",iB="⊩",aB="⊫",lB="⫦",uB="⊻",pB="∨",fB="⋁",hB="≚",dB="⋮",mB="|",gB="‖",_B="|",bB="‖",kB="∣",xB="|",vB="❘",yB="≀",CB=" ",wB="𝔙",AB="𝔳",qB="⊲",DB="⊂⃒",EB="⊃⃒",SB="𝕍",FB="𝕧",LB="∝",TB="⊳",RB="𝒱",zB="𝓋",IB="⫋︀",BB="⊊︀",NB="⫌︀",MB="⊋︀",PB="⊪",OB="⦚",UB="Ŵ",VB="ŵ",$B="⩟",GB="∧",jB="⋀",HB="≙",ZB="℘",JB="𝔚",WB="𝔴",YB="𝕎",QB="𝕨",KB="℘",XB="≀",n3="≀",t3="𝒲",r3="𝓌",o3="⋂",e3="◯",s3="⋃",c3="▽",i3="𝔛",a3="𝔵",l3="⟷",u3="⟺",p3="Ξ",f3="ξ",h3="⟵",d3="⟸",m3="⟼",g3="⋻",_3="⨀",b3="𝕏",k3="𝕩",x3="⨁",v3="⨂",y3="⟶",C3="⟹",w3="𝒳",A3="𝓍",q3="⨆",D3="⨄",E3="△",S3="⋁",F3="⋀",L3="Ý",T3="ý",R3="Я",z3="я",I3="Ŷ",B3="ŷ",N3="Ы",M3="ы",P3="¥",O3="𝔜",U3="𝔶",V3="Ї",$3="ї",G3="𝕐",j3="𝕪",H3="𝒴",Z3="𝓎",J3="Ю",W3="ю",Y3="ÿ",Q3="Ÿ",K3="Ź",X3="ź",nN="Ž",tN="ž",rN="З",oN="з",eN="Ż",sN="ż",cN="ℨ",iN="​",aN="Ζ",lN="ζ",uN="𝔷",pN="ℨ",fN="Ж",hN="ж",dN="⇝",mN="𝕫",gN="ℤ",_N="𝒵",bN="𝓏",kN="‍",xN="‌",vN={Aacute:rr,aacute:or,Abreve:er,abreve:sr,ac:cr,acd:ir,acE:ar,Acirc:lr,acirc:ur,acute:pr,Acy:fr,acy:hr,AElig:dr,aelig:mr,af:gr,Afr:_r,afr:br,Agrave:kr,agrave:xr,alefsym:vr,aleph:yr,Alpha:Cr,alpha:wr,Amacr:Ar,amacr:qr,amalg:Dr,amp:Er,AMP:Sr,andand:Fr,And:Lr,and:Tr,andd:Rr,andslope:zr,andv:Ir,ang:Br,ange:Nr,angle:Mr,angmsdaa:Pr,angmsdab:Or,angmsdac:Ur,angmsdad:Vr,angmsdae:$r,angmsdaf:Gr,angmsdag:jr,angmsdah:Hr,angmsd:Zr,angrt:Jr,angrtvb:Wr,angrtvbd:Yr,angsph:Qr,angst:Kr,angzarr:Xr,Aogon:no,aogon:to,Aopf:ro,aopf:oo,apacir:eo,ap:so,apE:co,ape:io,apid:ao,apos:lo,ApplyFunction:uo,approx:po,approxeq:fo,Aring:ho,aring:mo,Ascr:go,ascr:_o,Assign:bo,ast:ko,asymp:xo,asympeq:vo,Atilde:yo,atilde:Co,Auml:wo,auml:Ao,awconint:qo,awint:Do,backcong:Eo,backepsilon:So,backprime:Fo,backsim:Lo,backsimeq:To,Backslash:Ro,Barv:zo,barvee:Io,barwed:Bo,Barwed:No,barwedge:Mo,bbrk:Po,bbrktbrk:Oo,bcong:Uo,Bcy:Vo,bcy:$o,bdquo:Go,becaus:jo,because:Ho,Because:Zo,bemptyv:Jo,bepsi:Wo,bernou:Yo,Bernoullis:Qo,Beta:Ko,beta:Xo,beth:ne,between:te,Bfr:re,bfr:oe,bigcap:ee,bigcirc:se,bigcup:ce,bigodot:ie,bigoplus:ae,bigotimes:le,bigsqcup:ue,bigstar:pe,bigtriangledown:fe,bigtriangleup:he,biguplus:de,bigvee:me,bigwedge:ge,bkarow:_e,blacklozenge:be,blacksquare:ke,blacktriangle:xe,blacktriangledown:ve,blacktriangleleft:ye,blacktriangleright:Ce,blank:we,blk12:Ae,blk14:qe,blk34:De,block:Ee,bne:Se,bnequiv:Fe,bNot:Le,bnot:Te,Bopf:Re,bopf:ze,bot:Ie,bottom:Be,bowtie:Ne,boxbox:Me,boxdl:Pe,boxdL:Oe,boxDl:Ue,boxDL:Ve,boxdr:$e,boxdR:Ge,boxDr:je,boxDR:He,boxh:Ze,boxH:Je,boxhd:We,boxHd:Ye,boxhD:Qe,boxHD:Ke,boxhu:Xe,boxHu:ns,boxhU:ts,boxHU:rs,boxminus:os,boxplus:es,boxtimes:ss,boxul:cs,boxuL:is,boxUl:as,boxUL:ls,boxur:us,boxuR:ps,boxUr:fs,boxUR:hs,boxv:ds,boxV:ms,boxvh:gs,boxvH:_s,boxVh:bs,boxVH:ks,boxvl:xs,boxvL:vs,boxVl:ys,boxVL:Cs,boxvr:ws,boxvR:As,boxVr:qs,boxVR:Ds,bprime:Es,breve:Ss,Breve:Fs,brvbar:Ls,bscr:Ts,Bscr:Rs,bsemi:zs,bsim:Is,bsime:Bs,bsolb:Ns,bsol:Ms,bsolhsub:Ps,bull:Os,bullet:Us,bump:Vs,bumpE:$s,bumpe:Gs,Bumpeq:js,bumpeq:Hs,Cacute:Zs,cacute:Js,capand:Ws,capbrcup:Ys,capcap:Qs,cap:Ks,Cap:Xs,capcup:nc,capdot:tc,CapitalDifferentialD:rc,caps:oc,caret:ec,caron:sc,Cayleys:cc,ccaps:ic,Ccaron:ac,ccaron:lc,Ccedil:uc,ccedil:pc,Ccirc:fc,ccirc:hc,Cconint:dc,ccups:mc,ccupssm:gc,Cdot:_c,cdot:bc,cedil:kc,Cedilla:xc,cemptyv:vc,cent:yc,centerdot:Cc,CenterDot:wc,cfr:Ac,Cfr:qc,CHcy:Dc,chcy:Ec,check:Sc,checkmark:Fc,Chi:Lc,chi:Tc,circ:Rc,circeq:zc,circlearrowleft:Ic,circlearrowright:Bc,circledast:Nc,circledcirc:Mc,circleddash:Pc,CircleDot:Oc,circledR:Uc,circledS:Vc,CircleMinus:$c,CirclePlus:Gc,CircleTimes:jc,cir:Hc,cirE:Zc,cire:Jc,cirfnint:Wc,cirmid:Yc,cirscir:Qc,ClockwiseContourIntegral:Kc,CloseCurlyDoubleQuote:Xc,CloseCurlyQuote:ni,clubs:ti,clubsuit:ri,colon:oi,Colon:ei,Colone:si,colone:ci,coloneq:ii,comma:ai,commat:li,comp:ui,compfn:pi,complement:fi,complexes:hi,cong:di,congdot:mi,Congruent:gi,conint:_i,Conint:bi,ContourIntegral:ki,copf:xi,Copf:vi,coprod:yi,Coproduct:Ci,copy:wi,COPY:Ai,copysr:qi,CounterClockwiseContourIntegral:Di,crarr:Ei,cross:Si,Cross:Fi,Cscr:Li,cscr:Ti,csub:Ri,csube:zi,csup:Ii,csupe:Bi,ctdot:Ni,cudarrl:Mi,cudarrr:Pi,cuepr:Oi,cuesc:Ui,cularr:Vi,cularrp:$i,cupbrcap:Gi,cupcap:ji,CupCap:Hi,cup:Zi,Cup:Ji,cupcup:Wi,cupdot:Yi,cupor:Qi,cups:Ki,curarr:Xi,curarrm:na,curlyeqprec:ta,curlyeqsucc:ra,curlyvee:oa,curlywedge:ea,curren:sa,curvearrowleft:ca,curvearrowright:ia,cuvee:aa,cuwed:la,cwconint:ua,cwint:pa,cylcty:fa,dagger:ha,Dagger:da,daleth:ma,darr:ga,Darr:_a,dArr:ba,dash:ka,Dashv:xa,dashv:va,dbkarow:ya,dblac:Ca,Dcaron:wa,dcaron:Aa,Dcy:qa,dcy:Da,ddagger:Ea,ddarr:Sa,DD:Fa,dd:La,DDotrahd:Ta,ddotseq:Ra,deg:za,Del:Ia,Delta:Ba,delta:Na,demptyv:Ma,dfisht:Pa,Dfr:Oa,dfr:Ua,dHar:Va,dharl:$a,dharr:Ga,DiacriticalAcute:ja,DiacriticalDot:Ha,DiacriticalDoubleAcute:Za,DiacriticalGrave:Ja,DiacriticalTilde:Wa,diam:Ya,diamond:Qa,Diamond:Ka,diamondsuit:Xa,diams:nl,die:tl,DifferentialD:rl,digamma:ol,disin:el,div:sl,divide:cl,divideontimes:il,divonx:al,DJcy:ll,djcy:ul,dlcorn:pl,dlcrop:fl,dollar:hl,Dopf:dl,dopf:ml,Dot:gl,dot:_l,DotDot:bl,doteq:kl,doteqdot:xl,DotEqual:vl,dotminus:yl,dotplus:Cl,dotsquare:wl,doublebarwedge:Al,DoubleContourIntegral:ql,DoubleDot:Dl,DoubleDownArrow:El,DoubleLeftArrow:Sl,DoubleLeftRightArrow:Fl,DoubleLeftTee:Ll,DoubleLongLeftArrow:Tl,DoubleLongLeftRightArrow:Rl,DoubleLongRightArrow:zl,DoubleRightArrow:Il,DoubleRightTee:Bl,DoubleUpArrow:Nl,DoubleUpDownArrow:Ml,DoubleVerticalBar:Pl,DownArrowBar:Ol,downarrow:Ul,DownArrow:Vl,Downarrow:$l,DownArrowUpArrow:Gl,DownBreve:jl,downdownarrows:Hl,downharpoonleft:Zl,downharpoonright:Jl,DownLeftRightVector:Wl,DownLeftTeeVector:Yl,DownLeftVectorBar:Ql,DownLeftVector:Kl,DownRightTeeVector:Xl,DownRightVectorBar:nu,DownRightVector:tu,DownTeeArrow:ru,DownTee:ou,drbkarow:eu,drcorn:su,drcrop:cu,Dscr:iu,dscr:au,DScy:lu,dscy:uu,dsol:pu,Dstrok:fu,dstrok:hu,dtdot:du,dtri:mu,dtrif:gu,duarr:_u,duhar:bu,dwangle:ku,DZcy:xu,dzcy:vu,dzigrarr:yu,Eacute:Cu,eacute:wu,easter:Au,Ecaron:qu,ecaron:Du,Ecirc:Eu,ecirc:Su,ecir:Fu,ecolon:Lu,Ecy:Tu,ecy:Ru,eDDot:zu,Edot:Iu,edot:Bu,eDot:Nu,ee:Mu,efDot:Pu,Efr:Ou,efr:Uu,eg:Vu,Egrave:$u,egrave:Gu,egs:ju,egsdot:Hu,el:Zu,Element:Ju,elinters:Wu,ell:Yu,els:Qu,elsdot:Ku,Emacr:Xu,emacr:np,empty:tp,emptyset:rp,EmptySmallSquare:op,emptyv:ep,EmptyVerySmallSquare:sp,emsp13:cp,emsp14:ip,emsp:ap,ENG:lp,eng:up,ensp:pp,Eogon:fp,eogon:hp,Eopf:dp,eopf:mp,epar:gp,eparsl:_p,eplus:bp,epsi:kp,Epsilon:xp,epsilon:vp,epsiv:yp,eqcirc:Cp,eqcolon:wp,eqsim:Ap,eqslantgtr:qp,eqslantless:Dp,Equal:Ep,equals:Sp,EqualTilde:Fp,equest:Lp,Equilibrium:Tp,equiv:Rp,equivDD:zp,eqvparsl:Ip,erarr:Bp,erDot:Np,escr:Mp,Escr:Pp,esdot:Op,Esim:Up,esim:Vp,Eta:$p,eta:Gp,ETH:jp,eth:Hp,Euml:Zp,euml:Jp,euro:Wp,excl:Yp,exist:Qp,Exists:Kp,expectation:Xp,exponentiale:nf,ExponentialE:tf,fallingdotseq:rf,Fcy:of,fcy:ef,female:sf,ffilig:cf,fflig:af,ffllig:lf,Ffr:uf,ffr:pf,filig:ff,FilledSmallSquare:hf,FilledVerySmallSquare:df,fjlig:mf,flat:gf,fllig:_f,fltns:bf,fnof:kf,Fopf:xf,fopf:vf,forall:yf,ForAll:Cf,fork:wf,forkv:Af,Fouriertrf:qf,fpartint:Df,frac12:Ef,frac13:Sf,frac14:Ff,frac15:Lf,frac16:Tf,frac18:Rf,frac23:zf,frac25:If,frac34:Bf,frac35:Nf,frac38:Mf,frac45:Pf,frac56:Of,frac58:Uf,frac78:Vf,frasl:$f,frown:Gf,fscr:jf,Fscr:Hf,gacute:Zf,Gamma:Jf,gamma:Wf,Gammad:Yf,gammad:Qf,gap:Kf,Gbreve:Xf,gbreve:nh,Gcedil:th,Gcirc:rh,gcirc:oh,Gcy:eh,gcy:sh,Gdot:ch,gdot:ih,ge:ah,gE:lh,gEl:uh,gel:ph,geq:fh,geqq:hh,geqslant:dh,gescc:mh,ges:gh,gesdot:_h,gesdoto:bh,gesdotol:kh,gesl:xh,gesles:vh,Gfr:yh,gfr:Ch,gg:wh,Gg:Ah,ggg:qh,gimel:Dh,GJcy:Eh,gjcy:Sh,gla:Fh,gl:Lh,glE:Th,glj:Rh,gnap:zh,gnapprox:Ih,gne:Bh,gnE:Nh,gneq:Mh,gneqq:Ph,gnsim:Oh,Gopf:Uh,gopf:Vh,grave:$h,GreaterEqual:Gh,GreaterEqualLess:jh,GreaterFullEqual:Hh,GreaterGreater:Zh,GreaterLess:Jh,GreaterSlantEqual:Wh,GreaterTilde:Yh,Gscr:Qh,gscr:Kh,gsim:Xh,gsime:nd,gsiml:td,gtcc:rd,gtcir:od,gt:ed,GT:sd,Gt:cd,gtdot:id,gtlPar:ad,gtquest:ld,gtrapprox:ud,gtrarr:pd,gtrdot:fd,gtreqless:hd,gtreqqless:dd,gtrless:md,gtrsim:gd,gvertneqq:_d,gvnE:bd,Hacek:kd,hairsp:xd,half:vd,hamilt:yd,HARDcy:Cd,hardcy:wd,harrcir:Ad,harr:qd,hArr:Dd,harrw:Ed,Hat:Sd,hbar:Fd,Hcirc:Ld,hcirc:Td,hearts:Rd,heartsuit:zd,hellip:Id,hercon:Bd,hfr:Nd,Hfr:Md,HilbertSpace:Pd,hksearow:Od,hkswarow:Ud,hoarr:Vd,homtht:$d,hookleftarrow:Gd,hookrightarrow:jd,hopf:Hd,Hopf:Zd,horbar:Jd,HorizontalLine:Wd,hscr:Yd,Hscr:Qd,hslash:Kd,Hstrok:Xd,hstrok:nm,HumpDownHump:tm,HumpEqual:rm,hybull:om,hyphen:em,Iacute:sm,iacute:cm,ic:im,Icirc:am,icirc:lm,Icy:um,icy:pm,Idot:fm,IEcy:hm,iecy:dm,iexcl:mm,iff:gm,ifr:_m,Ifr:bm,Igrave:km,igrave:xm,ii:vm,iiiint:ym,iiint:Cm,iinfin:wm,iiota:Am,IJlig:qm,ijlig:Dm,Imacr:Em,imacr:Sm,image:Fm,ImaginaryI:Lm,imagline:Tm,imagpart:Rm,imath:zm,Im,imof:Bm,imped:Nm,Implies:Mm,incare:Pm,in:"∈",infin:Om,infintie:Um,inodot:Vm,intcal:$m,int:Gm,Int:jm,integers:Hm,Integral:Zm,intercal:Jm,Intersection:Wm,intlarhk:Ym,intprod:Qm,InvisibleComma:Km,InvisibleTimes:Xm,IOcy:ng,iocy:tg,Iogon:rg,iogon:og,Iopf:eg,iopf:sg,Iota:cg,iota:ig,iprod:ag,iquest:lg,iscr:ug,Iscr:pg,isin:fg,isindot:hg,isinE:dg,isins:mg,isinsv:gg,isinv:_g,it:bg,Itilde:kg,itilde:xg,Iukcy:vg,iukcy:yg,Iuml:Cg,iuml:wg,Jcirc:Ag,jcirc:qg,Jcy:Dg,jcy:Eg,Jfr:Sg,jfr:Fg,jmath:Lg,Jopf:Tg,jopf:Rg,Jscr:zg,jscr:Ig,Jsercy:Bg,jsercy:Ng,Jukcy:Mg,jukcy:Pg,Kappa:Og,kappa:Ug,kappav:Vg,Kcedil:$g,kcedil:Gg,Kcy:jg,kcy:Hg,Kfr:Zg,kfr:Jg,kgreen:Wg,KHcy:Yg,khcy:Qg,KJcy:Kg,kjcy:Xg,Kopf:n0,kopf:t0,Kscr:r0,kscr:o0,lAarr:e0,Lacute:s0,lacute:c0,laemptyv:i0,lagran:a0,Lambda:l0,lambda:u0,lang:p0,Lang:f0,langd:h0,langle:d0,lap:m0,Laplacetrf:g0,laquo:_0,larrb:b0,larrbfs:k0,larr:x0,Larr:v0,lArr:y0,larrfs:C0,larrhk:w0,larrlp:A0,larrpl:q0,larrsim:D0,larrtl:E0,latail:S0,lAtail:F0,lat:L0,late:T0,lates:R0,lbarr:z0,lBarr:I0,lbbrk:B0,lbrace:N0,lbrack:M0,lbrke:P0,lbrksld:O0,lbrkslu:U0,Lcaron:V0,lcaron:$0,Lcedil:G0,lcedil:j0,lceil:H0,lcub:Z0,Lcy:J0,lcy:W0,ldca:Y0,ldquo:Q0,ldquor:K0,ldrdhar:X0,ldrushar:n_,ldsh:t_,le:r_,lE:o_,LeftAngleBracket:e_,LeftArrowBar:s_,leftarrow:c_,LeftArrow:i_,Leftarrow:a_,LeftArrowRightArrow:l_,leftarrowtail:u_,LeftCeiling:p_,LeftDoubleBracket:f_,LeftDownTeeVector:h_,LeftDownVectorBar:d_,LeftDownVector:m_,LeftFloor:g_,leftharpoondown:__,leftharpoonup:b_,leftleftarrows:k_,leftrightarrow:x_,LeftRightArrow:v_,Leftrightarrow:y_,leftrightarrows:C_,leftrightharpoons:w_,leftrightsquigarrow:A_,LeftRightVector:q_,LeftTeeArrow:D_,LeftTee:E_,LeftTeeVector:S_,leftthreetimes:F_,LeftTriangleBar:L_,LeftTriangle:T_,LeftTriangleEqual:R_,LeftUpDownVector:z_,LeftUpTeeVector:I_,LeftUpVectorBar:B_,LeftUpVector:N_,LeftVectorBar:M_,LeftVector:P_,lEg:O_,leg:U_,leq:V_,leqq:$_,leqslant:G_,lescc:j_,les:H_,lesdot:Z_,lesdoto:J_,lesdotor:W_,lesg:Y_,lesges:Q_,lessapprox:K_,lessdot:X_,lesseqgtr:nb,lesseqqgtr:tb,LessEqualGreater:rb,LessFullEqual:ob,LessGreater:eb,lessgtr:sb,LessLess:cb,lesssim:ib,LessSlantEqual:ab,LessTilde:lb,lfisht:ub,lfloor:pb,Lfr:fb,lfr:hb,lg:db,lgE:mb,lHar:gb,lhard:_b,lharu:bb,lharul:kb,lhblk:xb,LJcy:vb,ljcy:yb,llarr:Cb,ll:wb,Ll:Ab,llcorner:qb,Lleftarrow:Db,llhard:Eb,lltri:Sb,Lmidot:Fb,lmidot:Lb,lmoustache:Tb,lmoust:Rb,lnap:zb,lnapprox:Ib,lne:Bb,lnE:Nb,lneq:Mb,lneqq:Pb,lnsim:Ob,loang:Ub,loarr:Vb,lobrk:$b,longleftarrow:Gb,LongLeftArrow:jb,Longleftarrow:Hb,longleftrightarrow:Zb,LongLeftRightArrow:Jb,Longleftrightarrow:Wb,longmapsto:Yb,longrightarrow:Qb,LongRightArrow:Kb,Longrightarrow:Xb,looparrowleft:nk,looparrowright:tk,lopar:rk,Lopf:ok,lopf:ek,loplus:sk,lotimes:ck,lowast:ik,lowbar:ak,LowerLeftArrow:lk,LowerRightArrow:uk,loz:pk,lozenge:fk,lozf:hk,lpar:dk,lparlt:mk,lrarr:gk,lrcorner:_k,lrhar:bk,lrhard:kk,lrm:xk,lrtri:vk,lsaquo:yk,lscr:Ck,Lscr:wk,lsh:Ak,Lsh:qk,lsim:Dk,lsime:Ek,lsimg:Sk,lsqb:Fk,lsquo:Lk,lsquor:Tk,Lstrok:Rk,lstrok:zk,ltcc:Ik,ltcir:Bk,lt:Nk,LT:Mk,Lt:Pk,ltdot:Ok,lthree:Uk,ltimes:Vk,ltlarr:$k,ltquest:Gk,ltri:jk,ltrie:Hk,ltrif:Zk,ltrPar:Jk,lurdshar:Wk,luruhar:Yk,lvertneqq:Qk,lvnE:Kk,macr:Xk,male:nx,malt:tx,maltese:rx,Map:"⤅",map:ox,mapsto:ex,mapstodown:sx,mapstoleft:cx,mapstoup:ix,marker:ax,mcomma:lx,Mcy:ux,mcy:px,mdash:fx,mDDot:hx,measuredangle:dx,MediumSpace:mx,Mellintrf:gx,Mfr:_x,mfr:bx,mho:kx,micro:xx,midast:vx,midcir:yx,mid:Cx,middot:wx,minusb:Ax,minus:qx,minusd:Dx,minusdu:Ex,MinusPlus:Sx,mlcp:Fx,mldr:Lx,mnplus:Tx,models:Rx,Mopf:zx,mopf:Ix,mp:Bx,mscr:Nx,Mscr:Mx,mstpos:Px,Mu:Ox,mu:Ux,multimap:Vx,mumap:$x,nabla:Gx,Nacute:jx,nacute:Hx,nang:Zx,nap:Jx,napE:Wx,napid:Yx,napos:Qx,napprox:Kx,natural:Xx,naturals:nv,natur:tv,nbsp:rv,nbump:ov,nbumpe:ev,ncap:sv,Ncaron:cv,ncaron:iv,Ncedil:av,ncedil:lv,ncong:uv,ncongdot:pv,ncup:fv,Ncy:hv,ncy:dv,ndash:mv,nearhk:gv,nearr:_v,neArr:bv,nearrow:kv,ne:xv,nedot:vv,NegativeMediumSpace:yv,NegativeThickSpace:Cv,NegativeThinSpace:wv,NegativeVeryThinSpace:Av,nequiv:qv,nesear:Dv,nesim:Ev,NestedGreaterGreater:Sv,NestedLessLess:Fv,NewLine:Lv,nexist:Tv,nexists:Rv,Nfr:zv,nfr:Iv,ngE:Bv,nge:Nv,ngeq:Mv,ngeqq:Pv,ngeqslant:Ov,nges:Uv,nGg:Vv,ngsim:$v,nGt:Gv,ngt:jv,ngtr:Hv,nGtv:Zv,nharr:Jv,nhArr:Wv,nhpar:Yv,ni:Qv,nis:Kv,nisd:Xv,niv:ny,NJcy:ty,njcy:ry,nlarr:oy,nlArr:ey,nldr:sy,nlE:cy,nle:iy,nleftarrow:ay,nLeftarrow:ly,nleftrightarrow:uy,nLeftrightarrow:py,nleq:fy,nleqq:hy,nleqslant:dy,nles:my,nless:gy,nLl:_y,nlsim:by,nLt:ky,nlt:xy,nltri:vy,nltrie:yy,nLtv:Cy,nmid:wy,NoBreak:Ay,NonBreakingSpace:qy,nopf:Dy,Nopf:Ey,Not:Sy,not:Fy,NotCongruent:Ly,NotCupCap:Ty,NotDoubleVerticalBar:Ry,NotElement:zy,NotEqual:Iy,NotEqualTilde:By,NotExists:Ny,NotGreater:My,NotGreaterEqual:Py,NotGreaterFullEqual:Oy,NotGreaterGreater:Uy,NotGreaterLess:Vy,NotGreaterSlantEqual:$y,NotGreaterTilde:Gy,NotHumpDownHump:jy,NotHumpEqual:Hy,notin:Zy,notindot:Jy,notinE:Wy,notinva:Yy,notinvb:Qy,notinvc:Ky,NotLeftTriangleBar:Xy,NotLeftTriangle:nC,NotLeftTriangleEqual:tC,NotLess:rC,NotLessEqual:oC,NotLessGreater:eC,NotLessLess:sC,NotLessSlantEqual:cC,NotLessTilde:iC,NotNestedGreaterGreater:aC,NotNestedLessLess:lC,notni:uC,notniva:pC,notnivb:fC,notnivc:hC,NotPrecedes:dC,NotPrecedesEqual:mC,NotPrecedesSlantEqual:gC,NotReverseElement:_C,NotRightTriangleBar:bC,NotRightTriangle:kC,NotRightTriangleEqual:xC,NotSquareSubset:vC,NotSquareSubsetEqual:yC,NotSquareSuperset:CC,NotSquareSupersetEqual:wC,NotSubset:AC,NotSubsetEqual:qC,NotSucceeds:DC,NotSucceedsEqual:EC,NotSucceedsSlantEqual:SC,NotSucceedsTilde:FC,NotSuperset:LC,NotSupersetEqual:TC,NotTilde:RC,NotTildeEqual:zC,NotTildeFullEqual:IC,NotTildeTilde:BC,NotVerticalBar:NC,nparallel:MC,npar:PC,nparsl:OC,npart:UC,npolint:VC,npr:$C,nprcue:GC,nprec:jC,npreceq:HC,npre:ZC,nrarrc:JC,nrarr:WC,nrArr:YC,nrarrw:QC,nrightarrow:KC,nRightarrow:XC,nrtri:nw,nrtrie:tw,nsc:rw,nsccue:ow,nsce:ew,Nscr:sw,nscr:cw,nshortmid:iw,nshortparallel:aw,nsim:lw,nsime:uw,nsimeq:pw,nsmid:fw,nspar:hw,nsqsube:dw,nsqsupe:mw,nsub:gw,nsubE:_w,nsube:bw,nsubset:kw,nsubseteq:xw,nsubseteqq:vw,nsucc:yw,nsucceq:Cw,nsup:ww,nsupE:Aw,nsupe:qw,nsupset:Dw,nsupseteq:Ew,nsupseteqq:Sw,ntgl:Fw,Ntilde:Lw,ntilde:Tw,ntlg:Rw,ntriangleleft:zw,ntrianglelefteq:Iw,ntriangleright:Bw,ntrianglerighteq:Nw,Nu:Mw,nu:Pw,num:Ow,numero:Uw,numsp:Vw,nvap:$w,nvdash:Gw,nvDash:jw,nVdash:Hw,nVDash:Zw,nvge:Jw,nvgt:Ww,nvHarr:Yw,nvinfin:Qw,nvlArr:Kw,nvle:Xw,nvlt:n1,nvltrie:t1,nvrArr:r1,nvrtrie:o1,nvsim:e1,nwarhk:s1,nwarr:c1,nwArr:i1,nwarrow:a1,nwnear:l1,Oacute:u1,oacute:p1,oast:f1,Ocirc:h1,ocirc:d1,ocir:m1,Ocy:g1,ocy:_1,odash:b1,Odblac:k1,odblac:x1,odiv:v1,odot:y1,odsold:C1,OElig:w1,oelig:A1,ofcir:q1,Ofr:D1,ofr:E1,ogon:S1,Ograve:F1,ograve:L1,ogt:T1,ohbar:R1,ohm:z1,oint:I1,olarr:B1,olcir:N1,olcross:M1,oline:P1,olt:O1,Omacr:U1,omacr:V1,Omega:$1,omega:G1,Omicron:j1,omicron:H1,omid:Z1,ominus:J1,Oopf:W1,oopf:Y1,opar:Q1,OpenCurlyDoubleQuote:K1,OpenCurlyQuote:X1,operp:nA,oplus:tA,orarr:rA,Or:oA,or:eA,ord:sA,order:cA,orderof:iA,ordf:aA,ordm:lA,origof:uA,oror:pA,orslope:fA,orv:hA,oS:dA,Oscr:mA,oscr:gA,Oslash:_A,oslash:bA,osol:kA,Otilde:xA,otilde:vA,otimesas:yA,Otimes:CA,otimes:wA,Ouml:AA,ouml:qA,ovbar:DA,OverBar:EA,OverBrace:SA,OverBracket:FA,OverParenthesis:LA,para:TA,parallel:RA,par:zA,parsim:IA,parsl:BA,part:NA,PartialD:MA,Pcy:PA,pcy:OA,percnt:UA,period:VA,permil:$A,perp:GA,pertenk:jA,Pfr:HA,pfr:ZA,Phi:JA,phi:WA,phiv:YA,phmmat:QA,phone:KA,Pi:XA,pi:nq,pitchfork:tq,piv:rq,planck:oq,planckh:eq,plankv:sq,plusacir:cq,plusb:iq,pluscir:aq,plus:lq,plusdo:uq,plusdu:pq,pluse:fq,PlusMinus:hq,plusmn:dq,plussim:mq,plustwo:gq,pm:_q,Poincareplane:bq,pointint:kq,popf:xq,Popf:vq,pound:yq,prap:Cq,Pr:wq,pr:Aq,prcue:qq,precapprox:Dq,prec:Eq,preccurlyeq:Sq,Precedes:Fq,PrecedesEqual:Lq,PrecedesSlantEqual:Tq,PrecedesTilde:Rq,preceq:zq,precnapprox:Iq,precneqq:Bq,precnsim:Nq,pre:Mq,prE:Pq,precsim:Oq,prime:Uq,Prime:Vq,primes:$q,prnap:Gq,prnE:jq,prnsim:Hq,prod:Zq,Product:Jq,profalar:Wq,profline:Yq,profsurf:Qq,prop:Kq,Proportional:Xq,Proportion:nD,propto:tD,prsim:rD,prurel:oD,Pscr:eD,pscr:sD,Psi:cD,psi:iD,puncsp:aD,Qfr:lD,qfr:uD,qint:pD,qopf:fD,Qopf:hD,qprime:dD,Qscr:mD,qscr:gD,quaternions:_D,quatint:bD,quest:kD,questeq:xD,quot:vD,QUOT:yD,rAarr:CD,race:wD,Racute:AD,racute:qD,radic:DD,raemptyv:ED,rang:SD,Rang:FD,rangd:LD,range:TD,rangle:RD,raquo:zD,rarrap:ID,rarrb:BD,rarrbfs:ND,rarrc:MD,rarr:PD,Rarr:OD,rArr:UD,rarrfs:VD,rarrhk:$D,rarrlp:GD,rarrpl:jD,rarrsim:HD,Rarrtl:ZD,rarrtl:JD,rarrw:WD,ratail:YD,rAtail:QD,ratio:KD,rationals:XD,rbarr:nE,rBarr:tE,RBarr:rE,rbbrk:oE,rbrace:eE,rbrack:sE,rbrke:cE,rbrksld:iE,rbrkslu:aE,Rcaron:lE,rcaron:uE,Rcedil:pE,rcedil:fE,rceil:hE,rcub:dE,Rcy:mE,rcy:gE,rdca:_E,rdldhar:bE,rdquo:kE,rdquor:xE,rdsh:vE,real:yE,realine:CE,realpart:wE,reals:AE,Re:qE,rect:DE,reg:EE,REG:SE,ReverseElement:FE,ReverseEquilibrium:LE,ReverseUpEquilibrium:TE,rfisht:RE,rfloor:zE,rfr:IE,Rfr:BE,rHar:NE,rhard:ME,rharu:PE,rharul:OE,Rho:UE,rho:VE,rhov:$E,RightAngleBracket:GE,RightArrowBar:jE,rightarrow:HE,RightArrow:ZE,Rightarrow:JE,RightArrowLeftArrow:WE,rightarrowtail:YE,RightCeiling:QE,RightDoubleBracket:KE,RightDownTeeVector:XE,RightDownVectorBar:nS,RightDownVector:tS,RightFloor:rS,rightharpoondown:oS,rightharpoonup:eS,rightleftarrows:sS,rightleftharpoons:cS,rightrightarrows:iS,rightsquigarrow:aS,RightTeeArrow:lS,RightTee:uS,RightTeeVector:pS,rightthreetimes:fS,RightTriangleBar:hS,RightTriangle:dS,RightTriangleEqual:mS,RightUpDownVector:gS,RightUpTeeVector:_S,RightUpVectorBar:bS,RightUpVector:kS,RightVectorBar:xS,RightVector:vS,ring:yS,risingdotseq:CS,rlarr:wS,rlhar:AS,rlm:qS,rmoustache:DS,rmoust:ES,rnmid:SS,roang:FS,roarr:LS,robrk:TS,ropar:RS,ropf:zS,Ropf:IS,roplus:BS,rotimes:NS,RoundImplies:MS,rpar:PS,rpargt:OS,rppolint:US,rrarr:VS,Rrightarrow:$S,rsaquo:GS,rscr:jS,Rscr:HS,rsh:ZS,Rsh:JS,rsqb:WS,rsquo:YS,rsquor:QS,rthree:KS,rtimes:XS,rtri:nF,rtrie:tF,rtrif:rF,rtriltri:oF,RuleDelayed:eF,ruluhar:sF,rx:cF,Sacute:iF,sacute:aF,sbquo:lF,scap:uF,Scaron:pF,scaron:fF,Sc:hF,sc:dF,sccue:mF,sce:gF,scE:_F,Scedil:bF,scedil:kF,Scirc:xF,scirc:vF,scnap:yF,scnE:CF,scnsim:wF,scpolint:AF,scsim:qF,Scy:DF,scy:EF,sdotb:SF,sdot:FF,sdote:LF,searhk:TF,searr:RF,seArr:zF,searrow:IF,sect:BF,semi:NF,seswar:MF,setminus:PF,setmn:OF,sext:UF,Sfr:VF,sfr:$F,sfrown:GF,sharp:jF,SHCHcy:HF,shchcy:ZF,SHcy:JF,shcy:WF,ShortDownArrow:YF,ShortLeftArrow:QF,shortmid:KF,shortparallel:XF,ShortRightArrow:nL,ShortUpArrow:tL,shy:rL,Sigma:oL,sigma:eL,sigmaf:sL,sigmav:cL,sim:iL,simdot:aL,sime:lL,simeq:uL,simg:pL,simgE:fL,siml:hL,simlE:dL,simne:mL,simplus:gL,simrarr:_L,slarr:bL,SmallCircle:kL,smallsetminus:xL,smashp:vL,smeparsl:yL,smid:CL,smile:wL,smt:AL,smte:qL,smtes:DL,SOFTcy:EL,softcy:SL,solbar:FL,solb:LL,sol:TL,Sopf:RL,sopf:zL,spades:IL,spadesuit:BL,spar:NL,sqcap:ML,sqcaps:PL,sqcup:OL,sqcups:UL,Sqrt:VL,sqsub:$L,sqsube:GL,sqsubset:jL,sqsubseteq:HL,sqsup:ZL,sqsupe:JL,sqsupset:WL,sqsupseteq:YL,square:QL,Square:KL,SquareIntersection:XL,SquareSubset:nT,SquareSubsetEqual:tT,SquareSuperset:rT,SquareSupersetEqual:oT,SquareUnion:eT,squarf:sT,squ:cT,squf:iT,srarr:aT,Sscr:lT,sscr:uT,ssetmn:pT,ssmile:fT,sstarf:hT,Star:dT,star:mT,starf:gT,straightepsilon:_T,straightphi:bT,strns:kT,sub:xT,Sub:vT,subdot:yT,subE:CT,sube:wT,subedot:AT,submult:qT,subnE:DT,subne:ET,subplus:ST,subrarr:FT,subset:LT,Subset:TT,subseteq:RT,subseteqq:zT,SubsetEqual:IT,subsetneq:BT,subsetneqq:NT,subsim:MT,subsub:PT,subsup:OT,succapprox:UT,succ:VT,succcurlyeq:$T,Succeeds:GT,SucceedsEqual:jT,SucceedsSlantEqual:HT,SucceedsTilde:ZT,succeq:JT,succnapprox:WT,succneqq:YT,succnsim:QT,succsim:KT,SuchThat:XT,sum:n2,Sum:t2,sung:r2,sup1:o2,sup2:e2,sup3:s2,sup:c2,Sup:i2,supdot:a2,supdsub:l2,supE:u2,supe:p2,supedot:f2,Superset:h2,SupersetEqual:d2,suphsol:m2,suphsub:g2,suplarr:_2,supmult:b2,supnE:k2,supne:x2,supplus:v2,supset:y2,Supset:C2,supseteq:w2,supseteqq:A2,supsetneq:q2,supsetneqq:D2,supsim:E2,supsub:S2,supsup:F2,swarhk:L2,swarr:T2,swArr:R2,swarrow:z2,swnwar:I2,szlig:B2,Tab:N2,target:M2,Tau:P2,tau:O2,tbrk:U2,Tcaron:V2,tcaron:$2,Tcedil:G2,tcedil:j2,Tcy:H2,tcy:Z2,tdot:J2,telrec:W2,Tfr:Y2,tfr:Q2,there4:K2,therefore:X2,Therefore:nR,Theta:tR,theta:rR,thetasym:oR,thetav:eR,thickapprox:sR,thicksim:cR,ThickSpace:iR,ThinSpace:aR,thinsp:lR,thkap:uR,thksim:pR,THORN:fR,thorn:hR,tilde:dR,Tilde:mR,TildeEqual:gR,TildeFullEqual:_R,TildeTilde:bR,timesbar:kR,timesb:xR,times:vR,timesd:yR,tint:CR,toea:wR,topbot:AR,topcir:qR,top:DR,Topf:ER,topf:SR,topfork:FR,tosa:LR,tprime:TR,trade:RR,TRADE:zR,triangle:IR,triangledown:BR,triangleleft:NR,trianglelefteq:MR,triangleq:PR,triangleright:OR,trianglerighteq:UR,tridot:VR,trie:$R,triminus:GR,TripleDot:jR,triplus:HR,trisb:ZR,tritime:JR,trpezium:WR,Tscr:YR,tscr:QR,TScy:KR,tscy:XR,TSHcy:nz,tshcy:tz,Tstrok:rz,tstrok:oz,twixt:ez,twoheadleftarrow:sz,twoheadrightarrow:cz,Uacute:iz,uacute:az,uarr:lz,Uarr:uz,uArr:pz,Uarrocir:fz,Ubrcy:hz,ubrcy:dz,Ubreve:mz,ubreve:gz,Ucirc:_z,ucirc:bz,Ucy:kz,ucy:xz,udarr:vz,Udblac:yz,udblac:Cz,udhar:wz,ufisht:Az,Ufr:qz,ufr:Dz,Ugrave:Ez,ugrave:Sz,uHar:Fz,uharl:Lz,uharr:Tz,uhblk:Rz,ulcorn:zz,ulcorner:Iz,ulcrop:Bz,ultri:Nz,Umacr:Mz,umacr:Pz,uml:Oz,UnderBar:Uz,UnderBrace:Vz,UnderBracket:$z,UnderParenthesis:Gz,Union:jz,UnionPlus:Hz,Uogon:Zz,uogon:Jz,Uopf:Wz,uopf:Yz,UpArrowBar:Qz,uparrow:Kz,UpArrow:Xz,Uparrow:nI,UpArrowDownArrow:tI,updownarrow:rI,UpDownArrow:oI,Updownarrow:eI,UpEquilibrium:sI,upharpoonleft:cI,upharpoonright:iI,uplus:aI,UpperLeftArrow:lI,UpperRightArrow:uI,upsi:pI,Upsi:fI,upsih:hI,Upsilon:dI,upsilon:mI,UpTeeArrow:gI,UpTee:_I,upuparrows:bI,urcorn:kI,urcorner:xI,urcrop:vI,Uring:yI,uring:CI,urtri:wI,Uscr:AI,uscr:qI,utdot:DI,Utilde:EI,utilde:SI,utri:FI,utrif:LI,uuarr:TI,Uuml:RI,uuml:zI,uwangle:II,vangrt:BI,varepsilon:NI,varkappa:MI,varnothing:PI,varphi:OI,varpi:UI,varpropto:VI,varr:$I,vArr:GI,varrho:jI,varsigma:HI,varsubsetneq:ZI,varsubsetneqq:JI,varsupsetneq:WI,varsupsetneqq:YI,vartheta:QI,vartriangleleft:KI,vartriangleright:XI,vBar:nB,Vbar:tB,vBarv:rB,Vcy:oB,vcy:eB,vdash:sB,vDash:cB,Vdash:iB,VDash:aB,Vdashl:lB,veebar:uB,vee:pB,Vee:fB,veeeq:hB,vellip:dB,verbar:mB,Verbar:gB,vert:_B,Vert:bB,VerticalBar:kB,VerticalLine:xB,VerticalSeparator:vB,VerticalTilde:yB,VeryThinSpace:CB,Vfr:wB,vfr:AB,vltri:qB,vnsub:DB,vnsup:EB,Vopf:SB,vopf:FB,vprop:LB,vrtri:TB,Vscr:RB,vscr:zB,vsubnE:IB,vsubne:BB,vsupnE:NB,vsupne:MB,Vvdash:PB,vzigzag:OB,Wcirc:UB,wcirc:VB,wedbar:$B,wedge:GB,Wedge:jB,wedgeq:HB,weierp:ZB,Wfr:JB,wfr:WB,Wopf:YB,wopf:QB,wp:KB,wr:XB,wreath:n3,Wscr:t3,wscr:r3,xcap:o3,xcirc:e3,xcup:s3,xdtri:c3,Xfr:i3,xfr:a3,xharr:l3,xhArr:u3,Xi:p3,xi:f3,xlarr:h3,xlArr:d3,xmap:m3,xnis:g3,xodot:_3,Xopf:b3,xopf:k3,xoplus:x3,xotime:v3,xrarr:y3,xrArr:C3,Xscr:w3,xscr:A3,xsqcup:q3,xuplus:D3,xutri:E3,xvee:S3,xwedge:F3,Yacute:L3,yacute:T3,YAcy:R3,yacy:z3,Ycirc:I3,ycirc:B3,Ycy:N3,ycy:M3,yen:P3,Yfr:O3,yfr:U3,YIcy:V3,yicy:$3,Yopf:G3,yopf:j3,Yscr:H3,yscr:Z3,YUcy:J3,yucy:W3,yuml:Y3,Yuml:Q3,Zacute:K3,zacute:X3,Zcaron:nN,zcaron:tN,Zcy:rN,zcy:oN,Zdot:eN,zdot:sN,zeetrf:cN,ZeroWidthSpace:iN,Zeta:aN,zeta:lN,zfr:uN,Zfr:pN,ZHcy:fN,zhcy:hN,zigrarr:dN,zopf:mN,Zopf:gN,Zscr:_N,zscr:bN,zwj:kN,zwnj:xN};var At=vN,Tn=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Z={},$n={};function yN(r){var n,t,o=$n[r];if(o)return o;for(o=$n[r]=[],n=0;n<128;n++)t=String.fromCharCode(n),/^[0-9a-z]$/i.test(t)?o.push(t):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n"u"&&(t=!0),c=yN(n),o=0,e=r.length;o=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&i<=57343)){a+=encodeURIComponent(r[o]+r[o+1]),o++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(r[o])}return a}cn.defaultChars=";/?:@&=+$,-_.!~*'()#";cn.componentChars="-_.!~*'()";var CN=cn,Gn={};function wN(r){var n,t,o=Gn[r];if(o)return o;for(o=Gn[r]=[],n=0;n<128;n++)t=String.fromCharCode(n),o.push(t);for(n=0;n=55296&&u<=57343?p+="���":p+=String.fromCharCode(u),e+=6;continue}if((i&248)===240&&e+91114111?p+="����":(u-=65536,p+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),e+=9;continue}p+="�"}return p})}an.defaultChars=";/?:@&=+$,#";an.componentChars="";var AN=an,qN=function(n){var t="";return t+=n.protocol||"",t+=n.slashes?"//":"",t+=n.auth?n.auth+"@":"",n.hostname&&n.hostname.indexOf(":")!==-1?t+="["+n.hostname+"]":t+=n.hostname||"",t+=n.port?":"+n.port:"",t+=n.pathname||"",t+=n.search||"",t+=n.hash||"",t};function en(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var DN=/^([a-z0-9.+-]+:)/i,EN=/:[0-9]*$/,SN=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,FN=["<",">",'"',"`"," ","\r",` `," "],LN=["{","}","|","\\","^","`"].concat(FN),TN=["'"].concat(LN),jn=["%","/","?",";","#"].concat(TN),Hn=["/","?","#"],RN=255,Zn=/^[+a-z0-9A-Z_-]{0,63}$/,zN=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jn={javascript:!0,"javascript:":!0},Wn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function IN(r,n){if(r&&r instanceof en)return r;var t=new en;return t.parse(r,n),t}en.prototype.parse=function(r,n){var t,o,e,s,i,c=r;if(c=c.trim(),!n&&r.split("#").length===1){var a=SN.exec(c);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=DN.exec(c);if(l&&(l=l[0],e=l.toLowerCase(),this.protocol=l,c=c.substr(l.length)),(n||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=c.substr(0,2)==="//",i&&!(l&&Jn[l])&&(c=c.substr(2),this.slashes=!0)),!Jn[l]&&(i||l&&!Wn[l])){var u=-1;for(t=0;t127?k+="x":k+=v[m];if(!k.match(Zn)){var C=_.slice(0,t),w=_.slice(t+1),g=v.match(zN);g&&(C.push(g[1]),w.unshift(g[2])),w.length&&(c=w.join(".")+c),this.hostname=C.join(".");break}}}}this.hostname.length>RN&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=c.indexOf("#");E!==-1&&(this.hash=c.substr(E),c=c.slice(0,E));var S=c.indexOf("?");return S!==-1&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),Wn[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this};en.prototype.parseHost=function(r){var n=EN.exec(r);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),r=r.substr(0,r.length-n.length)),r&&(this.hostname=r)};var BN=IN;Z.encode=CN;Z.decode=AN;Z.format=qN;Z.parse=BN;var U={},gn,Yn;function qt(){return Yn||(Yn=1,gn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gn}var _n,Qn;function Dt(){return Qn||(Qn=1,_n=/[\0-\x1F\x7F-\x9F]/),_n}var bn,Kn;function NN(){return Kn||(Kn=1,bn=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),bn}var kn,Xn;function Et(){return Xn||(Xn=1,kn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),kn}var nt;function MN(){return nt||(nt=1,U.Any=qt(),U.Cc=Dt(),U.Cf=NN(),U.P=Tn,U.Z=Et()),U}(function(r){function n(d){return Object.prototype.toString.call(d)}function t(d){return n(d)==="[object String]"}var o=Object.prototype.hasOwnProperty;function e(d,A){return o.call(d,A)}function s(d){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(x){if(x){if(typeof x!="object")throw new TypeError(x+"must be object");Object.keys(x).forEach(function(P){d[P]=x[P]})}}),d}function i(d,A,x){return[].concat(d.slice(0,A),x,d.slice(A+1))}function c(d){return!(d>=55296&&d<=57343||d>=64976&&d<=65007||(d&65535)===65535||(d&65535)===65534||d>=0&&d<=8||d===11||d>=14&&d<=31||d>=127&&d<=159||d>1114111)}function a(d){if(d>65535){d-=65536;var A=55296+(d>>10),x=56320+(d&1023);return String.fromCharCode(A,x)}return String.fromCharCode(d)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=At;function b(d,A){var x;return e(h,A)?h[A]:A.charCodeAt(0)===35&&f.test(A)&&(x=A[1].toLowerCase()==="x"?parseInt(A.slice(2),16):parseInt(A.slice(1),10),c(x))?a(x):d}function _(d){return d.indexOf("\\")<0?d:d.replace(l,"$1")}function v(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(p,function(A,x,P){return x||b(A,P)})}var k=/[&<>"]/,m=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function C(d){return y[d]}function w(d){return k.test(d)?d.replace(m,C):d}var g=/[.?*+^$[\]\\(){}|-]/g;function E(d){return d.replace(g,"\\$&")}function S(d){switch(d){case 9:case 32:return!0}return!1}function M(d){if(d>=8192&&d<=8202)return!0;switch(d){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var D=Tn;function R(d){return D.test(d)}function G(d){switch(d){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Y(d){return d=d.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(d=d.replace(/ẞ/g,"ß")),d.toLowerCase().toUpperCase()}r.lib={},r.lib.mdurl=Z,r.lib.ucmicro=MN(),r.assign=s,r.isString=t,r.has=e,r.unescapeMd=_,r.unescapeAll=v,r.isValidEntityCode=c,r.fromCodePoint=a,r.escapeHtml=w,r.arrayReplaceAt=i,r.isSpace=S,r.isWhiteSpace=M,r.isMdAsciiPunct=G,r.isPunctChar=R,r.escapeRE=E,r.normalizeReference=Y})(q);var ln={},PN=function(n,t,o){var e,s,i,c,a=-1,l=n.posMax,u=n.pos;for(n.pos=t+1,e=1;n.pos32))return c;if(e===41){if(s===0)break;s--}i++}return t===i||s!==0||(c.str=tt(n.slice(t,i)),c.pos=i,c.ok=!0),c},UN=q.unescapeAll,VN=function(n,t,o){var e,s,i=0,c=t,a={ok:!1,pos:0,lines:0,str:""};if(c>=o||(s=n.charCodeAt(c),s!==34&&s!==39&&s!==40))return a;for(c++,s===40&&(s=41);c"+$(s.content)+""};B.code_block=function(r,n,t,o,e){var s=r[n];return""+$(r[n].content)+` `};B.fence=function(r,n,t,o,e){var s=r[n],i=s.info?GN(s.info).trim():"",c="",a="",l,u,p,f,h;return i&&(p=i.split(/(\s+)/g),c=p[0],a=p.slice(2).join("")),t.highlight?l=t.highlight(s.content,c,a)||$(s.content):l=$(s.content),l.indexOf("[t.image?(n(),a("img",{key:0,src:t.image},null,8,M)):y("",!0),c("h4",null,p(t.title),1),c("p",{class:"newsSummary",innerHTML:t.summary},null,8,B),c("p",F,p(`${u.updatedTimestamp}, ${t.source}`),1)]),_:1},8,["onClick"])}const D=f(x,[["render",L],["__scopeId","data-v-95eced2f"]]);const U={components:{Loader:N,FullShelf:C,NewsItemBig:D},name:"News",data(){return{news:[]}},mounted(){fetch("/api/news/articles").then(e=>e.json()).then(e=>{this.news.length=0;for(const s of e){const t=this.news.findIndex(i=>i.source==s.source);t>=0?this.news[t].items.push(s):this.news.push({source:s.source,items:[s]})}})}},H=e=>(k("data-v-dc6d7520"),e=e(),I(),e),b={class:"padding-20"},A={class:"news"},J=H(()=>c("h1",null,"News",-1)),V={key:0,class:"fillPage"};function j(e,s,t,i,d,u){const _=r("Loader"),S=r("news-item-big"),v=r("full-shelf");return n(),a("div",b,[c("div",A,[J,d.news.length?y("",!0):(n(),a("div",V,[$(_)])),(n(!0),a(h,null,g(d.news,l=>(n(),m(v,{key:l.source,heading:l.source,class:"mt-10"},{default:w(()=>[(n(!0),a(h,null,g(l.items,o=>(n(),m(S,{key:o.url,href:o.link,image:o.image,source:o.source,summary:o.summary,title:o.title,updated:o.updated},null,8,["href","image","source","summary","title","updated"]))),128))]),_:2},1032,["heading"]))),128))])])}const E=f(U,[["render",j],["__scopeId","data-v-dc6d7520"]]);export{E as default}; +import{F as C}from"./FullShelf-e5484026.js";import{_ as f,C as T,e as r,o as n,f as m,w,c as a,d as y,a as c,t as p,L as N,g as $,F as h,j as g,m as k,n as I}from"./index-926884cb.js";const x={name:"NewsItemBig",components:{Card:T},methods:{redirect(){this.$router.push(this.href)}},computed:{updatedTimestamp(){const e=new Date(this.updated),s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${s[e.getUTCDay()]} ${e.getUTCDate()} ${t[e.getUTCMonth()]} ${e.getUTCFullYear()} ${e.getUTCHours()}.${e.getUTCMinutes()} GMT`}},props:{image:String,title:String,summary:String,href:String,updated:String,source:String}},M=["src"],B=["innerHTML"],F={class:"small"};function L(e,s,t,i,d,u){const _=r("Card");return n(),m(_,{class:"p-4 col-span-2 cursor-pointer","with-hover":"",onClick:u.redirect},{default:w(()=>[t.image?(n(),a("img",{key:0,src:t.image},null,8,M)):y("",!0),c("h4",null,p(t.title),1),c("p",{class:"newsSummary",innerHTML:t.summary},null,8,B),c("p",F,p(`${u.updatedTimestamp}, ${t.source}`),1)]),_:1},8,["onClick"])}const D=f(x,[["render",L],["__scopeId","data-v-95eced2f"]]);const U={components:{Loader:N,FullShelf:C,NewsItemBig:D},name:"News",data(){return{news:[]}},mounted(){fetch("/api/news/articles").then(e=>e.json()).then(e=>{this.news.length=0;for(const s of e){const t=this.news.findIndex(i=>i.source==s.source);t>=0?this.news[t].items.push(s):this.news.push({source:s.source,items:[s]})}})}},H=e=>(k("data-v-dc6d7520"),e=e(),I(),e),b={class:"padding-20"},A={class:"news"},J=H(()=>c("h1",null,"News",-1)),V={key:0,class:"fillPage"};function j(e,s,t,i,d,u){const _=r("Loader"),S=r("news-item-big"),v=r("full-shelf");return n(),a("div",b,[c("div",A,[J,d.news.length?y("",!0):(n(),a("div",V,[$(_)])),(n(!0),a(h,null,g(d.news,l=>(n(),m(v,{key:l.source,heading:l.source,class:"mt-10"},{default:w(()=>[(n(!0),a(h,null,g(l.items,o=>(n(),m(S,{key:o.url,href:o.link,image:o.image,source:o.source,summary:o.summary,title:o.title,updated:o.updated},null,8,["href","image","source","summary","title","updated"]))),128))]),_:2},1032,["heading"]))),128))])])}const E=f(U,[["render",j],["__scopeId","data-v-dc6d7520"]]);export{E as default}; diff --git a/src/ui/dist/assets/News-34726618.js.gz b/src/ui/dist/assets/News-34726618.js.gz new file mode 100644 index 000000000..d4ddfeb1e Binary files /dev/null and b/src/ui/dist/assets/News-34726618.js.gz differ diff --git a/src/ui/dist/assets/News-bc3272d2.js.gz b/src/ui/dist/assets/News-bc3272d2.js.gz deleted file mode 100644 index 742f247d1..000000000 Binary files a/src/ui/dist/assets/News-bc3272d2.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/NewsArticle-fbd5f10d.js b/src/ui/dist/assets/NewsArticle-5e58ed70.js similarity index 97% rename from src/ui/dist/assets/NewsArticle-fbd5f10d.js rename to src/ui/dist/assets/NewsArticle-5e58ed70.js index 697fadde2..54bed78b3 100644 --- a/src/ui/dist/assets/NewsArticle-fbd5f10d.js +++ b/src/ui/dist/assets/NewsArticle-5e58ed70.js @@ -1 +1 @@ -import{_ as p,o as i,c as _,a as r,L as m,e as d,f as h,t as a,b as y,d as u,O as g}from"./index-effe4d2f.js";const w={name:"Error",props:{msg:String},methods:{toggleSidebar(){this.$emit("toggleSidebar")}}},v={class:"error"},b=["innerHTML"];function L(s,t,o,l,e,c){return i(),_("div",v,[r("h1",{innerHTML:o.msg},null,8,b)])}const k=p(w,[["render",L],["__scopeId","data-v-99b2e9f2"]]);const x={name:"NewsArticle",components:{Loader:m,Error:k},data(){return{error:"",article:{},fullWidth:!1}},methods:{updateData(){fetch(`/api/news/articles/${this.$route.params.url}`).then(async s=>{if(s.status==404){this.error="This wouldn't have happened if you had clicked on the links we provided!
ヽ(ಠ_ಠ)ノ",setTimeout(this.updateData,1e3);return}if(s.status==400){window.open(await s.text()),this.$router.push("/news");return}if(s.status==200){if(this.article=await s.json(),this.article.headline==="N/A"){window.open(this.article.href),this.$router.push("/news");return}let t=this.article.body.split(" ").filter(e=>e.includes('href="/'));t=t.map(e=>e.split('href="')[1].split('"')[0]);const o=this.article.href.split("/")[2],l=t.map(e=>"https://"+o+e);for(const e in t){let c=l[e];fetch("/api/news/articles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:l[e]})}).then(async n=>{n.status==200?c=await n.text():console.error(await n.text()),this.article.body=this.article.body.replaceAll(t[e],c)})}return}this.error=s.statusText})}},mounted(){this.updateData()}},T={key:2,class:"padding-20 newsArticle"},N=["innerHTML"],H={class:"leading-tight headline"},M=["innerHTML"],A={key:0,class:"date"},E=["href"],S={key:1,class:"my-4"},W=["innerHTML"];function C(s,t,o,l,e,c){const n=d("Error"),f=d("Loader");return e.error?(i(),h(n,{key:0,msg:e.error},null,8,["msg"])):e.article.headline?(i(),_("div",T,[r("span",{class:"toggleWidth material-icons-round",onClick:t[0]||(t[0]=B=>e.fullWidth=!e.fullWidth)},a(e.fullWidth?"close_fullscreen":"open_in_full"),1),r("div",{class:g([{slim:!e.fullWidth},"wrapper"])},[r("h6",{class:"accentLink topic",innerHTML:e.article.topic},null,8,N),r("h1",H,a(e.article.headline),1),r("h4",{class:"standfirst",innerHTML:e.article.standfirst},null,8,M),e.article.date?(i(),_("h6",A,[y(a(e.article.date)+", ",1),r("a",{href:e.article.href},a(e.article.href),9,E)])):u("",!0),e.article.body?(i(),_("hr",S)):u("",!0),r("div",{class:"body leading-relaxed text-md",innerHTML:e.article.body},null,8,W)],2)])):(i(),h(f,{key:1}))}const O=p(x,[["render",C],["__scopeId","data-v-32bc12c0"]]);export{O as default}; +import{_ as p,o as i,c as _,a as r,L as m,e as d,f as h,t as a,b as y,d as u,O as g}from"./index-926884cb.js";const w={name:"Error",props:{msg:String},methods:{toggleSidebar(){this.$emit("toggleSidebar")}}},v={class:"error"},b=["innerHTML"];function L(s,t,o,l,e,c){return i(),_("div",v,[r("h1",{innerHTML:o.msg},null,8,b)])}const k=p(w,[["render",L],["__scopeId","data-v-99b2e9f2"]]);const x={name:"NewsArticle",components:{Loader:m,Error:k},data(){return{error:"",article:{},fullWidth:!1}},methods:{updateData(){fetch(`/api/news/articles/${this.$route.params.url}`).then(async s=>{if(s.status==404){this.error="This wouldn't have happened if you had clicked on the links we provided!
ヽ(ಠ_ಠ)ノ",setTimeout(this.updateData,1e3);return}if(s.status==400){window.open(await s.text()),this.$router.push("/news");return}if(s.status==200){if(this.article=await s.json(),this.article.headline==="N/A"){window.open(this.article.href),this.$router.push("/news");return}let t=this.article.body.split(" ").filter(e=>e.includes('href="/'));t=t.map(e=>e.split('href="')[1].split('"')[0]);const o=this.article.href.split("/")[2],l=t.map(e=>"https://"+o+e);for(const e in t){let c=l[e];fetch("/api/news/articles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:l[e]})}).then(async n=>{n.status==200?c=await n.text():console.error(await n.text()),this.article.body=this.article.body.replaceAll(t[e],c)})}return}this.error=s.statusText})}},mounted(){this.updateData()}},T={key:2,class:"padding-20 newsArticle"},N=["innerHTML"],H={class:"leading-tight headline"},M=["innerHTML"],A={key:0,class:"date"},E=["href"],S={key:1,class:"my-4"},W=["innerHTML"];function C(s,t,o,l,e,c){const n=d("Error"),f=d("Loader");return e.error?(i(),h(n,{key:0,msg:e.error},null,8,["msg"])):e.article.headline?(i(),_("div",T,[r("span",{class:"toggleWidth material-icons-round",onClick:t[0]||(t[0]=B=>e.fullWidth=!e.fullWidth)},a(e.fullWidth?"close_fullscreen":"open_in_full"),1),r("div",{class:g([{slim:!e.fullWidth},"wrapper"])},[r("h6",{class:"accentLink topic",innerHTML:e.article.topic},null,8,N),r("h1",H,a(e.article.headline),1),r("h4",{class:"standfirst",innerHTML:e.article.standfirst},null,8,M),e.article.date?(i(),_("h6",A,[y(a(e.article.date)+", ",1),r("a",{href:e.article.href},a(e.article.href),9,E)])):u("",!0),e.article.body?(i(),_("hr",S)):u("",!0),r("div",{class:"body leading-relaxed text-md",innerHTML:e.article.body},null,8,W)],2)])):(i(),h(f,{key:1}))}const O=p(x,[["render",C],["__scopeId","data-v-32bc12c0"]]);export{O as default}; diff --git a/src/ui/dist/assets/NewsArticle-5e58ed70.js.gz b/src/ui/dist/assets/NewsArticle-5e58ed70.js.gz new file mode 100644 index 000000000..b7c89cca9 Binary files /dev/null and b/src/ui/dist/assets/NewsArticle-5e58ed70.js.gz differ diff --git a/src/ui/dist/assets/NewsArticle-fbd5f10d.js.gz b/src/ui/dist/assets/NewsArticle-fbd5f10d.js.gz deleted file mode 100644 index e40c38698..000000000 Binary files a/src/ui/dist/assets/NewsArticle-fbd5f10d.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Normal-e24a5b2f.js b/src/ui/dist/assets/Normal-e24a5b2f.js deleted file mode 100644 index 257b1aca3..000000000 --- a/src/ui/dist/assets/Normal-e24a5b2f.js +++ /dev/null @@ -1 +0,0 @@ -import{i as n,B as i,k as p,D as m,o as c,f as l}from"./index-effe4d2f.js";import{T as d}from"./Template-e0818326.js";import"./PlaylistEntry-9c8199d3.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";import"./FactCard-e9e3d5c4.js";import"./gistClient-63edeca1.js";import"./Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js";const B=n({__name:"Normal",setup(u){const e=i(),s=p(),t=m(()=>e.params.id),r=async(a,o)=>{await fetch(`/api/playlists/${t.value}/tracks`,{method:"PUT",body:JSON.stringify({songOldIndex:a,songNewIndex:o})}),await s.fetchPlaylists()};return(a,o)=>(c(),l(d,{id:t.value,onRearrange:r},null,8,["id"]))}});export{B as default}; diff --git a/src/ui/dist/assets/Normal-e2c2cf32.js b/src/ui/dist/assets/Normal-e2c2cf32.js new file mode 100644 index 000000000..b8c863622 --- /dev/null +++ b/src/ui/dist/assets/Normal-e2c2cf32.js @@ -0,0 +1 @@ +import{i as n,B as i,k as p,D as m,o as c,f as l}from"./index-926884cb.js";import{T as d}from"./Template-d4a34a3b.js";import"./PlaylistEntry-c58cccb9.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";import"./FactCard-517d18b6.js";import"./gistClient-c2987d49.js";import"./Markdown.vue_vue_type_style_index_0_lang-863128c2.js";const B=n({__name:"Normal",setup(u){const e=i(),s=p(),t=m(()=>e.params.id),r=async(a,o)=>{await fetch(`/api/playlists/${t.value}/tracks`,{method:"PUT",body:JSON.stringify({songOldIndex:a,songNewIndex:o})}),await s.fetchPlaylists()};return(a,o)=>(c(),l(d,{id:t.value,onRearrange:r},null,8,["id"]))}});export{B as default}; diff --git a/src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js b/src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js similarity index 81% rename from src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js rename to src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js index 32b173a09..6b0e315a7 100644 --- a/src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js +++ b/src/ui/dist/assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js @@ -1 +1 @@ -import{P as i}from"./PlaylistEntry-9c8199d3.js";import{i as o,q as c,o as l,c as t,g as n,P as u,F as d,j as y,f,d as p}from"./index-effe4d2f.js";const k={key:0,ref:"playlist-scroll",class:"playlist"},B=o({__name:"Playlist",props:{playlist:{type:Object,required:!1},useQueue:{type:Boolean,required:!1,default:!1}},setup(s){const a=c(-1);return(v,g)=>s.playlist?(l(),t("div",k,[n(u),(l(!0),t(d,null,y(s.useQueue?s.playlist.queue:s.playlist.songs,(e,r)=>(l(),f(i,{id:"bplayer-entry-"+e.id,key:e.source,index:r,selected:a.value==e.id,song:e,"with-cover":"",onClick:m=>a.value==e.id?a.value=-1:a.value=e.id},null,8,["id","index","selected","song","onClick"]))),128))],512)):p("",!0)}});export{B as _}; +import{P as i}from"./PlaylistEntry-c58cccb9.js";import{i as o,q as c,o as l,c as t,g as n,P as u,F as d,j as y,f,d as p}from"./index-926884cb.js";const k={key:0,ref:"playlist-scroll",class:"playlist"},B=o({__name:"Playlist",props:{playlist:{type:Object,required:!1},useQueue:{type:Boolean,required:!1,default:!1}},setup(s){const a=c(-1);return(v,g)=>s.playlist?(l(),t("div",k,[n(u),(l(!0),t(d,null,y(s.useQueue?s.playlist.queue:s.playlist.songs,(e,r)=>(l(),f(i,{id:"bplayer-entry-"+e.id,key:e.source,index:r,selected:a.value==e.id,song:e,"with-cover":"",onClick:m=>a.value==e.id?a.value=-1:a.value=e.id},null,8,["id","index","selected","song","onClick"]))),128))],512)):p("",!0)}});export{B as _}; diff --git a/src/ui/dist/assets/PlaylistEntry-9c8199d3.js.gz b/src/ui/dist/assets/PlaylistEntry-9c8199d3.js.gz deleted file mode 100644 index 0b4b7ffa2..000000000 Binary files a/src/ui/dist/assets/PlaylistEntry-9c8199d3.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/PlaylistEntry-9c8199d3.js b/src/ui/dist/assets/PlaylistEntry-c58cccb9.js similarity index 97% rename from src/ui/dist/assets/PlaylistEntry-9c8199d3.js rename to src/ui/dist/assets/PlaylistEntry-c58cccb9.js index 3c456a393..ec68a5535 100644 --- a/src/ui/dist/assets/PlaylistEntry-9c8199d3.js +++ b/src/ui/dist/assets/PlaylistEntry-c58cccb9.js @@ -1 +1 @@ -import{i as L,k as J,D as p,q as B,e as S,bj as K,bY as W,o as u,c as g,r as X,g as o,w as s,b as d,F as T,j as U,f as A,t as k,d as I,u as b,ce as Q,cG as Z,c6 as ee,cr as te,y as oe,cw as ne,cH as se,c8 as ae,cz as ie,c9 as le,a as h,cI as ue,O,h as re,M as V,A as de,N as ce,cJ as ve,cd as ge,cK as fe,_ as me}from"./index-effe4d2f.js";import{_ as ye}from"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import{p as pe}from"./playerInPicture-af203fdf.js";const ke=L({__name:"SongContext",props:{song:{type:Object,required:!0},playlistId:{type:String,required:!1,default:""}},emits:["update","edit"],setup(t,{expose:N,emit:F}){const a=J(),$=p(()=>a.playlists.filter(n=>n.type==="classic")),e=t,m=F,v=p(()=>e.playlistId==-1),C=()=>{pe(e.song.artist,e.song.title,e.song.source)},f=async n=>{var i;n!=-1&&(await ee(n,e.song),te.addSuccess(e.song.title,`Added to ${(i=$.value.find(l=>l.id==n))==null?void 0:i.name}`,3e3),m("update"))},_=async()=>{const n=await oe(e.song.title,e.song.artist,e.song.cover);await f(n),m("update")},q=async()=>{await ne(e.playlistId,e.song.id),m("update")},P=B(null),y=B(null),E=()=>{y.value.visible?M():c()},M=()=>{y.value.hide()},c=()=>{const n=P.value.getBoundingClientRect(),i={top:n.height+n.top+window.scrollY,left:n.width+n.left+window.scrollX};y.value.show(i)};N({show:c,toggle:E,hide:M});const D=p(()=>({Soundcloud:`https://soundcloud.com/search?q=${e.song.artist} ${e.song.title}`,Audius:`https://audius.co/search/${e.song.artist} ${e.song.title}`,"Youtube Music":`https://music.youtube.com/search?q=${e.song.artist} ${e.song.title}`,Spotify:`https://open.spotify.com/search/${e.song.artist} ${e.song.title}`})),w=()=>{m("edit")},R=n=>{window.open(D.value[n]),w()},Y=()=>{const n=se(e.song);ae(n,`${e.song.artist} - ${e.song.title}`)};return(n,i)=>{const l=S("v-contextmenu-item"),j=S("v-contextmenu-submenu"),x=S("v-contextmenu-divider"),z=S("v-contextmenu"),H=K("contextmenu");return W((u(),g("div",{ref_key:"box",ref:P},[X(n.$slots,"default"),o(z,{ref_key:"contextmenu",ref:y},{default:s(()=>[o(l,{onClick:C},{default:s(()=>[d(" Preview ")]),_:1}),o(j,{title:"Find source"},{default:s(()=>[(u(!0),g(T,null,U(Object.keys(D.value),r=>(u(),A(l,{key:r,onClick:G=>R(r)},{default:s(()=>[d(k(r),1)]),_:2},1032,["onClick"]))),128))]),_:1}),o(x),o(l,{onClick:i[0]||(i[0]=r=>n.$emit("like"))},{default:s(()=>[d(k((t.song.favourite?"Remove from":"Save to")+" your Liked Songs"),1)]),_:1}),v.value?I("",!0):(u(),A(l,{key:0,onClick:q},{default:s(()=>[d(" Remove from this playlist ")]),_:1})),o(j,{title:"Add to playlist"},{default:s(()=>[o(l,{onClick:_},{default:s(()=>[d("Add to new playlist")]),_:1}),o(x),(u(!0),g(T,null,U($.value,r=>(u(),A(l,{key:r.id,onClick:G=>f(r.id)},{default:s(()=>[d(k(r.name),1)]),_:2},1032,["onClick"]))),128))]),_:1}),o(x),o(l,{onClick:w},{default:s(()=>[d(" Update Metadata ")]),_:1}),o(x),o(l,{onClick:i[1]||(i[1]=r=>b(Q)(t.song.id))},{default:s(()=>[d(" Download ")]),_:1}),o(l,{onClick:i[2]||(i[2]=r=>b(Z)(t.song.id))},{default:s(()=>[d(" Uncache ")]),_:1}),o(x),o(j,{title:"Export..."},{default:s(()=>[o(l,{onClick:i[3]||(i[3]=r=>Y())},{default:s(()=>[d(" to file ")]),_:1})]),_:1})]),_:1},512)])),[[H,void 0,"contextmenu"]])}}}),we={key:0,class:"index text-right downloading"},xe={key:2,class:"cover"},he={class:"artist-title"},Se={class:"title"},be={class:"artist"},$e={key:3,class:"album"},Ce={class:"duration text-center"},_e=L({__name:"PlaylistEntry",props:{song:{type:Object,required:!0},index:{type:Number,required:!0},withCover:{type:Boolean,required:!1,default:!1},withAlbum:{type:Boolean,required:!1,default:!1},withMore:{type:Boolean,required:!1,default:!1},selected:{type:Boolean,required:!1,default:!1},playlistId:{type:String,required:!1,default:null},artist:{type:String,required:!1,default:null}},emits:["update"],setup(t,{emit:N}){const F=ie(),a=t,$=N,e=le(),m=p(()=>a.song.id==e.song.id),v=B(!1),C=()=>{a.song.favourite=!a.song.favourite,fe(a.song.id,a.song.favourite)},f=p(()=>a.playlistId==null?e.playlist.id:a.playlistId),_=async()=>{if(f.value=="track"){e.loadPlaylist("track",a.song.id);return}if(f.value=="artist"){await e.loadPlaylist("artist",a.artist),e.loadSong(null,a.index);return}e.loadSong(f.value,a.index)},q=B(null),P=()=>{q.value.show()},y=()=>{$("update")},E=p(()=>F.isSongDownloading(a.song.id));return(M,c)=>{const D=S("router-link");return u(),A(ke,{ref:"ctxMenu",liked:t.song.favourite,playlistId:f.value,song:t.song,onEdit:P,onLike:C,onUpdate:y},{default:s(()=>[o(ye,{ref_key:"updatePopup",ref:q,song:t.song,onUpdate:c[0]||(c[0]=w=>M.$emit("update"))},null,8,["song"]),h("div",{class:O([{playing:m.value,selected:t.selected,hovering:v.value,withCover:t.withCover,withAlbum:t.withAlbum,withMore:t.withMore},"playlist-entry"]),onDblclick:_,onMouseenter:c[1]||(c[1]=w=>v.value=!0),onMouseleave:c[2]||(c[2]=w=>v.value=!1)},[E.value?(u(),g("div",we,[o(ue)])):(u(),g("div",{key:1,class:O([{"material-symbols-rounded":v.value},"index text-right"]),onClick:_},k(v.value?"play_arrow":t.index+1),3)),t.withCover?(u(),g("div",xe,[o(re,{src:t.song.cover,type:"track"},null,8,["src"])])):I("",!0),h("div",he,[h("span",Se,[o(D,{to:`/track/${b(de)(t.song.id)}`,class:"linkOnHover"},{default:s(()=>[o(V,{text:t.song.title},null,8,["text"])]),_:1},8,["to"])]),h("span",be,[o(ce,{artist:t.song.artist,class:"text-muted text-xs"},null,8,["artist"])])]),t.withAlbum&&!b(ve)?(u(),g("div",$e,[o(V,{text:t.song.album},null,8,["text"])])):I("",!0),t.selected||v.value||t.song.favourite?(u(),g("div",{key:4,class:O([{favourite:t.song.favourite},"favourite-icon icon text-right material-symbols-rounded"]),onClick:C},k(t.song.favourite?"favorite":"heart_plus"),3)):I("",!0),h("div",Ce,k(b(ge)(t.song.duration)),1)],34)]),_:1},8,["liked","playlistId","song"])}}});const De=me(_e,[["__scopeId","data-v-2189838e"]]);export{De as P}; +import{i as L,k as J,D as p,q as B,e as S,bj as K,bY as W,o as u,c as g,r as X,g as o,w as s,b as d,F as T,j as U,f as A,t as k,d as I,u as b,ce as Q,cG as Z,c6 as ee,cr as te,y as oe,cw as ne,cH as se,c8 as ae,cz as ie,c9 as le,a as h,cI as ue,O,h as re,M as V,A as de,N as ce,cJ as ve,cd as ge,cK as fe,_ as me}from"./index-926884cb.js";import{_ as ye}from"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import{p as pe}from"./playerInPicture-af203fdf.js";const ke=L({__name:"SongContext",props:{song:{type:Object,required:!0},playlistId:{type:String,required:!1,default:""}},emits:["update","edit"],setup(t,{expose:N,emit:F}){const a=J(),$=p(()=>a.playlists.filter(n=>n.type==="classic")),e=t,m=F,v=p(()=>e.playlistId==-1),C=()=>{pe(e.song.artist,e.song.title,e.song.source)},f=async n=>{var i;n!=-1&&(await ee(n,e.song),te.addSuccess(e.song.title,`Added to ${(i=$.value.find(l=>l.id==n))==null?void 0:i.name}`,3e3),m("update"))},_=async()=>{const n=await oe(e.song.title,e.song.artist,e.song.cover);await f(n),m("update")},q=async()=>{await ne(e.playlistId,e.song.id),m("update")},P=B(null),y=B(null),E=()=>{y.value.visible?M():c()},M=()=>{y.value.hide()},c=()=>{const n=P.value.getBoundingClientRect(),i={top:n.height+n.top+window.scrollY,left:n.width+n.left+window.scrollX};y.value.show(i)};N({show:c,toggle:E,hide:M});const D=p(()=>({Soundcloud:`https://soundcloud.com/search?q=${e.song.artist} ${e.song.title}`,Audius:`https://audius.co/search/${e.song.artist} ${e.song.title}`,"Youtube Music":`https://music.youtube.com/search?q=${e.song.artist} ${e.song.title}`,Spotify:`https://open.spotify.com/search/${e.song.artist} ${e.song.title}`})),w=()=>{m("edit")},R=n=>{window.open(D.value[n]),w()},Y=()=>{const n=se(e.song);ae(n,`${e.song.artist} - ${e.song.title}`)};return(n,i)=>{const l=S("v-contextmenu-item"),j=S("v-contextmenu-submenu"),x=S("v-contextmenu-divider"),z=S("v-contextmenu"),H=K("contextmenu");return W((u(),g("div",{ref_key:"box",ref:P},[X(n.$slots,"default"),o(z,{ref_key:"contextmenu",ref:y},{default:s(()=>[o(l,{onClick:C},{default:s(()=>[d(" Preview ")]),_:1}),o(j,{title:"Find source"},{default:s(()=>[(u(!0),g(T,null,U(Object.keys(D.value),r=>(u(),A(l,{key:r,onClick:G=>R(r)},{default:s(()=>[d(k(r),1)]),_:2},1032,["onClick"]))),128))]),_:1}),o(x),o(l,{onClick:i[0]||(i[0]=r=>n.$emit("like"))},{default:s(()=>[d(k((t.song.favourite?"Remove from":"Save to")+" your Liked Songs"),1)]),_:1}),v.value?I("",!0):(u(),A(l,{key:0,onClick:q},{default:s(()=>[d(" Remove from this playlist ")]),_:1})),o(j,{title:"Add to playlist"},{default:s(()=>[o(l,{onClick:_},{default:s(()=>[d("Add to new playlist")]),_:1}),o(x),(u(!0),g(T,null,U($.value,r=>(u(),A(l,{key:r.id,onClick:G=>f(r.id)},{default:s(()=>[d(k(r.name),1)]),_:2},1032,["onClick"]))),128))]),_:1}),o(x),o(l,{onClick:w},{default:s(()=>[d(" Update Metadata ")]),_:1}),o(x),o(l,{onClick:i[1]||(i[1]=r=>b(Q)(t.song.id))},{default:s(()=>[d(" Download ")]),_:1}),o(l,{onClick:i[2]||(i[2]=r=>b(Z)(t.song.id))},{default:s(()=>[d(" Uncache ")]),_:1}),o(x),o(j,{title:"Export..."},{default:s(()=>[o(l,{onClick:i[3]||(i[3]=r=>Y())},{default:s(()=>[d(" to file ")]),_:1})]),_:1})]),_:1},512)])),[[H,void 0,"contextmenu"]])}}}),we={key:0,class:"index text-right downloading"},xe={key:2,class:"cover"},he={class:"artist-title"},Se={class:"title"},be={class:"artist"},$e={key:3,class:"album"},Ce={class:"duration text-center"},_e=L({__name:"PlaylistEntry",props:{song:{type:Object,required:!0},index:{type:Number,required:!0},withCover:{type:Boolean,required:!1,default:!1},withAlbum:{type:Boolean,required:!1,default:!1},withMore:{type:Boolean,required:!1,default:!1},selected:{type:Boolean,required:!1,default:!1},playlistId:{type:String,required:!1,default:null},artist:{type:String,required:!1,default:null}},emits:["update"],setup(t,{emit:N}){const F=ie(),a=t,$=N,e=le(),m=p(()=>a.song.id==e.song.id),v=B(!1),C=()=>{a.song.favourite=!a.song.favourite,fe(a.song.id,a.song.favourite)},f=p(()=>a.playlistId==null?e.playlist.id:a.playlistId),_=async()=>{if(f.value=="track"){e.loadPlaylist("track",a.song.id);return}if(f.value=="artist"){await e.loadPlaylist("artist",a.artist),e.loadSong(null,a.index);return}e.loadSong(f.value,a.index)},q=B(null),P=()=>{q.value.show()},y=()=>{$("update")},E=p(()=>F.isSongDownloading(a.song.id));return(M,c)=>{const D=S("router-link");return u(),A(ke,{ref:"ctxMenu",liked:t.song.favourite,playlistId:f.value,song:t.song,onEdit:P,onLike:C,onUpdate:y},{default:s(()=>[o(ye,{ref_key:"updatePopup",ref:q,song:t.song,onUpdate:c[0]||(c[0]=w=>M.$emit("update"))},null,8,["song"]),h("div",{class:O([{playing:m.value,selected:t.selected,hovering:v.value,withCover:t.withCover,withAlbum:t.withAlbum,withMore:t.withMore},"playlist-entry"]),onDblclick:_,onMouseenter:c[1]||(c[1]=w=>v.value=!0),onMouseleave:c[2]||(c[2]=w=>v.value=!1)},[E.value?(u(),g("div",we,[o(ue)])):(u(),g("div",{key:1,class:O([{"material-symbols-rounded":v.value},"index text-right"]),onClick:_},k(v.value?"play_arrow":t.index+1),3)),t.withCover?(u(),g("div",xe,[o(re,{src:t.song.cover,type:"track"},null,8,["src"])])):I("",!0),h("div",he,[h("span",Se,[o(D,{to:`/track/${b(de)(t.song.id)}`,class:"linkOnHover"},{default:s(()=>[o(V,{text:t.song.title},null,8,["text"])]),_:1},8,["to"])]),h("span",be,[o(ce,{artist:t.song.artist,class:"text-muted text-xs"},null,8,["artist"])])]),t.withAlbum&&!b(ve)?(u(),g("div",$e,[o(V,{text:t.song.album},null,8,["text"])])):I("",!0),t.selected||v.value||t.song.favourite?(u(),g("div",{key:4,class:O([{favourite:t.song.favourite},"favourite-icon icon text-right material-symbols-rounded"]),onClick:C},k(t.song.favourite?"favorite":"heart_plus"),3)):I("",!0),h("div",Ce,k(b(ge)(t.song.duration)),1)],34)]),_:1},8,["liked","playlistId","song"])}}});const De=me(_e,[["__scopeId","data-v-2189838e"]]);export{De as P}; diff --git a/src/ui/dist/assets/PlaylistEntry-c58cccb9.js.gz b/src/ui/dist/assets/PlaylistEntry-c58cccb9.js.gz new file mode 100644 index 000000000..76adc7b59 Binary files /dev/null and b/src/ui/dist/assets/PlaylistEntry-c58cccb9.js.gz differ diff --git a/src/ui/dist/assets/PlaylistItem-8e935ec4.js b/src/ui/dist/assets/PlaylistItem-705d9df8.js similarity index 97% rename from src/ui/dist/assets/PlaylistItem-8e935ec4.js rename to src/ui/dist/assets/PlaylistItem-705d9df8.js index 631d7c786..aed257f1b 100644 --- a/src/ui/dist/assets/PlaylistItem-8e935ec4.js +++ b/src/ui/dist/assets/PlaylistItem-705d9df8.js @@ -1 +1 @@ -import{i as k,k as x,q as u,o as y,f as v,w as P,g as p,cE as A,u as I,cl as T,x as B,cF as j,c4 as D,a as r,c6 as M,y as N,_ as q,C as E,h as O,p as V,e as _,d as g,c as F,t as b}from"./index-effe4d2f.js";import{p as H}from"./playerInPicture-af203fdf.js";const L=r("br",null,null,-1),W=k({__name:"ImportSpotifyPlaylist",props:{playlist:{type:Object,required:!0}},setup(n,{expose:c}){const e=x(),l=n,d=u([{name:"playlist",type:"dropdown",required:!0,value:null,options:e.playlistsAsDropdown}]),o=u(null),i=u(null),s=u([]),m=async()=>{if(o.value.load(),s.value.length==0){const t=await fetch(`/api/spotify/playlists/${l.playlist.id}`);s.value=await t.json()}o.value.show()},f=()=>{H("Spotify Playlist",l.playlist.name,l.playlist.href)},h=async t=>{if(t==="new"){const a=await N("classic",l.playlist.name,l.playlist.description,l.playlist.cover);return d.value[0].options=e.playlistsAsDropdown,d.value[0].value=a,a}return t},w=async(t,a=null)=>{s.value[t].added||(a??(a=i.value.toObject().playlist),a=await h(a),await M(a,s.value[t]),s.value[t].added=!0)},S=async()=>{let t=i.value.toObject().playlist;t=await h(t),s.value.forEach((a,C)=>{w(C,t)})};return c({show:m}),(t,a)=>(y(),v(D,{ref_key:"modal",ref:o,submit:{label:"Add All",icon:"add"},name:"Import Playlist",onClose:a[0]||(a[0]=C=>t.$emit("close")),onSubmit:S},{default:P(()=>[p(A,{cover:n.playlist.cover,icons:[{name:"share",onClick:()=>I(T)(n.playlist.href)},{name:"play_arrow",onClick:f}],title:n.playlist.name},null,8,["cover","icons","title"]),p(B,{ref_key:"form",ref:i,options:d.value},null,8,["options"]),L,p(j,{songs:s.value,onAdd:w},null,8,["songs"])]),_:1},512))}});const z={components:{Card:E,Cover:O,AddPlaylistToPlaylist:W},name:"PlaylistItem",methods:{parseCover:V,redirect(){this.spotify?this.$refs.import.show():this.$router.push(this.href)}},props:{cover:String,title:String,description:String,href:String,spotify:Boolean,id:String,type:{type:String,default:"classic"}}},G={class:"title"},J={key:0,class:"material-symbols-rounded"},K=["innerHTML"];function Q(n,c,e,l,d,o){const i=_("add-playlist-to-playlist"),s=_("Cover"),m=_("Card");return y(),v(m,{class:"wrapper drop-shadow-md","with-hover":""},{default:P(()=>[e.spotify?(y(),v(i,{key:0,ref:"import",playlist:{cover:e.cover,name:e.title,description:e.description,id:e.id,href:e.href}},null,8,["playlist"])):g("",!0),r("div",{class:"item",onClick:c[0]||(c[0]=(...f)=>o.redirect&&o.redirect(...f))},[p(s,{src:o.parseCover(e.cover),type:"playlist",name:e.title},null,8,["src","name"]),r("div",G,[e.type!="classic"?(y(),F("span",J,b(e.type=="smart"?"neurology":"bolt"),1)):g("",!0),r("h4",null,b(e.title),1)]),r("p",{class:"text-muted text-xs hideIfMobile",innerHTML:e.description},null,8,K)])]),_:1})}const X=q(z,[["render",Q],["__scopeId","data-v-254ebb4a"]]);export{X as P}; +import{i as k,k as x,q as u,o as y,f as v,w as P,g as p,cE as A,u as I,cl as T,x as B,cF as j,c4 as D,a as r,c6 as M,y as N,_ as q,C as E,h as O,p as V,e as _,d as g,c as F,t as b}from"./index-926884cb.js";import{p as H}from"./playerInPicture-af203fdf.js";const L=r("br",null,null,-1),W=k({__name:"ImportSpotifyPlaylist",props:{playlist:{type:Object,required:!0}},setup(n,{expose:c}){const e=x(),l=n,d=u([{name:"playlist",type:"dropdown",required:!0,value:null,options:e.playlistsAsDropdown}]),o=u(null),i=u(null),s=u([]),m=async()=>{if(o.value.load(),s.value.length==0){const t=await fetch(`/api/spotify/playlists/${l.playlist.id}`);s.value=await t.json()}o.value.show()},f=()=>{H("Spotify Playlist",l.playlist.name,l.playlist.href)},h=async t=>{if(t==="new"){const a=await N("classic",l.playlist.name,l.playlist.description,l.playlist.cover);return d.value[0].options=e.playlistsAsDropdown,d.value[0].value=a,a}return t},w=async(t,a=null)=>{s.value[t].added||(a??(a=i.value.toObject().playlist),a=await h(a),await M(a,s.value[t]),s.value[t].added=!0)},S=async()=>{let t=i.value.toObject().playlist;t=await h(t),s.value.forEach((a,C)=>{w(C,t)})};return c({show:m}),(t,a)=>(y(),v(D,{ref_key:"modal",ref:o,submit:{label:"Add All",icon:"add"},name:"Import Playlist",onClose:a[0]||(a[0]=C=>t.$emit("close")),onSubmit:S},{default:P(()=>[p(A,{cover:n.playlist.cover,icons:[{name:"share",onClick:()=>I(T)(n.playlist.href)},{name:"play_arrow",onClick:f}],title:n.playlist.name},null,8,["cover","icons","title"]),p(B,{ref_key:"form",ref:i,options:d.value},null,8,["options"]),L,p(j,{songs:s.value,onAdd:w},null,8,["songs"])]),_:1},512))}});const z={components:{Card:E,Cover:O,AddPlaylistToPlaylist:W},name:"PlaylistItem",methods:{parseCover:V,redirect(){this.spotify?this.$refs.import.show():this.$router.push(this.href)}},props:{cover:String,title:String,description:String,href:String,spotify:Boolean,id:String,type:{type:String,default:"classic"}}},G={class:"title"},J={key:0,class:"material-symbols-rounded"},K=["innerHTML"];function Q(n,c,e,l,d,o){const i=_("add-playlist-to-playlist"),s=_("Cover"),m=_("Card");return y(),v(m,{class:"wrapper drop-shadow-md","with-hover":""},{default:P(()=>[e.spotify?(y(),v(i,{key:0,ref:"import",playlist:{cover:e.cover,name:e.title,description:e.description,id:e.id,href:e.href}},null,8,["playlist"])):g("",!0),r("div",{class:"item",onClick:c[0]||(c[0]=(...f)=>o.redirect&&o.redirect(...f))},[p(s,{src:o.parseCover(e.cover),type:"playlist",name:e.title},null,8,["src","name"]),r("div",G,[e.type!="classic"?(y(),F("span",J,b(e.type=="smart"?"neurology":"bolt"),1)):g("",!0),r("h4",null,b(e.title),1)]),r("p",{class:"text-muted text-xs hideIfMobile",innerHTML:e.description},null,8,K)])]),_:1})}const X=q(z,[["render",Q],["__scopeId","data-v-254ebb4a"]]);export{X as P}; diff --git a/src/ui/dist/assets/PlaylistItem-705d9df8.js.gz b/src/ui/dist/assets/PlaylistItem-705d9df8.js.gz new file mode 100644 index 000000000..89f2aa840 Binary files /dev/null and b/src/ui/dist/assets/PlaylistItem-705d9df8.js.gz differ diff --git a/src/ui/dist/assets/PlaylistItem-8e935ec4.js.gz b/src/ui/dist/assets/PlaylistItem-8e935ec4.js.gz deleted file mode 100644 index 35c2da347..000000000 Binary files a/src/ui/dist/assets/PlaylistItem-8e935ec4.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Playlists-45ff5629.js b/src/ui/dist/assets/Playlists-26e178b4.js similarity index 79% rename from src/ui/dist/assets/Playlists-45ff5629.js rename to src/ui/dist/assets/Playlists-26e178b4.js index 97c388f5c..7e3b0bc79 100644 --- a/src/ui/dist/assets/Playlists-45ff5629.js +++ b/src/ui/dist/assets/Playlists-26e178b4.js @@ -1 +1 @@ -import{F as c}from"./FullShelf-94271883.js";import{P as p}from"./PlaylistItem-8e935ec4.js";import{C as y}from"./CollectionHeader-b8a4afb0.js";import{i as h,k as v,D as m,q as g,o as e,c as r,g as k,a as P,f as a,w as n,F as d,j as f,d as _,_ as x}from"./index-effe4d2f.js";import"./playerInPicture-af203fdf.js";const C={class:"padding-20"},F={class:"playlists"},B=h({__name:"Playlists",setup(S){const u=v(),l=m(()=>u.playlists),o=g([]);return fetch("/api/spotify/playlists").then(s=>s.json()).then(s=>{o.value=s}),(s,I)=>(e(),r("div",C,[k(y),P("div",F,[l.value.length?(e(),a(c,{key:0,heading:"Playlists"},{default:n(()=>[(e(!0),r(d,null,f(l.value,(t,i)=>(e(),a(p,{key:i,href:t.href,cover:t.cover,description:t.description,title:t.name,type:t.type,spotify:!1},null,8,["href","cover","description","title","type"]))),128))]),_:1})):_("",!0),o.value.length?(e(),a(c,{key:1,heading:"Import From Spotify"},{default:n(()=>[(e(!0),r(d,null,f(o.value,(t,i)=>(e(),a(p,{key:i,cover:t.cover,description:t.description,title:t.name,id:t.id,spotify:!0,href:`https://open.spotify.com/playlist/${t.id}`},null,8,["cover","description","title","id","href"]))),128))]),_:1})):_("",!0)])]))}});const q=x(B,[["__scopeId","data-v-8dcf0184"]]);export{q as default}; +import{F as c}from"./FullShelf-e5484026.js";import{P as p}from"./PlaylistItem-705d9df8.js";import{C as y}from"./CollectionHeader-55cbbce2.js";import{i as h,k as v,D as m,q as g,o as e,c as r,g as k,a as P,f as a,w as n,F as d,j as f,d as _,_ as x}from"./index-926884cb.js";import"./playerInPicture-af203fdf.js";const C={class:"padding-20"},F={class:"playlists"},B=h({__name:"Playlists",setup(S){const u=v(),l=m(()=>u.playlists),o=g([]);return fetch("/api/spotify/playlists").then(s=>s.json()).then(s=>{o.value=s}),(s,I)=>(e(),r("div",C,[k(y),P("div",F,[l.value.length?(e(),a(c,{key:0,heading:"Playlists"},{default:n(()=>[(e(!0),r(d,null,f(l.value,(t,i)=>(e(),a(p,{key:i,href:t.href,cover:t.cover,description:t.description,title:t.name,type:t.type,spotify:!1},null,8,["href","cover","description","title","type"]))),128))]),_:1})):_("",!0),o.value.length?(e(),a(c,{key:1,heading:"Import From Spotify"},{default:n(()=>[(e(!0),r(d,null,f(o.value,(t,i)=>(e(),a(p,{key:i,cover:t.cover,description:t.description,title:t.name,id:t.id,spotify:!0,href:`https://open.spotify.com/playlist/${t.id}`},null,8,["cover","description","title","id","href"]))),128))]),_:1})):_("",!0)])]))}});const q=x(B,[["__scopeId","data-v-8dcf0184"]]);export{q as default}; diff --git a/src/ui/dist/assets/Playlists-26e178b4.js.gz b/src/ui/dist/assets/Playlists-26e178b4.js.gz new file mode 100644 index 000000000..7a5549dc0 Binary files /dev/null and b/src/ui/dist/assets/Playlists-26e178b4.js.gz differ diff --git a/src/ui/dist/assets/Playlists-45ff5629.js.gz b/src/ui/dist/assets/Playlists-45ff5629.js.gz deleted file mode 100644 index 63a4dd720..000000000 Binary files a/src/ui/dist/assets/Playlists-45ff5629.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Releases-d2d1819d.js.gz b/src/ui/dist/assets/Releases-d2d1819d.js.gz deleted file mode 100644 index 09f253885..000000000 Binary files a/src/ui/dist/assets/Releases-d2d1819d.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Releases-d2d1819d.js b/src/ui/dist/assets/Releases-dd0e8dec.js similarity index 98% rename from src/ui/dist/assets/Releases-d2d1819d.js rename to src/ui/dist/assets/Releases-dd0e8dec.js index c611ef0b1..021b58836 100644 --- a/src/ui/dist/assets/Releases-d2d1819d.js +++ b/src/ui/dist/assets/Releases-dd0e8dec.js @@ -1 +1 @@ -import{i as K,q as p,s as Q,G as w,D as T,E as z,o as u,c,g as m,L as G,d,a as s,f as B,K as H,h as Y,M as A,N as F,t as C,J as x,w as U,O as y,b as W,F as L,j as X,C as Z,m as ee,n as te,Q as se,_ as le}from"./index-effe4d2f.js";import{C as ae}from"./CollectionHeader-b8a4afb0.js";import{p as oe}from"./playerInPicture-af203fdf.js";const I=g=>(ee("data-v-65db0b15"),g=g(),te(),g),re={key:0,class:"fill-page"},ne={class:"p-4 overflow-hidden h-full"},ue={class:"releases w-full"},ie={class:"current"},ce={key:0,class:"w-max flex flex-col gap-4"},de={class:"flex justify-between w-full items-center"},ve={class:"flex gap-4 items-center"},pe={class:"info"},me={key:0},fe={key:1,class:"m-0 text-muted text-sm"},_e=["title"],he={class:"actions"},xe={key:1,class:"h-96 flex flex-col justify-center"},ye=I(()=>s("span",{class:"italic text-sm text-muted"}," Nothing to preview ",-1)),ge=[ye],ke={class:"flex items-center gap-4 w-max"},we={key:0,class:"flex justify-end mb-2"},Ce=I(()=>s("span",{class:"material-symbols-rounded"}," done_all ",-1)),be={class:"entries overflow-y-auto flex flex-col gap-2"},De=["onClick"],$e={class:"info overflow-hidden"},Re={class:"m-0 overflow-hidden"},Se={class:"m-0 overflow-hidden text-sm text-muted"},Me=["title"],Ie=["onClick"],Ee=["onClick"],Ne=["onClick"],qe={key:1,class:"flex flex-col items-center"},je=I(()=>s("span",{class:"italic text-sm text-muted"}," No releases in this queue ",-1)),Pe=[je],S="reap.releases.seen",M="reap.releases.remember",Te=K({__name:"Releases",setup(g){const b=p(!0),r=p("unseen"),E=t=>{const e=new Date(t),o=Math.floor((Date.now()-e.getTime())/1e3/60/60/24);return o==0?"Today":o==1?"Yesterday":o<100?`${o} days ago`:o<365?`${Math.floor(o/30)} months ago`:e.toLocaleDateString()},O=Q();w(r,t=>{const e={queue:t};O.replace({query:e})});const _=T(()=>{switch(r.value){case"unseen":return h.value.filter(t=>!v.value.includes(t.url));case"out-today":return V.value;case"watching":return i.value;case"all":return h.value;case"seen":return v.value.map(t=>h.value.find(e=>e.url==t)).filter(t=>t)}}),D=t=>{oe(t.artist,t.title,t.url)},n=p(null),N=p(null),$=new Date,h=p([]),q=t=>{n.value=t,se(()=>{var e;(e=N.value)==null||e.show()})},V=T(()=>h.value.filter(t=>{const e=new Date(t.releaseDate);return $.getMonth()==e.getMonth()&&$.getDate()==e.getDate()&&$.getFullYear()==e.getFullYear()})),j=t=>{i.value.find(e=>e.url==t.url)||i.value.push(t)},P=t=>{i.value=i.value.filter(e=>e.url!=t.url)},R=t=>{var o;let e=!1;t.url===((o=a.value)==null?void 0:o.url)&&(e=!0),v.value.includes(t.url)||v.value.push(t.url),e&&D(a.value)},v=p([]),i=p([]),a=p(null);return z(async()=>{var e;b.value=!0;const t=await fetch("/api/releases");h.value=await t.json(),b.value=!1,v.value=((e=localStorage.getItem(S))==null?void 0:e.split(","))??[],v.value=v.value.filter(o=>h.value.find(k=>k.url==o)),i.value=JSON.parse(localStorage.getItem(M)??"[]")}),w(_,t=>{a.value=t[0]??null}),w(v,t=>{t.length?localStorage.setItem(S,t.join(",")):localStorage.removeItem(S)},{deep:!0}),w(i,t=>{t.length?localStorage.setItem(M,JSON.stringify(t)):localStorage.removeItem(M)},{deep:!0}),(t,e)=>{var o,k;return u(),c(L,null,[b.value?(u(),c("div",re,[m(G)])):d("",!0),s("div",ne,[n.value?(u(),B(H,{key:0,id:(o=n.value.url)==null?void 0:o.replace("https://open.spotify.com/album/",""),ref_key:"addReleaseRef",ref:N,album:{id:(k=n.value.url)==null?void 0:k.replace("https://open.spotify.com/album/",""),title:n.value.title,artist:n.value.artists.join(", "),cover:n.value.cover,href:n.value.url,releaseDate:n.value.releaseDate},artist:n.value.artist,cover:n.value.cover,href:n.value.url,title:n.value.title},null,8,["id","album","artist","cover","href","title"])):d("",!0),m(ae),s("div",ue,[s("div",ie,[a.value?(u(),c("div",ce,[a.value?(u(),B(Y,{key:0,class:"rounded-3xl",src:a.value.cover},null,8,["src"])):d("",!0),s("div",de,[s("div",ve,[s("span",{class:"preview material-symbols-rounded ms-fill text-5xl cursor-pointer",onClick:e[0]||(e[0]=l=>D(a.value))}," play_circle "),s("div",pe,[a.value?(u(),c("h3",me,[m(A,{text:a.value.title},null,8,["text"])])):d("",!0),a.value?(u(),c("p",fe,[m(F,{artist:a.value.artist},null,8,["artist"])])):d("",!0),a.value?(u(),c("p",{key:2,class:"m-0 text-muted text-xs",title:a.value.releaseDate},C(E(a.value.releaseDate)),9,_e)):d("",!0)])]),s("div",he,[s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[1]||(e[1]=x(l=>q(a.value),["stop"])),title:"Add to playlist"}," add "),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[2]||(e[2]=x(l=>i.value.find(f=>f.url===a.value.url)?P(a.value):j(a.value),["stop"])),title:"Pin"},C(i.value.find(l=>l.url===a.value.url)?"playlist_remove":"push_pin"),1),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[3]||(e[3]=x(l=>R(a.value),["stop"])),title:"Mark as seen"}," done_all ")])])])):(u(),c("div",xe,ge))]),m(Z,{class:"queue w-full p-2 h-full flex flex-col gap-2 relative"},{default:U(()=>[s("div",ke,[s("h5",{class:y(["cursor-pointer",{selected:r.value=="unseen"}]),onClick:e[4]||(e[4]=l=>r.value="unseen")}," Unseen ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="out-today"}]),onClick:e[5]||(e[5]=l=>r.value="out-today")}," Out Today ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="watching"}]),onClick:e[6]||(e[6]=l=>r.value="watching")}," Pinned ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="seen"}]),onClick:e[7]||(e[7]=l=>r.value="seen")}," Seen ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="all"}]),onClick:e[8]||(e[8]=l=>r.value="all")}," All ",2)]),r.value==="unseen"&&_.value.length?(u(),c("div",we,[s("span",{class:"cursor-pointer text-sm text-muted hover:text-primary flex items-center gap-2",onClick:e[9]||(e[9]=l=>_.value.forEach(R))},[W(" Mark all as seen "),Ce])])):d("",!0),s("div",be,[_.value.length?(u(!0),c(L,{key:0},X(_.value,l=>(u(),c("div",{class:"entry",onClick:f=>{a.value=l,D(l)}},[m(Y,{class:"rounded-xl",src:l.cover},null,8,["src"]),s("div",$e,[s("p",Re,[m(A,{text:l.title},null,8,["text"])]),s("p",Se,[m(F,{artist:l.artist},null,8,["artist"])])]),s("p",{class:"text-sm m-0 text-muted",title:l.releaseDate},C(E(l.releaseDate)),9,Me),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>q(l),["stop"]),title:"Add to playlist"}," add ",8,Ie),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>i.value.find(J=>J.url===l.url)?P(l):j(l),["stop"]),title:"Pin"},C(i.value.find(f=>f.url===l.url)?"playlist_remove":"push_pin"),9,Ee),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>R(l),["stop"]),title:"Mark as seen"}," done_all ",8,Ne)],8,De))),256)):d("",!0)]),_.value.length?d("",!0):(u(),c("div",qe,Pe))]),_:1})])])],64)}}});const Fe=le(Te,[["__scopeId","data-v-65db0b15"]]);export{Fe as default}; +import{i as K,q as p,s as Q,G as w,D as T,E as z,o as u,c,g as m,L as G,d,a as s,f as B,K as H,h as Y,M as A,N as F,t as C,J as x,w as U,O as y,b as W,F as L,j as X,C as Z,m as ee,n as te,Q as se,_ as le}from"./index-926884cb.js";import{C as ae}from"./CollectionHeader-55cbbce2.js";import{p as oe}from"./playerInPicture-af203fdf.js";const I=g=>(ee("data-v-65db0b15"),g=g(),te(),g),re={key:0,class:"fill-page"},ne={class:"p-4 overflow-hidden h-full"},ue={class:"releases w-full"},ie={class:"current"},ce={key:0,class:"w-max flex flex-col gap-4"},de={class:"flex justify-between w-full items-center"},ve={class:"flex gap-4 items-center"},pe={class:"info"},me={key:0},fe={key:1,class:"m-0 text-muted text-sm"},_e=["title"],he={class:"actions"},xe={key:1,class:"h-96 flex flex-col justify-center"},ye=I(()=>s("span",{class:"italic text-sm text-muted"}," Nothing to preview ",-1)),ge=[ye],ke={class:"flex items-center gap-4 w-max"},we={key:0,class:"flex justify-end mb-2"},Ce=I(()=>s("span",{class:"material-symbols-rounded"}," done_all ",-1)),be={class:"entries overflow-y-auto flex flex-col gap-2"},De=["onClick"],$e={class:"info overflow-hidden"},Re={class:"m-0 overflow-hidden"},Se={class:"m-0 overflow-hidden text-sm text-muted"},Me=["title"],Ie=["onClick"],Ee=["onClick"],Ne=["onClick"],qe={key:1,class:"flex flex-col items-center"},je=I(()=>s("span",{class:"italic text-sm text-muted"}," No releases in this queue ",-1)),Pe=[je],S="reap.releases.seen",M="reap.releases.remember",Te=K({__name:"Releases",setup(g){const b=p(!0),r=p("unseen"),E=t=>{const e=new Date(t),o=Math.floor((Date.now()-e.getTime())/1e3/60/60/24);return o==0?"Today":o==1?"Yesterday":o<100?`${o} days ago`:o<365?`${Math.floor(o/30)} months ago`:e.toLocaleDateString()},O=Q();w(r,t=>{const e={queue:t};O.replace({query:e})});const _=T(()=>{switch(r.value){case"unseen":return h.value.filter(t=>!v.value.includes(t.url));case"out-today":return V.value;case"watching":return i.value;case"all":return h.value;case"seen":return v.value.map(t=>h.value.find(e=>e.url==t)).filter(t=>t)}}),D=t=>{oe(t.artist,t.title,t.url)},n=p(null),N=p(null),$=new Date,h=p([]),q=t=>{n.value=t,se(()=>{var e;(e=N.value)==null||e.show()})},V=T(()=>h.value.filter(t=>{const e=new Date(t.releaseDate);return $.getMonth()==e.getMonth()&&$.getDate()==e.getDate()&&$.getFullYear()==e.getFullYear()})),j=t=>{i.value.find(e=>e.url==t.url)||i.value.push(t)},P=t=>{i.value=i.value.filter(e=>e.url!=t.url)},R=t=>{var o;let e=!1;t.url===((o=a.value)==null?void 0:o.url)&&(e=!0),v.value.includes(t.url)||v.value.push(t.url),e&&D(a.value)},v=p([]),i=p([]),a=p(null);return z(async()=>{var e;b.value=!0;const t=await fetch("/api/releases");h.value=await t.json(),b.value=!1,v.value=((e=localStorage.getItem(S))==null?void 0:e.split(","))??[],v.value=v.value.filter(o=>h.value.find(k=>k.url==o)),i.value=JSON.parse(localStorage.getItem(M)??"[]")}),w(_,t=>{a.value=t[0]??null}),w(v,t=>{t.length?localStorage.setItem(S,t.join(",")):localStorage.removeItem(S)},{deep:!0}),w(i,t=>{t.length?localStorage.setItem(M,JSON.stringify(t)):localStorage.removeItem(M)},{deep:!0}),(t,e)=>{var o,k;return u(),c(L,null,[b.value?(u(),c("div",re,[m(G)])):d("",!0),s("div",ne,[n.value?(u(),B(H,{key:0,id:(o=n.value.url)==null?void 0:o.replace("https://open.spotify.com/album/",""),ref_key:"addReleaseRef",ref:N,album:{id:(k=n.value.url)==null?void 0:k.replace("https://open.spotify.com/album/",""),title:n.value.title,artist:n.value.artists.join(", "),cover:n.value.cover,href:n.value.url,releaseDate:n.value.releaseDate},artist:n.value.artist,cover:n.value.cover,href:n.value.url,title:n.value.title},null,8,["id","album","artist","cover","href","title"])):d("",!0),m(ae),s("div",ue,[s("div",ie,[a.value?(u(),c("div",ce,[a.value?(u(),B(Y,{key:0,class:"rounded-3xl",src:a.value.cover},null,8,["src"])):d("",!0),s("div",de,[s("div",ve,[s("span",{class:"preview material-symbols-rounded ms-fill text-5xl cursor-pointer",onClick:e[0]||(e[0]=l=>D(a.value))}," play_circle "),s("div",pe,[a.value?(u(),c("h3",me,[m(A,{text:a.value.title},null,8,["text"])])):d("",!0),a.value?(u(),c("p",fe,[m(F,{artist:a.value.artist},null,8,["artist"])])):d("",!0),a.value?(u(),c("p",{key:2,class:"m-0 text-muted text-xs",title:a.value.releaseDate},C(E(a.value.releaseDate)),9,_e)):d("",!0)])]),s("div",he,[s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[1]||(e[1]=x(l=>q(a.value),["stop"])),title:"Add to playlist"}," add "),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[2]||(e[2]=x(l=>i.value.find(f=>f.url===a.value.url)?P(a.value):j(a.value),["stop"])),title:"Pin"},C(i.value.find(l=>l.url===a.value.url)?"playlist_remove":"push_pin"),1),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:e[3]||(e[3]=x(l=>R(a.value),["stop"])),title:"Mark as seen"}," done_all ")])])])):(u(),c("div",xe,ge))]),m(Z,{class:"queue w-full p-2 h-full flex flex-col gap-2 relative"},{default:U(()=>[s("div",ke,[s("h5",{class:y(["cursor-pointer",{selected:r.value=="unseen"}]),onClick:e[4]||(e[4]=l=>r.value="unseen")}," Unseen ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="out-today"}]),onClick:e[5]||(e[5]=l=>r.value="out-today")}," Out Today ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="watching"}]),onClick:e[6]||(e[6]=l=>r.value="watching")}," Pinned ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="seen"}]),onClick:e[7]||(e[7]=l=>r.value="seen")}," Seen ",2),s("h5",{class:y(["cursor-pointer",{selected:r.value=="all"}]),onClick:e[8]||(e[8]=l=>r.value="all")}," All ",2)]),r.value==="unseen"&&_.value.length?(u(),c("div",we,[s("span",{class:"cursor-pointer text-sm text-muted hover:text-primary flex items-center gap-2",onClick:e[9]||(e[9]=l=>_.value.forEach(R))},[W(" Mark all as seen "),Ce])])):d("",!0),s("div",be,[_.value.length?(u(!0),c(L,{key:0},X(_.value,l=>(u(),c("div",{class:"entry",onClick:f=>{a.value=l,D(l)}},[m(Y,{class:"rounded-xl",src:l.cover},null,8,["src"]),s("div",$e,[s("p",Re,[m(A,{text:l.title},null,8,["text"])]),s("p",Se,[m(F,{artist:l.artist},null,8,["artist"])])]),s("p",{class:"text-sm m-0 text-muted",title:l.releaseDate},C(E(l.releaseDate)),9,Me),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>q(l),["stop"]),title:"Add to playlist"}," add ",8,Ie),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>i.value.find(J=>J.url===l.url)?P(l):j(l),["stop"]),title:"Pin"},C(i.value.find(f=>f.url===l.url)?"playlist_remove":"push_pin"),9,Ee),s("span",{class:"material-symbols-rounded cursor-pointer text-muted hover:text-primary",onClick:x(f=>R(l),["stop"]),title:"Mark as seen"}," done_all ",8,Ne)],8,De))),256)):d("",!0)]),_.value.length?d("",!0):(u(),c("div",qe,Pe))]),_:1})])])],64)}}});const Fe=le(Te,[["__scopeId","data-v-65db0b15"]]);export{Fe as default}; diff --git a/src/ui/dist/assets/Releases-dd0e8dec.js.gz b/src/ui/dist/assets/Releases-dd0e8dec.js.gz new file mode 100644 index 000000000..65a2e197c Binary files /dev/null and b/src/ui/dist/assets/Releases-dd0e8dec.js.gz differ diff --git a/src/ui/dist/assets/Sports-86dac5f9.js b/src/ui/dist/assets/Sports-00fca57e.js similarity index 97% rename from src/ui/dist/assets/Sports-86dac5f9.js rename to src/ui/dist/assets/Sports-00fca57e.js index f4b2fc64d..5187b7221 100644 --- a/src/ui/dist/assets/Sports-86dac5f9.js +++ b/src/ui/dist/assets/Sports-00fca57e.js @@ -1 +1 @@ -import{F as C}from"./FullShelf-94271883.js";import{_ as k,C as D,e as v,o as p,f as w,w as M,a as o,t as _,O as A,Y as b,cr as F,c as m,g as N,F as S,j as y,d as O,m as V,n as j}from"./index-effe4d2f.js";const B={name:"FootballItem",components:{Card:D},methods:{redirect(){window.open(this.oref)},remove(e){e.stopPropagation(),this.$emit("remove")}},props:{result:String,date:String,competition:String,href:String,oref:String,team1:String,team2:String,progress:String}},H={class:"wrapper topalign"},L={class:"wrapper"},J=["innerHTML"],P=["innerHTML"],U=["innerHTML"],W={class:"wrapper bottomalign"},$={class:"small"};function Y(e,s,t,c,n,r){const h=v("Card");return p(),w(h,{class:"itemBig","with-hover":""},{default:M(()=>{var u;return[o("div",{class:"item",onClick:s[1]||(s[1]=(...i)=>r.redirect&&r.redirect(...i))},[o("div",H,[o("p",null,_(t.competition),1),o("p",{class:A([{accent:(u=t.progress)==null?void 0:u.includes("'")},"right progress"])},_(t.progress),3)]),o("div",L,[o("p",{class:"team",innerHTML:t.team1},null,8,J),o("h4",{class:"result",innerHTML:t.result},null,8,P),o("p",{class:"team",innerHTML:t.team2},null,8,U)]),o("div",W,[o("p",$,_(t.date)+", "+_(t.href),1),o("span",{class:"deleteIcon small material-icons-round",onClick:s[0]||(s[0]=(...i)=>r.remove&&r.remove(...i))},"clear")])])]}),_:1})}const E=k(B,[["render",Y],["__scopeId","data-v-b3cf3eea"]]);const K={components:{TextInputWithIcon:b,FullShelf:C,FootballItem:E},name:"Sports",data(){return{sports:[],watchMatches:[],sourceToAdd:"",supportedSources:["https://onefootball.com/en/team/","https://onefootball.com/en/match/","https://onefootball.com/en/competition/","https://www.cev.eu/match-centres/","https://championsleague.cev.eu/en/match-centres/","https://www.cev.eu/calendar/","https://cev-nex.tk/#/match/","https://cevnex.tk/#/match/"]}},mounted(){this.watchMatches=JSON.parse(window.localStorage.getItem("sports.watchMatches"))||[],this.updateMatches()},computed:{volleyMatches(){return this.watchMatches.filter(e=>e.includes("cev")).map(e=>{let s=e;return e.includes("nex.tk")&&(s=e.split("/match/")[1]),{src:s,ref:e}})},notVolleyMatches(){return this.watchMatches.filter(e=>!e.includes("cev"))}},methods:{removeSource(e,s,t){this.watchMatches.splice(this.watchMatches.indexOf(e),1),this.sports[s].items.splice(t,1),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches))},removeSourceD(e){this.watchMatches.splice(this.watchMatches.indexOf(e),1),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches))},tryAddSource(){for(const e of this.supportedSources)if(this.sourceToAdd.startsWith(e)){this.addSource();return}F.addError("unsupported source")},addSource(){this.watchMatches.push(this.sourceToAdd),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches)),this.sourceToAdd=""},updateMatches(){if(!(this.$route.path=="/sports"||this.$route.path=="/sports/")){console.log("not update",this.$route.path);return}fetch("/api/sports",{method:"POST",body:JSON.stringify({urls:this.notVolleyMatches})}).then(e=>e.json()).then(e=>{this.sports=[];for(const s of e){const t=this.sports.findIndex(c=>c.sport==s.sport);t>=0?this.sports[t].items.push(s):this.sports.push({sport:s.sport,icon:s.sportIcon,items:[s]})}for(const s of this.sports)s.items.sort((t,c)=>{if(t.progress=t.progress.replace("Half time","45'"),c.progress=c.progress.replace("Half time","45'"),(t.progress.includes("Pens")||t.progress.includes("N/A"))&&(t.progress="Full time"),(c.progress.includes("Pens")||c.progress.includes("N/A"))&&(c.progress="Full time"),t.progress.includes("'")&&!c.progress.includes("'"))return-1;if(!t.progress.includes("'")&&c.progress.includes("'"))return 1;if(t.progress.includes("'")&&c.progress.includes("'")){const g=Number(t.progress.replace("'","").replace("+","")),x=Number(c.progress.replace("'","").replace("+",""));return gg.toISOString().split("T")[0];n=n.replace("Today",a(i)).split("/").reverse().join("-"),n=n.replace("Tomorrow",a(l)).split("/").reverse().join("-"),n=n.replace("Yesterday",a(d)).split("/").reverse().join("-"),r=r.replace("Today",a(i)).split("/").reverse().join("-"),r=r.replace("Tomorrow",a(l)).split("/").reverse().join("-"),r=r.replace("Yesterday",a(d)).split("/").reverse().join("-");let f=new Date(`${n}T${h}`.replace(" ","")),I=new Date(`${r}T${u}`.replace(" ",""));return f>I?-1:f==I?0:1})}),setTimeout(this.updateMatches,1e3*45)}}},T=e=>(V("data-v-2339d0be"),e=e(),j(),e),R={class:"news"},z=T(()=>o("div",{class:"padding-20"},[o("h1",null,"Sports")],-1)),q=T(()=>o("hr",null,null,-1)),G={class:"padding-20"},Q={class:"small"},X={class:"addWrapper"},Z=T(()=>o("hr",null,null,-1)),ee=["src"],te=["onClick"];function se(e,s,t,c,n,r){const h=v("TextInputWithIcon"),u=v("football-item"),i=v("full-shelf");return p(),m("div",R,[z,q,o("div",G,[o("p",Q,"Supported urls: "+_(n.supportedSources.join("*, ")),1),o("div",X,[N(h,{modelValue:n.sourceToAdd,"onUpdate:modelValue":s[0]||(s[0]=l=>n.sourceToAdd=l),icon:"link",onKeyup:e.enterText},null,8,["modelValue","onKeyup"]),o("span",{id:"addToPlaylist",class:"material-icons-outlined",onClick:s[1]||(s[1]=(...l)=>r.tryAddSource&&r.tryAddSource(...l))},"add_circle")]),Z,(p(!0),m(S,null,y(n.sports,(l,d)=>(p(),w(i,{key:l.sport,heading:l.sport,icon:l.icon},{default:M(()=>[(p(!0),m(S,null,y(l.items,(a,f)=>(p(),w(u,{key:a.href,competition:a.competition,date:a.date,href:a.href,oref:a.oref,progress:a.progress,result:a.result,team1:a.team1,team2:a.team2,onRemove:()=>r.removeSource(a.sref,d,f)},null,8,["competition","date","href","oref","progress","result","team1","team2","onRemove"]))),128))]),_:2},1032,["heading","icon"]))),128)),r.volleyMatches.length?(p(),w(i,{key:0,heading:"Volleyball",icon:"sports_volleyball"},{default:M(()=>[(p(!0),m(S,null,y(r.volleyMatches,(l,d)=>(p(),m("div",{key:d,class:"wrapIframe"},[o("iframe",{src:`https://cev-nex.tk/#/embed?match=${l.src}`},null,8,ee),o("span",{class:"deleteIcon small material-symbols-rounded",onClick:()=>r.removeSourceD(l.ref)},"clear",8,te)]))),128))]),_:1})):O("",!0)])])}const ae=k(K,[["render",se],["__scopeId","data-v-2339d0be"]]);export{ae as default}; +import{F as C}from"./FullShelf-e5484026.js";import{_ as k,C as D,e as v,o as p,f as w,w as M,a as o,t as _,O as A,Y as b,cr as F,c as m,g as N,F as S,j as y,d as O,m as V,n as j}from"./index-926884cb.js";const B={name:"FootballItem",components:{Card:D},methods:{redirect(){window.open(this.oref)},remove(e){e.stopPropagation(),this.$emit("remove")}},props:{result:String,date:String,competition:String,href:String,oref:String,team1:String,team2:String,progress:String}},H={class:"wrapper topalign"},L={class:"wrapper"},J=["innerHTML"],P=["innerHTML"],U=["innerHTML"],W={class:"wrapper bottomalign"},$={class:"small"};function Y(e,s,t,c,n,r){const h=v("Card");return p(),w(h,{class:"itemBig","with-hover":""},{default:M(()=>{var u;return[o("div",{class:"item",onClick:s[1]||(s[1]=(...i)=>r.redirect&&r.redirect(...i))},[o("div",H,[o("p",null,_(t.competition),1),o("p",{class:A([{accent:(u=t.progress)==null?void 0:u.includes("'")},"right progress"])},_(t.progress),3)]),o("div",L,[o("p",{class:"team",innerHTML:t.team1},null,8,J),o("h4",{class:"result",innerHTML:t.result},null,8,P),o("p",{class:"team",innerHTML:t.team2},null,8,U)]),o("div",W,[o("p",$,_(t.date)+", "+_(t.href),1),o("span",{class:"deleteIcon small material-icons-round",onClick:s[0]||(s[0]=(...i)=>r.remove&&r.remove(...i))},"clear")])])]}),_:1})}const E=k(B,[["render",Y],["__scopeId","data-v-b3cf3eea"]]);const K={components:{TextInputWithIcon:b,FullShelf:C,FootballItem:E},name:"Sports",data(){return{sports:[],watchMatches:[],sourceToAdd:"",supportedSources:["https://onefootball.com/en/team/","https://onefootball.com/en/match/","https://onefootball.com/en/competition/","https://www.cev.eu/match-centres/","https://championsleague.cev.eu/en/match-centres/","https://www.cev.eu/calendar/","https://cev-nex.tk/#/match/","https://cevnex.tk/#/match/"]}},mounted(){this.watchMatches=JSON.parse(window.localStorage.getItem("sports.watchMatches"))||[],this.updateMatches()},computed:{volleyMatches(){return this.watchMatches.filter(e=>e.includes("cev")).map(e=>{let s=e;return e.includes("nex.tk")&&(s=e.split("/match/")[1]),{src:s,ref:e}})},notVolleyMatches(){return this.watchMatches.filter(e=>!e.includes("cev"))}},methods:{removeSource(e,s,t){this.watchMatches.splice(this.watchMatches.indexOf(e),1),this.sports[s].items.splice(t,1),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches))},removeSourceD(e){this.watchMatches.splice(this.watchMatches.indexOf(e),1),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches))},tryAddSource(){for(const e of this.supportedSources)if(this.sourceToAdd.startsWith(e)){this.addSource();return}F.addError("unsupported source")},addSource(){this.watchMatches.push(this.sourceToAdd),window.localStorage.setItem("sports.watchMatches",JSON.stringify(this.watchMatches)),this.sourceToAdd=""},updateMatches(){if(!(this.$route.path=="/sports"||this.$route.path=="/sports/")){console.log("not update",this.$route.path);return}fetch("/api/sports",{method:"POST",body:JSON.stringify({urls:this.notVolleyMatches})}).then(e=>e.json()).then(e=>{this.sports=[];for(const s of e){const t=this.sports.findIndex(c=>c.sport==s.sport);t>=0?this.sports[t].items.push(s):this.sports.push({sport:s.sport,icon:s.sportIcon,items:[s]})}for(const s of this.sports)s.items.sort((t,c)=>{if(t.progress=t.progress.replace("Half time","45'"),c.progress=c.progress.replace("Half time","45'"),(t.progress.includes("Pens")||t.progress.includes("N/A"))&&(t.progress="Full time"),(c.progress.includes("Pens")||c.progress.includes("N/A"))&&(c.progress="Full time"),t.progress.includes("'")&&!c.progress.includes("'"))return-1;if(!t.progress.includes("'")&&c.progress.includes("'"))return 1;if(t.progress.includes("'")&&c.progress.includes("'")){const g=Number(t.progress.replace("'","").replace("+","")),x=Number(c.progress.replace("'","").replace("+",""));return gg.toISOString().split("T")[0];n=n.replace("Today",a(i)).split("/").reverse().join("-"),n=n.replace("Tomorrow",a(l)).split("/").reverse().join("-"),n=n.replace("Yesterday",a(d)).split("/").reverse().join("-"),r=r.replace("Today",a(i)).split("/").reverse().join("-"),r=r.replace("Tomorrow",a(l)).split("/").reverse().join("-"),r=r.replace("Yesterday",a(d)).split("/").reverse().join("-");let f=new Date(`${n}T${h}`.replace(" ","")),I=new Date(`${r}T${u}`.replace(" ",""));return f>I?-1:f==I?0:1})}),setTimeout(this.updateMatches,1e3*45)}}},T=e=>(V("data-v-2339d0be"),e=e(),j(),e),R={class:"news"},z=T(()=>o("div",{class:"padding-20"},[o("h1",null,"Sports")],-1)),q=T(()=>o("hr",null,null,-1)),G={class:"padding-20"},Q={class:"small"},X={class:"addWrapper"},Z=T(()=>o("hr",null,null,-1)),ee=["src"],te=["onClick"];function se(e,s,t,c,n,r){const h=v("TextInputWithIcon"),u=v("football-item"),i=v("full-shelf");return p(),m("div",R,[z,q,o("div",G,[o("p",Q,"Supported urls: "+_(n.supportedSources.join("*, ")),1),o("div",X,[N(h,{modelValue:n.sourceToAdd,"onUpdate:modelValue":s[0]||(s[0]=l=>n.sourceToAdd=l),icon:"link",onKeyup:e.enterText},null,8,["modelValue","onKeyup"]),o("span",{id:"addToPlaylist",class:"material-icons-outlined",onClick:s[1]||(s[1]=(...l)=>r.tryAddSource&&r.tryAddSource(...l))},"add_circle")]),Z,(p(!0),m(S,null,y(n.sports,(l,d)=>(p(),w(i,{key:l.sport,heading:l.sport,icon:l.icon},{default:M(()=>[(p(!0),m(S,null,y(l.items,(a,f)=>(p(),w(u,{key:a.href,competition:a.competition,date:a.date,href:a.href,oref:a.oref,progress:a.progress,result:a.result,team1:a.team1,team2:a.team2,onRemove:()=>r.removeSource(a.sref,d,f)},null,8,["competition","date","href","oref","progress","result","team1","team2","onRemove"]))),128))]),_:2},1032,["heading","icon"]))),128)),r.volleyMatches.length?(p(),w(i,{key:0,heading:"Volleyball",icon:"sports_volleyball"},{default:M(()=>[(p(!0),m(S,null,y(r.volleyMatches,(l,d)=>(p(),m("div",{key:d,class:"wrapIframe"},[o("iframe",{src:`https://cev-nex.tk/#/embed?match=${l.src}`},null,8,ee),o("span",{class:"deleteIcon small material-symbols-rounded",onClick:()=>r.removeSourceD(l.ref)},"clear",8,te)]))),128))]),_:1})):O("",!0)])])}const ae=k(K,[["render",se],["__scopeId","data-v-2339d0be"]]);export{ae as default}; diff --git a/src/ui/dist/assets/Sports-00fca57e.js.gz b/src/ui/dist/assets/Sports-00fca57e.js.gz new file mode 100644 index 000000000..e04fc092b Binary files /dev/null and b/src/ui/dist/assets/Sports-00fca57e.js.gz differ diff --git a/src/ui/dist/assets/Sports-86dac5f9.js.gz b/src/ui/dist/assets/Sports-86dac5f9.js.gz deleted file mode 100644 index f3ee2c412..000000000 Binary files a/src/ui/dist/assets/Sports-86dac5f9.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Template-e0818326.js b/src/ui/dist/assets/Template-d4a34a3b.js similarity index 99% rename from src/ui/dist/assets/Template-e0818326.js rename to src/ui/dist/assets/Template-d4a34a3b.js index 9b5bc8a05..22532d432 100644 --- a/src/ui/dist/assets/Template-e0818326.js +++ b/src/ui/dist/assets/Template-d4a34a3b.js @@ -1,4 +1,4 @@ -import{a0 as Nr,a1 as Fr,a2 as jr,a3 as Lr,F as He,a4 as $r,a5 as Ur,a6 as Gr,a7 as Br,a8 as ur,a9 as Vr,aa as Kr,ab as Hr,ac as Wr,ad as Xr,ae as Yr,af as zr,ag as Jr,ah as Qr,ai as Zr,aj as kr,D as zt,ak as qr,f as Jt,d as Rt,c as dt,a as _,al as _r,am as to,an as eo,ao as no,ap as ro,aq as oo,b as ie,g as ot,ar as ao,as as io,i as ue,at as so,au as lo,av as uo,aw as co,ax as fo,ay as vo,az as po,aA as ho,aB as mo,aC as go,aD as yo,aE as bo,aF as So,aG as xo,aH as Eo,aI as Oo,aJ as To,aK as Io,aL as Po,aM as Co,aN as Do,aO as Ao,aP as wo,aQ as Ro,aR as Mo,aS as No,aT as Fo,aU as jo,aV as Lo,aW as $o,aX as Uo,aY as Go,aZ as Bo,a_ as Vo,Q as $n,O as We,a$ as Ko,z as cr,b0 as Ho,b1 as Wo,b2 as Xo,b3 as Yo,b4 as zo,b5 as Jo,E as pn,b6 as Qo,b7 as Zo,b8 as ko,b9 as qo,ba as _o,bb as ta,o as tt,n as Un,bc as ea,bd as na,m as Gn,be as ra,bf as oa,bg as aa,q as rt,bh as ia,bi as sa,j as wn,r as Bn,e as $e,bj as Vn,bk as la,bl as ua,bm as ca,bn as fa,bo as da,bp as va,bq as pa,br as ha,bs as ma,bt as ga,bu as ya,bv as ba,t as Bt,bw as Sa,bx as xa,by as Ea,bz as Oa,bA as Ta,bB as Ia,bC as Pa,bD as Ca,u as Yt,bE as Da,bF as Aa,bG as wa,bH as Ra,bI as Ma,bJ as Na,bK as Fa,bL as ja,bM as La,bN as $a,bO as Ua,bP as fr,bQ as dr,bR as Ga,bS as Ba,G as le,bT as vr,bU as Va,bV as Ka,bW as Ha,w as Mt,bX as Wa,bY as Xe,bZ as Rn,b_ as Xa,J as me,b$ as Ya,c0 as pr,c1 as za,c2 as Ja,_ as Ye,P as hr,B as Qa,c3 as Za,x as ka,c4 as mr,A as qa,c5 as _a,c6 as ti,I as zn,k as Kn,s as gr,$ as ei,c7 as Jn,c8 as ni,c9 as ri,h as oi,C as Qn,Y as ai,X as ii,ca as Zn,cb as si}from"./index-effe4d2f.js";import{P as li}from"./PlaylistEntry-9c8199d3.js";import{F as yn}from"./FactCard-e9e3d5c4.js";import{G as ui}from"./gistClient-63edeca1.js";import{M as ci,_ as fi}from"./Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js";const di=()=>{},vi=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Nr,BaseTransitionPropsValidators:Fr,Comment:jr,EffectScope:Lr,Fragment:He,KeepAlive:$r,ReactiveEffect:Ur,Static:Gr,Suspense:Br,Teleport:ur,Text:Vr,Transition:Kr,TransitionGroup:Hr,VueElement:Wr,assertNumber:Xr,callWithAsyncErrorHandling:Yr,callWithErrorHandling:zr,camelize:Jr,capitalize:Qr,cloneVNode:Zr,compatUtils:kr,compile:di,computed:zt,createApp:qr,createBlock:Jt,createCommentVNode:Rt,createElementBlock:dt,createElementVNode:_,createHydrationRenderer:_r,createPropsRestProxy:to,createRenderer:eo,createSSRApp:no,createSlots:ro,createStaticVNode:oo,createTextVNode:ie,createVNode:ot,customRef:ao,defineAsyncComponent:io,defineComponent:ue,defineCustomElement:so,defineEmits:lo,defineExpose:uo,defineModel:co,defineOptions:fo,defineProps:vo,defineSSRCustomElement:po,defineSlots:ho,get devtools(){return mo},effect:go,effectScope:yo,getCurrentInstance:bo,getCurrentScope:So,getTransitionRawChildren:xo,guardReactiveProps:Eo,h:Oo,handleError:To,hasInjectionContext:Io,hydrate:Po,initCustomFormatter:Co,initDirectivesForSSR:Do,inject:Ao,isMemoSame:wo,isProxy:Ro,isReactive:Mo,isReadonly:No,isRef:Fo,isRuntimeOnly:jo,isShallow:Lo,isVNode:$o,markRaw:Uo,mergeDefaults:Go,mergeModels:Bo,mergeProps:Vo,nextTick:$n,normalizeClass:We,normalizeProps:Ko,normalizeStyle:cr,onActivated:Ho,onBeforeMount:Wo,onBeforeUnmount:Xo,onBeforeUpdate:Yo,onDeactivated:zo,onErrorCaptured:Jo,onMounted:pn,onRenderTracked:Qo,onRenderTriggered:Zo,onScopeDispose:ko,onServerPrefetch:qo,onUnmounted:_o,onUpdated:ta,openBlock:tt,popScopeId:Un,provide:ea,proxyRefs:na,pushScopeId:Gn,queuePostFlushCb:ra,reactive:oa,readonly:aa,ref:rt,registerRuntimeCompiler:ia,render:sa,renderList:wn,renderSlot:Bn,resolveComponent:$e,resolveDirective:Vn,resolveDynamicComponent:la,resolveFilter:ua,resolveTransitionHooks:ca,setBlockTracking:fa,setDevtoolsHook:da,setTransitionHooks:va,shallowReactive:pa,shallowReadonly:ha,shallowRef:ma,ssrContextKey:ga,ssrUtils:ya,stop:ba,toDisplayString:Bt,toHandlerKey:Sa,toHandlers:xa,toRaw:Ea,toRef:Oa,toRefs:Ta,toValue:Ia,transformVNodeArgs:Pa,triggerRef:Ca,unref:Yt,useAttrs:Da,useCssModule:Aa,useCssVars:wa,useModel:Ra,useSSRContext:Ma,useSlots:Na,useTransitionState:Fa,vModelCheckbox:ja,vModelDynamic:La,vModelRadio:$a,vModelSelect:Ua,vModelText:fr,vShow:dr,version:Ga,warn:Ba,watch:le,watchEffect:vr,watchPostEffect:Va,watchSyncEffect:Ka,withAsyncContext:Ha,withCtx:Mt,withDefaults:Wa,withDirectives:Xe,withKeys:Rn,withMemo:Xa,withModifiers:me,withScopeId:Ya},Symbol.toStringTag,{value:"Module"}));var yr={exports:{}};const pi=pr(vi);/**! +import{a0 as Nr,a1 as Fr,a2 as jr,a3 as Lr,F as He,a4 as $r,a5 as Ur,a6 as Gr,a7 as Br,a8 as ur,a9 as Vr,aa as Kr,ab as Hr,ac as Wr,ad as Xr,ae as Yr,af as zr,ag as Jr,ah as Qr,ai as Zr,aj as kr,D as zt,ak as qr,f as Jt,d as Rt,c as dt,a as _,al as _r,am as to,an as eo,ao as no,ap as ro,aq as oo,b as ie,g as ot,ar as ao,as as io,i as ue,at as so,au as lo,av as uo,aw as co,ax as fo,ay as vo,az as po,aA as ho,aB as mo,aC as go,aD as yo,aE as bo,aF as So,aG as xo,aH as Eo,aI as Oo,aJ as To,aK as Io,aL as Po,aM as Co,aN as Do,aO as Ao,aP as wo,aQ as Ro,aR as Mo,aS as No,aT as Fo,aU as jo,aV as Lo,aW as $o,aX as Uo,aY as Go,aZ as Bo,a_ as Vo,Q as $n,O as We,a$ as Ko,z as cr,b0 as Ho,b1 as Wo,b2 as Xo,b3 as Yo,b4 as zo,b5 as Jo,E as pn,b6 as Qo,b7 as Zo,b8 as ko,b9 as qo,ba as _o,bb as ta,o as tt,n as Un,bc as ea,bd as na,m as Gn,be as ra,bf as oa,bg as aa,q as rt,bh as ia,bi as sa,j as wn,r as Bn,e as $e,bj as Vn,bk as la,bl as ua,bm as ca,bn as fa,bo as da,bp as va,bq as pa,br as ha,bs as ma,bt as ga,bu as ya,bv as ba,t as Bt,bw as Sa,bx as xa,by as Ea,bz as Oa,bA as Ta,bB as Ia,bC as Pa,bD as Ca,u as Yt,bE as Da,bF as Aa,bG as wa,bH as Ra,bI as Ma,bJ as Na,bK as Fa,bL as ja,bM as La,bN as $a,bO as Ua,bP as fr,bQ as dr,bR as Ga,bS as Ba,G as le,bT as vr,bU as Va,bV as Ka,bW as Ha,w as Mt,bX as Wa,bY as Xe,bZ as Rn,b_ as Xa,J as me,b$ as Ya,c0 as pr,c1 as za,c2 as Ja,_ as Ye,P as hr,B as Qa,c3 as Za,x as ka,c4 as mr,A as qa,c5 as _a,c6 as ti,I as zn,k as Kn,s as gr,$ as ei,c7 as Jn,c8 as ni,c9 as ri,h as oi,C as Qn,Y as ai,X as ii,ca as Zn,cb as si}from"./index-926884cb.js";import{P as li}from"./PlaylistEntry-c58cccb9.js";import{F as yn}from"./FactCard-517d18b6.js";import{G as ui}from"./gistClient-c2987d49.js";import{M as ci,_ as fi}from"./Markdown.vue_vue_type_style_index_0_lang-863128c2.js";const di=()=>{},vi=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Nr,BaseTransitionPropsValidators:Fr,Comment:jr,EffectScope:Lr,Fragment:He,KeepAlive:$r,ReactiveEffect:Ur,Static:Gr,Suspense:Br,Teleport:ur,Text:Vr,Transition:Kr,TransitionGroup:Hr,VueElement:Wr,assertNumber:Xr,callWithAsyncErrorHandling:Yr,callWithErrorHandling:zr,camelize:Jr,capitalize:Qr,cloneVNode:Zr,compatUtils:kr,compile:di,computed:zt,createApp:qr,createBlock:Jt,createCommentVNode:Rt,createElementBlock:dt,createElementVNode:_,createHydrationRenderer:_r,createPropsRestProxy:to,createRenderer:eo,createSSRApp:no,createSlots:ro,createStaticVNode:oo,createTextVNode:ie,createVNode:ot,customRef:ao,defineAsyncComponent:io,defineComponent:ue,defineCustomElement:so,defineEmits:lo,defineExpose:uo,defineModel:co,defineOptions:fo,defineProps:vo,defineSSRCustomElement:po,defineSlots:ho,get devtools(){return mo},effect:go,effectScope:yo,getCurrentInstance:bo,getCurrentScope:So,getTransitionRawChildren:xo,guardReactiveProps:Eo,h:Oo,handleError:To,hasInjectionContext:Io,hydrate:Po,initCustomFormatter:Co,initDirectivesForSSR:Do,inject:Ao,isMemoSame:wo,isProxy:Ro,isReactive:Mo,isReadonly:No,isRef:Fo,isRuntimeOnly:jo,isShallow:Lo,isVNode:$o,markRaw:Uo,mergeDefaults:Go,mergeModels:Bo,mergeProps:Vo,nextTick:$n,normalizeClass:We,normalizeProps:Ko,normalizeStyle:cr,onActivated:Ho,onBeforeMount:Wo,onBeforeUnmount:Xo,onBeforeUpdate:Yo,onDeactivated:zo,onErrorCaptured:Jo,onMounted:pn,onRenderTracked:Qo,onRenderTriggered:Zo,onScopeDispose:ko,onServerPrefetch:qo,onUnmounted:_o,onUpdated:ta,openBlock:tt,popScopeId:Un,provide:ea,proxyRefs:na,pushScopeId:Gn,queuePostFlushCb:ra,reactive:oa,readonly:aa,ref:rt,registerRuntimeCompiler:ia,render:sa,renderList:wn,renderSlot:Bn,resolveComponent:$e,resolveDirective:Vn,resolveDynamicComponent:la,resolveFilter:ua,resolveTransitionHooks:ca,setBlockTracking:fa,setDevtoolsHook:da,setTransitionHooks:va,shallowReactive:pa,shallowReadonly:ha,shallowRef:ma,ssrContextKey:ga,ssrUtils:ya,stop:ba,toDisplayString:Bt,toHandlerKey:Sa,toHandlers:xa,toRaw:Ea,toRef:Oa,toRefs:Ta,toValue:Ia,transformVNodeArgs:Pa,triggerRef:Ca,unref:Yt,useAttrs:Da,useCssModule:Aa,useCssVars:wa,useModel:Ra,useSSRContext:Ma,useSlots:Na,useTransitionState:Fa,vModelCheckbox:ja,vModelDynamic:La,vModelRadio:$a,vModelSelect:Ua,vModelText:fr,vShow:dr,version:Ga,warn:Ba,watch:le,watchEffect:vr,watchPostEffect:Va,watchSyncEffect:Ka,withAsyncContext:Ha,withCtx:Mt,withDefaults:Wa,withDirectives:Xe,withKeys:Rn,withMemo:Xa,withModifiers:me,withScopeId:Ya},Symbol.toStringTag,{value:"Module"}));var yr={exports:{}};const pi=pr(vi);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm diff --git a/src/ui/dist/assets/Template-d4a34a3b.js.gz b/src/ui/dist/assets/Template-d4a34a3b.js.gz new file mode 100644 index 000000000..e6f1533e2 Binary files /dev/null and b/src/ui/dist/assets/Template-d4a34a3b.js.gz differ diff --git a/src/ui/dist/assets/Template-e0818326.js.gz b/src/ui/dist/assets/Template-e0818326.js.gz deleted file mode 100644 index 0f83aa85c..000000000 Binary files a/src/ui/dist/assets/Template-e0818326.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Track-4d6e682b.js.gz b/src/ui/dist/assets/Track-4d6e682b.js.gz deleted file mode 100644 index 885b12814..000000000 Binary files a/src/ui/dist/assets/Track-4d6e682b.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/Track-4d6e682b.js b/src/ui/dist/assets/Track-8a51f52b.js similarity index 96% rename from src/ui/dist/assets/Track-4d6e682b.js rename to src/ui/dist/assets/Track-8a51f52b.js index 4293bfef0..400c7d69b 100644 --- a/src/ui/dist/assets/Track-4d6e682b.js +++ b/src/ui/dist/assets/Track-8a51f52b.js @@ -1 +1 @@ -import{i as I,q as m,G as P,E as D,o as t,c as _,_ as U,f as n,w as S,a as s,t as f,d as r,C as B,B as F,c9 as A,D as H,cb as O,g as x,h as K,O as M,N as R,u as h,F as V,cc as W,cd as G,ce as Y,cf as J,Y as Q,j as N,b as X,cg as Z,ch as ee,ci as ae,cj as te,ck as T,cl as se,L as le,m as oe,n as ne}from"./index-effe4d2f.js";import{F as g}from"./FactCard-e9e3d5c4.js";import{_ as ue}from"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import{s as re}from"./spotify-50eca206.js";const ie=["aria-valuemax","aria-valuenow"],ce=I({__name:"ProgressCircle",props:{max:{type:Number,required:!1,default:100},modelValue:{type:Number,required:!1,default:0},displayValue:{type:String,required:!0}},setup(u){const v=u,c=m(null),b=()=>{if(c.value){const d=v.modelValue/v.max*100;c.value.style.setProperty("--progress",`${d}%`),c.value.innerHTML=v.displayValue}};P(v,b,{deep:!0});const l=()=>{c.value&&(c.value.style.height=c.value.offsetWidth+"px")};return D(()=>{l(),b()}),window.addEventListener("resize",l),(d,y)=>(t(),_("div",{ref_key:"radialProgress",ref:c,"aria-valuemax":u.max,"aria-valuenow":u.modelValue,"aria-valuemin":"0",class:"radialProgress",role:"progressbar"},null,8,ie))}});const j=U(ce,[["__scopeId","data-v-6e1a8d6b"]]),de={class:"material-symbols-rounded ms-fill"},pe={key:0,class:"text-muted"},_e=I({__name:"ButtonCard",props:{icon:{type:String,required:!0},label:{type:String,required:!1}},setup(u){return(v,c)=>(t(),n(B,{class:"p-4 flex flex-col w-full items-center justify-center"},{default:S(()=>[s("span",de,f(u.icon),1),u.label?(t(),_("span",pe,f(u.label),1)):r("",!0)]),_:1}))}});const q=U(_e,[["__scopeId","data-v-98bfdf17"]]),E=u=>(oe("data-v-56a3b0f7"),u=u(),ne(),u),ve={class:"track p-4"},me={key:2},fe={class:"track__data"},ye={class:"upper"},xe={class:"trac__info__details__normal"},he={class:"text-secondary my-0 text-2xl font-bold"},ke={class:"text-muted text-base ml-4 font-light"},ge={class:"flex flew-row items-center"},be={class:"font-black text-5xl ml-4"},we={key:0,class:"features flex flex-row gap-4 pt-4 pb-2 overflow-x-auto"},Ce={class:"spotify-infos mt-4"},Ve={class:"meta items-center"},$e={class:"text-muted"},Pe={key:0,class:"material-symbols-rounded ms-fill"},Se={class:"flex flex-row align-items"},Be=E(()=>s("span",{class:"material-symbols-rounded ms-fill mr-2"},"local_fire_department",-1)),Ie={class:"font-bold"},Ue={class:"relative w-full mt-4"},Me={class:"spotify__features__circles"},Ne={class:"text-muted mb-0 text-center text-sm capitalize flex justify-center"},Te={class:"material-symbols-rounded mr-2"},je=E(()=>s("h2",{class:"!text-left"},"Similar Songs",-1)),qe=I({__name:"Track",setup(u){const v=F(),c=A(),b=H(()=>v.params.hash),l=m(null),d=m(null),y=m("url"),a=m(null),w=m([]),$=m([]),k=m(!1),L={acousticness:"piano",danceability:"nightlife",energy:"electric_bolt",happiness:"mood",instrumentalness:"mic_off",liveness:"groups_2",speechiness:"mic",loudness:"volume_up"},C=async(p=null)=>{var o;l.value=null,a.value=null,w.value=[],l.value=await ee(b.value),window.document.title=`${l.value.title} - reAudioPlayer One`,a.value=await ae(l.value.id,!!p,p),d.value=`https://open.spotify.com/track/${a.value.spotify.id}`,y.value="link",k.value=((o=a.value.spotify.id)==null?void 0:o.length)==22,w.value=await te(l.value.id),$.value=[];for(let[e,i]of Object.entries(a.value.spotify.features))["key","mode","tempo","duration_ms","time_signature"].includes(e)||typeof i=="number"&&(e=e.replaceAll("_"," "),e=e.replace("valence","happiness"),e==="loudness"&&(i=60+i),$.value.push({key:e,value:i,icon:L[e]}))};D(C),P(v,()=>C(),{deep:!0}),P(d,()=>{var p,o;if(((o=(p=a.value)==null?void 0:p.spotify)==null?void 0:o.id)==T(d.value,"track")){y.value="link";return}y.value="save"});const z=()=>{if(y.value==="save"){const p=T(d.value,"track");if(!p)return;C(p);return}se(d.value)};return(p,o)=>(t(),_(V,null,[l.value?(t(),n(O,{key:0,src:l.value.cover,class:"-z-10"},null,8,["src"])):r("",!0),s("div",ve,[l.value?(t(),n(ue,{key:0,ref:"updatePopup",song:l.value,onUpdate:o[0]||(o[0]=()=>C())},null,8,["song"])):r("",!0),l.value?(t(),_("div",me,[s("div",fe,[s("div",ye,[x(K,{src:l.value.cover,class:"max-w-sm rounded-xl"},null,8,["src"]),s("div",{class:M([{"justify-end":a.value,"justify-center":!a.value},"track__info__details flex flex-col"])},[s("div",xe,[s("h3",he,[x(R,{artist:l.value.artist,class:"inline"},null,8,["artist"]),s("span",ke,f(l.value.album),1)]),s("div",ge,[s("span",{class:"text-5xl cursor-pointer material-symbols-rounded ms-fill my-auto",onClick:o[1]||(o[1]=e=>h(c).loadPlaylist("track",l.value.id))}," play_circle "),s("h1",be,f(l.value.title),1)])]),a.value&&a.value.spotify.features?(t(),_(V,{key:0},[a.value&&a.value.spotify.features?(t(),_("div",we,[a.value?(t(),n(g,{key:0,"primary-text":a.value.spotify.features.key+" "+a.value.spotify.features.mode,class:"w-full","secondary-text":"Key"},null,8,["primary-text"])):r("",!0),a.value?(t(),n(g,{key:1,"primary-text":h(W)(a.value),class:"w-full","secondary-text":"Camelot"},null,8,["primary-text"])):r("",!0),a.value?(t(),n(g,{key:2,"primary-text":Math.round(a.value.spotify.features.tempo),class:"w-full","secondary-text":"BPM"},null,8,["primary-text"])):r("",!0),x(g,{"primary-text":h(G)(l.value.duration),class:"w-full","secondary-text":"Duration"},null,8,["primary-text"]),a.value?(t(),n(g,{key:3,"primary-text":a.value.plays,class:"w-full","secondary-text":"Plays"},null,8,["primary-text"])):r("",!0),x(q,{icon:"edit",label:"Edit",onClick:o[2]||(o[2]=e=>p.$refs.updatePopup.show())}),x(q,{icon:"download",label:"Download",onClick:o[3]||(o[3]=e=>h(Y)(l.value.id))})])):r("",!0),s("div",Ce,[s("div",Ve,[s("span",$e,f(h(J)(a.value.spotify.releaseDate)),1),a.value.spotify.explicit?(t(),_("span",Pe,"explicit")):r("",!0),s("span",Se,[Be,s("span",Ie,f(a.value.spotify.popularity),1)])]),x(h(re),{class:M([{enabled:k.value},"spotify-enable"]),onClick:o[4]||(o[4]=e=>k.value=!k.value)},null,8,["class"]),k.value?(t(),n(Q,{key:0,modelValue:d.value,"onUpdate:modelValue":o[5]||(o[5]=e=>d.value=e),icon:y.value,onClick:z},null,8,["modelValue","icon"])):r("",!0)])],64)):r("",!0)],2)])]),s("div",Ue,[s("div",Me,[(t(!0),_(V,null,N($.value,e=>(t(),n(B,{class:"p-2"},{default:S(()=>[e.key==="loudness"?(t(),n(j,{key:0,modelValue:e.value,"onUpdate:modelValue":i=>e.value=i,"display-value":Math.round(-60+e.value)+"dB",class:"circle",max:"60"},null,8,["modelValue","onUpdate:modelValue","display-value"])):(t(),n(j,{key:1,modelValue:e.value,"onUpdate:modelValue":i=>e.value=i,"display-value":Math.round(e.value*100)+"%",class:"circle",max:"1"},null,8,["modelValue","onUpdate:modelValue","display-value"])),s("p",Ne,[s("span",Te,f(e.icon),1),X(" "+f(e.key),1)])]),_:2},1024))),256))])]),w.value.length?(t(),n(B,{key:0,class:"p-4 mt-4"},{default:S(()=>[je,(t(!0),_(V,null,N(w.value,(e,i)=>(t(),n(Z,{key:i,index:i,song:e,"can-import":"","cannot-add":"","with-album":"","with-cover":""},null,8,["index","song"]))),128))]),_:1})):r("",!0)])):(t(),n(le,{key:1}))])],64))}});const Fe=U(qe,[["__scopeId","data-v-56a3b0f7"]]);export{Fe as default}; +import{i as I,q as m,G as P,E as D,o as t,c as _,_ as U,f as n,w as S,a as s,t as f,d as r,C as B,B as F,c9 as A,D as H,cb as O,g as x,h as K,O as M,N as R,u as h,F as V,cc as W,cd as G,ce as Y,cf as J,Y as Q,j as N,b as X,cg as Z,ch as ee,ci as ae,cj as te,ck as T,cl as se,L as le,m as oe,n as ne}from"./index-926884cb.js";import{F as g}from"./FactCard-517d18b6.js";import{_ as ue}from"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import{s as re}from"./spotify-3cee06ae.js";const ie=["aria-valuemax","aria-valuenow"],ce=I({__name:"ProgressCircle",props:{max:{type:Number,required:!1,default:100},modelValue:{type:Number,required:!1,default:0},displayValue:{type:String,required:!0}},setup(u){const v=u,c=m(null),b=()=>{if(c.value){const d=v.modelValue/v.max*100;c.value.style.setProperty("--progress",`${d}%`),c.value.innerHTML=v.displayValue}};P(v,b,{deep:!0});const l=()=>{c.value&&(c.value.style.height=c.value.offsetWidth+"px")};return D(()=>{l(),b()}),window.addEventListener("resize",l),(d,y)=>(t(),_("div",{ref_key:"radialProgress",ref:c,"aria-valuemax":u.max,"aria-valuenow":u.modelValue,"aria-valuemin":"0",class:"radialProgress",role:"progressbar"},null,8,ie))}});const j=U(ce,[["__scopeId","data-v-6e1a8d6b"]]),de={class:"material-symbols-rounded ms-fill"},pe={key:0,class:"text-muted"},_e=I({__name:"ButtonCard",props:{icon:{type:String,required:!0},label:{type:String,required:!1}},setup(u){return(v,c)=>(t(),n(B,{class:"p-4 flex flex-col w-full items-center justify-center"},{default:S(()=>[s("span",de,f(u.icon),1),u.label?(t(),_("span",pe,f(u.label),1)):r("",!0)]),_:1}))}});const q=U(_e,[["__scopeId","data-v-98bfdf17"]]),E=u=>(oe("data-v-56a3b0f7"),u=u(),ne(),u),ve={class:"track p-4"},me={key:2},fe={class:"track__data"},ye={class:"upper"},xe={class:"trac__info__details__normal"},he={class:"text-secondary my-0 text-2xl font-bold"},ke={class:"text-muted text-base ml-4 font-light"},ge={class:"flex flew-row items-center"},be={class:"font-black text-5xl ml-4"},we={key:0,class:"features flex flex-row gap-4 pt-4 pb-2 overflow-x-auto"},Ce={class:"spotify-infos mt-4"},Ve={class:"meta items-center"},$e={class:"text-muted"},Pe={key:0,class:"material-symbols-rounded ms-fill"},Se={class:"flex flex-row align-items"},Be=E(()=>s("span",{class:"material-symbols-rounded ms-fill mr-2"},"local_fire_department",-1)),Ie={class:"font-bold"},Ue={class:"relative w-full mt-4"},Me={class:"spotify__features__circles"},Ne={class:"text-muted mb-0 text-center text-sm capitalize flex justify-center"},Te={class:"material-symbols-rounded mr-2"},je=E(()=>s("h2",{class:"!text-left"},"Similar Songs",-1)),qe=I({__name:"Track",setup(u){const v=F(),c=A(),b=H(()=>v.params.hash),l=m(null),d=m(null),y=m("url"),a=m(null),w=m([]),$=m([]),k=m(!1),L={acousticness:"piano",danceability:"nightlife",energy:"electric_bolt",happiness:"mood",instrumentalness:"mic_off",liveness:"groups_2",speechiness:"mic",loudness:"volume_up"},C=async(p=null)=>{var o;l.value=null,a.value=null,w.value=[],l.value=await ee(b.value),window.document.title=`${l.value.title} - reAudioPlayer One`,a.value=await ae(l.value.id,!!p,p),d.value=`https://open.spotify.com/track/${a.value.spotify.id}`,y.value="link",k.value=((o=a.value.spotify.id)==null?void 0:o.length)==22,w.value=await te(l.value.id),$.value=[];for(let[e,i]of Object.entries(a.value.spotify.features))["key","mode","tempo","duration_ms","time_signature"].includes(e)||typeof i=="number"&&(e=e.replaceAll("_"," "),e=e.replace("valence","happiness"),e==="loudness"&&(i=60+i),$.value.push({key:e,value:i,icon:L[e]}))};D(C),P(v,()=>C(),{deep:!0}),P(d,()=>{var p,o;if(((o=(p=a.value)==null?void 0:p.spotify)==null?void 0:o.id)==T(d.value,"track")){y.value="link";return}y.value="save"});const z=()=>{if(y.value==="save"){const p=T(d.value,"track");if(!p)return;C(p);return}se(d.value)};return(p,o)=>(t(),_(V,null,[l.value?(t(),n(O,{key:0,src:l.value.cover,class:"-z-10"},null,8,["src"])):r("",!0),s("div",ve,[l.value?(t(),n(ue,{key:0,ref:"updatePopup",song:l.value,onUpdate:o[0]||(o[0]=()=>C())},null,8,["song"])):r("",!0),l.value?(t(),_("div",me,[s("div",fe,[s("div",ye,[x(K,{src:l.value.cover,class:"max-w-sm rounded-xl"},null,8,["src"]),s("div",{class:M([{"justify-end":a.value,"justify-center":!a.value},"track__info__details flex flex-col"])},[s("div",xe,[s("h3",he,[x(R,{artist:l.value.artist,class:"inline"},null,8,["artist"]),s("span",ke,f(l.value.album),1)]),s("div",ge,[s("span",{class:"text-5xl cursor-pointer material-symbols-rounded ms-fill my-auto",onClick:o[1]||(o[1]=e=>h(c).loadPlaylist("track",l.value.id))}," play_circle "),s("h1",be,f(l.value.title),1)])]),a.value&&a.value.spotify.features?(t(),_(V,{key:0},[a.value&&a.value.spotify.features?(t(),_("div",we,[a.value?(t(),n(g,{key:0,"primary-text":a.value.spotify.features.key+" "+a.value.spotify.features.mode,class:"w-full","secondary-text":"Key"},null,8,["primary-text"])):r("",!0),a.value?(t(),n(g,{key:1,"primary-text":h(W)(a.value),class:"w-full","secondary-text":"Camelot"},null,8,["primary-text"])):r("",!0),a.value?(t(),n(g,{key:2,"primary-text":Math.round(a.value.spotify.features.tempo),class:"w-full","secondary-text":"BPM"},null,8,["primary-text"])):r("",!0),x(g,{"primary-text":h(G)(l.value.duration),class:"w-full","secondary-text":"Duration"},null,8,["primary-text"]),a.value?(t(),n(g,{key:3,"primary-text":a.value.plays,class:"w-full","secondary-text":"Plays"},null,8,["primary-text"])):r("",!0),x(q,{icon:"edit",label:"Edit",onClick:o[2]||(o[2]=e=>p.$refs.updatePopup.show())}),x(q,{icon:"download",label:"Download",onClick:o[3]||(o[3]=e=>h(Y)(l.value.id))})])):r("",!0),s("div",Ce,[s("div",Ve,[s("span",$e,f(h(J)(a.value.spotify.releaseDate)),1),a.value.spotify.explicit?(t(),_("span",Pe,"explicit")):r("",!0),s("span",Se,[Be,s("span",Ie,f(a.value.spotify.popularity),1)])]),x(h(re),{class:M([{enabled:k.value},"spotify-enable"]),onClick:o[4]||(o[4]=e=>k.value=!k.value)},null,8,["class"]),k.value?(t(),n(Q,{key:0,modelValue:d.value,"onUpdate:modelValue":o[5]||(o[5]=e=>d.value=e),icon:y.value,onClick:z},null,8,["modelValue","icon"])):r("",!0)])],64)):r("",!0)],2)])]),s("div",Ue,[s("div",Me,[(t(!0),_(V,null,N($.value,e=>(t(),n(B,{class:"p-2"},{default:S(()=>[e.key==="loudness"?(t(),n(j,{key:0,modelValue:e.value,"onUpdate:modelValue":i=>e.value=i,"display-value":Math.round(-60+e.value)+"dB",class:"circle",max:"60"},null,8,["modelValue","onUpdate:modelValue","display-value"])):(t(),n(j,{key:1,modelValue:e.value,"onUpdate:modelValue":i=>e.value=i,"display-value":Math.round(e.value*100)+"%",class:"circle",max:"1"},null,8,["modelValue","onUpdate:modelValue","display-value"])),s("p",Ne,[s("span",Te,f(e.icon),1),X(" "+f(e.key),1)])]),_:2},1024))),256))])]),w.value.length?(t(),n(B,{key:0,class:"p-4 mt-4"},{default:S(()=>[je,(t(!0),_(V,null,N(w.value,(e,i)=>(t(),n(Z,{key:i,index:i,song:e,"can-import":"","cannot-add":"","with-album":"","with-cover":""},null,8,["index","song"]))),128))]),_:1})):r("",!0)])):(t(),n(le,{key:1}))])],64))}});const Fe=U(qe,[["__scopeId","data-v-56a3b0f7"]]);export{Fe as default}; diff --git a/src/ui/dist/assets/Track-8a51f52b.js.gz b/src/ui/dist/assets/Track-8a51f52b.js.gz new file mode 100644 index 000000000..e1de7fbf2 Binary files /dev/null and b/src/ui/dist/assets/Track-8a51f52b.js.gz differ diff --git a/src/ui/dist/assets/TrackCompact-8c571f42.js.gz b/src/ui/dist/assets/TrackCompact-8c571f42.js.gz deleted file mode 100644 index 70d98c517..000000000 Binary files a/src/ui/dist/assets/TrackCompact-8c571f42.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/TrackCompact-8c571f42.js b/src/ui/dist/assets/TrackCompact-9f5e6d25.js similarity index 94% rename from src/ui/dist/assets/TrackCompact-8c571f42.js rename to src/ui/dist/assets/TrackCompact-9f5e6d25.js index 971d7acb1..5a9ba9414 100644 --- a/src/ui/dist/assets/TrackCompact-8c571f42.js +++ b/src/ui/dist/assets/TrackCompact-9f5e6d25.js @@ -1 +1 @@ -import{_ as T,s as B,A as D,q as n,G as H,D as N,cs as i,e as M,o as r,c as b,f as d,K as O,d as p,ct as R,g as l,w as u,a,z as V,u as _,M as S,t as q,C as z,m as A,n as E}from"./index-effe4d2f.js";const G=e=>(A("data-v-d34b4deb"),e=e(),E(),e),K={class:"home-track-compact-wrapper"},P=["src"],j=G(()=>a("div",{class:"play"},[a("span",{class:"material-symbols-rounded"},"play_arrow")],-1)),F={class:"info"},J={class:"title"},L=["href"],Q={class:"artist"},U={__name:"TrackCompact",props:{title:String,artist:String,cover:String,id:Number,href:String},emits:["play"],setup(e,{emit:C}){const t=e,w=C,x=B(),m=`/track/${D(String(t.id))}`,f=n(null),h=n(null),I=c=>{c.stopPropagation(),w("play")},$=()=>{var c,o;if(!((c=t==null?void 0:t.href)!=null&&c.includes("spotify.com"))){x.push(m);return}if((o=t==null?void 0:t.href)!=null&&o.includes("spotify.com/album/")){h.value.show();return}f.value.show()},s=n(t.cover);H(()=>t.cover,()=>{s.value=t.cover});const v=N(()=>i(s.value));return(c,o)=>{var y,g;const k=M("router-link");return r(),b("div",K,[(y=e.href)!=null&&y.includes("spotify.com/album/")?(r(),d(O,{key:0,ref_key:"addRelease",ref:h,album:{cover:v.value,name:e.title,artist:e.artist,id:e.href.replace("https://open.spotify.com/album/",""),href:e.href,releaseDate:null}},null,8,["album"])):p("",!0),(g=e.href)!=null&&g.includes("spotify.com/track/")?(r(),d(R,{key:1,ref_key:"addSong",ref:f,song:{cover:v.value,title:e.title,artist:e.artist,id:e.href.replace("https://open.spotify.com/track/",""),href:e.href,releaseDate:null}},null,8,["song"])):p("",!0),l(z,{class:"home-track-compact","with-hover":"",onClick:$},{default:u(()=>[a("div",{style:V({backgroundImage:`url(${_(i)(s.value)})`}),class:"cover",onClick:I},[a("img",{src:_(i)(s.value),class:"hidden",onError:o[0]||(o[0]=X=>s.value=null)},null,40,P),j],4),a("div",F,[a("span",J,[e.href?(r(),b("a",{key:1,href:e.href,class:"linkOnHover"},[l(S,{text:e.title},null,8,["text"])],8,L)):(r(),d(k,{key:0,to:m,class:"linkOnHover"},{default:u(()=>[l(S,{text:e.title},null,8,["text"])]),_:1}))]),l(k,{to:`/search/artist:${e.artist}`,class:"linkOnHover"},{default:u(()=>[a("span",Q,q(e.artist),1)]),_:1},8,["to"])])]),_:1})])}}},Z=T(U,[["__scopeId","data-v-d34b4deb"]]);export{Z as T}; +import{_ as T,s as B,A as D,q as n,G as H,D as N,cs as i,e as M,o as r,c as b,f as d,K as O,d as p,ct as R,g as l,w as u,a,z as V,u as _,M as S,t as q,C as z,m as A,n as E}from"./index-926884cb.js";const G=e=>(A("data-v-d34b4deb"),e=e(),E(),e),K={class:"home-track-compact-wrapper"},P=["src"],j=G(()=>a("div",{class:"play"},[a("span",{class:"material-symbols-rounded"},"play_arrow")],-1)),F={class:"info"},J={class:"title"},L=["href"],Q={class:"artist"},U={__name:"TrackCompact",props:{title:String,artist:String,cover:String,id:Number,href:String},emits:["play"],setup(e,{emit:C}){const t=e,w=C,x=B(),m=`/track/${D(String(t.id))}`,f=n(null),h=n(null),I=c=>{c.stopPropagation(),w("play")},$=()=>{var c,o;if(!((c=t==null?void 0:t.href)!=null&&c.includes("spotify.com"))){x.push(m);return}if((o=t==null?void 0:t.href)!=null&&o.includes("spotify.com/album/")){h.value.show();return}f.value.show()},s=n(t.cover);H(()=>t.cover,()=>{s.value=t.cover});const v=N(()=>i(s.value));return(c,o)=>{var y,g;const k=M("router-link");return r(),b("div",K,[(y=e.href)!=null&&y.includes("spotify.com/album/")?(r(),d(O,{key:0,ref_key:"addRelease",ref:h,album:{cover:v.value,name:e.title,artist:e.artist,id:e.href.replace("https://open.spotify.com/album/",""),href:e.href,releaseDate:null}},null,8,["album"])):p("",!0),(g=e.href)!=null&&g.includes("spotify.com/track/")?(r(),d(R,{key:1,ref_key:"addSong",ref:f,song:{cover:v.value,title:e.title,artist:e.artist,id:e.href.replace("https://open.spotify.com/track/",""),href:e.href,releaseDate:null}},null,8,["song"])):p("",!0),l(z,{class:"home-track-compact","with-hover":"",onClick:$},{default:u(()=>[a("div",{style:V({backgroundImage:`url(${_(i)(s.value)})`}),class:"cover",onClick:I},[a("img",{src:_(i)(s.value),class:"hidden",onError:o[0]||(o[0]=X=>s.value=null)},null,40,P),j],4),a("div",F,[a("span",J,[e.href?(r(),b("a",{key:1,href:e.href,class:"linkOnHover"},[l(S,{text:e.title},null,8,["text"])],8,L)):(r(),d(k,{key:0,to:m,class:"linkOnHover"},{default:u(()=>[l(S,{text:e.title},null,8,["text"])]),_:1}))]),l(k,{to:`/search/artist:${e.artist}`,class:"linkOnHover"},{default:u(()=>[a("span",Q,q(e.artist),1)]),_:1},8,["to"])])]),_:1})])}}},Z=T(U,[["__scopeId","data-v-d34b4deb"]]);export{Z as T}; diff --git a/src/ui/dist/assets/TrackCompact-9f5e6d25.js.gz b/src/ui/dist/assets/TrackCompact-9f5e6d25.js.gz new file mode 100644 index 000000000..c38872ea6 Binary files /dev/null and b/src/ui/dist/assets/TrackCompact-9f5e6d25.js.gz differ diff --git a/src/ui/dist/assets/Welcome-c9a11eb5.js b/src/ui/dist/assets/Welcome-51cf28ce.js similarity index 98% rename from src/ui/dist/assets/Welcome-c9a11eb5.js rename to src/ui/dist/assets/Welcome-51cf28ce.js index 3dec71bd7..1b9d25f10 100644 --- a/src/ui/dist/assets/Welcome-c9a11eb5.js +++ b/src/ui/dist/assets/Welcome-51cf28ce.js @@ -1 +1 @@ -import{_ as p,cp as r,o as i,c,a as e,O as v,cB as C,v as g,cC as S,e as T,F as b,j as k,b as u,bY as h,bP as _,d as w,f as I,m as R,n as x}from"./index-effe4d2f.js";const A={name:"ThemeSmall",props:{name:String},methods:{selected(){return r.getCurrentTheme()==this.name},select(){r.setTheme(this.name),this.$emit("selected")}}},B=["src"];function E(n,s,m,f,o,l){return i(),c("div",{onClick:s[0]||(s[0]=(...a)=>l.select&&l.select(...a)),class:"wrapper"},[e("img",{src:`/assets/img/themes/${this.name}.svg`,class:v({selected:l.selected()})},null,10,B)])}const Y=p(A,[["render",E],["__scopeId","data-v-321833b6"]]);const N={components:{ThemeSmall:Y},methods:{updateThemes(){this.mode++},redirect(n){r.open(n)},finalRedirectRestricted(){this.spotifyClientId||this.spotifyClientSecret||fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:"restricted",secret:"restricted"})}).then(n=>{n.status==200&&(setTimeout(()=>fetch("/api/releases"),1e3),this.mode++,setTimeout(()=>{this.$router.push("/")},6*1e3))})},async finalRedirect(){!this.spotifyClientId||!this.spotifyClientSecret||(await C(this.spotifyClientId,this.spotifyClientSecret),setTimeout(()=>fetch("/api/releases"),1e3),setTimeout(()=>fetch("/api/news/articles"),1e3),this.mode++,setTimeout(async()=>{await g(),this.$router.push("/")},6*1e3))}},data(){setInterval(()=>{if(this.mode<3){this.mode++;return}},7*1e3);const n=["dynamic","dark","light"],s=r.getCurrentTheme();return{mode:0,themes:n,themeSelected:s,spotifyClientId:"",spotifyClientSecret:""}},async mounted(){await S()||this.$router.push("/")}},t=n=>(R("data-v-9aa97202"),n=n(),x(),n),O={class:"welcome bouncy centred-column"},V={key:0,class:"first centred-column"},P=t(()=>e("p",null,"Welcome to",-1)),D=t(()=>e("h1",null,"reAudioPlayer ONE",-1)),F=[P,D],L={key:1,class:"first centred-column"},U=t(()=>e("p",null,"The free audio player with the most extensive catalogue",-1)),W=t(()=>e("h1",null,"ARE YOU READY?",-1)),H=[U,W],M={key:2,class:"first centred-column"},j=t(()=>e("h1",null,"Almost There",-1)),z=t(()=>e("p",null,"After a few configurations you're ready to go",-1)),G=[j,z],J={key:3,class:"permanent centred-column"},q=t(()=>e("h1",null,"Pick a Theme",-1)),K=t(()=>e("p",null,"You'll be able to change the theme at any point later on",-1)),Q=t(()=>e("br",null,null,-1)),X={class:"centred-column appear-delayed"},Z={key:4,class:"permanent centred-column"},$=t(()=>e("h1",null,"Let's integrate Spotify then!",-1)),ee=t(()=>e("p",null,"You'll be able to change the tokens at any point later on",-1)),te=t(()=>e("br",null,null,-1)),se={class:"centred-column appear-delayed"},oe=t(()=>e("p",null,"2) Create An App",-1)),ne=t(()=>e("p",null,"3) Enter any name and any description",-1)),ie=t(()=>e("p",null,[u("4) Edit the settings: set the redirect url to "),e("a",{href:"http://reap.ml/"},"http://reap.ml/")],-1)),le=t(()=>e("p",null,"5) Copy and enter the client id and secret into the corresponding input field",-1)),ce=t(()=>e("br",null,null,-1)),de={class:"wrapTogether"},re=t(()=>e("p",null,"Client ID: ",-1)),ae={class:"wrapTogether"},he=t(()=>e("p",null,"Client Secret: ",-1)),_e={class:"wrapTogether spaceBetween"},pe={key:5,class:"centred-column"},ue=t(()=>e("h1",null,"ALRIGHT!",-1)),me=t(()=>e("p",null,"You're ready to go",-1)),fe=[ue,me];function ye(n,s,m,f,o,l){const a=T("theme-small");return i(),c("div",O,[o.mode==0?(i(),c("div",V,F)):o.mode==1?(i(),c("div",L,H)):o.mode==2?(i(),c("div",M,G)):o.mode==3?(i(),c("div",J,[q,K,Q,e("div",X,[(i(),c("div",{class:"themes",key:o.themeSelected},[(i(!0),c(b,null,k(o.themes,(d,y)=>(i(),I(a,{onSelected:l.updateThemes,key:y,name:d},null,8,["onSelected","name"]))),128))]))])])):o.mode==4?(i(),c("div",Z,[$,ee,te,e("div",se,[e("p",null,[u("1) Head over to the "),e("a",{onClick:s[0]||(s[0]=()=>l.redirect("https://developer.spotify.com/dashboard/applications"))},"spotify developer dashboard")]),oe,ne,ie,le,ce,e("div",de,[re,h(e("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=d=>o.spotifyClientId=d)},null,512),[[_,o.spotifyClientId]])]),e("div",ae,[he,h(e("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=d=>o.spotifyClientSecret=d)},null,512),[[_,o.spotifyClientSecret]])]),e("div",_e,[e("button",{onClick:s[3]||(s[3]=(...d)=>l.finalRedirect&&l.finalRedirect(...d))},"continue"),e("button",{onClick:s[4]||(s[4]=(...d)=>l.finalRedirectRestricted&&l.finalRedirectRestricted(...d)),class:"restrictedMode"},"enter restricted mode")])])])):o.mode==5?(i(),c("div",pe,fe)):w("",!0)])}const Ce=p(N,[["render",ye],["__scopeId","data-v-9aa97202"]]);export{Ce as default}; +import{_ as p,cp as r,o as i,c,a as e,O as v,cB as C,v as g,cC as S,e as T,F as b,j as k,b as u,bY as h,bP as _,d as w,f as I,m as R,n as x}from"./index-926884cb.js";const A={name:"ThemeSmall",props:{name:String},methods:{selected(){return r.getCurrentTheme()==this.name},select(){r.setTheme(this.name),this.$emit("selected")}}},B=["src"];function E(n,s,m,f,o,l){return i(),c("div",{onClick:s[0]||(s[0]=(...a)=>l.select&&l.select(...a)),class:"wrapper"},[e("img",{src:`/assets/img/themes/${this.name}.svg`,class:v({selected:l.selected()})},null,10,B)])}const Y=p(A,[["render",E],["__scopeId","data-v-321833b6"]]);const N={components:{ThemeSmall:Y},methods:{updateThemes(){this.mode++},redirect(n){r.open(n)},finalRedirectRestricted(){this.spotifyClientId||this.spotifyClientSecret||fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:"restricted",secret:"restricted"})}).then(n=>{n.status==200&&(setTimeout(()=>fetch("/api/releases"),1e3),this.mode++,setTimeout(()=>{this.$router.push("/")},6*1e3))})},async finalRedirect(){!this.spotifyClientId||!this.spotifyClientSecret||(await C(this.spotifyClientId,this.spotifyClientSecret),setTimeout(()=>fetch("/api/releases"),1e3),setTimeout(()=>fetch("/api/news/articles"),1e3),this.mode++,setTimeout(async()=>{await g(),this.$router.push("/")},6*1e3))}},data(){setInterval(()=>{if(this.mode<3){this.mode++;return}},7*1e3);const n=["dynamic","dark","light"],s=r.getCurrentTheme();return{mode:0,themes:n,themeSelected:s,spotifyClientId:"",spotifyClientSecret:""}},async mounted(){await S()||this.$router.push("/")}},t=n=>(R("data-v-9aa97202"),n=n(),x(),n),O={class:"welcome bouncy centred-column"},V={key:0,class:"first centred-column"},P=t(()=>e("p",null,"Welcome to",-1)),D=t(()=>e("h1",null,"reAudioPlayer ONE",-1)),F=[P,D],L={key:1,class:"first centred-column"},U=t(()=>e("p",null,"The free audio player with the most extensive catalogue",-1)),W=t(()=>e("h1",null,"ARE YOU READY?",-1)),H=[U,W],M={key:2,class:"first centred-column"},j=t(()=>e("h1",null,"Almost There",-1)),z=t(()=>e("p",null,"After a few configurations you're ready to go",-1)),G=[j,z],J={key:3,class:"permanent centred-column"},q=t(()=>e("h1",null,"Pick a Theme",-1)),K=t(()=>e("p",null,"You'll be able to change the theme at any point later on",-1)),Q=t(()=>e("br",null,null,-1)),X={class:"centred-column appear-delayed"},Z={key:4,class:"permanent centred-column"},$=t(()=>e("h1",null,"Let's integrate Spotify then!",-1)),ee=t(()=>e("p",null,"You'll be able to change the tokens at any point later on",-1)),te=t(()=>e("br",null,null,-1)),se={class:"centred-column appear-delayed"},oe=t(()=>e("p",null,"2) Create An App",-1)),ne=t(()=>e("p",null,"3) Enter any name and any description",-1)),ie=t(()=>e("p",null,[u("4) Edit the settings: set the redirect url to "),e("a",{href:"http://reap.ml/"},"http://reap.ml/")],-1)),le=t(()=>e("p",null,"5) Copy and enter the client id and secret into the corresponding input field",-1)),ce=t(()=>e("br",null,null,-1)),de={class:"wrapTogether"},re=t(()=>e("p",null,"Client ID: ",-1)),ae={class:"wrapTogether"},he=t(()=>e("p",null,"Client Secret: ",-1)),_e={class:"wrapTogether spaceBetween"},pe={key:5,class:"centred-column"},ue=t(()=>e("h1",null,"ALRIGHT!",-1)),me=t(()=>e("p",null,"You're ready to go",-1)),fe=[ue,me];function ye(n,s,m,f,o,l){const a=T("theme-small");return i(),c("div",O,[o.mode==0?(i(),c("div",V,F)):o.mode==1?(i(),c("div",L,H)):o.mode==2?(i(),c("div",M,G)):o.mode==3?(i(),c("div",J,[q,K,Q,e("div",X,[(i(),c("div",{class:"themes",key:o.themeSelected},[(i(!0),c(b,null,k(o.themes,(d,y)=>(i(),I(a,{onSelected:l.updateThemes,key:y,name:d},null,8,["onSelected","name"]))),128))]))])])):o.mode==4?(i(),c("div",Z,[$,ee,te,e("div",se,[e("p",null,[u("1) Head over to the "),e("a",{onClick:s[0]||(s[0]=()=>l.redirect("https://developer.spotify.com/dashboard/applications"))},"spotify developer dashboard")]),oe,ne,ie,le,ce,e("div",de,[re,h(e("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=d=>o.spotifyClientId=d)},null,512),[[_,o.spotifyClientId]])]),e("div",ae,[he,h(e("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=d=>o.spotifyClientSecret=d)},null,512),[[_,o.spotifyClientSecret]])]),e("div",_e,[e("button",{onClick:s[3]||(s[3]=(...d)=>l.finalRedirect&&l.finalRedirect(...d))},"continue"),e("button",{onClick:s[4]||(s[4]=(...d)=>l.finalRedirectRestricted&&l.finalRedirectRestricted(...d)),class:"restrictedMode"},"enter restricted mode")])])])):o.mode==5?(i(),c("div",pe,fe)):w("",!0)])}const Ce=p(N,[["render",ye],["__scopeId","data-v-9aa97202"]]);export{Ce as default}; diff --git a/src/ui/dist/assets/Welcome-51cf28ce.js.gz b/src/ui/dist/assets/Welcome-51cf28ce.js.gz new file mode 100644 index 000000000..6d0bcf339 Binary files /dev/null and b/src/ui/dist/assets/Welcome-51cf28ce.js.gz differ diff --git a/src/ui/dist/assets/Welcome-c9a11eb5.js.gz b/src/ui/dist/assets/Welcome-c9a11eb5.js.gz deleted file mode 100644 index 1739e5fcb..000000000 Binary files a/src/ui/dist/assets/Welcome-c9a11eb5.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/gistClient-63edeca1.js.gz b/src/ui/dist/assets/gistClient-63edeca1.js.gz deleted file mode 100644 index 43358e07d..000000000 Binary files a/src/ui/dist/assets/gistClient-63edeca1.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/gistClient-63edeca1.js b/src/ui/dist/assets/gistClient-c2987d49.js similarity index 97% rename from src/ui/dist/assets/gistClient-63edeca1.js rename to src/ui/dist/assets/gistClient-c2987d49.js index 5b32bef60..4a192247f 100644 --- a/src/ui/dist/assets/gistClient-63edeca1.js +++ b/src/ui/dist/assets/gistClient-c2987d49.js @@ -1,4 +1,4 @@ -import{cm as w,cr as d}from"./index-effe4d2f.js";const r=async(t=null)=>{const a=await w(),n=t??a.github.githubPat;if(!n)throw new Error("No GitHub PAT found");return{Authorization:"Bearer "+n}},y=(t,a="reAudioPlayer One",n="Fully managed with reAudioPlayer One",e=!1)=>{const s={public:e,description:n,files:{[`_${a}.md`]:{content:`# reAudioPlayer One +import{cm as w,cr as d}from"./index-926884cb.js";const r=async(t=null)=>{const a=await w(),n=t??a.github.githubPat;if(!n)throw new Error("No GitHub PAT found");return{Authorization:"Bearer "+n}},y=(t,a="reAudioPlayer One",n="Fully managed with reAudioPlayer One",e=!1)=>{const s={public:e,description:n,files:{[`_${a}.md`]:{content:`# reAudioPlayer One This gist was created with reAudioPlayer One diff --git a/src/ui/dist/assets/gistClient-c2987d49.js.gz b/src/ui/dist/assets/gistClient-c2987d49.js.gz new file mode 100644 index 000000000..3f8de2e9b Binary files /dev/null and b/src/ui/dist/assets/gistClient-c2987d49.js.gz differ diff --git a/src/ui/dist/assets/index-1de74717.css b/src/ui/dist/assets/index-1de74717.css deleted file mode 100644 index e645f468f..000000000 --- a/src/ui/dist/assets/index-1de74717.css +++ /dev/null @@ -1 +0,0 @@ -.search[data-v-99a1f210]{padding:20px;height:calc(100% - 40px)}input[data-v-99a1f210]{margin-left:10px;margin-bottom:20px;width:20vw!important} diff --git a/src/ui/dist/assets/index-2f9f0259.css b/src/ui/dist/assets/index-2f9f0259.css new file mode 100644 index 000000000..37a2dc72f --- /dev/null +++ b/src/ui/dist/assets/index-2f9f0259.css @@ -0,0 +1 @@ +.search[data-v-28db7468]{padding:20px;height:calc(100% - 40px)}input[data-v-28db7468]{margin-left:10px;margin-bottom:20px;width:20vw!important} diff --git a/src/ui/dist/assets/index-5d1bd560.js b/src/ui/dist/assets/index-45d67ac2.js similarity index 95% rename from src/ui/dist/assets/index-5d1bd560.js rename to src/ui/dist/assets/index-45d67ac2.js index 1dd1c5671..b760fef49 100644 --- a/src/ui/dist/assets/index-5d1bd560.js +++ b/src/ui/dist/assets/index-45d67ac2.js @@ -1 +1 @@ -import{_ as k,o as s,c as i,a as n,b as m,t as v,d as _,r as j,e as I,f as d,w as r,g as l,C as P,h as B,i as D,F as h,j as p,P as x,u as w,p as E,k as F,l as b,m as H,n as q,q as S,s as T,v as R,x as V,I as G,y as L}from"./index-effe4d2f.js";import{T as $}from"./TrackCompact-8c571f42.js";import{P as C}from"./PlaylistEntry-9c8199d3.js";import{s as M}from"./spotify-50eca206.js";import{P as J}from"./PlaylistItem-8e935ec4.js";import"./EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js";import"./playerInPicture-af203fdf.js";const W={name:"FlexShelf",props:{heading:String,icon:String}},z={class:"shelf"},A={class:"header"},K={key:0},Q={key:0,class:"icon material-symbols-round"},U={class:"items"};function X(e,a,u,c,t,o){return s(),i("div",z,[n("div",A,[u.heading||u.icon?(s(),i("h2",K,[m(v(u.heading),1),u.icon?(s(),i("span",Q,v(u.icon),1)):_("",!0)])):_("",!0)]),n("div",U,[j(e.$slots,"default",{},void 0,!0)])])}const f=k(W,[["render",X],["__scopeId","data-v-3f16aa97"]]);const Y={class:"title"},Z={key:0,class:"material-symbols-rounded"},ee={__name:"Playlist",props:{name:{type:String,required:!0},cover:{type:String,required:!0},href:{type:String,required:!0},type:{type:String,default:"classic"}},setup(e){return(a,u)=>{const c=I("router-link");return s(),d(c,{to:e.href,class:"no-underline"},{default:r(()=>[l(P,{class:"home-playlist drop-shadow-md","with-hover":""},{default:r(()=>[l(B,{src:e.cover,type:"playlist",name:e.name},null,8,["src","name"]),n("div",Y,[e.type!="classic"?(s(),i("span",Z,v(e.type=="smart"?"neurology":"bolt"),1)):_("",!0),n("h4",null,v(e.name),1)])]),_:1})]),_:1},8,["to"])}}},te=k(ee,[["__scopeId","data-v-da1ad591"]]),se=e=>(H("data-v-2f517464"),e=e(),q(),e),ae={class:"home"},oe={class:"main"},ne={key:0,class:"playlists"},ie={key:1,class:"liked"},le={key:2,class:"breaking"},re={class:"side"},ce={key:0,class:"releases"},de={key:1,class:"disovery"},ue={key:2,class:"recommendations"},_e=se(()=>n("h2",null,"Recommendations",-1)),he={name:"Home",data(){const e=new Date;return{greeting:e.getHours()<12?"Good morning":e.getHours()<18?"Good afternoon":"Good evening",releases:[],picks:[],songs:[],recommendations:[],data:F()}},mounted(){fetch("/api/releases").then(e=>e.json()).then(e=>{this.releases=e.slice(0,3)}),this.pick()},computed:{playlists(){return this.data.playlists},liked(){return b("liked").songs.slice(0,3)},breaking(){return b("breaking").songs.slice(0,3)}},methods:{playDiscover(e){fetch("/api/player/load",{method:"POST",body:JSON.stringify({id:e.id,type:"track"})})},playRecommendation(e){const a=new CustomEvent("player.play",{detail:{artist:e.artist,title:e.title,source:e.source||e.url||e.href}});window.dispatchEvent(a)},async pick(){if(!this.data.playlists.length){setTimeout(()=>this.pick(),2e3);return}if(this.songs=this.playlists.map(e=>{var a;return((a=b(e.id))==null?void 0:a.songs)||[]}).flat(),!(this.songs.length<3)){for(let e=0;e<3;e++)this.picks.push(this.songs[Math.floor(Math.random()*this.songs.length)]);fetch("/api/spotify/recommendations",{method:"POST",body:JSON.stringify({query:`${this.picks[0].artist} ${this.picks[0].title}`})}).then(e=>e.json()).then(e=>{this.recommendations=e.slice(0,3)})}}}},pe=D({...he,setup(e){return(a,u)=>{const c=I("router-link");return s(),i("div",ae,[n("div",oe,[a.playlists.length?(s(),i("div",ne,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/playlists"},{default:r(()=>[m("Playlists")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.playlists,(t,o)=>(s(),d(te,{key:o,cover:t.cover,href:t==null?void 0:t.href,name:t.name,type:t.type},null,8,["cover","href","name","type"]))),128))]),_:1})])):_("",!0),a.liked.length?(s(),i("div",ie,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/tracks"},{default:r(()=>[m("Liked Songs")]),_:1})]),l(x),(s(!0),i(h,null,p(a.liked,(t,o)=>(s(),d(C,{key:o,index:o,"playlist-id":-1,song:t,"with-cover":""},null,8,["index","song"]))),128))])):_("",!0),a.breaking.length?(s(),i("div",le,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/tracks/breaking"},{default:r(()=>[m("Breaking Songs")]),_:1})]),l(x),(s(!0),i(h,null,p(a.breaking,(t,o)=>(s(),d(C,{key:o,index:o,"playlist-id":-2,song:t,"with-cover":""},null,8,["index","song"]))),128))])):_("",!0)]),n("div",re,[a.releases.length?(s(),i("div",ce,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/releases"},{default:r(()=>[m("Out now")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.releases,(t,o)=>(s(),d($,{key:o,artist:t.artist,cover:t.cover,href:t.url,title:t.title,onPlay:()=>a.playRecommendation(t)},null,8,["artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0),a.picks.length?(s(),i("div",de,[n("h2",null,[l(c,{class:"linkOnHover",to:"/discover"},{default:r(()=>[m("Discover")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.picks,(t,o)=>(s(),d($,{id:t.id,key:o,artist:t.artist,cover:w(E)(t.cover),href:t.href,title:t.title,onPlay:()=>a.playDiscover(t)},null,8,["id","artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0),a.recommendations.length?(s(),i("div",ue,[_e,l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.recommendations,(t,o)=>(s(),d($,{key:o,artist:t.artist,cover:t.cover,href:t.href,title:t.title,onPlay:()=>a.playRecommendation(t)},null,8,["artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0)])])}}});const ye=k(pe,[["__scopeId","data-v-2f517464"]]),g=e=>(H("data-v-c0ed4691"),e=e(),q(),e),me={class:"onboarding p-4"},fe=g(()=>n("h1",null,"So nice to meet you!",-1)),ve=g(()=>n("p",null,"Let's get you set up",-1)),ke={class:"grid grid-cols-2 gap-4 mt-8"},ge=g(()=>n("div",{class:"flex flex-row items-center"},[n("span",{class:"material-symbols-rounded ms-wght-700 text-4xl mr-4"},"add"),n("h2",null,"Create your first playlist")],-1)),be={class:"flex flex-row justify-end w-full"},Se={class:"flex flex-row items-center"},$e=g(()=>n("h2",null,"Import from Spotify",-1)),Pe={class:"spotify-playlists"},we=D({__name:"Onboarding",setup(e){const a=S([]),u=S(!1),c=S(null);T(),R().then(o=>{u.value=o}),fetch("/api/spotify/playlists").then(o=>o.json()).then(o=>{a.value=o});const t={fields:[{name:"name",label:"Name",placeholder:"Playlist name",icon:"title",type:"text",required:!0},{name:"description",label:"Description",placeholder:"Playlist description",icon:"description",type:"text",required:!1}],submit:{label:"Create",action:async()=>{const o=c.value.toObject();await L(o.name,o.description)}}};return(o,O)=>(s(),i("div",me,[fe,ve,n("div",ke,[l(P,{class:"p-4"},{default:r(()=>[ge,l(V,{ref_key:"createForm",ref:c,options:t.fields},null,8,["options"]),n("div",be,[l(G,{onClick:O[0]||(O[0]=y=>t.submit.action()),icon:"add",label:t.submit.label},null,8,["label"])])]),_:1}),a.value.length?(s(),d(P,{key:0,class:"p-4"},{default:r(()=>[n("div",Se,[l(w(M),{class:"spotify mr-4"}),$e]),n("div",Pe,[(s(!0),i(h,null,p(a.value,(y,N)=>(s(),d(J,{key:N,cover:y.cover,description:y.description,title:y.name,id:y.id,spotify:!0,href:`https://open.spotify.com/playlist/${y.id}`},null,8,["cover","description","title","id","href"]))),128))])]),_:1})):_("",!0)])]))}});const Oe=k(we,[["__scopeId","data-v-c0ed4691"]]),Ne={__name:"index",setup(e){const a=F();return(u,c)=>w(a).notEmpty?(s(),d(ye,{key:0})):(s(),d(Oe,{key:1}))}};export{Ne as default}; +import{_ as k,o as s,c as i,a as n,b as m,t as v,d as _,r as j,e as I,f as d,w as r,g as l,C as P,h as B,i as D,F as h,j as p,P as x,u as w,p as E,k as F,l as b,m as H,n as q,q as S,s as T,v as R,x as V,I as G,y as L}from"./index-926884cb.js";import{T as $}from"./TrackCompact-9f5e6d25.js";import{P as C}from"./PlaylistEntry-c58cccb9.js";import{s as M}from"./spotify-3cee06ae.js";import{P as J}from"./PlaylistItem-705d9df8.js";import"./EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js";import"./playerInPicture-af203fdf.js";const W={name:"FlexShelf",props:{heading:String,icon:String}},z={class:"shelf"},A={class:"header"},K={key:0},Q={key:0,class:"icon material-symbols-round"},U={class:"items"};function X(e,a,u,c,t,o){return s(),i("div",z,[n("div",A,[u.heading||u.icon?(s(),i("h2",K,[m(v(u.heading),1),u.icon?(s(),i("span",Q,v(u.icon),1)):_("",!0)])):_("",!0)]),n("div",U,[j(e.$slots,"default",{},void 0,!0)])])}const f=k(W,[["render",X],["__scopeId","data-v-3f16aa97"]]);const Y={class:"title"},Z={key:0,class:"material-symbols-rounded"},ee={__name:"Playlist",props:{name:{type:String,required:!0},cover:{type:String,required:!0},href:{type:String,required:!0},type:{type:String,default:"classic"}},setup(e){return(a,u)=>{const c=I("router-link");return s(),d(c,{to:e.href,class:"no-underline"},{default:r(()=>[l(P,{class:"home-playlist drop-shadow-md","with-hover":""},{default:r(()=>[l(B,{src:e.cover,type:"playlist",name:e.name},null,8,["src","name"]),n("div",Y,[e.type!="classic"?(s(),i("span",Z,v(e.type=="smart"?"neurology":"bolt"),1)):_("",!0),n("h4",null,v(e.name),1)])]),_:1})]),_:1},8,["to"])}}},te=k(ee,[["__scopeId","data-v-da1ad591"]]),se=e=>(H("data-v-2f517464"),e=e(),q(),e),ae={class:"home"},oe={class:"main"},ne={key:0,class:"playlists"},ie={key:1,class:"liked"},le={key:2,class:"breaking"},re={class:"side"},ce={key:0,class:"releases"},de={key:1,class:"disovery"},ue={key:2,class:"recommendations"},_e=se(()=>n("h2",null,"Recommendations",-1)),he={name:"Home",data(){const e=new Date;return{greeting:e.getHours()<12?"Good morning":e.getHours()<18?"Good afternoon":"Good evening",releases:[],picks:[],songs:[],recommendations:[],data:F()}},mounted(){fetch("/api/releases").then(e=>e.json()).then(e=>{this.releases=e.slice(0,3)}),this.pick()},computed:{playlists(){return this.data.playlists},liked(){return b("liked").songs.slice(0,3)},breaking(){return b("breaking").songs.slice(0,3)}},methods:{playDiscover(e){fetch("/api/player/load",{method:"POST",body:JSON.stringify({id:e.id,type:"track"})})},playRecommendation(e){const a=new CustomEvent("player.play",{detail:{artist:e.artist,title:e.title,source:e.source||e.url||e.href}});window.dispatchEvent(a)},async pick(){if(!this.data.playlists.length){setTimeout(()=>this.pick(),2e3);return}if(this.songs=this.playlists.map(e=>{var a;return((a=b(e.id))==null?void 0:a.songs)||[]}).flat(),!(this.songs.length<3)){for(let e=0;e<3;e++)this.picks.push(this.songs[Math.floor(Math.random()*this.songs.length)]);fetch("/api/spotify/recommendations",{method:"POST",body:JSON.stringify({query:`${this.picks[0].artist} ${this.picks[0].title}`})}).then(e=>e.json()).then(e=>{this.recommendations=e.slice(0,3)})}}}},pe=D({...he,setup(e){return(a,u)=>{const c=I("router-link");return s(),i("div",ae,[n("div",oe,[a.playlists.length?(s(),i("div",ne,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/playlists"},{default:r(()=>[m("Playlists")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.playlists,(t,o)=>(s(),d(te,{key:o,cover:t.cover,href:t==null?void 0:t.href,name:t.name,type:t.type},null,8,["cover","href","name","type"]))),128))]),_:1})])):_("",!0),a.liked.length?(s(),i("div",ie,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/tracks"},{default:r(()=>[m("Liked Songs")]),_:1})]),l(x),(s(!0),i(h,null,p(a.liked,(t,o)=>(s(),d(C,{key:o,index:o,"playlist-id":-1,song:t,"with-cover":""},null,8,["index","song"]))),128))])):_("",!0),a.breaking.length?(s(),i("div",le,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/tracks/breaking"},{default:r(()=>[m("Breaking Songs")]),_:1})]),l(x),(s(!0),i(h,null,p(a.breaking,(t,o)=>(s(),d(C,{key:o,index:o,"playlist-id":-2,song:t,"with-cover":""},null,8,["index","song"]))),128))])):_("",!0)]),n("div",re,[a.releases.length?(s(),i("div",ce,[n("h2",null,[l(c,{class:"linkOnHover",to:"/collection/releases"},{default:r(()=>[m("Out now")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.releases,(t,o)=>(s(),d($,{key:o,artist:t.artist,cover:t.cover,href:t.url,title:t.title,onPlay:()=>a.playRecommendation(t)},null,8,["artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0),a.picks.length?(s(),i("div",de,[n("h2",null,[l(c,{class:"linkOnHover",to:"/discover"},{default:r(()=>[m("Discover")]),_:1})]),l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.picks,(t,o)=>(s(),d($,{id:t.id,key:o,artist:t.artist,cover:w(E)(t.cover),href:t.href,title:t.title,onPlay:()=>a.playDiscover(t)},null,8,["id","artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0),a.recommendations.length?(s(),i("div",ue,[_e,l(f,null,{default:r(()=>[(s(!0),i(h,null,p(a.recommendations,(t,o)=>(s(),d($,{key:o,artist:t.artist,cover:t.cover,href:t.href,title:t.title,onPlay:()=>a.playRecommendation(t)},null,8,["artist","cover","href","title","onPlay"]))),128))]),_:1})])):_("",!0)])])}}});const ye=k(pe,[["__scopeId","data-v-2f517464"]]),g=e=>(H("data-v-c0ed4691"),e=e(),q(),e),me={class:"onboarding p-4"},fe=g(()=>n("h1",null,"So nice to meet you!",-1)),ve=g(()=>n("p",null,"Let's get you set up",-1)),ke={class:"grid grid-cols-2 gap-4 mt-8"},ge=g(()=>n("div",{class:"flex flex-row items-center"},[n("span",{class:"material-symbols-rounded ms-wght-700 text-4xl mr-4"},"add"),n("h2",null,"Create your first playlist")],-1)),be={class:"flex flex-row justify-end w-full"},Se={class:"flex flex-row items-center"},$e=g(()=>n("h2",null,"Import from Spotify",-1)),Pe={class:"spotify-playlists"},we=D({__name:"Onboarding",setup(e){const a=S([]),u=S(!1),c=S(null);T(),R().then(o=>{u.value=o}),fetch("/api/spotify/playlists").then(o=>o.json()).then(o=>{a.value=o});const t={fields:[{name:"name",label:"Name",placeholder:"Playlist name",icon:"title",type:"text",required:!0},{name:"description",label:"Description",placeholder:"Playlist description",icon:"description",type:"text",required:!1}],submit:{label:"Create",action:async()=>{const o=c.value.toObject();await L(o.name,o.description)}}};return(o,O)=>(s(),i("div",me,[fe,ve,n("div",ke,[l(P,{class:"p-4"},{default:r(()=>[ge,l(V,{ref_key:"createForm",ref:c,options:t.fields},null,8,["options"]),n("div",be,[l(G,{onClick:O[0]||(O[0]=y=>t.submit.action()),icon:"add",label:t.submit.label},null,8,["label"])])]),_:1}),a.value.length?(s(),d(P,{key:0,class:"p-4"},{default:r(()=>[n("div",Se,[l(w(M),{class:"spotify mr-4"}),$e]),n("div",Pe,[(s(!0),i(h,null,p(a.value,(y,N)=>(s(),d(J,{key:N,cover:y.cover,description:y.description,title:y.name,id:y.id,spotify:!0,href:`https://open.spotify.com/playlist/${y.id}`},null,8,["cover","description","title","id","href"]))),128))])]),_:1})):_("",!0)])]))}});const Oe=k(we,[["__scopeId","data-v-c0ed4691"]]),Ne={__name:"index",setup(e){const a=F();return(u,c)=>w(a).notEmpty?(s(),d(ye,{key:0})):(s(),d(Oe,{key:1}))}};export{Ne as default}; diff --git a/src/ui/dist/assets/index-45d67ac2.js.gz b/src/ui/dist/assets/index-45d67ac2.js.gz new file mode 100644 index 000000000..23222d4d7 Binary files /dev/null and b/src/ui/dist/assets/index-45d67ac2.js.gz differ diff --git a/src/ui/dist/assets/index-47e6e554.js b/src/ui/dist/assets/index-47e6e554.js deleted file mode 100644 index 5e7a1cf28..000000000 --- a/src/ui/dist/assets/index-47e6e554.js +++ /dev/null @@ -1 +0,0 @@ -import{i as E,B as N,q as y,D as o,S as P,T as R,E as T,G as j,o as s,c as a,g as b,L as C,a as n,t as L,F as i,H as c,j as p,f as v,d as h,m as O,n as V,_ as A}from"./index-effe4d2f.js";const r=_=>(O("data-v-99a1f210"),_=_(),V(),_),D={class:"search"},F={key:0,class:"fill-page"},G={key:1,class:"fill-page"},H=r(()=>n("h1",null,"Something went wrong",-1)),J={class:"top flex gap-8"},M={class:"top min-w-max"},Y=r(()=>n("h2",null,"Top Result",-1)),z={key:0,class:"list songs flex-1"},K=r(()=>n("h2",null,"Songs",-1)),Q={key:0,class:"list artists"},U=r(()=>n("h2",null,"Artists",-1)),W={key:1,class:"list playlists"},X=r(()=>n("h2",null,"Playlists",-1)),Z={key:2,class:"list albums"},$=r(()=>n("h2",null,"Albums",-1)),ee=E({__name:"index",setup(_){const B=N(),m=y(!0),d=y(null),u=y(null),I=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t[0]}),f=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="song")}),g=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="artist")}),S=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="playlist")}),k=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="album")}),x=o(()=>B.params.query),q=o(()=>[...P,...R]),w=async()=>{m.value=!0,d.value=null;const e=await fetch("/api/search",{method:"POST",body:JSON.stringify({query:x.value,scope:q.value})});if(m.value=!1,!e.ok){d.value=await e.text();return}const t=await e.json();u.value=t};return T(w),j(x,w),(e,t)=>(s(),a("div",D,[m.value?(s(),a("div",F,[b(C)])):d.value?(s(),a("div",G,[H,n("p",null,L(d.value),1)])):(s(),a(i,{key:2},[n("div",J,[n("div",M,[Y,b(c,{item:I.value,large:""},null,8,["item"])]),f.value.length?(s(),a("div",z,[K,(s(!0),a(i,null,p(f.value,l=>(s(),v(c,{item:l},null,8,["item"]))),256))])):h("",!0)]),g.value.length?(s(),a("div",Q,[U,(s(!0),a(i,null,p(g.value,l=>(s(),v(c,{item:l},null,8,["item"]))),256))])):h("",!0),S.value.length?(s(),a("div",W,[X,(s(!0),a(i,null,p(S.value,l=>(s(),v(c,{item:l},null,8,["item"]))),256))])):h("",!0),k.value.length?(s(),a("div",Z,[$,(s(!0),a(i,null,p(k.value,l=>(s(),v(c,{item:l},null,8,["item"]))),256))])):h("",!0)],64))]))}});const se=A(ee,[["__scopeId","data-v-99a1f210"]]);export{se as default}; diff --git a/src/ui/dist/assets/index-47e6e554.js.gz b/src/ui/dist/assets/index-47e6e554.js.gz deleted file mode 100644 index 7355d6a18..000000000 Binary files a/src/ui/dist/assets/index-47e6e554.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-5d1bd560.js.gz b/src/ui/dist/assets/index-5d1bd560.js.gz deleted file mode 100644 index a6415bcce..000000000 Binary files a/src/ui/dist/assets/index-5d1bd560.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-5f698628.css.gz b/src/ui/dist/assets/index-5f698628.css.gz deleted file mode 100644 index ac64efd5a..000000000 Binary files a/src/ui/dist/assets/index-5f698628.css.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-712f8d27.js b/src/ui/dist/assets/index-6034035d.js similarity index 98% rename from src/ui/dist/assets/index-712f8d27.js rename to src/ui/dist/assets/index-6034035d.js index 5c198e521..f7eb55143 100644 --- a/src/ui/dist/assets/index-712f8d27.js +++ b/src/ui/dist/assets/index-6034035d.js @@ -1 +1 @@ -import{i as q,cz as N,q as x,c3 as S,o as s,c as n,a as o,F as r,j as B,f as C,w as y,b as t,t as a,C as h,g as p,h as z,d,u as f,cA as D,z as F,L as O,O as T,x as V,I as $,cr as j,m as L,n as A,_ as E}from"./index-effe4d2f.js";const i=v=>(L("data-v-cad4addf"),v=v(),A(),v),M={class:"downloader py-2 pr-2 grid gap-4 grid-cols-2 items-start"},P={class:"downloads"},Y={class:"main"},G={class:"m-0 mb-4"},H={class:"status"},J={class:"flex flex-col"},K={key:0,class:"info"},Q=i(()=>o("span",{class:"material-symbols-rounded"},"cloud",-1)),R={key:1,class:"info"},U=i(()=>o("span",{class:"material-symbols-rounded"},"file_download",-1)),W={class:"info"},X=i(()=>o("span",{class:"material-symbols-rounded"},"percent",-1)),Z={key:2,class:"info"},ee=i(()=>o("span",{class:"material-symbols-rounded"},"speed",-1)),oe={key:3,class:"info"},se=i(()=>o("span",{class:"material-symbols-rounded"},"timer",-1)),ne=i(()=>o("div",{class:"error"},[o("span",null,"This song could not be downloaded:"),o("ul",{class:"block list-disc ml-8"},[o("li",null," verify that the source link is working "),o("li",null,"try again later")])],-1)),ae={key:0,class:"info"},le=i(()=>o("span",{class:"material-symbols-rounded"},"link",-1)),de=["href"],re={class:"wrap-progress"},te=["aria-valuenow"],ie={key:1,class:"material-symbols-rounded downloading"},ce=["onClick"],ue=["onClick"],_e=["onClick"],me={key:1,class:"col-span-2 flex flex-row justify-center items-center"},pe={class:"new-download"},fe=q({__name:"index",setup(v){const _=N(),g=l=>{j.addYesNo("Are you sure you want to redownload this song?",null,null,()=>{console.log("[downloader] reDownload",l),_.downloadFromDb(l)})},m={title:"",artist:"",album:"",cover:"",source:"",href:""},w=x(null),c=x([{name:"source",type:"text",accept:"audio/mp3",required:!0,onChange:async l=>{const u=await S(l);c.value.find(e=>e.name==="title").value=u.title,c.value.find(e=>e.name==="artist").value=u.artist,c.value.find(e=>e.name==="album").value=u.album,c.value.find(e=>e.name==="cover").value=u.cover,c.value.find(e=>e.name==="source").value=u.source},value:m.source},{name:"title",type:"text",icon:"title",required:!0,value:m.title},{name:"artist",type:"text",icon:"person",required:!0,value:m.artist},{name:"album",type:"text",icon:"album",value:m.album},{name:"cover",type:"upload",accept:"image/*",imagePreview:!0,value:m.cover}]),I=async()=>{const l=w.value.toObject();l.id=new Date().getTime(),console.log("[downloader] requestDownload",l),_.downloadOther(l)};return(l,u)=>(s(),n("div",M,[o("div",P,[(s(!0),n(r,null,B(f(_).states,e=>{var k;return s(),n(r,{key:e.songId},[e.internal?d("",!0):(s(),C(h,{key:0,class:T([["song",{downloading:((k=f(_).states[e.songId])==null?void 0:k.status)=="downloading"}],"p-4 card items-center"])},{default:y(()=>[e.status!=="pending"?(s(),n(r,{key:0},[o("main",Y,[o("h2",G,[e.song?(s(),n(r,{key:0},[t(a(e.song.title),1)],64)):(s(),n(r,{key:1},[t(a(e.filename),1)],64))]),o("div",H,[e.song?(s(),C(h,{key:0,class:"info p-4"},{default:y(()=>[p(z,{src:e.song.cover,class:"cover"},null,8,["src"]),o("div",J,[o("span",null,a(e.song.album),1),o("span",null,a(e.song.artist),1)])]),_:2},1024)):d("",!0),e.status!=="error"?(s(),n(r,{key:1},[e.downloaded||e.total?(s(),n("div",K,[Q,t(" "+a(f(D)(e.downloaded))+" / "+a(f(D)(e.total)),1)])):d("",!0),e.chunk?(s(),n("div",R,[U,t(" "+a(e.chunk),1)])):d("",!0),o("div",W,[X,t(" "+a(e.status==="downloading"?e.percent:100)+"% ",1)]),e.speed!=="0"?(s(),n("div",Z,[ee,t(" "+a(e.speed),1)])):d("",!0),e.elapsed!=="0"||e.eta!==0?(s(),n("div",oe,[se,t(" "+a(e.elapsed)+" / "+a(e.eta)+"s ",1)])):d("",!0)],64)):(s(),n(r,{key:2},[ne,e.song?(s(),n("div",ae,[le,o("a",{href:e.song.source,target:"_blank",rel:"noopener noreferrer"},a(e.song.source),9,de)])):d("",!0)],64))])]),o("aside",null,[o("div",re,[e.status=="downloading"?(s(),n("div",{key:0,class:"progress-bar",role:"progressbar","aria-valuenow":e.percent,"aria-valuemin":"0","aria-valuemax":"100",style:F({"--progress":e.percent+"%"})},null,12,te)):d("",!0),e.status=="downloading"?(s(),n("span",ie," south ")):e.status=="finished"?(s(),n("span",{key:2,class:"material-symbols-rounded cursor-pointer finished",onClick:b=>f(_).download(e.songId)}," download_for_offline ",8,ce)):e.status=="downloaded"?(s(),n("span",{key:3,class:"material-symbols-rounded cursor-pointer downloaded",onClick:b=>g(e.songId)}," download_done ",8,ue)):e.status=="error"?(s(),n("span",{key:4,class:"material-symbols-rounded cursor-pointer error",onClick:b=>g(e.songId)}," error ",8,_e)):d("",!0)])])],64)):(s(),n("div",me,[p(O)]))]),_:2},1032,["class"]))],64)}),128))]),o("div",pe,[p(h,{class:"custom p-4 flex flex-col"},{default:y(()=>[p(V,{ref_key:"form",ref:w,options:c.value},null,8,["options"]),p($,{icon:"download_for_offline",label:"Download",class:"w-full mt-8",onClick:I})]),_:1})])]))}});const ye=E(fe,[["__scopeId","data-v-cad4addf"]]);export{ye as default}; +import{i as q,cz as N,q as x,c3 as S,o as s,c as n,a as o,F as r,j as B,f as C,w as y,b as t,t as a,C as h,g as p,h as z,d,u as f,cA as D,z as F,L as O,O as T,x as V,I as $,cr as j,m as L,n as A,_ as E}from"./index-926884cb.js";const i=v=>(L("data-v-cad4addf"),v=v(),A(),v),M={class:"downloader py-2 pr-2 grid gap-4 grid-cols-2 items-start"},P={class:"downloads"},Y={class:"main"},G={class:"m-0 mb-4"},H={class:"status"},J={class:"flex flex-col"},K={key:0,class:"info"},Q=i(()=>o("span",{class:"material-symbols-rounded"},"cloud",-1)),R={key:1,class:"info"},U=i(()=>o("span",{class:"material-symbols-rounded"},"file_download",-1)),W={class:"info"},X=i(()=>o("span",{class:"material-symbols-rounded"},"percent",-1)),Z={key:2,class:"info"},ee=i(()=>o("span",{class:"material-symbols-rounded"},"speed",-1)),oe={key:3,class:"info"},se=i(()=>o("span",{class:"material-symbols-rounded"},"timer",-1)),ne=i(()=>o("div",{class:"error"},[o("span",null,"This song could not be downloaded:"),o("ul",{class:"block list-disc ml-8"},[o("li",null," verify that the source link is working "),o("li",null,"try again later")])],-1)),ae={key:0,class:"info"},le=i(()=>o("span",{class:"material-symbols-rounded"},"link",-1)),de=["href"],re={class:"wrap-progress"},te=["aria-valuenow"],ie={key:1,class:"material-symbols-rounded downloading"},ce=["onClick"],ue=["onClick"],_e=["onClick"],me={key:1,class:"col-span-2 flex flex-row justify-center items-center"},pe={class:"new-download"},fe=q({__name:"index",setup(v){const _=N(),g=l=>{j.addYesNo("Are you sure you want to redownload this song?",null,null,()=>{console.log("[downloader] reDownload",l),_.downloadFromDb(l)})},m={title:"",artist:"",album:"",cover:"",source:"",href:""},w=x(null),c=x([{name:"source",type:"text",accept:"audio/mp3",required:!0,onChange:async l=>{const u=await S(l);c.value.find(e=>e.name==="title").value=u.title,c.value.find(e=>e.name==="artist").value=u.artist,c.value.find(e=>e.name==="album").value=u.album,c.value.find(e=>e.name==="cover").value=u.cover,c.value.find(e=>e.name==="source").value=u.source},value:m.source},{name:"title",type:"text",icon:"title",required:!0,value:m.title},{name:"artist",type:"text",icon:"person",required:!0,value:m.artist},{name:"album",type:"text",icon:"album",value:m.album},{name:"cover",type:"upload",accept:"image/*",imagePreview:!0,value:m.cover}]),I=async()=>{const l=w.value.toObject();l.id=new Date().getTime(),console.log("[downloader] requestDownload",l),_.downloadOther(l)};return(l,u)=>(s(),n("div",M,[o("div",P,[(s(!0),n(r,null,B(f(_).states,e=>{var k;return s(),n(r,{key:e.songId},[e.internal?d("",!0):(s(),C(h,{key:0,class:T([["song",{downloading:((k=f(_).states[e.songId])==null?void 0:k.status)=="downloading"}],"p-4 card items-center"])},{default:y(()=>[e.status!=="pending"?(s(),n(r,{key:0},[o("main",Y,[o("h2",G,[e.song?(s(),n(r,{key:0},[t(a(e.song.title),1)],64)):(s(),n(r,{key:1},[t(a(e.filename),1)],64))]),o("div",H,[e.song?(s(),C(h,{key:0,class:"info p-4"},{default:y(()=>[p(z,{src:e.song.cover,class:"cover"},null,8,["src"]),o("div",J,[o("span",null,a(e.song.album),1),o("span",null,a(e.song.artist),1)])]),_:2},1024)):d("",!0),e.status!=="error"?(s(),n(r,{key:1},[e.downloaded||e.total?(s(),n("div",K,[Q,t(" "+a(f(D)(e.downloaded))+" / "+a(f(D)(e.total)),1)])):d("",!0),e.chunk?(s(),n("div",R,[U,t(" "+a(e.chunk),1)])):d("",!0),o("div",W,[X,t(" "+a(e.status==="downloading"?e.percent:100)+"% ",1)]),e.speed!=="0"?(s(),n("div",Z,[ee,t(" "+a(e.speed),1)])):d("",!0),e.elapsed!=="0"||e.eta!==0?(s(),n("div",oe,[se,t(" "+a(e.elapsed)+" / "+a(e.eta)+"s ",1)])):d("",!0)],64)):(s(),n(r,{key:2},[ne,e.song?(s(),n("div",ae,[le,o("a",{href:e.song.source,target:"_blank",rel:"noopener noreferrer"},a(e.song.source),9,de)])):d("",!0)],64))])]),o("aside",null,[o("div",re,[e.status=="downloading"?(s(),n("div",{key:0,class:"progress-bar",role:"progressbar","aria-valuenow":e.percent,"aria-valuemin":"0","aria-valuemax":"100",style:F({"--progress":e.percent+"%"})},null,12,te)):d("",!0),e.status=="downloading"?(s(),n("span",ie," south ")):e.status=="finished"?(s(),n("span",{key:2,class:"material-symbols-rounded cursor-pointer finished",onClick:b=>f(_).download(e.songId)}," download_for_offline ",8,ce)):e.status=="downloaded"?(s(),n("span",{key:3,class:"material-symbols-rounded cursor-pointer downloaded",onClick:b=>g(e.songId)}," download_done ",8,ue)):e.status=="error"?(s(),n("span",{key:4,class:"material-symbols-rounded cursor-pointer error",onClick:b=>g(e.songId)}," error ",8,_e)):d("",!0)])])],64)):(s(),n("div",me,[p(O)]))]),_:2},1032,["class"]))],64)}),128))]),o("div",pe,[p(h,{class:"custom p-4 flex flex-col"},{default:y(()=>[p(V,{ref_key:"form",ref:w,options:c.value},null,8,["options"]),p($,{icon:"download_for_offline",label:"Download",class:"w-full mt-8",onClick:I})]),_:1})])]))}});const ye=E(fe,[["__scopeId","data-v-cad4addf"]]);export{ye as default}; diff --git a/src/ui/dist/assets/index-6034035d.js.gz b/src/ui/dist/assets/index-6034035d.js.gz new file mode 100644 index 000000000..7201ece55 Binary files /dev/null and b/src/ui/dist/assets/index-6034035d.js.gz differ diff --git a/src/ui/dist/assets/index-673825f1.js b/src/ui/dist/assets/index-673825f1.js new file mode 100644 index 000000000..9ddc7451f --- /dev/null +++ b/src/ui/dist/assets/index-673825f1.js @@ -0,0 +1 @@ +import{i as C,B as E,q as m,D as o,S as N,T as P,E as T,G as A,o as s,c as a,g as B,L,a as n,t as I,F as c,H as d,d as _,j as f,f as y,m as O,n as V,_ as D}from"./index-926884cb.js";const i=v=>(O("data-v-28db7468"),v=v(),V(),v),F={class:"search"},$={key:0,class:"fill-page"},G={key:1,class:"fill-page"},H=i(()=>n("h1",null,"Something went wrong",-1)),J={class:"top flex gap-8"},M={class:"top min-w-max"},Y=i(()=>n("h2",null,"Top Result",-1)),z={key:0,class:"list songs flex-1"},K={class:"flex justify-between items-center"},Q=i(()=>n("h2",null,"Songs",-1)),U={class:"flex flex-wrap flexibleSearchResults"},W={key:0,class:"list flex-1 min-w-[40vw] artists"},X=i(()=>n("h2",null,"Artists",-1)),Z={key:1,class:"list flex-1 min-w-[40vw] playlists"},ee=i(()=>n("h2",null,"Playlists",-1)),te={key:2,class:"list flex-1 min-w-[40vw] albums"},se=i(()=>n("h2",null,"Albums",-1)),le=C({__name:"index",setup(v){const R=E(),g=m(!0),p=m(null),h=m(!1),u=m(null),j=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t[0]}),r=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="song")}),x=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="artist")}),w=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="playlist")}),S=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.items)==null?void 0:t.filter(l=>l.type==="album")}),k=o(()=>R.params.query),q=o(()=>[...N,...P]),b=async()=>{g.value=!0,p.value=null;const e=await fetch("/api/search",{method:"POST",body:JSON.stringify({query:k.value,scope:q.value})});if(g.value=!1,!e.ok){p.value=await e.text();return}const t=await e.json();u.value=t};return T(b),A(k,b),(e,t)=>(s(),a("div",F,[g.value?(s(),a("div",$,[B(L)])):p.value?(s(),a("div",G,[H,n("p",null,I(p.value),1)])):(s(),a(c,{key:2},[n("div",J,[n("div",M,[Y,B(d,{item:j.value,large:""},null,8,["item"])]),r.value.length?(s(),a("div",z,[n("div",K,[Q,r.value.length>4?(s(),a("span",{key:0,class:"more cursor-pointer text-muted hover:text-primary text-sm uppercase",onClick:t[0]||(t[0]=l=>h.value=!h.value)},I(h.value?"Show less":`Show all ${r.value.length} songs`),1)):_("",!0)]),(s(!0),a(c,null,f(h.value?r.value:r.value.slice(0,4),l=>(s(),y(d,{item:l},null,8,["item"]))),256))])):_("",!0)]),n("div",U,[x.value.length?(s(),a("div",W,[X,(s(!0),a(c,null,f(x.value,l=>(s(),y(d,{item:l},null,8,["item"]))),256))])):_("",!0),w.value.length?(s(),a("div",Z,[ee,(s(!0),a(c,null,f(w.value,l=>(s(),y(d,{item:l},null,8,["item"]))),256))])):_("",!0),S.value.length?(s(),a("div",te,[se,(s(!0),a(c,null,f(S.value,l=>(s(),y(d,{item:l},null,8,["item"]))),256))])):_("",!0)])],64))]))}});const ne=D(le,[["__scopeId","data-v-28db7468"]]);export{ne as default}; diff --git a/src/ui/dist/assets/index-673825f1.js.gz b/src/ui/dist/assets/index-673825f1.js.gz new file mode 100644 index 000000000..0ae8267c7 Binary files /dev/null and b/src/ui/dist/assets/index-673825f1.js.gz differ diff --git a/src/ui/dist/assets/index-5f698628.css b/src/ui/dist/assets/index-6ee17978.css similarity index 85% rename from src/ui/dist/assets/index-5f698628.css rename to src/ui/dist/assets/index-6ee17978.css index 328c948fa..e0b7d64ec 100644 --- a/src/ui/dist/assets/index-5f698628.css +++ b/src/ui/dist/assets/index-6ee17978.css @@ -4,4 +4,4 @@ */.bg-bg[data-v-b68d33f1]{background-color:var(--background)}.bg-fg[data-v-b68d33f1]{background-color:var(--font-colour)}.text-bg[data-v-b68d33f1]{color:var(--background)}.text-fg[data-v-b68d33f1]{color:var(--font-colour)}button span.material-symbols-rounded[data-v-b68d33f1]{font-variation-settings:"wght" 400}button.disabled[data-v-b68d33f1]{cursor:not-allowed}button.positive[data-v-b68d33f1]{background-color:var(--bg-base);color:var(--fg-base)}button.positive.disabled[data-v-b68d33f1]{background-color:var(--fg-base-dk);color:var(--bg-hover-ltr)}button.negative[data-v-b68d33f1]{background-color:var(--bg-contrast);color:var(--fg-contrast)}button.negative.disabled[data-v-b68d33f1]{background-color:var(--fg-base-dk);color:var(--bg-hover-ltr)}button.danger[data-v-b68d33f1]{color:#f5f5f5;background-color:#c73c3c}button.danger.disabled[data-v-b68d33f1]{background-color:#a22e2e;color:#a9a9a9}button.success[data-v-b68d33f1]{color:#f5f5f5;background-color:var(--fg-secondary)}button.success[data-v-b68d33f1]:hover{background-color:var(--fg-secondary-dk)}button.success.disabled[data-v-b68d33f1]{background-color:#a9a9a9;color:var(--fg-base)}.modal[data-v-e243c458]{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1000;background-color:#000000b3;animation:fadeIn-e243c458 .2s ease-in-out forwards;display:flex;justify-content:center;align-items:center}.error[data-v-e243c458]{color:var(--danger)}@keyframes fadeIn-e243c458{0%{opacity:0}to{opacity:1}}.modal-content[data-v-e243c458]{cursor:default;display:flex;flex-direction:column;width:40%;max-height:80vh;background:var(--fg-contrast);border-radius:1rem;color:var(--fg-base)}.confirm[data-v-e243c458]{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}.header[data-v-e243c458]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:20px}.title[data-v-e243c458]{color:#fff}.dropdown[data-v-186027d9]{position:relative;display:inline-block;width:100%;height:100%}.dropdown__selected[data-v-186027d9]{background:var(--bg-base-lt);border:var(--border-container);border-radius:1000vmax;color:var(--font-colour);padding:10px;width:auto;flex-grow:1;font-family:var(--ff-base);cursor:pointer;display:flex;flex-direction:row;justify-content:space-between}.dropdown__selected.expanded[data-v-186027d9]{border-radius:1em 1em 0 0}.dropdown__selected[data-v-186027d9]:focus-within,.dropdown__selected[data-v-186027d9]:hover{border-color:var(--fg-base);color:var(--fg-base)}.dropdown__options[data-v-186027d9]{position:absolute;left:0;z-index:1001;width:max(100%,20rem);max-height:20rem;overflow-y:auto;background:var(--bg-base);border-radius:0 0 1em 1em;filter:var(--drop-shadow);border:var(--border-container)}.dropdown__options .dropdown__option[data-v-186027d9]{padding:.5rem;cursor:pointer;transition:all .2s ease-in-out;display:grid;grid-template-columns:35px 1fr 20px}.dropdown__options .dropdown__option[data-v-186027d9]:hover{background:var(--bg-hover)}.content[data-v-f7f90291]{display:flex;flex-direction:row}.content .icon-button[data-v-f7f90291]{margin-right:10px;background:var(--bg-contrast);color:var(--fg-contrast);border-radius:1000vmax;padding:11px;cursor:pointer;font-variation-settings:"wght" 300}.content .imagePreview[data-v-f7f90291]{min-width:42px;max-width:42px;margin-left:10px}.content .imagePreview .cover[data-v-f7f90291]{border-radius:5px}.content .imagePreview .cover[data-v-f7f90291]:hover{cursor:pointer;filter:grayscale(.4) blur(2px)}.playlisteditor[data-v-46f31e97]{display:flex;flex-direction:row;margin-bottom:20px;align-items:center}.playlisteditor img[data-v-46f31e97]{width:20%;margin-right:20px;border-radius:5px}@media screen and (max-width: 950px){.playlisteditor[data-v-46f31e97]{flex-direction:column}.playlisteditor img[data-v-46f31e97]{align-self:center;width:40%;margin-right:0}}.playlisteditor>.details[data-v-46f31e97]{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-self:end}.playlisteditor>.details>h1[data-v-46f31e97]{font-size:2em;margin-top:10px;margin-bottom:10px}@media screen and (max-width: 950px){.playlisteditor>.details>h1[data-v-46f31e97]{font-size:1.4em}}.playlisteditor>.details>.detailswrapper[data-v-46f31e97]{font-size:.8em;display:flex;flex-direction:row;justify-content:flex-start}@media screen and (max-width: 950px){.playlisteditor>.details>.detailswrapper[data-v-46f31e97]{justify-content:center}}.playlisteditor>.details>.detailswrapper>.material-icons-round[data-v-46f31e97]{line-height:15px;font-size:15px;cursor:pointer}.playlisteditor>.details>.detailswrapper>.material-icons-round[data-v-46f31e97]:not(:first-child){margin-left:10px}.playlisteditor>.details>h5[data-v-46f31e97]{font-size:.8em;margin:0}.playlist-header[data-v-f8e4524a]{display:grid;grid-template-columns:50px 40px 1fr 1fr 40px 60px;gap:10px}.playlist-header .index[data-v-f8e4524a]{margin:auto 0}.playlist-header .artist-title[data-v-f8e4524a]{grid-column:2/span 2}.playlist-header .duration[data-v-f8e4524a]{text-align:center;grid-column-start:6}.playlist-header:not(.withMore) .duration[data-v-f8e4524a]{grid-column-start:7}.playlist-header div[data-v-f8e4524a]{margin:auto 0;color:var(--fg-base-dk);font-size:.9rem;text-transform:uppercase}.hidden[data-v-ad7138e8]{display:none}@keyframes marquee-ad7138e8{0%{transform:translate(0)}20%{transform:translate(0)}to{transform:translate(calc(-100% - 30px))}}div[data-v-ad7138e8]{white-space:nowrap;overflow:hidden;box-sizing:border-box}.marqueeWrapper[data-v-ad7138e8],.marqueeWrapper *[data-v-ad7138e8]{text-decoration:inherit}.marqueeWrapper[data-v-ad7138e8]{position:relative;margin:0}.replacer[data-v-ad7138e8]{position:absolute;top:0;left:calc(100% + 30px)}span[data-v-ad7138e8]{width:auto;margin:0;white-space:nowrap;display:inherit;overflow:hidden}span.marquee[data-v-ad7138e8]{position:relative;animation:marquee-ad7138e8 15s linear infinite;overflow:unset;text-overflow:unset;display:table-cell}.overlay[data-v-ad7138e8]{position:absolute;bottom:0;left:0;width:100%;text-align:center;padding:30px;pointer-events:none}.artist[data-v-156468cf]:not(:last-child):after{content:", "}.artist>a[data-v-156468cf]{color:inherit;text-decoration:none}.artist>a[data-v-156468cf]:active,.artist>a[data-v-156468cf]:hover{color:inherit;text-decoration:underline}/*! * Copyright (c) 2023, reAudioPlayer ONE. * Licenced under the GNU General Public License v3.0 -*/.playlist-entry[data-v-2482bde4]{display:grid;grid-template-columns:50px 40px 1fr 1fr 40px;gap:10px;padding:10px 0;border-radius:20px;border:1px solid transparent}.playlist-entry .artist-title[data-v-2482bde4]{grid-column:3/4}.playlist-entry:not(.withCover) .artist-title[data-v-2482bde4]{grid-column-start:2}.playlist-entry:not(.withAlbum) .artist-title[data-v-2482bde4]{grid-column-end:5}.playlist-entry div[data-v-2482bde4]{overflow:hidden}.playlist-entry .index[data-v-2482bde4],.playlist-entry .album[data-v-2482bde4],.playlist-entry .duration[data-v-2482bde4],.playlist-entry .icon[data-v-2482bde4]{margin:auto 0;font-size:.9rem;color:var(--fg-base-dk)}.playlist-entry .index.index[data-v-2482bde4],.playlist-entry .album.index[data-v-2482bde4],.playlist-entry .duration.index[data-v-2482bde4],.playlist-entry .icon.index[data-v-2482bde4]{cursor:pointer}.playlist-entry .index.icon[data-v-2482bde4],.playlist-entry .album.icon[data-v-2482bde4],.playlist-entry .duration.icon[data-v-2482bde4],.playlist-entry .icon.icon[data-v-2482bde4]{font-size:1.3rem;cursor:pointer;font-variation-settings:"wght" 500}.playlist-entry .index.icon.favourite[data-v-2482bde4],.playlist-entry .album.icon.favourite[data-v-2482bde4],.playlist-entry .duration.icon.favourite[data-v-2482bde4],.playlist-entry .icon.icon.favourite[data-v-2482bde4]{font-variation-settings:"FILL" 1}.playlist-entry.hovering[data-v-2482bde4]{background-color:var(--bg-hover-dk);border:var(--border-container)}.playlist-entry.hovering .index[data-v-2482bde4]{font-size:1.5rem;font-variation-settings:"FILL" 1}.playlist-entry.selected[data-v-2482bde4]{background-color:var(--bg-hover)}.playlist-entry .favourite-icon[data-v-2482bde4]{grid-column:5}.playlist-entry .duration[data-v-2482bde4]{grid-column:6}.playlist-entry .cover[data-v-2482bde4]{display:flex;justify-content:center}.playlist-entry img[data-v-2482bde4]{border-radius:4px;margin:auto 0}.playlist-entry .artist-title[data-v-2482bde4]{display:grid;grid-template-rows:1fr 1fr}.playlist-entry .artist-title .artist[data-v-2482bde4]{font-size:.8rem;color:var(--fg-base-dk)}.playlist-entry .artist-title span[data-v-2482bde4]{max-width:-moz-min-content;max-width:min-content;overflow:hidden}.playlist-entry.playing .title[data-v-2482bde4],.playlist-entry.playing .index[data-v-2482bde4]{color:var(--fg-secondary)}.playlist-entry.hovering .artist[data-v-2482bde4],.playlist-entry.hovering .album[data-v-2482bde4],.playlist-entry.selected .artist[data-v-2482bde4],.playlist-entry.selected .album[data-v-2482bde4]{color:var(--fg-base)}@media screen and (max-width: 768px){.playlist-entry[data-v-2482bde4]{padding:5px 0;border-radius:10px;grid-template-columns:30px 40px 1fr 1fr 30px 40px}.playlist-entry .index[data-v-2482bde4],.playlist-entry .duration[data-v-2482bde4]{font-size:.7rem}.playlist-entry .artist-title[data-v-2482bde4]{grid-column-end:5;font-size:.8rem}.playlist-entry .artist-title .artist[data-v-2482bde4]{font-size:.65rem}}.playlist[data-v-a918d839]{position:relative}.playlist .entries[data-v-a918d839]{position:relative;overflow-y:auto;display:flex;flex-direction:column;height:100%;max-height:30vh}.item[data-v-92cf9d47]{display:flex;align-items:flex-end;gap:1rem;padding:10px;border-radius:20px}.item img[data-v-92cf9d47]{width:50px;height:50px;border-radius:.5em;-o-object-fit:cover;object-fit:cover}.item .tag[data-v-92cf9d47]{padding:.2rem .5rem;border-radius:.5rem;background:var(--bg-base-lt);border:var(--border-container)}.item .info[data-v-92cf9d47]{display:flex;align-items:center;width:100%;gap:.5em}.item .name[data-v-92cf9d47]{font-weight:900;font-size:1rem}.item.large[data-v-92cf9d47]{min-width:40ch;background:var(--bg-base-lt);border:var(--border-container);border-radius:1em;padding:1em}.item.large .info[data-v-92cf9d47]{flex-direction:column;align-items:flex-start}.item.large .name[data-v-92cf9d47]{font-size:1.2rem}.item.large img[data-v-92cf9d47]{width:150px;height:150px}.item[data-v-92cf9d47]:not(:nohover):hover{background:var(--bg-hover-dk);cursor:pointer}.download-anim[data-v-2bea1460]{color:var(--fg-base-dk);animation:anim-2bea1460 .5s ease-out forwards}@keyframes anim-2bea1460{0%{opacity:1;transform:translateY(500px)}to{opacity:0;transform:translateY(0)}}.suggestion[data-v-2bea1460]{display:grid;gap:1em;width:100%}.suggestion .cover[data-v-2bea1460]{border-radius:.5em}.suggestion[data-v-2bea1460]:hover,.suggestion.selected[data-v-2bea1460]{background:var(--bg-hover-dk);cursor:pointer}.suggestion span[data-v-2bea1460]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.suggestion span[data-v-2bea1460]:last-child{color:var(--fg-base-dk);font-size:.8rem}.header[data-v-2bea1460]{background:var(--bg-base-dk);height:var(--h-header);display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-shadow:0 0 10px 0 var(--shadow);z-index:10;border-bottom:var(--border-container)}.logo[data-v-2bea1460]{fill:var(--fg-base);padding:10px;translate:5px 5px;height:100%}.logo[data-v-2bea1460]:hover{cursor:pointer}.header .search{width:100%;display:flex;flex-direction:row;justify-content:center;margin:0 1em}.header .search .input-with-autocomplete{max-width:800px;width:100%;flex:1}.header .search .text-input-with-icon{width:100%}.startup[data-v-24a52185]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.startup .wrap[data-v-24a52185]{width:80%}.startup .logo[data-v-24a52185]{display:flex;flex-direction:row;justify-content:center;width:100%;align-items:center}.startup .logo svg[data-v-24a52185]{fill:var(--fg-base);padding:10px;translate:5px 5px;height:100%;max-width:400px}.startup .logo p[data-v-24a52185]{font-size:1em;color:var(--fg-base);z-index:1;margin-left:50px}.card[data-v-04b9eb92]{background:var(--bg-base-lt);border-radius:1em;border:var(--border-container);position:relative}.card[data-v-04b9eb92]:before{content:"";border-radius:1em;box-shadow:0 0 10px #0000001a;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.card.withHover[data-v-04b9eb92]:hover{background:var(--bg-hover-dk)}.card.disabled[data-v-04b9eb92]{opacity:.5;cursor:not-allowed!important}.notification[data-v-49e9d059]{padding:.5em 1em;display:flex;flex-direction:row;gap:2em;align-items:center;justify-content:space-between;color:#fff;filter:var(--drop-shadow)}.notification.success[data-v-49e9d059]{background-color:var(--success)}.notification.error[data-v-49e9d059]{background-color:var(--fail)}.notification.info[data-v-49e9d059]{background-color:var(--info)}.notification.warning[data-v-49e9d059]{background-color:var(--warning)}.notification h4[data-v-49e9d059],.notification p[data-v-49e9d059]{margin:0}.notification .details[data-v-49e9d059]{font-size:.8em}.close[data-v-49e9d059]{cursor:pointer}.notification[data-v-4dd7578e]{gap:2em;align-items:center;color:var(--fg-base);overflow:hidden;filter:var(--drop-shadow);background:var(--fg-contrast)}.notification .message[data-v-4dd7578e]{padding:.5em 1em}.notification .message h4[data-v-4dd7578e]{margin:0}.notification .message .details[data-v-4dd7578e]{font-size:.8em}.yes-no[data-v-4dd7578e]{display:flex;flex-direction:row}.yes-no .option[data-v-4dd7578e]{flex:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.yes-no .option.yes[data-v-4dd7578e]{background-color:var(--success)}.yes-no .option.no[data-v-4dd7578e]{background-color:var(--fail)}.notifications[data-v-ca1aa49b]{position:absolute;inset:auto auto 0 0;z-index:10;margin:2em 2em calc(var(--h-player) + 10px) calc(var(--w-sidebar) + 40px);display:flex;flex-direction:column;gap:1em;align-items:flex-start}.notifications .notification[data-v-ca1aa49b]{min-width:200px;max-width:400px}@font-face{font-family:v-contextmenu;src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=#iefix) format("embedded-opentype"),url(data:font/woff;base64,d09GRgABAAAAAAUAAAsAAAAAB1gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kgMY21hcAAAAYAAAABeAAABhpnABr5nbHlmAAAB4AAAAS4AAAE8h1VEkmhlYWQAAAMQAAAALwAAADYPY7HCaGhlYQAAA0AAAAAcAAAAJAfeA4RobXR4AAADXAAAAAwAAAAMC+kAAGxvY2EAAANoAAAACAAAAAgAdgCebWF4cAAAA3AAAAAfAAAAIAESAF1uYW1lAAADkAAAAUUAAAJtPlT+fXBvc3QAAATYAAAAKAAAADlBG9LpeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sE4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDxTYm7438AQw9zA0AAUZgTJAQAl4gyOeJzFkMENgDAMAy9t6QMxRV88GIgXc3TirlFMKA8mqCXHimMpUYAFiOIhJrAL48Ep19yPrO4nz2SpEait9K7+U0U0y65BJTMNNm/1H5vXfXT6CnVQJ7byknADpO8MFwAAeJwVjL1Kw1AARu93Y/7a3MTe/KdN2yS2V6kGjLEKYru4KA6Cgzj6ALp2cegiODj4DCKIr1D6AL6A7qIP4BNE48fhwFk+IhPy+yktpYDYZJ1skyNyRgiUEVKTxkhEmdMR3ER2fceURCYSNUtz6RB+qjheMS6HvqIqFkx0sZMUY5FTgd1yQg9QeDEQtqNzPuhw6RGNQHTvqhP6BLeXdazJVnW8OXWKvq3NDM5Dzh80RZY1SlcsE9e+p8t6Q6meZStyl70N2oMRiuj0kvXb/Oq+vIkHvg7M57DbffNl2opaNbeRZ/NQXWVaELFszcHsuxnYRjz8IvXwL/pBf0irDkeFkmO8pyPHBD48+s6qVzMJwLBfvTEEKcMFw5wb1aKJMGEQECwJ0awWRv30B+KIMJEAAHicY2BkYGAA4sM/urfH89t8ZeBmYQCBa0pmzxD0/4csDMwSQC4HAxNIFABNGgrfAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAAA+kAAAQAAAAAAAAAAHYAnnicY2BkYGBgZghkYGUAASYg5gJCBob/YD4DABD3AXAAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYGxgjuxqCi/XLcoMz2jhIEBAC8dBRY=) format("woff"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4i7dfDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=) format("truetype"),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0A%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%20%3E%0A%3C!--%0A2013-9-30%3A%20Created.%0A--%3E%0A%3Csvg%3E%0A%3Cmetadata%3E%0ACreated%20by%20iconfont%0A%3C%2Fmetadata%3E%0A%3Cdefs%3E%0A%0A%3Cfont%20id%3D%22iconfont%22%20horiz-adv-x%3D%221024%22%20%3E%0A%20%20%3Cfont-face%0A%20%20%20%20font-family%3D%22iconfont%22%0A%20%20%20%20font-weight%3D%22500%22%0A%20%20%20%20font-stretch%3D%22normal%22%0A%20%20%20%20units-per-em%3D%221024%22%0A%20%20%20%20ascent%3D%22896%22%0A%20%20%20%20descent%3D%22-128%22%0A%20%20%2F%3E%0A%20%20%20%20%3Cmissing-glyph%20%2F%3E%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22x%22%20unicode%3D%22x%22%20horiz-adv-x%3D%221001%22%0Ad%3D%22M281%20543q-27%20-1%20-53%20-1h-83q-18%200%20-36.5%20-6t-32.5%20-18.5t-23%20-32t-9%20-45.5v-76h912v41q0%2016%20-0.5%2030t-0.5%2018q0%2013%20-5%2029t-17%2029.5t-31.5%2022.5t-49.5%209h-133v-97h-438v97zM955%20310v-52q0%20-23%200.5%20-52t0.5%20-58t-10.5%20-47.5t-26%20-30t-33%20-16t-31.5%20-4.5q-14%20-1%20-29.5%20-0.5%0At-29.5%200.5h-32l-45%20128h-439l-44%20-128h-29h-34q-20%200%20-45%201q-25%200%20-41%209.5t-25.5%2023t-13.5%2029.5t-4%2030v167h911zM163%20247q-12%200%20-21%20-8.5t-9%20-21.5t9%20-21.5t21%20-8.5q13%200%2022%208.5t9%2021.5t-9%2021.5t-22%208.5zM316%20123q-8%20-26%20-14%20-48q-5%20-19%20-10.5%20-37t-7.5%20-25t-3%20-15t1%20-14.5%0At9.5%20-10.5t21.5%20-4h37h67h81h80h64h36q23%200%2034%2012t2%2038q-5%2013%20-9.5%2030.5t-9.5%2034.5q-5%2019%20-11%2039h-368zM336%20498v228q0%2011%202.5%2023t10%2021.5t20.5%2015.5t34%206h188q31%200%2051.5%20-14.5t20.5%20-52.5v-227h-327z%22%20%2F%3E%0A%20%20%20%20%0A%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22arrow-right%22%20unicode%3D%22%26%2358914%3B%22%20d%3D%22M725.3399071604938%20383.8342991012345a41.425224691358025%2041.425224691358025%200%200%200-12.924670103703681-30.074713125925918l-343.82936493827134-325.2708642765434a41.425224691358025%2041.425224691358025%200%200%200-56.91825872592596%2060.23227670123452l312.0976428246912%20295.1961511506175-312.0976428246914%20295.4447024987654a41.50807514074074%2041.50807514074074%200%200%200-1.6570089876543506%2058.575267713580246c15.74158538271605%2016.570089876543207%2042.00517783703699%2017.315743920987664%2058.575267713580246%201.6570089876543506l343.8293649382716-325.6022660740737a41.425224691358025%2041.425224691358025%200%200%200%2012.924670103703713-30.15756357530862z%22%20%20horiz-adv-x%3D%221024%22%20%2F%3E%0A%0A%20%20%20%20%0A%0A%0A%20%20%3C%2Ffont%3E%0A%3C%2Fdefs%3E%3C%2Fsvg%3E%0A) format("svg")}.v-contextmenu-icon{font-family:v-contextmenu!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.v-contextmenu-icon-right-arrow:before{content:""}.v-contextmenu{position:absolute;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;-webkit-box-shadow:2px 2px 8px 0 rgba(150,150,150,.2);box-shadow:2px 2px 8px #96969633;font-size:14px;white-space:nowrap;line-height:1;z-index:2020;-webkit-tap-highlight-color:transparent}.v-contextmenu-inner{padding:5px 0;margin:0;list-style:none}.v-contextmenu-item{padding:5px 14px;line-height:1;color:#333;cursor:pointer}.v-contextmenu-item--hover{color:#fff;background-color:#2d3035}.v-contextmenu-item--disabled{color:#3336;cursor:not-allowed}.v-contextmenu-divider{height:0;margin:5px 0;border-bottom:1px solid #e8e8e8}.v-contextmenu-group__title{padding:5px 14px 2.5px;color:#3333338c;font-size:60%}.v-contextmenu-group__menus{padding:0 5px;margin:0;list-style:none}.v-contextmenu-group__menus .v-contextmenu-item{display:inline-block;padding:5px 9px}.v-contextmenu-submenu{position:relative}.v-contextmenu-submenu__title{padding-right:22.4px}.v-contextmenu-submenu__menus{position:absolute}.v-contextmenu-submenu__menus--left{left:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.v-contextmenu-submenu__menus--right{right:0;-webkit-transform:translateX(100%);transform:translate(100%)}.v-contextmenu-submenu__menus--top{top:-6px}.v-contextmenu-submenu__menus--bottom{bottom:-6px}.v-contextmenu-submenu__arrow{position:absolute;right:5px}.v-contextmenu-enter-active{-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.v-contextmenu-leave-active{-webkit-transition:opacity .3s cubic-bezier(1,.5,.8,1);transition:opacity .3s cubic-bezier(1,.5,.8,1)}.v-contextmenu-enter-from,.v-contextmenu-leave-to{opacity:0}.logo[data-v-50cefd67]{fill:var(--fg-base);padding:10px;width:60%}.logo[data-v-50cefd67]:hover{cursor:pointer}.collapseSidebar[data-v-50cefd67]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:40px}.collapseSidebar.minimised[data-v-50cefd67]{justify-content:center}.collapseSidebar .clickSymbol[data-v-50cefd67]{border-radius:5px}.collapseSidebar .clickSymbol[data-v-50cefd67]:hover{cursor:pointer;background:var(--hover-2)}.static[data-v-50cefd67]{flex-shrink:0;flex-grow:0}@media screen and (max-width: 750px){.static[data-v-50cefd67]{display:flex;flex-direction:row;justify-content:space-between;width:100%}}h2[data-v-50cefd67]{margin-bottom:0}.cover[data-v-50cefd67]{position:absolute;bottom:10px;width:100%;transform:translate(-10px,10px)}.playlistList[data-v-50cefd67]{flex-grow:1;display:flex;flex-direction:column;overflow-y:auto}.playlistList.expanded[data-v-50cefd67]{padding:0 10px}.playlistList>a[data-v-50cefd67]{font-size:.92em;text-decoration:none;color:var(--font-darker);margin-bottom:4px;margin-top:4px}.playlistList>a[data-v-50cefd67]:hover{color:var(--font-colour)}hr[data-v-50cefd67]{width:100%}div.sidebar[data-v-50cefd67]{background:var(--bg-base-dk);width:calc(var(--w-sidebar) + 20px);min-width:calc(var(--w-sidebar) + 20px);max-width:calc(var(--w-sidebar) + 20px);display:flex;flex-direction:column;padding:10px;margin:10px;border-radius:8px;max-height:100%;z-index:1;position:relative;overflow:hidden;border:var(--border-container)}@media screen and (max-width: 750px){div.sidebar[data-v-50cefd67]{flex-direction:row;width:100vw;position:absolute;bottom:0;margin:0;max-width:100vw;border-radius:0}}h2[data-v-50cefd67]:hover{cursor:pointer}h2[data-v-50cefd67]{margin:0;padding:10px}div.body[data-v-85e4fc55]{flex-grow:1;overflow-y:auto;overflow-x:hidden;max-width:calc(100vw - var(--sidebar-width));max-height:calc(100vh - var(--player-height) - var(--header-height))}div.body.maximised[data-v-85e4fc55]{max-width:100vw;max-height:100vh}@media screen and (max-width: 950px){div.body[data-v-85e4fc55]{max-width:100vw;max-height:calc(100vh - var(--player-height-mobile) - var(--sidebar-height) - var(--header-height))}}.progressBar__track[data-v-bd694edc]{position:relative;width:100%;height:5px;margin:10px 0;border-radius:1000vmax;background-color:var(--fg-base-dkr)}.progressBar__progress[data-v-bd694edc]{position:relative;height:5px;border-radius:1000vmax;background-color:var(--fg-base)}.progressBar__progress.hover[data-v-bd694edc]{background-color:var(--fg-secondary)}.progressBar__progress.hover[data-v-bd694edc]:after{content:""}.progressBar__progress[data-v-bd694edc]:after{position:absolute;top:-5px;right:-5px;width:15px;height:15px;border-radius:50%;background-color:var(--fg-base)}.dropdown[data-v-b20d4971]{position:relative;display:inline-block}.dropdown__selected[data-v-b20d4971]{color:var(--fg-base-dk);cursor:pointer;font-size:1.5rem;border-radius:10px;padding:5px}.dropdown__selected[data-v-b20d4971]:hover{background:var(--bg-hover-lt);color:var(--fg-secondary)}.dropdown__options[data-v-b20d4971]{position:absolute;z-index:999;width:max(100%,20rem);max-height:20rem;overflow-y:auto;background:var(--bg-base);border-radius:5px;filter:var(--drop-shadow)}.dropdown__options .dropdown__option[data-v-b20d4971]{padding:.5rem;cursor:pointer;transition:all .2s ease-in-out;display:grid;grid-template-columns:35px 1fr 20px}.dropdown__options .dropdown__option[data-v-b20d4971]:hover{background:var(--bg-hover)}.loader[data-v-ed1fd951]{width:20px;height:20px;margin:auto;border:3px solid var(--fg-base-dk);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation-ed1fd951 1s linear infinite}@keyframes rotation-ed1fd951{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#waveform wave,#waveform canvas{width:100%;height:calc(var(--h-player) / 2 - 1em)!important}.player .on-this-device>.material-symbols-rounded{color:var(--fg-secondary)}.player[data-v-07466254]{background:var(--bg-base-lt);border-top:1px solid var(--border-base);z-index:2}.icon[data-v-07466254]{color:var(--fg-base-dk)}.icon[data-v-07466254]:hover{color:var(--fg-base)}.desktop[data-v-07466254]{display:grid;height:calc(var(--h-player) - 1px);grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);grid-template-areas:"song-info controls aux";gap:10px}.desktop .song-info[data-v-07466254]{grid-area:song-info;display:grid;align-items:center;grid-template-columns:calc(var(--h-player) - 40px) fit-content(100%) 20px 20px;gap:10px;overflow:hidden}.desktop .song-info .title-artist[data-v-07466254]{overflow:hidden}.desktop .song-info div[data-v-07466254]{margin:auto 0}.desktop .controls[data-v-07466254]{grid-area:controls;display:grid;grid-template-columns:1fr;grid-template-rows:1fr auto}.desktop .controls .top[data-v-07466254]{display:grid;grid-template-columns:repeat(2,20px) 40px repeat(2,20px);gap:1.5em;justify-content:center}.desktop .controls .top span[data-v-07466254]{margin:auto 0;font-size:1.5rem}.desktop .controls .top span[data-v-07466254]:nth-child(3){font-size:2.5rem}.desktop .controls .bottom .display[data-v-07466254]{display:grid;grid-template-columns:1fr 10fr 1fr;gap:.5em;margin-bottom:.5em;align-items:center}.desktop .aux[data-v-07466254]{grid-area:aux;justify-content:end;display:grid;grid-template-columns:20px 20px 20px minmax(auto,8vw);gap:1em;align-items:center}.desktop .aux a.icon[data-v-07466254]{display:flex;text-decoration:none}.desktop .aux a.icon.router-link-active[data-v-07466254]{color:var(--fg-secondary)}.mobile .small[data-v-07466254]{display:grid;grid-template-columns:calc(var(--h-player-mobile) - 1em) 1fr 30px 30px;gap:1em;margin:.5em;align-items:center;max-width:calc(100vw - 2em)}.mobile .small .cover[data-v-07466254]{border-radius:10px;background:var(--bg-base-dk);margin:auto 0}.mobile .full[data-v-07466254]{position:absolute;top:0;left:0;width:100vw;height:calc(100vh - var(--h-sidebar));max-height:calc(100vh - var(--h-sidebar));overflow:hidden;background:var(--bg-base);padding:2em;display:grid;grid-template-columns:1fr;grid-template-rows:30px 1fr fit-content(100%)}.mobile .full .cover[data-v-07466254]{filter:drop-shadow(0 25px 25px rgba(0,0,0,.3))}.mobile .full .controls[data-v-07466254]{display:flex;flex-direction:column-reverse}.mobile .full .controls .top[data-v-07466254]{display:grid;grid-template-columns:repeat(5,1fr);gap:1.5em;justify-content:center}.mobile .full .controls .top span[data-v-07466254]{margin:auto 0;font-size:2rem}.mobile .full .controls .top span[data-v-07466254]:nth-child(3){font-size:3rem}.dropzone *[data-v-c5853362]{pointer-events:none}.dropzone.drophover[data-v-c5853362]:after{content:" ";display:block;text-align:center;color:var(--text-muted);font-style:italic;font-size:.8rem;background:rgba(0,0,0,.5);border-radius:1rem;position:absolute;top:0;right:0;bottom:0;left:0;margin-top:1em;margin-bottom:1em;margin-right:1em;z-index:1000}.noLink{text-decoration:none;color:unset}.noLink:hover{text-decoration:none;cursor:default;color:unset}.linkOnHover{text-decoration:none;color:unset}.linkOnHover:hover{text-decoration:underline;cursor:pointer;color:var(--fg-base)}.v-contextmenu{background:var(--fg-contrast)!important;font-family:var(--ff-base)!important;border:1px solid var(--bg-hover-dk);box-shadow:none;--webkit-box-shadow: none;color:var(--fg-base)!important}.v-contextmenu-divider{border-color:var(--border-base)}.v-contextmenu-item{color:var(--fg-base)!important;margin:5px;padding:10px 22px 10px 15px;border-radius:5px}.v-contextmenu-item--hover{background:var(--bg-hover-dk)!important}::-webkit-scrollbar{width:var(--w-scrollbar);height:var(--w-scrollbar);padding:0;margin:0;z-index:101}::-webkit-scrollbar-track{border-radius:var(--w-scrollbar)}::-webkit-scrollbar-thumb{background:var(--bg-hover);border-radius:var(--w-scrollbar)}::-webkit-scrollbar-thumb:hover{background:var(--bg-hover-dk)}:root{--fg-secondary: #1ed760;--fg-secondary-dk: #217e41;--bg-contrast: white;--fg-contrast: #121212;--fg-base: white;--fg-base-dk: #a7a7a7;--fg-base-dkr: #999;--bg-hover-ltr: #242424;--bg-hover-lt: hsla(0,0%,100%,.04);--bg-hover: hsla(0,0%,100%,.3);--bg-hover-dk: hsla(0,0%,100%,.1);--border-base: hsla(0,0%,100%,.1);--border-container: var(--border-base);--bg-gradient: linear-gradient(to left bottom, #1ed760, #217e41);--bg-base: #121212;--bg-base-lt: #181818;--bg-base-dk: black;--bg-fixedPlaylistHeader: var(--bg-base-lt);--border-fixedPlaylistHeader: #303030;--bg-input: var(--background-light);--ff-base: Poppins, sans-serif;--h-playlistEntry: 64px;--h-player: 88px;--h-player-mobile: 64px;--h-header: 64px;--w-sidebar: 44px;--h-sidebar: 64px;--w-scrollbar: 8px;--drop-shadow: drop-shadow(0 0 .5rem rgba(0, 0, 0, .2));--background: #1e1e1e;--neutral: #374148;--success: #00c48b;--fail: #e85454;--warning: #c7aa19;--info: #189de4}.showIfMobile{display:none!important}.hideIfMobile{display:inherit}@media only screen and (max-width: 750px){.showIfMobile{display:inherit!important}.hideIfMobile{display:none!important}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}h1{margin-top:.5rem;margin-bottom:.5rem;font-size:1.875rem;line-height:2.25rem;font-weight:900}h2{margin-top:1.25rem;margin-bottom:1.25rem;font-size:1.5rem;line-height:2rem;font-weight:700}h3{font-size:1.125rem;line-height:1.75rem;font-weight:700}h4{margin-top:1rem;margin-bottom:1rem;font-weight:700}h5{color:var(--fg-base-dk);text-transform:uppercase}h6{color:var(--fg-base-dk);margin-top:.5rem;margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem}a{text-decoration-line:underline}a:hover{color:var(--fg-secondary)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.text-base{color:var(--fg-base)}.text-muted{color:var(--fg-base-dk)}.text-very-muted{color:var(--fg-base-dkr)}.text-secondary{color:var(--fg-secondary)}.bg-secondary{background-color:var(--fg-secondary)}p{margin-top:.5rem;margin-bottom:.5rem}.h1{margin-top:.5rem;margin-bottom:.5rem;font-size:1.875rem;line-height:2.25rem;font-weight:900}.h2{margin-top:1.25rem;margin-bottom:1.25rem;font-size:1.5rem;line-height:2rem;font-weight:700}.h3{font-size:1.125rem;line-height:1.75rem;font-weight:700}.h5{color:var(--fg-base-dk);text-transform:uppercase}.h6{color:var(--fg-base-dk);margin-top:.5rem;margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.left-0{left:0}.z-\[1000\]{z-index:1000}.-z-10{z-index:-10}.z-10{z-index:10}.col-span-2{grid-column:span 2 / span 2}.m-0{margin:0}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-4{margin-top:1rem;margin-bottom:1rem}.my-auto{margin-top:auto;margin-bottom:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mb-2{margin-bottom:.5rem}.ml-4{margin-left:1rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mb-4{margin-bottom:1rem}.mt-10{margin-top:2.5rem}.mb-0{margin-bottom:0}.ml-2{margin-left:.5rem}.ml-8{margin-left:2rem}.mr-4{margin-right:1rem}.ml-0{margin-left:0}.\!mt-0{margin-top:0!important}.mt-\[10px\]{margin-top:10px}.ml-auto{margin-left:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\!grid{display:grid!important}.hidden{display:none}.h-8{height:2rem}.h-12{height:3rem}.h-full{height:100%}.h-96{height:24rem}.h-max{height:-moz-max-content;height:max-content}.w-full{width:100%}.w-8{width:2rem}.w-max{width:-moz-max-content;width:max-content}.w-1\/2{width:50%}.w-1{width:.25rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-sm{max-width:24rem}.max-w-\[60ch\]{max-width:60ch}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\!grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-xl{border-radius:.75rem}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-3xl{border-radius:1.5rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.p-4{padding:1rem}.p-2{padding:.5rem}.p-\[10px\]{padding:10px}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-4{padding-top:1rem}.pb-2{padding-bottom:.5rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.\!text-left{text-align:left!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-5xl{font-size:3rem;line-height:1}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-9xl{font-size:8rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}*{--tw-invert: 0}.fill-page{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.ms-wght-100{font-variation-settings:"wght" 100}.ms-wght-200{font-variation-settings:"wght" 200}.ms-wght-300{font-variation-settings:"wght" 300}.ms-wght-400{font-variation-settings:"wght" 400}.ms-wght-500{font-variation-settings:"wght" 500}.ms-wght-600{font-variation-settings:"wght" 600}.ms-wght-700{font-variation-settings:"wght" 700}.ms-wght-800{font-variation-settings:"wght" 800}.ms-wght-900{font-variation-settings:"wght" 900}.ms-fill{font-variation-settings:"FILL" 1}#app{font-family:var(--ff-base)!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-base);color:var(--fg-base)!important}hr{border-color:var(--border-base)}div.interface{display:flex;flex-direction:row;flex-grow:1;z-index:2;max-height:calc(100vh - var(--h-player) - var(--h-header))}@media only screen and (max-width: 750px){div.interface{max-height:calc(100vh - var(--h-player-mobile) - var(--h-header) - var(--h-sidebar))}}div.appRoot{display:flex;flex-direction:column;width:100vw;height:100vh}html,body{margin:0;padding:0}.bgImageWrapper{position:fixed;top:0;left:0;height:100%;width:100%;z-index:0!important;background:black}.bgImage{height:100%;width:100%;z-index:0!important;filter:blur(100px) brightness(.75);background-position:center;background-repeat:no-repeat;background-size:cover;transform:scale(1.1)}.mobileMenu{display:flex;flex-direction:row;justify-content:center}input[type=text],input[type=password]{background:var(--hover-2);border:1px solid var(--hover-3);border-radius:5px;color:var(--font-colour);padding:10px;width:auto;flex-grow:1;font-family:var(--font-family)}input[type=text]:focus,input[type=password]:focus{outline:none}input[type=text]:hover,input[type=password]:hover{background:var(--hover-1);border:1px solid var(--font-colour)}.hover\:text-primary:hover{color:var(--fg-base)}@media (min-width: 640px){.sm\:ml-0{margin-left:0}}@media (min-width: 768px){.md\:\!w-96{width:24rem!important}} +*/.playlist-entry[data-v-2482bde4]{display:grid;grid-template-columns:50px 40px 1fr 1fr 40px;gap:10px;padding:10px 0;border-radius:20px;border:1px solid transparent}.playlist-entry .artist-title[data-v-2482bde4]{grid-column:3/4}.playlist-entry:not(.withCover) .artist-title[data-v-2482bde4]{grid-column-start:2}.playlist-entry:not(.withAlbum) .artist-title[data-v-2482bde4]{grid-column-end:5}.playlist-entry div[data-v-2482bde4]{overflow:hidden}.playlist-entry .index[data-v-2482bde4],.playlist-entry .album[data-v-2482bde4],.playlist-entry .duration[data-v-2482bde4],.playlist-entry .icon[data-v-2482bde4]{margin:auto 0;font-size:.9rem;color:var(--fg-base-dk)}.playlist-entry .index.index[data-v-2482bde4],.playlist-entry .album.index[data-v-2482bde4],.playlist-entry .duration.index[data-v-2482bde4],.playlist-entry .icon.index[data-v-2482bde4]{cursor:pointer}.playlist-entry .index.icon[data-v-2482bde4],.playlist-entry .album.icon[data-v-2482bde4],.playlist-entry .duration.icon[data-v-2482bde4],.playlist-entry .icon.icon[data-v-2482bde4]{font-size:1.3rem;cursor:pointer;font-variation-settings:"wght" 500}.playlist-entry .index.icon.favourite[data-v-2482bde4],.playlist-entry .album.icon.favourite[data-v-2482bde4],.playlist-entry .duration.icon.favourite[data-v-2482bde4],.playlist-entry .icon.icon.favourite[data-v-2482bde4]{font-variation-settings:"FILL" 1}.playlist-entry.hovering[data-v-2482bde4]{background-color:var(--bg-hover-dk);border:var(--border-container)}.playlist-entry.hovering .index[data-v-2482bde4]{font-size:1.5rem;font-variation-settings:"FILL" 1}.playlist-entry.selected[data-v-2482bde4]{background-color:var(--bg-hover)}.playlist-entry .favourite-icon[data-v-2482bde4]{grid-column:5}.playlist-entry .duration[data-v-2482bde4]{grid-column:6}.playlist-entry .cover[data-v-2482bde4]{display:flex;justify-content:center}.playlist-entry img[data-v-2482bde4]{border-radius:4px;margin:auto 0}.playlist-entry .artist-title[data-v-2482bde4]{display:grid;grid-template-rows:1fr 1fr}.playlist-entry .artist-title .artist[data-v-2482bde4]{font-size:.8rem;color:var(--fg-base-dk)}.playlist-entry .artist-title span[data-v-2482bde4]{max-width:-moz-min-content;max-width:min-content;overflow:hidden}.playlist-entry.playing .title[data-v-2482bde4],.playlist-entry.playing .index[data-v-2482bde4]{color:var(--fg-secondary)}.playlist-entry.hovering .artist[data-v-2482bde4],.playlist-entry.hovering .album[data-v-2482bde4],.playlist-entry.selected .artist[data-v-2482bde4],.playlist-entry.selected .album[data-v-2482bde4]{color:var(--fg-base)}@media screen and (max-width: 768px){.playlist-entry[data-v-2482bde4]{padding:5px 0;border-radius:10px;grid-template-columns:30px 40px 1fr 1fr 30px 40px}.playlist-entry .index[data-v-2482bde4],.playlist-entry .duration[data-v-2482bde4]{font-size:.7rem}.playlist-entry .artist-title[data-v-2482bde4]{grid-column-end:5;font-size:.8rem}.playlist-entry .artist-title .artist[data-v-2482bde4]{font-size:.65rem}}.playlist[data-v-a918d839]{position:relative}.playlist .entries[data-v-a918d839]{position:relative;overflow-y:auto;display:flex;flex-direction:column;height:100%;max-height:30vh}.item[data-v-4496fc3d]{display:flex;align-items:flex-end;gap:1rem;padding:10px;border-radius:20px}.item img[data-v-4496fc3d]{width:50px;height:50px;border-radius:.5em;-o-object-fit:cover;object-fit:cover}.item .tag[data-v-4496fc3d]{padding:.2rem .5rem;border-radius:.5rem;background:var(--bg-base-lt);border:var(--border-container)}.item .info[data-v-4496fc3d]{display:flex;align-items:center;width:100%;gap:.5em}.item .name[data-v-4496fc3d]{font-weight:900;font-size:1rem}.item.large[data-v-4496fc3d]{min-width:40ch;background:var(--bg-base-lt);border:var(--border-container);border-radius:1em;padding:1em}.item.large .info[data-v-4496fc3d]{flex-direction:column;align-items:flex-start}.item.large .name[data-v-4496fc3d]{font-size:1.2rem}.item.large img[data-v-4496fc3d]{width:150px;height:150px}.item[data-v-4496fc3d]:not(.nohover):hover{background:var(--bg-hover-dk);cursor:pointer}.download-anim[data-v-2bea1460]{color:var(--fg-base-dk);animation:anim-2bea1460 .5s ease-out forwards}@keyframes anim-2bea1460{0%{opacity:1;transform:translateY(500px)}to{opacity:0;transform:translateY(0)}}.suggestion[data-v-2bea1460]{display:grid;gap:1em;width:100%}.suggestion .cover[data-v-2bea1460]{border-radius:.5em}.suggestion[data-v-2bea1460]:hover,.suggestion.selected[data-v-2bea1460]{background:var(--bg-hover-dk);cursor:pointer}.suggestion span[data-v-2bea1460]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.suggestion span[data-v-2bea1460]:last-child{color:var(--fg-base-dk);font-size:.8rem}.header[data-v-2bea1460]{background:var(--bg-base-dk);height:var(--h-header);display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-shadow:0 0 10px 0 var(--shadow);z-index:10;border-bottom:var(--border-container)}.logo[data-v-2bea1460]{fill:var(--fg-base);padding:10px;translate:5px 5px;height:100%}.logo[data-v-2bea1460]:hover{cursor:pointer}.header .search{width:100%;display:flex;flex-direction:row;justify-content:center;margin:0 1em}.header .search .input-with-autocomplete{max-width:800px;width:100%;flex:1}.header .search .text-input-with-icon{width:100%}.startup[data-v-24a52185]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.startup .wrap[data-v-24a52185]{width:80%}.startup .logo[data-v-24a52185]{display:flex;flex-direction:row;justify-content:center;width:100%;align-items:center}.startup .logo svg[data-v-24a52185]{fill:var(--fg-base);padding:10px;translate:5px 5px;height:100%;max-width:400px}.startup .logo p[data-v-24a52185]{font-size:1em;color:var(--fg-base);z-index:1;margin-left:50px}.card[data-v-04b9eb92]{background:var(--bg-base-lt);border-radius:1em;border:var(--border-container);position:relative}.card[data-v-04b9eb92]:before{content:"";border-radius:1em;box-shadow:0 0 10px #0000001a;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.card.withHover[data-v-04b9eb92]:hover{background:var(--bg-hover-dk)}.card.disabled[data-v-04b9eb92]{opacity:.5;cursor:not-allowed!important}.notification[data-v-49e9d059]{padding:.5em 1em;display:flex;flex-direction:row;gap:2em;align-items:center;justify-content:space-between;color:#fff;filter:var(--drop-shadow)}.notification.success[data-v-49e9d059]{background-color:var(--success)}.notification.error[data-v-49e9d059]{background-color:var(--fail)}.notification.info[data-v-49e9d059]{background-color:var(--info)}.notification.warning[data-v-49e9d059]{background-color:var(--warning)}.notification h4[data-v-49e9d059],.notification p[data-v-49e9d059]{margin:0}.notification .details[data-v-49e9d059]{font-size:.8em}.close[data-v-49e9d059]{cursor:pointer}.notification[data-v-4dd7578e]{gap:2em;align-items:center;color:var(--fg-base);overflow:hidden;filter:var(--drop-shadow);background:var(--fg-contrast)}.notification .message[data-v-4dd7578e]{padding:.5em 1em}.notification .message h4[data-v-4dd7578e]{margin:0}.notification .message .details[data-v-4dd7578e]{font-size:.8em}.yes-no[data-v-4dd7578e]{display:flex;flex-direction:row}.yes-no .option[data-v-4dd7578e]{flex:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.yes-no .option.yes[data-v-4dd7578e]{background-color:var(--success)}.yes-no .option.no[data-v-4dd7578e]{background-color:var(--fail)}.notifications[data-v-ca1aa49b]{position:absolute;inset:auto auto 0 0;z-index:10;margin:2em 2em calc(var(--h-player) + 10px) calc(var(--w-sidebar) + 40px);display:flex;flex-direction:column;gap:1em;align-items:flex-start}.notifications .notification[data-v-ca1aa49b]{min-width:200px;max-width:400px}@font-face{font-family:v-contextmenu;src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=#iefix) format("embedded-opentype"),url(data:font/woff;base64,d09GRgABAAAAAAUAAAsAAAAAB1gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kgMY21hcAAAAYAAAABeAAABhpnABr5nbHlmAAAB4AAAAS4AAAE8h1VEkmhlYWQAAAMQAAAALwAAADYPY7HCaGhlYQAAA0AAAAAcAAAAJAfeA4RobXR4AAADXAAAAAwAAAAMC+kAAGxvY2EAAANoAAAACAAAAAgAdgCebWF4cAAAA3AAAAAfAAAAIAESAF1uYW1lAAADkAAAAUUAAAJtPlT+fXBvc3QAAATYAAAAKAAAADlBG9LpeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sE4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDxTYm7438AQw9zA0AAUZgTJAQAl4gyOeJzFkMENgDAMAy9t6QMxRV88GIgXc3TirlFMKA8mqCXHimMpUYAFiOIhJrAL48Ep19yPrO4nz2SpEait9K7+U0U0y65BJTMNNm/1H5vXfXT6CnVQJ7byknADpO8MFwAAeJwVjL1Kw1AARu93Y/7a3MTe/KdN2yS2V6kGjLEKYru4KA6Cgzj6ALp2cegiODj4DCKIr1D6AL6A7qIP4BNE48fhwFk+IhPy+yktpYDYZJ1skyNyRgiUEVKTxkhEmdMR3ER2fceURCYSNUtz6RB+qjheMS6HvqIqFkx0sZMUY5FTgd1yQg9QeDEQtqNzPuhw6RGNQHTvqhP6BLeXdazJVnW8OXWKvq3NDM5Dzh80RZY1SlcsE9e+p8t6Q6meZStyl70N2oMRiuj0kvXb/Oq+vIkHvg7M57DbffNl2opaNbeRZ/NQXWVaELFszcHsuxnYRjz8IvXwL/pBf0irDkeFkmO8pyPHBD48+s6qVzMJwLBfvTEEKcMFw5wb1aKJMGEQECwJ0awWRv30B+KIMJEAAHicY2BkYGAA4sM/urfH89t8ZeBmYQCBa0pmzxD0/4csDMwSQC4HAxNIFABNGgrfAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAAA+kAAAQAAAAAAAAAAHYAnnicY2BkYGBgZghkYGUAASYg5gJCBob/YD4DABD3AXAAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYGxgjuxqCi/XLcoMz2jhIEBAC8dBRY=) format("woff"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4i7dfDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=) format("truetype"),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0A%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%20%3E%0A%3C!--%0A2013-9-30%3A%20Created.%0A--%3E%0A%3Csvg%3E%0A%3Cmetadata%3E%0ACreated%20by%20iconfont%0A%3C%2Fmetadata%3E%0A%3Cdefs%3E%0A%0A%3Cfont%20id%3D%22iconfont%22%20horiz-adv-x%3D%221024%22%20%3E%0A%20%20%3Cfont-face%0A%20%20%20%20font-family%3D%22iconfont%22%0A%20%20%20%20font-weight%3D%22500%22%0A%20%20%20%20font-stretch%3D%22normal%22%0A%20%20%20%20units-per-em%3D%221024%22%0A%20%20%20%20ascent%3D%22896%22%0A%20%20%20%20descent%3D%22-128%22%0A%20%20%2F%3E%0A%20%20%20%20%3Cmissing-glyph%20%2F%3E%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22x%22%20unicode%3D%22x%22%20horiz-adv-x%3D%221001%22%0Ad%3D%22M281%20543q-27%20-1%20-53%20-1h-83q-18%200%20-36.5%20-6t-32.5%20-18.5t-23%20-32t-9%20-45.5v-76h912v41q0%2016%20-0.5%2030t-0.5%2018q0%2013%20-5%2029t-17%2029.5t-31.5%2022.5t-49.5%209h-133v-97h-438v97zM955%20310v-52q0%20-23%200.5%20-52t0.5%20-58t-10.5%20-47.5t-26%20-30t-33%20-16t-31.5%20-4.5q-14%20-1%20-29.5%20-0.5%0At-29.5%200.5h-32l-45%20128h-439l-44%20-128h-29h-34q-20%200%20-45%201q-25%200%20-41%209.5t-25.5%2023t-13.5%2029.5t-4%2030v167h911zM163%20247q-12%200%20-21%20-8.5t-9%20-21.5t9%20-21.5t21%20-8.5q13%200%2022%208.5t9%2021.5t-9%2021.5t-22%208.5zM316%20123q-8%20-26%20-14%20-48q-5%20-19%20-10.5%20-37t-7.5%20-25t-3%20-15t1%20-14.5%0At9.5%20-10.5t21.5%20-4h37h67h81h80h64h36q23%200%2034%2012t2%2038q-5%2013%20-9.5%2030.5t-9.5%2034.5q-5%2019%20-11%2039h-368zM336%20498v228q0%2011%202.5%2023t10%2021.5t20.5%2015.5t34%206h188q31%200%2051.5%20-14.5t20.5%20-52.5v-227h-327z%22%20%2F%3E%0A%20%20%20%20%0A%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22arrow-right%22%20unicode%3D%22%26%2358914%3B%22%20d%3D%22M725.3399071604938%20383.8342991012345a41.425224691358025%2041.425224691358025%200%200%200-12.924670103703681-30.074713125925918l-343.82936493827134-325.2708642765434a41.425224691358025%2041.425224691358025%200%200%200-56.91825872592596%2060.23227670123452l312.0976428246912%20295.1961511506175-312.0976428246914%20295.4447024987654a41.50807514074074%2041.50807514074074%200%200%200-1.6570089876543506%2058.575267713580246c15.74158538271605%2016.570089876543207%2042.00517783703699%2017.315743920987664%2058.575267713580246%201.6570089876543506l343.8293649382716-325.6022660740737a41.425224691358025%2041.425224691358025%200%200%200%2012.924670103703713-30.15756357530862z%22%20%20horiz-adv-x%3D%221024%22%20%2F%3E%0A%0A%20%20%20%20%0A%0A%0A%20%20%3C%2Ffont%3E%0A%3C%2Fdefs%3E%3C%2Fsvg%3E%0A) format("svg")}.v-contextmenu-icon{font-family:v-contextmenu!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.v-contextmenu-icon-right-arrow:before{content:""}.v-contextmenu{position:absolute;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;-webkit-box-shadow:2px 2px 8px 0 rgba(150,150,150,.2);box-shadow:2px 2px 8px #96969633;font-size:14px;white-space:nowrap;line-height:1;z-index:2020;-webkit-tap-highlight-color:transparent}.v-contextmenu-inner{padding:5px 0;margin:0;list-style:none}.v-contextmenu-item{padding:5px 14px;line-height:1;color:#333;cursor:pointer}.v-contextmenu-item--hover{color:#fff;background-color:#2d3035}.v-contextmenu-item--disabled{color:#3336;cursor:not-allowed}.v-contextmenu-divider{height:0;margin:5px 0;border-bottom:1px solid #e8e8e8}.v-contextmenu-group__title{padding:5px 14px 2.5px;color:#3333338c;font-size:60%}.v-contextmenu-group__menus{padding:0 5px;margin:0;list-style:none}.v-contextmenu-group__menus .v-contextmenu-item{display:inline-block;padding:5px 9px}.v-contextmenu-submenu{position:relative}.v-contextmenu-submenu__title{padding-right:22.4px}.v-contextmenu-submenu__menus{position:absolute}.v-contextmenu-submenu__menus--left{left:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.v-contextmenu-submenu__menus--right{right:0;-webkit-transform:translateX(100%);transform:translate(100%)}.v-contextmenu-submenu__menus--top{top:-6px}.v-contextmenu-submenu__menus--bottom{bottom:-6px}.v-contextmenu-submenu__arrow{position:absolute;right:5px}.v-contextmenu-enter-active{-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.v-contextmenu-leave-active{-webkit-transition:opacity .3s cubic-bezier(1,.5,.8,1);transition:opacity .3s cubic-bezier(1,.5,.8,1)}.v-contextmenu-enter-from,.v-contextmenu-leave-to{opacity:0}.logo[data-v-50cefd67]{fill:var(--fg-base);padding:10px;width:60%}.logo[data-v-50cefd67]:hover{cursor:pointer}.collapseSidebar[data-v-50cefd67]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:40px}.collapseSidebar.minimised[data-v-50cefd67]{justify-content:center}.collapseSidebar .clickSymbol[data-v-50cefd67]{border-radius:5px}.collapseSidebar .clickSymbol[data-v-50cefd67]:hover{cursor:pointer;background:var(--hover-2)}.static[data-v-50cefd67]{flex-shrink:0;flex-grow:0}@media screen and (max-width: 750px){.static[data-v-50cefd67]{display:flex;flex-direction:row;justify-content:space-between;width:100%}}h2[data-v-50cefd67]{margin-bottom:0}.cover[data-v-50cefd67]{position:absolute;bottom:10px;width:100%;transform:translate(-10px,10px)}.playlistList[data-v-50cefd67]{flex-grow:1;display:flex;flex-direction:column;overflow-y:auto}.playlistList.expanded[data-v-50cefd67]{padding:0 10px}.playlistList>a[data-v-50cefd67]{font-size:.92em;text-decoration:none;color:var(--font-darker);margin-bottom:4px;margin-top:4px}.playlistList>a[data-v-50cefd67]:hover{color:var(--font-colour)}hr[data-v-50cefd67]{width:100%}div.sidebar[data-v-50cefd67]{background:var(--bg-base-dk);width:calc(var(--w-sidebar) + 20px);min-width:calc(var(--w-sidebar) + 20px);max-width:calc(var(--w-sidebar) + 20px);display:flex;flex-direction:column;padding:10px;margin:10px;border-radius:8px;max-height:100%;z-index:1;position:relative;overflow:hidden;border:var(--border-container)}@media screen and (max-width: 750px){div.sidebar[data-v-50cefd67]{flex-direction:row;width:100vw;position:absolute;bottom:0;margin:0;max-width:100vw;border-radius:0}}h2[data-v-50cefd67]:hover{cursor:pointer}h2[data-v-50cefd67]{margin:0;padding:10px}div.body[data-v-85e4fc55]{flex-grow:1;overflow-y:auto;overflow-x:hidden;max-width:calc(100vw - var(--sidebar-width));max-height:calc(100vh - var(--player-height) - var(--header-height))}div.body.maximised[data-v-85e4fc55]{max-width:100vw;max-height:100vh}@media screen and (max-width: 950px){div.body[data-v-85e4fc55]{max-width:100vw;max-height:calc(100vh - var(--player-height-mobile) - var(--sidebar-height) - var(--header-height))}}.progressBar__track[data-v-bd694edc]{position:relative;width:100%;height:5px;margin:10px 0;border-radius:1000vmax;background-color:var(--fg-base-dkr)}.progressBar__progress[data-v-bd694edc]{position:relative;height:5px;border-radius:1000vmax;background-color:var(--fg-base)}.progressBar__progress.hover[data-v-bd694edc]{background-color:var(--fg-secondary)}.progressBar__progress.hover[data-v-bd694edc]:after{content:""}.progressBar__progress[data-v-bd694edc]:after{position:absolute;top:-5px;right:-5px;width:15px;height:15px;border-radius:50%;background-color:var(--fg-base)}.dropdown[data-v-b20d4971]{position:relative;display:inline-block}.dropdown__selected[data-v-b20d4971]{color:var(--fg-base-dk);cursor:pointer;font-size:1.5rem;border-radius:10px;padding:5px}.dropdown__selected[data-v-b20d4971]:hover{background:var(--bg-hover-lt);color:var(--fg-secondary)}.dropdown__options[data-v-b20d4971]{position:absolute;z-index:999;width:max(100%,20rem);max-height:20rem;overflow-y:auto;background:var(--bg-base);border-radius:5px;filter:var(--drop-shadow)}.dropdown__options .dropdown__option[data-v-b20d4971]{padding:.5rem;cursor:pointer;transition:all .2s ease-in-out;display:grid;grid-template-columns:35px 1fr 20px}.dropdown__options .dropdown__option[data-v-b20d4971]:hover{background:var(--bg-hover)}.loader[data-v-ed1fd951]{width:20px;height:20px;margin:auto;border:3px solid var(--fg-base-dk);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation-ed1fd951 1s linear infinite}@keyframes rotation-ed1fd951{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#waveform wave,#waveform canvas{width:100%;height:calc(var(--h-player) / 2 - 1em)!important}.player .on-this-device>.material-symbols-rounded{color:var(--fg-secondary)}.player[data-v-07466254]{background:var(--bg-base-lt);border-top:1px solid var(--border-base);z-index:2}.icon[data-v-07466254]{color:var(--fg-base-dk)}.icon[data-v-07466254]:hover{color:var(--fg-base)}.desktop[data-v-07466254]{display:grid;height:calc(var(--h-player) - 1px);grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);grid-template-areas:"song-info controls aux";gap:10px}.desktop .song-info[data-v-07466254]{grid-area:song-info;display:grid;align-items:center;grid-template-columns:calc(var(--h-player) - 40px) fit-content(100%) 20px 20px;gap:10px;overflow:hidden}.desktop .song-info .title-artist[data-v-07466254]{overflow:hidden}.desktop .song-info div[data-v-07466254]{margin:auto 0}.desktop .controls[data-v-07466254]{grid-area:controls;display:grid;grid-template-columns:1fr;grid-template-rows:1fr auto}.desktop .controls .top[data-v-07466254]{display:grid;grid-template-columns:repeat(2,20px) 40px repeat(2,20px);gap:1.5em;justify-content:center}.desktop .controls .top span[data-v-07466254]{margin:auto 0;font-size:1.5rem}.desktop .controls .top span[data-v-07466254]:nth-child(3){font-size:2.5rem}.desktop .controls .bottom .display[data-v-07466254]{display:grid;grid-template-columns:1fr 10fr 1fr;gap:.5em;margin-bottom:.5em;align-items:center}.desktop .aux[data-v-07466254]{grid-area:aux;justify-content:end;display:grid;grid-template-columns:20px 20px 20px minmax(auto,8vw);gap:1em;align-items:center}.desktop .aux a.icon[data-v-07466254]{display:flex;text-decoration:none}.desktop .aux a.icon.router-link-active[data-v-07466254]{color:var(--fg-secondary)}.mobile .small[data-v-07466254]{display:grid;grid-template-columns:calc(var(--h-player-mobile) - 1em) 1fr 30px 30px;gap:1em;margin:.5em;align-items:center;max-width:calc(100vw - 2em)}.mobile .small .cover[data-v-07466254]{border-radius:10px;background:var(--bg-base-dk);margin:auto 0}.mobile .full[data-v-07466254]{position:absolute;top:0;left:0;width:100vw;height:calc(100vh - var(--h-sidebar));max-height:calc(100vh - var(--h-sidebar));overflow:hidden;background:var(--bg-base);padding:2em;display:grid;grid-template-columns:1fr;grid-template-rows:30px 1fr fit-content(100%)}.mobile .full .cover[data-v-07466254]{filter:drop-shadow(0 25px 25px rgba(0,0,0,.3))}.mobile .full .controls[data-v-07466254]{display:flex;flex-direction:column-reverse}.mobile .full .controls .top[data-v-07466254]{display:grid;grid-template-columns:repeat(5,1fr);gap:1.5em;justify-content:center}.mobile .full .controls .top span[data-v-07466254]{margin:auto 0;font-size:2rem}.mobile .full .controls .top span[data-v-07466254]:nth-child(3){font-size:3rem}.dropzone *[data-v-c5853362]{pointer-events:none}.dropzone.drophover[data-v-c5853362]:after{content:" ";display:block;text-align:center;color:var(--text-muted);font-style:italic;font-size:.8rem;background:rgba(0,0,0,.5);border-radius:1rem;position:absolute;top:0;right:0;bottom:0;left:0;margin-top:1em;margin-bottom:1em;margin-right:1em;z-index:1000}.noLink{text-decoration:none;color:unset}.noLink:hover{text-decoration:none;cursor:default;color:unset}.linkOnHover{text-decoration:none;color:unset}.linkOnHover:hover{text-decoration:underline;cursor:pointer;color:var(--fg-base)}.v-contextmenu{background:var(--fg-contrast)!important;font-family:var(--ff-base)!important;border:1px solid var(--bg-hover-dk);box-shadow:none;--webkit-box-shadow: none;color:var(--fg-base)!important}.v-contextmenu-divider{border-color:var(--border-base)}.v-contextmenu-item{color:var(--fg-base)!important;margin:5px;padding:10px 22px 10px 15px;border-radius:5px}.v-contextmenu-item--hover{background:var(--bg-hover-dk)!important}::-webkit-scrollbar{width:var(--w-scrollbar);height:var(--w-scrollbar);padding:0;margin:0;z-index:101}::-webkit-scrollbar-track{border-radius:var(--w-scrollbar)}::-webkit-scrollbar-thumb{background:var(--bg-hover);border-radius:var(--w-scrollbar)}::-webkit-scrollbar-thumb:hover{background:var(--bg-hover-dk)}:root{--fg-secondary: #1ed760;--fg-secondary-dk: #217e41;--bg-contrast: white;--fg-contrast: #121212;--fg-base: white;--fg-base-dk: #a7a7a7;--fg-base-dkr: #999;--bg-hover-ltr: #242424;--bg-hover-lt: hsla(0,0%,100%,.04);--bg-hover: hsla(0,0%,100%,.3);--bg-hover-dk: hsla(0,0%,100%,.1);--border-base: hsla(0,0%,100%,.1);--border-container: var(--border-base);--bg-gradient: linear-gradient(to left bottom, #1ed760, #217e41);--bg-base: #121212;--bg-base-lt: #181818;--bg-base-dk: black;--bg-fixedPlaylistHeader: var(--bg-base-lt);--border-fixedPlaylistHeader: #303030;--bg-input: var(--background-light);--ff-base: Poppins, sans-serif;--h-playlistEntry: 64px;--h-player: 88px;--h-player-mobile: 64px;--h-header: 64px;--w-sidebar: 44px;--h-sidebar: 64px;--w-scrollbar: 8px;--drop-shadow: drop-shadow(0 0 .5rem rgba(0, 0, 0, .2));--background: #1e1e1e;--neutral: #374148;--success: #00c48b;--fail: #e85454;--warning: #c7aa19;--info: #189de4}.showIfMobile{display:none!important}.hideIfMobile{display:inherit}@media only screen and (max-width: 750px){.showIfMobile{display:inherit!important}.hideIfMobile{display:none!important}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}h1{margin-top:.5rem;margin-bottom:.5rem;font-size:1.875rem;line-height:2.25rem;font-weight:900}h2{margin-top:1.25rem;margin-bottom:1.25rem;font-size:1.5rem;line-height:2rem;font-weight:700}h3{font-size:1.125rem;line-height:1.75rem;font-weight:700}h4{margin-top:1rem;margin-bottom:1rem;font-weight:700}h5{color:var(--fg-base-dk);text-transform:uppercase}h6{color:var(--fg-base-dk);margin-top:.5rem;margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem}a{text-decoration-line:underline}a:hover{color:var(--fg-secondary)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.text-base{color:var(--fg-base)}.text-muted{color:var(--fg-base-dk)}.text-very-muted{color:var(--fg-base-dkr)}.text-secondary{color:var(--fg-secondary)}.bg-secondary{background-color:var(--fg-secondary)}p{margin-top:.5rem;margin-bottom:.5rem}.h1{margin-top:.5rem;margin-bottom:.5rem;font-size:1.875rem;line-height:2.25rem;font-weight:900}.h2{margin-top:1.25rem;margin-bottom:1.25rem;font-size:1.5rem;line-height:2rem;font-weight:700}.h3{font-size:1.125rem;line-height:1.75rem;font-weight:700}.h5{color:var(--fg-base-dk);text-transform:uppercase}.h6{color:var(--fg-base-dk);margin-top:.5rem;margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.left-0{left:0}.z-\[1000\]{z-index:1000}.-z-10{z-index:-10}.z-10{z-index:10}.col-span-2{grid-column:span 2 / span 2}.m-0{margin:0}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-4{margin-top:1rem;margin-bottom:1rem}.my-auto{margin-top:auto;margin-bottom:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mb-2{margin-bottom:.5rem}.ml-4{margin-left:1rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mb-4{margin-bottom:1rem}.mt-10{margin-top:2.5rem}.mb-0{margin-bottom:0}.ml-2{margin-left:.5rem}.ml-8{margin-left:2rem}.mr-4{margin-right:1rem}.ml-0{margin-left:0}.\!mt-0{margin-top:0!important}.mt-\[10px\]{margin-top:10px}.ml-auto{margin-left:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\!grid{display:grid!important}.hidden{display:none}.h-8{height:2rem}.h-12{height:3rem}.h-full{height:100%}.h-96{height:24rem}.h-max{height:-moz-max-content;height:max-content}.w-full{width:100%}.w-8{width:2rem}.w-max{width:-moz-max-content;width:max-content}.w-1\/2{width:50%}.w-1{width:.25rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-\[40vw\]{min-width:40vw}.max-w-sm{max-width:24rem}.max-w-\[60ch\]{max-width:60ch}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\!grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-xl{border-radius:.75rem}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-3xl{border-radius:1.5rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.p-4{padding:1rem}.p-2{padding:.5rem}.p-\[10px\]{padding:10px}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-4{padding-top:1rem}.pb-2{padding-bottom:.5rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.\!text-left{text-align:left!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-5xl{font-size:3rem;line-height:1}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-9xl{font-size:8rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}*{--tw-invert: 0}.fill-page{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.ms-wght-100{font-variation-settings:"wght" 100}.ms-wght-200{font-variation-settings:"wght" 200}.ms-wght-300{font-variation-settings:"wght" 300}.ms-wght-400{font-variation-settings:"wght" 400}.ms-wght-500{font-variation-settings:"wght" 500}.ms-wght-600{font-variation-settings:"wght" 600}.ms-wght-700{font-variation-settings:"wght" 700}.ms-wght-800{font-variation-settings:"wght" 800}.ms-wght-900{font-variation-settings:"wght" 900}.ms-fill{font-variation-settings:"FILL" 1}#app{font-family:var(--ff-base)!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-base);color:var(--fg-base)!important}hr{border-color:var(--border-base)}div.interface{display:flex;flex-direction:row;flex-grow:1;z-index:2;max-height:calc(100vh - var(--h-player) - var(--h-header))}@media only screen and (max-width: 750px){div.interface{max-height:calc(100vh - var(--h-player-mobile) - var(--h-header) - var(--h-sidebar))}}div.appRoot{display:flex;flex-direction:column;width:100vw;height:100vh}html,body{margin:0;padding:0}.bgImageWrapper{position:fixed;top:0;left:0;height:100%;width:100%;z-index:0!important;background:black}.bgImage{height:100%;width:100%;z-index:0!important;filter:blur(100px) brightness(.75);background-position:center;background-repeat:no-repeat;background-size:cover;transform:scale(1.1)}.mobileMenu{display:flex;flex-direction:row;justify-content:center}input[type=text],input[type=password]{background:var(--hover-2);border:1px solid var(--hover-3);border-radius:5px;color:var(--font-colour);padding:10px;width:auto;flex-grow:1;font-family:var(--font-family)}input[type=text]:focus,input[type=password]:focus{outline:none}input[type=text]:hover,input[type=password]:hover{background:var(--hover-1);border:1px solid var(--font-colour)}.hover\:text-primary:hover{color:var(--fg-base)}@media (min-width: 640px){.sm\:ml-0{margin-left:0}}@media (min-width: 768px){.md\:\!w-96{width:24rem!important}} diff --git a/src/ui/dist/assets/index-6ee17978.css.gz b/src/ui/dist/assets/index-6ee17978.css.gz new file mode 100644 index 000000000..34d68b070 Binary files /dev/null and b/src/ui/dist/assets/index-6ee17978.css.gz differ diff --git a/src/ui/dist/assets/index-712f8d27.js.gz b/src/ui/dist/assets/index-712f8d27.js.gz deleted file mode 100644 index c58ea6d1d..000000000 Binary files a/src/ui/dist/assets/index-712f8d27.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-c7c58561.css b/src/ui/dist/assets/index-8f9fd7d1.css similarity index 84% rename from src/ui/dist/assets/index-c7c58561.css rename to src/ui/dist/assets/index-8f9fd7d1.css index b0fc9bfbc..87527125c 100644 --- a/src/ui/dist/assets/index-c7c58561.css +++ b/src/ui/dist/assets/index-8f9fd7d1.css @@ -1 +1 @@ -.btn[data-v-3f038910]{width:100%;text-align:left;padding:.5em 1em;border-radius:.5em;font-size:.9rem;border:1px solid transparent}.btn.active[data-v-3f038910]{background:var(--bg-base-lt);border:var(--border-container)}.latest[data-v-6c134c33]{--color: var(--success)}.update[data-v-6c134c33]{--color: var(--warning)}span[data-v-6c134c33]{color:var(--color)}a[data-v-6c134c33]:hover{color:inherit;font-weight:700}.items[data-v-16d50c59]{display:grid;grid-template-columns:repeat(auto-fill,minmax(30ch,1fr))}.checkbox[data-v-be9fa887]{display:flex;align-items:center;margin:10px 0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.checkbox .checkbox__label[data-v-be9fa887]{margin-left:10px}.checkbox .checkbox__label .checkbox__label__title[data-v-be9fa887]{font-size:1em}.checkbox .checkbox__label .checkbox__label__sublabel[data-v-be9fa887]{font-size:.85em;color:var(--font-darker)}.checkbox .checkbox__checkbox[data-v-be9fa887]{font-size:1.5em;font-variation-settings:"FILL" 0,"WEIGHT" 500,"WIDTH" 100}p[data-v-74855c2d]{margin:0 0 .5em;font-size:.8em;color:var(--fg-base-dk);text-transform:capitalize}p.selected[data-v-74855c2d]{color:var(--fg-secondary)}.wrapper[data-v-74855c2d]{grid-column:span 2}.wrapper[data-v-74855c2d]:hover{cursor:pointer}img[data-v-74855c2d]{width:100%;border-radius:8px}img.selected[data-v-74855c2d]{border:2px solid var(--fg-secondary)}.themes[data-v-5cc6477c]{display:flex;flex-direction:row;flex-wrap:wrap;gap:1em}.themes .wrapper[data-v-5cc6477c]{max-width:200px}.text-input-with-icon[data-v-5e026540]{background:var(--bg-base-lt);border:1px solid var(--border-base);color:var(--fg-base-dk)}.text-input-with-icon.disabled[data-v-5e026540],.text-input-with-icon.disabled input[data-v-5e026540]{cursor:not-allowed!important}.text-input-with-icon input[data-v-5e026540]{color:var(--fg-base-dk)}.text-input-with-iconfocus[data-v-5e026540],.text-input-with-icon[data-v-5e026540]:focus-within,.text-input-with-icon[data-v-5e026540]:hover{border-color:var(--fg-base);color:var(--fg-base)}.text-input-with-iconfocus input[data-v-5e026540],.text-input-with-icon:focus-within input[data-v-5e026540],.text-input-with-icon:hover input[data-v-5e026540]{color:var(--fg-base)}input[data-v-5e026540]{background:none!important;border:none!important}ul{margin-left:2em;list-style-type:disc}.markdown-body{line-height:1.5}.preferences[data-v-ae954c76]{display:flex;flex-direction:column;align-items:center}.section[data-v-ae954c76]:not(:last-child){border-bottom:var(--border-container)}.btn[data-v-ae954c76]{width:100%;text-align:left;padding:.5em 1em;border-radius:.5em;font-size:.9rem;border:1px solid transparent}.btn.active[data-v-ae954c76]{background:var(--bg-base-lt);border:var(--border-container)}.preferences>*[data-v-ae954c76]{max-width:1000px;width:100%}.wrapper[data-v-ae954c76]{display:grid;grid-template-columns:200px 1fr;gap:1em} +.btn[data-v-3f038910]{width:100%;text-align:left;padding:.5em 1em;border-radius:.5em;font-size:.9rem;border:1px solid transparent}.btn.active[data-v-3f038910]{background:var(--bg-base-lt);border:var(--border-container)}.latest[data-v-6c134c33]{--color: var(--success)}.update[data-v-6c134c33]{--color: var(--warning)}span[data-v-6c134c33]{color:var(--color)}a[data-v-6c134c33]:hover{color:inherit;font-weight:700}.items[data-v-16d50c59]{display:grid;grid-template-columns:repeat(auto-fill,minmax(30ch,1fr))}.checkbox[data-v-be9fa887]{display:flex;align-items:center;margin:10px 0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.checkbox .checkbox__label[data-v-be9fa887]{margin-left:10px}.checkbox .checkbox__label .checkbox__label__title[data-v-be9fa887]{font-size:1em}.checkbox .checkbox__label .checkbox__label__sublabel[data-v-be9fa887]{font-size:.85em;color:var(--font-darker)}.checkbox .checkbox__checkbox[data-v-be9fa887]{font-size:1.5em;font-variation-settings:"FILL" 0,"WEIGHT" 500,"WIDTH" 100}p[data-v-74855c2d]{margin:0 0 .5em;font-size:.8em;color:var(--fg-base-dk);text-transform:capitalize}p.selected[data-v-74855c2d]{color:var(--fg-secondary)}.wrapper[data-v-74855c2d]{grid-column:span 2}.wrapper[data-v-74855c2d]:hover{cursor:pointer}img[data-v-74855c2d]{width:100%;border-radius:8px}img.selected[data-v-74855c2d]{border:2px solid var(--fg-secondary)}.themes[data-v-5cc6477c]{display:flex;flex-direction:row;flex-wrap:wrap;gap:1em}.themes .wrapper[data-v-5cc6477c]{max-width:200px}.text-input-with-icon[data-v-5e026540]{background:var(--bg-base-lt);border:1px solid var(--border-base);color:var(--fg-base-dk)}.text-input-with-icon.disabled[data-v-5e026540],.text-input-with-icon.disabled input[data-v-5e026540]{cursor:not-allowed!important}.text-input-with-icon input[data-v-5e026540]{color:var(--fg-base-dk)}.text-input-with-iconfocus[data-v-5e026540],.text-input-with-icon[data-v-5e026540]:focus-within,.text-input-with-icon[data-v-5e026540]:hover{border-color:var(--fg-base);color:var(--fg-base)}.text-input-with-iconfocus input[data-v-5e026540],.text-input-with-icon:focus-within input[data-v-5e026540],.text-input-with-icon:hover input[data-v-5e026540]{color:var(--fg-base)}input[data-v-5e026540]{background:none!important;border:none!important}ul{margin-left:2em;list-style-type:disc}.markdown-body{line-height:1.5}.preferences[data-v-4ad07a26]{display:flex;flex-direction:column;align-items:center}.section[data-v-4ad07a26]:not(:last-child){border-bottom:var(--border-container)}.btn[data-v-4ad07a26]{width:100%;text-align:left;padding:.5em 1em;border-radius:.5em;font-size:.9rem;border:1px solid transparent}.btn.active[data-v-4ad07a26]{background:var(--bg-base-lt);border:var(--border-container)}.preferences>*[data-v-4ad07a26]{max-width:1000px;width:100%}.wrapper[data-v-4ad07a26]{display:grid;grid-template-columns:200px 1fr;gap:1em} diff --git a/src/ui/dist/assets/index-8f9fd7d1.css.gz b/src/ui/dist/assets/index-8f9fd7d1.css.gz new file mode 100644 index 000000000..66d8fb3d3 Binary files /dev/null and b/src/ui/dist/assets/index-8f9fd7d1.css.gz differ diff --git a/src/ui/dist/assets/index-effe4d2f.js b/src/ui/dist/assets/index-926884cb.js similarity index 70% rename from src/ui/dist/assets/index-effe4d2f.js rename to src/ui/dist/assets/index-926884cb.js index c4d26ed07..9a5c11e5c 100644 --- a/src/ui/dist/assets/index-effe4d2f.js +++ b/src/ui/dist/assets/index-926884cb.js @@ -1,22 +1,22 @@ -var E2=Object.defineProperty;var S2=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oi=(e,t,r)=>(S2(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function Sa(e,t){const r=Object.create(null),s=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const ct={},Li=[],Ln=()=>{},O2=()=>!1,R2=/^on[^a-z]/,Js=e=>R2.test(e),Yu=e=>e.startsWith("onUpdate:"),bt=Object.assign,Ju=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},T2=Object.prototype.hasOwnProperty,nt=(e,t)=>T2.call(e,t),Ee=Array.isArray,$i=e=>Yi(e)==="[object Map]",ui=e=>Yi(e)==="[object Set]",lh=e=>Yi(e)==="[object Date]",I2=e=>Yi(e)==="[object RegExp]",Be=e=>typeof e=="function",wt=e=>typeof e=="string",Ws=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Xu=e=>(ft(e)||Be(e))&&Be(e.then)&&Be(e.catch),Bp=Object.prototype.toString,Yi=e=>Bp.call(e),M2=e=>Yi(e).slice(8,-1),Np=e=>Yi(e)==="[object Object]",Qu=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ts=Sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oa=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},L2=/-(\w)/g,pn=Oa(e=>e.replace(L2,(t,r)=>r?r.toUpperCase():"")),$2=/\B([A-Z])/g,Pn=Oa(e=>e.replace($2,"-$1").toLowerCase()),Ra=Oa(e=>e.charAt(0).toUpperCase()+e.slice(1)),aa=Oa(e=>e?`on${Ra(e)}`:""),$r=(e,t)=>!Object.is(e,t),Di=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pa=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let uh;const xu=()=>uh||(uh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),D2="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",B2=Sa(D2);function Vr(e){if(Ee(e)){const t={};for(let r=0;r{if(r){const s=r.split(W2);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Je(e){let t="";if(wt(e))t=e;else if(Ee(e))for(let r=0;rDr(r,t))}const We=e=>wt(e)?e:e==null?"":Ee(e)||ft(e)&&(e.toString===Bp||!Be(e.toString))?JSON.stringify(e,Fp,2):String(e),Fp=(e,t)=>t&&t.__v_isRef?Fp(e,t.value):$i(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[s,o])=>(r[`${s} =>`]=o,r),{})}:ui(t)?{[`Set(${t.size})`]:[...t.values()]}:ft(t)&&!Ee(t)&&!Np(t)?String(t):t;let dn;class Vp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dn,!t&&dn&&(this.index=(dn.scopes||(dn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=dn;try{return dn=this,t()}finally{dn=r}}}on(){dn=this}off(){dn=this.parent}stop(t){if(this._active){let r,s;for(r=0,s=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},jp=e=>(e.w&Br)>0,Kp=e=>(e.n&Br)>0,K2=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let s=0;s{(p==="length"||p>=f)&&c.push(h)})}else switch(r!==void 0&&c.push(u.get(r)),t){case"add":Ee(e)?Qu(r)&&c.push(u.get("length")):(c.push(u.get(ii)),$i(e)&&c.push(u.get(Cu)));break;case"delete":Ee(e)||(c.push(u.get(ii)),$i(e)&&c.push(u.get(Cu)));break;case"set":$i(e)&&c.push(u.get(ii));break}if(c.length===1)c[0]&&ku(c[0]);else{const f=[];for(const h of c)h&&f.push(...h);ku(ec(f))}}function ku(e,t){const r=Ee(e)?e:[...e];for(const s of r)s.computed&&fh(s);for(const s of r)s.computed||fh(s)}function fh(e,t){(e!==In||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Z2(e,t){var r;return(r=ma.get(e))==null?void 0:r.get(t)}const G2=Sa("__proto__,__v_isRef,__isVue"),Gp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ws)),dh=Y2();function Y2(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const s=tt(this);for(let l=0,u=this.length;l{e[t]=function(...r){Ji();const s=tt(this)[t].apply(this,r);return Xi(),s}}),e}function J2(e){const t=tt(this);return rn(t,"has",e),t.hasOwnProperty(e)}class Yp{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,s){const o=this._isReadonly,l=this._shallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return l;if(r==="__v_raw"&&s===(o?l?nm:tm:l?em:Qp).get(t))return t;const u=Ee(t);if(!o){if(u&&nt(dh,r))return Reflect.get(dh,r,s);if(r==="hasOwnProperty")return J2}const c=Reflect.get(t,r,s);return(Ws(r)?Gp.has(r):G2(r))||(o||rn(t,"get",r),l)?c:_t(c)?u&&Qu(r)?c:c.value:ft(c)?o?im(c):Qi(c):c}}class Jp extends Yp{constructor(t=!1){super(!1,t)}set(t,r,s,o){let l=t[r];if(Fi(l)&&_t(l)&&!_t(s))return!1;if(!this._shallow&&(!va(s)&&!Fi(s)&&(l=tt(l),s=tt(s)),!Ee(t)&&_t(l)&&!_t(s)))return l.value=s,!0;const u=Ee(t)&&Qu(r)?Number(r)e,Ia=e=>Reflect.getPrototypeOf(e);function zo(e,t,r=!1,s=!1){e=e.__v_raw;const o=tt(e),l=tt(t);r||($r(t,l)&&rn(o,"get",t),rn(o,"get",l));const{has:u}=Ia(o),c=s?tc:r?nc:Vs;if(u.call(o,t))return c(e.get(t));if(u.call(o,l))return c(e.get(l));e!==o&&e.get(t)}function Zo(e,t=!1){const r=this.__v_raw,s=tt(r),o=tt(e);return t||($r(e,o)&&rn(s,"has",e),rn(s,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function Go(e,t=!1){return e=e.__v_raw,!t&&rn(tt(e),"iterate",ii),Reflect.get(e,"size",e)}function hh(e){e=tt(e);const t=tt(this);return Ia(t).has.call(t,e)||(t.add(e),or(t,"add",e,e)),this}function ph(e,t){t=tt(t);const r=tt(this),{has:s,get:o}=Ia(r);let l=s.call(r,e);l||(e=tt(e),l=s.call(r,e));const u=o.call(r,e);return r.set(e,t),l?$r(t,u)&&or(r,"set",e,t):or(r,"add",e,t),this}function mh(e){const t=tt(this),{has:r,get:s}=Ia(t);let o=r.call(t,e);o||(e=tt(e),o=r.call(t,e)),s&&s.call(t,e);const l=t.delete(e);return o&&or(t,"delete",e,void 0),l}function vh(){const e=tt(this),t=e.size!==0,r=e.clear();return t&&or(e,"clear",void 0,void 0),r}function Yo(e,t){return function(s,o){const l=this,u=l.__v_raw,c=tt(u),f=t?tc:e?nc:Vs;return!e&&rn(c,"iterate",ii),u.forEach((h,p)=>s.call(o,f(h),f(p),l))}}function Jo(e,t,r){return function(...s){const o=this.__v_raw,l=tt(o),u=$i(l),c=e==="entries"||e===Symbol.iterator&&u,f=e==="keys"&&u,h=o[e](...s),p=r?tc:t?nc:Vs;return!t&&rn(l,"iterate",f?Cu:ii),{next(){const{value:v,done:m}=h.next();return m?{value:v,done:m}:{value:c?[p(v[0]),p(v[1])]:p(v),done:m}},[Symbol.iterator](){return this}}}}function wr(e){return function(...t){return e==="delete"?!1:this}}function nA(){const e={get(l){return zo(this,l)},get size(){return Go(this)},has:Zo,add:hh,set:ph,delete:mh,clear:vh,forEach:Yo(!1,!1)},t={get(l){return zo(this,l,!1,!0)},get size(){return Go(this)},has:Zo,add:hh,set:ph,delete:mh,clear:vh,forEach:Yo(!1,!0)},r={get(l){return zo(this,l,!0)},get size(){return Go(this,!0)},has(l){return Zo.call(this,l,!0)},add:wr("add"),set:wr("set"),delete:wr("delete"),clear:wr("clear"),forEach:Yo(!0,!1)},s={get(l){return zo(this,l,!0,!0)},get size(){return Go(this,!0)},has(l){return Zo.call(this,l,!0)},add:wr("add"),set:wr("set"),delete:wr("delete"),clear:wr("clear"),forEach:Yo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Jo(l,!1,!1),r[l]=Jo(l,!0,!1),t[l]=Jo(l,!1,!0),s[l]=Jo(l,!0,!0)}),[e,r,t,s]}const[rA,iA,sA,oA]=nA();function Ma(e,t){const r=t?e?oA:sA:e?iA:rA;return(s,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(nt(r,o)&&o in s?r:s,o,l)}const aA={get:Ma(!1,!1)},lA={get:Ma(!1,!0)},uA={get:Ma(!0,!1)},cA={get:Ma(!0,!0)},Qp=new WeakMap,em=new WeakMap,tm=new WeakMap,nm=new WeakMap;function fA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dA(e){return e.__v_skip||!Object.isExtensible(e)?0:fA(M2(e))}function Qi(e){return Fi(e)?e:La(e,!1,X2,aA,Qp)}function rm(e){return La(e,!1,eA,lA,em)}function im(e){return La(e,!0,Q2,uA,tm)}function BS(e){return La(e,!0,tA,cA,nm)}function La(e,t,r,s,o){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const u=dA(e);if(u===0)return e;const c=new Proxy(e,u===2?s:r);return o.set(e,c),c}function Ir(e){return Fi(e)?Ir(e.__v_raw):!!(e&&e.__v_isReactive)}function Fi(e){return!!(e&&e.__v_isReadonly)}function va(e){return!!(e&&e.__v_isShallow)}function sm(e){return Ir(e)||Fi(e)}function tt(e){const t=e&&e.__v_raw;return t?tt(t):e}function $a(e){return da(e,"__v_skip",!0),e}const Vs=e=>ft(e)?Qi(e):e,nc=e=>ft(e)?im(e):e;function rc(e){Tr&&In&&(e=tt(e),Zp(e.dep||(e.dep=ec())))}function Da(e,t){e=tt(e);const r=e.dep;r&&ku(r)}function _t(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return om(e,!1)}function hA(e){return om(e,!0)}function om(e,t){return _t(e)?e:new pA(e,t)}class pA{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:tt(t),this._value=r?t:Vs(t)}get value(){return rc(this),this._value}set value(t){const r=this.__v_isShallow||va(t)||Fi(t);t=r?t:tt(t),$r(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Vs(t),Da(this))}}function NS(e){Da(e)}function se(e){return _t(e)?e.value:e}function WS(e){return Be(e)?e():se(e)}const mA={get:(e,t,r)=>se(Reflect.get(e,t,r)),set:(e,t,r,s)=>{const o=e[t];return _t(o)&&!_t(r)?(o.value=r,!0):Reflect.set(e,t,r,s)}};function am(e){return Ir(e)?e:new Proxy(e,mA)}class vA{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:s}=t(()=>rc(this),()=>Da(this));this._get=r,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function FS(e){return new vA(e)}function gA(e){const t=Ee(e)?new Array(e.length):{};for(const r in e)t[r]=lm(e,r);return t}class yA{constructor(t,r,s){this._object=t,this._key=r,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Z2(tt(this._object),this._key)}}class _A{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function VS(e,t,r){return _t(e)?e:Be(e)?new _A(e):ft(e)&&arguments.length>1?lm(e,t,r):Pe(e)}function lm(e,t,r){const s=e[t];return _t(s)?s:new yA(e,t,r)}class bA{constructor(t,r,s,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fs(t,()=>{this._dirty||(this._dirty=!0,Da(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=tt(this);return rc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function wA(e,t,r=!1){let s,o;const l=Be(e);return l?(s=e,o=Ln):(s=e.get,o=e.set),new bA(s,o,l||!o,r)}function HS(e,...t){}function US(e,t){}function Mr(e,t,r,s){let o;try{o=s?e(...s):e()}catch(l){es(l,t,r)}return o}function Cn(e,t,r,s){if(Be(e)){const l=Mr(e,t,r,s);return l&&Xu(l)&&l.catch(u=>{es(u,t,r)}),l}const o=[];for(let l=0;l>>1;Us(Ft[s])Hn&&Ft.splice(t,1)}function fm(e){Ee(e)?Bi.push(...e):(!rr||!rr.includes(e,e.allowRecurse?ti+1:ti))&&Bi.push(e),cm()}function gh(e,t=Hs?Hn+1:0){for(;tUs(r)-Us(s)),ti=0;tie.id==null?1/0:e.id,CA=(e,t)=>{const r=Us(e)-Us(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function dm(e){Eu=!1,Hs=!0,Ft.sort(CA);const t=Ln;try{for(Hn=0;Hnvs.emit(o,...l)),Xo=[]):typeof window<"u"&&window.HTMLElement&&!((s=(r=window.navigator)==null?void 0:r.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{kA(l,t)}),setTimeout(()=>{vs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Xo=[])},3e3)):Xo=[]}function EA(e,t,...r){if(e.isUnmounted)return;const s=e.vnode.props||ct;let o=r;const l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in s){const p=`${u==="modelValue"?"model":u}Modifiers`,{number:v,trim:m}=s[p]||ct;m&&(o=r.map(b=>wt(b)?b.trim():b)),v&&(o=r.map(ha))}let c,f=s[c=aa(t)]||s[c=aa(pn(t))];!f&&l&&(f=s[c=aa(Pn(t))]),f&&Cn(f,e,6,o);const h=s[c+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Cn(h,e,6,o)}}function hm(e,t,r=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const l=e.emits;let u={},c=!1;if(!Be(e)){const f=h=>{const p=hm(h,t,!0);p&&(c=!0,bt(u,p))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!l&&!c?(ft(e)&&s.set(e,null),null):(Ee(l)?l.forEach(f=>u[f]=null):bt(u,l),ft(e)&&s.set(e,u),u)}function Na(e,t){return!e||!Js(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,Pn(t))||nt(e,t))}let Tt=null,Wa=null;function qs(e){const t=Tt;return Tt=e,Wa=e&&e.type.__scopeId||null,t}function ci(e){Wa=e}function fi(){Wa=null}const qS=e=>Ot;function Ot(e,t=Tt,r){if(!t||e._n)return e;const s=(...o)=>{s._d&&Rh(-1);const l=qs(t);let u;try{u=e(...o)}finally{qs(l),s._d&&Rh(1)}return u};return s._n=!0,s._c=!0,s._d=!0,s}function la(e){const{type:t,vnode:r,proxy:s,withProxy:o,props:l,propsOptions:[u],slots:c,attrs:f,emit:h,render:p,renderCache:v,data:m,setupState:b,ctx:y,inheritAttrs:E}=e;let R,S;const O=qs(e);try{if(r.shapeFlag&4){const k=o||s;R=hn(p.call(k,k,v,l,b,m,y)),S=f}else{const k=t;R=hn(k.length>1?k(l,{attrs:f,slots:c,emit:h}):k(l,null)),S=t.props?f:OA(f)}}catch(k){Ls.length=0,es(k,e,1),R=me(Zt)}let M=R;if(S&&E!==!1){const k=Object.keys(S),{shapeFlag:I}=M;k.length&&I&7&&(u&&k.some(Yu)&&(S=RA(S,u)),M=lr(M,S))}return r.dirs&&(M=lr(M),M.dirs=M.dirs?M.dirs.concat(r.dirs):r.dirs),r.transition&&(M.transition=r.transition),R=M,qs(O),R}function SA(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||Js(r))&&((t||(t={}))[r]=e[r]);return t},RA=(e,t)=>{const r={};for(const s in e)(!Yu(s)||!(s.slice(9)in t))&&(r[s]=e[s]);return r};function TA(e,t,r){const{props:s,children:o,component:l}=e,{props:u,children:c,patchFlag:f}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&f>=0){if(f&1024)return!0;if(f&16)return s?yh(s,u,h):!!u;if(f&8){const p=t.dynamicProps;for(let v=0;ve.__isSuspense,IA={name:"Suspense",__isSuspense:!0,process(e,t,r,s,o,l,u,c,f,h){e==null?MA(t,r,s,o,l,u,c,f,h):LA(e,t,r,s,o,u,c,f,h)},hydrate:$A,create:oc,normalize:DA},jS=IA;function js(e,t){const r=e.props&&e.props[t];Be(r)&&r()}function MA(e,t,r,s,o,l,u,c,f){const{p:h,o:{createElement:p}}=f,v=p("div"),m=e.suspense=oc(e,o,s,t,v,r,l,u,c,f);h(null,m.pendingBranch=e.ssContent,v,null,s,m,l,u),m.deps>0?(js(e,"onPending"),js(e,"onFallback"),h(null,e.ssFallback,t,r,s,null,l,u),Ni(m,e.ssFallback)):m.resolve(!1,!0)}function LA(e,t,r,s,o,l,u,c,{p:f,um:h,o:{createElement:p}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const m=t.ssContent,b=t.ssFallback,{activeBranch:y,pendingBranch:E,isInFallback:R,isHydrating:S}=v;if(E)v.pendingBranch=m,Mn(m,E)?(f(E,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0?v.resolve():R&&(f(y,b,r,s,o,null,l,u,c),Ni(v,b))):(v.pendingId++,S?(v.isHydrating=!1,v.activeBranch=E):h(E,o,v),v.deps=0,v.effects.length=0,v.hiddenContainer=p("div"),R?(f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0?v.resolve():(f(y,b,r,s,o,null,l,u,c),Ni(v,b))):y&&Mn(m,y)?(f(y,m,r,s,o,v,l,u,c),v.resolve(!0)):(f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0&&v.resolve()));else if(y&&Mn(m,y))f(y,m,r,s,o,v,l,u,c),Ni(v,m);else if(js(t,"onPending"),v.pendingBranch=m,v.pendingId++,f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0)v.resolve();else{const{timeout:O,pendingId:M}=v;O>0?setTimeout(()=>{v.pendingId===M&&v.fallback(b)},O):O===0&&v.fallback(b)}}function oc(e,t,r,s,o,l,u,c,f,h,p=!1){const{p:v,m,um:b,n:y,o:{parentNode:E,remove:R}}=h;let S;const O=BA(e);O&&t!=null&&t.pendingBranch&&(S=t.pendingId,t.deps++);const M=e.props?pa(e.props.timeout):void 0,k={vnode:e,parent:t,parentComponent:r,isSVG:u,container:s,hiddenContainer:o,anchor:l,deps:0,pendingId:0,timeout:typeof M=="number"?M:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(I=!1,H=!1){const{vnode:U,activeBranch:N,pendingBranch:j,pendingId:K,effects:q,parentComponent:G,container:F}=k;if(k.isHydrating)k.isHydrating=!1;else if(!I){const V=N&&j.transition&&j.transition.mode==="out-in";V&&(N.transition.afterLeave=()=>{K===k.pendingId&&m(j,F,P,0)});let{anchor:P}=k;N&&(P=y(N),b(N,G,k,!0)),V||m(j,F,P,0)}Ni(k,j),k.pendingBranch=null,k.isInFallback=!1;let x=k.parent,L=!1;for(;x;){if(x.pendingBranch){x.effects.push(...q),L=!0;break}x=x.parent}L||fm(q),k.effects=[],O&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!H&&t.resolve()),js(U,"onResolve")},fallback(I){if(!k.pendingBranch)return;const{vnode:H,activeBranch:U,parentComponent:N,container:j,isSVG:K}=k;js(H,"onFallback");const q=y(U),G=()=>{k.isInFallback&&(v(null,I,j,q,N,null,K,c,f),Ni(k,I))},F=I.transition&&I.transition.mode==="out-in";F&&(U.transition.afterLeave=G),k.isInFallback=!0,b(U,N,null,!0),F||G()},move(I,H,U){k.activeBranch&&m(k.activeBranch,I,H,U),k.container=I},next(){return k.activeBranch&&y(k.activeBranch)},registerDep(I,H){const U=!!k.pendingBranch;U&&k.deps++;const N=I.vnode.el;I.asyncDep.catch(j=>{es(j,I,0)}).then(j=>{if(I.isUnmounted||k.isUnmounted||k.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:K}=I;Lu(I,j,!1),N&&(K.el=N);const q=!N&&I.subTree.el;H(I,K,E(N||I.subTree.el),N?null:y(I.subTree),k,u,f),q&&R(q),sc(I,K.el),U&&--k.deps===0&&k.resolve()})},unmount(I,H){k.isUnmounted=!0,k.activeBranch&&b(k.activeBranch,r,I,H),k.pendingBranch&&b(k.pendingBranch,r,I,H)}};return k}function $A(e,t,r,s,o,l,u,c,f){const h=t.suspense=oc(t,s,r,e.parentNode,document.createElement("div"),null,o,l,u,c,!0),p=f(e,h.pendingBranch=t.ssContent,r,h,l,u);return h.deps===0&&h.resolve(!1,!0),p}function DA(e){const{shapeFlag:t,children:r}=e,s=t&32;e.ssContent=_h(s?r.default:r),e.ssFallback=s?_h(r.fallback):me(Zt)}function _h(e){let t;if(Be(e)){const r=ai&&e._c;r&&(e._d=!1,ne()),e=e(),r&&(e._d=!0,t=tn,Mm())}return Ee(e)&&(e=SA(e)),e=hn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function mm(e,t){t&&t.pendingBranch?Ee(e)?t.effects.push(...e):t.effects.push(e):fm(e)}function Ni(e,t){e.activeBranch=t;const{vnode:r,parentComponent:s}=e,o=r.el=t.el;s&&s.subTree===r&&(s.vnode.el=o,sc(s,o))}function BA(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function KS(e,t){return Xs(e,null,t)}function NA(e,t){return Xs(e,null,{flush:"post"})}function zS(e,t){return Xs(e,null,{flush:"sync"})}const Qo={};function st(e,t,r){return Xs(e,t,r)}function Xs(e,t,{immediate:r,deep:s,flush:o,onTrack:l,onTrigger:u}=ct){var c;const f=qp()===((c=kt)==null?void 0:c.scope)?kt:null;let h,p=!1,v=!1;if(_t(e)?(h=()=>e.value,p=va(e)):Ir(e)?(h=()=>e,s=!0):Ee(e)?(v=!0,p=e.some(k=>Ir(k)||va(k)),h=()=>e.map(k=>{if(_t(k))return k.value;if(Ir(k))return ri(k);if(Be(k))return Mr(k,f,2)})):Be(e)?t?h=()=>Mr(e,f,2):h=()=>{if(!(f&&f.isUnmounted))return m&&m(),Cn(e,f,3,[b])}:h=Ln,t&&s){const k=h;h=()=>ri(k())}let m,b=k=>{m=O.onStop=()=>{Mr(k,f,4)}},y;if(ji)if(b=Ln,t?r&&Cn(t,f,3,[h(),v?[]:void 0,b]):h(),o==="sync"){const k=Rx();y=k.__watcherHandles||(k.__watcherHandles=[])}else return Ln;let E=v?new Array(e.length).fill(Qo):Qo;const R=()=>{if(O.active)if(t){const k=O.run();(s||p||(v?k.some((I,H)=>$r(I,E[H])):$r(k,E)))&&(m&&m(),Cn(t,f,3,[k,E===Qo?void 0:v&&E[0]===Qo?[]:E,b]),E=k)}else O.run()};R.allowRecurse=!!t;let S;o==="sync"?S=R:o==="post"?S=()=>$t(R,f&&f.suspense):(R.pre=!0,f&&(R.id=f.uid),S=()=>Ba(R));const O=new Fs(h,S);t?r?R():E=O.run():o==="post"?$t(O.run.bind(O),f&&f.suspense):O.run();const M=()=>{O.stop(),f&&f.scope&&Ju(f.scope.effects,O)};return y&&y.push(M),M}function WA(e,t,r){const s=this.proxy,o=wt(e)?e.includes(".")?vm(s,e):()=>s[e]:e.bind(s,s);let l;Be(t)?l=t:(l=t.handler,r=t);const u=kt;Wr(this);const c=Xs(o,l.bind(s),r);return u?Wr(u):Lr(),c}function vm(e,t){const r=t.split(".");return()=>{let s=e;for(let o=0;o{ri(r,t)});else if(Np(e))for(const r in e)ri(e[r],t);return e}function Ks(e,t){const r=Tt;if(r===null)return e;const s=qa(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0}),Va(()=>{e.isUnmounting=!0}),e}const xn=[Function,Array],ym={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xn,onEnter:xn,onAfterEnter:xn,onEnterCancelled:xn,onBeforeLeave:xn,onLeave:xn,onAfterLeave:xn,onLeaveCancelled:xn,onBeforeAppear:xn,onAppear:xn,onAfterAppear:xn,onAppearCancelled:xn},FA={name:"BaseTransition",props:ym,setup(e,{slots:t}){const r=Hr(),s=gm();let o;return()=>{const l=t.default&&ac(t.default(),!0);if(!l||!l.length)return;let u=l[0];if(l.length>1){for(const E of l)if(E.type!==Zt){u=E;break}}const c=tt(e),{mode:f}=c;if(s.isLeaving)return lu(u);const h=bh(u);if(!h)return lu(u);const p=zs(h,c,s,r);Vi(h,p);const v=r.subTree,m=v&&bh(v);let b=!1;const{getTransitionKey:y}=h.type;if(y){const E=y();o===void 0?o=E:E!==o&&(o=E,b=!0)}if(m&&m.type!==Zt&&(!Mn(h,m)||b)){const E=zs(m,c,s,r);if(Vi(m,E),f==="out-in")return s.isLeaving=!0,E.afterLeave=()=>{s.isLeaving=!1,r.update.active!==!1&&r.update()},lu(u);f==="in-out"&&h.type!==Zt&&(E.delayLeave=(R,S,O)=>{const M=_m(s,m);M[String(m.key)]=m,R[Er]=()=>{S(),R[Er]=void 0,delete p.delayedLeave},p.delayedLeave=O})}return u}}},VA=FA;function _m(e,t){const{leavingVNodes:r}=e;let s=r.get(t.type);return s||(s=Object.create(null),r.set(t.type,s)),s}function zs(e,t,r,s){const{appear:o,mode:l,persisted:u=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:m,onAfterLeave:b,onLeaveCancelled:y,onBeforeAppear:E,onAppear:R,onAfterAppear:S,onAppearCancelled:O}=t,M=String(e.key),k=_m(r,e),I=(N,j)=>{N&&Cn(N,s,9,j)},H=(N,j)=>{const K=j[1];I(N,j),Ee(N)?N.every(q=>q.length<=1)&&K():N.length<=1&&K()},U={mode:l,persisted:u,beforeEnter(N){let j=c;if(!r.isMounted)if(o)j=E||c;else return;N[Er]&&N[Er](!0);const K=k[M];K&&Mn(e,K)&&K.el[Er]&&K.el[Er](),I(j,[N])},enter(N){let j=f,K=h,q=p;if(!r.isMounted)if(o)j=R||f,K=S||h,q=O||p;else return;let G=!1;const F=N[ea]=x=>{G||(G=!0,x?I(q,[N]):I(K,[N]),U.delayedLeave&&U.delayedLeave(),N[ea]=void 0)};j?H(j,[N,F]):F()},leave(N,j){const K=String(e.key);if(N[ea]&&N[ea](!0),r.isUnmounting)return j();I(v,[N]);let q=!1;const G=N[Er]=F=>{q||(q=!0,j(),F?I(y,[N]):I(b,[N]),N[Er]=void 0,k[K]===e&&delete k[K])};k[K]=e,m?H(m,[N,G]):G()},clone(N){return zs(N,t,r,s)}};return U}function lu(e){if(Qs(e))return e=lr(e),e.children=null,e}function bh(e){return Qs(e)?e.children?e.children[0]:void 0:e}function Vi(e,t){e.shapeFlag&6&&e.component?Vi(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ac(e,t=!1,r){let s=[],o=0;for(let l=0;l1)for(let l=0;lbt({name:e.name},t,{setup:e}))():e}const si=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ZS(e){Be(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:s,delay:o=200,timeout:l,suspensible:u=!0,onError:c}=e;let f=null,h,p=0;const v=()=>(p++,f=null,m()),m=()=>{let b;return f||(b=f=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),c)return new Promise((E,R)=>{c(y,()=>E(v()),()=>R(y),p+1)});throw y}).then(y=>b!==f&&f?f:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),h=y,y)))};return ze({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return h},setup(){const b=kt;if(h)return()=>uu(h,b);const y=O=>{f=null,es(O,b,13,!s)};if(u&&b.suspense||ji)return m().then(O=>()=>uu(O,b)).catch(O=>(y(O),()=>s?me(s,{error:O}):null));const E=Pe(!1),R=Pe(),S=Pe(!!o);return o&&setTimeout(()=>{S.value=!1},o),l!=null&&setTimeout(()=>{if(!E.value&&!R.value){const O=new Error(`Async component timed out after ${l}ms.`);y(O),R.value=O}},l),m().then(()=>{E.value=!0,b.parent&&Qs(b.parent.vnode)&&Ba(b.parent.update)}).catch(O=>{y(O),R.value=O}),()=>{if(E.value&&h)return uu(h,b);if(R.value&&s)return me(s,{error:R.value});if(r&&!S.value)return me(r)}}})}function uu(e,t){const{ref:r,props:s,children:o,ce:l}=t.vnode,u=me(e,s,o);return u.ref=r,u.ce=l,delete t.vnode.ce,u}const Qs=e=>e.type.__isKeepAlive,HA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Hr(),s=r.ctx;if(!s.renderer)return()=>{const O=t.default&&t.default();return O&&O.length===1?O[0]:O};const o=new Map,l=new Set;let u=null;const c=r.suspense,{renderer:{p:f,m:h,um:p,o:{createElement:v}}}=s,m=v("div");s.activate=(O,M,k,I,H)=>{const U=O.component;h(O,M,k,0,c),f(U.vnode,O,M,k,U,c,I,O.slotScopeIds,H),$t(()=>{U.isDeactivated=!1,U.a&&Di(U.a);const N=O.props&&O.props.onVnodeMounted;N&&en(N,U.parent,O)},c)},s.deactivate=O=>{const M=O.component;h(O,m,null,1,c),$t(()=>{M.da&&Di(M.da);const k=O.props&&O.props.onVnodeUnmounted;k&&en(k,M.parent,O),M.isDeactivated=!0},c)};function b(O){cu(O),p(O,r,c,!0)}function y(O){o.forEach((M,k)=>{const I=Du(M.type);I&&(!O||!O(I))&&E(k)})}function E(O){const M=o.get(O);!u||!Mn(M,u)?b(M):u&&cu(u),o.delete(O),l.delete(O)}st(()=>[e.include,e.exclude],([O,M])=>{O&&y(k=>Cs(O,k)),M&&y(k=>!Cs(M,k))},{flush:"post",deep:!0});let R=null;const S=()=>{R!=null&&o.set(R,fu(r.subTree))};return Vt(S),lc(S),Va(()=>{o.forEach(O=>{const{subTree:M,suspense:k}=r,I=fu(M);if(O.type===I.type&&O.key===I.key){cu(I);const H=I.component.da;H&&$t(H,k);return}b(O)})}),()=>{if(R=null,!t.default)return null;const O=t.default(),M=O[0];if(O.length>1)return u=null,O;if(!Nr(M)||!(M.shapeFlag&4)&&!(M.shapeFlag&128))return u=null,M;let k=fu(M);const I=k.type,H=Du(si(k)?k.type.__asyncResolved||{}:I),{include:U,exclude:N,max:j}=e;if(U&&(!H||!Cs(U,H))||N&&H&&Cs(N,H))return u=k,M;const K=k.key==null?I:k.key,q=o.get(K);return k.el&&(k=lr(k),M.shapeFlag&128&&(M.ssContent=k)),R=K,q?(k.el=q.el,k.component=q.component,k.transition&&Vi(k,k.transition),k.shapeFlag|=512,l.delete(K),l.add(K)):(l.add(K),j&&l.size>parseInt(j,10)&&E(l.values().next().value)),k.shapeFlag|=256,u=k,pm(M.type)?M:k}}},GS=HA;function Cs(e,t){return Ee(e)?e.some(r=>Cs(r,t)):wt(e)?e.split(",").includes(t):I2(e)?e.test(t):!1}function UA(e,t){bm(e,"a",t)}function qA(e,t){bm(e,"da",t)}function bm(e,t,r=kt){const s=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Fa(t,s,r),r){let o=r.parent;for(;o&&o.parent;)Qs(o.parent.vnode)&&jA(s,t,r,o),o=o.parent}}function jA(e,t,r,s){const o=Fa(t,e,s,!0);uc(()=>{Ju(s[t],o)},r)}function cu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fu(e){return e.shapeFlag&128?e.ssContent:e}function Fa(e,t,r=kt,s=!1){if(r){const o=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...u)=>{if(r.isUnmounted)return;Ji(),Wr(r);const c=Cn(t,r,e,u);return Lr(),Xi(),c});return s?o.unshift(l):o.push(l),l}}const cr=e=>(t,r=kt)=>(!ji||e==="sp")&&Fa(e,(...s)=>t(...s),r),KA=cr("bm"),Vt=cr("m"),zA=cr("bu"),lc=cr("u"),Va=cr("bum"),uc=cr("um"),ZA=cr("sp"),GA=cr("rtg"),YA=cr("rtc");function JA(e,t=kt){Fa("ec",e,t)}const cc="components",XA="directives";function Hi(e,t){return fc(cc,e,!0,t)||e}const wm=Symbol.for("v-ndc");function QA(e){return wt(e)?fc(cc,e,!1)||e:e||wm}function YS(e){return fc(XA,e)}function fc(e,t,r=!0,s=!1){const o=Tt||kt;if(o){const l=o.type;if(e===cc){const c=Du(l,!1);if(c&&(c===t||c===pn(t)||c===Ra(pn(t))))return l}const u=wh(o[e]||l[e],t)||wh(o.appContext[e],t);return!u&&s?l:u}}function wh(e,t){return e&&(e[t]||e[pn(t)]||e[Ra(pn(t))])}function fr(e,t,r,s){let o;const l=r&&r[s];if(Ee(e)||wt(e)){o=new Array(e.length);for(let u=0,c=e.length;ut(u,c,void 0,l&&l[c]));else{const u=Object.keys(e);o=new Array(u.length);for(let c=0,f=u.length;c{const l=s.fn(...o);return l&&(l.key=s.key),l}:s.fn)}return e}function Ui(e,t,r={},s,o){if(Tt.isCE||Tt.parent&&si(Tt.parent)&&Tt.parent.isCE)return t!=="default"&&(r.name=t),me("slot",r,s&&s());let l=e[t];l&&l._c&&(l._d=!1),ne();const u=l&&Am(l(r)),c=je(et,{key:r.key||u&&u.key||`_${t}`},u||(s?s():[]),u&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),l&&l._c&&(l._d=!0),c}function Am(e){return e.some(t=>Nr(t)?!(t.type===Zt||t.type===et&&!Am(t.children)):!0)?e:null}function XS(e,t){const r={};for(const s in e)r[t&&/[A-Z]/.test(s)?`on:${s}`:aa(s)]=e[s];return r}const Su=e=>e?Bm(e)?qa(e)||e.proxy:Su(e.parent):null,Is=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Su(e.parent),$root:e=>Su(e.root),$emit:e=>e.emit,$options:e=>dc(e),$forceUpdate:e=>e.f||(e.f=()=>Ba(e.update)),$nextTick:e=>e.n||(e.n=ur.bind(e.proxy)),$watch:e=>WA.bind(e)}),du=(e,t)=>e!==ct&&!e.__isScriptSetup&&nt(e,t),Ou={get({_:e},t){const{ctx:r,setupState:s,data:o,props:l,accessCache:u,type:c,appContext:f}=e;let h;if(t[0]!=="$"){const b=u[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(du(s,t))return u[t]=1,s[t];if(o!==ct&&nt(o,t))return u[t]=2,o[t];if((h=e.propsOptions[0])&&nt(h,t))return u[t]=3,l[t];if(r!==ct&&nt(r,t))return u[t]=4,r[t];Ru&&(u[t]=0)}}const p=Is[t];let v,m;if(p)return t==="$attrs"&&rn(e,"get",t),p(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(r!==ct&&nt(r,t))return u[t]=4,r[t];if(m=f.config.globalProperties,nt(m,t))return m[t]},set({_:e},t,r){const{data:s,setupState:o,ctx:l}=e;return du(o,t)?(o[t]=r,!0):s!==ct&&nt(s,t)?(s[t]=r,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:s,appContext:o,propsOptions:l}},u){let c;return!!r[u]||e!==ct&&nt(e,u)||du(t,u)||(c=l[0])&&nt(c,u)||nt(s,u)||nt(Is,u)||nt(o.config.globalProperties,u)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:nt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},ex=bt({},Ou,{get(e,t){if(t!==Symbol.unscopables)return Ou.get(e,t,e)},has(e,t){return t[0]!=="_"&&!B2(t)}});function QS(){return null}function e6(){return null}function t6(e){}function n6(e){}function r6(){return null}function i6(){}function s6(e,t){return null}function o6(){return xm().slots}function a6(){return xm().attrs}function l6(e,t,r){const s=Hr();if(r&&r.local){const o=Pe(e[t]);return st(()=>e[t],l=>o.value=l),st(o,l=>{l!==e[t]&&s.emit(`update:${t}`,l)}),o}else return{__v_isRef:!0,get value(){return e[t]},set value(o){s.emit(`update:${t}`,o)}}}function xm(){const e=Hr();return e.setupContext||(e.setupContext=Fm(e))}function Zs(e){return Ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function u6(e,t){const r=Zs(e);for(const s in t){if(s.startsWith("__skip"))continue;let o=r[s];o?Ee(o)||Be(o)?o=r[s]={type:o,default:t[s]}:o.default=t[s]:o===null&&(o=r[s]={default:t[s]}),o&&t[`__skip_${s}`]&&(o.skipFactory=!0)}return r}function c6(e,t){return!e||!t?e||t:Ee(e)&&Ee(t)?e.concat(t):bt({},Zs(e),Zs(t))}function f6(e,t){const r={};for(const s in e)t.includes(s)||Object.defineProperty(r,s,{enumerable:!0,get:()=>e[s]});return r}function d6(e){const t=Hr();let r=e();return Lr(),Xu(r)&&(r=r.catch(s=>{throw Wr(t),s})),[r,()=>Wr(t)]}let Ru=!0;function tx(e){const t=dc(e),r=e.proxy,s=e.ctx;Ru=!1,t.beforeCreate&&Ah(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:u,watch:c,provide:f,inject:h,created:p,beforeMount:v,mounted:m,beforeUpdate:b,updated:y,activated:E,deactivated:R,beforeDestroy:S,beforeUnmount:O,destroyed:M,unmounted:k,render:I,renderTracked:H,renderTriggered:U,errorCaptured:N,serverPrefetch:j,expose:K,inheritAttrs:q,components:G,directives:F,filters:x}=t;if(h&&nx(h,s,null),u)for(const P in u){const w=u[P];Be(w)&&(s[P]=w.bind(r))}if(o){const P=o.call(r,r);ft(P)&&(e.data=Qi(P))}if(Ru=!0,l)for(const P in l){const w=l[P],Y=Be(w)?w.bind(r,r):Be(w.get)?w.get.bind(r,r):Ln,B=!Be(w)&&Be(w.set)?w.set.bind(r):Ln,_=Ve({get:Y,set:B});Object.defineProperty(s,P,{enumerable:!0,configurable:!0,get:()=>_.value,set:Q=>_.value=Q})}if(c)for(const P in c)Pm(c[P],s,r,P);if(f){const P=Be(f)?f.call(r):f;Reflect.ownKeys(P).forEach(w=>{Rr(w,P[w])})}p&&Ah(p,e,"c");function V(P,w){Ee(w)?w.forEach(Y=>P(Y.bind(r))):w&&P(w.bind(r))}if(V(KA,v),V(Vt,m),V(zA,b),V(lc,y),V(UA,E),V(qA,R),V(JA,N),V(YA,H),V(GA,U),V(Va,O),V(uc,k),V(ZA,j),Ee(K))if(K.length){const P=e.exposed||(e.exposed={});K.forEach(w=>{Object.defineProperty(P,w,{get:()=>r[w],set:Y=>r[w]=Y})})}else e.exposed||(e.exposed={});I&&e.render===Ln&&(e.render=I),q!=null&&(e.inheritAttrs=q),G&&(e.components=G),F&&(e.directives=F)}function nx(e,t,r=Ln){Ee(e)&&(e=Tu(e));for(const s in e){const o=e[s];let l;ft(o)?"default"in o?l=nn(o.from||s,o.default,!0):l=nn(o.from||s):l=nn(o),_t(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[s]=l}}function Ah(e,t,r){Cn(Ee(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,r)}function Pm(e,t,r,s){const o=s.includes(".")?vm(r,s):()=>r[s];if(wt(e)){const l=t[e];Be(l)&&st(o,l)}else if(Be(e))st(o,e.bind(r));else if(ft(e))if(Ee(e))e.forEach(l=>Pm(l,t,r,s));else{const l=Be(e.handler)?e.handler.bind(r):t[e.handler];Be(l)&&st(o,l,e)}}function dc(e){const t=e.type,{mixins:r,extends:s}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,c=l.get(t);let f;return c?f=c:!o.length&&!r&&!s?f=t:(f={},o.length&&o.forEach(h=>ya(f,h,u,!0)),ya(f,t,u)),ft(t)&&l.set(t,f),f}function ya(e,t,r,s=!1){const{mixins:o,extends:l}=t;l&&ya(e,l,r,!0),o&&o.forEach(u=>ya(e,u,r,!0));for(const u in t)if(!(s&&u==="expose")){const c=rx[u]||r&&r[u];e[u]=c?c(e[u],t[u]):t[u]}return e}const rx={data:xh,props:Ph,emits:Ph,methods:ks,computed:ks,beforeCreate:Kt,created:Kt,beforeMount:Kt,mounted:Kt,beforeUpdate:Kt,updated:Kt,beforeDestroy:Kt,beforeUnmount:Kt,destroyed:Kt,unmounted:Kt,activated:Kt,deactivated:Kt,errorCaptured:Kt,serverPrefetch:Kt,components:ks,directives:ks,watch:sx,provide:xh,inject:ix};function xh(e,t){return t?e?function(){return bt(Be(e)?e.call(this,this):e,Be(t)?t.call(this,this):t)}:t:e}function ix(e,t){return ks(Tu(e),Tu(t))}function Tu(e){if(Ee(e)){const t={};for(let r=0;r1)return r&&Be(t)?t.call(s&&s.proxy):t}}function lx(){return!!(kt||Tt||Gs)}function ux(e,t,r,s=!1){const o={},l={};da(l,Ha,1),e.propsDefaults=Object.create(null),km(e,t,o,l);for(const u in e.propsOptions[0])u in o||(o[u]=void 0);r?e.props=s?o:rm(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function cx(e,t,r,s){const{props:o,attrs:l,vnode:{patchFlag:u}}=e,c=tt(o),[f]=e.propsOptions;let h=!1;if((s||u>0)&&!(u&16)){if(u&8){const p=e.vnode.dynamicProps;for(let v=0;v{f=!0;const[m,b]=Em(v,t,!0);bt(u,m),b&&c.push(...b)};!r&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!l&&!f)return ft(e)&&s.set(e,Li),Li;if(Ee(l))for(let p=0;p-1,b[1]=E<0||y-1||nt(b,"default"))&&c.push(v)}}}const h=[u,c];return ft(e)&&s.set(e,h),h}function Ch(e){return e[0]!=="$"}function kh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Eh(e,t){return kh(e)===kh(t)}function Sh(e,t){return Ee(t)?t.findIndex(r=>Eh(r,e)):Be(t)&&Eh(t,e)?0:-1}const Sm=e=>e[0]==="_"||e==="$stable",hc=e=>Ee(e)?e.map(hn):[hn(e)],fx=(e,t,r)=>{if(t._n)return t;const s=Ot((...o)=>hc(t(...o)),r);return s._c=!1,s},Om=(e,t,r)=>{const s=e._ctx;for(const o in e){if(Sm(o))continue;const l=e[o];if(Be(l))t[o]=fx(o,l,s);else if(l!=null){const u=hc(l);t[o]=()=>u}}},Rm=(e,t)=>{const r=hc(t);e.slots.default=()=>r},dx=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=tt(t),da(t,"_",r)):Om(t,e.slots={})}else e.slots={},t&&Rm(e,t);da(e.slots,Ha,1)},hx=(e,t,r)=>{const{vnode:s,slots:o}=e;let l=!0,u=ct;if(s.shapeFlag&32){const c=t._;c?r&&c===1?l=!1:(bt(o,t),!r&&c===1&&delete o._):(l=!t.$stable,Om(t,o)),u=t}else t&&(Rm(e,t),u={default:1});if(l)for(const c in o)!Sm(c)&&u[c]==null&&delete o[c]};function _a(e,t,r,s,o=!1){if(Ee(e)){e.forEach((m,b)=>_a(m,t&&(Ee(t)?t[b]:t),r,s,o));return}if(si(s)&&!o)return;const l=s.shapeFlag&4?qa(s.component)||s.component.proxy:s.el,u=o?null:l,{i:c,r:f}=e,h=t&&t.r,p=c.refs===ct?c.refs={}:c.refs,v=c.setupState;if(h!=null&&h!==f&&(wt(h)?(p[h]=null,nt(v,h)&&(v[h]=null)):_t(h)&&(h.value=null)),Be(f))Mr(f,c,12,[u,p]);else{const m=wt(f),b=_t(f);if(m||b){const y=()=>{if(e.f){const E=m?nt(v,f)?v[f]:p[f]:f.value;o?Ee(E)&&Ju(E,l):Ee(E)?E.includes(l)||E.push(l):m?(p[f]=[l],nt(v,f)&&(v[f]=p[f])):(f.value=[l],e.k&&(p[e.k]=f.value))}else m?(p[f]=u,nt(v,f)&&(v[f]=u)):b&&(f.value=u,e.k&&(p[e.k]=u))};u?(y.id=-1,$t(y,r)):y()}}}let Ar=!1;const ta=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",na=e=>e.nodeType===8;function px(e){const{mt:t,p:r,o:{patchProp:s,createText:o,nextSibling:l,parentNode:u,remove:c,insert:f,createComment:h}}=e,p=(S,O)=>{if(!O.hasChildNodes()){r(null,S,O),ga(),O._vnode=S;return}Ar=!1,v(O.firstChild,S,null,null,null),ga(),O._vnode=S,Ar&&console.error("Hydration completed but contains mismatches.")},v=(S,O,M,k,I,H=!1)=>{const U=na(S)&&S.data==="[",N=()=>E(S,O,M,k,I,U),{type:j,ref:K,shapeFlag:q,patchFlag:G}=O;let F=S.nodeType;O.el=S,G===-2&&(H=!1,O.dynamicChildren=null);let x=null;switch(j){case qi:F!==3?O.children===""?(f(O.el=o(""),u(S),S),x=S):x=N():(S.data!==O.children&&(Ar=!0,S.data=O.children),x=l(S));break;case Zt:F!==8||U?x=N():x=l(S);break;case Wi:if(U&&(S=l(S),F=S.nodeType),F===1||F===3){x=S;const L=!O.children.length;for(let V=0;V{H=H||!!O.dynamicChildren;const{type:U,props:N,patchFlag:j,shapeFlag:K,dirs:q}=O,G=U==="input"&&q||U==="option";if(G||j!==-1){if(q&&Vn(O,null,M,"created"),N)if(G||!H||j&48)for(const x in N)(G&&x.endsWith("value")||Js(x)&&!Ts(x))&&s(S,x,null,N[x],!1,void 0,M);else N.onClick&&s(S,"onClick",null,N.onClick,!1,void 0,M);let F;if((F=N&&N.onVnodeBeforeMount)&&en(F,M,O),q&&Vn(O,null,M,"beforeMount"),((F=N&&N.onVnodeMounted)||q)&&mm(()=>{F&&en(F,M,O),q&&Vn(O,null,M,"mounted")},k),K&16&&!(N&&(N.innerHTML||N.textContent))){let x=b(S.firstChild,O,S,M,k,I,H);for(;x;){Ar=!0;const L=x;x=x.nextSibling,c(L)}}else K&8&&S.textContent!==O.children&&(Ar=!0,S.textContent=O.children)}return S.nextSibling},b=(S,O,M,k,I,H,U)=>{U=U||!!O.dynamicChildren;const N=O.children,j=N.length;for(let K=0;K{const{slotScopeIds:U}=O;U&&(I=I?I.concat(U):U);const N=u(S),j=b(l(S),O,N,M,k,I,H);return j&&na(j)&&j.data==="]"?l(O.anchor=j):(Ar=!0,f(O.anchor=h("]"),N,j),j)},E=(S,O,M,k,I,H)=>{if(Ar=!0,O.el=null,H){const j=R(S);for(;;){const K=l(S);if(K&&K!==j)c(K);else break}}const U=l(S),N=u(S);return c(S),r(null,O,N,U,M,k,ta(N),I),U},R=S=>{let O=0;for(;S;)if(S=l(S),S&&na(S)&&(S.data==="["&&O++,S.data==="]")){if(O===0)return l(S);O--}return S};return[p,v]}const $t=mm;function mx(e){return Tm(e)}function vx(e){return Tm(e,px)}function Tm(e,t){const r=xu();r.__VUE__=!0;const{insert:s,remove:o,patchProp:l,createElement:u,createText:c,createComment:f,setText:h,setElementText:p,parentNode:v,nextSibling:m,setScopeId:b=Ln,insertStaticContent:y}=e,E=(T,D,z,re=null,ce=null,le=null,be=!1,ve=null,ye=!!D.dynamicChildren)=>{if(T===D)return;T&&!Mn(T,D)&&(re=X(T),Q(T,ce,le,!0),T=null),D.patchFlag===-2&&(ye=!1,D.dynamicChildren=null);const{type:fe,ref:Se,shapeFlag:ke}=D;switch(fe){case qi:R(T,D,z,re);break;case Zt:S(T,D,z,re);break;case Wi:T==null&&O(D,z,re,be);break;case et:G(T,D,z,re,ce,le,be,ve,ye);break;default:ke&1?I(T,D,z,re,ce,le,be,ve,ye):ke&6?F(T,D,z,re,ce,le,be,ve,ye):(ke&64||ke&128)&&fe.process(T,D,z,re,ce,le,be,ve,ye,de)}Se!=null&&ce&&_a(Se,T&&T.ref,le,D||T,!D)},R=(T,D,z,re)=>{if(T==null)s(D.el=c(D.children),z,re);else{const ce=D.el=T.el;D.children!==T.children&&h(ce,D.children)}},S=(T,D,z,re)=>{T==null?s(D.el=f(D.children||""),z,re):D.el=T.el},O=(T,D,z,re)=>{[T.el,T.anchor]=y(T.children,D,z,re,T.el,T.anchor)},M=({el:T,anchor:D},z,re)=>{let ce;for(;T&&T!==D;)ce=m(T),s(T,z,re),T=ce;s(D,z,re)},k=({el:T,anchor:D})=>{let z;for(;T&&T!==D;)z=m(T),o(T),T=z;o(D)},I=(T,D,z,re,ce,le,be,ve,ye)=>{be=be||D.type==="svg",T==null?H(D,z,re,ce,le,be,ve,ye):j(T,D,ce,le,be,ve,ye)},H=(T,D,z,re,ce,le,be,ve)=>{let ye,fe;const{type:Se,props:ke,shapeFlag:Ie,transition:Le,dirs:Ze}=T;if(ye=T.el=u(T.type,le,ke&&ke.is,ke),Ie&8?p(ye,T.children):Ie&16&&N(T.children,ye,null,re,ce,le&&Se!=="foreignObject",be,ve),Ze&&Vn(T,null,re,"created"),U(ye,T,T.scopeId,be,re),ke){for(const Xe in ke)Xe!=="value"&&!Ts(Xe)&&l(ye,Xe,null,ke[Xe],le,T.children,re,ce,Oe);"value"in ke&&l(ye,"value",null,ke.value),(fe=ke.onVnodeBeforeMount)&&en(fe,re,T)}Ze&&Vn(T,null,re,"beforeMount");const rt=(!ce||ce&&!ce.pendingBranch)&&Le&&!Le.persisted;rt&&Le.beforeEnter(ye),s(ye,D,z),((fe=ke&&ke.onVnodeMounted)||rt||Ze)&&$t(()=>{fe&&en(fe,re,T),rt&&Le.enter(ye),Ze&&Vn(T,null,re,"mounted")},ce)},U=(T,D,z,re,ce)=>{if(z&&b(T,z),re)for(let le=0;le{for(let fe=ye;fe{const ve=D.el=T.el;let{patchFlag:ye,dynamicChildren:fe,dirs:Se}=D;ye|=T.patchFlag&16;const ke=T.props||ct,Ie=D.props||ct;let Le;z&&Qr(z,!1),(Le=Ie.onVnodeBeforeUpdate)&&en(Le,z,D,T),Se&&Vn(D,T,z,"beforeUpdate"),z&&Qr(z,!0);const Ze=ce&&D.type!=="foreignObject";if(fe?K(T.dynamicChildren,fe,ve,z,re,Ze,le):be||w(T,D,ve,null,z,re,Ze,le,!1),ye>0){if(ye&16)q(ve,D,ke,Ie,z,re,ce);else if(ye&2&&ke.class!==Ie.class&&l(ve,"class",null,Ie.class,ce),ye&4&&l(ve,"style",ke.style,Ie.style,ce),ye&8){const rt=D.dynamicProps;for(let Xe=0;Xe{Le&&en(Le,z,D,T),Se&&Vn(D,T,z,"updated")},re)},K=(T,D,z,re,ce,le,be)=>{for(let ve=0;ve{if(z!==re){if(z!==ct)for(const ve in z)!Ts(ve)&&!(ve in re)&&l(T,ve,z[ve],null,be,D.children,ce,le,Oe);for(const ve in re){if(Ts(ve))continue;const ye=re[ve],fe=z[ve];ye!==fe&&ve!=="value"&&l(T,ve,fe,ye,be,D.children,ce,le,Oe)}"value"in re&&l(T,"value",z.value,re.value)}},G=(T,D,z,re,ce,le,be,ve,ye)=>{const fe=D.el=T?T.el:c(""),Se=D.anchor=T?T.anchor:c("");let{patchFlag:ke,dynamicChildren:Ie,slotScopeIds:Le}=D;Le&&(ve=ve?ve.concat(Le):Le),T==null?(s(fe,z,re),s(Se,z,re),N(D.children,z,Se,ce,le,be,ve,ye)):ke>0&&ke&64&&Ie&&T.dynamicChildren?(K(T.dynamicChildren,Ie,z,ce,le,be,ve),(D.key!=null||ce&&D===ce.subTree)&&pc(T,D,!0)):w(T,D,z,Se,ce,le,be,ve,ye)},F=(T,D,z,re,ce,le,be,ve,ye)=>{D.slotScopeIds=ve,T==null?D.shapeFlag&512?ce.ctx.activate(D,z,re,be,ye):x(D,z,re,ce,le,be,ye):L(T,D,ye)},x=(T,D,z,re,ce,le,be)=>{const ve=T.component=Dm(T,re,ce);if(Qs(T)&&(ve.ctx.renderer=de),Nm(ve),ve.asyncDep){if(ce&&ce.registerDep(ve,V),!T.el){const ye=ve.subTree=me(Zt);S(null,ye,D,z)}return}V(ve,T,D,z,ce,le,be)},L=(T,D,z)=>{const re=D.component=T.component;if(TA(T,D,z))if(re.asyncDep&&!re.asyncResolved){P(re,D,z);return}else re.next=D,PA(re.update),re.update();else D.el=T.el,re.vnode=D},V=(T,D,z,re,ce,le,be)=>{const ve=()=>{if(T.isMounted){let{next:Se,bu:ke,u:Ie,parent:Le,vnode:Ze}=T,rt=Se,Xe;Qr(T,!1),Se?(Se.el=Ze.el,P(T,Se,be)):Se=Ze,ke&&Di(ke),(Xe=Se.props&&Se.props.onVnodeBeforeUpdate)&&en(Xe,Le,Se,Ze),Qr(T,!0);const vt=la(T),Ht=T.subTree;T.subTree=vt,E(Ht,vt,v(Ht.el),X(Ht),T,ce,le),Se.el=vt.el,rt===null&&sc(T,vt.el),Ie&&$t(Ie,ce),(Xe=Se.props&&Se.props.onVnodeUpdated)&&$t(()=>en(Xe,Le,Se,Ze),ce)}else{let Se;const{el:ke,props:Ie}=D,{bm:Le,m:Ze,parent:rt}=T,Xe=si(D);if(Qr(T,!1),Le&&Di(Le),!Xe&&(Se=Ie&&Ie.onVnodeBeforeMount)&&en(Se,rt,D),Qr(T,!0),ke&&Re){const vt=()=>{T.subTree=la(T),Re(ke,T.subTree,T,ce,null)};Xe?D.type.__asyncLoader().then(()=>!T.isUnmounted&&vt()):vt()}else{const vt=T.subTree=la(T);E(null,vt,z,re,T,ce,le),D.el=vt.el}if(Ze&&$t(Ze,ce),!Xe&&(Se=Ie&&Ie.onVnodeMounted)){const vt=D;$t(()=>en(Se,rt,vt),ce)}(D.shapeFlag&256||rt&&si(rt.vnode)&&rt.vnode.shapeFlag&256)&&T.a&&$t(T.a,ce),T.isMounted=!0,D=z=re=null}},ye=T.effect=new Fs(ve,()=>Ba(fe),T.scope),fe=T.update=()=>ye.run();fe.id=T.uid,Qr(T,!0),fe()},P=(T,D,z)=>{D.component=T;const re=T.vnode.props;T.vnode=D,T.next=null,cx(T,D.props,re,z),hx(T,D.children,z),Ji(),gh(),Xi()},w=(T,D,z,re,ce,le,be,ve,ye=!1)=>{const fe=T&&T.children,Se=T?T.shapeFlag:0,ke=D.children,{patchFlag:Ie,shapeFlag:Le}=D;if(Ie>0){if(Ie&128){B(fe,ke,z,re,ce,le,be,ve,ye);return}else if(Ie&256){Y(fe,ke,z,re,ce,le,be,ve,ye);return}}Le&8?(Se&16&&Oe(fe,ce,le),ke!==fe&&p(z,ke)):Se&16?Le&16?B(fe,ke,z,re,ce,le,be,ve,ye):Oe(fe,ce,le,!0):(Se&8&&p(z,""),Le&16&&N(ke,z,re,ce,le,be,ve,ye))},Y=(T,D,z,re,ce,le,be,ve,ye)=>{T=T||Li,D=D||Li;const fe=T.length,Se=D.length,ke=Math.min(fe,Se);let Ie;for(Ie=0;IeSe?Oe(T,ce,le,!0,!1,ke):N(D,z,re,ce,le,be,ve,ye,ke)},B=(T,D,z,re,ce,le,be,ve,ye)=>{let fe=0;const Se=D.length;let ke=T.length-1,Ie=Se-1;for(;fe<=ke&&fe<=Ie;){const Le=T[fe],Ze=D[fe]=ye?Sr(D[fe]):hn(D[fe]);if(Mn(Le,Ze))E(Le,Ze,z,null,ce,le,be,ve,ye);else break;fe++}for(;fe<=ke&&fe<=Ie;){const Le=T[ke],Ze=D[Ie]=ye?Sr(D[Ie]):hn(D[Ie]);if(Mn(Le,Ze))E(Le,Ze,z,null,ce,le,be,ve,ye);else break;ke--,Ie--}if(fe>ke){if(fe<=Ie){const Le=Ie+1,Ze=LeIe)for(;fe<=ke;)Q(T[fe],ce,le,!0),fe++;else{const Le=fe,Ze=fe,rt=new Map;for(fe=Ze;fe<=Ie;fe++){const It=D[fe]=ye?Sr(D[fe]):hn(D[fe]);It.key!=null&&rt.set(It.key,fe)}let Xe,vt=0;const Ht=Ie-Ze+1;let Dn=!1,di=0;const jn=new Array(Ht);for(fe=0;fe=Ht){Q(It,ce,le,!0);continue}let Gt;if(It.key!=null)Gt=rt.get(It.key);else for(Xe=Ze;Xe<=Ie;Xe++)if(jn[Xe-Ze]===0&&Mn(It,D[Xe])){Gt=Xe;break}Gt===void 0?Q(It,ce,le,!0):(jn[Gt-Ze]=fe+1,Gt>=di?di=Gt:Dn=!0,E(It,D[Gt],z,null,ce,le,be,ve,ye),vt++)}const hi=Dn?gx(jn):Li;for(Xe=hi.length-1,fe=Ht-1;fe>=0;fe--){const It=Ze+fe,Gt=D[It],pi=It+1{const{el:le,type:be,transition:ve,children:ye,shapeFlag:fe}=T;if(fe&6){_(T.component.subTree,D,z,re);return}if(fe&128){T.suspense.move(D,z,re);return}if(fe&64){be.move(T,D,z,de);return}if(be===et){s(le,D,z);for(let ke=0;keve.enter(le),ce);else{const{leave:ke,delayLeave:Ie,afterLeave:Le}=ve,Ze=()=>s(le,D,z),rt=()=>{ke(le,()=>{Ze(),Le&&Le()})};Ie?Ie(le,Ze,rt):rt()}else s(le,D,z)},Q=(T,D,z,re=!1,ce=!1)=>{const{type:le,props:be,ref:ve,children:ye,dynamicChildren:fe,shapeFlag:Se,patchFlag:ke,dirs:Ie}=T;if(ve!=null&&_a(ve,null,z,T,!0),Se&256){D.ctx.deactivate(T);return}const Le=Se&1&&Ie,Ze=!si(T);let rt;if(Ze&&(rt=be&&be.onVnodeBeforeUnmount)&&en(rt,D,T),Se&6)_e(T.component,z,re);else{if(Se&128){T.suspense.unmount(z,re);return}Le&&Vn(T,null,D,"beforeUnmount"),Se&64?T.type.remove(T,D,z,ce,de,re):fe&&(le!==et||ke>0&&ke&64)?Oe(fe,D,z,!1,!0):(le===et&&ke&384||!ce&&Se&16)&&Oe(ye,D,z),re&&pe(T)}(Ze&&(rt=be&&be.onVnodeUnmounted)||Le)&&$t(()=>{rt&&en(rt,D,T),Le&&Vn(T,null,D,"unmounted")},z)},pe=T=>{const{type:D,el:z,anchor:re,transition:ce}=T;if(D===et){xe(z,re);return}if(D===Wi){k(T);return}const le=()=>{o(z),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(T.shapeFlag&1&&ce&&!ce.persisted){const{leave:be,delayLeave:ve}=ce,ye=()=>be(z,le);ve?ve(T.el,le,ye):ye()}else le()},xe=(T,D)=>{let z;for(;T!==D;)z=m(T),o(T),T=z;o(D)},_e=(T,D,z)=>{const{bum:re,scope:ce,update:le,subTree:be,um:ve}=T;re&&Di(re),ce.stop(),le&&(le.active=!1,Q(be,T,D,z)),ve&&$t(ve,D),$t(()=>{T.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Oe=(T,D,z,re=!1,ce=!1,le=0)=>{for(let be=le;beT.shapeFlag&6?X(T.component.subTree):T.shapeFlag&128?T.suspense.next():m(T.anchor||T.el),oe=(T,D,z)=>{T==null?D._vnode&&Q(D._vnode,null,null,!0):E(D._vnode||null,T,D,null,null,null,z),gh(),ga(),D._vnode=T},de={p:E,um:Q,m:_,r:pe,mt:x,mc:N,pc:w,pbc:K,n:X,o:e};let Ae,Re;return t&&([Ae,Re]=t(de)),{render:oe,hydrate:Ae,createApp:ax(oe,Ae)}}function Qr({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function pc(e,t,r=!1){const s=e.children,o=t.children;if(Ee(s)&&Ee(o))for(let l=0;l>1,e[r[c]]0&&(t[s]=r[l-1]),r[l]=s)}}for(l=r.length,u=r[l-1];l-- >0;)r[l]=u,u=t[u];return r}const yx=e=>e.__isTeleport,Ms=e=>e&&(e.disabled||e.disabled===""),Oh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mu=(e,t)=>{const r=e&&e.to;return wt(r)?t?t(r):null:r},_x={__isTeleport:!0,process(e,t,r,s,o,l,u,c,f,h){const{mc:p,pc:v,pbc:m,o:{insert:b,querySelector:y,createText:E,createComment:R}}=h,S=Ms(t.props);let{shapeFlag:O,children:M,dynamicChildren:k}=t;if(e==null){const I=t.el=E(""),H=t.anchor=E("");b(I,r,s),b(H,r,s);const U=t.target=Mu(t.props,y),N=t.targetAnchor=E("");U&&(b(N,U),u=u||Oh(U));const j=(K,q)=>{O&16&&p(M,K,q,o,l,u,c,f)};S?j(r,H):U&&j(U,N)}else{t.el=e.el;const I=t.anchor=e.anchor,H=t.target=e.target,U=t.targetAnchor=e.targetAnchor,N=Ms(e.props),j=N?r:H,K=N?I:U;if(u=u||Oh(H),k?(m(e.dynamicChildren,k,j,o,l,u,c),pc(e,t,!0)):f||v(e,t,j,K,o,l,u,c,!1),S)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ra(t,r,I,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=Mu(t.props,y);q&&ra(t,q,null,h,0)}else N&&ra(t,H,U,h,1)}Im(t)},remove(e,t,r,s,{um:o,o:{remove:l}},u){const{shapeFlag:c,children:f,anchor:h,targetAnchor:p,target:v,props:m}=e;if(v&&l(p),u&&l(h),c&16){const b=u||!Ms(m);for(let y=0;y0?tn||Li:null,Mm(),ai>0&&tn&&tn.push(e),e}function ge(e,t,r,s,o,l){return Lm(te(e,t,r,s,o,l,!0))}function je(e,t,r,s,o){return Lm(me(e,t,r,s,o,!0))}function Nr(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return e.type===t.type&&e.key===t.key}function h6(e){}const Ha="__vInternal",$m=({key:e})=>e??null,ua=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||_t(e)||Be(e)?{i:Tt,r:e,k:t,f:!!r}:e:null);function te(e,t=null,r=null,s=0,o=null,l=e===et?0:1,u=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$m(t),ref:t&&ua(t),scopeId:Wa,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Tt};return c?(mc(f,r),l&128&&e.normalize(f)):r&&(f.shapeFlag|=wt(r)?8:16),ai>0&&!u&&tn&&(f.patchFlag>0||l&6)&&f.patchFlag!==32&&tn.push(f),f}const me=wx;function wx(e,t=null,r=null,s=0,o=null,l=!1){if((!e||e===wm)&&(e=Zt),Nr(e)){const c=lr(e,t,!0);return r&&mc(c,r),ai>0&&!l&&tn&&(c.shapeFlag&6?tn[tn.indexOf(e)]=c:tn.push(c)),c.patchFlag|=-2,c}if(Sx(e)&&(e=e.__vccOpts),t){t=Ax(t);let{class:c,style:f}=t;c&&!wt(c)&&(t.class=Je(c)),ft(f)&&(sm(f)&&!Ee(f)&&(f=bt({},f)),t.style=Vr(f))}const u=wt(e)?1:pm(e)?128:yx(e)?64:ft(e)?4:Be(e)?2:0;return te(e,t,r,s,o,u,l,!0)}function Ax(e){return e?sm(e)||Ha in e?bt({},e):e:null}function lr(e,t,r=!1){const{props:s,ref:o,patchFlag:l,children:u}=e,c=t?xx(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$m(c),ref:t&&t.ref?r&&o?Ee(o)?o.concat(ua(t)):[o,ua(t)]:ua(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==et?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lr(e.ssContent),ssFallback:e.ssFallback&&lr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ua(e=" ",t=0){return me(qi,null,e,t)}function p6(e,t){const r=me(Wi,null,e);return r.staticCount=t,r}function Ne(e="",t=!1){return t?(ne(),je(Zt,null,e)):me(Zt,null,e)}function hn(e){return e==null||typeof e=="boolean"?me(Zt):Ee(e)?me(et,null,e.slice()):typeof e=="object"?Sr(e):me(qi,null,String(e))}function Sr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lr(e)}function mc(e,t){let r=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ee(t))r=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),mc(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(Ha in t)?t._ctx=Tt:o===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Be(t)?(t={default:t,_ctx:Tt},r=32):(t=String(t),s&64?(r=16,t=[Ua(t)]):r=8);e.children=t,e.shapeFlag|=r}function xx(...e){const t={};for(let r=0;rkt||Tt;let vc,Ri,Th="__VUE_INSTANCE_SETTERS__";(Ri=xu()[Th])||(Ri=xu()[Th]=[]),Ri.push(e=>kt=e),vc=e=>{Ri.length>1?Ri.forEach(t=>t(e)):Ri[0](e)};const Wr=e=>{vc(e),e.scope.on()},Lr=()=>{kt&&kt.scope.off(),vc(null)};function Bm(e){return e.vnode.shapeFlag&4}let ji=!1;function Nm(e,t=!1){ji=t;const{props:r,children:s}=e.vnode,o=Bm(e);ux(e,r,o,t),dx(e,s);const l=o?kx(e,t):void 0;return ji=!1,l}function kx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=$a(new Proxy(e.ctx,Ou));const{setup:s}=r;if(s){const o=e.setupContext=s.length>1?Fm(e):null;Wr(e),Ji();const l=Mr(s,e,0,[e.props,o]);if(Xi(),Lr(),Xu(l)){if(l.then(Lr,Lr),t)return l.then(u=>{Lu(e,u,t)}).catch(u=>{es(u,e,0)});e.asyncDep=l}else Lu(e,l,t)}else Wm(e,t)}function Lu(e,t,r){Be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=am(t)),Wm(e,r)}let ba,$u;function m6(e){ba=e,$u=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ex))}}const v6=()=>!ba;function Wm(e,t,r){const s=e.type;if(!e.render){if(!t&&ba&&!s.render){const o=s.template||dc(e).template;if(o){const{isCustomElement:l,compilerOptions:u}=e.appContext.config,{delimiters:c,compilerOptions:f}=s,h=bt(bt({isCustomElement:l,delimiters:c},u),f);s.render=ba(o,h)}}e.render=s.render||Ln,$u&&$u(e)}{Wr(e),Ji();try{tx(e)}finally{Xi(),Lr()}}}function Ex(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return rn(e,"get","$attrs"),t[r]}}))}function Fm(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Ex(e)},slots:e.slots,emit:e.emit,expose:t}}function qa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(am($a(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Is)return Is[r](e)},has(t,r){return r in t||r in Is}}))}function Du(e,t=!0){return Be(e)?e.displayName||e.name:e.name||t&&e.__name}function Sx(e){return Be(e)&&"__vccOpts"in e}const Ve=(e,t)=>wA(e,t,ji);function gc(e,t,r){const s=arguments.length;return s===2?ft(t)&&!Ee(t)?Nr(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Nr(r)&&(r=[r]),me(e,t,r))}const Ox=Symbol.for("v-scx"),Rx=()=>nn(Ox);function g6(){}function y6(e,t,r,s){const o=r[s];if(o&&Tx(o,e))return o;const l=t();return l.memo=e.slice(),r[s]=l}function Tx(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let s=0;s0&&tn&&tn.push(e),!0}const Ix="3.3.6",Mx={createComponentInstance:Dm,setupComponent:Nm,renderComponentRoot:la,setCurrentRenderingInstance:qs,isVNode:Nr,normalizeVNode:hn},_6=Mx,b6=null,w6=null,Lx="http://www.w3.org/2000/svg",ni=typeof document<"u"?document:null,Ih=ni&&ni.createElement("template"),$x={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,s)=>{const o=t?ni.createElementNS(Lx,e):ni.createElement(e,r?{is:r}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ni.createTextNode(e),createComment:e=>ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ni.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,s,o,l){const u=r?r.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===l||!(o=o.nextSibling)););else{Ih.innerHTML=s?`${e}`:e;const c=Ih.content;if(s){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,r)}return[u?u.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},xr="transition",gs="animation",Ki=Symbol("_vtc"),Vm=(e,{slots:t})=>gc(VA,Um(e),t);Vm.displayName="Transition";const Hm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dx=Vm.props=bt({},ym,Hm),ei=(e,t=[])=>{Ee(e)?e.forEach(r=>r(...t)):e&&e(...t)},Mh=e=>e?Ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Um(e){const t={};for(const G in e)G in Hm||(t[G]=e[G]);if(e.css===!1)return t;const{name:r="v",type:s,duration:o,enterFromClass:l=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:f=l,appearActiveClass:h=u,appearToClass:p=c,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=e,y=Bx(o),E=y&&y[0],R=y&&y[1],{onBeforeEnter:S,onEnter:O,onEnterCancelled:M,onLeave:k,onLeaveCancelled:I,onBeforeAppear:H=S,onAppear:U=O,onAppearCancelled:N=M}=t,j=(G,F,x)=>{Cr(G,F?p:c),Cr(G,F?h:u),x&&x()},K=(G,F)=>{G._isLeaving=!1,Cr(G,v),Cr(G,b),Cr(G,m),F&&F()},q=G=>(F,x)=>{const L=G?U:O,V=()=>j(F,G,x);ei(L,[F,V]),Lh(()=>{Cr(F,G?f:l),nr(F,G?p:c),Mh(L)||$h(F,s,E,V)})};return bt(t,{onBeforeEnter(G){ei(S,[G]),nr(G,l),nr(G,u)},onBeforeAppear(G){ei(H,[G]),nr(G,f),nr(G,h)},onEnter:q(!1),onAppear:q(!0),onLeave(G,F){G._isLeaving=!0;const x=()=>K(G,F);nr(G,v),jm(),nr(G,m),Lh(()=>{G._isLeaving&&(Cr(G,v),nr(G,b),Mh(k)||$h(G,s,R,x))}),ei(k,[G,x])},onEnterCancelled(G){j(G,!1),ei(M,[G])},onAppearCancelled(G){j(G,!0),ei(N,[G])},onLeaveCancelled(G){K(G),ei(I,[G])}})}function Bx(e){if(e==null)return null;if(ft(e))return[hu(e.enter),hu(e.leave)];{const t=hu(e);return[t,t]}}function hu(e){return pa(e)}function nr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ki]||(e[Ki]=new Set)).add(t)}function Cr(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const r=e[Ki];r&&(r.delete(t),r.size||(e[Ki]=void 0))}function Lh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nx=0;function $h(e,t,r,s){const o=e._endId=++Nx,l=()=>{o===e._endId&&s()};if(r)return setTimeout(l,r);const{type:u,timeout:c,propCount:f}=qm(e,t);if(!u)return s();const h=u+"end";let p=0;const v=()=>{e.removeEventListener(h,m),l()},m=b=>{b.target===e&&++p>=f&&v()};setTimeout(()=>{p(r[y]||"").split(", "),o=s(`${xr}Delay`),l=s(`${xr}Duration`),u=Dh(o,l),c=s(`${gs}Delay`),f=s(`${gs}Duration`),h=Dh(c,f);let p=null,v=0,m=0;t===xr?u>0&&(p=xr,v=u,m=l.length):t===gs?h>0&&(p=gs,v=h,m=f.length):(v=Math.max(u,h),p=v>0?u>h?xr:gs:null,m=p?p===xr?l.length:f.length:0);const b=p===xr&&/\b(transform|all)(,|$)/.test(s(`${xr}Property`).toString());return{type:p,timeout:v,propCount:m,hasTransform:b}}function Dh(e,t){for(;e.lengthBh(r)+Bh(e[s])))}function Bh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jm(){return document.body.offsetHeight}function Wx(e,t,r){const s=e[Ki];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const yc=Symbol("_vod"),wa={beforeMount(e,{value:t},{transition:r}){e[yc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ys(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:s}){!t!=!r&&(s?t?(s.beforeEnter(e),ys(e,!0),s.enter(e)):s.leave(e,()=>{ys(e,!1)}):ys(e,t))},beforeUnmount(e,{value:t}){ys(e,t)}};function ys(e,t){e.style.display=t?e[yc]:"none"}function Fx(){wa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function Vx(e,t,r){const s=e.style,o=wt(r);if(r&&!o){if(t&&!wt(t))for(const l in t)r[l]==null&&Bu(s,l,"");for(const l in r)Bu(s,l,r[l])}else{const l=s.display;o?t!==r&&(s.cssText=r):t&&e.removeAttribute("style"),yc in e&&(s.display=l)}}const Nh=/\s*!important$/;function Bu(e,t,r){if(Ee(r))r.forEach(s=>Bu(e,t,s));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const s=Hx(e,t);Nh.test(r)?e.setProperty(Pn(s),r.replace(Nh,""),"important"):e[s]=r}}const Wh=["Webkit","Moz","ms"],pu={};function Hx(e,t){const r=pu[t];if(r)return r;let s=pn(t);if(s!=="filter"&&s in e)return pu[t]=s;s=Ra(s);for(let o=0;omu||(Zx.then(()=>mu=0),mu=Date.now());function Yx(e,t){const r=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=r.attached)return;Cn(Jx(s,r.value),t,5,[s])};return r.value=e,r.attached=Gx(),r}function Jx(e,t){if(Ee(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Uh=/^on[a-z]/,Xx=(e,t,r,s,o=!1,l,u,c,f)=>{t==="class"?Wx(e,s,o):t==="style"?Vx(e,r,s):Js(t)?Yu(t)||Kx(e,t,r,s,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qx(e,t,s,o))?qx(e,t,s,l,u,c,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ux(e,t,s,o))};function Qx(e,t,r,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Uh.test(t)&&Be(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Uh.test(t)&&wt(r)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function e5(e,t){const r=ze(e);class s extends _c{constructor(l){super(r,l,t)}}return s.def=r,s}/*! #__NO_SIDE_EFFECTS__ */const A6=e=>e5(e,h5),t5=typeof HTMLElement<"u"?HTMLElement:class{};class _c extends t5{constructor(t,r={},s){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),ur(()=>{this._connected||(Gh(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s{for(const o of s)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,o=!1)=>{const{props:l,styles:u}=s;let c;if(l&&!Ee(l))for(const f in l){const h=l[f];(h===Number||h&&h.type===Number)&&(f in this._props&&(this._props[f]=pa(this._props[f])),(c||(c=Object.create(null)))[pn(f)]=!0)}this._numberProps=c,o&&this._resolveProps(s),this._applyStyles(u),this._update()},r=this._def.__asyncLoader;r?r().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,s=Ee(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&s.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of s.map(pn))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(l){this._setProp(o,l)}})}_setAttr(t){let r=this.getAttribute(t);const s=pn(t);this._numberProps&&this._numberProps[s]&&(r=pa(r)),this._setProp(s,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,s=!0,o=!0){r!==this._props[t]&&(this._props[t]=r,o&&this._instance&&this._update(),s&&(r===!0?this.setAttribute(Pn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Pn(t),r+""):r||this.removeAttribute(Pn(t))))}_update(){Gh(this._createVNode(),this.shadowRoot)}_createVNode(){const t=me(this._def,bt({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0;const s=(l,u)=>{this.dispatchEvent(new CustomEvent(l,{detail:u}))};r.emit=(l,...u)=>{s(l,u),Pn(l)!==l&&s(Pn(l),u)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof _c){r.parent=o._instance,r.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const s=document.createElement("style");s.textContent=r,this.shadowRoot.appendChild(s)})}}function x6(e="$style"){{const t=Hr();if(!t)return ct;const r=t.type.__cssModules;if(!r)return ct;const s=r[e];return s||ct}}function P6(e){const t=Hr();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>Wu(l,o))},s=()=>{const o=e(t.proxy);Nu(t.subTree,o),r(o)};NA(s),Vt(()=>{const o=new MutationObserver(s);o.observe(t.subTree.el.parentNode,{childList:!0}),uc(()=>o.disconnect())})}function Nu(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Nu(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Wu(e.el,t);else if(e.type===et)e.children.forEach(r=>Nu(r,t));else if(e.type===Wi){let{el:r,anchor:s}=e;for(;r&&(Wu(r,t),r!==s);)r=r.nextSibling}}function Wu(e,t){if(e.nodeType===1){const r=e.style;for(const s in t)r.setProperty(`--${s}`,t[s])}}const Km=new WeakMap,zm=new WeakMap,Aa=Symbol("_moveCb"),qh=Symbol("_enterCb"),Zm={name:"TransitionGroup",props:bt({},Dx,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Hr(),s=gm();let o,l;return lc(()=>{if(!o.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!o5(o[0].el,r.vnode.el,u))return;o.forEach(r5),o.forEach(i5);const c=o.filter(s5);jm(),c.forEach(f=>{const h=f.el,p=h.style;nr(h,u),p.transform=p.webkitTransform=p.transitionDuration="";const v=h[Aa]=m=>{m&&m.target!==h||(!m||/transform$/.test(m.propertyName))&&(h.removeEventListener("transitionend",v),h[Aa]=null,Cr(h,u))};h.addEventListener("transitionend",v)})}),()=>{const u=tt(e),c=Um(u);let f=u.tag||et;o=l,l=t.default?ac(t.default()):[];for(let h=0;hdelete e.mode;Zm.props;const C6=Zm;function r5(e){const t=e.el;t[Aa]&&t[Aa](),t[qh]&&t[qh]()}function i5(e){zm.set(e,e.el.getBoundingClientRect())}function s5(e){const t=Km.get(e),r=zm.get(e),s=t.left-r.left,o=t.top-r.top;if(s||o){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${s}px,${o}px)`,l.transitionDuration="0s",e}}function o5(e,t,r){const s=e.cloneNode(),o=e[Ki];o&&o.forEach(c=>{c.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),r.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(s);const{hasTransform:u}=qm(s);return l.removeChild(s),u}const Fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ee(t)?r=>Di(t,r):t};function a5(e){e.target.composing=!0}function jh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kn=Symbol("_assign"),Fu={created(e,{modifiers:{lazy:t,trim:r,number:s}},o){e[kn]=Fr(o);const l=s||o.props&&o.props.type==="number";sr(e,t?"change":"input",u=>{if(u.target.composing)return;let c=e.value;r&&(c=c.trim()),l&&(c=ha(c)),e[kn](c)}),r&&sr(e,"change",()=>{e.value=e.value.trim()}),t||(sr(e,"compositionstart",a5),sr(e,"compositionend",jh),sr(e,"change",jh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:s,number:o}},l){if(e[kn]=Fr(l),e.composing||document.activeElement===e&&e.type!=="range"&&(r||s&&e.value.trim()===t||(o||e.type==="number")&&ha(e.value)===t))return;const u=t??"";e.value!==u&&(e.value=u)}},Gm={deep:!0,created(e,t,r){e[kn]=Fr(r),sr(e,"change",()=>{const s=e._modelValue,o=zi(e),l=e.checked,u=e[kn];if(Ee(s)){const c=Ta(s,o),f=c!==-1;if(l&&!f)u(s.concat(o));else if(!l&&f){const h=[...s];h.splice(c,1),u(h)}}else if(ui(s)){const c=new Set(s);l?c.add(o):c.delete(o),u(c)}else u(Jm(e,l))})},mounted:Kh,beforeUpdate(e,t,r){e[kn]=Fr(r),Kh(e,t,r)}};function Kh(e,{value:t,oldValue:r},s){e._modelValue=t,Ee(t)?e.checked=Ta(t,s.props.value)>-1:ui(t)?e.checked=t.has(s.props.value):t!==r&&(e.checked=Dr(t,Jm(e,!0)))}const Ym={created(e,{value:t},r){e.checked=Dr(t,r.props.value),e[kn]=Fr(r),sr(e,"change",()=>{e[kn](zi(e))})},beforeUpdate(e,{value:t,oldValue:r},s){e[kn]=Fr(s),t!==r&&(e.checked=Dr(t,s.props.value))}},l5={deep:!0,created(e,{value:t,modifiers:{number:r}},s){const o=ui(t);sr(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>r?ha(zi(u)):zi(u));e[kn](e.multiple?o?new Set(l):l:l[0])}),e[kn]=Fr(s)},mounted(e,{value:t}){zh(e,t)},beforeUpdate(e,t,r){e[kn]=Fr(r)},updated(e,{value:t}){zh(e,t)}};function zh(e,t){const r=e.multiple;if(!(r&&!Ee(t)&&!ui(t))){for(let s=0,o=e.options.length;s-1:l.selected=t.has(u);else if(Dr(zi(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zi(e){return"_value"in e?e._value:e.value}function Jm(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const bc={created(e,t,r){ia(e,t,r,null,"created")},mounted(e,t,r){ia(e,t,r,null,"mounted")},beforeUpdate(e,t,r,s){ia(e,t,r,s,"beforeUpdate")},updated(e,t,r,s){ia(e,t,r,s,"updated")}};function Xm(e,t){switch(e){case"SELECT":return l5;case"TEXTAREA":return Fu;default:switch(t){case"checkbox":return Gm;case"radio":return Ym;default:return Fu}}}function ia(e,t,r,s,o){const u=Xm(e.tagName,r.props&&r.props.type)[o];u&&u(e,t,r,s)}function u5(){Fu.getSSRProps=({value:e})=>({value:e}),Ym.getSSRProps=({value:e},t)=>{if(t.props&&Dr(t.props.value,e))return{checked:!0}},Gm.getSSRProps=({value:e},t)=>{if(Ee(e)){if(t.props&&Ta(e,t.props.value)>-1)return{checked:!0}}else if(ui(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},bc.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Xm(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const c5=["ctrl","shift","alt","meta"],f5={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>c5.some(r=>e[`${r}Key`]&&!t.includes(r))},Dt=(e,t)=>(r,...s)=>{for(let o=0;or=>{if(!("key"in r))return;const s=Pn(r.key);if(t.some(o=>o===s||d5[o]===s))return e(r)},Qm=bt({patchProp:Xx},$x);let $s,Zh=!1;function ev(){return $s||($s=mx(Qm))}function tv(){return $s=Zh?$s:vx(Qm),Zh=!0,$s}const Gh=(...e)=>{ev().render(...e)},h5=(...e)=>{tv().hydrate(...e)},p5=(...e)=>{const t=ev().createApp(...e),{mount:r}=t;return t.mount=s=>{const o=nv(s);if(!o)return;const l=t._component;!Be(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.innerHTML="";const u=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t},E6=(...e)=>{const t=tv().createApp(...e),{mount:r}=t;return t.mount=s=>{const o=nv(s);if(o)return r(o,!0,o instanceof SVGElement)},t};function nv(e){return wt(e)?document.querySelector(e):e}let Yh=!1;const S6=()=>{Yh||(Yh=!0,u5(),Fx())};const at=(e,t)=>{const r=e.__vccOpts||e;for(const[s,o]of t)r[s]=o;return r},m5={name:"Marquee",mounted(){this.update(),window.addEventListener("resize",this.update)},data(){return{isMarquee:!1}},methods:{isTruncated(e){return e?e.scrollWidth>e.clientWidth:!1},update(){this.isMarquee=!1,setTimeout(()=>{this.isMarquee=this.isTruncated(this.$refs.marquee)},10)}},props:{text:String},watch:{text(){this.update()}}},v5={key:0,class:"replacer"},g5={key:0,class:"overlay"};function y5(e,t,r,s,o,l){return ne(),ge("div",{class:Je([{marquee:o.isMarquee},"marqueeWrapper"])},[te("span",{ref:"marquee",class:Je({marquee:o.isMarquee})},[Ua(We(r.text)+" ",1),o.isMarquee?(ne(),ge("span",v5,We(r.text),1)):Ne("",!0)],2),o.isMarquee?(ne(),ge("div",g5)):Ne("",!0)],2)}const ir=at(m5,[["render",y5],["__scopeId","data-v-625a8655"]]);var _5=!1;/*! +var E2=Object.defineProperty;var S2=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oi=(e,t,r)=>(S2(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function Sa(e,t){const r=Object.create(null),s=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const ct={},Li=[],Ln=()=>{},O2=()=>!1,R2=/^on[^a-z]/,Js=e=>R2.test(e),Yu=e=>e.startsWith("onUpdate:"),bt=Object.assign,Ju=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},T2=Object.prototype.hasOwnProperty,nt=(e,t)=>T2.call(e,t),Ee=Array.isArray,$i=e=>Yi(e)==="[object Map]",ui=e=>Yi(e)==="[object Set]",lh=e=>Yi(e)==="[object Date]",I2=e=>Yi(e)==="[object RegExp]",Ne=e=>typeof e=="function",wt=e=>typeof e=="string",Ws=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Xu=e=>(ft(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),Bp=Object.prototype.toString,Yi=e=>Bp.call(e),M2=e=>Yi(e).slice(8,-1),Np=e=>Yi(e)==="[object Object]",Qu=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ts=Sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oa=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},L2=/-(\w)/g,pn=Oa(e=>e.replace(L2,(t,r)=>r?r.toUpperCase():"")),$2=/\B([A-Z])/g,Pn=Oa(e=>e.replace($2,"-$1").toLowerCase()),Ra=Oa(e=>e.charAt(0).toUpperCase()+e.slice(1)),aa=Oa(e=>e?`on${Ra(e)}`:""),$r=(e,t)=>!Object.is(e,t),Di=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pa=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let uh;const xu=()=>uh||(uh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),D2="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",B2=Sa(D2);function Vr(e){if(Ee(e)){const t={};for(let r=0;r{if(r){const s=r.split(W2);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Je(e){let t="";if(wt(e))t=e;else if(Ee(e))for(let r=0;rDr(r,t))}const Be=e=>wt(e)?e:e==null?"":Ee(e)||ft(e)&&(e.toString===Bp||!Ne(e.toString))?JSON.stringify(e,Fp,2):String(e),Fp=(e,t)=>t&&t.__v_isRef?Fp(e,t.value):$i(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[s,o])=>(r[`${s} =>`]=o,r),{})}:ui(t)?{[`Set(${t.size})`]:[...t.values()]}:ft(t)&&!Ee(t)&&!Np(t)?String(t):t;let dn;class Vp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dn,!t&&dn&&(this.index=(dn.scopes||(dn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=dn;try{return dn=this,t()}finally{dn=r}}}on(){dn=this}off(){dn=this.parent}stop(t){if(this._active){let r,s;for(r=0,s=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},jp=e=>(e.w&Br)>0,Kp=e=>(e.n&Br)>0,K2=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let s=0;s{(p==="length"||p>=f)&&c.push(h)})}else switch(r!==void 0&&c.push(u.get(r)),t){case"add":Ee(e)?Qu(r)&&c.push(u.get("length")):(c.push(u.get(ii)),$i(e)&&c.push(u.get(Cu)));break;case"delete":Ee(e)||(c.push(u.get(ii)),$i(e)&&c.push(u.get(Cu)));break;case"set":$i(e)&&c.push(u.get(ii));break}if(c.length===1)c[0]&&ku(c[0]);else{const f=[];for(const h of c)h&&f.push(...h);ku(ec(f))}}function ku(e,t){const r=Ee(e)?e:[...e];for(const s of r)s.computed&&fh(s);for(const s of r)s.computed||fh(s)}function fh(e,t){(e!==In||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Z2(e,t){var r;return(r=ma.get(e))==null?void 0:r.get(t)}const G2=Sa("__proto__,__v_isRef,__isVue"),Gp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ws)),dh=Y2();function Y2(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const s=tt(this);for(let l=0,u=this.length;l{e[t]=function(...r){Ji();const s=tt(this)[t].apply(this,r);return Xi(),s}}),e}function J2(e){const t=tt(this);return rn(t,"has",e),t.hasOwnProperty(e)}class Yp{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,s){const o=this._isReadonly,l=this._shallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return l;if(r==="__v_raw"&&s===(o?l?nm:tm:l?em:Qp).get(t))return t;const u=Ee(t);if(!o){if(u&&nt(dh,r))return Reflect.get(dh,r,s);if(r==="hasOwnProperty")return J2}const c=Reflect.get(t,r,s);return(Ws(r)?Gp.has(r):G2(r))||(o||rn(t,"get",r),l)?c:_t(c)?u&&Qu(r)?c:c.value:ft(c)?o?im(c):Qi(c):c}}class Jp extends Yp{constructor(t=!1){super(!1,t)}set(t,r,s,o){let l=t[r];if(Fi(l)&&_t(l)&&!_t(s))return!1;if(!this._shallow&&(!va(s)&&!Fi(s)&&(l=tt(l),s=tt(s)),!Ee(t)&&_t(l)&&!_t(s)))return l.value=s,!0;const u=Ee(t)&&Qu(r)?Number(r)e,Ia=e=>Reflect.getPrototypeOf(e);function zo(e,t,r=!1,s=!1){e=e.__v_raw;const o=tt(e),l=tt(t);r||($r(t,l)&&rn(o,"get",t),rn(o,"get",l));const{has:u}=Ia(o),c=s?tc:r?nc:Vs;if(u.call(o,t))return c(e.get(t));if(u.call(o,l))return c(e.get(l));e!==o&&e.get(t)}function Zo(e,t=!1){const r=this.__v_raw,s=tt(r),o=tt(e);return t||($r(e,o)&&rn(s,"has",e),rn(s,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function Go(e,t=!1){return e=e.__v_raw,!t&&rn(tt(e),"iterate",ii),Reflect.get(e,"size",e)}function hh(e){e=tt(e);const t=tt(this);return Ia(t).has.call(t,e)||(t.add(e),or(t,"add",e,e)),this}function ph(e,t){t=tt(t);const r=tt(this),{has:s,get:o}=Ia(r);let l=s.call(r,e);l||(e=tt(e),l=s.call(r,e));const u=o.call(r,e);return r.set(e,t),l?$r(t,u)&&or(r,"set",e,t):or(r,"add",e,t),this}function mh(e){const t=tt(this),{has:r,get:s}=Ia(t);let o=r.call(t,e);o||(e=tt(e),o=r.call(t,e)),s&&s.call(t,e);const l=t.delete(e);return o&&or(t,"delete",e,void 0),l}function vh(){const e=tt(this),t=e.size!==0,r=e.clear();return t&&or(e,"clear",void 0,void 0),r}function Yo(e,t){return function(s,o){const l=this,u=l.__v_raw,c=tt(u),f=t?tc:e?nc:Vs;return!e&&rn(c,"iterate",ii),u.forEach((h,p)=>s.call(o,f(h),f(p),l))}}function Jo(e,t,r){return function(...s){const o=this.__v_raw,l=tt(o),u=$i(l),c=e==="entries"||e===Symbol.iterator&&u,f=e==="keys"&&u,h=o[e](...s),p=r?tc:t?nc:Vs;return!t&&rn(l,"iterate",f?Cu:ii),{next(){const{value:v,done:m}=h.next();return m?{value:v,done:m}:{value:c?[p(v[0]),p(v[1])]:p(v),done:m}},[Symbol.iterator](){return this}}}}function wr(e){return function(...t){return e==="delete"?!1:this}}function nA(){const e={get(l){return zo(this,l)},get size(){return Go(this)},has:Zo,add:hh,set:ph,delete:mh,clear:vh,forEach:Yo(!1,!1)},t={get(l){return zo(this,l,!1,!0)},get size(){return Go(this)},has:Zo,add:hh,set:ph,delete:mh,clear:vh,forEach:Yo(!1,!0)},r={get(l){return zo(this,l,!0)},get size(){return Go(this,!0)},has(l){return Zo.call(this,l,!0)},add:wr("add"),set:wr("set"),delete:wr("delete"),clear:wr("clear"),forEach:Yo(!0,!1)},s={get(l){return zo(this,l,!0,!0)},get size(){return Go(this,!0)},has(l){return Zo.call(this,l,!0)},add:wr("add"),set:wr("set"),delete:wr("delete"),clear:wr("clear"),forEach:Yo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Jo(l,!1,!1),r[l]=Jo(l,!0,!1),t[l]=Jo(l,!1,!0),s[l]=Jo(l,!0,!0)}),[e,r,t,s]}const[rA,iA,sA,oA]=nA();function Ma(e,t){const r=t?e?oA:sA:e?iA:rA;return(s,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(nt(r,o)&&o in s?r:s,o,l)}const aA={get:Ma(!1,!1)},lA={get:Ma(!1,!0)},uA={get:Ma(!0,!1)},cA={get:Ma(!0,!0)},Qp=new WeakMap,em=new WeakMap,tm=new WeakMap,nm=new WeakMap;function fA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dA(e){return e.__v_skip||!Object.isExtensible(e)?0:fA(M2(e))}function Qi(e){return Fi(e)?e:La(e,!1,X2,aA,Qp)}function rm(e){return La(e,!1,eA,lA,em)}function im(e){return La(e,!0,Q2,uA,tm)}function BS(e){return La(e,!0,tA,cA,nm)}function La(e,t,r,s,o){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const u=dA(e);if(u===0)return e;const c=new Proxy(e,u===2?s:r);return o.set(e,c),c}function Ir(e){return Fi(e)?Ir(e.__v_raw):!!(e&&e.__v_isReactive)}function Fi(e){return!!(e&&e.__v_isReadonly)}function va(e){return!!(e&&e.__v_isShallow)}function sm(e){return Ir(e)||Fi(e)}function tt(e){const t=e&&e.__v_raw;return t?tt(t):e}function $a(e){return da(e,"__v_skip",!0),e}const Vs=e=>ft(e)?Qi(e):e,nc=e=>ft(e)?im(e):e;function rc(e){Tr&&In&&(e=tt(e),Zp(e.dep||(e.dep=ec())))}function Da(e,t){e=tt(e);const r=e.dep;r&&ku(r)}function _t(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return om(e,!1)}function hA(e){return om(e,!0)}function om(e,t){return _t(e)?e:new pA(e,t)}class pA{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:tt(t),this._value=r?t:Vs(t)}get value(){return rc(this),this._value}set value(t){const r=this.__v_isShallow||va(t)||Fi(t);t=r?t:tt(t),$r(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Vs(t),Da(this))}}function NS(e){Da(e)}function se(e){return _t(e)?e.value:e}function WS(e){return Ne(e)?e():se(e)}const mA={get:(e,t,r)=>se(Reflect.get(e,t,r)),set:(e,t,r,s)=>{const o=e[t];return _t(o)&&!_t(r)?(o.value=r,!0):Reflect.set(e,t,r,s)}};function am(e){return Ir(e)?e:new Proxy(e,mA)}class vA{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:s}=t(()=>rc(this),()=>Da(this));this._get=r,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function FS(e){return new vA(e)}function gA(e){const t=Ee(e)?new Array(e.length):{};for(const r in e)t[r]=lm(e,r);return t}class yA{constructor(t,r,s){this._object=t,this._key=r,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Z2(tt(this._object),this._key)}}class _A{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function VS(e,t,r){return _t(e)?e:Ne(e)?new _A(e):ft(e)&&arguments.length>1?lm(e,t,r):Pe(e)}function lm(e,t,r){const s=e[t];return _t(s)?s:new yA(e,t,r)}class bA{constructor(t,r,s,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fs(t,()=>{this._dirty||(this._dirty=!0,Da(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=tt(this);return rc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function wA(e,t,r=!1){let s,o;const l=Ne(e);return l?(s=e,o=Ln):(s=e.get,o=e.set),new bA(s,o,l||!o,r)}function HS(e,...t){}function US(e,t){}function Mr(e,t,r,s){let o;try{o=s?e(...s):e()}catch(l){es(l,t,r)}return o}function Cn(e,t,r,s){if(Ne(e)){const l=Mr(e,t,r,s);return l&&Xu(l)&&l.catch(u=>{es(u,t,r)}),l}const o=[];for(let l=0;l>>1;Us(Ft[s])Hn&&Ft.splice(t,1)}function fm(e){Ee(e)?Bi.push(...e):(!rr||!rr.includes(e,e.allowRecurse?ti+1:ti))&&Bi.push(e),cm()}function gh(e,t=Hs?Hn+1:0){for(;tUs(r)-Us(s)),ti=0;tie.id==null?1/0:e.id,CA=(e,t)=>{const r=Us(e)-Us(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function dm(e){Eu=!1,Hs=!0,Ft.sort(CA);const t=Ln;try{for(Hn=0;Hnvs.emit(o,...l)),Xo=[]):typeof window<"u"&&window.HTMLElement&&!((s=(r=window.navigator)==null?void 0:r.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{kA(l,t)}),setTimeout(()=>{vs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Xo=[])},3e3)):Xo=[]}function EA(e,t,...r){if(e.isUnmounted)return;const s=e.vnode.props||ct;let o=r;const l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in s){const p=`${u==="modelValue"?"model":u}Modifiers`,{number:v,trim:m}=s[p]||ct;m&&(o=r.map(y=>wt(y)?y.trim():y)),v&&(o=r.map(ha))}let c,f=s[c=aa(t)]||s[c=aa(pn(t))];!f&&l&&(f=s[c=aa(Pn(t))]),f&&Cn(f,e,6,o);const h=s[c+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Cn(h,e,6,o)}}function hm(e,t,r=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const l=e.emits;let u={},c=!1;if(!Ne(e)){const f=h=>{const p=hm(h,t,!0);p&&(c=!0,bt(u,p))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!l&&!c?(ft(e)&&s.set(e,null),null):(Ee(l)?l.forEach(f=>u[f]=null):bt(u,l),ft(e)&&s.set(e,u),u)}function Na(e,t){return!e||!Js(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,Pn(t))||nt(e,t))}let Tt=null,Wa=null;function qs(e){const t=Tt;return Tt=e,Wa=e&&e.type.__scopeId||null,t}function ci(e){Wa=e}function fi(){Wa=null}const qS=e=>Ot;function Ot(e,t=Tt,r){if(!t||e._n)return e;const s=(...o)=>{s._d&&Rh(-1);const l=qs(t);let u;try{u=e(...o)}finally{qs(l),s._d&&Rh(1)}return u};return s._n=!0,s._c=!0,s._d=!0,s}function la(e){const{type:t,vnode:r,proxy:s,withProxy:o,props:l,propsOptions:[u],slots:c,attrs:f,emit:h,render:p,renderCache:v,data:m,setupState:y,ctx:x,inheritAttrs:k}=e;let R,O;const S=qs(e);try{if(r.shapeFlag&4){const E=o||s;R=hn(p.call(E,E,v,l,y,m,x)),O=f}else{const E=t;R=hn(E.length>1?E(l,{attrs:f,slots:c,emit:h}):E(l,null)),O=t.props?f:OA(f)}}catch(E){Ls.length=0,es(E,e,1),R=me(Zt)}let M=R;if(O&&k!==!1){const E=Object.keys(O),{shapeFlag:I}=M;E.length&&I&7&&(u&&E.some(Yu)&&(O=RA(O,u)),M=lr(M,O))}return r.dirs&&(M=lr(M),M.dirs=M.dirs?M.dirs.concat(r.dirs):r.dirs),r.transition&&(M.transition=r.transition),R=M,qs(S),R}function SA(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||Js(r))&&((t||(t={}))[r]=e[r]);return t},RA=(e,t)=>{const r={};for(const s in e)(!Yu(s)||!(s.slice(9)in t))&&(r[s]=e[s]);return r};function TA(e,t,r){const{props:s,children:o,component:l}=e,{props:u,children:c,patchFlag:f}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&f>=0){if(f&1024)return!0;if(f&16)return s?yh(s,u,h):!!u;if(f&8){const p=t.dynamicProps;for(let v=0;ve.__isSuspense,IA={name:"Suspense",__isSuspense:!0,process(e,t,r,s,o,l,u,c,f,h){e==null?MA(t,r,s,o,l,u,c,f,h):LA(e,t,r,s,o,u,c,f,h)},hydrate:$A,create:oc,normalize:DA},jS=IA;function js(e,t){const r=e.props&&e.props[t];Ne(r)&&r()}function MA(e,t,r,s,o,l,u,c,f){const{p:h,o:{createElement:p}}=f,v=p("div"),m=e.suspense=oc(e,o,s,t,v,r,l,u,c,f);h(null,m.pendingBranch=e.ssContent,v,null,s,m,l,u),m.deps>0?(js(e,"onPending"),js(e,"onFallback"),h(null,e.ssFallback,t,r,s,null,l,u),Ni(m,e.ssFallback)):m.resolve(!1,!0)}function LA(e,t,r,s,o,l,u,c,{p:f,um:h,o:{createElement:p}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const m=t.ssContent,y=t.ssFallback,{activeBranch:x,pendingBranch:k,isInFallback:R,isHydrating:O}=v;if(k)v.pendingBranch=m,Mn(m,k)?(f(k,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0?v.resolve():R&&(f(x,y,r,s,o,null,l,u,c),Ni(v,y))):(v.pendingId++,O?(v.isHydrating=!1,v.activeBranch=k):h(k,o,v),v.deps=0,v.effects.length=0,v.hiddenContainer=p("div"),R?(f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0?v.resolve():(f(x,y,r,s,o,null,l,u,c),Ni(v,y))):x&&Mn(m,x)?(f(x,m,r,s,o,v,l,u,c),v.resolve(!0)):(f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0&&v.resolve()));else if(x&&Mn(m,x))f(x,m,r,s,o,v,l,u,c),Ni(v,m);else if(js(t,"onPending"),v.pendingBranch=m,v.pendingId++,f(null,m,v.hiddenContainer,null,o,v,l,u,c),v.deps<=0)v.resolve();else{const{timeout:S,pendingId:M}=v;S>0?setTimeout(()=>{v.pendingId===M&&v.fallback(y)},S):S===0&&v.fallback(y)}}function oc(e,t,r,s,o,l,u,c,f,h,p=!1){const{p:v,m,um:y,n:x,o:{parentNode:k,remove:R}}=h;let O;const S=BA(e);S&&t!=null&&t.pendingBranch&&(O=t.pendingId,t.deps++);const M=e.props?pa(e.props.timeout):void 0,E={vnode:e,parent:t,parentComponent:r,isSVG:u,container:s,hiddenContainer:o,anchor:l,deps:0,pendingId:0,timeout:typeof M=="number"?M:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(I=!1,H=!1){const{vnode:U,activeBranch:N,pendingBranch:j,pendingId:K,effects:q,parentComponent:G,container:F}=E;if(E.isHydrating)E.isHydrating=!1;else if(!I){const V=N&&j.transition&&j.transition.mode==="out-in";V&&(N.transition.afterLeave=()=>{K===E.pendingId&&m(j,F,P,0)});let{anchor:P}=E;N&&(P=x(N),y(N,G,E,!0)),V||m(j,F,P,0)}Ni(E,j),E.pendingBranch=null,E.isInFallback=!1;let A=E.parent,L=!1;for(;A;){if(A.pendingBranch){A.effects.push(...q),L=!0;break}A=A.parent}L||fm(q),E.effects=[],S&&t&&t.pendingBranch&&O===t.pendingId&&(t.deps--,t.deps===0&&!H&&t.resolve()),js(U,"onResolve")},fallback(I){if(!E.pendingBranch)return;const{vnode:H,activeBranch:U,parentComponent:N,container:j,isSVG:K}=E;js(H,"onFallback");const q=x(U),G=()=>{E.isInFallback&&(v(null,I,j,q,N,null,K,c,f),Ni(E,I))},F=I.transition&&I.transition.mode==="out-in";F&&(U.transition.afterLeave=G),E.isInFallback=!0,y(U,N,null,!0),F||G()},move(I,H,U){E.activeBranch&&m(E.activeBranch,I,H,U),E.container=I},next(){return E.activeBranch&&x(E.activeBranch)},registerDep(I,H){const U=!!E.pendingBranch;U&&E.deps++;const N=I.vnode.el;I.asyncDep.catch(j=>{es(j,I,0)}).then(j=>{if(I.isUnmounted||E.isUnmounted||E.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:K}=I;Lu(I,j,!1),N&&(K.el=N);const q=!N&&I.subTree.el;H(I,K,k(N||I.subTree.el),N?null:x(I.subTree),E,u,f),q&&R(q),sc(I,K.el),U&&--E.deps===0&&E.resolve()})},unmount(I,H){E.isUnmounted=!0,E.activeBranch&&y(E.activeBranch,r,I,H),E.pendingBranch&&y(E.pendingBranch,r,I,H)}};return E}function $A(e,t,r,s,o,l,u,c,f){const h=t.suspense=oc(t,s,r,e.parentNode,document.createElement("div"),null,o,l,u,c,!0),p=f(e,h.pendingBranch=t.ssContent,r,h,l,u);return h.deps===0&&h.resolve(!1,!0),p}function DA(e){const{shapeFlag:t,children:r}=e,s=t&32;e.ssContent=_h(s?r.default:r),e.ssFallback=s?_h(r.fallback):me(Zt)}function _h(e){let t;if(Ne(e)){const r=ai&&e._c;r&&(e._d=!1,ne()),e=e(),r&&(e._d=!0,t=tn,Mm())}return Ee(e)&&(e=SA(e)),e=hn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function mm(e,t){t&&t.pendingBranch?Ee(e)?t.effects.push(...e):t.effects.push(e):fm(e)}function Ni(e,t){e.activeBranch=t;const{vnode:r,parentComponent:s}=e,o=r.el=t.el;s&&s.subTree===r&&(s.vnode.el=o,sc(s,o))}function BA(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function KS(e,t){return Xs(e,null,t)}function NA(e,t){return Xs(e,null,{flush:"post"})}function zS(e,t){return Xs(e,null,{flush:"sync"})}const Qo={};function st(e,t,r){return Xs(e,t,r)}function Xs(e,t,{immediate:r,deep:s,flush:o,onTrack:l,onTrigger:u}=ct){var c;const f=qp()===((c=kt)==null?void 0:c.scope)?kt:null;let h,p=!1,v=!1;if(_t(e)?(h=()=>e.value,p=va(e)):Ir(e)?(h=()=>e,s=!0):Ee(e)?(v=!0,p=e.some(E=>Ir(E)||va(E)),h=()=>e.map(E=>{if(_t(E))return E.value;if(Ir(E))return ri(E);if(Ne(E))return Mr(E,f,2)})):Ne(e)?t?h=()=>Mr(e,f,2):h=()=>{if(!(f&&f.isUnmounted))return m&&m(),Cn(e,f,3,[y])}:h=Ln,t&&s){const E=h;h=()=>ri(E())}let m,y=E=>{m=S.onStop=()=>{Mr(E,f,4)}},x;if(ji)if(y=Ln,t?r&&Cn(t,f,3,[h(),v?[]:void 0,y]):h(),o==="sync"){const E=Rx();x=E.__watcherHandles||(E.__watcherHandles=[])}else return Ln;let k=v?new Array(e.length).fill(Qo):Qo;const R=()=>{if(S.active)if(t){const E=S.run();(s||p||(v?E.some((I,H)=>$r(I,k[H])):$r(E,k)))&&(m&&m(),Cn(t,f,3,[E,k===Qo?void 0:v&&k[0]===Qo?[]:k,y]),k=E)}else S.run()};R.allowRecurse=!!t;let O;o==="sync"?O=R:o==="post"?O=()=>$t(R,f&&f.suspense):(R.pre=!0,f&&(R.id=f.uid),O=()=>Ba(R));const S=new Fs(h,O);t?r?R():k=S.run():o==="post"?$t(S.run.bind(S),f&&f.suspense):S.run();const M=()=>{S.stop(),f&&f.scope&&Ju(f.scope.effects,S)};return x&&x.push(M),M}function WA(e,t,r){const s=this.proxy,o=wt(e)?e.includes(".")?vm(s,e):()=>s[e]:e.bind(s,s);let l;Ne(t)?l=t:(l=t.handler,r=t);const u=kt;Wr(this);const c=Xs(o,l.bind(s),r);return u?Wr(u):Lr(),c}function vm(e,t){const r=t.split(".");return()=>{let s=e;for(let o=0;o{ri(r,t)});else if(Np(e))for(const r in e)ri(e[r],t);return e}function Ks(e,t){const r=Tt;if(r===null)return e;const s=qa(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0}),Va(()=>{e.isUnmounting=!0}),e}const xn=[Function,Array],ym={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xn,onEnter:xn,onAfterEnter:xn,onEnterCancelled:xn,onBeforeLeave:xn,onLeave:xn,onAfterLeave:xn,onLeaveCancelled:xn,onBeforeAppear:xn,onAppear:xn,onAfterAppear:xn,onAppearCancelled:xn},FA={name:"BaseTransition",props:ym,setup(e,{slots:t}){const r=Hr(),s=gm();let o;return()=>{const l=t.default&&ac(t.default(),!0);if(!l||!l.length)return;let u=l[0];if(l.length>1){for(const k of l)if(k.type!==Zt){u=k;break}}const c=tt(e),{mode:f}=c;if(s.isLeaving)return lu(u);const h=bh(u);if(!h)return lu(u);const p=zs(h,c,s,r);Vi(h,p);const v=r.subTree,m=v&&bh(v);let y=!1;const{getTransitionKey:x}=h.type;if(x){const k=x();o===void 0?o=k:k!==o&&(o=k,y=!0)}if(m&&m.type!==Zt&&(!Mn(h,m)||y)){const k=zs(m,c,s,r);if(Vi(m,k),f==="out-in")return s.isLeaving=!0,k.afterLeave=()=>{s.isLeaving=!1,r.update.active!==!1&&r.update()},lu(u);f==="in-out"&&h.type!==Zt&&(k.delayLeave=(R,O,S)=>{const M=_m(s,m);M[String(m.key)]=m,R[Er]=()=>{O(),R[Er]=void 0,delete p.delayedLeave},p.delayedLeave=S})}return u}}},VA=FA;function _m(e,t){const{leavingVNodes:r}=e;let s=r.get(t.type);return s||(s=Object.create(null),r.set(t.type,s)),s}function zs(e,t,r,s){const{appear:o,mode:l,persisted:u=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:m,onAfterLeave:y,onLeaveCancelled:x,onBeforeAppear:k,onAppear:R,onAfterAppear:O,onAppearCancelled:S}=t,M=String(e.key),E=_m(r,e),I=(N,j)=>{N&&Cn(N,s,9,j)},H=(N,j)=>{const K=j[1];I(N,j),Ee(N)?N.every(q=>q.length<=1)&&K():N.length<=1&&K()},U={mode:l,persisted:u,beforeEnter(N){let j=c;if(!r.isMounted)if(o)j=k||c;else return;N[Er]&&N[Er](!0);const K=E[M];K&&Mn(e,K)&&K.el[Er]&&K.el[Er](),I(j,[N])},enter(N){let j=f,K=h,q=p;if(!r.isMounted)if(o)j=R||f,K=O||h,q=S||p;else return;let G=!1;const F=N[ea]=A=>{G||(G=!0,A?I(q,[N]):I(K,[N]),U.delayedLeave&&U.delayedLeave(),N[ea]=void 0)};j?H(j,[N,F]):F()},leave(N,j){const K=String(e.key);if(N[ea]&&N[ea](!0),r.isUnmounting)return j();I(v,[N]);let q=!1;const G=N[Er]=F=>{q||(q=!0,j(),F?I(x,[N]):I(y,[N]),N[Er]=void 0,E[K]===e&&delete E[K])};E[K]=e,m?H(m,[N,G]):G()},clone(N){return zs(N,t,r,s)}};return U}function lu(e){if(Qs(e))return e=lr(e),e.children=null,e}function bh(e){return Qs(e)?e.children?e.children[0]:void 0:e}function Vi(e,t){e.shapeFlag&6&&e.component?Vi(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ac(e,t=!1,r){let s=[],o=0;for(let l=0;l1)for(let l=0;lbt({name:e.name},t,{setup:e}))():e}const si=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ZS(e){Ne(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:s,delay:o=200,timeout:l,suspensible:u=!0,onError:c}=e;let f=null,h,p=0;const v=()=>(p++,f=null,m()),m=()=>{let y;return f||(y=f=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),c)return new Promise((k,R)=>{c(x,()=>k(v()),()=>R(x),p+1)});throw x}).then(x=>y!==f&&f?f:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),h=x,x)))};return ze({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return h},setup(){const y=kt;if(h)return()=>uu(h,y);const x=S=>{f=null,es(S,y,13,!s)};if(u&&y.suspense||ji)return m().then(S=>()=>uu(S,y)).catch(S=>(x(S),()=>s?me(s,{error:S}):null));const k=Pe(!1),R=Pe(),O=Pe(!!o);return o&&setTimeout(()=>{O.value=!1},o),l!=null&&setTimeout(()=>{if(!k.value&&!R.value){const S=new Error(`Async component timed out after ${l}ms.`);x(S),R.value=S}},l),m().then(()=>{k.value=!0,y.parent&&Qs(y.parent.vnode)&&Ba(y.parent.update)}).catch(S=>{x(S),R.value=S}),()=>{if(k.value&&h)return uu(h,y);if(R.value&&s)return me(s,{error:R.value});if(r&&!O.value)return me(r)}}})}function uu(e,t){const{ref:r,props:s,children:o,ce:l}=t.vnode,u=me(e,s,o);return u.ref=r,u.ce=l,delete t.vnode.ce,u}const Qs=e=>e.type.__isKeepAlive,HA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Hr(),s=r.ctx;if(!s.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,l=new Set;let u=null;const c=r.suspense,{renderer:{p:f,m:h,um:p,o:{createElement:v}}}=s,m=v("div");s.activate=(S,M,E,I,H)=>{const U=S.component;h(S,M,E,0,c),f(U.vnode,S,M,E,U,c,I,S.slotScopeIds,H),$t(()=>{U.isDeactivated=!1,U.a&&Di(U.a);const N=S.props&&S.props.onVnodeMounted;N&&en(N,U.parent,S)},c)},s.deactivate=S=>{const M=S.component;h(S,m,null,1,c),$t(()=>{M.da&&Di(M.da);const E=S.props&&S.props.onVnodeUnmounted;E&&en(E,M.parent,S),M.isDeactivated=!0},c)};function y(S){cu(S),p(S,r,c,!0)}function x(S){o.forEach((M,E)=>{const I=Du(M.type);I&&(!S||!S(I))&&k(E)})}function k(S){const M=o.get(S);!u||!Mn(M,u)?y(M):u&&cu(u),o.delete(S),l.delete(S)}st(()=>[e.include,e.exclude],([S,M])=>{S&&x(E=>Cs(S,E)),M&&x(E=>!Cs(M,E))},{flush:"post",deep:!0});let R=null;const O=()=>{R!=null&&o.set(R,fu(r.subTree))};return Vt(O),lc(O),Va(()=>{o.forEach(S=>{const{subTree:M,suspense:E}=r,I=fu(M);if(S.type===I.type&&S.key===I.key){cu(I);const H=I.component.da;H&&$t(H,E);return}y(S)})}),()=>{if(R=null,!t.default)return null;const S=t.default(),M=S[0];if(S.length>1)return u=null,S;if(!Nr(M)||!(M.shapeFlag&4)&&!(M.shapeFlag&128))return u=null,M;let E=fu(M);const I=E.type,H=Du(si(E)?E.type.__asyncResolved||{}:I),{include:U,exclude:N,max:j}=e;if(U&&(!H||!Cs(U,H))||N&&H&&Cs(N,H))return u=E,M;const K=E.key==null?I:E.key,q=o.get(K);return E.el&&(E=lr(E),M.shapeFlag&128&&(M.ssContent=E)),R=K,q?(E.el=q.el,E.component=q.component,E.transition&&Vi(E,E.transition),E.shapeFlag|=512,l.delete(K),l.add(K)):(l.add(K),j&&l.size>parseInt(j,10)&&k(l.values().next().value)),E.shapeFlag|=256,u=E,pm(M.type)?M:E}}},GS=HA;function Cs(e,t){return Ee(e)?e.some(r=>Cs(r,t)):wt(e)?e.split(",").includes(t):I2(e)?e.test(t):!1}function UA(e,t){bm(e,"a",t)}function qA(e,t){bm(e,"da",t)}function bm(e,t,r=kt){const s=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Fa(t,s,r),r){let o=r.parent;for(;o&&o.parent;)Qs(o.parent.vnode)&&jA(s,t,r,o),o=o.parent}}function jA(e,t,r,s){const o=Fa(t,e,s,!0);uc(()=>{Ju(s[t],o)},r)}function cu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fu(e){return e.shapeFlag&128?e.ssContent:e}function Fa(e,t,r=kt,s=!1){if(r){const o=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...u)=>{if(r.isUnmounted)return;Ji(),Wr(r);const c=Cn(t,r,e,u);return Lr(),Xi(),c});return s?o.unshift(l):o.push(l),l}}const cr=e=>(t,r=kt)=>(!ji||e==="sp")&&Fa(e,(...s)=>t(...s),r),KA=cr("bm"),Vt=cr("m"),zA=cr("bu"),lc=cr("u"),Va=cr("bum"),uc=cr("um"),ZA=cr("sp"),GA=cr("rtg"),YA=cr("rtc");function JA(e,t=kt){Fa("ec",e,t)}const cc="components",XA="directives";function Hi(e,t){return fc(cc,e,!0,t)||e}const wm=Symbol.for("v-ndc");function QA(e){return wt(e)?fc(cc,e,!1)||e:e||wm}function YS(e){return fc(XA,e)}function fc(e,t,r=!0,s=!1){const o=Tt||kt;if(o){const l=o.type;if(e===cc){const c=Du(l,!1);if(c&&(c===t||c===pn(t)||c===Ra(pn(t))))return l}const u=wh(o[e]||l[e],t)||wh(o.appContext[e],t);return!u&&s?l:u}}function wh(e,t){return e&&(e[t]||e[pn(t)]||e[Ra(pn(t))])}function fr(e,t,r,s){let o;const l=r&&r[s];if(Ee(e)||wt(e)){o=new Array(e.length);for(let u=0,c=e.length;ut(u,c,void 0,l&&l[c]));else{const u=Object.keys(e);o=new Array(u.length);for(let c=0,f=u.length;c{const l=s.fn(...o);return l&&(l.key=s.key),l}:s.fn)}return e}function Ui(e,t,r={},s,o){if(Tt.isCE||Tt.parent&&si(Tt.parent)&&Tt.parent.isCE)return t!=="default"&&(r.name=t),me("slot",r,s&&s());let l=e[t];l&&l._c&&(l._d=!1),ne();const u=l&&Am(l(r)),c=je(et,{key:r.key||u&&u.key||`_${t}`},u||(s?s():[]),u&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),l&&l._c&&(l._d=!0),c}function Am(e){return e.some(t=>Nr(t)?!(t.type===Zt||t.type===et&&!Am(t.children)):!0)?e:null}function XS(e,t){const r={};for(const s in e)r[t&&/[A-Z]/.test(s)?`on:${s}`:aa(s)]=e[s];return r}const Su=e=>e?Bm(e)?qa(e)||e.proxy:Su(e.parent):null,Is=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Su(e.parent),$root:e=>Su(e.root),$emit:e=>e.emit,$options:e=>dc(e),$forceUpdate:e=>e.f||(e.f=()=>Ba(e.update)),$nextTick:e=>e.n||(e.n=ur.bind(e.proxy)),$watch:e=>WA.bind(e)}),du=(e,t)=>e!==ct&&!e.__isScriptSetup&&nt(e,t),Ou={get({_:e},t){const{ctx:r,setupState:s,data:o,props:l,accessCache:u,type:c,appContext:f}=e;let h;if(t[0]!=="$"){const y=u[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(du(s,t))return u[t]=1,s[t];if(o!==ct&&nt(o,t))return u[t]=2,o[t];if((h=e.propsOptions[0])&&nt(h,t))return u[t]=3,l[t];if(r!==ct&&nt(r,t))return u[t]=4,r[t];Ru&&(u[t]=0)}}const p=Is[t];let v,m;if(p)return t==="$attrs"&&rn(e,"get",t),p(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(r!==ct&&nt(r,t))return u[t]=4,r[t];if(m=f.config.globalProperties,nt(m,t))return m[t]},set({_:e},t,r){const{data:s,setupState:o,ctx:l}=e;return du(o,t)?(o[t]=r,!0):s!==ct&&nt(s,t)?(s[t]=r,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:s,appContext:o,propsOptions:l}},u){let c;return!!r[u]||e!==ct&&nt(e,u)||du(t,u)||(c=l[0])&&nt(c,u)||nt(s,u)||nt(Is,u)||nt(o.config.globalProperties,u)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:nt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},ex=bt({},Ou,{get(e,t){if(t!==Symbol.unscopables)return Ou.get(e,t,e)},has(e,t){return t[0]!=="_"&&!B2(t)}});function QS(){return null}function e6(){return null}function t6(e){}function n6(e){}function r6(){return null}function i6(){}function s6(e,t){return null}function o6(){return xm().slots}function a6(){return xm().attrs}function l6(e,t,r){const s=Hr();if(r&&r.local){const o=Pe(e[t]);return st(()=>e[t],l=>o.value=l),st(o,l=>{l!==e[t]&&s.emit(`update:${t}`,l)}),o}else return{__v_isRef:!0,get value(){return e[t]},set value(o){s.emit(`update:${t}`,o)}}}function xm(){const e=Hr();return e.setupContext||(e.setupContext=Fm(e))}function Zs(e){return Ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function u6(e,t){const r=Zs(e);for(const s in t){if(s.startsWith("__skip"))continue;let o=r[s];o?Ee(o)||Ne(o)?o=r[s]={type:o,default:t[s]}:o.default=t[s]:o===null&&(o=r[s]={default:t[s]}),o&&t[`__skip_${s}`]&&(o.skipFactory=!0)}return r}function c6(e,t){return!e||!t?e||t:Ee(e)&&Ee(t)?e.concat(t):bt({},Zs(e),Zs(t))}function f6(e,t){const r={};for(const s in e)t.includes(s)||Object.defineProperty(r,s,{enumerable:!0,get:()=>e[s]});return r}function d6(e){const t=Hr();let r=e();return Lr(),Xu(r)&&(r=r.catch(s=>{throw Wr(t),s})),[r,()=>Wr(t)]}let Ru=!0;function tx(e){const t=dc(e),r=e.proxy,s=e.ctx;Ru=!1,t.beforeCreate&&Ah(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:u,watch:c,provide:f,inject:h,created:p,beforeMount:v,mounted:m,beforeUpdate:y,updated:x,activated:k,deactivated:R,beforeDestroy:O,beforeUnmount:S,destroyed:M,unmounted:E,render:I,renderTracked:H,renderTriggered:U,errorCaptured:N,serverPrefetch:j,expose:K,inheritAttrs:q,components:G,directives:F,filters:A}=t;if(h&&nx(h,s,null),u)for(const P in u){const b=u[P];Ne(b)&&(s[P]=b.bind(r))}if(o){const P=o.call(r,r);ft(P)&&(e.data=Qi(P))}if(Ru=!0,l)for(const P in l){const b=l[P],Y=Ne(b)?b.bind(r,r):Ne(b.get)?b.get.bind(r,r):Ln,B=!Ne(b)&&Ne(b.set)?b.set.bind(r):Ln,_=Fe({get:Y,set:B});Object.defineProperty(s,P,{enumerable:!0,configurable:!0,get:()=>_.value,set:Q=>_.value=Q})}if(c)for(const P in c)Pm(c[P],s,r,P);if(f){const P=Ne(f)?f.call(r):f;Reflect.ownKeys(P).forEach(b=>{Rr(b,P[b])})}p&&Ah(p,e,"c");function V(P,b){Ee(b)?b.forEach(Y=>P(Y.bind(r))):b&&P(b.bind(r))}if(V(KA,v),V(Vt,m),V(zA,y),V(lc,x),V(UA,k),V(qA,R),V(JA,N),V(YA,H),V(GA,U),V(Va,S),V(uc,E),V(ZA,j),Ee(K))if(K.length){const P=e.exposed||(e.exposed={});K.forEach(b=>{Object.defineProperty(P,b,{get:()=>r[b],set:Y=>r[b]=Y})})}else e.exposed||(e.exposed={});I&&e.render===Ln&&(e.render=I),q!=null&&(e.inheritAttrs=q),G&&(e.components=G),F&&(e.directives=F)}function nx(e,t,r=Ln){Ee(e)&&(e=Tu(e));for(const s in e){const o=e[s];let l;ft(o)?"default"in o?l=nn(o.from||s,o.default,!0):l=nn(o.from||s):l=nn(o),_t(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[s]=l}}function Ah(e,t,r){Cn(Ee(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,r)}function Pm(e,t,r,s){const o=s.includes(".")?vm(r,s):()=>r[s];if(wt(e)){const l=t[e];Ne(l)&&st(o,l)}else if(Ne(e))st(o,e.bind(r));else if(ft(e))if(Ee(e))e.forEach(l=>Pm(l,t,r,s));else{const l=Ne(e.handler)?e.handler.bind(r):t[e.handler];Ne(l)&&st(o,l,e)}}function dc(e){const t=e.type,{mixins:r,extends:s}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,c=l.get(t);let f;return c?f=c:!o.length&&!r&&!s?f=t:(f={},o.length&&o.forEach(h=>ya(f,h,u,!0)),ya(f,t,u)),ft(t)&&l.set(t,f),f}function ya(e,t,r,s=!1){const{mixins:o,extends:l}=t;l&&ya(e,l,r,!0),o&&o.forEach(u=>ya(e,u,r,!0));for(const u in t)if(!(s&&u==="expose")){const c=rx[u]||r&&r[u];e[u]=c?c(e[u],t[u]):t[u]}return e}const rx={data:xh,props:Ph,emits:Ph,methods:ks,computed:ks,beforeCreate:Kt,created:Kt,beforeMount:Kt,mounted:Kt,beforeUpdate:Kt,updated:Kt,beforeDestroy:Kt,beforeUnmount:Kt,destroyed:Kt,unmounted:Kt,activated:Kt,deactivated:Kt,errorCaptured:Kt,serverPrefetch:Kt,components:ks,directives:ks,watch:sx,provide:xh,inject:ix};function xh(e,t){return t?e?function(){return bt(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function ix(e,t){return ks(Tu(e),Tu(t))}function Tu(e){if(Ee(e)){const t={};for(let r=0;r1)return r&&Ne(t)?t.call(s&&s.proxy):t}}function lx(){return!!(kt||Tt||Gs)}function ux(e,t,r,s=!1){const o={},l={};da(l,Ha,1),e.propsDefaults=Object.create(null),km(e,t,o,l);for(const u in e.propsOptions[0])u in o||(o[u]=void 0);r?e.props=s?o:rm(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function cx(e,t,r,s){const{props:o,attrs:l,vnode:{patchFlag:u}}=e,c=tt(o),[f]=e.propsOptions;let h=!1;if((s||u>0)&&!(u&16)){if(u&8){const p=e.vnode.dynamicProps;for(let v=0;v{f=!0;const[m,y]=Em(v,t,!0);bt(u,m),y&&c.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!l&&!f)return ft(e)&&s.set(e,Li),Li;if(Ee(l))for(let p=0;p-1,y[1]=k<0||x-1||nt(y,"default"))&&c.push(v)}}}const h=[u,c];return ft(e)&&s.set(e,h),h}function Ch(e){return e[0]!=="$"}function kh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Eh(e,t){return kh(e)===kh(t)}function Sh(e,t){return Ee(t)?t.findIndex(r=>Eh(r,e)):Ne(t)&&Eh(t,e)?0:-1}const Sm=e=>e[0]==="_"||e==="$stable",hc=e=>Ee(e)?e.map(hn):[hn(e)],fx=(e,t,r)=>{if(t._n)return t;const s=Ot((...o)=>hc(t(...o)),r);return s._c=!1,s},Om=(e,t,r)=>{const s=e._ctx;for(const o in e){if(Sm(o))continue;const l=e[o];if(Ne(l))t[o]=fx(o,l,s);else if(l!=null){const u=hc(l);t[o]=()=>u}}},Rm=(e,t)=>{const r=hc(t);e.slots.default=()=>r},dx=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=tt(t),da(t,"_",r)):Om(t,e.slots={})}else e.slots={},t&&Rm(e,t);da(e.slots,Ha,1)},hx=(e,t,r)=>{const{vnode:s,slots:o}=e;let l=!0,u=ct;if(s.shapeFlag&32){const c=t._;c?r&&c===1?l=!1:(bt(o,t),!r&&c===1&&delete o._):(l=!t.$stable,Om(t,o)),u=t}else t&&(Rm(e,t),u={default:1});if(l)for(const c in o)!Sm(c)&&u[c]==null&&delete o[c]};function _a(e,t,r,s,o=!1){if(Ee(e)){e.forEach((m,y)=>_a(m,t&&(Ee(t)?t[y]:t),r,s,o));return}if(si(s)&&!o)return;const l=s.shapeFlag&4?qa(s.component)||s.component.proxy:s.el,u=o?null:l,{i:c,r:f}=e,h=t&&t.r,p=c.refs===ct?c.refs={}:c.refs,v=c.setupState;if(h!=null&&h!==f&&(wt(h)?(p[h]=null,nt(v,h)&&(v[h]=null)):_t(h)&&(h.value=null)),Ne(f))Mr(f,c,12,[u,p]);else{const m=wt(f),y=_t(f);if(m||y){const x=()=>{if(e.f){const k=m?nt(v,f)?v[f]:p[f]:f.value;o?Ee(k)&&Ju(k,l):Ee(k)?k.includes(l)||k.push(l):m?(p[f]=[l],nt(v,f)&&(v[f]=p[f])):(f.value=[l],e.k&&(p[e.k]=f.value))}else m?(p[f]=u,nt(v,f)&&(v[f]=u)):y&&(f.value=u,e.k&&(p[e.k]=u))};u?(x.id=-1,$t(x,r)):x()}}}let Ar=!1;const ta=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",na=e=>e.nodeType===8;function px(e){const{mt:t,p:r,o:{patchProp:s,createText:o,nextSibling:l,parentNode:u,remove:c,insert:f,createComment:h}}=e,p=(O,S)=>{if(!S.hasChildNodes()){r(null,O,S),ga(),S._vnode=O;return}Ar=!1,v(S.firstChild,O,null,null,null),ga(),S._vnode=O,Ar&&console.error("Hydration completed but contains mismatches.")},v=(O,S,M,E,I,H=!1)=>{const U=na(O)&&O.data==="[",N=()=>k(O,S,M,E,I,U),{type:j,ref:K,shapeFlag:q,patchFlag:G}=S;let F=O.nodeType;S.el=O,G===-2&&(H=!1,S.dynamicChildren=null);let A=null;switch(j){case qi:F!==3?S.children===""?(f(S.el=o(""),u(O),O),A=O):A=N():(O.data!==S.children&&(Ar=!0,O.data=S.children),A=l(O));break;case Zt:F!==8||U?A=N():A=l(O);break;case Wi:if(U&&(O=l(O),F=O.nodeType),F===1||F===3){A=O;const L=!S.children.length;for(let V=0;V{H=H||!!S.dynamicChildren;const{type:U,props:N,patchFlag:j,shapeFlag:K,dirs:q}=S,G=U==="input"&&q||U==="option";if(G||j!==-1){if(q&&Vn(S,null,M,"created"),N)if(G||!H||j&48)for(const A in N)(G&&A.endsWith("value")||Js(A)&&!Ts(A))&&s(O,A,null,N[A],!1,void 0,M);else N.onClick&&s(O,"onClick",null,N.onClick,!1,void 0,M);let F;if((F=N&&N.onVnodeBeforeMount)&&en(F,M,S),q&&Vn(S,null,M,"beforeMount"),((F=N&&N.onVnodeMounted)||q)&&mm(()=>{F&&en(F,M,S),q&&Vn(S,null,M,"mounted")},E),K&16&&!(N&&(N.innerHTML||N.textContent))){let A=y(O.firstChild,S,O,M,E,I,H);for(;A;){Ar=!0;const L=A;A=A.nextSibling,c(L)}}else K&8&&O.textContent!==S.children&&(Ar=!0,O.textContent=S.children)}return O.nextSibling},y=(O,S,M,E,I,H,U)=>{U=U||!!S.dynamicChildren;const N=S.children,j=N.length;for(let K=0;K{const{slotScopeIds:U}=S;U&&(I=I?I.concat(U):U);const N=u(O),j=y(l(O),S,N,M,E,I,H);return j&&na(j)&&j.data==="]"?l(S.anchor=j):(Ar=!0,f(S.anchor=h("]"),N,j),j)},k=(O,S,M,E,I,H)=>{if(Ar=!0,S.el=null,H){const j=R(O);for(;;){const K=l(O);if(K&&K!==j)c(K);else break}}const U=l(O),N=u(O);return c(O),r(null,S,N,U,M,E,ta(N),I),U},R=O=>{let S=0;for(;O;)if(O=l(O),O&&na(O)&&(O.data==="["&&S++,O.data==="]")){if(S===0)return l(O);S--}return O};return[p,v]}const $t=mm;function mx(e){return Tm(e)}function vx(e){return Tm(e,px)}function Tm(e,t){const r=xu();r.__VUE__=!0;const{insert:s,remove:o,patchProp:l,createElement:u,createText:c,createComment:f,setText:h,setElementText:p,parentNode:v,nextSibling:m,setScopeId:y=Ln,insertStaticContent:x}=e,k=(T,D,z,re=null,ce=null,le=null,be=!1,ve=null,ye=!!D.dynamicChildren)=>{if(T===D)return;T&&!Mn(T,D)&&(re=X(T),Q(T,ce,le,!0),T=null),D.patchFlag===-2&&(ye=!1,D.dynamicChildren=null);const{type:fe,ref:Se,shapeFlag:ke}=D;switch(fe){case qi:R(T,D,z,re);break;case Zt:O(T,D,z,re);break;case Wi:T==null&&S(D,z,re,be);break;case et:G(T,D,z,re,ce,le,be,ve,ye);break;default:ke&1?I(T,D,z,re,ce,le,be,ve,ye):ke&6?F(T,D,z,re,ce,le,be,ve,ye):(ke&64||ke&128)&&fe.process(T,D,z,re,ce,le,be,ve,ye,de)}Se!=null&&ce&&_a(Se,T&&T.ref,le,D||T,!D)},R=(T,D,z,re)=>{if(T==null)s(D.el=c(D.children),z,re);else{const ce=D.el=T.el;D.children!==T.children&&h(ce,D.children)}},O=(T,D,z,re)=>{T==null?s(D.el=f(D.children||""),z,re):D.el=T.el},S=(T,D,z,re)=>{[T.el,T.anchor]=x(T.children,D,z,re,T.el,T.anchor)},M=({el:T,anchor:D},z,re)=>{let ce;for(;T&&T!==D;)ce=m(T),s(T,z,re),T=ce;s(D,z,re)},E=({el:T,anchor:D})=>{let z;for(;T&&T!==D;)z=m(T),o(T),T=z;o(D)},I=(T,D,z,re,ce,le,be,ve,ye)=>{be=be||D.type==="svg",T==null?H(D,z,re,ce,le,be,ve,ye):j(T,D,ce,le,be,ve,ye)},H=(T,D,z,re,ce,le,be,ve)=>{let ye,fe;const{type:Se,props:ke,shapeFlag:Ie,transition:Le,dirs:Ze}=T;if(ye=T.el=u(T.type,le,ke&&ke.is,ke),Ie&8?p(ye,T.children):Ie&16&&N(T.children,ye,null,re,ce,le&&Se!=="foreignObject",be,ve),Ze&&Vn(T,null,re,"created"),U(ye,T,T.scopeId,be,re),ke){for(const Xe in ke)Xe!=="value"&&!Ts(Xe)&&l(ye,Xe,null,ke[Xe],le,T.children,re,ce,Oe);"value"in ke&&l(ye,"value",null,ke.value),(fe=ke.onVnodeBeforeMount)&&en(fe,re,T)}Ze&&Vn(T,null,re,"beforeMount");const rt=(!ce||ce&&!ce.pendingBranch)&&Le&&!Le.persisted;rt&&Le.beforeEnter(ye),s(ye,D,z),((fe=ke&&ke.onVnodeMounted)||rt||Ze)&&$t(()=>{fe&&en(fe,re,T),rt&&Le.enter(ye),Ze&&Vn(T,null,re,"mounted")},ce)},U=(T,D,z,re,ce)=>{if(z&&y(T,z),re)for(let le=0;le{for(let fe=ye;fe{const ve=D.el=T.el;let{patchFlag:ye,dynamicChildren:fe,dirs:Se}=D;ye|=T.patchFlag&16;const ke=T.props||ct,Ie=D.props||ct;let Le;z&&Qr(z,!1),(Le=Ie.onVnodeBeforeUpdate)&&en(Le,z,D,T),Se&&Vn(D,T,z,"beforeUpdate"),z&&Qr(z,!0);const Ze=ce&&D.type!=="foreignObject";if(fe?K(T.dynamicChildren,fe,ve,z,re,Ze,le):be||b(T,D,ve,null,z,re,Ze,le,!1),ye>0){if(ye&16)q(ve,D,ke,Ie,z,re,ce);else if(ye&2&&ke.class!==Ie.class&&l(ve,"class",null,Ie.class,ce),ye&4&&l(ve,"style",ke.style,Ie.style,ce),ye&8){const rt=D.dynamicProps;for(let Xe=0;Xe{Le&&en(Le,z,D,T),Se&&Vn(D,T,z,"updated")},re)},K=(T,D,z,re,ce,le,be)=>{for(let ve=0;ve{if(z!==re){if(z!==ct)for(const ve in z)!Ts(ve)&&!(ve in re)&&l(T,ve,z[ve],null,be,D.children,ce,le,Oe);for(const ve in re){if(Ts(ve))continue;const ye=re[ve],fe=z[ve];ye!==fe&&ve!=="value"&&l(T,ve,fe,ye,be,D.children,ce,le,Oe)}"value"in re&&l(T,"value",z.value,re.value)}},G=(T,D,z,re,ce,le,be,ve,ye)=>{const fe=D.el=T?T.el:c(""),Se=D.anchor=T?T.anchor:c("");let{patchFlag:ke,dynamicChildren:Ie,slotScopeIds:Le}=D;Le&&(ve=ve?ve.concat(Le):Le),T==null?(s(fe,z,re),s(Se,z,re),N(D.children,z,Se,ce,le,be,ve,ye)):ke>0&&ke&64&&Ie&&T.dynamicChildren?(K(T.dynamicChildren,Ie,z,ce,le,be,ve),(D.key!=null||ce&&D===ce.subTree)&&pc(T,D,!0)):b(T,D,z,Se,ce,le,be,ve,ye)},F=(T,D,z,re,ce,le,be,ve,ye)=>{D.slotScopeIds=ve,T==null?D.shapeFlag&512?ce.ctx.activate(D,z,re,be,ye):A(D,z,re,ce,le,be,ye):L(T,D,ye)},A=(T,D,z,re,ce,le,be)=>{const ve=T.component=Dm(T,re,ce);if(Qs(T)&&(ve.ctx.renderer=de),Nm(ve),ve.asyncDep){if(ce&&ce.registerDep(ve,V),!T.el){const ye=ve.subTree=me(Zt);O(null,ye,D,z)}return}V(ve,T,D,z,ce,le,be)},L=(T,D,z)=>{const re=D.component=T.component;if(TA(T,D,z))if(re.asyncDep&&!re.asyncResolved){P(re,D,z);return}else re.next=D,PA(re.update),re.update();else D.el=T.el,re.vnode=D},V=(T,D,z,re,ce,le,be)=>{const ve=()=>{if(T.isMounted){let{next:Se,bu:ke,u:Ie,parent:Le,vnode:Ze}=T,rt=Se,Xe;Qr(T,!1),Se?(Se.el=Ze.el,P(T,Se,be)):Se=Ze,ke&&Di(ke),(Xe=Se.props&&Se.props.onVnodeBeforeUpdate)&&en(Xe,Le,Se,Ze),Qr(T,!0);const vt=la(T),Ht=T.subTree;T.subTree=vt,k(Ht,vt,v(Ht.el),X(Ht),T,ce,le),Se.el=vt.el,rt===null&&sc(T,vt.el),Ie&&$t(Ie,ce),(Xe=Se.props&&Se.props.onVnodeUpdated)&&$t(()=>en(Xe,Le,Se,Ze),ce)}else{let Se;const{el:ke,props:Ie}=D,{bm:Le,m:Ze,parent:rt}=T,Xe=si(D);if(Qr(T,!1),Le&&Di(Le),!Xe&&(Se=Ie&&Ie.onVnodeBeforeMount)&&en(Se,rt,D),Qr(T,!0),ke&&Re){const vt=()=>{T.subTree=la(T),Re(ke,T.subTree,T,ce,null)};Xe?D.type.__asyncLoader().then(()=>!T.isUnmounted&&vt()):vt()}else{const vt=T.subTree=la(T);k(null,vt,z,re,T,ce,le),D.el=vt.el}if(Ze&&$t(Ze,ce),!Xe&&(Se=Ie&&Ie.onVnodeMounted)){const vt=D;$t(()=>en(Se,rt,vt),ce)}(D.shapeFlag&256||rt&&si(rt.vnode)&&rt.vnode.shapeFlag&256)&&T.a&&$t(T.a,ce),T.isMounted=!0,D=z=re=null}},ye=T.effect=new Fs(ve,()=>Ba(fe),T.scope),fe=T.update=()=>ye.run();fe.id=T.uid,Qr(T,!0),fe()},P=(T,D,z)=>{D.component=T;const re=T.vnode.props;T.vnode=D,T.next=null,cx(T,D.props,re,z),hx(T,D.children,z),Ji(),gh(),Xi()},b=(T,D,z,re,ce,le,be,ve,ye=!1)=>{const fe=T&&T.children,Se=T?T.shapeFlag:0,ke=D.children,{patchFlag:Ie,shapeFlag:Le}=D;if(Ie>0){if(Ie&128){B(fe,ke,z,re,ce,le,be,ve,ye);return}else if(Ie&256){Y(fe,ke,z,re,ce,le,be,ve,ye);return}}Le&8?(Se&16&&Oe(fe,ce,le),ke!==fe&&p(z,ke)):Se&16?Le&16?B(fe,ke,z,re,ce,le,be,ve,ye):Oe(fe,ce,le,!0):(Se&8&&p(z,""),Le&16&&N(ke,z,re,ce,le,be,ve,ye))},Y=(T,D,z,re,ce,le,be,ve,ye)=>{T=T||Li,D=D||Li;const fe=T.length,Se=D.length,ke=Math.min(fe,Se);let Ie;for(Ie=0;IeSe?Oe(T,ce,le,!0,!1,ke):N(D,z,re,ce,le,be,ve,ye,ke)},B=(T,D,z,re,ce,le,be,ve,ye)=>{let fe=0;const Se=D.length;let ke=T.length-1,Ie=Se-1;for(;fe<=ke&&fe<=Ie;){const Le=T[fe],Ze=D[fe]=ye?Sr(D[fe]):hn(D[fe]);if(Mn(Le,Ze))k(Le,Ze,z,null,ce,le,be,ve,ye);else break;fe++}for(;fe<=ke&&fe<=Ie;){const Le=T[ke],Ze=D[Ie]=ye?Sr(D[Ie]):hn(D[Ie]);if(Mn(Le,Ze))k(Le,Ze,z,null,ce,le,be,ve,ye);else break;ke--,Ie--}if(fe>ke){if(fe<=Ie){const Le=Ie+1,Ze=LeIe)for(;fe<=ke;)Q(T[fe],ce,le,!0),fe++;else{const Le=fe,Ze=fe,rt=new Map;for(fe=Ze;fe<=Ie;fe++){const It=D[fe]=ye?Sr(D[fe]):hn(D[fe]);It.key!=null&&rt.set(It.key,fe)}let Xe,vt=0;const Ht=Ie-Ze+1;let Dn=!1,di=0;const jn=new Array(Ht);for(fe=0;fe=Ht){Q(It,ce,le,!0);continue}let Gt;if(It.key!=null)Gt=rt.get(It.key);else for(Xe=Ze;Xe<=Ie;Xe++)if(jn[Xe-Ze]===0&&Mn(It,D[Xe])){Gt=Xe;break}Gt===void 0?Q(It,ce,le,!0):(jn[Gt-Ze]=fe+1,Gt>=di?di=Gt:Dn=!0,k(It,D[Gt],z,null,ce,le,be,ve,ye),vt++)}const hi=Dn?gx(jn):Li;for(Xe=hi.length-1,fe=Ht-1;fe>=0;fe--){const It=Ze+fe,Gt=D[It],pi=It+1{const{el:le,type:be,transition:ve,children:ye,shapeFlag:fe}=T;if(fe&6){_(T.component.subTree,D,z,re);return}if(fe&128){T.suspense.move(D,z,re);return}if(fe&64){be.move(T,D,z,de);return}if(be===et){s(le,D,z);for(let ke=0;keve.enter(le),ce);else{const{leave:ke,delayLeave:Ie,afterLeave:Le}=ve,Ze=()=>s(le,D,z),rt=()=>{ke(le,()=>{Ze(),Le&&Le()})};Ie?Ie(le,Ze,rt):rt()}else s(le,D,z)},Q=(T,D,z,re=!1,ce=!1)=>{const{type:le,props:be,ref:ve,children:ye,dynamicChildren:fe,shapeFlag:Se,patchFlag:ke,dirs:Ie}=T;if(ve!=null&&_a(ve,null,z,T,!0),Se&256){D.ctx.deactivate(T);return}const Le=Se&1&&Ie,Ze=!si(T);let rt;if(Ze&&(rt=be&&be.onVnodeBeforeUnmount)&&en(rt,D,T),Se&6)_e(T.component,z,re);else{if(Se&128){T.suspense.unmount(z,re);return}Le&&Vn(T,null,D,"beforeUnmount"),Se&64?T.type.remove(T,D,z,ce,de,re):fe&&(le!==et||ke>0&&ke&64)?Oe(fe,D,z,!1,!0):(le===et&&ke&384||!ce&&Se&16)&&Oe(ye,D,z),re&&pe(T)}(Ze&&(rt=be&&be.onVnodeUnmounted)||Le)&&$t(()=>{rt&&en(rt,D,T),Le&&Vn(T,null,D,"unmounted")},z)},pe=T=>{const{type:D,el:z,anchor:re,transition:ce}=T;if(D===et){xe(z,re);return}if(D===Wi){E(T);return}const le=()=>{o(z),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(T.shapeFlag&1&&ce&&!ce.persisted){const{leave:be,delayLeave:ve}=ce,ye=()=>be(z,le);ve?ve(T.el,le,ye):ye()}else le()},xe=(T,D)=>{let z;for(;T!==D;)z=m(T),o(T),T=z;o(D)},_e=(T,D,z)=>{const{bum:re,scope:ce,update:le,subTree:be,um:ve}=T;re&&Di(re),ce.stop(),le&&(le.active=!1,Q(be,T,D,z)),ve&&$t(ve,D),$t(()=>{T.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Oe=(T,D,z,re=!1,ce=!1,le=0)=>{for(let be=le;beT.shapeFlag&6?X(T.component.subTree):T.shapeFlag&128?T.suspense.next():m(T.anchor||T.el),oe=(T,D,z)=>{T==null?D._vnode&&Q(D._vnode,null,null,!0):k(D._vnode||null,T,D,null,null,null,z),gh(),ga(),D._vnode=T},de={p:k,um:Q,m:_,r:pe,mt:A,mc:N,pc:b,pbc:K,n:X,o:e};let Ae,Re;return t&&([Ae,Re]=t(de)),{render:oe,hydrate:Ae,createApp:ax(oe,Ae)}}function Qr({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function pc(e,t,r=!1){const s=e.children,o=t.children;if(Ee(s)&&Ee(o))for(let l=0;l>1,e[r[c]]0&&(t[s]=r[l-1]),r[l]=s)}}for(l=r.length,u=r[l-1];l-- >0;)r[l]=u,u=t[u];return r}const yx=e=>e.__isTeleport,Ms=e=>e&&(e.disabled||e.disabled===""),Oh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mu=(e,t)=>{const r=e&&e.to;return wt(r)?t?t(r):null:r},_x={__isTeleport:!0,process(e,t,r,s,o,l,u,c,f,h){const{mc:p,pc:v,pbc:m,o:{insert:y,querySelector:x,createText:k,createComment:R}}=h,O=Ms(t.props);let{shapeFlag:S,children:M,dynamicChildren:E}=t;if(e==null){const I=t.el=k(""),H=t.anchor=k("");y(I,r,s),y(H,r,s);const U=t.target=Mu(t.props,x),N=t.targetAnchor=k("");U&&(y(N,U),u=u||Oh(U));const j=(K,q)=>{S&16&&p(M,K,q,o,l,u,c,f)};O?j(r,H):U&&j(U,N)}else{t.el=e.el;const I=t.anchor=e.anchor,H=t.target=e.target,U=t.targetAnchor=e.targetAnchor,N=Ms(e.props),j=N?r:H,K=N?I:U;if(u=u||Oh(H),E?(m(e.dynamicChildren,E,j,o,l,u,c),pc(e,t,!0)):f||v(e,t,j,K,o,l,u,c,!1),O)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ra(t,r,I,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=Mu(t.props,x);q&&ra(t,q,null,h,0)}else N&&ra(t,H,U,h,1)}Im(t)},remove(e,t,r,s,{um:o,o:{remove:l}},u){const{shapeFlag:c,children:f,anchor:h,targetAnchor:p,target:v,props:m}=e;if(v&&l(p),u&&l(h),c&16){const y=u||!Ms(m);for(let x=0;x0?tn||Li:null,Mm(),ai>0&&tn&&tn.push(e),e}function ge(e,t,r,s,o,l){return Lm(te(e,t,r,s,o,l,!0))}function je(e,t,r,s,o){return Lm(me(e,t,r,s,o,!0))}function Nr(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return e.type===t.type&&e.key===t.key}function h6(e){}const Ha="__vInternal",$m=({key:e})=>e??null,ua=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||_t(e)||Ne(e)?{i:Tt,r:e,k:t,f:!!r}:e:null);function te(e,t=null,r=null,s=0,o=null,l=e===et?0:1,u=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$m(t),ref:t&&ua(t),scopeId:Wa,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Tt};return c?(mc(f,r),l&128&&e.normalize(f)):r&&(f.shapeFlag|=wt(r)?8:16),ai>0&&!u&&tn&&(f.patchFlag>0||l&6)&&f.patchFlag!==32&&tn.push(f),f}const me=wx;function wx(e,t=null,r=null,s=0,o=null,l=!1){if((!e||e===wm)&&(e=Zt),Nr(e)){const c=lr(e,t,!0);return r&&mc(c,r),ai>0&&!l&&tn&&(c.shapeFlag&6?tn[tn.indexOf(e)]=c:tn.push(c)),c.patchFlag|=-2,c}if(Sx(e)&&(e=e.__vccOpts),t){t=Ax(t);let{class:c,style:f}=t;c&&!wt(c)&&(t.class=Je(c)),ft(f)&&(sm(f)&&!Ee(f)&&(f=bt({},f)),t.style=Vr(f))}const u=wt(e)?1:pm(e)?128:yx(e)?64:ft(e)?4:Ne(e)?2:0;return te(e,t,r,s,o,u,l,!0)}function Ax(e){return e?sm(e)||Ha in e?bt({},e):e:null}function lr(e,t,r=!1){const{props:s,ref:o,patchFlag:l,children:u}=e,c=t?xx(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$m(c),ref:t&&t.ref?r&&o?Ee(o)?o.concat(ua(t)):[o,ua(t)]:ua(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==et?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lr(e.ssContent),ssFallback:e.ssFallback&&lr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ua(e=" ",t=0){return me(qi,null,e,t)}function p6(e,t){const r=me(Wi,null,e);return r.staticCount=t,r}function We(e="",t=!1){return t?(ne(),je(Zt,null,e)):me(Zt,null,e)}function hn(e){return e==null||typeof e=="boolean"?me(Zt):Ee(e)?me(et,null,e.slice()):typeof e=="object"?Sr(e):me(qi,null,String(e))}function Sr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lr(e)}function mc(e,t){let r=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ee(t))r=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),mc(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(Ha in t)?t._ctx=Tt:o===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:Tt},r=32):(t=String(t),s&64?(r=16,t=[Ua(t)]):r=8);e.children=t,e.shapeFlag|=r}function xx(...e){const t={};for(let r=0;rkt||Tt;let vc,Ri,Th="__VUE_INSTANCE_SETTERS__";(Ri=xu()[Th])||(Ri=xu()[Th]=[]),Ri.push(e=>kt=e),vc=e=>{Ri.length>1?Ri.forEach(t=>t(e)):Ri[0](e)};const Wr=e=>{vc(e),e.scope.on()},Lr=()=>{kt&&kt.scope.off(),vc(null)};function Bm(e){return e.vnode.shapeFlag&4}let ji=!1;function Nm(e,t=!1){ji=t;const{props:r,children:s}=e.vnode,o=Bm(e);ux(e,r,o,t),dx(e,s);const l=o?kx(e,t):void 0;return ji=!1,l}function kx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=$a(new Proxy(e.ctx,Ou));const{setup:s}=r;if(s){const o=e.setupContext=s.length>1?Fm(e):null;Wr(e),Ji();const l=Mr(s,e,0,[e.props,o]);if(Xi(),Lr(),Xu(l)){if(l.then(Lr,Lr),t)return l.then(u=>{Lu(e,u,t)}).catch(u=>{es(u,e,0)});e.asyncDep=l}else Lu(e,l,t)}else Wm(e,t)}function Lu(e,t,r){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=am(t)),Wm(e,r)}let ba,$u;function m6(e){ba=e,$u=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ex))}}const v6=()=>!ba;function Wm(e,t,r){const s=e.type;if(!e.render){if(!t&&ba&&!s.render){const o=s.template||dc(e).template;if(o){const{isCustomElement:l,compilerOptions:u}=e.appContext.config,{delimiters:c,compilerOptions:f}=s,h=bt(bt({isCustomElement:l,delimiters:c},u),f);s.render=ba(o,h)}}e.render=s.render||Ln,$u&&$u(e)}{Wr(e),Ji();try{tx(e)}finally{Xi(),Lr()}}}function Ex(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return rn(e,"get","$attrs"),t[r]}}))}function Fm(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Ex(e)},slots:e.slots,emit:e.emit,expose:t}}function qa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(am($a(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Is)return Is[r](e)},has(t,r){return r in t||r in Is}}))}function Du(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Sx(e){return Ne(e)&&"__vccOpts"in e}const Fe=(e,t)=>wA(e,t,ji);function gc(e,t,r){const s=arguments.length;return s===2?ft(t)&&!Ee(t)?Nr(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Nr(r)&&(r=[r]),me(e,t,r))}const Ox=Symbol.for("v-scx"),Rx=()=>nn(Ox);function g6(){}function y6(e,t,r,s){const o=r[s];if(o&&Tx(o,e))return o;const l=t();return l.memo=e.slice(),r[s]=l}function Tx(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let s=0;s0&&tn&&tn.push(e),!0}const Ix="3.3.6",Mx={createComponentInstance:Dm,setupComponent:Nm,renderComponentRoot:la,setCurrentRenderingInstance:qs,isVNode:Nr,normalizeVNode:hn},_6=Mx,b6=null,w6=null,Lx="http://www.w3.org/2000/svg",ni=typeof document<"u"?document:null,Ih=ni&&ni.createElement("template"),$x={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,s)=>{const o=t?ni.createElementNS(Lx,e):ni.createElement(e,r?{is:r}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ni.createTextNode(e),createComment:e=>ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ni.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,s,o,l){const u=r?r.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===l||!(o=o.nextSibling)););else{Ih.innerHTML=s?`${e}`:e;const c=Ih.content;if(s){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,r)}return[u?u.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},xr="transition",gs="animation",Ki=Symbol("_vtc"),Vm=(e,{slots:t})=>gc(VA,Um(e),t);Vm.displayName="Transition";const Hm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dx=Vm.props=bt({},ym,Hm),ei=(e,t=[])=>{Ee(e)?e.forEach(r=>r(...t)):e&&e(...t)},Mh=e=>e?Ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Um(e){const t={};for(const G in e)G in Hm||(t[G]=e[G]);if(e.css===!1)return t;const{name:r="v",type:s,duration:o,enterFromClass:l=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:f=l,appearActiveClass:h=u,appearToClass:p=c,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=e,x=Bx(o),k=x&&x[0],R=x&&x[1],{onBeforeEnter:O,onEnter:S,onEnterCancelled:M,onLeave:E,onLeaveCancelled:I,onBeforeAppear:H=O,onAppear:U=S,onAppearCancelled:N=M}=t,j=(G,F,A)=>{Cr(G,F?p:c),Cr(G,F?h:u),A&&A()},K=(G,F)=>{G._isLeaving=!1,Cr(G,v),Cr(G,y),Cr(G,m),F&&F()},q=G=>(F,A)=>{const L=G?U:S,V=()=>j(F,G,A);ei(L,[F,V]),Lh(()=>{Cr(F,G?f:l),nr(F,G?p:c),Mh(L)||$h(F,s,k,V)})};return bt(t,{onBeforeEnter(G){ei(O,[G]),nr(G,l),nr(G,u)},onBeforeAppear(G){ei(H,[G]),nr(G,f),nr(G,h)},onEnter:q(!1),onAppear:q(!0),onLeave(G,F){G._isLeaving=!0;const A=()=>K(G,F);nr(G,v),jm(),nr(G,m),Lh(()=>{G._isLeaving&&(Cr(G,v),nr(G,y),Mh(E)||$h(G,s,R,A))}),ei(E,[G,A])},onEnterCancelled(G){j(G,!1),ei(M,[G])},onAppearCancelled(G){j(G,!0),ei(N,[G])},onLeaveCancelled(G){K(G),ei(I,[G])}})}function Bx(e){if(e==null)return null;if(ft(e))return[hu(e.enter),hu(e.leave)];{const t=hu(e);return[t,t]}}function hu(e){return pa(e)}function nr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ki]||(e[Ki]=new Set)).add(t)}function Cr(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const r=e[Ki];r&&(r.delete(t),r.size||(e[Ki]=void 0))}function Lh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nx=0;function $h(e,t,r,s){const o=e._endId=++Nx,l=()=>{o===e._endId&&s()};if(r)return setTimeout(l,r);const{type:u,timeout:c,propCount:f}=qm(e,t);if(!u)return s();const h=u+"end";let p=0;const v=()=>{e.removeEventListener(h,m),l()},m=y=>{y.target===e&&++p>=f&&v()};setTimeout(()=>{p(r[x]||"").split(", "),o=s(`${xr}Delay`),l=s(`${xr}Duration`),u=Dh(o,l),c=s(`${gs}Delay`),f=s(`${gs}Duration`),h=Dh(c,f);let p=null,v=0,m=0;t===xr?u>0&&(p=xr,v=u,m=l.length):t===gs?h>0&&(p=gs,v=h,m=f.length):(v=Math.max(u,h),p=v>0?u>h?xr:gs:null,m=p?p===xr?l.length:f.length:0);const y=p===xr&&/\b(transform|all)(,|$)/.test(s(`${xr}Property`).toString());return{type:p,timeout:v,propCount:m,hasTransform:y}}function Dh(e,t){for(;e.lengthBh(r)+Bh(e[s])))}function Bh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jm(){return document.body.offsetHeight}function Wx(e,t,r){const s=e[Ki];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const yc=Symbol("_vod"),wa={beforeMount(e,{value:t},{transition:r}){e[yc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ys(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:s}){!t!=!r&&(s?t?(s.beforeEnter(e),ys(e,!0),s.enter(e)):s.leave(e,()=>{ys(e,!1)}):ys(e,t))},beforeUnmount(e,{value:t}){ys(e,t)}};function ys(e,t){e.style.display=t?e[yc]:"none"}function Fx(){wa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function Vx(e,t,r){const s=e.style,o=wt(r);if(r&&!o){if(t&&!wt(t))for(const l in t)r[l]==null&&Bu(s,l,"");for(const l in r)Bu(s,l,r[l])}else{const l=s.display;o?t!==r&&(s.cssText=r):t&&e.removeAttribute("style"),yc in e&&(s.display=l)}}const Nh=/\s*!important$/;function Bu(e,t,r){if(Ee(r))r.forEach(s=>Bu(e,t,s));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const s=Hx(e,t);Nh.test(r)?e.setProperty(Pn(s),r.replace(Nh,""),"important"):e[s]=r}}const Wh=["Webkit","Moz","ms"],pu={};function Hx(e,t){const r=pu[t];if(r)return r;let s=pn(t);if(s!=="filter"&&s in e)return pu[t]=s;s=Ra(s);for(let o=0;omu||(Zx.then(()=>mu=0),mu=Date.now());function Yx(e,t){const r=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=r.attached)return;Cn(Jx(s,r.value),t,5,[s])};return r.value=e,r.attached=Gx(),r}function Jx(e,t){if(Ee(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Uh=/^on[a-z]/,Xx=(e,t,r,s,o=!1,l,u,c,f)=>{t==="class"?Wx(e,s,o):t==="style"?Vx(e,r,s):Js(t)?Yu(t)||Kx(e,t,r,s,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qx(e,t,s,o))?qx(e,t,s,l,u,c,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ux(e,t,s,o))};function Qx(e,t,r,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Uh.test(t)&&Ne(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Uh.test(t)&&wt(r)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function e5(e,t){const r=ze(e);class s extends _c{constructor(l){super(r,l,t)}}return s.def=r,s}/*! #__NO_SIDE_EFFECTS__ */const A6=e=>e5(e,h5),t5=typeof HTMLElement<"u"?HTMLElement:class{};class _c extends t5{constructor(t,r={},s){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),ur(()=>{this._connected||(Gh(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s{for(const o of s)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,o=!1)=>{const{props:l,styles:u}=s;let c;if(l&&!Ee(l))for(const f in l){const h=l[f];(h===Number||h&&h.type===Number)&&(f in this._props&&(this._props[f]=pa(this._props[f])),(c||(c=Object.create(null)))[pn(f)]=!0)}this._numberProps=c,o&&this._resolveProps(s),this._applyStyles(u),this._update()},r=this._def.__asyncLoader;r?r().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,s=Ee(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&s.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of s.map(pn))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(l){this._setProp(o,l)}})}_setAttr(t){let r=this.getAttribute(t);const s=pn(t);this._numberProps&&this._numberProps[s]&&(r=pa(r)),this._setProp(s,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,s=!0,o=!0){r!==this._props[t]&&(this._props[t]=r,o&&this._instance&&this._update(),s&&(r===!0?this.setAttribute(Pn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Pn(t),r+""):r||this.removeAttribute(Pn(t))))}_update(){Gh(this._createVNode(),this.shadowRoot)}_createVNode(){const t=me(this._def,bt({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0;const s=(l,u)=>{this.dispatchEvent(new CustomEvent(l,{detail:u}))};r.emit=(l,...u)=>{s(l,u),Pn(l)!==l&&s(Pn(l),u)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof _c){r.parent=o._instance,r.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const s=document.createElement("style");s.textContent=r,this.shadowRoot.appendChild(s)})}}function x6(e="$style"){{const t=Hr();if(!t)return ct;const r=t.type.__cssModules;if(!r)return ct;const s=r[e];return s||ct}}function P6(e){const t=Hr();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>Wu(l,o))},s=()=>{const o=e(t.proxy);Nu(t.subTree,o),r(o)};NA(s),Vt(()=>{const o=new MutationObserver(s);o.observe(t.subTree.el.parentNode,{childList:!0}),uc(()=>o.disconnect())})}function Nu(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Nu(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Wu(e.el,t);else if(e.type===et)e.children.forEach(r=>Nu(r,t));else if(e.type===Wi){let{el:r,anchor:s}=e;for(;r&&(Wu(r,t),r!==s);)r=r.nextSibling}}function Wu(e,t){if(e.nodeType===1){const r=e.style;for(const s in t)r.setProperty(`--${s}`,t[s])}}const Km=new WeakMap,zm=new WeakMap,Aa=Symbol("_moveCb"),qh=Symbol("_enterCb"),Zm={name:"TransitionGroup",props:bt({},Dx,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Hr(),s=gm();let o,l;return lc(()=>{if(!o.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!o5(o[0].el,r.vnode.el,u))return;o.forEach(r5),o.forEach(i5);const c=o.filter(s5);jm(),c.forEach(f=>{const h=f.el,p=h.style;nr(h,u),p.transform=p.webkitTransform=p.transitionDuration="";const v=h[Aa]=m=>{m&&m.target!==h||(!m||/transform$/.test(m.propertyName))&&(h.removeEventListener("transitionend",v),h[Aa]=null,Cr(h,u))};h.addEventListener("transitionend",v)})}),()=>{const u=tt(e),c=Um(u);let f=u.tag||et;o=l,l=t.default?ac(t.default()):[];for(let h=0;hdelete e.mode;Zm.props;const C6=Zm;function r5(e){const t=e.el;t[Aa]&&t[Aa](),t[qh]&&t[qh]()}function i5(e){zm.set(e,e.el.getBoundingClientRect())}function s5(e){const t=Km.get(e),r=zm.get(e),s=t.left-r.left,o=t.top-r.top;if(s||o){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${s}px,${o}px)`,l.transitionDuration="0s",e}}function o5(e,t,r){const s=e.cloneNode(),o=e[Ki];o&&o.forEach(c=>{c.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),r.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(s);const{hasTransform:u}=qm(s);return l.removeChild(s),u}const Fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ee(t)?r=>Di(t,r):t};function a5(e){e.target.composing=!0}function jh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kn=Symbol("_assign"),Fu={created(e,{modifiers:{lazy:t,trim:r,number:s}},o){e[kn]=Fr(o);const l=s||o.props&&o.props.type==="number";sr(e,t?"change":"input",u=>{if(u.target.composing)return;let c=e.value;r&&(c=c.trim()),l&&(c=ha(c)),e[kn](c)}),r&&sr(e,"change",()=>{e.value=e.value.trim()}),t||(sr(e,"compositionstart",a5),sr(e,"compositionend",jh),sr(e,"change",jh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:s,number:o}},l){if(e[kn]=Fr(l),e.composing||document.activeElement===e&&e.type!=="range"&&(r||s&&e.value.trim()===t||(o||e.type==="number")&&ha(e.value)===t))return;const u=t??"";e.value!==u&&(e.value=u)}},Gm={deep:!0,created(e,t,r){e[kn]=Fr(r),sr(e,"change",()=>{const s=e._modelValue,o=zi(e),l=e.checked,u=e[kn];if(Ee(s)){const c=Ta(s,o),f=c!==-1;if(l&&!f)u(s.concat(o));else if(!l&&f){const h=[...s];h.splice(c,1),u(h)}}else if(ui(s)){const c=new Set(s);l?c.add(o):c.delete(o),u(c)}else u(Jm(e,l))})},mounted:Kh,beforeUpdate(e,t,r){e[kn]=Fr(r),Kh(e,t,r)}};function Kh(e,{value:t,oldValue:r},s){e._modelValue=t,Ee(t)?e.checked=Ta(t,s.props.value)>-1:ui(t)?e.checked=t.has(s.props.value):t!==r&&(e.checked=Dr(t,Jm(e,!0)))}const Ym={created(e,{value:t},r){e.checked=Dr(t,r.props.value),e[kn]=Fr(r),sr(e,"change",()=>{e[kn](zi(e))})},beforeUpdate(e,{value:t,oldValue:r},s){e[kn]=Fr(s),t!==r&&(e.checked=Dr(t,s.props.value))}},l5={deep:!0,created(e,{value:t,modifiers:{number:r}},s){const o=ui(t);sr(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>r?ha(zi(u)):zi(u));e[kn](e.multiple?o?new Set(l):l:l[0])}),e[kn]=Fr(s)},mounted(e,{value:t}){zh(e,t)},beforeUpdate(e,t,r){e[kn]=Fr(r)},updated(e,{value:t}){zh(e,t)}};function zh(e,t){const r=e.multiple;if(!(r&&!Ee(t)&&!ui(t))){for(let s=0,o=e.options.length;s-1:l.selected=t.has(u);else if(Dr(zi(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zi(e){return"_value"in e?e._value:e.value}function Jm(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const bc={created(e,t,r){ia(e,t,r,null,"created")},mounted(e,t,r){ia(e,t,r,null,"mounted")},beforeUpdate(e,t,r,s){ia(e,t,r,s,"beforeUpdate")},updated(e,t,r,s){ia(e,t,r,s,"updated")}};function Xm(e,t){switch(e){case"SELECT":return l5;case"TEXTAREA":return Fu;default:switch(t){case"checkbox":return Gm;case"radio":return Ym;default:return Fu}}}function ia(e,t,r,s,o){const u=Xm(e.tagName,r.props&&r.props.type)[o];u&&u(e,t,r,s)}function u5(){Fu.getSSRProps=({value:e})=>({value:e}),Ym.getSSRProps=({value:e},t)=>{if(t.props&&Dr(t.props.value,e))return{checked:!0}},Gm.getSSRProps=({value:e},t)=>{if(Ee(e)){if(t.props&&Ta(e,t.props.value)>-1)return{checked:!0}}else if(ui(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},bc.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Xm(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const c5=["ctrl","shift","alt","meta"],f5={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>c5.some(r=>e[`${r}Key`]&&!t.includes(r))},Dt=(e,t)=>(r,...s)=>{for(let o=0;or=>{if(!("key"in r))return;const s=Pn(r.key);if(t.some(o=>o===s||d5[o]===s))return e(r)},Qm=bt({patchProp:Xx},$x);let $s,Zh=!1;function ev(){return $s||($s=mx(Qm))}function tv(){return $s=Zh?$s:vx(Qm),Zh=!0,$s}const Gh=(...e)=>{ev().render(...e)},h5=(...e)=>{tv().hydrate(...e)},p5=(...e)=>{const t=ev().createApp(...e),{mount:r}=t;return t.mount=s=>{const o=nv(s);if(!o)return;const l=t._component;!Ne(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.innerHTML="";const u=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t},E6=(...e)=>{const t=tv().createApp(...e),{mount:r}=t;return t.mount=s=>{const o=nv(s);if(o)return r(o,!0,o instanceof SVGElement)},t};function nv(e){return wt(e)?document.querySelector(e):e}let Yh=!1;const S6=()=>{Yh||(Yh=!0,u5(),Fx())};const at=(e,t)=>{const r=e.__vccOpts||e;for(const[s,o]of t)r[s]=o;return r},m5={name:"Marquee",mounted(){this.update(),window.addEventListener("resize",this.update)},data(){return{isMarquee:!1}},methods:{isTruncated(e){return e?e.scrollWidth>e.clientWidth:!1},update(){this.isMarquee=!1,setTimeout(()=>{this.isMarquee=this.isTruncated(this.$refs.marquee)},10)}},props:{text:String},watch:{text(){this.update()}}},v5={key:0,class:"replacer"},g5={key:0,class:"overlay"};function y5(e,t,r,s,o,l){return ne(),ge("div",{class:Je([{marquee:o.isMarquee},"marqueeWrapper"])},[te("span",{ref:"marquee",class:Je({marquee:o.isMarquee})},[Ua(Be(r.text)+" ",1),o.isMarquee?(ne(),ge("span",v5,Be(r.text),1)):We("",!0)],2),o.isMarquee?(ne(),ge("div",g5)):We("",!0)],2)}const ir=at(m5,[["render",y5],["__scopeId","data-v-625a8655"]]);var _5=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let rv;const ja=e=>rv=e,iv=Symbol();function Vu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ds;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ds||(Ds={}));function b5(){const e=Hp(!0),t=e.run(()=>Pe({}));let r=[],s=[];const o=$a({install(l){ja(o),o._a=l,l.provide(iv,o),l.config.globalProperties.$pinia=o,s.forEach(u=>r.push(u)),s=[]},use(l){return!this._a&&!_5?s.push(l):r.push(l),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const sv=()=>{};function Jh(e,t,r,s=sv){e.push(t);const o=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),s())};return!r&&qp()&&j2(o),o}function Ti(e,...t){e.slice().forEach(r=>{r(...t)})}const w5=e=>e();function Hu(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,s)=>e.set(s,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const s=t[r],o=e[r];Vu(o)&&Vu(s)&&e.hasOwnProperty(r)&&!_t(s)&&!Ir(s)?e[r]=Hu(o,s):e[r]=s}return e}const A5=Symbol();function x5(e){return!Vu(e)||!e.hasOwnProperty(A5)}const{assign:kr}=Object;function P5(e){return!!(_t(e)&&e.effect)}function C5(e,t,r,s){const{state:o,actions:l,getters:u}=t,c=r.state.value[e];let f;function h(){c||(r.state.value[e]=o?o():{});const p=gA(r.state.value[e]);return kr(p,l,Object.keys(u||{}).reduce((v,m)=>(v[m]=$a(Ve(()=>{ja(r);const b=r._s.get(e);return u[m].call(b,b)})),v),{}))}return f=ov(e,h,t,r,s,!0),f}function ov(e,t,r={},s,o,l){let u;const c=kr({actions:{}},r),f={deep:!0};let h,p,v=[],m=[],b;const y=s.state.value[e];!l&&!y&&(s.state.value[e]={}),Pe({});let E;function R(N){let j;h=p=!1,typeof N=="function"?(N(s.state.value[e]),j={type:Ds.patchFunction,storeId:e,events:b}):(Hu(s.state.value[e],N),j={type:Ds.patchObject,payload:N,storeId:e,events:b});const K=E=Symbol();ur().then(()=>{E===K&&(h=!0)}),p=!0,Ti(v,j,s.state.value[e])}const S=l?function(){const{state:j}=r,K=j?j():{};this.$patch(q=>{kr(q,K)})}:sv;function O(){u.stop(),v=[],m=[],s._s.delete(e)}function M(N,j){return function(){ja(s);const K=Array.from(arguments),q=[],G=[];function F(V){q.push(V)}function x(V){G.push(V)}Ti(m,{args:K,name:N,store:I,after:F,onError:x});let L;try{L=j.apply(this&&this.$id===e?this:I,K)}catch(V){throw Ti(G,V),V}return L instanceof Promise?L.then(V=>(Ti(q,V),V)).catch(V=>(Ti(G,V),Promise.reject(V))):(Ti(q,L),L)}}const k={_p:s,$id:e,$onAction:Jh.bind(null,m),$patch:R,$reset:S,$subscribe(N,j={}){const K=Jh(v,N,j.detached,()=>q()),q=u.run(()=>st(()=>s.state.value[e],G=>{(j.flush==="sync"?p:h)&&N({storeId:e,type:Ds.direct,events:b},G)},kr({},f,j)));return K},$dispose:O},I=Qi(k);s._s.set(e,I);const U=(s._a&&s._a.runWithContext||w5)(()=>s._e.run(()=>(u=Hp()).run(t)));for(const N in U){const j=U[N];if(_t(j)&&!P5(j)||Ir(j))l||(y&&x5(j)&&(_t(j)?j.value=y[N]:Hu(j,y[N])),s.state.value[e][N]=j);else if(typeof j=="function"){const K=M(N,j);U[N]=K,c.actions[N]=j}}return kr(I,U),kr(tt(I),U),Object.defineProperty(I,"$state",{get:()=>s.state.value[e],set:N=>{R(j=>{kr(j,N)})}}),s._p.forEach(N=>{kr(I,u.run(()=>N({store:I,app:s._a,pinia:s,options:c})))}),y&&l&&r.hydrate&&r.hydrate(I.$state,y),h=!0,p=!0,I}function to(e,t,r){let s,o;const l=typeof t=="function";typeof e=="string"?(s=e,o=l?r:t):(o=e,s=e.id);function u(c,f){const h=lx();return c=c||(h?nn(iv,null):null),c&&ja(c),c=rv,c._s.has(s)||(l?ov(s,t,o,c):C5(s,o,c)),c._s.get(s)}return u.$id=s,u}const k5=e=>[...new Set(e)],E5=(e,t)=>e.filter(r=>!t.includes(r)),S5=(e,t)=>e.filter(r=>t.includes(r)),O5=e=>typeof e=="bigint"||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e,R5=e=>typeof e=="bigint"||e>=0&&Number.isSafeInteger(e);function _s(e,t){if(t.length===0)return e;let r;const s=[...e];for(let o=s.length-1,l=0,u=0;o>0;o--,l++){l%=t.length,u+=r=t[l].codePointAt(0);const c=(r+l+u)%o,f=s[o],h=s[c];s[c]=f,s[o]=h}return s}const T5=(e,t)=>{const r=[];let s=e;if(typeof s=="bigint"){const o=BigInt(t.length);do r.unshift(t[Number(s%o)]),s/=o;while(s>BigInt(0))}else do r.unshift(t[s%t.length]),s=Math.floor(s/t.length);while(s>0);return r},I5=(e,t)=>e.reduce((r,s)=>{const o=t.indexOf(s);if(o===-1)throw new Error(`The provided ID (${e.join("")}) is invalid, as it contains characters that do not exist in the alphabet (${t.join("")})`);if(typeof r=="bigint")return r*BigInt(t.length)+BigInt(o);const l=r*t.length+o;if(Number.isSafeInteger(l))return l;if(typeof BigInt=="function")return BigInt(r)*BigInt(t.length)+BigInt(o);throw new Error("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment")},0),M5=/^\+?\d+$/,L5=e=>M5.test(e)?Number.parseInt(e,10):Number.NaN,$5=(e,t,r)=>Array.from({length:Math.ceil(e.length/t)},(s,o)=>r(e.slice(o*t,(o+1)*t))),Xh=e=>new RegExp(e.map(t=>av(t)).sort((t,r)=>r.length-t.length).join("|")),D5=e=>new RegExp(`^[${e.map(t=>av(t)).sort((t,r)=>r.length-t.length).join("")}]+$`),av=e=>e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&"),Qh=16,ep=3.5,B5=12,tp=16,N5=12,np=100;class lv{constructor(t="",r=0,s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",o="cfhistuCFHISTU"){if(this.minLength=r,typeof r!="number")throw new TypeError(`Hashids: Provided 'minLength' has to be a number (is ${typeof r})`);if(typeof t!="string")throw new TypeError(`Hashids: Provided 'salt' has to be a string (is ${typeof t})`);if(typeof s!="string")throw new TypeError(`Hashids: Provided alphabet has to be a string (is ${typeof s})`);const l=Array.from(t),u=Array.from(s),c=Array.from(o);this.salt=l;const f=k5(u);if(f.lengthep)&&(p=Math.ceil(this.alphabet.length/ep),p>this.seps.length&&(v=p-this.seps.length,this.seps.push(...this.alphabet.slice(0,v)),this.alphabet=this.alphabet.slice(v))),this.alphabet=_s(this.alphabet,l);const m=Math.ceil(this.alphabet.length/B5);this.alphabet.length<3?(this.guards=this.seps.slice(0,m),this.seps=this.seps.slice(m)):(this.guards=this.alphabet.slice(0,m),this.alphabet=this.alphabet.slice(m)),this.guardsRegExp=Xh(this.guards),this.sepsRegExp=Xh(this.seps),this.allowedCharsRegExp=D5([...this.alphabet,...this.guards,...this.seps])}encode(t,...r){const s="";let o=Array.isArray(t)?t:[...t!=null?[t]:[],...r];return o.length===0||(o.every(O5)||(o=o.map(l=>typeof l=="bigint"||typeof l=="number"?l:L5(String(l)))),!o.every(R5))?s:this._encode(o).join("")}decode(t){return!t||typeof t!="string"||t.length===0?[]:this._decode(t)}encodeHex(t){let r=t;switch(typeof r){case"bigint":r=r.toString(tp);break;case"string":if(!/^[\dA-Fa-f]+$/.test(r))return"";break;default:throw new Error(`Hashids: The provided value is neither a string, nor a BigInt (got: ${typeof r})`)}const s=$5(r,N5,o=>Number.parseInt(`1${o}`,16));return this.encode(s)}decodeHex(t){return this.decode(t).map(r=>r.toString(tp).slice(1)).join("")}isValidId(t){return this.allowedCharsRegExp.test(t)}_encode(t){let{alphabet:r}=this;const s=t.reduce((h,p,v)=>h+(typeof p=="bigint"?Number(p%BigInt(v+np)):p%(v+np)),0);let o=[r[s%r.length]];const l=[...o],{seps:u}=this,{guards:c}=this;if(t.forEach((h,p)=>{const v=l.concat(this.salt,r);r=_s(r,v);const m=T5(h,r);if(o.push(...m),p+10){const p=h/2;o=o.slice(p,p+this.minLength)}}return o}_decode(t){if(!this.isValidId(t))throw new Error(`The provided ID (${t}) is invalid, as it contains characters that do not exist in the alphabet (${this.guards.join("")}${this.seps.join("")}${this.alphabet.join("")})`);const r=t.split(this.guardsRegExp),s=r.length===3||r.length===2?1:0,o=r[s];if(o.length===0)return[];const l=o[Symbol.iterator]().next().value,u=o.slice(l.length).split(this.sepsRegExp);let c=this.alphabet;const f=[];for(const h of u){const p=[l,...this.salt,...c],v=_s(c,p.slice(0,c.length));f.push(I5(Array.from(h),v)),c=v}return this._encode(f).join("")!==t?[]:f}}new lv("reapOne.playlist",22);const uv=new lv("reapOne.track",22),rp=e=>uv.encode(String(e)),W5=e=>{const t=uv.decode(e);return Number(t[0])},Uu=(e,t)=>String(e).padStart(t,"0"),xa=e=>e?e.startsWith("local:")?e.replace("local:","/src/covers/"):e:null,F5=e=>e?e.startsWith("local:")?e.replace("local:","/src/covers/"):e:null,cv=(e,t="track")=>(t=="playlist"?F5:xa)(e),V5=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()),wc=e=>window.open(e,"_blank"),qu=Ve(()=>window.innerWidth<768),O6=e=>/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(e),R6=e=>{const{key:t,mode:r}=e.spotify.features,s=["B","F#","C#","G#","D#","A#","F","C","G","D","A","E"],o=["A","D#","A#","F","C","G","D","A","E","B","F#","C#"];return`${(r=="Major"?s:o).indexOf(t)+1}${r=="Major"?"B":"A"}`},T6=(e,t=null)=>{t||(e.includes("track")&&(t="track"),e.includes("album")&&(t="album"),e.includes("playlist")&&(t="playlist"));const r=new RegExp(`https://open.spotify.com/${t}/([a-zA-Z0-9]+)`),s=e.match(r);return s?s[1]:null},I6=e=>new Date(e).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"}),M6=e=>{if(e<=0)return"N/A";const t=Math.floor(e/60),r=Uu(Math.floor(e%60),2);return`${t}:${r}`},L6=e=>{const t=["B","KB","MB","GB","TB"];let r=0;for(;e>1e3&&r{await zt().fetchPlaylists()},H5=e=>zt().getPlaylistById(e),U5=async e=>{await fetch(`/api/playlists/${e.id}`,{method:"POST",body:JSON.stringify({name:e.name,description:e.description,cover:e.cover})}),await no()},q5=async()=>await(await fetch("/api/playlists")).json(),j5=async e=>await(await fetch(`/api/playlists/${e}`)).json(),$6=e=>H5(e),D6=async e=>(await fetch(`/api/playlists/${e}`,{method:"DELETE"})).ok?(await no(),!0):!1,Ac=async(e="classic")=>{const r=await(await fetch(`/api/playlists/new?type=${e}`)).text();return await no(),r},xc=async(e="classic",t,r="",s="")=>{const l=(await Ac(e)).split("/").pop();return await U5({id:l,name:t,description:r,cover:s,plays:0,type:e}),l},B6=async(e,t)=>{await fetch(`/api/playlists/${e}/tracks`,{method:"DELETE",body:JSON.stringify({songId:t})}),await no()},N6=async e=>await(await fetch("/api/playlists/smart/peek",{method:"POST",body:JSON.stringify(e)})).json(),K5=async e=>await(await fetch(`/api/playlists/smart/${e}`)).json(),z5=async(e,t)=>{await fetch(`/api/playlists/smart/${e}`,{method:"PUT",body:JSON.stringify({definition:t})}),await no()},zt=to({id:"data",state:()=>({playlists:[]}),getters:{notEmpty(){return!this.empty},empty(){return this.playlists.length===0},playlistsAsDropdown(e=!0){const t=this.playlists.filter(r=>r.type==="classic").map(r=>({value:r.id,label:r.name}));return e&&t.push({value:"new",label:"(new playlist)"}),t},getPlaylistById(){return e=>this.playlists.find(t=>t.id===e)}},actions:{setPlaylists(e){this.playlists=e},initialise(){this.fetchPlaylists()},async fetchPlaylists(...e){if(e){console.log("fetching playlists",e);for(const r of e){const s=this.playlists.findIndex(o=>o.id===r);if(s===-1)return;this.playlists[s]=await j5(r)}}const t=await q5();this.setPlaylists(t)}}}),Z5=class{constructor(){Oi(this,"ws",null);Oi(this,"connections",Pe([]));Oi(this,"player",null);Oi(this,"me",null);Oi(this,"sendInfoTask",null);this.connect()}connect(){console.log("attempting reconnect");const e=window.location.hostname,t=window.location.port=="5173"?1234:window.location.port;this.ws=new WebSocket(`ws://${e}:${t}/player/ws`);const r=Bt();this.sendInfoTask&&clearInterval(this.sendInfoTask),this.sendInfoTask=setInterval(()=>this.sendInfo(),300),this.ws.onclose=()=>{console.log("disconnected"),setTimeout(()=>this.connect(),1e3)},this.ws.onopen=()=>{console.log("connected")};const s=o=>{if(typeof o=="string")switch(o){case"play":r.play();break;case"pause":r.pause();break}if(typeof o=="object")switch(o.command){case"seek":r.seek(o.time);break;case"set volume":r.setVolume(o.volume);break;case"set repeat":r.setRepeat(o.repeat);break;case"set mute":r.setMute(o.mute);break}};this.ws.onmessage=o=>{switch(o=JSON.parse(o.data),o.type){case"info":if(typeof o.data=="boolean")return;r.playing=o.data.playing,r.progress=o.data.progress,r.volume=o.data.volume,r.repeat=o.data.repeat;break;case"new client":console.log("new client",o.data);break;case"client disconnected":break;case"player disconnected":break;case"connections":this.updateConnections(o.data);break;case"command":s(o.data);break}}}sendInfo(){var r,s;if(((s=(r=this.me)==null?void 0:r.type)==null?void 0:s.toLowerCase())!=="player")return;const e=Bt(),t={playing:e.playing,progress:e.progress,volume:e.volume,repeat:e.repeat};this.send("info",t)}updateConnections(e){this.connections.value=e,this.me=e.find(t=>t.friendlyName.includes("(You)"))}send(e,t){var r;(r=this.ws)==null||r.send(JSON.stringify({type:e,data:t}))}sendCommand(e){this.send("command",e)}setPlayer(e){this.send("set player",e.id)}makeMePlayer(){this.send("type","Player")}play(){this.sendCommand("play")}pause(){this.sendCommand("pause")}seek(e){this.sendCommand({command:"seek",time:e})}setVolume(e){this.sendCommand({command:"set volume",volume:e})}setRepeat(e){this.sendCommand({command:"set repeat",repeat:e})}setMute(e){this.sendCommand({command:"set mute",mute:e})}},G5=()=>{fetch("/api/player/next")},Y5=()=>{fetch("/api/player/previous")},J5=e=>{fetch("/api/player/shuffle",{method:"POST",body:JSON.stringify(e)})},X5=()=>fetch("/api/player/shuffle").then(e=>e.json()),Pc=to({id:"downloader",state:()=>({ws:null,states:{},onDownload:[]}),getters:{empty(){return Object.keys(this.states).length===0}},actions:{_fireDownload(e){this.onDownload.forEach(t=>t(e))},initialise(){const e=()=>{console.log("[downloader] attempting reconnect");const t=window.location.hostname,r=window.location.port==="5173"?1234:window.location.port;this.ws=new WebSocket(`ws://${t}:${r}/download/ws`),this.ws.onclose=()=>{console.log("[downloader] ws closed"),setTimeout(()=>e(),1e3)},this.ws.onopen=()=>{console.log("[downloader] ws connected")},this.ws.onmessage=s=>{const o=JSON.parse(s.data);if(!o.action){if(o.status=="finished"){this.states[o.songId]={...this.states[o.songId],...o};return}this.states[o.songId]=o}}};e()},send(e){var t;(t=this.ws)==null||t.send(JSON.stringify(e))},downloadFromDb(e){this.send({action:"download",source:"db",songId:e}),this.states[e]={songId:e,status:"pending"},this._fireDownload(e)},downloadOther(e){this.send({action:"download",source:"other",...e}),this.states[e.id]={songId:e.id,status:"pending"},this._fireDownload(e.id)},download(e){window.open(`/api/tracks/${e}/download`,"_blank","noopener noreferrer"),this.states[e].status="downloaded"},isSongDownloading(e){const t=this.states[e];return t!=null&&t.internal?t.status==="downloading":!1}}}),ro=async()=>{await zt().fetchPlaylists()},W6=async e=>{await fetch(`/api/tracks/${e.id}`,{method:"PUT",body:JSON.stringify({source:e.source,title:e.title,artist:e.artist,album:e.album,cover:e.cover})}),await ro()},F6=async(e,t,r)=>{await fetch(`/api/tracks/${e}`,{method:"PUT",body:JSON.stringify({[t]:r})}),await ro()},V6=async e=>await(await fetch("/api/browse/track",{method:"POST",body:JSON.stringify({url:e})})).json(),fv=e=>({source:e.source,title:e.title,artist:e.artist,album:e.album,cover:e.cover,spotify:e.metadata?JSON.stringify(e.metadata.spotify):""}),dv=async(e,t)=>{e==="new"&&(e=await Ac()),await fetch(`/api/playlists/${e}/tracks`,{method:"POST",body:JSON.stringify(fv(t))}),await ro()},hv=async(e,t)=>{e==="new"&&(e=await Ac()),await fetch(`/api/playlists/${e}/tracks`,{method:"POST",body:JSON.stringify(t.map(r=>fv(r)))}),await ro()},H6=async(e,t=!0)=>{await fetch(`/api/tracks/${e}`,{method:"PUT",body:JSON.stringify({favourite:t})}),await ro()},U6=e=>{Pc().downloadFromDb(e)},Q5=async e=>await(await fetch(`/api/tracks/${e}`)).json(),q6=async e=>{const t=W5(e);return await Q5(t)},e4=async(e,t=!1,r=null)=>{const s={id:e};return t&&(s.forceFetch=!0),r&&(s.spotifyId=r),await(await fetch("/api/spotify/meta",{method:"POST",body:JSON.stringify(s)})).json()},j6=async e=>await(await fetch(`/api/spotify/recommendations/${e}`)).json(),K6=async e=>{await fetch(`/api/player/stream/${e}`,{method:"DELETE"})},t4=async e=>{const r=await(await fetch("https://spotify-lyric-api-984e7b4face0.herokuapp.com/?trackid="+e)).json();return{error:r.message,lyrics:r.lines}},n4=async(e=!1)=>{var o,l;const r=Bt().song;let s=(o=r.metadata.spotify)==null?void 0:o.id;return!s&&e&&(s=(l=(await e4(r.id)).spotify)==null?void 0:l.id),s?await t4(s):{error:"Spotify equivalent unknown."}},Bt=to({id:"player",state:()=>({playing:!1,progress:0,ready:!1,muted:!1,shuffle:!1,song:{title:null,artist:null,album:null,cover:xa(null),source:null,duration:null,favourite:!1,id:-1,metadata:{plays:0,spotify:{id:null}}},playlistId:null,lyrics:null,volume:50,repeat:"repeat",sharedPlayer:null,player:null}),actions:{playPause(){this.playing?this.pause():this.play()},toggleRepeat(){var e;switch(this.repeat){case"repeat":this.repeat="repeat_on";break;case"repeat_on":this.repeat="repeat_one_on";break;case"repeat_one_on":this.repeat="repeat";break}localStorage.setItem("reap.repeat",this.repeat),(e=this.player)==null||e.setRepeat(this.repeat)},setRepeat(e){this.repeat=e},setMute(e){var t;this.muted=e,(t=this.player)==null||t.setMute(e)},toggleMute(){this.setMute(!this.muted)},setShuffle(e){this.shuffle=e,J5(e),zt().fetchPlaylists()},toggleShuffle(){this.setShuffle(!this.shuffle)},onSongEnded(){if(this.repeat==="repeat_one_on")this.play();else{if(this.repeat==="repeat"&&this.playlist.index.value===this.playlist.songs.length-1)return;this.next()}},play(){this.player.play()},pause(){this.player.pause()},next(){G5()},previous(){Y5()},setPlayer(e){e&&this.player!==e&&(this.player=e)},async setSong(e){e.id!=this.song.id&&(this.song=e,this.song.cover=xa(e.cover),this.progress=0,this.lyrics=null,this.lyrics=await n4(!0))},setReady(e){this.ready!==e&&(this.ready=e,e?zt().initialise():(this.$reset(),zt().$reset()))},setDuration(e){this.song.duration=e,fetch(`/api/tracks/${this.song.id}`,{method:"PUT",body:JSON.stringify({duration:e})})},setPlaying(e){this.playing=e},seek(e){this.player.seek(e)},seekPercent(e){this.seek(this.durationSeconds*e/100)},setProgress(e){this.progress=Math.round(e)},setFavourite(e){this.song.favourite=e,fetch(`/api/tracks/${this.song.id}`,{method:"PUT",body:JSON.stringify({favourite:e})})},setPlaylist(e){this.playlistId=e},setVolume(e){var t;e!=this.volume&&(this.volume=e,localStorage.setItem("reap.volume",e),this.player.setVolume&&((t=this.player)==null||t.setVolume(e)))},toggleFavourite(){this.setFavourite(!this.song.favourite)},async initialise(){this.volume=localStorage.getItem("reap.volume")||50,this.repeat=localStorage.getItem("reap.repeat")||"repeat_on",this.sharedPlayer=new Z5,this.shuffle=await X5()},async loadPlaylist(e,t=null){const r={type:"playlist",id:e};e==="track"&&(r.type=e,r.id=t),e==="artist"&&(r.type=e,r.name=t,delete r.id),await fetch("/api/player/load",{method:"POST",body:JSON.stringify(r)})},loadSong(e,t){const r={index:t};e==="track"?r.type=e:r.playlist=e,fetch("/api/player/at",{method:"POST",body:JSON.stringify(r)})}},getters:{playlist(e){return zt().playlists.find(t=>t.id===e.playlistId)},hasLyrics(e){var t;return(t=e.lyrics)==null?void 0:t.lyrics},durationSeconds(e){return e.song.duration},displayDuration(e){const t=e.song.duration;return isNaN(t)?"0:00":`${Math.floor(t/60)}:${Uu(Math.floor(t%60),2)}`},stream(e){return`/api/player/stream/${e.song.id}`},cover(e){return e.song.cover},progressPercent(e){return e.progress/this.durationSeconds*1e3},displayProgress(e){const t=e.progress;return isNaN(t)?"0:00":`${Math.floor(t/60)}:${Uu(Math.floor(t%60),2)}`},loaded(e){return e.song.id!=-1},shuffleIcon(e){return e.shuffle?"shuffle_on":"shuffle"},muteIcon(e){return e.muted?"volume_off":e.volume>50?"volume_up":e.volume>0?"volume_down":"volume_mute"}}});const r4=(e,t,r)=>{const s=new CustomEvent("player.play",{detail:{title:e,artist:t,source:r}});window.dispatchEvent(s)},i4={components:{Marquee:ir},name:"PlayerInPicture",props:{expandCover:Boolean},watch:{disabled(){this.disabled||this.$nextTick(()=>{this.$refs.player.addEventListener("mousedown",this.mouseDown,!1),window.addEventListener("mouseup",this.mouseUp,!1)})}},methods:{mouseDown(e){const t=this.$refs.player,r=document.getElementById("appRoot");e=e||window.event;var s=e.clientX,o=e.clientY,l=t.offsetTop,u=t.offsetLeft,c=parseInt(t.offsetWidth),f=parseInt(t.offsetHeight),h=parseInt(r.offsetWidth)-8,p=parseInt(r.offsetHeight)-8;r.style.cursor="move";var v=s-u,m=o-l;document.onmousemove=b=>{b=b||window.event,b.preventDefault(),b.stopPropagation();var y=b.clientX,E=b.clientY,R=y-v,S=E-m;R<8&&(R=8),S<8&&(S=8),R+c>h&&(R=h-c),S+f>p&&(S=p-f),this.divMove(t,R,S)}},mouseUp(){document.getElementById("appRoot").style.cursor="default",document.onmousemove=function(){}},divMove(e,t,r){e.style.bottom="auto",e.style.right="auto",e.style.left=t+"px",e.style.top=r+"px"}},data(){const e=Bt();return window.addEventListener("player.play",t=>{const r=t.detail,s=r.source;if(this.name=`${r.artist} - ${r.title}`,e.pause(),s.includes("youtu")){var o=/youtu(?:.*\/v\/|.*v\=|\.be\/)([A-Za-z0-9_\-]{11})/;const l=s.match(o);if(l!=null&&l[1]){this.el=``,this.minimised=!1,this.disabled=!1;return}}if(s.includes("audius")){var o=/audius.co\/([A-Za-z0-9]+)\/([A-Za-z0-9\-]+)/;const u=s.match(o);if(console.log(u,s),u!=null&&u[1]&&(u!=null&&u[2])){fetch(`https://blockdaemon-audius-discovery-01.bdnodes.net/v1/full/tracks?handle=${u[1]}&slug=${u[2]}`).then(c=>c.json()).then(c=>{const f=c.data.id;this.el=``}),this.minimised=!1,this.disabled=!1;return}}if(s.includes("spotify")){var o=/spotify(?:.*\/(album|track|playlist)\/)([A-Za-z0-9_\-]{22})/;const u=s.match(o);if(u!=null&&u[1]){console.log(u),this.el=``,this.minimised=!1,this.disabled=!1;return}}s.includes("soundcloud")&&(fetch(`https://soundcloud.com/oembed?url=${s}&format=json`).then(l=>l.json()).then(l=>{this.el=l.html.replace('height="400"','height="70"').replace("&show_artwork=true","&show_artwork=true&auto_play=true").replace("o.minimised=!o.minimised)},We(o.minimised?"zoom_out_map":"zoom_in_map"),1),te("span",{class:"material-symbols-rounded ms-wght-500",onClick:t[1]||(t[1]=c=>o.disabled=!o.disabled)},"close")])],2),te("div",{class:Je([{minimised:o.minimised},"frame"]),innerHTML:o.el},null,10,l4)],512))}const c4=at(i4,[["render",u4]]),f4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 809.48 395.8"},d4=te("path",{d:"M80.09 254.67c-4.84 0-9.04-1.72-12.6-5.16-3.57-3.43-5.35-7.7-5.35-12.79V79.04c0-4.84 1.78-8.97 5.35-12.41 3.56-3.44 7.76-5.16 12.6-5.16s8.97 1.72 12.41 5.16c3.43 3.43 5.15 7.57 5.15 12.41v157.68c0 5.09-1.72 9.36-5.15 12.79-3.44 3.44-7.58 5.16-12.41 5.16Zm70.63 61.47c-4.84 0-8.97-1.78-12.41-5.34-3.44-3.57-5.16-7.77-5.16-12.6V17.57c0-4.58 1.72-8.66 5.16-12.22 3.43-3.56 7.57-5.34 12.41-5.34s9.04 1.78 12.6 5.34c3.56 3.57 5.34 7.64 5.34 12.22V298.2c0 4.83-1.78 9.03-5.34 12.6-3.56 3.56-7.76 5.34-12.6 5.34ZM17.38 193.2c-4.79 0-8.88-1.7-12.27-5.1-3.4-3.4-5.1-7.61-5.1-12.65v-35.13c0-4.79 1.7-8.88 5.1-12.27 3.4-3.4 7.49-5.1 12.27-5.1s9 1.7 12.66 5.1c3.65 3.4 5.48 7.49 5.48 12.27v35.33c0 3.92-1.25 7.85-3.85 10.77-4.01 4.51-8.78 6.77-14.28 6.77Zm195.29 60.46c-4.78 0-8.87-1.7-12.28-5.11-3.4-3.4-5.1-7.62-5.1-12.66V79.86c0-4.79 1.7-8.88 5.1-12.28 3.4-3.4 7.5-5.11 12.28-5.11s9.01 1.7 12.66 5.11c3.65 3.4 5.48 7.49 5.48 12.28V235.9c0 5.04-1.76 9.26-5.29 12.66-3.52 3.4-7.81 5.11-12.85 5.11Zm62.52-60.46c-4.78 0-8.94-1.7-12.46-5.1-3.52-3.4-5.29-7.61-5.29-12.65v-35.13c0-4.79 1.76-8.88 5.29-12.27 3.53-3.4 7.68-5.1 12.46-5.1s8.94 1.7 12.46 5.1c3.53 3.4 5.29 7.49 5.29 12.27v35.13c0 5.03-1.76 9.25-5.29 12.65-3.52 3.4-7.68 5.1-12.46 5.1ZM436.15 266.18c-10.94-6.13-19.61-14.63-26-25.51-6.39-10.88-9.59-23.17-9.59-36.88s3.2-26 9.59-36.88c6.39-10.88 15.06-19.34 26-25.41 10.94-6.06 22.94-9.1 35.99-9.1s25.21 3.03 36.09 9.1c10.88 6.06 19.48 14.53 25.8 25.41 6.33 10.88 9.49 23.17 9.49 36.88s-3.16 26-9.49 36.88-14.96 19.38-25.9 25.51c-10.94 6.13-22.94 9.19-35.99 9.19s-25.05-3.06-35.99-9.19Zm59.42-36.48c5.73-6.46 8.6-15.09 8.6-25.9s-2.87-19.8-8.6-26.2c-5.73-6.39-13.54-9.59-23.43-9.59s-17.87 3.2-23.53 9.59c-5.67 6.4-8.5 15.13-8.5 26.2s2.83 19.61 8.5 26c5.67 6.4 13.51 9.59 23.53 9.59s17.7-3.23 23.43-9.69ZM690.05 273.99h-38.76l-51.61-77.91v77.91h-38.76V134.58h38.76l51.61 78.9v-78.9h38.76v139.41ZM750.95 165.63v22.74h44.49v29.46h-44.49v25.11h50.42v31.04h-89.18v-139.4h89.18v31.04h-50.42ZM414.68 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43h-1.39c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22ZM455.71 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.52-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM486.61 97.82h-17.56l-3.23 8.95h-5.54l14.55-40.02h6.06l14.5 40.02h-5.54l-3.23-8.95Zm-1.5-4.27-7.28-20.33-7.28 20.33h14.55ZM529.81 75.13v31.65h-5.25v-4.68c-1 1.62-2.4 2.88-4.19 3.78-1.79.9-3.76 1.36-5.92 1.36-2.46 0-4.68-.51-6.64-1.53s-3.51-2.55-4.65-4.59c-1.14-2.04-1.7-4.52-1.7-7.45V75.13h5.2v17.85c0 3.12.79 5.52 2.37 7.19 1.58 1.67 3.73 2.51 6.47 2.51s5.02-.87 6.64-2.6 2.43-4.25 2.43-7.57V75.13h5.25ZM538.7 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.86-2.02 7.71-2.02 2.46 0 4.75.57 6.87 1.7 2.12 1.14 3.73 2.63 4.85 4.48V64.04h5.31v42.74h-5.31v-5.95c-1.04 1.89-2.58 3.44-4.62 4.65s-4.43 1.82-7.16 1.82-5.36-.69-7.65-2.08c-2.29-1.39-4.09-3.33-5.4-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM577.91 68.95c-.69-.69-1.04-1.54-1.04-2.54s.35-1.85 1.04-2.54 1.54-1.04 2.54-1.04 1.78.35 2.45 1.04 1.01 1.54 1.01 2.54-.34 1.85-1.01 2.54-1.49 1.04-2.45 1.04-1.85-.35-2.54-1.04Zm5.08 6.18v31.65h-5.25V75.13h5.25ZM597.69 105.27c-2.41-1.35-4.29-3.26-5.66-5.75-1.37-2.48-2.05-5.36-2.05-8.63s.7-6.09 2.11-8.58 3.32-4.39 5.75-5.72 5.14-1.99 8.14-1.99 5.72.66 8.14 1.99 4.34 3.23 5.75 5.69c1.41 2.46 2.11 5.33 2.11 8.6s-.72 6.15-2.17 8.63c-1.44 2.48-3.4 4.4-5.86 5.75-2.46 1.35-5.2 2.02-8.2 2.02s-5.65-.67-8.06-2.02Zm13.37-3.93c1.65-.89 2.99-2.21 4.01-3.98 1.02-1.77 1.53-3.93 1.53-6.47s-.5-4.7-1.5-6.47c-1-1.77-2.31-3.09-3.93-3.96-1.62-.87-3.37-1.3-5.25-1.3s-3.69.43-5.28 1.3c-1.6.87-2.88 2.19-3.84 3.96s-1.44 3.93-1.44 6.47.47 4.76 1.41 6.53c.94 1.77 2.2 3.09 3.78 3.96 1.58.87 3.31 1.3 5.2 1.3s3.66-.44 5.31-1.33ZM652.38 86.65c-2.29 2.21-5.79 3.32-10.48 3.32h-7.74v16.81h-5.25V66.53h12.99c4.54 0 8 1.1 10.37 3.29 2.37 2.19 3.55 5.02 3.55 8.49s-1.15 6.13-3.44 8.35Zm-4.01-2.92c1.39-1.27 2.08-3.08 2.08-5.43 0-4.97-2.85-7.45-8.55-7.45h-7.74v14.78h7.74c2.93 0 5.08-.64 6.47-1.91ZM667.6 64.04v42.74h-5.25V64.04h5.25ZM676.55 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.84-2.02 7.65-2.02s5.18.6 7.22 1.79 3.56 2.7 4.56 4.5v-5.78h5.31v31.65h-5.31v-5.89c-1.04 1.85-2.59 3.38-4.65 4.59-2.06 1.21-4.46 1.82-7.19 1.82s-5.35-.69-7.62-2.08c-2.27-1.39-4.06-3.33-5.37-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM742.85 75.13l-19.06 46.55h-5.43l6.24-15.25-12.76-31.3h5.83l9.93 25.64 9.82-25.64h5.43ZM776.8 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.51-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM793.12 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43H798c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22Z"},null,-1),h4=[d4];function p4(e,t){return ne(),ge("svg",f4,h4)}const m4={render:p4},v4=2,ip=window.localStorage.getItem("renderedIcons"),vu=ip?new Map(JSON.parse(ip)):new Map,Pa=(e,t,r=500)=>e||Cc(t,r),g4="/assets/img/bg-1024x1024.png",Cc=async(e,t=1024)=>{await document.fonts.ready;const r=`${v4}-${e}-${t}`;if(vu.has(r))return vu.get(r);const s=document.createElement("canvas"),o=s.getContext("2d");s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",document.body.appendChild(s),s.height=t,s.width=t,s.style.height=t+"px",s.style.width=t+"px";const l=new Image;return l.src=g4,await new Promise(u=>{l.onload=()=>{o.drawImage(l,0,0,s.width,s.height),o.fillStyle="white",o.font="900 100px 'Poppins'",o.textAlign="center",o.shadowColor="rgba(0, 0, 0, 0.7)",o.shadowBlur=50,o.fillText(e,s.width/2,s.height/2+72/2,s.width),o.fillStyle="white",o.fillRect(0,0,s.width,14),o.fillStyle="black",o.font="400 italic 8px 'Poppins'",o.textAlign="left",o.fillText(" reAudioPlayer ".repeat(100),2,8+2);const c=30;o.fillStyle="white",o.font="600 14px 'Poppins'",o.textAlign="left",o.fillText((e==null?void 0:e.toUpperCase())??e,c,s.height-35+8+2);const f=o.measureText(e).width+c+16;o.fillStyle="white",o.fillRect(f,s.height-30,s.width-f-c,2);const h=s.toDataURL();vu.set(r,h),u(h)}})};/*! Fast Average Color | © 2023 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */function y4(e){var t=e.toString(16);return t.length===1?"0"+t:t}function sp(e){return"#"+e.map(y4).join("")}function _4(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function b4(e){return e?w4(e)?e:[e]:[]}function w4(e){return Array.isArray(e[0])}function kc(e,t,r){for(var s=0;s=t-r&&e<=t+r}function C4(e,t,r){var s=r[0],o=r[1],l=r[2],u=r[3],c=r[4],f=e[t+3],h=sa(f,u,c);return u?!!(!f&&h||sa(e[t],s,c)&&sa(e[t+1],o,c)&&sa(e[t+2],l,c)&&h):h}var k4=24;function E4(e,t,r){for(var s={},o=r.dominantDivider||k4,l=r.ignoredColor,u=r.step,c=[0,0,0,0,0],f=0;fl?(f=o/l,u=ju,c=Math.round(u/f)):(f=l/o,c=ju,u=Math.round(c/f)),(u>o||c>l||u"u";function N4(){return B4?mv?new OffscreenCanvas(1,1):null:document.createElement("canvas")}var W4="FastAverageColor: ";function Fn(e){return Error(W4+e)}function bs(e,t){t||console.error(e)}var F4=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(Fn("call .getColorAsync() without resource"));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(Fn("resource as string is not supported in this environment"));var s=new Image;return s.crossOrigin=r&&r.crossOrigin||"",s.src=t,this.bindImageEvents(s,r)}else{if(pv(t)&&!t.complete)return this.bindImageEvents(t,r);var o=this.getColor(t,r);return o.error?Promise.reject(o.error):Promise.resolve(o)}},e.prototype.getColor=function(t,r){r=r||{};var s=op(r);if(!t){var o=Fn("call .getColor() without resource");return bs(o,r.silent),this.prepareResult(s,o)}var l=T4(t),u=D4(l,r);if(!u.srcWidth||!u.srcHeight||!u.destWidth||!u.destHeight){var o=Fn('incorrect sizes for resource "'.concat(lp(t),'"'));return bs(o,r.silent),this.prepareResult(s,o)}if(!this.canvas&&(this.canvas=N4(),!this.canvas)){var o=Fn("OffscreenCanvas is not supported in this browser");return bs(o,r.silent),this.prepareResult(s,o)}if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx){var o=Fn("Canvas Context 2D is not supported in this browser");return bs(o,r.silent),this.prepareResult(s)}this.ctx.imageSmoothingEnabled=!1}this.canvas.width=u.destWidth,this.canvas.height=u.destHeight;try{this.ctx.clearRect(0,0,u.destWidth,u.destHeight),this.ctx.drawImage(t,u.srcLeft,u.srcTop,u.srcWidth,u.srcHeight,0,0,u.destWidth,u.destHeight);var c=this.ctx.getImageData(0,0,u.destWidth,u.destHeight).data;return this.prepareResult(this.getColorFromArray4(c,r))}catch(f){var o=Fn("security error (CORS) for resource ".concat(lp(t),`. -Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`));return bs(o,r.silent),!r.silent&&console.error(f),this.prepareResult(s,o)}},e.prototype.getColorFromArray4=function(t,r){r=r||{};var s=4,o=t.length,l=op(r);if(o{localStorage.setItem(vv,JSON.stringify({sidebar:e.sidebar,player:e.player,theme:e.theme,ambient:e.ambient}))},H4={sidebar:{sports:!1,news:!1,collapsed:!1},player:{expandedCover:!1,pictureInPicture:!1,type:"web"},theme:V4,ambient:!0},Ss=()=>JSON.parse(localStorage.getItem(vv)||JSON.stringify(H4)),U4=()=>{const e=Ss();console.log("migrateSettings",e);const t=localStorage.getItem("sidebar.showSportsTab"),r=localStorage.getItem("sidebar.showNewsTab"),s=localStorage.getItem("player.inBrowser"),o=localStorage.getItem("player.collapsedSidebar"),l=localStorage.getItem("player.exapndCover"),u=localStorage.getItem("theme");t&&(e.sidebar.sports=t==="true",localStorage.removeItem("sidebar.showSportsTab")),r&&(e.sidebar.news=r==="true",localStorage.removeItem("sidebar.showNewsTab")),s&&localStorage.removeItem("player.inBrowser"),o&&(e.sidebar.collapsed=o==="true",localStorage.removeItem("player.collapsedSidebar")),l&&(e.player.expandedCover=l==="true",localStorage.removeItem("player.exapndCover")),u&&(e.theme=u,localStorage.removeItem("theme")),gv(e)},Ur=to("settings",()=>{U4();const e=Pe(Ss().player),t=Pe(Ss().sidebar),r=Pe(Ss().theme),s=Pe(Ss().ambient),o=()=>{gv({player:e.value,sidebar:t.value,theme:r.value,ambient:s.value})};st(()=>e,o,{deep:!0}),st(()=>t,o,{deep:!0}),st(()=>r,o,{deep:!0}),st(()=>s,o,{deep:!0});const l=Ve(()=>window.getCurrentThemeProperty&&window.getCurrentThemeProperty("supportsAmbient"));return{player:e,sidebar:t,theme:r,ambient:s,themeSupportsAmbient:l}}),Os=new F4,Rs=(e,t)=>{const r=e.hex,s=Math.round(t*255).toString(16);return r+s},q4=async(e,t,r=.25)=>{if(!Ur().ambient)return;var o=e.width/100,l=e.height/100,u=e.naturalWidth,c=e.naturalHeight;const f=await Promise.all([Os.getColorAsync(t,{height:l}),Os.getColorAsync(t,{left:u-o,width:o}),Os.getColorAsync(t,{width:o}),Os.getColorAsync(t,{top:c-l,height:l})]);o*=40,l*=40;var h=Rs(f[0],r),p=Rs(f[1],r),v=Rs(f[2],r),m=Rs(f[3],r);const b=" 10px",y=` ${o}px `,E=o+"px",R=l+"px";e.style.boxShadow=["0 -".concat(R," ").concat(y," ").concat(b," ").concat(h),"".concat(E," 0 ").concat(y," ").concat(b," ").concat(p),"0 ".concat(R," ").concat(y," ").concat(b," ").concat(v),"-".concat(E," 0 ").concat(y," ").concat(b," ").concat(m)].join(", ")},j4=async(e,t,r="to top right",s=.2)=>{if(!Ur().ambient)return;const l=await Os.getColorAsync(t),u=Rs(l,s),c=`linear-gradient(${r}, ${u}, transparent)`;e.style.background=c},K4={dark:!1,dynamic:!0},z4={dark:!0,dynamic:!1},li={"fg-secondary":{dark:"#1ed760",dynamic:"#00c48b",light:"#18a74b"},"fg-secondary-dk":{dark:"#217e41",dynamic:"#00c48b",light:"#80dda0"},"bg-contrast":{dark:"white",dynamic:"whitesmoke",light:"#181c2f"},"fg-contrast":{dark:"#121212",dynamic:"#1e1e1e",light:"white"},"fg-base":{dark:"white",dynamic:"whitesmoke",light:"#181c2f"},"fg-base-dk":{dark:"#a7a7a7",dynamic:"#c2bebe",light:"#8b8c91"},"fg-base-dkr":{dark:"#999",light:"#8b8c91",dynamic:"#999"},"bg-hover-ltr":{dark:"#242424"},"bg-hover-lt":{dark:"hsla(0,0%,100%,0.04)",light:"#b3b3b31f"},"bg-hover":{dark:"hsla(0,0%,100%,0.3)",dynamic:"#00c48b82",light:"#7c828f5e"},"bg-hover-dk":{dark:"hsla(0,0%,100%,0.1)",dynamic:"#00c48b42",light:"#E3E7EB"},"bg-gradient":{dark:"linear-gradient(to left bottom, #1ed760, #217e41)",dynamic:"linear-gradient(to left bottom, #00a53c, #00297f)",light:"linear-gradient(to left bottom, #18a74b, #80dda0)"},"bg-gradient-placeholder":{dark:"linear-gradient(to left bottom, #00a53c, #00297f)"},"bg-base":{dark:"#121212",light:"white"},"bg-base-lt":{dark:"#181818",dynamic:"linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3))",light:"#f3f7fb"},"bg-base-dk":{dark:"black",dynamic:"linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3))",light:"#f3f7fb"},"bg-input":{dark:"var(--background-light)",light:"var(--background)"},"bg-fixedPlaylistHeader":{dark:"var(--bg-base-lt)",dynamic:"#374148"},"border-fixedPlaylistHeader":{dark:"#303030",dynamic:"none",light:"#D0D0D0"},"border-base":{dark:"hsla(0,0%,100%,0.1)",light:"#E3E7EB"},"border-container":{dark:"1px solid var(--border-base)",light:"1px solid var(--border-base)",dynamic:"1px solid transparent"},"ff-base":{dark:"Poppins, sans-serif"},"h-playlistEntry":{dark:"64px"},"h-player":{dark:"88px"},"h-player-mobile":{dark:"64px"},"h-header":{dark:"64px"},coverAsBackground:K4,supportsAmbient:z4},Ka=()=>Ur();window.getThemes=()=>{window.themes=[];for(const e of Object.keys(li))for(const t of Object.keys(li[e]))window.themes.includes(t)||window.themes.push(t);return window.themes};window.getCurrentTheme=()=>Ka().theme;window.setTheme=e=>{if(window.getThemes().includes(e)){Ka().theme=e;for(const t of Object.keys(li)){const r=li[t];t!="coverAsBackground"&&document.documentElement.style.setProperty(`--${t}`,r[e]??r.dark)}}};window.restoreTheme=()=>window.setTheme(Ka().theme||"dynamic");window.getCurrentThemeProperty=e=>{const t=li[e];return t[Ka().theme]??t.dark};const yv=window,Z4=["alt","src"],oi=ze({__name:"Cover",props:{src:{type:String,required:!0},type:{type:String,required:!1,default:"track"},placeholder:{type:String,required:!1},withAmbient:{type:Boolean,required:!1,default:!1},ambientOpacity:{type:Number,required:!1,default:.2},name:{type:String,required:!1}},setup(e){const t=e,r=Pe(null),s=async()=>{if(r.value=await Cc(t.name),!r.value){setTimeout(()=>{s()},100);return}},o=()=>{r.value=cv(t.src,t.type),r.value||s()};st(()=>t.src,o),o();const l=Pe(null),u=async()=>{if(!t.withAmbient||!l.value||!yv.getCurrentThemeProperty("supportsAmbient"))return;const c=await Pa(r.value,t.name);q4(l.value,c,t.ambientOpacity)};return(c,f)=>(ne(),ge("img",{ref_key:"element",ref:l,alt:t.type,src:se(Pa)(r.value,e.name),class:"cover rounded-md",onError:s,onLoad:u},null,40,Z4))}});const G4={name:"NavEntry",components:{Cover:oi},props:{icon:String,img:String,name:String,href:String,hasChildSites:Boolean,parentHref:String,minimised:Boolean},computed:{showImg(){return this.img?!0:/^\/playlist\/\w{22}$/.exec(this.href)},active(){return this.hasChildSites?this.$route.path.includes(this.href)?!0:(console.log(this.parentHref),this.parentHref&&this.$route.path.includes(this.parentHref)):!1}}},Y4={key:0,class:"material-icons-round icon"},J4={key:2,class:"name hideIfMobile"};function X4(e,t,r,s,o,l){const u=Hi("Cover"),c=Hi("router-link");return ne(),je(c,{to:r.href,class:"link"},{default:Ot(()=>[te("div",{class:Je([{active:l.active,img:l.showImg},"navEntry"])},[r.icon?(ne(),ge("span",Y4,We(r.icon),1)):Ne("",!0),l.showImg?(ne(),je(u,{key:1,src:r.img,class:"icon",type:"playlist",name:r.name},null,8,["src","name"])):Ne("",!0),r.minimised?Ne("",!0):(ne(),ge("span",J4,We(r.name),1))],2)]),_:1},8,["to"])}const Tn=at(G4,[["render",X4],["__scopeId","data-v-2ced8467"]]),Q4="modulepreload",eP=function(e){return"/"+e},up={},pt=function(t,r,s){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(l=>{if(l=eP(l),l in up)return;up[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!s)for(let p=o.length-1;p>=0;p--){const v=o[p];if(v.href===l&&(!u||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Q4,u||(h.as="script",h.crossOrigin=""),h.href=l,document.head.appendChild(h),u)return new Promise((p,v)=>{h.addEventListener("load",p),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! + */let rv;const ja=e=>rv=e,iv=Symbol();function Vu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ds;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ds||(Ds={}));function b5(){const e=Hp(!0),t=e.run(()=>Pe({}));let r=[],s=[];const o=$a({install(l){ja(o),o._a=l,l.provide(iv,o),l.config.globalProperties.$pinia=o,s.forEach(u=>r.push(u)),s=[]},use(l){return!this._a&&!_5?s.push(l):r.push(l),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const sv=()=>{};function Jh(e,t,r,s=sv){e.push(t);const o=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),s())};return!r&&qp()&&j2(o),o}function Ti(e,...t){e.slice().forEach(r=>{r(...t)})}const w5=e=>e();function Hu(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,s)=>e.set(s,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const s=t[r],o=e[r];Vu(o)&&Vu(s)&&e.hasOwnProperty(r)&&!_t(s)&&!Ir(s)?e[r]=Hu(o,s):e[r]=s}return e}const A5=Symbol();function x5(e){return!Vu(e)||!e.hasOwnProperty(A5)}const{assign:kr}=Object;function P5(e){return!!(_t(e)&&e.effect)}function C5(e,t,r,s){const{state:o,actions:l,getters:u}=t,c=r.state.value[e];let f;function h(){c||(r.state.value[e]=o?o():{});const p=gA(r.state.value[e]);return kr(p,l,Object.keys(u||{}).reduce((v,m)=>(v[m]=$a(Fe(()=>{ja(r);const y=r._s.get(e);return u[m].call(y,y)})),v),{}))}return f=ov(e,h,t,r,s,!0),f}function ov(e,t,r={},s,o,l){let u;const c=kr({actions:{}},r),f={deep:!0};let h,p,v=[],m=[],y;const x=s.state.value[e];!l&&!x&&(s.state.value[e]={}),Pe({});let k;function R(N){let j;h=p=!1,typeof N=="function"?(N(s.state.value[e]),j={type:Ds.patchFunction,storeId:e,events:y}):(Hu(s.state.value[e],N),j={type:Ds.patchObject,payload:N,storeId:e,events:y});const K=k=Symbol();ur().then(()=>{k===K&&(h=!0)}),p=!0,Ti(v,j,s.state.value[e])}const O=l?function(){const{state:j}=r,K=j?j():{};this.$patch(q=>{kr(q,K)})}:sv;function S(){u.stop(),v=[],m=[],s._s.delete(e)}function M(N,j){return function(){ja(s);const K=Array.from(arguments),q=[],G=[];function F(V){q.push(V)}function A(V){G.push(V)}Ti(m,{args:K,name:N,store:I,after:F,onError:A});let L;try{L=j.apply(this&&this.$id===e?this:I,K)}catch(V){throw Ti(G,V),V}return L instanceof Promise?L.then(V=>(Ti(q,V),V)).catch(V=>(Ti(G,V),Promise.reject(V))):(Ti(q,L),L)}}const E={_p:s,$id:e,$onAction:Jh.bind(null,m),$patch:R,$reset:O,$subscribe(N,j={}){const K=Jh(v,N,j.detached,()=>q()),q=u.run(()=>st(()=>s.state.value[e],G=>{(j.flush==="sync"?p:h)&&N({storeId:e,type:Ds.direct,events:y},G)},kr({},f,j)));return K},$dispose:S},I=Qi(E);s._s.set(e,I);const U=(s._a&&s._a.runWithContext||w5)(()=>s._e.run(()=>(u=Hp()).run(t)));for(const N in U){const j=U[N];if(_t(j)&&!P5(j)||Ir(j))l||(x&&x5(j)&&(_t(j)?j.value=x[N]:Hu(j,x[N])),s.state.value[e][N]=j);else if(typeof j=="function"){const K=M(N,j);U[N]=K,c.actions[N]=j}}return kr(I,U),kr(tt(I),U),Object.defineProperty(I,"$state",{get:()=>s.state.value[e],set:N=>{R(j=>{kr(j,N)})}}),s._p.forEach(N=>{kr(I,u.run(()=>N({store:I,app:s._a,pinia:s,options:c})))}),x&&l&&r.hydrate&&r.hydrate(I.$state,x),h=!0,p=!0,I}function to(e,t,r){let s,o;const l=typeof t=="function";typeof e=="string"?(s=e,o=l?r:t):(o=e,s=e.id);function u(c,f){const h=lx();return c=c||(h?nn(iv,null):null),c&&ja(c),c=rv,c._s.has(s)||(l?ov(s,t,o,c):C5(s,o,c)),c._s.get(s)}return u.$id=s,u}const k5=e=>[...new Set(e)],E5=(e,t)=>e.filter(r=>!t.includes(r)),S5=(e,t)=>e.filter(r=>t.includes(r)),O5=e=>typeof e=="bigint"||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e,R5=e=>typeof e=="bigint"||e>=0&&Number.isSafeInteger(e);function _s(e,t){if(t.length===0)return e;let r;const s=[...e];for(let o=s.length-1,l=0,u=0;o>0;o--,l++){l%=t.length,u+=r=t[l].codePointAt(0);const c=(r+l+u)%o,f=s[o],h=s[c];s[c]=f,s[o]=h}return s}const T5=(e,t)=>{const r=[];let s=e;if(typeof s=="bigint"){const o=BigInt(t.length);do r.unshift(t[Number(s%o)]),s/=o;while(s>BigInt(0))}else do r.unshift(t[s%t.length]),s=Math.floor(s/t.length);while(s>0);return r},I5=(e,t)=>e.reduce((r,s)=>{const o=t.indexOf(s);if(o===-1)throw new Error(`The provided ID (${e.join("")}) is invalid, as it contains characters that do not exist in the alphabet (${t.join("")})`);if(typeof r=="bigint")return r*BigInt(t.length)+BigInt(o);const l=r*t.length+o;if(Number.isSafeInteger(l))return l;if(typeof BigInt=="function")return BigInt(r)*BigInt(t.length)+BigInt(o);throw new Error("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment")},0),M5=/^\+?\d+$/,L5=e=>M5.test(e)?Number.parseInt(e,10):Number.NaN,$5=(e,t,r)=>Array.from({length:Math.ceil(e.length/t)},(s,o)=>r(e.slice(o*t,(o+1)*t))),Xh=e=>new RegExp(e.map(t=>av(t)).sort((t,r)=>r.length-t.length).join("|")),D5=e=>new RegExp(`^[${e.map(t=>av(t)).sort((t,r)=>r.length-t.length).join("")}]+$`),av=e=>e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&"),Qh=16,ep=3.5,B5=12,tp=16,N5=12,np=100;class lv{constructor(t="",r=0,s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",o="cfhistuCFHISTU"){if(this.minLength=r,typeof r!="number")throw new TypeError(`Hashids: Provided 'minLength' has to be a number (is ${typeof r})`);if(typeof t!="string")throw new TypeError(`Hashids: Provided 'salt' has to be a string (is ${typeof t})`);if(typeof s!="string")throw new TypeError(`Hashids: Provided alphabet has to be a string (is ${typeof s})`);const l=Array.from(t),u=Array.from(s),c=Array.from(o);this.salt=l;const f=k5(u);if(f.lengthep)&&(p=Math.ceil(this.alphabet.length/ep),p>this.seps.length&&(v=p-this.seps.length,this.seps.push(...this.alphabet.slice(0,v)),this.alphabet=this.alphabet.slice(v))),this.alphabet=_s(this.alphabet,l);const m=Math.ceil(this.alphabet.length/B5);this.alphabet.length<3?(this.guards=this.seps.slice(0,m),this.seps=this.seps.slice(m)):(this.guards=this.alphabet.slice(0,m),this.alphabet=this.alphabet.slice(m)),this.guardsRegExp=Xh(this.guards),this.sepsRegExp=Xh(this.seps),this.allowedCharsRegExp=D5([...this.alphabet,...this.guards,...this.seps])}encode(t,...r){const s="";let o=Array.isArray(t)?t:[...t!=null?[t]:[],...r];return o.length===0||(o.every(O5)||(o=o.map(l=>typeof l=="bigint"||typeof l=="number"?l:L5(String(l)))),!o.every(R5))?s:this._encode(o).join("")}decode(t){return!t||typeof t!="string"||t.length===0?[]:this._decode(t)}encodeHex(t){let r=t;switch(typeof r){case"bigint":r=r.toString(tp);break;case"string":if(!/^[\dA-Fa-f]+$/.test(r))return"";break;default:throw new Error(`Hashids: The provided value is neither a string, nor a BigInt (got: ${typeof r})`)}const s=$5(r,N5,o=>Number.parseInt(`1${o}`,16));return this.encode(s)}decodeHex(t){return this.decode(t).map(r=>r.toString(tp).slice(1)).join("")}isValidId(t){return this.allowedCharsRegExp.test(t)}_encode(t){let{alphabet:r}=this;const s=t.reduce((h,p,v)=>h+(typeof p=="bigint"?Number(p%BigInt(v+np)):p%(v+np)),0);let o=[r[s%r.length]];const l=[...o],{seps:u}=this,{guards:c}=this;if(t.forEach((h,p)=>{const v=l.concat(this.salt,r);r=_s(r,v);const m=T5(h,r);if(o.push(...m),p+10){const p=h/2;o=o.slice(p,p+this.minLength)}}return o}_decode(t){if(!this.isValidId(t))throw new Error(`The provided ID (${t}) is invalid, as it contains characters that do not exist in the alphabet (${this.guards.join("")}${this.seps.join("")}${this.alphabet.join("")})`);const r=t.split(this.guardsRegExp),s=r.length===3||r.length===2?1:0,o=r[s];if(o.length===0)return[];const l=o[Symbol.iterator]().next().value,u=o.slice(l.length).split(this.sepsRegExp);let c=this.alphabet;const f=[];for(const h of u){const p=[l,...this.salt,...c],v=_s(c,p.slice(0,c.length));f.push(I5(Array.from(h),v)),c=v}return this._encode(f).join("")!==t?[]:f}}new lv("reapOne.playlist",22);const uv=new lv("reapOne.track",22),rp=e=>uv.encode(String(e)),W5=e=>{const t=uv.decode(e);return Number(t[0])},Uu=(e,t)=>String(e).padStart(t,"0"),xa=e=>e?e.startsWith("local:")?e.replace("local:","/src/covers/"):e:null,F5=e=>e?e.startsWith("local:")?e.replace("local:","/src/covers/"):e:null,cv=(e,t="track")=>(t=="playlist"?F5:xa)(e),V5=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()),wc=e=>window.open(e,"_blank"),qu=Fe(()=>window.innerWidth<768),O6=e=>/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(e),R6=e=>{const{key:t,mode:r}=e.spotify.features,s=["B","F#","C#","G#","D#","A#","F","C","G","D","A","E"],o=["A","D#","A#","F","C","G","D","A","E","B","F#","C#"];return`${(r=="Major"?s:o).indexOf(t)+1}${r=="Major"?"B":"A"}`},T6=(e,t=null)=>{t||(e.includes("track")&&(t="track"),e.includes("album")&&(t="album"),e.includes("playlist")&&(t="playlist"));const r=new RegExp(`https://open.spotify.com/${t}/([a-zA-Z0-9]+)`),s=e.match(r);return s?s[1]:null},I6=e=>new Date(e).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"}),M6=e=>{if(e<=0)return"N/A";const t=Math.floor(e/60),r=Uu(Math.floor(e%60),2);return`${t}:${r}`},L6=e=>{const t=["B","KB","MB","GB","TB"];let r=0;for(;e>1e3&&r{await zt().fetchPlaylists()},H5=e=>zt().getPlaylistById(e),U5=async e=>{await fetch(`/api/playlists/${e.id}`,{method:"POST",body:JSON.stringify({name:e.name,description:e.description,cover:e.cover})}),await no()},q5=async()=>await(await fetch("/api/playlists")).json(),j5=async e=>await(await fetch(`/api/playlists/${e}`)).json(),$6=e=>H5(e),D6=async e=>(await fetch(`/api/playlists/${e}`,{method:"DELETE"})).ok?(await no(),!0):!1,Ac=async(e="classic")=>{const r=await(await fetch(`/api/playlists/new?type=${e}`)).text();return await no(),r},xc=async(e="classic",t,r="",s="")=>{const l=(await Ac(e)).split("/").pop();return await U5({id:l,name:t,description:r,cover:s,plays:0,type:e}),l},B6=async(e,t)=>{await fetch(`/api/playlists/${e}/tracks`,{method:"DELETE",body:JSON.stringify({songId:t})}),await no()},N6=async e=>await(await fetch("/api/playlists/smart/peek",{method:"POST",body:JSON.stringify(e)})).json(),K5=async e=>await(await fetch(`/api/playlists/smart/${e}`)).json(),z5=async(e,t)=>{await fetch(`/api/playlists/smart/${e}`,{method:"PUT",body:JSON.stringify({definition:t})}),await no()},zt=to({id:"data",state:()=>({playlists:[]}),getters:{notEmpty(){return!this.empty},empty(){return this.playlists.length===0},playlistsAsDropdown(e=!0){const t=this.playlists.filter(r=>r.type==="classic").map(r=>({value:r.id,label:r.name}));return e&&t.push({value:"new",label:"(new playlist)"}),t},getPlaylistById(){return e=>this.playlists.find(t=>t.id===e)}},actions:{setPlaylists(e){this.playlists=e},initialise(){this.fetchPlaylists()},async fetchPlaylists(...e){if(e){console.log("fetching playlists",e);for(const r of e){const s=this.playlists.findIndex(o=>o.id===r);if(s===-1)return;this.playlists[s]=await j5(r)}}const t=await q5();this.setPlaylists(t)}}}),Z5=class{constructor(){Oi(this,"ws",null);Oi(this,"connections",Pe([]));Oi(this,"player",null);Oi(this,"me",null);Oi(this,"sendInfoTask",null);this.connect()}connect(){console.log("attempting reconnect");const e=window.location.hostname,t=window.location.port=="5173"?1234:window.location.port;this.ws=new WebSocket(`ws://${e}:${t}/player/ws`);const r=Bt();this.sendInfoTask&&clearInterval(this.sendInfoTask),this.sendInfoTask=setInterval(()=>this.sendInfo(),300),this.ws.onclose=()=>{console.log("disconnected"),setTimeout(()=>this.connect(),1e3)},this.ws.onopen=()=>{console.log("connected")};const s=o=>{if(typeof o=="string")switch(o){case"play":r.play();break;case"pause":r.pause();break}if(typeof o=="object")switch(o.command){case"seek":r.seek(o.time);break;case"set volume":r.setVolume(o.volume);break;case"set repeat":r.setRepeat(o.repeat);break;case"set mute":r.setMute(o.mute);break}};this.ws.onmessage=o=>{switch(o=JSON.parse(o.data),o.type){case"info":if(typeof o.data=="boolean")return;r.playing=o.data.playing,r.progress=o.data.progress,r.volume=o.data.volume,r.repeat=o.data.repeat;break;case"new client":console.log("new client",o.data);break;case"client disconnected":break;case"player disconnected":break;case"connections":this.updateConnections(o.data);break;case"command":s(o.data);break}}}sendInfo(){var r,s;if(((s=(r=this.me)==null?void 0:r.type)==null?void 0:s.toLowerCase())!=="player")return;const e=Bt(),t={playing:e.playing,progress:e.progress,volume:e.volume,repeat:e.repeat};this.send("info",t)}updateConnections(e){this.connections.value=e,this.me=e.find(t=>t.friendlyName.includes("(You)"))}send(e,t){var r;(r=this.ws)==null||r.send(JSON.stringify({type:e,data:t}))}sendCommand(e){this.send("command",e)}setPlayer(e){this.send("set player",e.id)}makeMePlayer(){this.send("type","Player")}play(){this.sendCommand("play")}pause(){this.sendCommand("pause")}seek(e){this.sendCommand({command:"seek",time:e})}setVolume(e){this.sendCommand({command:"set volume",volume:e})}setRepeat(e){this.sendCommand({command:"set repeat",repeat:e})}setMute(e){this.sendCommand({command:"set mute",mute:e})}},G5=()=>{fetch("/api/player/next")},Y5=()=>{fetch("/api/player/previous")},J5=e=>{fetch("/api/player/shuffle",{method:"POST",body:JSON.stringify(e)})},X5=()=>fetch("/api/player/shuffle").then(e=>e.json()),Pc=to({id:"downloader",state:()=>({ws:null,states:{},onDownload:[]}),getters:{empty(){return Object.keys(this.states).length===0}},actions:{_fireDownload(e){this.onDownload.forEach(t=>t(e))},initialise(){const e=()=>{console.log("[downloader] attempting reconnect");const t=window.location.hostname,r=window.location.port==="5173"?1234:window.location.port;this.ws=new WebSocket(`ws://${t}:${r}/download/ws`),this.ws.onclose=()=>{console.log("[downloader] ws closed"),setTimeout(()=>e(),1e3)},this.ws.onopen=()=>{console.log("[downloader] ws connected")},this.ws.onmessage=s=>{const o=JSON.parse(s.data);if(!o.action){if(o.status=="finished"){this.states[o.songId]={...this.states[o.songId],...o};return}this.states[o.songId]=o}}};e()},send(e){var t;(t=this.ws)==null||t.send(JSON.stringify(e))},downloadFromDb(e){this.send({action:"download",source:"db",songId:e}),this.states[e]={songId:e,status:"pending"},this._fireDownload(e)},downloadOther(e){this.send({action:"download",source:"other",...e}),this.states[e.id]={songId:e.id,status:"pending"},this._fireDownload(e.id)},download(e){window.open(`/api/tracks/${e}/download`,"_blank","noopener noreferrer"),this.states[e].status="downloaded"},isSongDownloading(e){const t=this.states[e];return t!=null&&t.internal?t.status==="downloading":!1}}}),ro=async()=>{await zt().fetchPlaylists()},W6=async e=>{await fetch(`/api/tracks/${e.id}`,{method:"PUT",body:JSON.stringify({source:e.source,title:e.title,artist:e.artist,album:e.album,cover:e.cover})}),await ro()},F6=async(e,t,r)=>{await fetch(`/api/tracks/${e}`,{method:"PUT",body:JSON.stringify({[t]:r})}),await ro()},V6=async e=>await(await fetch("/api/browse/track",{method:"POST",body:JSON.stringify({url:e})})).json(),fv=e=>({source:e.source,title:e.title,artist:e.artist,album:e.album,cover:e.cover,spotify:e.metadata?JSON.stringify(e.metadata.spotify):""}),dv=async(e,t)=>{e==="new"&&(e=await Ac()),await fetch(`/api/playlists/${e}/tracks`,{method:"POST",body:JSON.stringify(fv(t))}),await ro()},hv=async(e,t)=>{e==="new"&&(e=await Ac()),await fetch(`/api/playlists/${e}/tracks`,{method:"POST",body:JSON.stringify(t.map(r=>fv(r)))}),await ro()},H6=async(e,t=!0)=>{await fetch(`/api/tracks/${e}`,{method:"PUT",body:JSON.stringify({favourite:t})}),await ro()},U6=e=>{Pc().downloadFromDb(e)},Q5=async e=>await(await fetch(`/api/tracks/${e}`)).json(),q6=async e=>{const t=W5(e);return await Q5(t)},e4=async(e,t=!1,r=null)=>{const s={id:e};return t&&(s.forceFetch=!0),r&&(s.spotifyId=r),await(await fetch("/api/spotify/meta",{method:"POST",body:JSON.stringify(s)})).json()},j6=async e=>await(await fetch(`/api/spotify/recommendations/${e}`)).json(),K6=async e=>{await fetch(`/api/player/stream/${e}`,{method:"DELETE"})},t4=async e=>{const r=await(await fetch("https://spotify-lyric-api-984e7b4face0.herokuapp.com/?trackid="+e)).json();return{error:r.message,lyrics:r.lines}},n4=async(e=!1)=>{var o,l;const r=Bt().song;let s=(o=r.metadata.spotify)==null?void 0:o.id;return!s&&e&&(s=(l=(await e4(r.id)).spotify)==null?void 0:l.id),s?await t4(s):{error:"Spotify equivalent unknown."}},Bt=to({id:"player",state:()=>({playing:!1,progress:0,ready:!1,muted:!1,shuffle:!1,song:{title:null,artist:null,album:null,cover:xa(null),source:null,duration:null,favourite:!1,id:-1,metadata:{plays:0,spotify:{id:null}}},playlistId:null,lyrics:null,volume:50,repeat:"repeat",sharedPlayer:null,player:null}),actions:{playPause(){this.playing?this.pause():this.play()},toggleRepeat(){var e;switch(this.repeat){case"repeat":this.repeat="repeat_on";break;case"repeat_on":this.repeat="repeat_one_on";break;case"repeat_one_on":this.repeat="repeat";break}localStorage.setItem("reap.repeat",this.repeat),(e=this.player)==null||e.setRepeat(this.repeat)},setRepeat(e){this.repeat=e},setMute(e){var t;this.muted=e,(t=this.player)==null||t.setMute(e)},toggleMute(){this.setMute(!this.muted)},setShuffle(e){this.shuffle=e,J5(e),zt().fetchPlaylists()},toggleShuffle(){this.setShuffle(!this.shuffle)},onSongEnded(){if(this.repeat==="repeat_one_on")this.play();else{if(this.repeat==="repeat"&&this.playlist.index.value===this.playlist.songs.length-1)return;this.next()}},play(){this.player.play()},pause(){this.player.pause()},next(){G5()},previous(){Y5()},setPlayer(e){e&&this.player!==e&&(this.player=e)},async setSong(e){e.id!=this.song.id&&(this.song=e,this.song.cover=xa(e.cover),this.progress=0,this.lyrics=null,this.lyrics=await n4(!0))},setReady(e){this.ready!==e&&(this.ready=e,e?zt().initialise():(this.$reset(),zt().$reset()))},setDuration(e){this.song.duration=e,fetch(`/api/tracks/${this.song.id}`,{method:"PUT",body:JSON.stringify({duration:e})})},setPlaying(e){this.playing=e},seek(e){this.player.seek(e)},seekPercent(e){this.seek(this.durationSeconds*e/100)},setProgress(e){this.progress=Math.round(e)},setFavourite(e){this.song.favourite=e,fetch(`/api/tracks/${this.song.id}`,{method:"PUT",body:JSON.stringify({favourite:e})})},setPlaylist(e){this.playlistId=e},setVolume(e){var t;e!=this.volume&&(this.volume=e,localStorage.setItem("reap.volume",e),this.player.setVolume&&((t=this.player)==null||t.setVolume(e)))},toggleFavourite(){this.setFavourite(!this.song.favourite)},async initialise(){this.volume=localStorage.getItem("reap.volume")||50,this.repeat=localStorage.getItem("reap.repeat")||"repeat_on",this.sharedPlayer=new Z5,this.shuffle=await X5()},async loadPlaylist(e,t=null){const r={type:"playlist",id:e};e==="track"&&(r.type=e,r.id=t),e==="artist"&&(r.type=e,r.name=t,delete r.id),await fetch("/api/player/load",{method:"POST",body:JSON.stringify(r)})},loadSong(e,t){const r={index:t};e==="track"?r.type=e:r.playlist=e,fetch("/api/player/at",{method:"POST",body:JSON.stringify(r)})}},getters:{playlist(e){return zt().playlists.find(t=>t.id===e.playlistId)},hasLyrics(e){var t;return(t=e.lyrics)==null?void 0:t.lyrics},durationSeconds(e){return e.song.duration},displayDuration(e){const t=e.song.duration;return isNaN(t)?"0:00":`${Math.floor(t/60)}:${Uu(Math.floor(t%60),2)}`},stream(e){return`/api/player/stream/${e.song.id}`},cover(e){return e.song.cover},progressPercent(e){return e.progress/this.durationSeconds*1e3},displayProgress(e){const t=e.progress;return isNaN(t)?"0:00":`${Math.floor(t/60)}:${Uu(Math.floor(t%60),2)}`},loaded(e){return e.song.id!=-1},shuffleIcon(e){return e.shuffle?"shuffle_on":"shuffle"},muteIcon(e){return e.muted?"volume_off":e.volume>50?"volume_up":e.volume>0?"volume_down":"volume_mute"}}});const r4=(e,t,r)=>{const s=new CustomEvent("player.play",{detail:{title:e,artist:t,source:r}});window.dispatchEvent(s)},i4={components:{Marquee:ir},name:"PlayerInPicture",props:{expandCover:Boolean},watch:{disabled(){this.disabled||this.$nextTick(()=>{this.$refs.player.addEventListener("mousedown",this.mouseDown,!1),window.addEventListener("mouseup",this.mouseUp,!1)})}},methods:{mouseDown(e){const t=this.$refs.player,r=document.getElementById("appRoot");e=e||window.event;var s=e.clientX,o=e.clientY,l=t.offsetTop,u=t.offsetLeft,c=parseInt(t.offsetWidth),f=parseInt(t.offsetHeight),h=parseInt(r.offsetWidth)-8,p=parseInt(r.offsetHeight)-8;r.style.cursor="move";var v=s-u,m=o-l;document.onmousemove=y=>{y=y||window.event,y.preventDefault(),y.stopPropagation();var x=y.clientX,k=y.clientY,R=x-v,O=k-m;R<8&&(R=8),O<8&&(O=8),R+c>h&&(R=h-c),O+f>p&&(O=p-f),this.divMove(t,R,O)}},mouseUp(){document.getElementById("appRoot").style.cursor="default",document.onmousemove=function(){}},divMove(e,t,r){e.style.bottom="auto",e.style.right="auto",e.style.left=t+"px",e.style.top=r+"px"}},data(){const e=Bt();return window.addEventListener("player.play",t=>{const r=t.detail,s=r.source;if(this.name=`${r.artist} - ${r.title}`,e.pause(),s.includes("youtu")){var o=/youtu(?:.*\/v\/|.*v\=|\.be\/)([A-Za-z0-9_\-]{11})/;const l=s.match(o);if(l!=null&&l[1]){this.el=``,this.minimised=!1,this.disabled=!1;return}}if(s.includes("audius")){var o=/audius.co\/([A-Za-z0-9]+)\/([A-Za-z0-9\-]+)/;const u=s.match(o);if(console.log(u,s),u!=null&&u[1]&&(u!=null&&u[2])){fetch(`https://blockdaemon-audius-discovery-01.bdnodes.net/v1/full/tracks?handle=${u[1]}&slug=${u[2]}`).then(c=>c.json()).then(c=>{const f=c.data.id;this.el=``}),this.minimised=!1,this.disabled=!1;return}}if(s.includes("spotify")){var o=/spotify(?:.*\/(album|track|playlist)\/)([A-Za-z0-9_\-]{22})/;const u=s.match(o);if(u!=null&&u[1]){console.log(u),this.el=``,this.minimised=!1,this.disabled=!1;return}}s.includes("soundcloud")&&(fetch(`https://soundcloud.com/oembed?url=${s}&format=json`).then(l=>l.json()).then(l=>{this.el=l.html.replace('height="400"','height="70"').replace("&show_artwork=true","&show_artwork=true&auto_play=true").replace("o.minimised=!o.minimised)},Be(o.minimised?"zoom_out_map":"zoom_in_map"),1),te("span",{class:"material-symbols-rounded ms-wght-500",onClick:t[1]||(t[1]=c=>o.disabled=!o.disabled)},"close")])],2),te("div",{class:Je([{minimised:o.minimised},"frame"]),innerHTML:o.el},null,10,l4)],512))}const c4=at(i4,[["render",u4]]),f4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 809.48 395.8"},d4=te("path",{d:"M80.09 254.67c-4.84 0-9.04-1.72-12.6-5.16-3.57-3.43-5.35-7.7-5.35-12.79V79.04c0-4.84 1.78-8.97 5.35-12.41 3.56-3.44 7.76-5.16 12.6-5.16s8.97 1.72 12.41 5.16c3.43 3.43 5.15 7.57 5.15 12.41v157.68c0 5.09-1.72 9.36-5.15 12.79-3.44 3.44-7.58 5.16-12.41 5.16Zm70.63 61.47c-4.84 0-8.97-1.78-12.41-5.34-3.44-3.57-5.16-7.77-5.16-12.6V17.57c0-4.58 1.72-8.66 5.16-12.22 3.43-3.56 7.57-5.34 12.41-5.34s9.04 1.78 12.6 5.34c3.56 3.57 5.34 7.64 5.34 12.22V298.2c0 4.83-1.78 9.03-5.34 12.6-3.56 3.56-7.76 5.34-12.6 5.34ZM17.38 193.2c-4.79 0-8.88-1.7-12.27-5.1-3.4-3.4-5.1-7.61-5.1-12.65v-35.13c0-4.79 1.7-8.88 5.1-12.27 3.4-3.4 7.49-5.1 12.27-5.1s9 1.7 12.66 5.1c3.65 3.4 5.48 7.49 5.48 12.27v35.33c0 3.92-1.25 7.85-3.85 10.77-4.01 4.51-8.78 6.77-14.28 6.77Zm195.29 60.46c-4.78 0-8.87-1.7-12.28-5.11-3.4-3.4-5.1-7.62-5.1-12.66V79.86c0-4.79 1.7-8.88 5.1-12.28 3.4-3.4 7.5-5.11 12.28-5.11s9.01 1.7 12.66 5.11c3.65 3.4 5.48 7.49 5.48 12.28V235.9c0 5.04-1.76 9.26-5.29 12.66-3.52 3.4-7.81 5.11-12.85 5.11Zm62.52-60.46c-4.78 0-8.94-1.7-12.46-5.1-3.52-3.4-5.29-7.61-5.29-12.65v-35.13c0-4.79 1.76-8.88 5.29-12.27 3.53-3.4 7.68-5.1 12.46-5.1s8.94 1.7 12.46 5.1c3.53 3.4 5.29 7.49 5.29 12.27v35.13c0 5.03-1.76 9.25-5.29 12.65-3.52 3.4-7.68 5.1-12.46 5.1ZM436.15 266.18c-10.94-6.13-19.61-14.63-26-25.51-6.39-10.88-9.59-23.17-9.59-36.88s3.2-26 9.59-36.88c6.39-10.88 15.06-19.34 26-25.41 10.94-6.06 22.94-9.1 35.99-9.1s25.21 3.03 36.09 9.1c10.88 6.06 19.48 14.53 25.8 25.41 6.33 10.88 9.49 23.17 9.49 36.88s-3.16 26-9.49 36.88-14.96 19.38-25.9 25.51c-10.94 6.13-22.94 9.19-35.99 9.19s-25.05-3.06-35.99-9.19Zm59.42-36.48c5.73-6.46 8.6-15.09 8.6-25.9s-2.87-19.8-8.6-26.2c-5.73-6.39-13.54-9.59-23.43-9.59s-17.87 3.2-23.53 9.59c-5.67 6.4-8.5 15.13-8.5 26.2s2.83 19.61 8.5 26c5.67 6.4 13.51 9.59 23.53 9.59s17.7-3.23 23.43-9.69ZM690.05 273.99h-38.76l-51.61-77.91v77.91h-38.76V134.58h38.76l51.61 78.9v-78.9h38.76v139.41ZM750.95 165.63v22.74h44.49v29.46h-44.49v25.11h50.42v31.04h-89.18v-139.4h89.18v31.04h-50.42ZM414.68 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43h-1.39c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22ZM455.71 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.52-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM486.61 97.82h-17.56l-3.23 8.95h-5.54l14.55-40.02h6.06l14.5 40.02h-5.54l-3.23-8.95Zm-1.5-4.27-7.28-20.33-7.28 20.33h14.55ZM529.81 75.13v31.65h-5.25v-4.68c-1 1.62-2.4 2.88-4.19 3.78-1.79.9-3.76 1.36-5.92 1.36-2.46 0-4.68-.51-6.64-1.53s-3.51-2.55-4.65-4.59c-1.14-2.04-1.7-4.52-1.7-7.45V75.13h5.2v17.85c0 3.12.79 5.52 2.37 7.19 1.58 1.67 3.73 2.51 6.47 2.51s5.02-.87 6.64-2.6 2.43-4.25 2.43-7.57V75.13h5.25ZM538.7 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.86-2.02 7.71-2.02 2.46 0 4.75.57 6.87 1.7 2.12 1.14 3.73 2.63 4.85 4.48V64.04h5.31v42.74h-5.31v-5.95c-1.04 1.89-2.58 3.44-4.62 4.65s-4.43 1.82-7.16 1.82-5.36-.69-7.65-2.08c-2.29-1.39-4.09-3.33-5.4-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM577.91 68.95c-.69-.69-1.04-1.54-1.04-2.54s.35-1.85 1.04-2.54 1.54-1.04 2.54-1.04 1.78.35 2.45 1.04 1.01 1.54 1.01 2.54-.34 1.85-1.01 2.54-1.49 1.04-2.45 1.04-1.85-.35-2.54-1.04Zm5.08 6.18v31.65h-5.25V75.13h5.25ZM597.69 105.27c-2.41-1.35-4.29-3.26-5.66-5.75-1.37-2.48-2.05-5.36-2.05-8.63s.7-6.09 2.11-8.58 3.32-4.39 5.75-5.72 5.14-1.99 8.14-1.99 5.72.66 8.14 1.99 4.34 3.23 5.75 5.69c1.41 2.46 2.11 5.33 2.11 8.6s-.72 6.15-2.17 8.63c-1.44 2.48-3.4 4.4-5.86 5.75-2.46 1.35-5.2 2.02-8.2 2.02s-5.65-.67-8.06-2.02Zm13.37-3.93c1.65-.89 2.99-2.21 4.01-3.98 1.02-1.77 1.53-3.93 1.53-6.47s-.5-4.7-1.5-6.47c-1-1.77-2.31-3.09-3.93-3.96-1.62-.87-3.37-1.3-5.25-1.3s-3.69.43-5.28 1.3c-1.6.87-2.88 2.19-3.84 3.96s-1.44 3.93-1.44 6.47.47 4.76 1.41 6.53c.94 1.77 2.2 3.09 3.78 3.96 1.58.87 3.31 1.3 5.2 1.3s3.66-.44 5.31-1.33ZM652.38 86.65c-2.29 2.21-5.79 3.32-10.48 3.32h-7.74v16.81h-5.25V66.53h12.99c4.54 0 8 1.1 10.37 3.29 2.37 2.19 3.55 5.02 3.55 8.49s-1.15 6.13-3.44 8.35Zm-4.01-2.92c1.39-1.27 2.08-3.08 2.08-5.43 0-4.97-2.85-7.45-8.55-7.45h-7.74v14.78h7.74c2.93 0 5.08-.64 6.47-1.91ZM667.6 64.04v42.74h-5.25V64.04h5.25ZM676.55 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.84-2.02 7.65-2.02s5.18.6 7.22 1.79 3.56 2.7 4.56 4.5v-5.78h5.31v31.65h-5.31v-5.89c-1.04 1.85-2.59 3.38-4.65 4.59-2.06 1.21-4.46 1.82-7.19 1.82s-5.35-.69-7.62-2.08c-2.27-1.39-4.06-3.33-5.37-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM742.85 75.13l-19.06 46.55h-5.43l6.24-15.25-12.76-31.3h5.83l9.93 25.64 9.82-25.64h5.43ZM776.8 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.51-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM793.12 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43H798c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22Z"},null,-1),h4=[d4];function p4(e,t){return ne(),ge("svg",f4,h4)}const m4={render:p4},v4=2,ip=window.localStorage.getItem("renderedIcons"),vu=ip?new Map(JSON.parse(ip)):new Map,Pa=(e,t,r=500)=>e||Cc(t,r),g4="/assets/img/bg-1024x1024.png",Cc=async(e,t=1024)=>{await document.fonts.ready;const r=`${v4}-${e}-${t}`;if(vu.has(r))return vu.get(r);const s=document.createElement("canvas"),o=s.getContext("2d");s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",document.body.appendChild(s),s.height=t,s.width=t,s.style.height=t+"px",s.style.width=t+"px";const l=new Image;return l.src=g4,await new Promise(u=>{l.onload=()=>{o.drawImage(l,0,0,s.width,s.height),o.fillStyle="white",o.font="900 100px 'Poppins'",o.textAlign="center",o.shadowColor="rgba(0, 0, 0, 0.7)",o.shadowBlur=50,o.fillText(e,s.width/2,s.height/2+72/2,s.width),o.fillStyle="white",o.fillRect(0,0,s.width,14),o.fillStyle="black",o.font="400 italic 8px 'Poppins'",o.textAlign="left",o.fillText(" reAudioPlayer ".repeat(100),2,8+2);const c=30;o.fillStyle="white",o.font="600 14px 'Poppins'",o.textAlign="left",o.fillText((e==null?void 0:e.toUpperCase())??e,c,s.height-35+8+2);const f=o.measureText(e).width+c+16;o.fillStyle="white",o.fillRect(f,s.height-30,s.width-f-c,2);const h=s.toDataURL();vu.set(r,h),u(h)}})};/*! Fast Average Color | © 2023 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */function y4(e){var t=e.toString(16);return t.length===1?"0"+t:t}function sp(e){return"#"+e.map(y4).join("")}function _4(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function b4(e){return e?w4(e)?e:[e]:[]}function w4(e){return Array.isArray(e[0])}function kc(e,t,r){for(var s=0;s=t-r&&e<=t+r}function C4(e,t,r){var s=r[0],o=r[1],l=r[2],u=r[3],c=r[4],f=e[t+3],h=sa(f,u,c);return u?!!(!f&&h||sa(e[t],s,c)&&sa(e[t+1],o,c)&&sa(e[t+2],l,c)&&h):h}var k4=24;function E4(e,t,r){for(var s={},o=r.dominantDivider||k4,l=r.ignoredColor,u=r.step,c=[0,0,0,0,0],f=0;fl?(f=o/l,u=ju,c=Math.round(u/f)):(f=l/o,c=ju,u=Math.round(c/f)),(u>o||c>l||u"u";function N4(){return B4?mv?new OffscreenCanvas(1,1):null:document.createElement("canvas")}var W4="FastAverageColor: ";function Fn(e){return Error(W4+e)}function bs(e,t){t||console.error(e)}var F4=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(Fn("call .getColorAsync() without resource"));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(Fn("resource as string is not supported in this environment"));var s=new Image;return s.crossOrigin=r&&r.crossOrigin||"",s.src=t,this.bindImageEvents(s,r)}else{if(pv(t)&&!t.complete)return this.bindImageEvents(t,r);var o=this.getColor(t,r);return o.error?Promise.reject(o.error):Promise.resolve(o)}},e.prototype.getColor=function(t,r){r=r||{};var s=op(r);if(!t){var o=Fn("call .getColor() without resource");return bs(o,r.silent),this.prepareResult(s,o)}var l=T4(t),u=D4(l,r);if(!u.srcWidth||!u.srcHeight||!u.destWidth||!u.destHeight){var o=Fn('incorrect sizes for resource "'.concat(lp(t),'"'));return bs(o,r.silent),this.prepareResult(s,o)}if(!this.canvas&&(this.canvas=N4(),!this.canvas)){var o=Fn("OffscreenCanvas is not supported in this browser");return bs(o,r.silent),this.prepareResult(s,o)}if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx){var o=Fn("Canvas Context 2D is not supported in this browser");return bs(o,r.silent),this.prepareResult(s)}this.ctx.imageSmoothingEnabled=!1}this.canvas.width=u.destWidth,this.canvas.height=u.destHeight;try{this.ctx.clearRect(0,0,u.destWidth,u.destHeight),this.ctx.drawImage(t,u.srcLeft,u.srcTop,u.srcWidth,u.srcHeight,0,0,u.destWidth,u.destHeight);var c=this.ctx.getImageData(0,0,u.destWidth,u.destHeight).data;return this.prepareResult(this.getColorFromArray4(c,r))}catch(f){var o=Fn("security error (CORS) for resource ".concat(lp(t),`. +Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`));return bs(o,r.silent),!r.silent&&console.error(f),this.prepareResult(s,o)}},e.prototype.getColorFromArray4=function(t,r){r=r||{};var s=4,o=t.length,l=op(r);if(o{localStorage.setItem(vv,JSON.stringify({sidebar:e.sidebar,player:e.player,theme:e.theme,ambient:e.ambient}))},H4={sidebar:{sports:!1,news:!1,collapsed:!1},player:{expandedCover:!1,pictureInPicture:!1,type:"web"},theme:V4,ambient:!0},Ss=()=>JSON.parse(localStorage.getItem(vv)||JSON.stringify(H4)),U4=()=>{const e=Ss();console.log("migrateSettings",e);const t=localStorage.getItem("sidebar.showSportsTab"),r=localStorage.getItem("sidebar.showNewsTab"),s=localStorage.getItem("player.inBrowser"),o=localStorage.getItem("player.collapsedSidebar"),l=localStorage.getItem("player.exapndCover"),u=localStorage.getItem("theme");t&&(e.sidebar.sports=t==="true",localStorage.removeItem("sidebar.showSportsTab")),r&&(e.sidebar.news=r==="true",localStorage.removeItem("sidebar.showNewsTab")),s&&localStorage.removeItem("player.inBrowser"),o&&(e.sidebar.collapsed=o==="true",localStorage.removeItem("player.collapsedSidebar")),l&&(e.player.expandedCover=l==="true",localStorage.removeItem("player.exapndCover")),u&&(e.theme=u,localStorage.removeItem("theme")),gv(e)},Ur=to("settings",()=>{U4();const e=Pe(Ss().player),t=Pe(Ss().sidebar),r=Pe(Ss().theme),s=Pe(Ss().ambient),o=()=>{gv({player:e.value,sidebar:t.value,theme:r.value,ambient:s.value})};st(()=>e,o,{deep:!0}),st(()=>t,o,{deep:!0}),st(()=>r,o,{deep:!0}),st(()=>s,o,{deep:!0});const l=Fe(()=>window.getCurrentThemeProperty&&window.getCurrentThemeProperty("supportsAmbient"));return{player:e,sidebar:t,theme:r,ambient:s,themeSupportsAmbient:l}}),Os=new F4,Rs=(e,t)=>{const r=e.hex,s=Math.round(t*255).toString(16);return r+s},q4=async(e,t,r=.25)=>{if(!Ur().ambient)return;var o=e.width/100,l=e.height/100,u=e.naturalWidth,c=e.naturalHeight;const f=await Promise.all([Os.getColorAsync(t,{height:l}),Os.getColorAsync(t,{left:u-o,width:o}),Os.getColorAsync(t,{width:o}),Os.getColorAsync(t,{top:c-l,height:l})]);o*=40,l*=40;var h=Rs(f[0],r),p=Rs(f[1],r),v=Rs(f[2],r),m=Rs(f[3],r);const y=" 10px",x=` ${o}px `,k=o+"px",R=l+"px";e.style.boxShadow=["0 -".concat(R," ").concat(x," ").concat(y," ").concat(h),"".concat(k," 0 ").concat(x," ").concat(y," ").concat(p),"0 ".concat(R," ").concat(x," ").concat(y," ").concat(v),"-".concat(k," 0 ").concat(x," ").concat(y," ").concat(m)].join(", ")},j4=async(e,t,r="to top right",s=.2)=>{if(!Ur().ambient)return;const l=await Os.getColorAsync(t),u=Rs(l,s),c=`linear-gradient(${r}, ${u}, transparent)`;e.style.background=c},K4={dark:!1,dynamic:!0},z4={dark:!0,dynamic:!1},li={"fg-secondary":{dark:"#1ed760",dynamic:"#00c48b",light:"#18a74b"},"fg-secondary-dk":{dark:"#217e41",dynamic:"#00c48b",light:"#80dda0"},"bg-contrast":{dark:"white",dynamic:"whitesmoke",light:"#181c2f"},"fg-contrast":{dark:"#121212",dynamic:"#1e1e1e",light:"white"},"fg-base":{dark:"white",dynamic:"whitesmoke",light:"#181c2f"},"fg-base-dk":{dark:"#a7a7a7",dynamic:"#c2bebe",light:"#8b8c91"},"fg-base-dkr":{dark:"#999",light:"#8b8c91",dynamic:"#999"},"bg-hover-ltr":{dark:"#242424"},"bg-hover-lt":{dark:"hsla(0,0%,100%,0.04)",light:"#b3b3b31f"},"bg-hover":{dark:"hsla(0,0%,100%,0.3)",dynamic:"#00c48b82",light:"#7c828f5e"},"bg-hover-dk":{dark:"hsla(0,0%,100%,0.1)",dynamic:"#00c48b42",light:"#E3E7EB"},"bg-gradient":{dark:"linear-gradient(to left bottom, #1ed760, #217e41)",dynamic:"linear-gradient(to left bottom, #00a53c, #00297f)",light:"linear-gradient(to left bottom, #18a74b, #80dda0)"},"bg-gradient-placeholder":{dark:"linear-gradient(to left bottom, #00a53c, #00297f)"},"bg-base":{dark:"#121212",light:"white"},"bg-base-lt":{dark:"#181818",dynamic:"linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3))",light:"#f3f7fb"},"bg-base-dk":{dark:"black",dynamic:"linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3))",light:"#f3f7fb"},"bg-input":{dark:"var(--background-light)",light:"var(--background)"},"bg-fixedPlaylistHeader":{dark:"var(--bg-base-lt)",dynamic:"#374148"},"border-fixedPlaylistHeader":{dark:"#303030",dynamic:"none",light:"#D0D0D0"},"border-base":{dark:"hsla(0,0%,100%,0.1)",light:"#E3E7EB"},"border-container":{dark:"1px solid var(--border-base)",light:"1px solid var(--border-base)",dynamic:"1px solid transparent"},"ff-base":{dark:"Poppins, sans-serif"},"h-playlistEntry":{dark:"64px"},"h-player":{dark:"88px"},"h-player-mobile":{dark:"64px"},"h-header":{dark:"64px"},coverAsBackground:K4,supportsAmbient:z4},Ka=()=>Ur();window.getThemes=()=>{window.themes=[];for(const e of Object.keys(li))for(const t of Object.keys(li[e]))window.themes.includes(t)||window.themes.push(t);return window.themes};window.getCurrentTheme=()=>Ka().theme;window.setTheme=e=>{if(window.getThemes().includes(e)){Ka().theme=e;for(const t of Object.keys(li)){const r=li[t];t!="coverAsBackground"&&document.documentElement.style.setProperty(`--${t}`,r[e]??r.dark)}}};window.restoreTheme=()=>window.setTheme(Ka().theme||"dynamic");window.getCurrentThemeProperty=e=>{const t=li[e];return t[Ka().theme]??t.dark};const yv=window,Z4=["alt","src"],oi=ze({__name:"Cover",props:{src:{type:String,required:!0},type:{type:String,required:!1,default:"track"},placeholder:{type:String,required:!1},withAmbient:{type:Boolean,required:!1,default:!1},ambientOpacity:{type:Number,required:!1,default:.2},name:{type:String,required:!1}},setup(e){const t=e,r=Pe(null),s=async()=>{if(r.value=await Cc(t.name),!r.value){setTimeout(()=>{s()},100);return}},o=()=>{r.value=cv(t.src,t.type),r.value||s()};st(()=>t.src,o),o();const l=Pe(null),u=async()=>{if(!t.withAmbient||!l.value||!yv.getCurrentThemeProperty("supportsAmbient"))return;const c=await Pa(r.value,t.name);q4(l.value,c,t.ambientOpacity)};return(c,f)=>(ne(),ge("img",{ref_key:"element",ref:l,alt:t.type,src:se(Pa)(r.value,e.name),class:"cover rounded-md",onError:s,onLoad:u},null,40,Z4))}});const G4={name:"NavEntry",components:{Cover:oi},props:{icon:String,img:String,name:String,href:String,hasChildSites:Boolean,parentHref:String,minimised:Boolean},computed:{showImg(){return this.img?!0:/^\/playlist\/\w{22}$/.exec(this.href)},active(){return this.hasChildSites?this.$route.path.includes(this.href)?!0:(console.log(this.parentHref),this.parentHref&&this.$route.path.includes(this.parentHref)):!1}}},Y4={key:0,class:"material-icons-round icon"},J4={key:2,class:"name hideIfMobile"};function X4(e,t,r,s,o,l){const u=Hi("Cover"),c=Hi("router-link");return ne(),je(c,{to:r.href,class:"link"},{default:Ot(()=>[te("div",{class:Je([{active:l.active,img:l.showImg},"navEntry"])},[r.icon?(ne(),ge("span",Y4,Be(r.icon),1)):We("",!0),l.showImg?(ne(),je(u,{key:1,src:r.img,class:"icon",type:"playlist",name:r.name},null,8,["src","name"])):We("",!0),r.minimised?We("",!0):(ne(),ge("span",J4,Be(r.name),1))],2)]),_:1},8,["to"])}const Tn=at(G4,[["render",X4],["__scopeId","data-v-2ced8467"]]),Q4="modulepreload",eP=function(e){return"/"+e},up={},pt=function(t,r,s){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(l=>{if(l=eP(l),l in up)return;up[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!s)for(let p=o.length-1;p>=0;p--){const v=o[p];if(v.href===l&&(!u||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Q4,u||(h.as="script",h.crossOrigin=""),h.href=l,document.head.appendChild(h),u)return new Promise((p,v)=>{h.addEventListener("load",p),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ii=typeof window<"u";function tP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ut=Object.assign;function gu(e,t){const r={};for(const s in t){const o=t[s];r[s]=$n(o)?o.map(e):e(o)}return r}const Bs=()=>{},$n=Array.isArray,nP=/\/$/,rP=e=>e.replace(nP,"");function yu(e,t,r="/"){let s,o={},l="",u="";const c=t.indexOf("#");let f=t.indexOf("?");return c=0&&(f=-1),f>-1&&(s=t.slice(0,f),l=t.slice(f+1,c>-1?c:t.length),o=e(l)),c>-1&&(s=s||t.slice(0,c),u=t.slice(c,t.length)),s=aP(s??t,r),{fullPath:s+(l&&"?")+l+u,path:s,query:o,hash:u}}function iP(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function cp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sP(e,t,r){const s=t.matched.length-1,o=r.matched.length-1;return s>-1&&s===o&&Zi(t.matched[s],r.matched[o])&&_v(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Zi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _v(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!oP(e[r],t[r]))return!1;return!0}function oP(e,t){return $n(e)?fp(e,t):$n(t)?fp(t,e):e===t}function fp(e,t){return $n(t)?e.length===t.length&&e.every((r,s)=>r===t[s]):e.length===1&&e[0]===t}function aP(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let l=r.length-1,u,c;for(u=0;u1&&l--;else break;return r.slice(0,l).join("/")+"/"+s.slice(u-(u===s.length?1:0)).join("/")}var Ys;(function(e){e.pop="pop",e.push="push"})(Ys||(Ys={}));var Ns;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ns||(Ns={}));function lP(e){if(!e)if(Ii){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rP(e)}const uP=/^[^#]+#/;function cP(e,t){return e.replace(uP,"#")+t}function fP(e,t){const r=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-r.left-(t.left||0),top:s.top-r.top-(t.top||0)}}const za=()=>({left:window.pageXOffset,top:window.pageYOffset});function dP(e){let t;if("el"in e){const r=e.el,s=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?s?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=fP(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function dp(e,t){return(history.state?history.state.position-t:-1)+e}const Ku=new Map;function hP(e,t){Ku.set(e,t)}function pP(e){const t=Ku.get(e);return Ku.delete(e),t}let mP=()=>location.protocol+"//"+location.host;function bv(e,t){const{pathname:r,search:s,hash:o}=t,l=e.indexOf("#");if(l>-1){let c=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(c);return f[0]!=="/"&&(f="/"+f),cp(f,"")}return cp(r,e)+s+o}function vP(e,t,r,s){let o=[],l=[],u=null;const c=({state:m})=>{const b=bv(e,location),y=r.value,E=t.value;let R=0;if(m){if(r.value=b,t.value=m,u&&u===y){u=null;return}R=E?m.position-E.position:0}else s(b);o.forEach(S=>{S(r.value,y,{delta:R,type:Ys.pop,direction:R?R>0?Ns.forward:Ns.back:Ns.unknown})})};function f(){u=r.value}function h(m){o.push(m);const b=()=>{const y=o.indexOf(m);y>-1&&o.splice(y,1)};return l.push(b),b}function p(){const{history:m}=window;m.state&&m.replaceState(ut({},m.state,{scroll:za()}),"")}function v(){for(const m of l)m();l=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:f,listen:h,destroy:v}}function hp(e,t,r,s=!1,o=!1){return{back:e,current:t,forward:r,replaced:s,position:window.history.length,scroll:o?za():null}}function gP(e){const{history:t,location:r}=window,s={value:bv(e,r)},o={value:t.state};o.value||l(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(f,h,p){const v=e.indexOf("#"),m=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+f:mP()+e+f;try{t[p?"replaceState":"pushState"](h,"",m),o.value=h}catch(b){console.error(b),r[p?"replace":"assign"](m)}}function u(f,h){const p=ut({},t.state,hp(o.value.back,f,o.value.forward,!0),h,{position:o.value.position});l(f,p,!0),s.value=f}function c(f,h){const p=ut({},o.value,t.state,{forward:f,scroll:za()});l(p.current,p,!0);const v=ut({},hp(s.value,f,null),{position:p.position+1},h);l(f,v,!1),s.value=f}return{location:s,state:o,push:c,replace:u}}function yP(e){e=lP(e);const t=gP(e),r=vP(e,t.state,t.location,t.replace);function s(l,u=!0){u||r.pauseListeners(),history.go(l)}const o=ut({location:"",base:e,go:s,createHref:cP.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _P(e){return typeof e=="string"||e&&typeof e=="object"}function wv(e){return typeof e=="string"||typeof e=="symbol"}const Pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Av=Symbol("");var pp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pp||(pp={}));function Gi(e,t){return ut(new Error,{type:e,[Av]:!0},t)}function tr(e,t){return e instanceof Error&&Av in e&&(t==null||!!(e.type&t))}const mp="[^/]+?",bP={sensitive:!1,strict:!1,start:!0,end:!0},wP=/[.+*?^${}()[\]/\\]/g;function AP(e,t){const r=ut({},bP,t),s=[];let o=r.start?"^":"";const l=[];for(const h of e){const p=h.length?[]:[90];r.strict&&!h.length&&(o+="/");for(let v=0;vt.length?t.length===1&&t[0]===40+40?1:-1:0}function PP(e,t){let r=0;const s=e.score,o=t.score;for(;r0&&t[t.length-1]<0}const CP={type:0,value:""},kP=/[a-zA-Z0-9_]/;function EP(e){if(!e)return[[]];if(e==="/")return[[CP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${r})/"${h}": ${b}`)}let r=0,s=r;const o=[];let l;function u(){l&&o.push(l),l=[]}let c=0,f,h="",p="";function v(){h&&(r===0?l.push({type:0,value:h}):r===1||r===2||r===3?(l.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:h,regexp:p,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),h="")}function m(){h+=f}for(;c{u(O)}:Bs}function u(p){if(wv(p)){const v=s.get(p);v&&(s.delete(p),r.splice(r.indexOf(v),1),v.children.forEach(u),v.alias.forEach(u))}else{const v=r.indexOf(p);v>-1&&(r.splice(v,1),p.record.name&&s.delete(p.record.name),p.children.forEach(u),p.alias.forEach(u))}}function c(){return r}function f(p){let v=0;for(;v=0&&(p.record.path!==r[v].record.path||!xv(p,r[v]));)v++;r.splice(v,0,p),p.record.name&&!yp(p)&&s.set(p.record.name,p)}function h(p,v){let m,b={},y,E;if("name"in p&&p.name){if(m=s.get(p.name),!m)throw Gi(1,{location:p});E=m.record.name,b=ut(gp(v.params,m.keys.filter(O=>!O.optional).map(O=>O.name)),p.params&&gp(p.params,m.keys.map(O=>O.name))),y=m.stringify(b)}else if("path"in p)y=p.path,m=r.find(O=>O.re.test(y)),m&&(b=m.parse(y),E=m.record.name);else{if(m=v.name?s.get(v.name):r.find(O=>O.re.test(v.path)),!m)throw Gi(1,{location:p,currentLocation:v});E=m.record.name,b=ut({},v.params,p.params),y=m.stringify(b)}const R=[];let S=m;for(;S;)R.unshift(S.record),S=S.parent;return{name:E,path:y,params:b,matched:R,meta:IP(R)}}return e.forEach(p=>l(p)),{addRoute:l,resolve:h,removeRoute:u,getRoutes:c,getRecordMatcher:o}}function gp(e,t){const r={};for(const s of t)s in e&&(r[s]=e[s]);return r}function RP(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:TP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function TP(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const s in e.components)t[s]=typeof r=="object"?r[s]:r;return t}function yp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function IP(e){return e.reduce((t,r)=>ut(t,r.meta),{})}function _p(e,t){const r={};for(const s in e)r[s]=s in t?t[s]:e[s];return r}function xv(e,t){return t.children.some(r=>r===e||xv(e,r))}const Pv=/#/g,MP=/&/g,LP=/\//g,$P=/=/g,DP=/\?/g,Cv=/\+/g,BP=/%5B/g,NP=/%5D/g,kv=/%5E/g,WP=/%60/g,Ev=/%7B/g,FP=/%7C/g,Sv=/%7D/g,VP=/%20/g;function Ec(e){return encodeURI(""+e).replace(FP,"|").replace(BP,"[").replace(NP,"]")}function HP(e){return Ec(e).replace(Ev,"{").replace(Sv,"}").replace(kv,"^")}function zu(e){return Ec(e).replace(Cv,"%2B").replace(VP,"+").replace(Pv,"%23").replace(MP,"%26").replace(WP,"`").replace(Ev,"{").replace(Sv,"}").replace(kv,"^")}function UP(e){return zu(e).replace($P,"%3D")}function qP(e){return Ec(e).replace(Pv,"%23").replace(DP,"%3F")}function jP(e){return e==null?"":qP(e).replace(LP,"%2F")}function Ca(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function KP(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ol&&zu(l)):[s&&zu(s)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+r,l!=null&&(t+="="+l))})}return t}function zP(e){const t={};for(const r in e){const s=e[r];s!==void 0&&(t[r]=$n(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const ZP=Symbol(""),wp=Symbol(""),Za=Symbol(""),Sc=Symbol(""),Zu=Symbol("");function ws(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Or(e,t,r,s,o){const l=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((u,c)=>{const f=v=>{v===!1?c(Gi(4,{from:r,to:t})):v instanceof Error?c(v):_P(v)?c(Gi(2,{from:t,to:v})):(l&&s.enterCallbacks[o]===l&&typeof v=="function"&&l.push(v),u())},h=e.call(s&&s.instances[o],t,r,f);let p=Promise.resolve(h);e.length<3&&(p=p.then(f)),p.catch(v=>c(v))})}function _u(e,t,r,s){const o=[];for(const l of e)for(const u in l.components){let c=l.components[u];if(!(t!=="beforeRouteEnter"&&!l.instances[u]))if(GP(c)){const h=(c.__vccOpts||c)[t];h&&o.push(Or(h,r,s,l,u))}else{let f=c();o.push(()=>f.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${l.path}"`));const p=tP(h)?h.default:h;l.components[u]=p;const m=(p.__vccOpts||p)[t];return m&&Or(m,r,s,l,u)()}))}}return o}function GP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ap(e){const t=nn(Za),r=nn(Sc),s=Ve(()=>t.resolve(se(e.to))),o=Ve(()=>{const{matched:f}=s.value,{length:h}=f,p=f[h-1],v=r.matched;if(!p||!v.length)return-1;const m=v.findIndex(Zi.bind(null,p));if(m>-1)return m;const b=xp(f[h-2]);return h>1&&xp(p)===b&&v[v.length-1].path!==b?v.findIndex(Zi.bind(null,f[h-2])):m}),l=Ve(()=>o.value>-1&&QP(r.params,s.value.params)),u=Ve(()=>o.value>-1&&o.value===r.matched.length-1&&_v(r.params,s.value.params));function c(f={}){return XP(f)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(Bs):Promise.resolve()}return{route:s,href:Ve(()=>s.value.href),isActive:l,isExactActive:u,navigate:c}}const YP=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ap,setup(e,{slots:t}){const r=Qi(Ap(e)),{options:s}=nn(Za),o=Ve(()=>({[Pp(e.activeClass,s.linkActiveClass,"router-link-active")]:r.isActive,[Pp(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const l=t.default&&t.default(r);return e.custom?l:gc("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},l)}}}),JP=YP;function XP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function QP(e,t){for(const r in t){const s=t[r],o=e[r];if(typeof s=="string"){if(s!==o)return!1}else if(!$n(o)||o.length!==s.length||s.some((l,u)=>l!==o[u]))return!1}return!0}function xp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pp=(e,t,r)=>e??t??r,e3=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const s=nn(Zu),o=Ve(()=>e.route||s.value),l=nn(wp,0),u=Ve(()=>{let h=se(l);const{matched:p}=o.value;let v;for(;(v=p[h])&&!v.components;)h++;return h}),c=Ve(()=>o.value.matched[u.value]);Rr(wp,Ve(()=>u.value+1)),Rr(ZP,c),Rr(Zu,o);const f=Pe();return st(()=>[f.value,c.value,e.name],([h,p,v],[m,b,y])=>{p&&(p.instances[v]=h,b&&b!==p&&h&&h===m&&(p.leaveGuards.size||(p.leaveGuards=b.leaveGuards),p.updateGuards.size||(p.updateGuards=b.updateGuards))),h&&p&&(!b||!Zi(p,b)||!m)&&(p.enterCallbacks[v]||[]).forEach(E=>E(h))},{flush:"post"}),()=>{const h=o.value,p=e.name,v=c.value,m=v&&v.components[p];if(!m)return Cp(r.default,{Component:m,route:h});const b=v.props[p],y=b?b===!0?h.params:typeof b=="function"?b(h):b:null,R=gc(m,ut({},y,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(v.instances[p]=null)},ref:f}));return Cp(r.default,{Component:R,route:h})||R}}});function Cp(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const t3=e3;function n3(e){const t=OP(e.routes,e),r=e.parseQuery||KP,s=e.stringifyQuery||bp,o=e.history,l=ws(),u=ws(),c=ws(),f=hA(Pr);let h=Pr;Ii&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=gu.bind(null,X=>""+X),v=gu.bind(null,jP),m=gu.bind(null,Ca);function b(X,oe){let de,Ae;return wv(X)?(de=t.getRecordMatcher(X),Ae=oe):Ae=X,t.addRoute(Ae,de)}function y(X){const oe=t.getRecordMatcher(X);oe&&t.removeRoute(oe)}function E(){return t.getRoutes().map(X=>X.record)}function R(X){return!!t.getRecordMatcher(X)}function S(X,oe){if(oe=ut({},oe||f.value),typeof X=="string"){const z=yu(r,X,oe.path),re=t.resolve({path:z.path},oe),ce=o.createHref(z.fullPath);return ut(z,re,{params:m(re.params),hash:Ca(z.hash),redirectedFrom:void 0,href:ce})}let de;if("path"in X)de=ut({},X,{path:yu(r,X.path,oe.path).path});else{const z=ut({},X.params);for(const re in z)z[re]==null&&delete z[re];de=ut({},X,{params:v(z)}),oe.params=v(oe.params)}const Ae=t.resolve(de,oe),Re=X.hash||"";Ae.params=p(m(Ae.params));const T=iP(s,ut({},X,{hash:HP(Re),path:Ae.path})),D=o.createHref(T);return ut({fullPath:T,hash:Re,query:s===bp?zP(X.query):X.query||{}},Ae,{redirectedFrom:void 0,href:D})}function O(X){return typeof X=="string"?yu(r,X,f.value.path):ut({},X)}function M(X,oe){if(h!==X)return Gi(8,{from:oe,to:X})}function k(X){return U(X)}function I(X){return k(ut(O(X),{replace:!0}))}function H(X){const oe=X.matched[X.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Ae=typeof de=="function"?de(X):de;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=O(Ae):{path:Ae},Ae.params={}),ut({query:X.query,hash:X.hash,params:"path"in Ae?{}:X.params},Ae)}}function U(X,oe){const de=h=S(X),Ae=f.value,Re=X.state,T=X.force,D=X.replace===!0,z=H(de);if(z)return U(ut(O(z),{state:typeof z=="object"?ut({},Re,z.state):Re,force:T,replace:D}),oe||de);const re=de;re.redirectedFrom=oe;let ce;return!T&&sP(s,Ae,de)&&(ce=Gi(16,{to:re,from:Ae}),_(Ae,Ae,!0,!1)),(ce?Promise.resolve(ce):K(re,Ae)).catch(le=>tr(le)?tr(le,2)?le:B(le):w(le,re,Ae)).then(le=>{if(le){if(tr(le,2))return U(ut({replace:D},O(le.to),{state:typeof le.to=="object"?ut({},Re,le.to.state):Re,force:T}),oe||re)}else le=G(re,Ae,!0,D,Re);return q(re,Ae,le),le})}function N(X,oe){const de=M(X,oe);return de?Promise.reject(de):Promise.resolve()}function j(X){const oe=xe.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(X):X()}function K(X,oe){let de;const[Ae,Re,T]=r3(X,oe);de=_u(Ae.reverse(),"beforeRouteLeave",X,oe);for(const z of Ae)z.leaveGuards.forEach(re=>{de.push(Or(re,X,oe))});const D=N.bind(null,X,oe);return de.push(D),Oe(de).then(()=>{de=[];for(const z of l.list())de.push(Or(z,X,oe));return de.push(D),Oe(de)}).then(()=>{de=_u(Re,"beforeRouteUpdate",X,oe);for(const z of Re)z.updateGuards.forEach(re=>{de.push(Or(re,X,oe))});return de.push(D),Oe(de)}).then(()=>{de=[];for(const z of T)if(z.beforeEnter)if($n(z.beforeEnter))for(const re of z.beforeEnter)de.push(Or(re,X,oe));else de.push(Or(z.beforeEnter,X,oe));return de.push(D),Oe(de)}).then(()=>(X.matched.forEach(z=>z.enterCallbacks={}),de=_u(T,"beforeRouteEnter",X,oe),de.push(D),Oe(de))).then(()=>{de=[];for(const z of u.list())de.push(Or(z,X,oe));return de.push(D),Oe(de)}).catch(z=>tr(z,8)?z:Promise.reject(z))}function q(X,oe,de){c.list().forEach(Ae=>j(()=>Ae(X,oe,de)))}function G(X,oe,de,Ae,Re){const T=M(X,oe);if(T)return T;const D=oe===Pr,z=Ii?history.state:{};de&&(Ae||D?o.replace(X.fullPath,ut({scroll:D&&z&&z.scroll},Re)):o.push(X.fullPath,Re)),f.value=X,_(X,oe,de,D),B()}let F;function x(){F||(F=o.listen((X,oe,de)=>{if(!_e.listening)return;const Ae=S(X),Re=H(Ae);if(Re){U(ut(Re,{replace:!0}),Ae).catch(Bs);return}h=Ae;const T=f.value;Ii&&hP(dp(T.fullPath,de.delta),za()),K(Ae,T).catch(D=>tr(D,12)?D:tr(D,2)?(U(D.to,Ae).then(z=>{tr(z,20)&&!de.delta&&de.type===Ys.pop&&o.go(-1,!1)}).catch(Bs),Promise.reject()):(de.delta&&o.go(-de.delta,!1),w(D,Ae,T))).then(D=>{D=D||G(Ae,T,!1),D&&(de.delta&&!tr(D,8)?o.go(-de.delta,!1):de.type===Ys.pop&&tr(D,20)&&o.go(-1,!1)),q(Ae,T,D)}).catch(Bs)}))}let L=ws(),V=ws(),P;function w(X,oe,de){B(X);const Ae=V.list();return Ae.length?Ae.forEach(Re=>Re(X,oe,de)):console.error(X),Promise.reject(X)}function Y(){return P&&f.value!==Pr?Promise.resolve():new Promise((X,oe)=>{L.add([X,oe])})}function B(X){return P||(P=!X,x(),L.list().forEach(([oe,de])=>X?de(X):oe()),L.reset()),X}function _(X,oe,de,Ae){const{scrollBehavior:Re}=e;if(!Ii||!Re)return Promise.resolve();const T=!de&&pP(dp(X.fullPath,0))||(Ae||!de)&&history.state&&history.state.scroll||null;return ur().then(()=>Re(X,oe,T)).then(D=>D&&dP(D)).catch(D=>w(D,X,oe))}const Q=X=>o.go(X);let pe;const xe=new Set,_e={currentRoute:f,listening:!0,addRoute:b,removeRoute:y,hasRoute:R,getRoutes:E,resolve:S,options:e,push:k,replace:I,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:l.add,beforeResolve:u.add,afterEach:c.add,onError:V.add,isReady:Y,install(X){const oe=this;X.component("RouterLink",JP),X.component("RouterView",t3),X.config.globalProperties.$router=oe,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>se(f)}),Ii&&!pe&&f.value===Pr&&(pe=!0,k(o.location).catch(Re=>{}));const de={};for(const Re in Pr)Object.defineProperty(de,Re,{get:()=>f.value[Re],enumerable:!0});X.provide(Za,oe),X.provide(Sc,rm(de)),X.provide(Zu,f);const Ae=X.unmount;xe.add(X),X.unmount=function(){xe.delete(X),xe.size<1&&(h=Pr,F&&F(),F=null,f.value=Pr,pe=!1,P=!1),Ae()}}};function Oe(X){return X.reduce((oe,de)=>oe.then(()=>j(de)),Promise.resolve())}return _e}function r3(e,t){const r=[],s=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;uZi(h,c))?s.push(c):r.push(c));const f=e.matched[u];f&&(t.matched.find(h=>Zi(h,f))||o.push(f))}return[r,s,o]}function i3(){return nn(Za)}function Oc(){return nn(Sc)}const s3=[{path:"/",component:()=>pt(()=>import("./index-5d1bd560.js"),["assets/index-5d1bd560.js","assets/TrackCompact-8c571f42.js","assets/TrackCompact-79c8b159.css","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/spotify-50eca206.js","assets/PlaylistItem-8e935ec4.js","assets/PlaylistItem-1de8bde1.css","assets/index-bd89c879.css"])},{path:"/discover",component:()=>pt(()=>import("./Explore-4b9b1614.js"),["assets/Explore-4b9b1614.js","assets/Explore-1b45015b.css"]),meta:{title:"Discover - reAudioPlayer One"}},{path:"/audius/callback",redirect:e=>(window.location.href=window.location.origin+"/api/audius/callback"+e.hash.replace("#","?"),null)},{name:"Search",path:"/search/:query",component:()=>pt(()=>import("./index-47e6e554.js"),["assets/index-47e6e554.js","assets/index-1de74717.css"]),meta:{title:"Search - reAudioPlayer One"}},{path:"/collection/albums",component:()=>pt(()=>import("./Albums-e315f40c.js"),["assets/Albums-e315f40c.js","assets/CollectionHeader-b8a4afb0.js","assets/CollectionHeader-9c02c260.css","assets/Albums-9b5db7b3.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/artists",component:()=>pt(()=>import("./Artists-9a115461.js"),["assets/Artists-9a115461.js","assets/FullShelf-94271883.js","assets/FullShelf-62d1d109.css","assets/CollectionHeader-b8a4afb0.js","assets/CollectionHeader-9c02c260.css","assets/Artists-45473996.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/playlists",component:()=>pt(()=>import("./Playlists-45ff5629.js"),["assets/Playlists-45ff5629.js","assets/FullShelf-94271883.js","assets/FullShelf-62d1d109.css","assets/PlaylistItem-8e935ec4.js","assets/playerInPicture-af203fdf.js","assets/PlaylistItem-1de8bde1.css","assets/CollectionHeader-b8a4afb0.js","assets/CollectionHeader-9c02c260.css","assets/Playlists-d44628c1.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/releases",component:()=>pt(()=>import("./Releases-d2d1819d.js"),["assets/Releases-d2d1819d.js","assets/CollectionHeader-b8a4afb0.js","assets/CollectionHeader-9c02c260.css","assets/playerInPicture-af203fdf.js","assets/Releases-b3f5cb50.css"]),meta:{title:"Releases - reAudioPlayer One"}},{path:"/collection/tracks",component:()=>pt(()=>import("./Liked-7933f62e.js"),["assets/Liked-7933f62e.js","assets/Template-e0818326.js","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-e9e3d5c4.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-63edeca1.js","assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Liked Songs - reAudioPlayer One"}},{path:"/collection/tracks/breaking",component:()=>pt(()=>import("./Breaking-e008ad36.js"),["assets/Breaking-e008ad36.js","assets/Template-e0818326.js","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-e9e3d5c4.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-63edeca1.js","assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Breaking Songs - reAudioPlayer One"}},{path:"/playlist/create",component:()=>pt(()=>import("./Create-b56d4917.js"),["assets/Create-b56d4917.js","assets/Create-8ab3526b.css"]),meta:{title:"Create Playlist - reAudioPlayer One"}},{path:"/playlist/:id/edit",component:()=>pt(()=>import("./Editor-728b12af.js"),["assets/Editor-728b12af.js","assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/Editor-29aa8a80.css"]),meta:{title:"Smart Playlist Editor - reAudioPlayer One"}},{path:"/playlist/:id",component:()=>pt(()=>import("./Normal-e24a5b2f.js"),["assets/Normal-e24a5b2f.js","assets/Template-e0818326.js","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-e9e3d5c4.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-63edeca1.js","assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Playlist - reAudioPlayer One"}},{path:"/track/:hash",component:()=>pt(()=>import("./Track-4d6e682b.js"),["assets/Track-4d6e682b.js","assets/FactCard-e9e3d5c4.js","assets/FactCard-3c5d1fcf.css","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/spotify-50eca206.js","assets/Track-7c1d0a5c.css"]),meta:{title:"Track - reAudioPlayer One"}},{path:"/artist/:name",component:()=>pt(()=>import("./Artist-320cfdeb.js"),["assets/Artist-320cfdeb.js","assets/FactCard-e9e3d5c4.js","assets/FactCard-3c5d1fcf.css","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/spotify-50eca206.js","assets/Artist-a6b528f5.css"]),meta:{title:"Artist - reAudioPlayer One"}},{path:"/preferences",component:()=>pt(()=>import("./index-e6a9a5a2.js"),["assets/index-e6a9a5a2.js","assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js","assets/Markdown-d883632e.css","assets/TrackCompact-8c571f42.js","assets/TrackCompact-79c8b159.css","assets/gistClient-63edeca1.js","assets/index-c7c58561.css"]),meta:{title:"Preferences - reAudioPlayer One"}},{path:"/import",component:()=>pt(()=>import("./Import-d1f36c56.js"),["assets/Import-d1f36c56.js","assets/gistClient-63edeca1.js","assets/Import-5bb9c089.css"]),meta:{title:"Import - reAudioPlayer One"}},{path:"/import/:id",component:()=>pt(()=>import("./ImportLink-dd654ee2.js"),["assets/ImportLink-dd654ee2.js","assets/ImportLink-fa9af2ae.css"]),meta:{title:"Import - reAudioPlayer One"}},{path:"/export",component:()=>pt(()=>import("./Export-50946e36.js"),["assets/Export-50946e36.js","assets/gistClient-63edeca1.js","assets/Export-a03f6dd4.css"]),meta:{title:"Export - reAudioPlayer One"}},{path:"/sing-along",component:()=>pt(()=>import("./index-f2b722ff.js"),["assets/index-f2b722ff.js","assets/index-4e4ed216.css"]),meta:{title:"Sing Along - reAudioPlayer One"}},{path:"/download",component:()=>pt(()=>import("./index-712f8d27.js"),["assets/index-712f8d27.js","assets/index-3d76937e.css"]),meta:{title:"Download - reAudioPlayer One"}},{path:"/welcome",component:()=>pt(()=>import("./Welcome-c9a11eb5.js"),["assets/Welcome-c9a11eb5.js","assets/Welcome-5b21c29e.css"]),meta:{title:"Welcome to reAudioPlayer One"}},{path:"/news",component:()=>pt(()=>import("./News-bc3272d2.js"),["assets/News-bc3272d2.js","assets/FullShelf-94271883.js","assets/FullShelf-62d1d109.css","assets/News-99169f9d.css"]),meta:{title:"News - reAudioPlayer One"}},{path:"/sports",component:()=>pt(()=>import("./Sports-86dac5f9.js"),["assets/Sports-86dac5f9.js","assets/FullShelf-94271883.js","assets/FullShelf-62d1d109.css","assets/Sports-385f73f9.css"]),meta:{title:"Sports - reAudioPlayer One"}},{path:"/news/:url",component:()=>pt(()=>import("./NewsArticle-fbd5f10d.js"),["assets/NewsArticle-fbd5f10d.js","assets/NewsArticle-03a45240.css"]),meta:{title:"News - reAudioPlayer One"}},{path:"/player/insights",component:()=>pt(()=>import("./Insight-a38a8858.js"),["assets/Insight-a38a8858.js","assets/Insight-8c46a3d4.css"]),meta:{title:"Insights - reAudioPlayer One"}},{path:"/player",component:()=>pt(()=>import("./BigPlayer-82fedc52.js"),["assets/BigPlayer-82fedc52.js","assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js","assets/PlaylistEntry-9c8199d3.js","assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/PlaylistItem-8e935ec4.js","assets/PlaylistItem-1de8bde1.css","assets/BigPlayer-4db387e6.css"]),meta:{title:"reAudioPlayer One"}}],Mi=n3({history:yP(),routes:s3}),o3=["placeholder","type"],a3=ze({__name:"TextInputWithIcon",props:{icon:String,placeholder:String,modelValue:String,type:{type:String,required:!1,default:"text"},onClick:{type:Function,required:!1},expanded:{type:Boolean,required:!1,default:!1},onKeyUp:{type:Function,required:!1}},emits:["update:modelValue","change","submit","focusout"],setup(e,{expose:t,emit:r}){const s=e,o=Pe(s.modelValue);st(()=>s.modelValue,h=>{o.value=h});const l=r,u=()=>{l("update:modelValue",o.value),l("change",o.value)},c=h=>{s.onKeyUp&&s.onKeyUp(h)||h.key==="Enter"&&l("submit",o)},f=Pe();return t({focus:()=>{f.value.focus()}}),(h,p)=>(ne(),ge("div",{class:Je(["text-input-with-icon rounded-3xl flex items-center px-4",{expanded:e.expanded}])},[te("span",{class:Je([{"cursor-pointer":e.onClick},"material-symbols-rounded ms-wght-200"]),onClick:p[0]||(p[0]=(...v)=>e.onClick&&e.onClick(...v))},We(e.icon),3),Ks(te("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>o.value=v),placeholder:e.placeholder,type:e.type,onInput:u,onKeyup:c,onFocusout:p[2]||(p[2]=v=>h.$emit("focusout")),ref_key:"element",ref:f},null,40,o3),[[bc,o.value]])],2))}});const Gu=at(a3,[["__scopeId","data-v-18a674c5"]]);var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z6(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),r}var ka={exports:{}};/** + */const Ii=typeof window<"u";function tP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ut=Object.assign;function gu(e,t){const r={};for(const s in t){const o=t[s];r[s]=$n(o)?o.map(e):e(o)}return r}const Bs=()=>{},$n=Array.isArray,nP=/\/$/,rP=e=>e.replace(nP,"");function yu(e,t,r="/"){let s,o={},l="",u="";const c=t.indexOf("#");let f=t.indexOf("?");return c=0&&(f=-1),f>-1&&(s=t.slice(0,f),l=t.slice(f+1,c>-1?c:t.length),o=e(l)),c>-1&&(s=s||t.slice(0,c),u=t.slice(c,t.length)),s=aP(s??t,r),{fullPath:s+(l&&"?")+l+u,path:s,query:o,hash:u}}function iP(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function cp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sP(e,t,r){const s=t.matched.length-1,o=r.matched.length-1;return s>-1&&s===o&&Zi(t.matched[s],r.matched[o])&&_v(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Zi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _v(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!oP(e[r],t[r]))return!1;return!0}function oP(e,t){return $n(e)?fp(e,t):$n(t)?fp(t,e):e===t}function fp(e,t){return $n(t)?e.length===t.length&&e.every((r,s)=>r===t[s]):e.length===1&&e[0]===t}function aP(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let l=r.length-1,u,c;for(u=0;u1&&l--;else break;return r.slice(0,l).join("/")+"/"+s.slice(u-(u===s.length?1:0)).join("/")}var Ys;(function(e){e.pop="pop",e.push="push"})(Ys||(Ys={}));var Ns;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ns||(Ns={}));function lP(e){if(!e)if(Ii){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rP(e)}const uP=/^[^#]+#/;function cP(e,t){return e.replace(uP,"#")+t}function fP(e,t){const r=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-r.left-(t.left||0),top:s.top-r.top-(t.top||0)}}const za=()=>({left:window.pageXOffset,top:window.pageYOffset});function dP(e){let t;if("el"in e){const r=e.el,s=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?s?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=fP(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function dp(e,t){return(history.state?history.state.position-t:-1)+e}const Ku=new Map;function hP(e,t){Ku.set(e,t)}function pP(e){const t=Ku.get(e);return Ku.delete(e),t}let mP=()=>location.protocol+"//"+location.host;function bv(e,t){const{pathname:r,search:s,hash:o}=t,l=e.indexOf("#");if(l>-1){let c=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(c);return f[0]!=="/"&&(f="/"+f),cp(f,"")}return cp(r,e)+s+o}function vP(e,t,r,s){let o=[],l=[],u=null;const c=({state:m})=>{const y=bv(e,location),x=r.value,k=t.value;let R=0;if(m){if(r.value=y,t.value=m,u&&u===x){u=null;return}R=k?m.position-k.position:0}else s(y);o.forEach(O=>{O(r.value,x,{delta:R,type:Ys.pop,direction:R?R>0?Ns.forward:Ns.back:Ns.unknown})})};function f(){u=r.value}function h(m){o.push(m);const y=()=>{const x=o.indexOf(m);x>-1&&o.splice(x,1)};return l.push(y),y}function p(){const{history:m}=window;m.state&&m.replaceState(ut({},m.state,{scroll:za()}),"")}function v(){for(const m of l)m();l=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:f,listen:h,destroy:v}}function hp(e,t,r,s=!1,o=!1){return{back:e,current:t,forward:r,replaced:s,position:window.history.length,scroll:o?za():null}}function gP(e){const{history:t,location:r}=window,s={value:bv(e,r)},o={value:t.state};o.value||l(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(f,h,p){const v=e.indexOf("#"),m=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+f:mP()+e+f;try{t[p?"replaceState":"pushState"](h,"",m),o.value=h}catch(y){console.error(y),r[p?"replace":"assign"](m)}}function u(f,h){const p=ut({},t.state,hp(o.value.back,f,o.value.forward,!0),h,{position:o.value.position});l(f,p,!0),s.value=f}function c(f,h){const p=ut({},o.value,t.state,{forward:f,scroll:za()});l(p.current,p,!0);const v=ut({},hp(s.value,f,null),{position:p.position+1},h);l(f,v,!1),s.value=f}return{location:s,state:o,push:c,replace:u}}function yP(e){e=lP(e);const t=gP(e),r=vP(e,t.state,t.location,t.replace);function s(l,u=!0){u||r.pauseListeners(),history.go(l)}const o=ut({location:"",base:e,go:s,createHref:cP.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _P(e){return typeof e=="string"||e&&typeof e=="object"}function wv(e){return typeof e=="string"||typeof e=="symbol"}const Pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Av=Symbol("");var pp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pp||(pp={}));function Gi(e,t){return ut(new Error,{type:e,[Av]:!0},t)}function tr(e,t){return e instanceof Error&&Av in e&&(t==null||!!(e.type&t))}const mp="[^/]+?",bP={sensitive:!1,strict:!1,start:!0,end:!0},wP=/[.+*?^${}()[\]/\\]/g;function AP(e,t){const r=ut({},bP,t),s=[];let o=r.start?"^":"";const l=[];for(const h of e){const p=h.length?[]:[90];r.strict&&!h.length&&(o+="/");for(let v=0;vt.length?t.length===1&&t[0]===40+40?1:-1:0}function PP(e,t){let r=0;const s=e.score,o=t.score;for(;r0&&t[t.length-1]<0}const CP={type:0,value:""},kP=/[a-zA-Z0-9_]/;function EP(e){if(!e)return[[]];if(e==="/")return[[CP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${r})/"${h}": ${y}`)}let r=0,s=r;const o=[];let l;function u(){l&&o.push(l),l=[]}let c=0,f,h="",p="";function v(){h&&(r===0?l.push({type:0,value:h}):r===1||r===2||r===3?(l.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:h,regexp:p,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),h="")}function m(){h+=f}for(;c{u(S)}:Bs}function u(p){if(wv(p)){const v=s.get(p);v&&(s.delete(p),r.splice(r.indexOf(v),1),v.children.forEach(u),v.alias.forEach(u))}else{const v=r.indexOf(p);v>-1&&(r.splice(v,1),p.record.name&&s.delete(p.record.name),p.children.forEach(u),p.alias.forEach(u))}}function c(){return r}function f(p){let v=0;for(;v=0&&(p.record.path!==r[v].record.path||!xv(p,r[v]));)v++;r.splice(v,0,p),p.record.name&&!yp(p)&&s.set(p.record.name,p)}function h(p,v){let m,y={},x,k;if("name"in p&&p.name){if(m=s.get(p.name),!m)throw Gi(1,{location:p});k=m.record.name,y=ut(gp(v.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),p.params&&gp(p.params,m.keys.map(S=>S.name))),x=m.stringify(y)}else if("path"in p)x=p.path,m=r.find(S=>S.re.test(x)),m&&(y=m.parse(x),k=m.record.name);else{if(m=v.name?s.get(v.name):r.find(S=>S.re.test(v.path)),!m)throw Gi(1,{location:p,currentLocation:v});k=m.record.name,y=ut({},v.params,p.params),x=m.stringify(y)}const R=[];let O=m;for(;O;)R.unshift(O.record),O=O.parent;return{name:k,path:x,params:y,matched:R,meta:IP(R)}}return e.forEach(p=>l(p)),{addRoute:l,resolve:h,removeRoute:u,getRoutes:c,getRecordMatcher:o}}function gp(e,t){const r={};for(const s of t)s in e&&(r[s]=e[s]);return r}function RP(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:TP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function TP(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const s in e.components)t[s]=typeof r=="object"?r[s]:r;return t}function yp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function IP(e){return e.reduce((t,r)=>ut(t,r.meta),{})}function _p(e,t){const r={};for(const s in e)r[s]=s in t?t[s]:e[s];return r}function xv(e,t){return t.children.some(r=>r===e||xv(e,r))}const Pv=/#/g,MP=/&/g,LP=/\//g,$P=/=/g,DP=/\?/g,Cv=/\+/g,BP=/%5B/g,NP=/%5D/g,kv=/%5E/g,WP=/%60/g,Ev=/%7B/g,FP=/%7C/g,Sv=/%7D/g,VP=/%20/g;function Ec(e){return encodeURI(""+e).replace(FP,"|").replace(BP,"[").replace(NP,"]")}function HP(e){return Ec(e).replace(Ev,"{").replace(Sv,"}").replace(kv,"^")}function zu(e){return Ec(e).replace(Cv,"%2B").replace(VP,"+").replace(Pv,"%23").replace(MP,"%26").replace(WP,"`").replace(Ev,"{").replace(Sv,"}").replace(kv,"^")}function UP(e){return zu(e).replace($P,"%3D")}function qP(e){return Ec(e).replace(Pv,"%23").replace(DP,"%3F")}function jP(e){return e==null?"":qP(e).replace(LP,"%2F")}function Ca(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function KP(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ol&&zu(l)):[s&&zu(s)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+r,l!=null&&(t+="="+l))})}return t}function zP(e){const t={};for(const r in e){const s=e[r];s!==void 0&&(t[r]=$n(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const ZP=Symbol(""),wp=Symbol(""),Za=Symbol(""),Sc=Symbol(""),Zu=Symbol("");function ws(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Or(e,t,r,s,o){const l=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((u,c)=>{const f=v=>{v===!1?c(Gi(4,{from:r,to:t})):v instanceof Error?c(v):_P(v)?c(Gi(2,{from:t,to:v})):(l&&s.enterCallbacks[o]===l&&typeof v=="function"&&l.push(v),u())},h=e.call(s&&s.instances[o],t,r,f);let p=Promise.resolve(h);e.length<3&&(p=p.then(f)),p.catch(v=>c(v))})}function _u(e,t,r,s){const o=[];for(const l of e)for(const u in l.components){let c=l.components[u];if(!(t!=="beforeRouteEnter"&&!l.instances[u]))if(GP(c)){const h=(c.__vccOpts||c)[t];h&&o.push(Or(h,r,s,l,u))}else{let f=c();o.push(()=>f.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${l.path}"`));const p=tP(h)?h.default:h;l.components[u]=p;const m=(p.__vccOpts||p)[t];return m&&Or(m,r,s,l,u)()}))}}return o}function GP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ap(e){const t=nn(Za),r=nn(Sc),s=Fe(()=>t.resolve(se(e.to))),o=Fe(()=>{const{matched:f}=s.value,{length:h}=f,p=f[h-1],v=r.matched;if(!p||!v.length)return-1;const m=v.findIndex(Zi.bind(null,p));if(m>-1)return m;const y=xp(f[h-2]);return h>1&&xp(p)===y&&v[v.length-1].path!==y?v.findIndex(Zi.bind(null,f[h-2])):m}),l=Fe(()=>o.value>-1&&QP(r.params,s.value.params)),u=Fe(()=>o.value>-1&&o.value===r.matched.length-1&&_v(r.params,s.value.params));function c(f={}){return XP(f)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(Bs):Promise.resolve()}return{route:s,href:Fe(()=>s.value.href),isActive:l,isExactActive:u,navigate:c}}const YP=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ap,setup(e,{slots:t}){const r=Qi(Ap(e)),{options:s}=nn(Za),o=Fe(()=>({[Pp(e.activeClass,s.linkActiveClass,"router-link-active")]:r.isActive,[Pp(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const l=t.default&&t.default(r);return e.custom?l:gc("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},l)}}}),JP=YP;function XP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function QP(e,t){for(const r in t){const s=t[r],o=e[r];if(typeof s=="string"){if(s!==o)return!1}else if(!$n(o)||o.length!==s.length||s.some((l,u)=>l!==o[u]))return!1}return!0}function xp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pp=(e,t,r)=>e??t??r,e3=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const s=nn(Zu),o=Fe(()=>e.route||s.value),l=nn(wp,0),u=Fe(()=>{let h=se(l);const{matched:p}=o.value;let v;for(;(v=p[h])&&!v.components;)h++;return h}),c=Fe(()=>o.value.matched[u.value]);Rr(wp,Fe(()=>u.value+1)),Rr(ZP,c),Rr(Zu,o);const f=Pe();return st(()=>[f.value,c.value,e.name],([h,p,v],[m,y,x])=>{p&&(p.instances[v]=h,y&&y!==p&&h&&h===m&&(p.leaveGuards.size||(p.leaveGuards=y.leaveGuards),p.updateGuards.size||(p.updateGuards=y.updateGuards))),h&&p&&(!y||!Zi(p,y)||!m)&&(p.enterCallbacks[v]||[]).forEach(k=>k(h))},{flush:"post"}),()=>{const h=o.value,p=e.name,v=c.value,m=v&&v.components[p];if(!m)return Cp(r.default,{Component:m,route:h});const y=v.props[p],x=y?y===!0?h.params:typeof y=="function"?y(h):y:null,R=gc(m,ut({},x,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(v.instances[p]=null)},ref:f}));return Cp(r.default,{Component:R,route:h})||R}}});function Cp(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const t3=e3;function n3(e){const t=OP(e.routes,e),r=e.parseQuery||KP,s=e.stringifyQuery||bp,o=e.history,l=ws(),u=ws(),c=ws(),f=hA(Pr);let h=Pr;Ii&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=gu.bind(null,X=>""+X),v=gu.bind(null,jP),m=gu.bind(null,Ca);function y(X,oe){let de,Ae;return wv(X)?(de=t.getRecordMatcher(X),Ae=oe):Ae=X,t.addRoute(Ae,de)}function x(X){const oe=t.getRecordMatcher(X);oe&&t.removeRoute(oe)}function k(){return t.getRoutes().map(X=>X.record)}function R(X){return!!t.getRecordMatcher(X)}function O(X,oe){if(oe=ut({},oe||f.value),typeof X=="string"){const z=yu(r,X,oe.path),re=t.resolve({path:z.path},oe),ce=o.createHref(z.fullPath);return ut(z,re,{params:m(re.params),hash:Ca(z.hash),redirectedFrom:void 0,href:ce})}let de;if("path"in X)de=ut({},X,{path:yu(r,X.path,oe.path).path});else{const z=ut({},X.params);for(const re in z)z[re]==null&&delete z[re];de=ut({},X,{params:v(z)}),oe.params=v(oe.params)}const Ae=t.resolve(de,oe),Re=X.hash||"";Ae.params=p(m(Ae.params));const T=iP(s,ut({},X,{hash:HP(Re),path:Ae.path})),D=o.createHref(T);return ut({fullPath:T,hash:Re,query:s===bp?zP(X.query):X.query||{}},Ae,{redirectedFrom:void 0,href:D})}function S(X){return typeof X=="string"?yu(r,X,f.value.path):ut({},X)}function M(X,oe){if(h!==X)return Gi(8,{from:oe,to:X})}function E(X){return U(X)}function I(X){return E(ut(S(X),{replace:!0}))}function H(X){const oe=X.matched[X.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Ae=typeof de=="function"?de(X):de;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=S(Ae):{path:Ae},Ae.params={}),ut({query:X.query,hash:X.hash,params:"path"in Ae?{}:X.params},Ae)}}function U(X,oe){const de=h=O(X),Ae=f.value,Re=X.state,T=X.force,D=X.replace===!0,z=H(de);if(z)return U(ut(S(z),{state:typeof z=="object"?ut({},Re,z.state):Re,force:T,replace:D}),oe||de);const re=de;re.redirectedFrom=oe;let ce;return!T&&sP(s,Ae,de)&&(ce=Gi(16,{to:re,from:Ae}),_(Ae,Ae,!0,!1)),(ce?Promise.resolve(ce):K(re,Ae)).catch(le=>tr(le)?tr(le,2)?le:B(le):b(le,re,Ae)).then(le=>{if(le){if(tr(le,2))return U(ut({replace:D},S(le.to),{state:typeof le.to=="object"?ut({},Re,le.to.state):Re,force:T}),oe||re)}else le=G(re,Ae,!0,D,Re);return q(re,Ae,le),le})}function N(X,oe){const de=M(X,oe);return de?Promise.reject(de):Promise.resolve()}function j(X){const oe=xe.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(X):X()}function K(X,oe){let de;const[Ae,Re,T]=r3(X,oe);de=_u(Ae.reverse(),"beforeRouteLeave",X,oe);for(const z of Ae)z.leaveGuards.forEach(re=>{de.push(Or(re,X,oe))});const D=N.bind(null,X,oe);return de.push(D),Oe(de).then(()=>{de=[];for(const z of l.list())de.push(Or(z,X,oe));return de.push(D),Oe(de)}).then(()=>{de=_u(Re,"beforeRouteUpdate",X,oe);for(const z of Re)z.updateGuards.forEach(re=>{de.push(Or(re,X,oe))});return de.push(D),Oe(de)}).then(()=>{de=[];for(const z of T)if(z.beforeEnter)if($n(z.beforeEnter))for(const re of z.beforeEnter)de.push(Or(re,X,oe));else de.push(Or(z.beforeEnter,X,oe));return de.push(D),Oe(de)}).then(()=>(X.matched.forEach(z=>z.enterCallbacks={}),de=_u(T,"beforeRouteEnter",X,oe),de.push(D),Oe(de))).then(()=>{de=[];for(const z of u.list())de.push(Or(z,X,oe));return de.push(D),Oe(de)}).catch(z=>tr(z,8)?z:Promise.reject(z))}function q(X,oe,de){c.list().forEach(Ae=>j(()=>Ae(X,oe,de)))}function G(X,oe,de,Ae,Re){const T=M(X,oe);if(T)return T;const D=oe===Pr,z=Ii?history.state:{};de&&(Ae||D?o.replace(X.fullPath,ut({scroll:D&&z&&z.scroll},Re)):o.push(X.fullPath,Re)),f.value=X,_(X,oe,de,D),B()}let F;function A(){F||(F=o.listen((X,oe,de)=>{if(!_e.listening)return;const Ae=O(X),Re=H(Ae);if(Re){U(ut(Re,{replace:!0}),Ae).catch(Bs);return}h=Ae;const T=f.value;Ii&&hP(dp(T.fullPath,de.delta),za()),K(Ae,T).catch(D=>tr(D,12)?D:tr(D,2)?(U(D.to,Ae).then(z=>{tr(z,20)&&!de.delta&&de.type===Ys.pop&&o.go(-1,!1)}).catch(Bs),Promise.reject()):(de.delta&&o.go(-de.delta,!1),b(D,Ae,T))).then(D=>{D=D||G(Ae,T,!1),D&&(de.delta&&!tr(D,8)?o.go(-de.delta,!1):de.type===Ys.pop&&tr(D,20)&&o.go(-1,!1)),q(Ae,T,D)}).catch(Bs)}))}let L=ws(),V=ws(),P;function b(X,oe,de){B(X);const Ae=V.list();return Ae.length?Ae.forEach(Re=>Re(X,oe,de)):console.error(X),Promise.reject(X)}function Y(){return P&&f.value!==Pr?Promise.resolve():new Promise((X,oe)=>{L.add([X,oe])})}function B(X){return P||(P=!X,A(),L.list().forEach(([oe,de])=>X?de(X):oe()),L.reset()),X}function _(X,oe,de,Ae){const{scrollBehavior:Re}=e;if(!Ii||!Re)return Promise.resolve();const T=!de&&pP(dp(X.fullPath,0))||(Ae||!de)&&history.state&&history.state.scroll||null;return ur().then(()=>Re(X,oe,T)).then(D=>D&&dP(D)).catch(D=>b(D,X,oe))}const Q=X=>o.go(X);let pe;const xe=new Set,_e={currentRoute:f,listening:!0,addRoute:y,removeRoute:x,hasRoute:R,getRoutes:k,resolve:O,options:e,push:E,replace:I,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:l.add,beforeResolve:u.add,afterEach:c.add,onError:V.add,isReady:Y,install(X){const oe=this;X.component("RouterLink",JP),X.component("RouterView",t3),X.config.globalProperties.$router=oe,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>se(f)}),Ii&&!pe&&f.value===Pr&&(pe=!0,E(o.location).catch(Re=>{}));const de={};for(const Re in Pr)Object.defineProperty(de,Re,{get:()=>f.value[Re],enumerable:!0});X.provide(Za,oe),X.provide(Sc,rm(de)),X.provide(Zu,f);const Ae=X.unmount;xe.add(X),X.unmount=function(){xe.delete(X),xe.size<1&&(h=Pr,F&&F(),F=null,f.value=Pr,pe=!1,P=!1),Ae()}}};function Oe(X){return X.reduce((oe,de)=>oe.then(()=>j(de)),Promise.resolve())}return _e}function r3(e,t){const r=[],s=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;uZi(h,c))?s.push(c):r.push(c));const f=e.matched[u];f&&(t.matched.find(h=>Zi(h,f))||o.push(f))}return[r,s,o]}function i3(){return nn(Za)}function Oc(){return nn(Sc)}const s3=[{path:"/",component:()=>pt(()=>import("./index-45d67ac2.js"),["assets/index-45d67ac2.js","assets/TrackCompact-9f5e6d25.js","assets/TrackCompact-79c8b159.css","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/spotify-3cee06ae.js","assets/PlaylistItem-705d9df8.js","assets/PlaylistItem-1de8bde1.css","assets/index-bd89c879.css"])},{path:"/discover",component:()=>pt(()=>import("./Explore-6a451902.js"),["assets/Explore-6a451902.js","assets/Explore-1b45015b.css"]),meta:{title:"Discover - reAudioPlayer One"}},{path:"/audius/callback",redirect:e=>(window.location.href=window.location.origin+"/api/audius/callback"+e.hash.replace("#","?"),null)},{name:"Search",path:"/search/:query",component:()=>pt(()=>import("./index-673825f1.js"),["assets/index-673825f1.js","assets/index-2f9f0259.css"]),meta:{title:"Search - reAudioPlayer One"}},{path:"/collection/albums",component:()=>pt(()=>import("./Albums-9666741f.js"),["assets/Albums-9666741f.js","assets/CollectionHeader-55cbbce2.js","assets/CollectionHeader-9c02c260.css","assets/Albums-9b5db7b3.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/artists",component:()=>pt(()=>import("./Artists-ee6d8494.js"),["assets/Artists-ee6d8494.js","assets/FullShelf-e5484026.js","assets/FullShelf-62d1d109.css","assets/CollectionHeader-55cbbce2.js","assets/CollectionHeader-9c02c260.css","assets/Artists-45473996.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/playlists",component:()=>pt(()=>import("./Playlists-26e178b4.js"),["assets/Playlists-26e178b4.js","assets/FullShelf-e5484026.js","assets/FullShelf-62d1d109.css","assets/PlaylistItem-705d9df8.js","assets/playerInPicture-af203fdf.js","assets/PlaylistItem-1de8bde1.css","assets/CollectionHeader-55cbbce2.js","assets/CollectionHeader-9c02c260.css","assets/Playlists-d44628c1.css"]),meta:{title:"Your Library - reAudioPlayer One"}},{path:"/collection/releases",component:()=>pt(()=>import("./Releases-dd0e8dec.js"),["assets/Releases-dd0e8dec.js","assets/CollectionHeader-55cbbce2.js","assets/CollectionHeader-9c02c260.css","assets/playerInPicture-af203fdf.js","assets/Releases-b3f5cb50.css"]),meta:{title:"Releases - reAudioPlayer One"}},{path:"/collection/tracks",component:()=>pt(()=>import("./Liked-b900d113.js"),["assets/Liked-b900d113.js","assets/Template-d4a34a3b.js","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-517d18b6.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-c2987d49.js","assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Liked Songs - reAudioPlayer One"}},{path:"/collection/tracks/breaking",component:()=>pt(()=>import("./Breaking-4d1ad9b4.js"),["assets/Breaking-4d1ad9b4.js","assets/Template-d4a34a3b.js","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-517d18b6.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-c2987d49.js","assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Breaking Songs - reAudioPlayer One"}},{path:"/playlist/create",component:()=>pt(()=>import("./Create-fcb01c1e.js"),["assets/Create-fcb01c1e.js","assets/Create-8ab3526b.css"]),meta:{title:"Create Playlist - reAudioPlayer One"}},{path:"/playlist/:id/edit",component:()=>pt(()=>import("./Editor-059c28c4.js"),["assets/Editor-059c28c4.js","assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/Editor-29aa8a80.css"]),meta:{title:"Smart Playlist Editor - reAudioPlayer One"}},{path:"/playlist/:id",component:()=>pt(()=>import("./Normal-e2c2cf32.js"),["assets/Normal-e2c2cf32.js","assets/Template-d4a34a3b.js","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/FactCard-517d18b6.js","assets/FactCard-3c5d1fcf.css","assets/gistClient-c2987d49.js","assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js","assets/Markdown-d883632e.css","assets/Template-01e8e5fe.css"]),meta:{title:"Playlist - reAudioPlayer One"}},{path:"/track/:hash",component:()=>pt(()=>import("./Track-8a51f52b.js"),["assets/Track-8a51f52b.js","assets/FactCard-517d18b6.js","assets/FactCard-3c5d1fcf.css","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/spotify-3cee06ae.js","assets/Track-7c1d0a5c.css"]),meta:{title:"Track - reAudioPlayer One"}},{path:"/artist/:name",component:()=>pt(()=>import("./Artist-144ae9ea.js"),["assets/Artist-144ae9ea.js","assets/FactCard-517d18b6.js","assets/FactCard-3c5d1fcf.css","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/spotify-3cee06ae.js","assets/Artist-a6b528f5.css"]),meta:{title:"Artist - reAudioPlayer One"}},{path:"/preferences",component:()=>pt(()=>import("./index-f7a162af.js"),["assets/index-f7a162af.js","assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js","assets/Markdown-d883632e.css","assets/TrackCompact-9f5e6d25.js","assets/TrackCompact-79c8b159.css","assets/gistClient-c2987d49.js","assets/index-8f9fd7d1.css"]),meta:{title:"Preferences - reAudioPlayer One"}},{path:"/import",component:()=>pt(()=>import("./Import-2f67c72f.js"),["assets/Import-2f67c72f.js","assets/gistClient-c2987d49.js","assets/Import-5bb9c089.css"]),meta:{title:"Import - reAudioPlayer One"}},{path:"/import/:id",component:()=>pt(()=>import("./ImportLink-a264ba07.js"),["assets/ImportLink-a264ba07.js","assets/ImportLink-fa9af2ae.css"]),meta:{title:"Import - reAudioPlayer One"}},{path:"/export",component:()=>pt(()=>import("./Export-be62f3c3.js"),["assets/Export-be62f3c3.js","assets/gistClient-c2987d49.js","assets/Export-a03f6dd4.css"]),meta:{title:"Export - reAudioPlayer One"}},{path:"/sing-along",component:()=>pt(()=>import("./index-f6a20c43.js"),["assets/index-f6a20c43.js","assets/index-4e4ed216.css"]),meta:{title:"Sing Along - reAudioPlayer One"}},{path:"/download",component:()=>pt(()=>import("./index-6034035d.js"),["assets/index-6034035d.js","assets/index-3d76937e.css"]),meta:{title:"Download - reAudioPlayer One"}},{path:"/welcome",component:()=>pt(()=>import("./Welcome-51cf28ce.js"),["assets/Welcome-51cf28ce.js","assets/Welcome-5b21c29e.css"]),meta:{title:"Welcome to reAudioPlayer One"}},{path:"/news",component:()=>pt(()=>import("./News-34726618.js"),["assets/News-34726618.js","assets/FullShelf-e5484026.js","assets/FullShelf-62d1d109.css","assets/News-99169f9d.css"]),meta:{title:"News - reAudioPlayer One"}},{path:"/sports",component:()=>pt(()=>import("./Sports-00fca57e.js"),["assets/Sports-00fca57e.js","assets/FullShelf-e5484026.js","assets/FullShelf-62d1d109.css","assets/Sports-385f73f9.css"]),meta:{title:"Sports - reAudioPlayer One"}},{path:"/news/:url",component:()=>pt(()=>import("./NewsArticle-5e58ed70.js"),["assets/NewsArticle-5e58ed70.js","assets/NewsArticle-03a45240.css"]),meta:{title:"News - reAudioPlayer One"}},{path:"/player/insights",component:()=>pt(()=>import("./Insight-e5370e3a.js"),["assets/Insight-e5370e3a.js","assets/Insight-8c46a3d4.css"]),meta:{title:"Insights - reAudioPlayer One"}},{path:"/player",component:()=>pt(()=>import("./BigPlayer-f7f84fb2.js"),["assets/BigPlayer-f7f84fb2.js","assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js","assets/PlaylistEntry-c58cccb9.js","assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js","assets/playerInPicture-af203fdf.js","assets/PlaylistEntry-4b74ffe1.css","assets/PlaylistItem-705d9df8.js","assets/PlaylistItem-1de8bde1.css","assets/BigPlayer-4db387e6.css"]),meta:{title:"reAudioPlayer One"}}],Mi=n3({history:yP(),routes:s3}),o3=["placeholder","type"],a3=ze({__name:"TextInputWithIcon",props:{icon:String,placeholder:String,modelValue:String,type:{type:String,required:!1,default:"text"},onClick:{type:Function,required:!1},expanded:{type:Boolean,required:!1,default:!1},onKeyUp:{type:Function,required:!1}},emits:["update:modelValue","change","submit","focusout"],setup(e,{expose:t,emit:r}){const s=e,o=Pe(s.modelValue);st(()=>s.modelValue,h=>{o.value=h});const l=r,u=()=>{l("update:modelValue",o.value),l("change",o.value)},c=h=>{s.onKeyUp&&s.onKeyUp(h)||h.key==="Enter"&&l("submit",o)},f=Pe();return t({focus:()=>{f.value.focus()}}),(h,p)=>(ne(),ge("div",{class:Je(["text-input-with-icon rounded-3xl flex items-center px-4",{expanded:e.expanded}])},[te("span",{class:Je([{"cursor-pointer":e.onClick},"material-symbols-rounded ms-wght-200"]),onClick:p[0]||(p[0]=(...v)=>e.onClick&&e.onClick(...v))},Be(e.icon),3),Ks(te("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>o.value=v),placeholder:e.placeholder,type:e.type,onInput:u,onKeyup:c,onFocusout:p[2]||(p[2]=v=>h.$emit("focusout")),ref_key:"element",ref:f},null,40,o3),[[bc,o.value]])],2))}});const Gu=at(a3,[["__scopeId","data-v-18a674c5"]]);var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z6(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),r}var ka={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ka.exports;(function(e,t){(function(){var r,s="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",v=1,m=2,b=4,y=1,E=2,R=1,S=2,O=4,M=8,k=16,I=32,H=64,U=128,N=256,j=512,K=30,q="...",G=800,F=16,x=1,L=2,V=3,P=1/0,w=9007199254740991,Y=17976931348623157e292,B=0/0,_=4294967295,Q=_-1,pe=_>>>1,xe=[["ary",U],["bind",R],["bindKey",S],["curry",M],["curryRight",k],["flip",j],["partial",I],["partialRight",H],["rearg",N]],_e="[object Arguments]",Oe="[object Array]",X="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Ae="[object DOMException]",Re="[object Error]",T="[object Function]",D="[object GeneratorFunction]",z="[object Map]",re="[object Number]",ce="[object Null]",le="[object Object]",be="[object Promise]",ve="[object Proxy]",ye="[object RegExp]",fe="[object Set]",Se="[object String]",ke="[object Symbol]",Ie="[object Undefined]",Le="[object WeakMap]",Ze="[object WeakSet]",rt="[object ArrayBuffer]",Xe="[object DataView]",vt="[object Float32Array]",Ht="[object Float64Array]",Dn="[object Int8Array]",di="[object Int16Array]",jn="[object Int32Array]",hi="[object Uint8Array]",It="[object Uint8ClampedArray]",Gt="[object Uint16Array]",pi="[object Uint32Array]",Zv=/\b__p \+= '';/g,Gv=/\b(__p \+=) '' \+/g,Yv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ic=/&(?:amp|lt|gt|quot|#39);/g,Mc=/[&<>"']/g,Jv=RegExp(Ic.source),Xv=RegExp(Mc.source),Qv=/<%-([\s\S]+?)%>/g,eg=/<%([\s\S]+?)%>/g,Lc=/<%=([\s\S]+?)%>/g,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/,rg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ya=/[\\^$.*+?()[\]{}|]/g,ig=RegExp(Ya.source),Ja=/^\s+/,sg=/\s/,og=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ag=/\{\n\/\* \[wrapped with (.+)\] \*/,lg=/,? & /,ug=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cg=/[()=,{}\[\]\/\s]/,fg=/\\(\\)?/g,dg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$c=/\w*$/,hg=/^[-+]0x[0-9a-f]+$/i,pg=/^0b[01]+$/i,mg=/^\[object .+?Constructor\]$/,vg=/^0o[0-7]+$/i,gg=/^(?:0|[1-9]\d*)$/,yg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,io=/($^)/,_g=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",bg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",Ag="\\u20d0-\\u20ff",Dc=bg+wg+Ag,Bc="\\u2700-\\u27bf",Nc="a-z\\xdf-\\xf6\\xf8-\\xff",xg="\\xac\\xb1\\xd7\\xf7",Pg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cg="\\u2000-\\u206f",kg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wc="A-Z\\xc0-\\xd6\\xd8-\\xde",Fc="\\ufe0e\\ufe0f",Vc=xg+Pg+Cg+kg,Xa="['’]",Eg="["+so+"]",Hc="["+Vc+"]",oo="["+Dc+"]",Uc="\\d+",Sg="["+Bc+"]",qc="["+Nc+"]",jc="[^"+so+Vc+Uc+Bc+Nc+Wc+"]",Qa="\\ud83c[\\udffb-\\udfff]",Og="(?:"+oo+"|"+Qa+")",Kc="[^"+so+"]",el="(?:\\ud83c[\\udde6-\\uddff]){2}",tl="[\\ud800-\\udbff][\\udc00-\\udfff]",mi="["+Wc+"]",zc="\\u200d",Zc="(?:"+qc+"|"+jc+")",Rg="(?:"+mi+"|"+jc+")",Gc="(?:"+Xa+"(?:d|ll|m|re|s|t|ve))?",Yc="(?:"+Xa+"(?:D|LL|M|RE|S|T|VE))?",Jc=Og+"?",Xc="["+Fc+"]?",Tg="(?:"+zc+"(?:"+[Kc,el,tl].join("|")+")"+Xc+Jc+")*",Ig="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qc=Xc+Jc+Tg,Lg="(?:"+[Sg,el,tl].join("|")+")"+Qc,$g="(?:"+[Kc+oo+"?",oo,el,tl,Eg].join("|")+")",Dg=RegExp(Xa,"g"),Bg=RegExp(oo,"g"),nl=RegExp(Qa+"(?="+Qa+")|"+$g+Qc,"g"),Ng=RegExp([mi+"?"+qc+"+"+Gc+"(?="+[Hc,mi,"$"].join("|")+")",Rg+"+"+Yc+"(?="+[Hc,mi+Zc,"$"].join("|")+")",mi+"?"+Zc+"+"+Gc,mi+"+"+Yc,Mg,Ig,Uc,Lg].join("|"),"g"),Wg=RegExp("["+zc+so+Dc+Fc+"]"),Fg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hg=-1,mt={};mt[vt]=mt[Ht]=mt[Dn]=mt[di]=mt[jn]=mt[hi]=mt[It]=mt[Gt]=mt[pi]=!0,mt[_e]=mt[Oe]=mt[rt]=mt[oe]=mt[Xe]=mt[de]=mt[Re]=mt[T]=mt[z]=mt[re]=mt[le]=mt[ye]=mt[fe]=mt[Se]=mt[Le]=!1;var ht={};ht[_e]=ht[Oe]=ht[rt]=ht[Xe]=ht[oe]=ht[de]=ht[vt]=ht[Ht]=ht[Dn]=ht[di]=ht[jn]=ht[z]=ht[re]=ht[le]=ht[ye]=ht[fe]=ht[Se]=ht[ke]=ht[hi]=ht[It]=ht[Gt]=ht[pi]=!0,ht[Re]=ht[T]=ht[Le]=!1;var Ug={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qg={"&":"&","<":"<",">":">",'"':""","'":"'"},jg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zg=parseFloat,Zg=parseInt,ef=typeof As=="object"&&As&&As.Object===Object&&As,Gg=typeof self=="object"&&self&&self.Object===Object&&self,Mt=ef||Gg||Function("return this")(),rl=t&&!t.nodeType&&t,qr=rl&&!0&&e&&!e.nodeType&&e,tf=qr&&qr.exports===rl,il=tf&&ef.process,mn=function(){try{var Z=qr&&qr.require&&qr.require("util").types;return Z||il&&il.binding&&il.binding("util")}catch{}}(),nf=mn&&mn.isArrayBuffer,rf=mn&&mn.isDate,sf=mn&&mn.isMap,of=mn&&mn.isRegExp,af=mn&&mn.isSet,lf=mn&&mn.isTypedArray;function sn(Z,ie,ee){switch(ee.length){case 0:return Z.call(ie);case 1:return Z.call(ie,ee[0]);case 2:return Z.call(ie,ee[0],ee[1]);case 3:return Z.call(ie,ee[0],ee[1],ee[2])}return Z.apply(ie,ee)}function Yg(Z,ie,ee,Ce){for(var Fe=-1,it=Z==null?0:Z.length;++Fe-1}function sl(Z,ie,ee){for(var Ce=-1,Fe=Z==null?0:Z.length;++Ce-1;);return ee}function vf(Z,ie){for(var ee=Z.length;ee--&&vi(ie,Z[ee],0)>-1;);return ee}function sy(Z,ie){for(var ee=Z.length,Ce=0;ee--;)Z[ee]===ie&&++Ce;return Ce}var oy=ul(Ug),ay=ul(qg);function ly(Z){return"\\"+Kg[Z]}function uy(Z,ie){return Z==null?r:Z[ie]}function gi(Z){return Wg.test(Z)}function cy(Z){return Fg.test(Z)}function fy(Z){for(var ie,ee=[];!(ie=Z.next()).done;)ee.push(ie.value);return ee}function hl(Z){var ie=-1,ee=Array(Z.size);return Z.forEach(function(Ce,Fe){ee[++ie]=[Fe,Ce]}),ee}function gf(Z,ie){return function(ee){return Z(ie(ee))}}function pr(Z,ie){for(var ee=-1,Ce=Z.length,Fe=0,it=[];++ee-1}function Xy(n,i){var a=this.__data__,d=Co(a,n);return d<0?(++this.size,a.push([n,i])):a[d][1]=i,this}Kn.prototype.clear=Zy,Kn.prototype.delete=Gy,Kn.prototype.get=Yy,Kn.prototype.has=Jy,Kn.prototype.set=Xy;function zn(n){var i=-1,a=n==null?0:n.length;for(this.clear();++i=i?n:i)),n}function _n(n,i,a,d,g,C){var $,W=i&v,J=i&m,ae=i&b;if(a&&($=g?a(n,d,g,C):a(n)),$!==r)return $;if(!At(n))return n;var ue=He(n);if(ue){if($=n1(n),!W)return Yt(n,$)}else{var he=Wt(n),we=he==T||he==D;if(br(n))return Qf(n,W);if(he==le||he==_e||we&&!g){if($=J||we?{}:yd(n),!W)return J?j_(n,p_($,n)):q_(n,Of($,n))}else{if(!ht[he])return g?n:{};$=r1(n,he,W)}}C||(C=new Sn);var Te=C.get(n);if(Te)return Te;C.set(n,$),zd(n)?n.forEach(function(De){$.add(_n(De,i,a,De,n,C))}):jd(n)&&n.forEach(function(De,Ge){$.set(Ge,_n(De,i,a,Ge,n,C))});var $e=ae?J?Wl:Nl:J?Xt:Rt,qe=ue?r:$e(n);return vn(qe||n,function(De,Ge){qe&&(Ge=De,De=n[Ge]),as($,Ge,_n(De,i,a,Ge,n,C))}),$}function m_(n){var i=Rt(n);return function(a){return Rf(a,n,i)}}function Rf(n,i,a){var d=a.length;if(n==null)return!d;for(n=dt(n);d--;){var g=a[d],C=i[g],$=n[g];if($===r&&!(g in n)||!C($))return!1}return!0}function Tf(n,i,a){if(typeof n!="function")throw new gn(u);return ps(function(){n.apply(r,a)},i)}function ls(n,i,a,d){var g=-1,C=ao,$=!0,W=n.length,J=[],ae=i.length;if(!W)return J;a&&(i=gt(i,on(a))),d?(C=sl,$=!1):i.length>=o&&(C=ts,$=!1,i=new zr(i));e:for(;++gg?0:g+a),d=d===r||d>g?g:Ue(d),d<0&&(d+=g),d=a>d?0:Gd(d);a0&&a(W)?i>1?Lt(W,i-1,a,d,g):hr(g,W):d||(g[g.length]=W)}return g}var bl=sd(),Lf=sd(!0);function Bn(n,i){return n&&bl(n,i,Rt)}function wl(n,i){return n&&Lf(n,i,Rt)}function Eo(n,i){return dr(i,function(a){return Xn(n[a])})}function Gr(n,i){i=yr(i,n);for(var a=0,d=i.length;n!=null&&ai}function y_(n,i){return n!=null&<.call(n,i)}function __(n,i){return n!=null&&i in dt(n)}function b_(n,i,a){return n>=Nt(i,a)&&n=120&&ue.length>=120)?new zr($&&ue):r}ue=n[0];var he=-1,we=W[0];e:for(;++he-1;)W!==n&&yo.call(W,J,1),yo.call(n,J,1);return n}function jf(n,i){for(var a=n?i.length:0,d=a-1;a--;){var g=i[a];if(a==d||g!==C){var C=g;Jn(g)?yo.call(n,g,1):Tl(n,g)}}return n}function Sl(n,i){return n+wo(Cf()*(i-n+1))}function M_(n,i,a,d){for(var g=-1,C=St(bo((i-n)/(a||1)),0),$=ee(C);C--;)$[d?C:++g]=n,n+=a;return $}function Ol(n,i){var a="";if(!n||i<1||i>w)return a;do i%2&&(a+=n),i=wo(i/2),i&&(n+=n);while(i);return a}function Ke(n,i){return Kl(wd(n,i,Qt),n+"")}function L_(n){return Sf(Si(n))}function $_(n,i){var a=Si(n);return No(a,Zr(i,0,a.length))}function fs(n,i,a,d){if(!At(n))return n;i=yr(i,n);for(var g=-1,C=i.length,$=C-1,W=n;W!=null&&++gg?0:g+i),a=a>g?g:a,a<0&&(a+=g),g=i>a?0:a-i>>>0,i>>>=0;for(var C=ee(g);++d>>1,$=n[C];$!==null&&!ln($)&&(a?$<=i:$=o){var ae=i?null:G_(n);if(ae)return uo(ae);$=!1,g=ts,J=new zr}else J=i?[]:W;e:for(;++d=d?n:bn(n,i,a)}var Xf=ky||function(n){return Mt.clearTimeout(n)};function Qf(n,i){if(i)return n.slice();var a=n.length,d=bf?bf(a):new n.constructor(a);return n.copy(d),d}function $l(n){var i=new n.constructor(n.byteLength);return new vo(i).set(new vo(n)),i}function F_(n,i){var a=i?$l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.byteLength)}function V_(n){var i=new n.constructor(n.source,$c.exec(n));return i.lastIndex=n.lastIndex,i}function H_(n){return os?dt(os.call(n)):{}}function ed(n,i){var a=i?$l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}function td(n,i){if(n!==i){var a=n!==r,d=n===null,g=n===n,C=ln(n),$=i!==r,W=i===null,J=i===i,ae=ln(i);if(!W&&!ae&&!C&&n>i||C&&$&&J&&!W&&!ae||d&&$&&J||!a&&J||!g)return 1;if(!d&&!C&&!ae&&n=W)return J;var ae=a[d];return J*(ae=="desc"?-1:1)}}return n.index-i.index}function nd(n,i,a,d){for(var g=-1,C=n.length,$=a.length,W=-1,J=i.length,ae=St(C-$,0),ue=ee(J+ae),he=!d;++W1?a[g-1]:r,$=g>2?a[2]:r;for(C=n.length>3&&typeof C=="function"?(g--,C):r,$&&qt(a[0],a[1],$)&&(C=g<3?r:C,g=1),i=dt(i);++d-1?g[C?i[$]:$]:r}}function ld(n){return Yn(function(i){var a=i.length,d=a,g=yn.prototype.thru;for(n&&i.reverse();d--;){var C=i[d];if(typeof C!="function")throw new gn(u);if(g&&!$&&Do(C)=="wrapper")var $=new yn([],!0)}for(d=$?d:a;++d1&&Qe.reverse(),ue&&JW))return!1;var ae=C.get(n),ue=C.get(i);if(ae&&ue)return ae==i&&ue==n;var he=-1,we=!0,Te=a&E?new zr:r;for(C.set(n,i),C.set(i,n);++he1?"& ":"")+i[d],i=i.join(a>2?", ":" "),n.replace(og,`{ + */ka.exports;(function(e,t){(function(){var r,s="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",v=1,m=2,y=4,x=1,k=2,R=1,O=2,S=4,M=8,E=16,I=32,H=64,U=128,N=256,j=512,K=30,q="...",G=800,F=16,A=1,L=2,V=3,P=1/0,b=9007199254740991,Y=17976931348623157e292,B=0/0,_=4294967295,Q=_-1,pe=_>>>1,xe=[["ary",U],["bind",R],["bindKey",O],["curry",M],["curryRight",E],["flip",j],["partial",I],["partialRight",H],["rearg",N]],_e="[object Arguments]",Oe="[object Array]",X="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Ae="[object DOMException]",Re="[object Error]",T="[object Function]",D="[object GeneratorFunction]",z="[object Map]",re="[object Number]",ce="[object Null]",le="[object Object]",be="[object Promise]",ve="[object Proxy]",ye="[object RegExp]",fe="[object Set]",Se="[object String]",ke="[object Symbol]",Ie="[object Undefined]",Le="[object WeakMap]",Ze="[object WeakSet]",rt="[object ArrayBuffer]",Xe="[object DataView]",vt="[object Float32Array]",Ht="[object Float64Array]",Dn="[object Int8Array]",di="[object Int16Array]",jn="[object Int32Array]",hi="[object Uint8Array]",It="[object Uint8ClampedArray]",Gt="[object Uint16Array]",pi="[object Uint32Array]",Zv=/\b__p \+= '';/g,Gv=/\b(__p \+=) '' \+/g,Yv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ic=/&(?:amp|lt|gt|quot|#39);/g,Mc=/[&<>"']/g,Jv=RegExp(Ic.source),Xv=RegExp(Mc.source),Qv=/<%-([\s\S]+?)%>/g,eg=/<%([\s\S]+?)%>/g,Lc=/<%=([\s\S]+?)%>/g,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/,rg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ya=/[\\^$.*+?()[\]{}|]/g,ig=RegExp(Ya.source),Ja=/^\s+/,sg=/\s/,og=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ag=/\{\n\/\* \[wrapped with (.+)\] \*/,lg=/,? & /,ug=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cg=/[()=,{}\[\]\/\s]/,fg=/\\(\\)?/g,dg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$c=/\w*$/,hg=/^[-+]0x[0-9a-f]+$/i,pg=/^0b[01]+$/i,mg=/^\[object .+?Constructor\]$/,vg=/^0o[0-7]+$/i,gg=/^(?:0|[1-9]\d*)$/,yg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,io=/($^)/,_g=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",bg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",Ag="\\u20d0-\\u20ff",Dc=bg+wg+Ag,Bc="\\u2700-\\u27bf",Nc="a-z\\xdf-\\xf6\\xf8-\\xff",xg="\\xac\\xb1\\xd7\\xf7",Pg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cg="\\u2000-\\u206f",kg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wc="A-Z\\xc0-\\xd6\\xd8-\\xde",Fc="\\ufe0e\\ufe0f",Vc=xg+Pg+Cg+kg,Xa="['’]",Eg="["+so+"]",Hc="["+Vc+"]",oo="["+Dc+"]",Uc="\\d+",Sg="["+Bc+"]",qc="["+Nc+"]",jc="[^"+so+Vc+Uc+Bc+Nc+Wc+"]",Qa="\\ud83c[\\udffb-\\udfff]",Og="(?:"+oo+"|"+Qa+")",Kc="[^"+so+"]",el="(?:\\ud83c[\\udde6-\\uddff]){2}",tl="[\\ud800-\\udbff][\\udc00-\\udfff]",mi="["+Wc+"]",zc="\\u200d",Zc="(?:"+qc+"|"+jc+")",Rg="(?:"+mi+"|"+jc+")",Gc="(?:"+Xa+"(?:d|ll|m|re|s|t|ve))?",Yc="(?:"+Xa+"(?:D|LL|M|RE|S|T|VE))?",Jc=Og+"?",Xc="["+Fc+"]?",Tg="(?:"+zc+"(?:"+[Kc,el,tl].join("|")+")"+Xc+Jc+")*",Ig="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qc=Xc+Jc+Tg,Lg="(?:"+[Sg,el,tl].join("|")+")"+Qc,$g="(?:"+[Kc+oo+"?",oo,el,tl,Eg].join("|")+")",Dg=RegExp(Xa,"g"),Bg=RegExp(oo,"g"),nl=RegExp(Qa+"(?="+Qa+")|"+$g+Qc,"g"),Ng=RegExp([mi+"?"+qc+"+"+Gc+"(?="+[Hc,mi,"$"].join("|")+")",Rg+"+"+Yc+"(?="+[Hc,mi+Zc,"$"].join("|")+")",mi+"?"+Zc+"+"+Gc,mi+"+"+Yc,Mg,Ig,Uc,Lg].join("|"),"g"),Wg=RegExp("["+zc+so+Dc+Fc+"]"),Fg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hg=-1,mt={};mt[vt]=mt[Ht]=mt[Dn]=mt[di]=mt[jn]=mt[hi]=mt[It]=mt[Gt]=mt[pi]=!0,mt[_e]=mt[Oe]=mt[rt]=mt[oe]=mt[Xe]=mt[de]=mt[Re]=mt[T]=mt[z]=mt[re]=mt[le]=mt[ye]=mt[fe]=mt[Se]=mt[Le]=!1;var ht={};ht[_e]=ht[Oe]=ht[rt]=ht[Xe]=ht[oe]=ht[de]=ht[vt]=ht[Ht]=ht[Dn]=ht[di]=ht[jn]=ht[z]=ht[re]=ht[le]=ht[ye]=ht[fe]=ht[Se]=ht[ke]=ht[hi]=ht[It]=ht[Gt]=ht[pi]=!0,ht[Re]=ht[T]=ht[Le]=!1;var Ug={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qg={"&":"&","<":"<",">":">",'"':""","'":"'"},jg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zg=parseFloat,Zg=parseInt,ef=typeof As=="object"&&As&&As.Object===Object&&As,Gg=typeof self=="object"&&self&&self.Object===Object&&self,Mt=ef||Gg||Function("return this")(),rl=t&&!t.nodeType&&t,qr=rl&&!0&&e&&!e.nodeType&&e,tf=qr&&qr.exports===rl,il=tf&&ef.process,mn=function(){try{var Z=qr&&qr.require&&qr.require("util").types;return Z||il&&il.binding&&il.binding("util")}catch{}}(),nf=mn&&mn.isArrayBuffer,rf=mn&&mn.isDate,sf=mn&&mn.isMap,of=mn&&mn.isRegExp,af=mn&&mn.isSet,lf=mn&&mn.isTypedArray;function sn(Z,ie,ee){switch(ee.length){case 0:return Z.call(ie);case 1:return Z.call(ie,ee[0]);case 2:return Z.call(ie,ee[0],ee[1]);case 3:return Z.call(ie,ee[0],ee[1],ee[2])}return Z.apply(ie,ee)}function Yg(Z,ie,ee,Ce){for(var Ve=-1,it=Z==null?0:Z.length;++Ve-1}function sl(Z,ie,ee){for(var Ce=-1,Ve=Z==null?0:Z.length;++Ce-1;);return ee}function vf(Z,ie){for(var ee=Z.length;ee--&&vi(ie,Z[ee],0)>-1;);return ee}function sy(Z,ie){for(var ee=Z.length,Ce=0;ee--;)Z[ee]===ie&&++Ce;return Ce}var oy=ul(Ug),ay=ul(qg);function ly(Z){return"\\"+Kg[Z]}function uy(Z,ie){return Z==null?r:Z[ie]}function gi(Z){return Wg.test(Z)}function cy(Z){return Fg.test(Z)}function fy(Z){for(var ie,ee=[];!(ie=Z.next()).done;)ee.push(ie.value);return ee}function hl(Z){var ie=-1,ee=Array(Z.size);return Z.forEach(function(Ce,Ve){ee[++ie]=[Ve,Ce]}),ee}function gf(Z,ie){return function(ee){return Z(ie(ee))}}function pr(Z,ie){for(var ee=-1,Ce=Z.length,Ve=0,it=[];++ee-1}function Xy(n,i){var a=this.__data__,d=Co(a,n);return d<0?(++this.size,a.push([n,i])):a[d][1]=i,this}Kn.prototype.clear=Zy,Kn.prototype.delete=Gy,Kn.prototype.get=Yy,Kn.prototype.has=Jy,Kn.prototype.set=Xy;function zn(n){var i=-1,a=n==null?0:n.length;for(this.clear();++i=i?n:i)),n}function _n(n,i,a,d,g,C){var $,W=i&v,J=i&m,ae=i&y;if(a&&($=g?a(n,d,g,C):a(n)),$!==r)return $;if(!At(n))return n;var ue=He(n);if(ue){if($=n1(n),!W)return Yt(n,$)}else{var he=Wt(n),we=he==T||he==D;if(br(n))return Qf(n,W);if(he==le||he==_e||we&&!g){if($=J||we?{}:yd(n),!W)return J?j_(n,p_($,n)):q_(n,Of($,n))}else{if(!ht[he])return g?n:{};$=r1(n,he,W)}}C||(C=new Sn);var Te=C.get(n);if(Te)return Te;C.set(n,$),zd(n)?n.forEach(function(De){$.add(_n(De,i,a,De,n,C))}):jd(n)&&n.forEach(function(De,Ge){$.set(Ge,_n(De,i,a,Ge,n,C))});var $e=ae?J?Wl:Nl:J?Xt:Rt,qe=ue?r:$e(n);return vn(qe||n,function(De,Ge){qe&&(Ge=De,De=n[Ge]),as($,Ge,_n(De,i,a,Ge,n,C))}),$}function m_(n){var i=Rt(n);return function(a){return Rf(a,n,i)}}function Rf(n,i,a){var d=a.length;if(n==null)return!d;for(n=dt(n);d--;){var g=a[d],C=i[g],$=n[g];if($===r&&!(g in n)||!C($))return!1}return!0}function Tf(n,i,a){if(typeof n!="function")throw new gn(u);return ps(function(){n.apply(r,a)},i)}function ls(n,i,a,d){var g=-1,C=ao,$=!0,W=n.length,J=[],ae=i.length;if(!W)return J;a&&(i=gt(i,on(a))),d?(C=sl,$=!1):i.length>=o&&(C=ts,$=!1,i=new zr(i));e:for(;++gg?0:g+a),d=d===r||d>g?g:Ue(d),d<0&&(d+=g),d=a>d?0:Gd(d);a0&&a(W)?i>1?Lt(W,i-1,a,d,g):hr(g,W):d||(g[g.length]=W)}return g}var bl=sd(),Lf=sd(!0);function Bn(n,i){return n&&bl(n,i,Rt)}function wl(n,i){return n&&Lf(n,i,Rt)}function Eo(n,i){return dr(i,function(a){return Xn(n[a])})}function Gr(n,i){i=yr(i,n);for(var a=0,d=i.length;n!=null&&ai}function y_(n,i){return n!=null&<.call(n,i)}function __(n,i){return n!=null&&i in dt(n)}function b_(n,i,a){return n>=Nt(i,a)&&n=120&&ue.length>=120)?new zr($&&ue):r}ue=n[0];var he=-1,we=W[0];e:for(;++he-1;)W!==n&&yo.call(W,J,1),yo.call(n,J,1);return n}function jf(n,i){for(var a=n?i.length:0,d=a-1;a--;){var g=i[a];if(a==d||g!==C){var C=g;Jn(g)?yo.call(n,g,1):Tl(n,g)}}return n}function Sl(n,i){return n+wo(Cf()*(i-n+1))}function M_(n,i,a,d){for(var g=-1,C=St(bo((i-n)/(a||1)),0),$=ee(C);C--;)$[d?C:++g]=n,n+=a;return $}function Ol(n,i){var a="";if(!n||i<1||i>b)return a;do i%2&&(a+=n),i=wo(i/2),i&&(n+=n);while(i);return a}function Ke(n,i){return Kl(wd(n,i,Qt),n+"")}function L_(n){return Sf(Si(n))}function $_(n,i){var a=Si(n);return No(a,Zr(i,0,a.length))}function fs(n,i,a,d){if(!At(n))return n;i=yr(i,n);for(var g=-1,C=i.length,$=C-1,W=n;W!=null&&++gg?0:g+i),a=a>g?g:a,a<0&&(a+=g),g=i>a?0:a-i>>>0,i>>>=0;for(var C=ee(g);++d>>1,$=n[C];$!==null&&!ln($)&&(a?$<=i:$=o){var ae=i?null:G_(n);if(ae)return uo(ae);$=!1,g=ts,J=new zr}else J=i?[]:W;e:for(;++d=d?n:bn(n,i,a)}var Xf=ky||function(n){return Mt.clearTimeout(n)};function Qf(n,i){if(i)return n.slice();var a=n.length,d=bf?bf(a):new n.constructor(a);return n.copy(d),d}function $l(n){var i=new n.constructor(n.byteLength);return new vo(i).set(new vo(n)),i}function F_(n,i){var a=i?$l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.byteLength)}function V_(n){var i=new n.constructor(n.source,$c.exec(n));return i.lastIndex=n.lastIndex,i}function H_(n){return os?dt(os.call(n)):{}}function ed(n,i){var a=i?$l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}function td(n,i){if(n!==i){var a=n!==r,d=n===null,g=n===n,C=ln(n),$=i!==r,W=i===null,J=i===i,ae=ln(i);if(!W&&!ae&&!C&&n>i||C&&$&&J&&!W&&!ae||d&&$&&J||!a&&J||!g)return 1;if(!d&&!C&&!ae&&n=W)return J;var ae=a[d];return J*(ae=="desc"?-1:1)}}return n.index-i.index}function nd(n,i,a,d){for(var g=-1,C=n.length,$=a.length,W=-1,J=i.length,ae=St(C-$,0),ue=ee(J+ae),he=!d;++W1?a[g-1]:r,$=g>2?a[2]:r;for(C=n.length>3&&typeof C=="function"?(g--,C):r,$&&qt(a[0],a[1],$)&&(C=g<3?r:C,g=1),i=dt(i);++d-1?g[C?i[$]:$]:r}}function ld(n){return Yn(function(i){var a=i.length,d=a,g=yn.prototype.thru;for(n&&i.reverse();d--;){var C=i[d];if(typeof C!="function")throw new gn(u);if(g&&!$&&Do(C)=="wrapper")var $=new yn([],!0)}for(d=$?d:a;++d1&&Qe.reverse(),ue&&JW))return!1;var ae=C.get(n),ue=C.get(i);if(ae&&ue)return ae==i&&ue==n;var he=-1,we=!0,Te=a&k?new zr:r;for(C.set(n,i),C.set(i,n);++he1?"& ":"")+i[d],i=i.join(a>2?", ":" "),n.replace(og,`{ /* [wrapped with `+i+`] */ -`)}function s1(n){return He(n)||Xr(n)||!!(xf&&n&&n[xf])}function Jn(n,i){var a=typeof n;return i=i??w,!!i&&(a=="number"||a!="symbol"&&gg.test(n))&&n>-1&&n%1==0&&n0){if(++i>=G)return arguments[0]}else i=0;return n.apply(r,arguments)}}function No(n,i){var a=-1,d=n.length,g=d-1;for(i=i===r?d:i;++a1?n[i-1]:r;return a=typeof a=="function"?(n.pop(),a):r,Md(n,a)});function Ld(n){var i=A(n);return i.__chain__=!0,i}function v0(n,i){return i(n),n}function Wo(n,i){return i(n)}var g0=Yn(function(n){var i=n.length,a=i?n[0]:0,d=this.__wrapped__,g=function(C){return _l(C,n)};return i>1||this.__actions__.length||!(d instanceof Ye)||!Jn(a)?this.thru(g):(d=d.slice(a,+a+(i?1:0)),d.__actions__.push({func:Wo,args:[g],thisArg:r}),new yn(d,this.__chain__).thru(function(C){return i&&!C.length&&C.push(r),C}))});function y0(){return Ld(this)}function _0(){return new yn(this.value(),this.__chain__)}function b0(){this.__values__===r&&(this.__values__=Zd(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function w0(){return this}function A0(n){for(var i,a=this;a instanceof Po;){var d=Ed(a);d.__index__=0,d.__values__=r,i?g.__wrapped__=d:i=d;var g=d;a=a.__wrapped__}return g.__wrapped__=n,i}function x0(){var n=this.__wrapped__;if(n instanceof Ye){var i=n;return this.__actions__.length&&(i=new Ye(this)),i=i.reverse(),i.__actions__.push({func:Wo,args:[zl],thisArg:r}),new yn(i,this.__chain__)}return this.thru(zl)}function P0(){return Yf(this.__wrapped__,this.__actions__)}var C0=To(function(n,i,a){lt.call(n,a)?++n[a]:Zn(n,a,1)});function k0(n,i,a){var d=He(n)?uf:v_;return a&&qt(n,i,a)&&(i=r),d(n,Me(i,3))}function E0(n,i){var a=He(n)?dr:Mf;return a(n,Me(i,3))}var S0=ad(Sd),O0=ad(Od);function R0(n,i){return Lt(Fo(n,i),1)}function T0(n,i){return Lt(Fo(n,i),P)}function I0(n,i,a){return a=a===r?1:Ue(a),Lt(Fo(n,i),a)}function $d(n,i){var a=He(n)?vn:vr;return a(n,Me(i,3))}function Dd(n,i){var a=He(n)?Jg:If;return a(n,Me(i,3))}var M0=To(function(n,i,a){lt.call(n,a)?n[a].push(i):Zn(n,a,[i])});function L0(n,i,a,d){n=Jt(n)?n:Si(n),a=a&&!d?Ue(a):0;var g=n.length;return a<0&&(a=St(g+a,0)),jo(n)?a<=g&&n.indexOf(i,a)>-1:!!g&&vi(n,i,a)>-1}var $0=Ke(function(n,i,a){var d=-1,g=typeof i=="function",C=Jt(n)?ee(n.length):[];return vr(n,function($){C[++d]=g?sn(i,$,a):us($,i,a)}),C}),D0=To(function(n,i,a){Zn(n,a,i)});function Fo(n,i){var a=He(n)?gt:Wf;return a(n,Me(i,3))}function B0(n,i,a,d){return n==null?[]:(He(i)||(i=i==null?[]:[i]),a=d?r:a,He(a)||(a=a==null?[]:[a]),Uf(n,i,a))}var N0=To(function(n,i,a){n[a?0:1].push(i)},function(){return[[],[]]});function W0(n,i,a){var d=He(n)?ol:hf,g=arguments.length<3;return d(n,Me(i,4),a,g,vr)}function F0(n,i,a){var d=He(n)?Xg:hf,g=arguments.length<3;return d(n,Me(i,4),a,g,If)}function V0(n,i){var a=He(n)?dr:Mf;return a(n,Uo(Me(i,3)))}function H0(n){var i=He(n)?Sf:L_;return i(n)}function U0(n,i,a){(a?qt(n,i,a):i===r)?i=1:i=Ue(i);var d=He(n)?f_:$_;return d(n,i)}function q0(n){var i=He(n)?d_:B_;return i(n)}function j0(n){if(n==null)return 0;if(Jt(n))return jo(n)?yi(n):n.length;var i=Wt(n);return i==z||i==fe?n.size:Cl(n).length}function K0(n,i,a){var d=He(n)?al:N_;return a&&qt(n,i,a)&&(i=r),d(n,Me(i,3))}var z0=Ke(function(n,i){if(n==null)return[];var a=i.length;return a>1&&qt(n,i[0],i[1])?i=[]:a>2&&qt(i[0],i[1],i[2])&&(i=[i[0]]),Uf(n,Lt(i,1),[])}),Vo=Ey||function(){return Mt.Date.now()};function Z0(n,i){if(typeof i!="function")throw new gn(u);return n=Ue(n),function(){if(--n<1)return i.apply(this,arguments)}}function Bd(n,i,a){return i=a?r:i,i=n&&i==null?n.length:i,Gn(n,U,r,r,r,r,i)}function Nd(n,i){var a;if(typeof i!="function")throw new gn(u);return n=Ue(n),function(){return--n>0&&(a=i.apply(this,arguments)),n<=1&&(i=r),a}}var Gl=Ke(function(n,i,a){var d=R;if(a.length){var g=pr(a,ki(Gl));d|=I}return Gn(n,d,i,a,g)}),Wd=Ke(function(n,i,a){var d=R|S;if(a.length){var g=pr(a,ki(Wd));d|=I}return Gn(i,d,n,a,g)});function Fd(n,i,a){i=a?r:i;var d=Gn(n,M,r,r,r,r,r,i);return d.placeholder=Fd.placeholder,d}function Vd(n,i,a){i=a?r:i;var d=Gn(n,k,r,r,r,r,r,i);return d.placeholder=Vd.placeholder,d}function Hd(n,i,a){var d,g,C,$,W,J,ae=0,ue=!1,he=!1,we=!0;if(typeof n!="function")throw new gn(u);i=An(i)||0,At(a)&&(ue=!!a.leading,he="maxWait"in a,C=he?St(An(a.maxWait)||0,i):C,we="trailing"in a?!!a.trailing:we);function Te(Ct){var Rn=d,er=g;return d=g=r,ae=Ct,$=n.apply(er,Rn),$}function $e(Ct){return ae=Ct,W=ps(Ge,i),ue?Te(Ct):$}function qe(Ct){var Rn=Ct-J,er=Ct-ae,ah=i-Rn;return he?Nt(ah,C-er):ah}function De(Ct){var Rn=Ct-J,er=Ct-ae;return J===r||Rn>=i||Rn<0||he&&er>=C}function Ge(){var Ct=Vo();if(De(Ct))return Qe(Ct);W=ps(Ge,qe(Ct))}function Qe(Ct){return W=r,we&&d?Te(Ct):(d=g=r,$)}function un(){W!==r&&Xf(W),ae=0,d=J=g=W=r}function jt(){return W===r?$:Qe(Vo())}function cn(){var Ct=Vo(),Rn=De(Ct);if(d=arguments,g=this,J=Ct,Rn){if(W===r)return $e(J);if(he)return Xf(W),W=ps(Ge,i),Te(J)}return W===r&&(W=ps(Ge,i)),$}return cn.cancel=un,cn.flush=jt,cn}var G0=Ke(function(n,i){return Tf(n,1,i)}),Y0=Ke(function(n,i,a){return Tf(n,An(i)||0,a)});function J0(n){return Gn(n,j)}function Ho(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new gn(u);var a=function(){var d=arguments,g=i?i.apply(this,d):d[0],C=a.cache;if(C.has(g))return C.get(g);var $=n.apply(this,d);return a.cache=C.set(g,$)||C,$};return a.cache=new(Ho.Cache||zn),a}Ho.Cache=zn;function Uo(n){if(typeof n!="function")throw new gn(u);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function X0(n){return Nd(2,n)}var Q0=W_(function(n,i){i=i.length==1&&He(i[0])?gt(i[0],on(Me())):gt(Lt(i,1),on(Me()));var a=i.length;return Ke(function(d){for(var g=-1,C=Nt(d.length,a);++g=i}),Xr=Df(function(){return arguments}())?Df:function(n){return xt(n)&<.call(n,"callee")&&!Af.call(n,"callee")},He=ee.isArray,pb=nf?on(nf):A_;function Jt(n){return n!=null&&qo(n.length)&&!Xn(n)}function Pt(n){return xt(n)&&Jt(n)}function mb(n){return n===!0||n===!1||xt(n)&&Ut(n)==oe}var br=Oy||au,vb=rf?on(rf):x_;function gb(n){return xt(n)&&n.nodeType===1&&!ms(n)}function yb(n){if(n==null)return!0;if(Jt(n)&&(He(n)||typeof n=="string"||typeof n.splice=="function"||br(n)||Ei(n)||Xr(n)))return!n.length;var i=Wt(n);if(i==z||i==fe)return!n.size;if(hs(n))return!Cl(n).length;for(var a in n)if(lt.call(n,a))return!1;return!0}function _b(n,i){return cs(n,i)}function bb(n,i,a){a=typeof a=="function"?a:r;var d=a?a(n,i):r;return d===r?cs(n,i,r,a):!!d}function Jl(n){if(!xt(n))return!1;var i=Ut(n);return i==Re||i==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!ms(n)}function wb(n){return typeof n=="number"&&Pf(n)}function Xn(n){if(!At(n))return!1;var i=Ut(n);return i==T||i==D||i==X||i==ve}function qd(n){return typeof n=="number"&&n==Ue(n)}function qo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=w}function At(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function xt(n){return n!=null&&typeof n=="object"}var jd=sf?on(sf):C_;function Ab(n,i){return n===i||Pl(n,i,Vl(i))}function xb(n,i,a){return a=typeof a=="function"?a:r,Pl(n,i,Vl(i),a)}function Pb(n){return Kd(n)&&n!=+n}function Cb(n){if(l1(n))throw new Fe(l);return Bf(n)}function kb(n){return n===null}function Eb(n){return n==null}function Kd(n){return typeof n=="number"||xt(n)&&Ut(n)==re}function ms(n){if(!xt(n)||Ut(n)!=le)return!1;var i=go(n);if(i===null)return!0;var a=lt.call(i,"constructor")&&i.constructor;return typeof a=="function"&&a instanceof a&&ho.call(a)==xy}var Xl=of?on(of):k_;function Sb(n){return qd(n)&&n>=-w&&n<=w}var zd=af?on(af):E_;function jo(n){return typeof n=="string"||!He(n)&&xt(n)&&Ut(n)==Se}function ln(n){return typeof n=="symbol"||xt(n)&&Ut(n)==ke}var Ei=lf?on(lf):S_;function Ob(n){return n===r}function Rb(n){return xt(n)&&Wt(n)==Le}function Tb(n){return xt(n)&&Ut(n)==Ze}var Ib=$o(kl),Mb=$o(function(n,i){return n<=i});function Zd(n){if(!n)return[];if(Jt(n))return jo(n)?En(n):Yt(n);if(ns&&n[ns])return fy(n[ns]());var i=Wt(n),a=i==z?hl:i==fe?uo:Si;return a(n)}function Qn(n){if(!n)return n===0?n:0;if(n=An(n),n===P||n===-P){var i=n<0?-1:1;return i*Y}return n===n?n:0}function Ue(n){var i=Qn(n),a=i%1;return i===i?a?i-a:i:0}function Gd(n){return n?Zr(Ue(n),0,_):0}function An(n){if(typeof n=="number")return n;if(ln(n))return B;if(At(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=At(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=pf(n);var a=pg.test(n);return a||vg.test(n)?Zg(n.slice(2),a?2:8):hg.test(n)?B:+n}function Yd(n){return Nn(n,Xt(n))}function Lb(n){return n?Zr(Ue(n),-w,w):n===0?n:0}function ot(n){return n==null?"":an(n)}var $b=Pi(function(n,i){if(hs(i)||Jt(i)){Nn(i,Rt(i),n);return}for(var a in i)lt.call(i,a)&&as(n,a,i[a])}),Jd=Pi(function(n,i){Nn(i,Xt(i),n)}),Ko=Pi(function(n,i,a,d){Nn(i,Xt(i),n,d)}),Db=Pi(function(n,i,a,d){Nn(i,Rt(i),n,d)}),Bb=Yn(_l);function Nb(n,i){var a=xi(n);return i==null?a:Of(a,i)}var Wb=Ke(function(n,i){n=dt(n);var a=-1,d=i.length,g=d>2?i[2]:r;for(g&&qt(i[0],i[1],g)&&(d=1);++a1),C}),Nn(n,Wl(n),a),d&&(a=_n(a,v|m|b,Y_));for(var g=i.length;g--;)Tl(a,i[g]);return a});function rw(n,i){return Qd(n,Uo(Me(i)))}var iw=Yn(function(n,i){return n==null?{}:T_(n,i)});function Qd(n,i){if(n==null)return{};var a=gt(Wl(n),function(d){return[d]});return i=Me(i),qf(n,a,function(d,g){return i(d,g[0])})}function sw(n,i,a){i=yr(i,n);var d=-1,g=i.length;for(g||(g=1,n=r);++di){var d=n;n=i,i=d}if(a||n%1||i%1){var g=Cf();return Nt(n+g*(i-n+zg("1e-"+((g+"").length-1))),i)}return Sl(n,i)}var vw=Ci(function(n,i,a){return i=i.toLowerCase(),n+(a?nh(i):i)});function nh(n){return tu(ot(n).toLowerCase())}function rh(n){return n=ot(n),n&&n.replace(yg,oy).replace(Bg,"")}function gw(n,i,a){n=ot(n),i=an(i);var d=n.length;a=a===r?d:Zr(Ue(a),0,d);var g=a;return a-=i.length,a>=0&&n.slice(a,g)==i}function yw(n){return n=ot(n),n&&Xv.test(n)?n.replace(Mc,ay):n}function _w(n){return n=ot(n),n&&ig.test(n)?n.replace(Ya,"\\$&"):n}var bw=Ci(function(n,i,a){return n+(a?"-":"")+i.toLowerCase()}),ww=Ci(function(n,i,a){return n+(a?" ":"")+i.toLowerCase()}),Aw=od("toLowerCase");function xw(n,i,a){n=ot(n),i=Ue(i);var d=i?yi(n):0;if(!i||d>=i)return n;var g=(i-d)/2;return Lo(wo(g),a)+n+Lo(bo(g),a)}function Pw(n,i,a){n=ot(n),i=Ue(i);var d=i?yi(n):0;return i&&d>>0,a?(n=ot(n),n&&(typeof i=="string"||i!=null&&!Xl(i))&&(i=an(i),!i&&gi(n))?_r(En(n),0,a):n.split(i,a)):[]}var Tw=Ci(function(n,i,a){return n+(a?" ":"")+tu(i)});function Iw(n,i,a){return n=ot(n),a=a==null?0:Zr(Ue(a),0,n.length),i=an(i),n.slice(a,a+i.length)==i}function Mw(n,i,a){var d=A.templateSettings;a&&qt(n,i,a)&&(i=r),n=ot(n),i=Ko({},i,d,hd);var g=Ko({},i.imports,d.imports,hd),C=Rt(g),$=dl(g,C),W,J,ae=0,ue=i.interpolate||io,he="__p += '",we=pl((i.escape||io).source+"|"+ue.source+"|"+(ue===Lc?dg:io).source+"|"+(i.evaluate||io).source+"|$","g"),Te="//# sourceURL="+(lt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hg+"]")+` +`)}function s1(n){return He(n)||Xr(n)||!!(xf&&n&&n[xf])}function Jn(n,i){var a=typeof n;return i=i??b,!!i&&(a=="number"||a!="symbol"&&gg.test(n))&&n>-1&&n%1==0&&n0){if(++i>=G)return arguments[0]}else i=0;return n.apply(r,arguments)}}function No(n,i){var a=-1,d=n.length,g=d-1;for(i=i===r?d:i;++a1?n[i-1]:r;return a=typeof a=="function"?(n.pop(),a):r,Md(n,a)});function Ld(n){var i=w(n);return i.__chain__=!0,i}function v0(n,i){return i(n),n}function Wo(n,i){return i(n)}var g0=Yn(function(n){var i=n.length,a=i?n[0]:0,d=this.__wrapped__,g=function(C){return _l(C,n)};return i>1||this.__actions__.length||!(d instanceof Ye)||!Jn(a)?this.thru(g):(d=d.slice(a,+a+(i?1:0)),d.__actions__.push({func:Wo,args:[g],thisArg:r}),new yn(d,this.__chain__).thru(function(C){return i&&!C.length&&C.push(r),C}))});function y0(){return Ld(this)}function _0(){return new yn(this.value(),this.__chain__)}function b0(){this.__values__===r&&(this.__values__=Zd(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function w0(){return this}function A0(n){for(var i,a=this;a instanceof Po;){var d=Ed(a);d.__index__=0,d.__values__=r,i?g.__wrapped__=d:i=d;var g=d;a=a.__wrapped__}return g.__wrapped__=n,i}function x0(){var n=this.__wrapped__;if(n instanceof Ye){var i=n;return this.__actions__.length&&(i=new Ye(this)),i=i.reverse(),i.__actions__.push({func:Wo,args:[zl],thisArg:r}),new yn(i,this.__chain__)}return this.thru(zl)}function P0(){return Yf(this.__wrapped__,this.__actions__)}var C0=To(function(n,i,a){lt.call(n,a)?++n[a]:Zn(n,a,1)});function k0(n,i,a){var d=He(n)?uf:v_;return a&&qt(n,i,a)&&(i=r),d(n,Me(i,3))}function E0(n,i){var a=He(n)?dr:Mf;return a(n,Me(i,3))}var S0=ad(Sd),O0=ad(Od);function R0(n,i){return Lt(Fo(n,i),1)}function T0(n,i){return Lt(Fo(n,i),P)}function I0(n,i,a){return a=a===r?1:Ue(a),Lt(Fo(n,i),a)}function $d(n,i){var a=He(n)?vn:vr;return a(n,Me(i,3))}function Dd(n,i){var a=He(n)?Jg:If;return a(n,Me(i,3))}var M0=To(function(n,i,a){lt.call(n,a)?n[a].push(i):Zn(n,a,[i])});function L0(n,i,a,d){n=Jt(n)?n:Si(n),a=a&&!d?Ue(a):0;var g=n.length;return a<0&&(a=St(g+a,0)),jo(n)?a<=g&&n.indexOf(i,a)>-1:!!g&&vi(n,i,a)>-1}var $0=Ke(function(n,i,a){var d=-1,g=typeof i=="function",C=Jt(n)?ee(n.length):[];return vr(n,function($){C[++d]=g?sn(i,$,a):us($,i,a)}),C}),D0=To(function(n,i,a){Zn(n,a,i)});function Fo(n,i){var a=He(n)?gt:Wf;return a(n,Me(i,3))}function B0(n,i,a,d){return n==null?[]:(He(i)||(i=i==null?[]:[i]),a=d?r:a,He(a)||(a=a==null?[]:[a]),Uf(n,i,a))}var N0=To(function(n,i,a){n[a?0:1].push(i)},function(){return[[],[]]});function W0(n,i,a){var d=He(n)?ol:hf,g=arguments.length<3;return d(n,Me(i,4),a,g,vr)}function F0(n,i,a){var d=He(n)?Xg:hf,g=arguments.length<3;return d(n,Me(i,4),a,g,If)}function V0(n,i){var a=He(n)?dr:Mf;return a(n,Uo(Me(i,3)))}function H0(n){var i=He(n)?Sf:L_;return i(n)}function U0(n,i,a){(a?qt(n,i,a):i===r)?i=1:i=Ue(i);var d=He(n)?f_:$_;return d(n,i)}function q0(n){var i=He(n)?d_:B_;return i(n)}function j0(n){if(n==null)return 0;if(Jt(n))return jo(n)?yi(n):n.length;var i=Wt(n);return i==z||i==fe?n.size:Cl(n).length}function K0(n,i,a){var d=He(n)?al:N_;return a&&qt(n,i,a)&&(i=r),d(n,Me(i,3))}var z0=Ke(function(n,i){if(n==null)return[];var a=i.length;return a>1&&qt(n,i[0],i[1])?i=[]:a>2&&qt(i[0],i[1],i[2])&&(i=[i[0]]),Uf(n,Lt(i,1),[])}),Vo=Ey||function(){return Mt.Date.now()};function Z0(n,i){if(typeof i!="function")throw new gn(u);return n=Ue(n),function(){if(--n<1)return i.apply(this,arguments)}}function Bd(n,i,a){return i=a?r:i,i=n&&i==null?n.length:i,Gn(n,U,r,r,r,r,i)}function Nd(n,i){var a;if(typeof i!="function")throw new gn(u);return n=Ue(n),function(){return--n>0&&(a=i.apply(this,arguments)),n<=1&&(i=r),a}}var Gl=Ke(function(n,i,a){var d=R;if(a.length){var g=pr(a,ki(Gl));d|=I}return Gn(n,d,i,a,g)}),Wd=Ke(function(n,i,a){var d=R|O;if(a.length){var g=pr(a,ki(Wd));d|=I}return Gn(i,d,n,a,g)});function Fd(n,i,a){i=a?r:i;var d=Gn(n,M,r,r,r,r,r,i);return d.placeholder=Fd.placeholder,d}function Vd(n,i,a){i=a?r:i;var d=Gn(n,E,r,r,r,r,r,i);return d.placeholder=Vd.placeholder,d}function Hd(n,i,a){var d,g,C,$,W,J,ae=0,ue=!1,he=!1,we=!0;if(typeof n!="function")throw new gn(u);i=An(i)||0,At(a)&&(ue=!!a.leading,he="maxWait"in a,C=he?St(An(a.maxWait)||0,i):C,we="trailing"in a?!!a.trailing:we);function Te(Ct){var Rn=d,er=g;return d=g=r,ae=Ct,$=n.apply(er,Rn),$}function $e(Ct){return ae=Ct,W=ps(Ge,i),ue?Te(Ct):$}function qe(Ct){var Rn=Ct-J,er=Ct-ae,ah=i-Rn;return he?Nt(ah,C-er):ah}function De(Ct){var Rn=Ct-J,er=Ct-ae;return J===r||Rn>=i||Rn<0||he&&er>=C}function Ge(){var Ct=Vo();if(De(Ct))return Qe(Ct);W=ps(Ge,qe(Ct))}function Qe(Ct){return W=r,we&&d?Te(Ct):(d=g=r,$)}function un(){W!==r&&Xf(W),ae=0,d=J=g=W=r}function jt(){return W===r?$:Qe(Vo())}function cn(){var Ct=Vo(),Rn=De(Ct);if(d=arguments,g=this,J=Ct,Rn){if(W===r)return $e(J);if(he)return Xf(W),W=ps(Ge,i),Te(J)}return W===r&&(W=ps(Ge,i)),$}return cn.cancel=un,cn.flush=jt,cn}var G0=Ke(function(n,i){return Tf(n,1,i)}),Y0=Ke(function(n,i,a){return Tf(n,An(i)||0,a)});function J0(n){return Gn(n,j)}function Ho(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new gn(u);var a=function(){var d=arguments,g=i?i.apply(this,d):d[0],C=a.cache;if(C.has(g))return C.get(g);var $=n.apply(this,d);return a.cache=C.set(g,$)||C,$};return a.cache=new(Ho.Cache||zn),a}Ho.Cache=zn;function Uo(n){if(typeof n!="function")throw new gn(u);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function X0(n){return Nd(2,n)}var Q0=W_(function(n,i){i=i.length==1&&He(i[0])?gt(i[0],on(Me())):gt(Lt(i,1),on(Me()));var a=i.length;return Ke(function(d){for(var g=-1,C=Nt(d.length,a);++g=i}),Xr=Df(function(){return arguments}())?Df:function(n){return xt(n)&<.call(n,"callee")&&!Af.call(n,"callee")},He=ee.isArray,pb=nf?on(nf):A_;function Jt(n){return n!=null&&qo(n.length)&&!Xn(n)}function Pt(n){return xt(n)&&Jt(n)}function mb(n){return n===!0||n===!1||xt(n)&&Ut(n)==oe}var br=Oy||au,vb=rf?on(rf):x_;function gb(n){return xt(n)&&n.nodeType===1&&!ms(n)}function yb(n){if(n==null)return!0;if(Jt(n)&&(He(n)||typeof n=="string"||typeof n.splice=="function"||br(n)||Ei(n)||Xr(n)))return!n.length;var i=Wt(n);if(i==z||i==fe)return!n.size;if(hs(n))return!Cl(n).length;for(var a in n)if(lt.call(n,a))return!1;return!0}function _b(n,i){return cs(n,i)}function bb(n,i,a){a=typeof a=="function"?a:r;var d=a?a(n,i):r;return d===r?cs(n,i,r,a):!!d}function Jl(n){if(!xt(n))return!1;var i=Ut(n);return i==Re||i==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!ms(n)}function wb(n){return typeof n=="number"&&Pf(n)}function Xn(n){if(!At(n))return!1;var i=Ut(n);return i==T||i==D||i==X||i==ve}function qd(n){return typeof n=="number"&&n==Ue(n)}function qo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=b}function At(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function xt(n){return n!=null&&typeof n=="object"}var jd=sf?on(sf):C_;function Ab(n,i){return n===i||Pl(n,i,Vl(i))}function xb(n,i,a){return a=typeof a=="function"?a:r,Pl(n,i,Vl(i),a)}function Pb(n){return Kd(n)&&n!=+n}function Cb(n){if(l1(n))throw new Ve(l);return Bf(n)}function kb(n){return n===null}function Eb(n){return n==null}function Kd(n){return typeof n=="number"||xt(n)&&Ut(n)==re}function ms(n){if(!xt(n)||Ut(n)!=le)return!1;var i=go(n);if(i===null)return!0;var a=lt.call(i,"constructor")&&i.constructor;return typeof a=="function"&&a instanceof a&&ho.call(a)==xy}var Xl=of?on(of):k_;function Sb(n){return qd(n)&&n>=-b&&n<=b}var zd=af?on(af):E_;function jo(n){return typeof n=="string"||!He(n)&&xt(n)&&Ut(n)==Se}function ln(n){return typeof n=="symbol"||xt(n)&&Ut(n)==ke}var Ei=lf?on(lf):S_;function Ob(n){return n===r}function Rb(n){return xt(n)&&Wt(n)==Le}function Tb(n){return xt(n)&&Ut(n)==Ze}var Ib=$o(kl),Mb=$o(function(n,i){return n<=i});function Zd(n){if(!n)return[];if(Jt(n))return jo(n)?En(n):Yt(n);if(ns&&n[ns])return fy(n[ns]());var i=Wt(n),a=i==z?hl:i==fe?uo:Si;return a(n)}function Qn(n){if(!n)return n===0?n:0;if(n=An(n),n===P||n===-P){var i=n<0?-1:1;return i*Y}return n===n?n:0}function Ue(n){var i=Qn(n),a=i%1;return i===i?a?i-a:i:0}function Gd(n){return n?Zr(Ue(n),0,_):0}function An(n){if(typeof n=="number")return n;if(ln(n))return B;if(At(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=At(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=pf(n);var a=pg.test(n);return a||vg.test(n)?Zg(n.slice(2),a?2:8):hg.test(n)?B:+n}function Yd(n){return Nn(n,Xt(n))}function Lb(n){return n?Zr(Ue(n),-b,b):n===0?n:0}function ot(n){return n==null?"":an(n)}var $b=Pi(function(n,i){if(hs(i)||Jt(i)){Nn(i,Rt(i),n);return}for(var a in i)lt.call(i,a)&&as(n,a,i[a])}),Jd=Pi(function(n,i){Nn(i,Xt(i),n)}),Ko=Pi(function(n,i,a,d){Nn(i,Xt(i),n,d)}),Db=Pi(function(n,i,a,d){Nn(i,Rt(i),n,d)}),Bb=Yn(_l);function Nb(n,i){var a=xi(n);return i==null?a:Of(a,i)}var Wb=Ke(function(n,i){n=dt(n);var a=-1,d=i.length,g=d>2?i[2]:r;for(g&&qt(i[0],i[1],g)&&(d=1);++a1),C}),Nn(n,Wl(n),a),d&&(a=_n(a,v|m|y,Y_));for(var g=i.length;g--;)Tl(a,i[g]);return a});function rw(n,i){return Qd(n,Uo(Me(i)))}var iw=Yn(function(n,i){return n==null?{}:T_(n,i)});function Qd(n,i){if(n==null)return{};var a=gt(Wl(n),function(d){return[d]});return i=Me(i),qf(n,a,function(d,g){return i(d,g[0])})}function sw(n,i,a){i=yr(i,n);var d=-1,g=i.length;for(g||(g=1,n=r);++di){var d=n;n=i,i=d}if(a||n%1||i%1){var g=Cf();return Nt(n+g*(i-n+zg("1e-"+((g+"").length-1))),i)}return Sl(n,i)}var vw=Ci(function(n,i,a){return i=i.toLowerCase(),n+(a?nh(i):i)});function nh(n){return tu(ot(n).toLowerCase())}function rh(n){return n=ot(n),n&&n.replace(yg,oy).replace(Bg,"")}function gw(n,i,a){n=ot(n),i=an(i);var d=n.length;a=a===r?d:Zr(Ue(a),0,d);var g=a;return a-=i.length,a>=0&&n.slice(a,g)==i}function yw(n){return n=ot(n),n&&Xv.test(n)?n.replace(Mc,ay):n}function _w(n){return n=ot(n),n&&ig.test(n)?n.replace(Ya,"\\$&"):n}var bw=Ci(function(n,i,a){return n+(a?"-":"")+i.toLowerCase()}),ww=Ci(function(n,i,a){return n+(a?" ":"")+i.toLowerCase()}),Aw=od("toLowerCase");function xw(n,i,a){n=ot(n),i=Ue(i);var d=i?yi(n):0;if(!i||d>=i)return n;var g=(i-d)/2;return Lo(wo(g),a)+n+Lo(bo(g),a)}function Pw(n,i,a){n=ot(n),i=Ue(i);var d=i?yi(n):0;return i&&d>>0,a?(n=ot(n),n&&(typeof i=="string"||i!=null&&!Xl(i))&&(i=an(i),!i&&gi(n))?_r(En(n),0,a):n.split(i,a)):[]}var Tw=Ci(function(n,i,a){return n+(a?" ":"")+tu(i)});function Iw(n,i,a){return n=ot(n),a=a==null?0:Zr(Ue(a),0,n.length),i=an(i),n.slice(a,a+i.length)==i}function Mw(n,i,a){var d=w.templateSettings;a&&qt(n,i,a)&&(i=r),n=ot(n),i=Ko({},i,d,hd);var g=Ko({},i.imports,d.imports,hd),C=Rt(g),$=dl(g,C),W,J,ae=0,ue=i.interpolate||io,he="__p += '",we=pl((i.escape||io).source+"|"+ue.source+"|"+(ue===Lc?dg:io).source+"|"+(i.evaluate||io).source+"|$","g"),Te="//# sourceURL="+(lt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hg+"]")+` `;n.replace(we,function(De,Ge,Qe,un,jt,cn){return Qe||(Qe=un),he+=n.slice(ae,cn).replace(_g,ly),Ge&&(W=!0,he+=`' + __e(`+Ge+`) + '`),jt&&(J=!0,he+=`'; @@ -27,16 +27,16 @@ __p += '`),Qe&&(he+=`' + `;var $e=lt.call(i,"variable")&&i.variable;if(!$e)he=`with (obj) { `+he+` } -`;else if(cg.test($e))throw new Fe(c);he=(J?he.replace(Zv,""):he).replace(Gv,"$1").replace(Yv,"$1;"),he="function("+($e||"obj")+`) { +`;else if(cg.test($e))throw new Ve(c);he=(J?he.replace(Zv,""):he).replace(Gv,"$1").replace(Yv,"$1;"),he="function("+($e||"obj")+`) { `+($e?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+he+`return __p -}`;var qe=sh(function(){return it(C,Te+"return "+he).apply(r,$)});if(qe.source=he,Jl(qe))throw qe;return qe}function Lw(n){return ot(n).toLowerCase()}function $w(n){return ot(n).toUpperCase()}function Dw(n,i,a){if(n=ot(n),n&&(a||i===r))return pf(n);if(!n||!(i=an(i)))return n;var d=En(n),g=En(i),C=mf(d,g),$=vf(d,g)+1;return _r(d,C,$).join("")}function Bw(n,i,a){if(n=ot(n),n&&(a||i===r))return n.slice(0,yf(n)+1);if(!n||!(i=an(i)))return n;var d=En(n),g=vf(d,En(i))+1;return _r(d,0,g).join("")}function Nw(n,i,a){if(n=ot(n),n&&(a||i===r))return n.replace(Ja,"");if(!n||!(i=an(i)))return n;var d=En(n),g=mf(d,En(i));return _r(d,g).join("")}function Ww(n,i){var a=K,d=q;if(At(i)){var g="separator"in i?i.separator:g;a="length"in i?Ue(i.length):a,d="omission"in i?an(i.omission):d}n=ot(n);var C=n.length;if(gi(n)){var $=En(n);C=$.length}if(a>=C)return n;var W=a-yi(d);if(W<1)return d;var J=$?_r($,0,W).join(""):n.slice(0,W);if(g===r)return J+d;if($&&(W+=J.length-W),Xl(g)){if(n.slice(W).search(g)){var ae,ue=J;for(g.global||(g=pl(g.source,ot($c.exec(g))+"g")),g.lastIndex=0;ae=g.exec(ue);)var he=ae.index;J=J.slice(0,he===r?W:he)}}else if(n.indexOf(an(g),W)!=W){var we=J.lastIndexOf(g);we>-1&&(J=J.slice(0,we))}return J+d}function Fw(n){return n=ot(n),n&&Jv.test(n)?n.replace(Ic,my):n}var Vw=Ci(function(n,i,a){return n+(a?" ":"")+i.toUpperCase()}),tu=od("toUpperCase");function ih(n,i,a){return n=ot(n),i=a?r:i,i===r?cy(n)?yy(n):ty(n):n.match(i)||[]}var sh=Ke(function(n,i){try{return sn(n,r,i)}catch(a){return Jl(a)?a:new Fe(a)}}),Hw=Yn(function(n,i){return vn(i,function(a){a=Wn(a),Zn(n,a,Gl(n[a],n))}),n});function Uw(n){var i=n==null?0:n.length,a=Me();return n=i?gt(n,function(d){if(typeof d[1]!="function")throw new gn(u);return[a(d[0]),d[1]]}):[],Ke(function(d){for(var g=-1;++gw)return[];var a=_,d=Nt(n,_);i=Me(i),n-=_;for(var g=fl(d,i);++a0||i<0)?new Ye(a):(n<0?a=a.takeRight(-n):n&&(a=a.drop(n)),i!==r&&(i=Ue(i),a=i<0?a.dropRight(-i):a.take(i-n)),a)},Ye.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ye.prototype.toArray=function(){return this.take(_)},Bn(Ye.prototype,function(n,i){var a=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),g=A[d?"take"+(i=="last"?"Right":""):i],C=d||/^find/.test(i);g&&(A.prototype[i]=function(){var $=this.__wrapped__,W=d?[1]:arguments,J=$ instanceof Ye,ae=W[0],ue=J||He($),he=function(Ge){var Qe=g.apply(A,hr([Ge],W));return d&&we?Qe[0]:Qe};ue&&a&&typeof ae=="function"&&ae.length!=1&&(J=ue=!1);var we=this.__chain__,Te=!!this.__actions__.length,$e=C&&!we,qe=J&&!Te;if(!C&&ue){$=qe?$:new Ye(this);var De=n.apply($,W);return De.__actions__.push({func:Wo,args:[he],thisArg:r}),new yn(De,we)}return $e&&qe?n.apply(this,W):(De=this.thru(he),$e?d?De.value()[0]:De.value():De)})}),vn(["pop","push","shift","sort","splice","unshift"],function(n){var i=co[n],a=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var g=arguments;if(d&&!this.__chain__){var C=this.value();return i.apply(He(C)?C:[],g)}return this[a](function($){return i.apply(He($)?$:[],g)})}}),Bn(Ye.prototype,function(n,i){var a=A[i];if(a){var d=a.name+"";lt.call(Ai,d)||(Ai[d]=[]),Ai[d].push({name:i,func:a})}}),Ai[Io(r,S).name]=[{name:"wrapper",func:r}],Ye.prototype.clone=Fy,Ye.prototype.reverse=Vy,Ye.prototype.value=Hy,A.prototype.at=g0,A.prototype.chain=y0,A.prototype.commit=_0,A.prototype.next=b0,A.prototype.plant=A0,A.prototype.reverse=x0,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=P0,A.prototype.first=A.prototype.head,ns&&(A.prototype[ns]=w0),A},_i=_y();qr?((qr.exports=_i)._=_i,rl._=_i):Mt._=_i}).call(As)})(ka,ka.exports);var u3=ka.exports;const c3={class:"flex flex-col"},f3=ze({__name:"InputWithAutoComplete",props:{icon:String,placeholder:String,modelValue:String,onClick:{type:Function,required:!1},suggest:{type:Function,required:!0},clickSuggest:{type:Function,required:!1}},emits:["update:modelValue","change","submit"],setup(e,{expose:t,emit:r}){const s=Pe(-1),o=R=>R.key==="ArrowDown"?(s.value++,s.value>=m.value.length&&(s.value=-1),!0):R.key==="ArrowUp"?(s.value===-1&&(s.value=m.value.length),s.value--,s.value<0&&(s.value=-1),!0):R.key==="Enter"&&s.value>=0?(c.clickSuggest(m.value[s.value],R.shiftKey),s.value=-1,m.value=[],!0):!1,l=()=>{m.value=[],y("submit",f.value)},u=()=>{var R,S;(S=(R=p.value)==null?void 0:R.querySelector("input"))==null||S.blur()};document.addEventListener("click",R=>{var S;(S=p.value)!=null&&S.contains(R.target)||(m.value=[],s.value=-1)}),document.addEventListener("keydown",R=>{R.key==="Escape"&&(m.value=[],s.value=-1,u())});const c=e,f=Pe(c.modelValue),h=Pe(null);st(()=>c.modelValue,R=>{f.value=R});const p=Pe(null),v=Ve(()=>{var R,S;return{top:p.value.offsetTop+p.value.offsetHeight+"px",left:((R=p.value)==null?void 0:R.offsetLeft)+"px",width:((S=p.value)==null?void 0:S.offsetWidth)+"px"}}),m=Pe([]),b=u3.debounce(async()=>{m.value=(await c.suggest(f.value)).slice(0,5)},300),y=r,E=()=>{y("update:modelValue",f.value),y("change",f.value),b()};return t({focus:()=>{var R;(R=h.value)==null||R.focus()},blur:u}),(R,S)=>(ne(),ge(et,null,[te("div",{ref_key:"inputElement",ref:p,class:"input-with-autocomplete"},[me(Gu,{modelValue:f.value,"onUpdate:modelValue":S[0]||(S[0]=O=>f.value=O),icon:e.icon,placeholder:e.placeholder,onChange:E,onSubmit:l,onKeyUp:o,expanded:m.value.length>0,ref_key:"input",ref:h},null,8,["modelValue","icon","placeholder","expanded"])],512),m.value.length>0?(ne(),je(eo,{key:0,to:"#autocomplete-target"},[te("div",{class:"suggestions absolute w-full z-10",style:Vr(v.value),onClick:S[1]||(S[1]=Dt(O=>m.value=[],["stop"]))},[te("div",c3,[(ne(!0),ge(et,null,fr(m.value,(O,M)=>Ui(R.$slots,"default",{selected:M===s.value,value:O},void 0,!0)),256))])],4)])):Ne("",!0)],64))}});const d3=at(f3,[["__scopeId","data-v-d77dd6e4"]]);const h3={name:"Loader"},p3=e=>(ci("data-v-5094a170"),e=e(),fi(),e),m3={class:"loader"},v3=p3(()=>te("div",{class:"spinner"},[te("div",{class:"bounce1"}),te("div",{class:"bounce2"}),te("div",{class:"bounce3"})],-1)),g3=[v3];function y3(e,t,r,s,o,l){return ne(),ge("div",m3,g3)}const Ov=at(h3,[["render",y3],["__scopeId","data-v-5094a170"]]),_3={key:1},b3=ze({__name:"IconButton",props:{icon:{type:String,required:!1},label:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"negative"}},setup(e){return(t,r)=>(ne(),ge("button",{class:Je([(e.disabled?"disabled ":"")+e.type,"flex items-center justify-center h-12 p-4 mt-4 rounded-full"])},[e.icon?(ne(),ge("span",{key:0,class:Je([{"mr-2":e.label},"material-symbols-rounded"])},We(e.icon),3)):Ne("",!0),e.label?(ne(),ge("span",_3,We(e.label),1)):Ne("",!0)],2))}});const kp=at(b3,[["__scopeId","data-v-b68d33f1"]]),w3=e=>(ci("data-v-e243c458"),e=e(),fi(),e),A3={class:"header bg-secondary rounded-t-2xl p-3"},x3={class:"title font-black"},P3=w3(()=>te("span",{class:"title material-icons-round"}," close ",-1)),C3=[P3],k3={key:1},E3={class:"p-4 error"},S3={key:2,class:"p-4 pt-0 flex flex-col overflow-x-hidden overflow-y-auto"},O3={key:0,class:"confirm"},R3=ze({__name:"Template",props:{name:{type:String,required:!0},submit:{type:Object,required:!1},secondary:{type:Object,required:!1,default:null}},emits:["submit","close","secondary"],setup(e,{expose:t,emit:r}){const s=e,o=Pe(!1),l=Pe(!1),u=Pe(""),c=()=>l.value=!1,f=()=>{o.value=!1,l.value=!0},h=()=>{o.value=!0,l.value=!0},p=async(E,R)=>{h();const S=await window.fetch(E,R);return f(),S.ok?S:(u.value=await S.text(),null)},v=r,m=()=>{c(),v("close")},b=()=>{v("submit"),m()},y=()=>{v("secondary"),m()};return t({show:f,hide:c,load:h,fetch:p}),(E,R)=>l.value?(ne(),je(eo,{key:0,to:"#popup-target"},[te("div",{class:"modal",onClick:R[1]||(R[1]=Dt(S=>l.value=!1,["stop"])),onContextmenu:R[2]||(R[2]=Dt(()=>{},["stop"])),onDrag:R[3]||(R[3]=Dt(()=>{},["stop"]))},[te("div",{class:"modal-content",onClick:R[0]||(R[0]=Dt(()=>{},["stop"]))},[te("div",A3,[te("h3",x3,We(e.name),1),te("button",{class:"modal-close",onClick:m},C3)]),o.value?(ne(),je(Ov,{key:0})):u.value?(ne(),ge("div",k3,[te("p",E3,We(u.value),1)])):(ne(),ge("div",S3,[Ui(E.$slots,"default",{},void 0,!0),s.submit||s.secondary?(ne(),ge("div",O3,[s.secondary?(ne(),je(kp,{key:0,icon:s.secondary.icon,label:s.secondary.label,type:s.secondary.type,onClick:y},null,8,["icon","label","type"])):Ne("",!0),s.submit?(ne(),je(kp,{key:1,icon:s.submit.icon,label:s.submit.label,type:s.submit.type,onClick:b},null,8,["icon","label","type"])):Ne("",!0)])):Ne("",!0)]))])],32)])):Ne("",!0)}});const Rv=at(R3,[["__scopeId","data-v-e243c458"]]),T3={class:"flex flex-row gap-2"},I3={key:0,class:"material-symbols-rounded ms-wght-200"},M3={class:"material-symbols-rounded"},L3=["onClick"],$3={class:"material-symbols-rounded"},D3={key:0,class:"material-symbols-rounded"},B3=ze({__name:"Dropdown",props:{modelValue:{type:String,required:!0},options:{type:Array,required:!0},icon:{type:String,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=Pe(r.modelValue),o=Pe(!1),l=t;st(r,p=>{s.value=p.modelValue},{deep:!0});const u=p=>{s.value=p,l("update:modelValue",p),o.value=!1},c=Ve(()=>{const p=r.options.find(v=>v.value==s.value);return p?p.label:""}),f=Pe(null),h=Pe(null);return st(o,p=>{ur(()=>{if(p){const v=f.value.getBoundingClientRect(),m=h.value.getBoundingClientRect(),b=m.top,y=m.bottom,E=window.innerHeight-y,R=m.width;f.value.style.width=R+"px",f.value.style.left=m.left+"px",E>v.height?(f.value.style.top=y+"px",f.value.style.bottom="auto"):(f.value.style.top="auto",f.value.style.bottom=b-v.height+"px")}})}),window.addEventListener("click",()=>{o.value=!1}),(p,v)=>(ne(),ge("div",{ref_key:"container",ref:h,class:"dropdown"},[te("div",{class:Je([{expanded:o.value},"dropdown__selected"]),onClick:v[0]||(v[0]=Dt(m=>o.value=!o.value,["stop"]))},[te("div",T3,[e.icon?(ne(),ge("span",I3,We(e.icon),1)):Ne("",!0),te("span",null,We(c.value),1)]),te("i",M3,We(o.value?"expand_less":"expand_more"),1)],2),(ne(),je(eo,{to:"#dropdown-target"},[o.value?(ne(),ge("div",{key:0,ref_key:"trueDropdown",ref:f,class:"dropdown__options"},[(ne(!0),ge(et,null,fr(e.options,m=>(ne(),ge("div",{key:m.value,class:"dropdown__option",onClick:Dt(b=>u(m.value),["stop"])},[te("span",$3,We(m.icon),1),te("span",null,We(m.label),1),s.value==m.value?(ne(),ge("span",D3,"check")):Ne("",!0)],8,L3))),128))],512)):Ne("",!0)]))],512))}});const N3=at(B3,[["__scopeId","data-v-186027d9"]]),W3={class:"form"},F3={class:"content"},V3=["onClick"],H3=["accept","onChange"],U3={key:0,class:"imagePreview"},q3=["onUpdate:modelValue","type","onChange"],j3=ze({__name:"Form",props:{options:{type:Array,required:!0}},setup(e,{expose:t}){const r=e;return t({toObject:()=>{const o={};return r.options.forEach(l=>{o[l.name]=l.value}),o}}),(o,l)=>(ne(),ge("div",W3,[(ne(!0),ge(et,null,fr(e.options,u=>(ne(),ge("div",{key:u.name,class:"option"},[te("h4",null,We(se(V5)(u.name)),1),te("div",F3,[u.type=="upload"?(ne(),ge(et,{key:0},[te("span",{class:"material-symbols-rounded icon-button",onClick:()=>{var c,f;return(f=(c=o.$refs["upload-"+u.name])==null?void 0:c[0])==null?void 0:f.click()}}," file_upload ",8,V3),te("input",{ref_for:!0,ref:"upload-"+u.name,accept:u.accept,style:{display:"none"},type:"file",onChange:c=>u==null?void 0:u.onUpload(c.target.files[0])},null,40,H3),me(Gu,{ref_for:!0,ref:"cover",modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,class:"addSong cover",type:"text",onChange:c=>u==null?void 0:u.onChange(u.value)},null,8,["modelValue","onUpdate:modelValue","icon","onChange"]),u.imagePreview?(ne(),ge("div",U3,[me(oi,{src:se(xa)(u.value),class:"cover",onClick:c=>se(wc)(u.value)},null,8,["src","onClick"])])):Ne("",!0)],64)):u.type=="dropdown"?(ne(),je(N3,{key:1,modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,options:u.options},null,8,["modelValue","onUpdate:modelValue","icon","options"])):u.type=="text"?(ne(),je(Gu,{key:2,modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,placeholder:u.placeholder,required:u.required,type:u.type,onChange:c=>u.onChange?u==null?void 0:u.onChange(u.value):null},null,8,["modelValue","onUpdate:modelValue","icon","placeholder","required","type","onChange"])):Ks((ne(),ge("input",{key:3,"onUpdate:modelValue":c=>u.value=c,type:u.type,onChange:c=>u.onChange?u==null?void 0:u.onChange(u.value):null},null,40,q3)),[[bc,u.value]])])]))),128))]))}});const Tv=at(j3,[["__scopeId","data-v-f7f90291"]]),K3={class:"padding-20 playlisteditor"},z3=["src"],Z3={class:"details"},G3={class:"detailswrapper"},Y3=["onClick"],J3=ze({__name:"TrackInfo",props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},cover:{type:String,required:!0},icons:{type:Array,required:!0}},setup(e){return(t,r)=>(ne(),ge("div",K3,[te("img",{src:e.cover,class:"cover"},null,8,z3),te("div",Z3,[te("div",G3,[(ne(!0),ge(et,null,fr(e.icons,(s,o)=>(ne(),ge("span",{key:o,class:"material-icons-round",onClick:s.onClick},We(s.name),9,Y3))),128))]),te("h1",null,We(e.title),1),te("h6",null,We(e.subtitle),1)])]))}});const Iv=at(J3,[["__scopeId","data-v-46f31e97"]]),xs=e=>{const t=new CustomEvent("notification.add",{detail:e});window.dispatchEvent(t)},ar={addSuccess(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"success",timeout:r}),s},addError(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"error",timeout:r}),s},addInfo(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"info",timeout:r}),s},addWarning(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"warning",timeout:r}),s},addYesNo(e,t,r,s,o,l){const u=Math.random().toString(36).substring(7);return xs({id:u,message:e,details:t,type:"yes-no",timeout:r,onYes:s,onNo:o,onTimeout:l}),u},remove(e){const t=new CustomEvent("notification.remove",{detail:e});window.dispatchEvent(t)},clear(){const e=new CustomEvent("notification.clear");window.dispatchEvent(e)}},Mv=ze({__name:"ImportSpotifySong",props:{song:{type:Object,required:!0}},setup(e,{expose:t}){const r=zt(),s=e,o=Pe([{name:"playlist",type:"dropdown",icon:"playlist_add",required:!0,value:null,options:r.playlistsAsDropdown}]),l=Pe(null),u=Pe(null),c=Pe(null),f=async()=>{if(c.value){l.value.show();return}const m=await l.value.fetch("/api/browse/track",{method:"POST",body:JSON.stringify({url:s.song.href})});m&&(l.value.load(),c.value=await m.json(),l.value.show())},h=()=>{const m=new CustomEvent("player.play",{detail:{artist:s.song.artist,title:s.song.title,source:s.song.href}});window.dispatchEvent(m)},p=async m=>{if(m==="new"){const b=await xc("classic",s.song.title,s.song.artist,s.song.cover);return o.value[0].options=r.playlistsAsDropdown,o.value[0].value=b,b}return m},v=async(m,b=null)=>{var y;b??(b=u.value.toObject().playlist),console.log(b),b=await p(b),await dv(b,c.value),s.song.added=!0,ar.addSuccess(c.value.title,`Added to ${(y=r.playlists.find(E=>E.id==b))==null?void 0:y.name}`,3e3)};return t({show:f}),(m,b)=>(ne(),je(Rv,{ref_key:"modal",ref:l,submit:{label:"Add",icon:"add"},name:"Import Song",onClose:b[0]||(b[0]=y=>m.$emit("close")),onSubmit:v},{default:Ot(()=>[me(Iv,{cover:e.song.cover,icons:[{name:"share",onClick:()=>se(wc)(e.song.href)},{name:"play_arrow",onClick:h}],title:e.song.title},null,8,["cover","icons","title"]),me(Tv,{ref_key:"form",ref:u,options:o.value},null,8,["options"])]),_:1},512))}}),Rc=e=>(ci("data-v-f8e4524a"),e=e(),fi(),e),X3=Rc(()=>te("div",{class:"index text-right"},"#",-1)),Q3=Rc(()=>te("div",{class:"artist-title"}," title ",-1)),eC={key:0,class:"album"},tC={key:1,class:"duration"},nC=Rc(()=>te("span",{class:"material-symbols-rounded"},"schedule",-1)),rC=[nC],iC=ze({__name:"PlaylistHeader",props:{withAlbum:{type:Boolean,required:!1,default:!1},withMore:{type:Boolean,required:!1,default:!1},withoutDuration:{type:Boolean,required:!1,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",{class:Je([{withAlbum:e.withAlbum,withMore:e.withMore},"playlist-header"])},[X3,Q3,e.withAlbum?(ne(),ge("div",eC," album ")):Ne("",!0),e.withoutDuration?Ne("",!0):(ne(),ge("div",tC,rC))],2))}});const sC=at(iC,[["__scopeId","data-v-f8e4524a"]]);const oC={name:"Marquee",mounted(){this.update(),window.addEventListener("resize",this.update)},data(){return{isMarquee:!1}},methods:{isTruncated(e){return(e==null?void 0:e.scrollWidth)>(e==null?void 0:e.clientWidth)},update(){this.isMarquee=!1,setTimeout(()=>{this.isMarquee=this.isTruncated(this.$refs.marquee)},10)}}},aC={key:0,class:"replacer"},lC={key:0,class:"overlay"};function uC(e,t,r,s,o,l){return ne(),ge("div",{class:Je([{marquee:o.isMarquee},"marqueeWrapper"])},[te("span",{ref:"marquee",class:Je({marquee:o.isMarquee})},[Ui(e.$slots,"default",{},void 0,!0),o.isMarquee?(ne(),ge("span",aC,[Ui(e.$slots,"default",{},void 0,!0)])):Ne("",!0)],2),o.isMarquee?(ne(),ge("div",lC)):Ne("",!0)],2)}const cC=at(oC,[["render",uC],["__scopeId","data-v-ad7138e8"]]),fC={class:"artist"},dC=ze({__name:"ArtistMarquee",props:{artist:{type:String,required:!0}},setup(e){const t=e,r=Ve(()=>t.artist.split(", "));return(s,o)=>{const l=Hi("router-link");return ne(),je(cC,null,{default:Ot(()=>[(ne(!0),ge(et,null,fr(r.value,u=>(ne(),ge("span",fC,[me(l,{to:"/artist/"+u},{default:Ot(()=>[Ua(We(u),1)]),_:2},1032,["to"])]))),256))]),_:1})}}});const Lv=at(dC,[["__scopeId","data-v-156468cf"]]),hC={key:0,class:"cover"},pC={class:"artist-title"},mC={class:"title"},vC={class:"artist"},gC={key:1,class:"album"},yC=["onClick"],_C=ze({__name:"ExternalEntry",props:{song:{type:Object,required:!0},index:{type:Number,required:!0},withCover:{type:Boolean,required:!1,default:!1},withAlbum:{type:Boolean,required:!1,default:!1},selected:{type:Boolean,required:!1,default:!1},playlistId:{type:Number,required:!1,default:null},canImport:{type:Boolean,required:!1,default:!1}},emits:["update","add"],setup(e,{emit:t}){const r=e,s=t,o=Bt(),l=Ve(()=>r.song.id==o.song.id),u=Pe(!1);Ve(()=>r.playlistId==null?o.playlist.id:r.playlistId);const c=()=>{r4(r.song.title,r.song.artist,r.song.source||r.song.href)},f=Pe(null),h=()=>{r.canImport?f.value.show():s("add")};return(p,v)=>(ne(),ge(et,null,[e.canImport?(ne(),je(Mv,{key:0,ref_key:"updatePopup",ref:f,song:e.song},null,8,["song"])):Ne("",!0),te("div",{class:Je([{playing:l.value,selected:e.selected,hovering:u.value,withCover:e.withCover,withAlbum:e.withAlbum},"playlist-entry"]),onDblclick:c,onMouseenter:v[0]||(v[0]=m=>u.value=!0),onMouseleave:v[1]||(v[1]=m=>u.value=!1)},[te("div",{class:Je([{"material-symbols-rounded":u.value},"index text-right"]),onClick:c},We(u.value?"play_arrow":e.index+1),3),e.withCover?(ne(),ge("div",hC,[me(oi,{src:e.song.cover,type:"track"},null,8,["src"])])):Ne("",!0),te("div",pC,[te("span",mC,[(ne(),je(QA(e.song.href.startsWith("http")?"a":"router-link"),{href:e.song.href,to:e.song.href,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:e.song.title},null,8,["text"])]),_:1},8,["href","to"]))]),te("span",vC,[me(Lv,{artist:e.song.artist,class:"text-muted text-xs"},null,8,["artist"])])]),e.withAlbum&&!se(qu)?(ne(),ge("div",gC,[me(ir,{text:e.song.album},null,8,["text"])])):Ne("",!0),te("div",{class:"icon text-left material-symbols-rounded",onClick:Dt(h,["stop"])},We(e.song.added?"done":"add"),9,yC)],34)],64))}});const bC=at(_C,[["__scopeId","data-v-2482bde4"]]),wC=e=>(ci("data-v-a918d839"),e=e(),fi(),e),AC={class:"playlist"},xC=wC(()=>te("hr",null,null,-1)),PC={class:"entries"},CC=ze({__name:"Playlist",props:{songs:{type:Array,required:!0},noCover:{type:Boolean,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",AC,[me(sC,{"without-duration":""}),xC,te("div",PC,[(ne(!0),ge(et,null,fr(e.songs,(s,o)=>(ne(),je(bC,{key:s.source,added:s.added,index:o,song:s,title:s.title,"with-cover":!e.noCover,onAdd:l=>t.$emit("add",o)},null,8,["added","index","song","title","with-cover","onAdd"]))),128))])]))}});const kC=at(CC,[["__scopeId","data-v-a918d839"]]),EC=te("br",null,null,-1),SC=ze({__name:"ImportSpotifyAlbum",props:{album:{type:Object,required:!0}},setup(e,{expose:t}){const r=zt(),s=e,o=Pe([{name:"playlist",type:"dropdown",icon:"playlist_add",required:!0,value:null,options:r.playlistsAsDropdown}]),l=Pe(null),u=Pe(null),c=Pe([]);let f=null;const h=async()=>{if(c.value.length>0&&f===s.album.id){l.value.show();return}const y=await l.value.fetch(`/api/spotify/albums/${s.album.id}`);if(f=s.album.id,!y){ar.addError("Failed to fetch album from Spotify",y.text,3e3);return}c.value=await y.json()},p=()=>{const y=new CustomEvent("player.play",{detail:{artist:s.album.artist,title:s.album.title,source:s.album.href}});window.dispatchEvent(y)},v=async y=>{if(y==="new"){const E=await xc("classic",s.album.title,`${s.album.releaseDate}, ${s.album.artist}`,s.album.cover);return o.value[0].options=r.playlistsAsDropdown,o.value[0].value=E,E}return y},m=async(y,E=null)=>{c.value[y].added||(E??(E=u.value.toObject().playlist),E=await v(E),await dv(E,c.value[y]),c.value[y].added=!0)},b=async()=>{let y=u.value.toObject().playlist;y=await v(y),c.value.forEach((E,R)=>{m(R,y)}),ar.addSuccess(s.album.title,`Added ${c.value.length} songs to ${r.playlists[y].name}`,3e3)};return t({show:h}),(y,E)=>(ne(),je(Rv,{ref_key:"modal",ref:l,submit:{label:"Add All",icon:"add"},name:"Import Album",onClose:E[0]||(E[0]=R=>y.$emit("close")),onSubmit:b},{default:Ot(()=>[me(Iv,{cover:e.album.cover,icons:[{name:"share",onClick:()=>se(wc)(e.album.href)},{name:"play_arrow",onClick:p}],subtitle:e.album.artist,title:e.album.title},null,8,["cover","icons","subtitle","title"]),me(Tv,{ref_key:"form",ref:u,options:o.value},null,8,["options"]),EC,me(kC,{songs:c.value,noCover:"",onAdd:m},null,8,["songs"])]),_:1},512))}}),OC={class:"info"},RC={class:"flex flex-col flex-1"},TC={class:"name"},IC={key:0,class:"text-muted text-sm"},MC={class:"aux flex items-center text-muted text-sm gap-2"},LC={class:"tag"},$C={class:"material-symbols-rounded tag"},DC=["name"],BC=ze({__name:"SearchResultItem",props:{item:{type:Object,required:!0},large:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},setup(e){const t=i3(),r=e,s=Ve(()=>{var y,E,R,S;return((E=(y=r.item)==null?void 0:y.item)==null?void 0:E.cover)??((S=(R=r.item)==null?void 0:R.item)==null?void 0:S.image)}),o=Ve(()=>{var y,E,R,S;return((E=(y=r.item)==null?void 0:y.item)==null?void 0:E.name)??((S=(R=r.item)==null?void 0:R.item)==null?void 0:S.title)}),l=Ve(()=>{var y,E;return(E=(y=r.item)==null?void 0:y.item)==null?void 0:E.artist}),u=Ve(()=>{var y;return(y=r.item)==null?void 0:y.type}),c=Ve(()=>({song:"music_note",album:"album",artist:"person",playlist:"queue_music",command:"code"})[u.value??"song"]),f=Ve(()=>{var y;return Math.round(((y=r.item)==null?void 0:y.confidence)*1e3)/10}),h=Ve(()=>{var y;return((y=r.item)==null?void 0:y.scope)==="local"}),p=Ve(()=>{var y;return((y=r.item)==null?void 0:y.scope)==="spotify"}),v=Pe(),m=Pe(),b=()=>{u.value==="artist"?t.push(`/artist/${r.item.item.name}`):u.value==="playlist"?t.push(r.item.item.href):h.value?u.value==="song"&&t.push(r.item.item.href):p.value&&(u.value==="song"?v.value.show():u.value==="album"&&m.value.show())};return(y,E)=>(ne(),ge(et,null,[u.value==="song"&&p.value?(ne(),je(Mv,{key:0,ref_key:"importSpotifySong",ref:v,song:r.item.item},null,8,["song"])):Ne("",!0),u.value==="album"&&p.value?(ne(),je(SC,{key:1,ref_key:"importSpotifyAlbum",ref:m,album:r.item.item},null,8,["album"])):Ne("",!0),te("div",{class:Je(["item",{large:e.large,noHover:e.noHover}]),onClick:b},[me(oi,{src:s.value,placeholder:c.value,"with-ambient":""},null,8,["src","placeholder"]),te("div",OC,[te("div",RC,[te("span",TC,We(o.value),1),l.value?(ne(),ge("span",IC,We(l.value),1)):Ne("",!0)]),te("div",MC,[te("span",LC,We(f.value)+"% ",1),te("span",$C,We(c.value),1),h.value?Ne("",!0):(ne(),ge("span",{key:0,name:e.item.scope,class:"material-symbols-rounded tag"},"cloud",8,DC))])])],2)],64))}});const NC=at(BC,[["__scopeId","data-v-92cf9d47"]]),Z6=["local","spotify","audius"],WC=["song","artist","album","playlist"],FC={class:"header grid grid-cols-3 justify-between drop-shadow-md"},VC={class:"search flex flex-row"},HC=["onClick"],UC={class:"mr-2 flex flex-row gap-2"},qC=ze({__name:"Header",setup(e){const t=Pe(null),r=Pe(!1),s=zt(),o=Bt(),l=Ve(()=>{if(!t.value)return{};const b=`calc(${t.value.offsetTop}px + 10px)`,y=`calc(${t.value.offsetLeft}px + 10px)`;return{top:b,left:y}});Pc().onDownload.push(b=>{r.value=!0,setTimeout(()=>{r.value=!1},500)});const c=(b,y=!1)=>{var E,R;if(y){if(b.type==="song"){o.loadPlaylist("track",b.item.id),(E=v.value)==null||E.blur();return}if(b.type==="playlist"){o.loadPlaylist(b.item.id),(R=v.value)==null||R.blur();return}}if(b.type==="artist"){Mi.push(`/artist/${b.item.name}`);return}Mi.push(b.item.href)},f=()=>{const b=s.playlists.flatMap(E=>E.songs),y=b[Math.floor(Math.random()*b.length)];return console.log(y),y},h=async b=>{if(!b.length)return[];if(b==="/rand"){const R=f();return R?[{type:"command",confidence:1,scope:"local",item:R}]:[]}return["/create","/new"].includes(b)?[{type:"command",confidence:.5,scope:"local",item:{name:"Create classic playlist",href:"/playlist/create?type=classic"}},{type:"command",confidence:.5,scope:"local",item:{name:"Create smart playlist",href:"/playlist/create?type=smart"}}]:(await(await fetch("/api/search",{method:"POST",body:JSON.stringify({query:b,scope:["local",...WC]})})).json()).items};let p=Pe("");const v=Pe(null);Vt(()=>{p.value=Mi.currentRoute.value.params.query||"",Mi.afterEach(b=>{p.value=b.params.query||"",console.log(p.value)}),window.addEventListener("keydown",b=>{var y;b.ctrlKey&&b.key==="k"&&(b.preventDefault(),(y=v.value)==null||y.focus())})});let m=()=>{Mi.push({name:"Search",params:{query:p.value}})};return(b,y)=>(ne(),ge("div",FC,[me(se(m4),{class:"hideIfMobile logo",onClick:y[0]||(y[0]=E=>b.$router.push("/"))}),te("div",VC,[me(Tn,{class:"sm:ml-0 mr-2",href:"/",icon:"home",minimised:"",name:"Home"}),me(d3,{modelValue:se(p),"onUpdate:modelValue":y[1]||(y[1]=E=>_t(p)?p.value=E:p=E),class:"md:!w-96",icon:"search",placeholder:"Search...",onSubmit:se(m),clickSuggest:c,suggest:h,ref_key:"search",ref:v},{default:Ot(({value:E,selected:R})=>[te("div",{class:Je(["suggestion",{selected:R}]),onClick:S=>c(E)},[me(NC,{item:E},null,8,["item"])],10,HC)]),_:1},8,["modelValue","onSubmit"])]),te("div",UC,[te("div",{class:"download",ref_key:"downloadIcon",ref:t},[me(Tn,{href:"/download",icon:"download",minimised:"",name:"Download"}),(ne(),je(eo,{to:"#popup-target"},[r.value?(ne(),ge("span",{key:0,class:"download-anim absolute top-0 left-0 z-[1000] material-symbols-rounded",style:Vr(l.value)},"download",4)):Ne("",!0)]))],512),me(Tn,{href:"/preferences",icon:"settings",minimised:"",name:"Preferences"})])]))}});const jC=at(qC,[["__scopeId","data-v-2bea1460"]]),KC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 809.48 395.8"},zC=te("path",{d:"M80.09 254.67c-4.84 0-9.04-1.72-12.6-5.16-3.57-3.43-5.35-7.7-5.35-12.79V79.04c0-4.84 1.78-8.97 5.35-12.41 3.56-3.44 7.76-5.16 12.6-5.16s8.97 1.72 12.41 5.16c3.43 3.43 5.15 7.57 5.15 12.41v157.68c0 5.09-1.72 9.36-5.15 12.79-3.44 3.44-7.58 5.16-12.41 5.16Zm70.63 61.47c-4.84 0-8.97-1.78-12.41-5.34-3.44-3.57-5.16-7.77-5.16-12.6V17.57c0-4.58 1.72-8.66 5.16-12.22 3.43-3.56 7.57-5.34 12.41-5.34s9.04 1.78 12.6 5.34c3.56 3.57 5.34 7.64 5.34 12.22V298.2c0 4.83-1.78 9.03-5.34 12.6-3.56 3.56-7.76 5.34-12.6 5.34ZM17.38 193.2c-4.79 0-8.88-1.7-12.27-5.1-3.4-3.4-5.1-7.61-5.1-12.65v-35.13c0-4.79 1.7-8.88 5.1-12.27 3.4-3.4 7.49-5.1 12.27-5.1s9 1.7 12.66 5.1c3.65 3.4 5.48 7.49 5.48 12.27v35.33c0 3.92-1.25 7.85-3.85 10.77-4.01 4.51-8.78 6.77-14.28 6.77Zm195.29 60.46c-4.78 0-8.87-1.7-12.28-5.11-3.4-3.4-5.1-7.62-5.1-12.66V79.86c0-4.79 1.7-8.88 5.1-12.28 3.4-3.4 7.5-5.11 12.28-5.11s9.01 1.7 12.66 5.11c3.65 3.4 5.48 7.49 5.48 12.28V235.9c0 5.04-1.76 9.26-5.29 12.66-3.52 3.4-7.81 5.11-12.85 5.11Zm62.52-60.46c-4.78 0-8.94-1.7-12.46-5.1-3.52-3.4-5.29-7.61-5.29-12.65v-35.13c0-4.79 1.76-8.88 5.29-12.27 3.53-3.4 7.68-5.1 12.46-5.1s8.94 1.7 12.46 5.1c3.53 3.4 5.29 7.49 5.29 12.27v35.13c0 5.03-1.76 9.25-5.29 12.65-3.52 3.4-7.68 5.1-12.46 5.1ZM436.15 266.18c-10.94-6.13-19.61-14.63-26-25.51-6.39-10.88-9.59-23.17-9.59-36.88s3.2-26 9.59-36.88c6.39-10.88 15.06-19.34 26-25.41 10.94-6.06 22.94-9.1 35.99-9.1s25.21 3.03 36.09 9.1c10.88 6.06 19.48 14.53 25.8 25.41 6.33 10.88 9.49 23.17 9.49 36.88s-3.16 26-9.49 36.88-14.96 19.38-25.9 25.51c-10.94 6.13-22.94 9.19-35.99 9.19s-25.05-3.06-35.99-9.19Zm59.42-36.48c5.73-6.46 8.6-15.09 8.6-25.9s-2.87-19.8-8.6-26.2c-5.73-6.39-13.54-9.59-23.43-9.59s-17.87 3.2-23.53 9.59c-5.67 6.4-8.5 15.13-8.5 26.2s2.83 19.61 8.5 26c5.67 6.4 13.51 9.59 23.53 9.59s17.7-3.23 23.43-9.69ZM690.05 273.99h-38.76l-51.61-77.91v77.91h-38.76V134.58h38.76l51.61 78.9v-78.9h38.76v139.41ZM750.95 165.63v22.74h44.49v29.46h-44.49v25.11h50.42v31.04h-89.18v-139.4h89.18v31.04h-50.42ZM414.68 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43h-1.39c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22ZM455.71 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.52-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM486.61 97.82h-17.56l-3.23 8.95h-5.54l14.55-40.02h6.06l14.5 40.02h-5.54l-3.23-8.95Zm-1.5-4.27-7.28-20.33-7.28 20.33h14.55ZM529.81 75.13v31.65h-5.25v-4.68c-1 1.62-2.4 2.88-4.19 3.78-1.79.9-3.76 1.36-5.92 1.36-2.46 0-4.68-.51-6.64-1.53s-3.51-2.55-4.65-4.59c-1.14-2.04-1.7-4.52-1.7-7.45V75.13h5.2v17.85c0 3.12.79 5.52 2.37 7.19 1.58 1.67 3.73 2.51 6.47 2.51s5.02-.87 6.64-2.6 2.43-4.25 2.43-7.57V75.13h5.25ZM538.7 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.86-2.02 7.71-2.02 2.46 0 4.75.57 6.87 1.7 2.12 1.14 3.73 2.63 4.85 4.48V64.04h5.31v42.74h-5.31v-5.95c-1.04 1.89-2.58 3.44-4.62 4.65s-4.43 1.82-7.16 1.82-5.36-.69-7.65-2.08c-2.29-1.39-4.09-3.33-5.4-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM577.91 68.95c-.69-.69-1.04-1.54-1.04-2.54s.35-1.85 1.04-2.54 1.54-1.04 2.54-1.04 1.78.35 2.45 1.04 1.01 1.54 1.01 2.54-.34 1.85-1.01 2.54-1.49 1.04-2.45 1.04-1.85-.35-2.54-1.04Zm5.08 6.18v31.65h-5.25V75.13h5.25ZM597.69 105.27c-2.41-1.35-4.29-3.26-5.66-5.75-1.37-2.48-2.05-5.36-2.05-8.63s.7-6.09 2.11-8.58 3.32-4.39 5.75-5.72 5.14-1.99 8.14-1.99 5.72.66 8.14 1.99 4.34 3.23 5.75 5.69c1.41 2.46 2.11 5.33 2.11 8.6s-.72 6.15-2.17 8.63c-1.44 2.48-3.4 4.4-5.86 5.75-2.46 1.35-5.2 2.02-8.2 2.02s-5.65-.67-8.06-2.02Zm13.37-3.93c1.65-.89 2.99-2.21 4.01-3.98 1.02-1.77 1.53-3.93 1.53-6.47s-.5-4.7-1.5-6.47c-1-1.77-2.31-3.09-3.93-3.96-1.62-.87-3.37-1.3-5.25-1.3s-3.69.43-5.28 1.3c-1.6.87-2.88 2.19-3.84 3.96s-1.44 3.93-1.44 6.47.47 4.76 1.41 6.53c.94 1.77 2.2 3.09 3.78 3.96 1.58.87 3.31 1.3 5.2 1.3s3.66-.44 5.31-1.33ZM652.38 86.65c-2.29 2.21-5.79 3.32-10.48 3.32h-7.74v16.81h-5.25V66.53h12.99c4.54 0 8 1.1 10.37 3.29 2.37 2.19 3.55 5.02 3.55 8.49s-1.15 6.13-3.44 8.35Zm-4.01-2.92c1.39-1.27 2.08-3.08 2.08-5.43 0-4.97-2.85-7.45-8.55-7.45h-7.74v14.78h7.74c2.93 0 5.08-.64 6.47-1.91ZM667.6 64.04v42.74h-5.25V64.04h5.25ZM676.55 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.84-2.02 7.65-2.02s5.18.6 7.22 1.79 3.56 2.7 4.56 4.5v-5.78h5.31v31.65h-5.31v-5.89c-1.04 1.85-2.59 3.38-4.65 4.59-2.06 1.21-4.46 1.82-7.19 1.82s-5.35-.69-7.62-2.08c-2.27-1.39-4.06-3.33-5.37-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM742.85 75.13l-19.06 46.55h-5.43l6.24-15.25-12.76-31.3h5.83l9.93 25.64 9.82-25.64h5.43ZM776.8 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.51-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM793.12 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43H798c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22Z"},null,-1),ZC=[zC];function GC(e,t){return ne(),ge("svg",KC,ZC)}const YC={render:GC};const JC={class:"startup"},XC={class:"wrap"},QC={class:"logo"},ek={__name:"Startup",setup(e){return Vt(()=>{ar.clear()}),(t,r)=>(ne(),ge("div",JC,[te("div",XC,[te("div",QC,[me(se(YC))]),me(se(Ov))])]))}},tk=at(ek,[["__scopeId","data-v-24a52185"]]),qn=document.createElement("video");qn.style.position="absolute";qn.style.top="0";qn.style.left="0";qn.style.width="500px";qn.style.height="500px";qn.style.zIndex="-1000";document.body.appendChild(qn);const Un=Pe("error"),oa=async()=>{if(Un.value=="error"||Un.value=="loading")return!1;await qn.requestPictureInPicture()},$v=()=>{const e=Bt(),t=Ur();let r;const s=async o=>{if(!t.player.pictureInPicture||e.song.id<0)return!1;r==null||r.terminate(),r=new Worker("/assets/ffmpeg/ffmpeg-worker-mp4.js"),Un.value="loading",console.log("loading new cover",o);const u=await(await fetch(o)).blob(),c=URL.createObjectURL(u);qn.src="";const f="t.jpg",h=[],p=new Image;p.src=c,p.style.width="100%",p.style.height="100%",p.onload=()=>{const y=document.createElement("canvas");y.width=p.width,y.height=p.height,y.getContext("2d").drawImage(p,0,0);const R=y.toDataURL("image/jpeg",1),S=v(R);h.push({name:f,data:S}),console.log("loaded image",h),requestAnimationFrame(m)};function v(y){var E=y.replace(/^data[^,]+,/,""),R=window.atob(E),S=R.length,O=new Uint8Array(new ArrayBuffer(S));for(let M=0;M{qn.src=webkitURL.createObjectURL(y)}};return st(()=>t.player.pictureInPicture,async o=>{console.log("pictureInPicture enabled",o),o?($v(),o=!0,Un.value="error",await s(e.song.cover)):(r==null||r.terminate(),o=!1,Un.value="error")}),t.player.pictureInPicture?(st(()=>e.song.cover,s),!0):!1},nk=ze({__name:"Card",props:{withHover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",{class:Je([{withHover:e.withHover,disabled:e.disabled},"card"])},[Ui(t.$slots,"default",{},void 0,!0)],2))}});const Dv=at(nk,[["__scopeId","data-v-04b9eb92"]]),rk={class:"message"},ik={key:0,class:"details"},sk=ze({__name:"ClosableNotification",props:{notification:{type:Object,required:!0}},emits:["remove"],setup(e,{emit:t}){const r=t,s=o=>{r("remove",o)};return(o,l)=>(ne(),je(Dv,{class:Je([e.notification.type,"notification"])},{default:Ot(()=>[te("div",rk,[te("h4",null,We(e.notification.message),1),e.notification.details?(ne(),ge("span",ik,We(e.notification.details),1)):Ne("",!0)]),te("span",{class:"material-symbols-rounded close",onClick:l[0]||(l[0]=u=>s(e.notification.id))}," close ")]),_:1},8,["class"]))}});const ok=at(sk,[["__scopeId","data-v-49e9d059"]]),Bv=e=>(ci("data-v-4dd7578e"),e=e(),fi(),e),ak={class:"message"},lk={key:0,class:"details"},uk=Bv(()=>te("span",{class:"material-symbols-rounded"}," check ",-1)),ck=[uk],fk=Bv(()=>te("span",{class:"material-symbols-rounded"}," close ",-1)),dk=[fk],hk=ze({__name:"YesNoNotification",props:{notification:{type:Object,required:!0}},emits:["remove"],setup(e,{emit:t}){const r=e,s=t,o=()=>{s("remove",r.notification.id),r.notification.onNo&&r.notification.onNo()},l=()=>{s("remove",r.notification.id),r.notification.onYes&&r.notification.onYes()};return(u,c)=>(ne(),je(Dv,{class:"notification"},{default:Ot(()=>[te("div",ak,[te("h4",null,We(e.notification.message),1),e.notification.details?(ne(),ge("span",lk,We(e.notification.details),1)):Ne("",!0)]),te("div",{class:"yes-no"},[te("div",{class:"yes option",onClick:l},ck),te("div",{class:"no option",onClick:o},dk)])]),_:1}))}});const pk=at(hk,[["__scopeId","data-v-4dd7578e"]]),mk={class:"notifications"},vk=ze({__name:"NotificationHandler",setup(e){const t=["success","error","info","warning"],r=Pe([]),s=u=>{r.value.push(u),u.timeout&&setTimeout(()=>{var c;(c=u.onTimeout)==null||c.call(u),o(u.id)},u.timeout)},o=u=>{r.value=r.value.filter(c=>c.id!=u)},l=()=>{r.value=[]};return window.addEventListener("notification.add",u=>{const c=u.detail;s(c)}),window.addEventListener("notification.remove",u=>{const c=u.detail;o(c)}),window.addEventListener("notification.clear",()=>{l()}),(u,c)=>(ne(),ge("div",mk,[(ne(!0),ge(et,null,fr(r.value,f=>(ne(),ge(et,{key:f.id},[t.includes(f.type)?(ne(),je(ok,{key:0,notification:f,onRemove:o},null,8,["notification"])):f.type=="yes-no"?(ne(),je(pk,{key:1,notification:f,onRemove:o},null,8,["notification"])):Ne("",!0)],64))),128))]))}});const gk=at(vk,[["__scopeId","data-v-ca1aa49b"]]);const Nv=()=>{console.log("attempting reconnect");const e=window.location.hostname,t=window.location.port==5173?1234:window.location.port,r=new WebSocket(`ws://${e}:${t}/ws`);r.onclose=()=>{console.log("ws closed"),Bt().setReady(!1),setTimeout(()=>Nv(),1e3)},r.onopen=()=>{console.log("ws connected"),Bt().setReady(!0)},r.onmessage=s=>{const o=Bt(),l=JSON.parse(s.data);l.path=="player.song"&&o.setSong(l.data),l.path=="player.playlist"&&o.setPlaylist(l.data)}};function yk(e){const t=3.999843853973347,r=1681.974450955533,s=.7071752369554196,o=Math.tan(Math.PI*r/e),l=Math.pow(10,t/20),u=Math.pow(l,.4996667741545416),c=1+o/s+o*o,f=2*(o*o-1)/c,h=(1-o/s+o*o)/c,p=(l+u*o/s+o*o)/c,v=2*(o*o-l)/c,m=(l-u*o/s+o*o)/c;return{numerators:[p,v,m],denominators:[1,f,h]}}function _k(e){const t=38.13547087602444,r=.5003270373238773,s=Math.tan(Math.PI*t/e),o=2*(s*s-1)/(1+s/r+s*s),l=(1-s/r+s*s)/(1+s/r+s*s);return{numerators:[1,-2,1],denominators:[1,o,l]}}function bk(e){if("createIIRFilter"in e){const t=yk(e.sampleRate);return e.createIIRFilter(t.numerators,t.denominators)}else{const t=e.createBiquadFilter();return t.type="highshelf",t.frequency.value=1500,t.gain.value=4,t}}function wk(e){if("createIIRFilter"in e){const t=_k(e.sampleRate);return e.createIIRFilter(t.numerators,t.denominators)}else{const t=e.createBiquadFilter();return t.type="highpass",t.frequency.value=38,t.Q.value=-6,t}}var Ak={on:function(e,t){(this._listeners[e]=this._listeners[e]||[]).push(t)},off:function(e,t){if(!e){this._listeners={};return}t?this._listeners[e]=(this._listeners[e]||[]).filter(r=>r!==t):delete this._listeners[e]},trigger:function(e,t){(this._listeners[e]||[]).forEach(r=>{r({type:e,data:t})})}};class xk{constructor(t,r,s){this.source=t.source,this.context=this.source.context,this.name=r,this.uri=s,this.node.then(o=>{o.port.onmessage=function(l){t.trigger(l.data.type,l.data)}})}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>this.context.audioWorklet.addModule(this.uri).then(()=>t(new AudioWorkletNode(this.context,this.name))).catch(r)),this._node)}message(t){this.node.then(r=>r.port.postMessage(t))}}class Pk{constructor(t,r){this.source=t.source,this.context=this.source.context,this.worker=new Worker(r),this.node.then(s=>{s.onaudioprocess=o=>{const l=[];for(var u=0;u{t.trigger(s.data.type,s.data)}}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>{t(this._createNode(1024,this.source.channelCount,this.source.channelCount))}),this._node)}message(t){this.worker.postMessage(t)}_createNode(){return(this.context.createScriptProcessor||this.context.createJavaScriptNode).apply(this.context,arguments)}}class Ck{constructor(t,r){this.source=t.source,this.context=this.source.context,this.worker=new Worker(r),this.worker.onmessage=s=>{t.trigger(s.data.type,s.data)}}message(t){this.worker.postMessage(t)}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>{t(this.context.createGain())}),this._node)}}const kk=!1;function Ek({context:e,source:t,controller:r}){const s=Sk(r);return s.node.then(o=>{o.connect(e.destination),t.connect(o)}),s}function Sk(e){return e.offline?new Ck(e,e.workerUri):"AudioWorkletNode"in window&&kk?new xk(e,"needles-worklet",e.workletUri):new Pk(e,e.workerUri)}class Ok extends Error{constructor(t){super(t),this.name="InvalidStateError"}}const Rk=window.OfflineAudioContext||window.webkitOfflineAudioContext;class Tk{constructor(t){this.state="inactive",this._listeners={},Object.assign(this,Ak),this.workerUri=t.workerUri,this.workletUri=t.workletUri,this.source=t.source,this.weightedSource=t.weightedSource,this.context=this.source.context,this.offline=this.context instanceof Rk,this.workerAdapter.message({type:"initialize",attributes:{sampleRate:this.context.sampleRate,modes:t.modes}})}get workerAdapter(){return this._workerAdapter=this._workerAdapter||new Ek({controller:this,context:this.context,source:this.weightedSource||this.source})}input(t){const s=t.length,o=t.numberOfChannels;this.offline&&this.workerAdapter.message({type:"set",key:"duration",value:t.duration*1e3});for(var l=0;lthis.input(t)))}pause(){this.state==="inactive"&&this._throwInvalidStateErrorFor("pause"),this.state="paused",this.workerAdapter.message({type:"pause"})}resume(){this.state==="inactive"&&this._throwInvalidStateErrorFor("resume"),this.state="recording",this.workerAdapter.message({type:"resume"})}stop(){this.state==="inactive"&&this._throwInvalidStateErrorFor("stop"),this.state="inactive",this.workerAdapter.message({type:"stop"})}reset(){this.workerAdapter.message({type:"reset"})}_startRendering(){return new Promise((t,r)=>{this.context.startRendering(),this.context.addEventListener("complete",s=>{t(s.renderedBuffer)})})}_throwInvalidStateErrorFor(t){throw new Ok(`Failed to execute '${t}' on 'Needles': The Needles's state is '${this.state}'.`)}}function Ik(e){e.modes=e.modes||["momentary","short-term","integrated"];const t=e.source.context,r=bk(t),s=wk(t);return e.source.connect(r),r.connect(s),new Tk({...e,weightedSource:s})}let bu=0;const Mk=1,Lk=.1,Ep=(e,t)=>{var r=Dk(e,t);r.angle-=.78539816;var s=Bk(r.radius,r.angle);return{x:s.x,y:s.y}},$k=(e,t)=>{var r=-1,s=Math.atan2(e,t);return r*s},Dk=(e,t)=>{var r=Math.sqrt(e*e+t*t),s=Math.atan2(t,e);return{radius:r,angle:s}},Bk=(e,t)=>{var r=e*Math.sin(t),s=e*Math.cos(t);return{x:r,y:s}},Nk=(e,t)=>{const r=[];return r.push(new Float32Array(t.frequencyBinCount)),t.getFloatTimeDomainData(r[0]),r.push(new Float32Array(e.frequencyBinCount)),e.getFloatTimeDomainData(r[1]),r},Wk=e=>{const t=(l,u)=>{var c=l;return l>u?c-=Lk*(l-u):c+=Mk*(u-l),c};for(var r=0,s,o=0;o1&&(r=1),r<-1&&(r=-1),bu=t(bu,r),bu},Fk=e=>{var t=e[1]?e[1][0]:0;let r=Ep(t,e[0][0]);const s=[];s.push({x:r.x,y:r.y});for(var o=1;o({stereo:{left:0,right:0,correlation:0,field:[],_analyserL:null,_analyserR:null},tonalBalance:{data:null,_analyser:null},truePeak:{left:-1/0,right:-1/0},loudness:{momentary:-1/0,maxMomentary:-1/0,shortterm:-1/0,integrated:-1/0},_meter:null}),actions:{_reset(){this.stereo.left=0,this.stereo.right=0,this.truePeak.left=-1/0,this.truePeak.right=-1/0,this.loudness.momentary=-1/0,this.loudness.maxMomentary=-1/0,this.loudness.shortterm=-1/0,this.loudness.integrated=-1/0},setSource(e,t){var s,o;this._meter=new Ik({source:e,workerUri:"/assets/needles/needles-worker.js"}),(s=this._meter)==null||s.start(),(o=this._meter)==null||o.pause(),this.stereo.analyserL=t.createAnalyser(),this.stereo.analyserR=t.createAnalyser(),this.tonalBalance.analyser=t.createAnalyser(),this.tonalBalance.analyser.fftSize=256,e.connect(this.tonalBalance.analyser),this.tonalBalance.data=new Uint8Array(this.tonalBalance.analyser.frequencyBinCount);var r=t.createChannelSplitter(2);e.connect(r),r.connect(this.stereo.analyserR,1),r.connect(this.stereo.analyserL,0),this._stereo()},_stereo(){const e=Oc(),t=new Float32Array(this.stereo.analyserR.fftSize),r=new Float32Array(this.stereo.analyserL.fftSize),s=()=>{if(e.path!=="/player/insights"){window.requestAnimationFrame(s);return}this.tonalBalance.analyser.getByteFrequencyData(this.tonalBalance.data),this.stereo.analyserR.getFloatTimeDomainData(t),this.stereo.analyserL.getFloatTimeDomainData(r);let o=0,l=0;for(const u of t)o+=u*u;for(const u of r)l+=u*u;this.stereo.right=Math.sqrt(o/t.length),this.stereo.left=Math.sqrt(l/r.length),this.stereo.data=Nk(this.stereo.analyserL,this.stereo.analyserR),this.stereo.correlation=Wk(this.stereo.data),this.stereo.field=Fk(this.stereo.data),window.requestAnimationFrame(s)};window.requestAnimationFrame(s)},initialise(){const e=Bt();st(()=>e.song,()=>{var t,r;this._reset(),(t=this._meter)==null||t.reset(),(r=this._meter)==null||r.on("dataavailable",s=>this._setLoudness(s.data.mode,s.data.value))}),st(()=>e.playing,()=>{var t,r;e.playing?(t=this._meter)==null||t.resume():(r=this._meter)==null||r.pause()})},_setLoudness(e,t){switch(e){case"momentary":this.loudness.momentary=t,this.loudness.maxMomentary=Math.max(this.loudness.maxMomentary,t);break;case"short-term":this.loudness.shortterm=t;break;case"integrated":this.loudness.integrated=t;break}}}}),Vk=()=>{Bt().initialise(),zt().fetchPlaylists(),Pc().initialise(),Tc().initialise(),yv.restoreTheme()},Hk=async()=>await(await fetch("/api/config/first-time")).json(),G6=async(e,t)=>{await fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:e,secret:t})})},Uk=async()=>{const e=await fetch("/api/spotify/authorise");return e.status==200?(ar.addYesNo("Do you want to authorise reAudioPlayer ONE to access your Spotify account?","You will be redirected to Spotify to authorise reAudioPlayer ONE to access your account.",null,async()=>{window.location.href=await e.text()}),!1):e.status==204},Y6=async()=>await(await fetch("/api/config")).json(),J6=async e=>{await fetch("/api/config",{method:"PUT",body:JSON.stringify(e)})},qk=e=>(ci("data-v-50cefd67"),e=e(),fi(),e),jk={class:"sidebar drop-shadow-xl"},Kk={class:"static"},zk={key:0},Zk=qk(()=>te("br",{class:"hideIfMobile"},null,-1)),Gk={key:0,class:"hideIfMobile"},Yk={class:"playlistList hideIfMobile"},Jk=["src"],Xk={name:"Sidebar",components:{NavEntry:Tn},watch:{minimised(){this.collapseSidebar()}},mounted(){this.collapseSidebar()},computed:{minimised(){return!0}},methods:{hideCover(){this.$emit("expandCover",!1)},collapseSidebar(){document.documentElement.style.setProperty("--w-sidebar",this.minimised?"44px":"200px")}}},Qk=ze({...Xk,setup(e){const t=Bt(),r=zt(),s=Ve(()=>t.song.cover),o=Ve(()=>r.playlists),l=Ur();return(u,c)=>(ne(),ge("div",jk,[te("div",Kk,[me(Tn,{hasChildSites:!0,minimised:u.minimised,href:"/collection/playlists",icon:"library_music",name:"Your Library",parentHref:"/collection"},null,8,["minimised"]),me(Tn,{minimised:u.minimised,href:"/discover",icon:"explore",name:"Discover"},null,8,["minimised"]),se(l).sidebar.news||se(l).sidebar.sports?(ne(),ge("br",zk)):Ne("",!0),se(l).sidebar.news?(ne(),je(Tn,{key:1,hasChildSites:!0,minimised:u.minimised,href:"/news",icon:"newspaper",name:"News"},null,8,["minimised"])):Ne("",!0),se(l).sidebar.sports?(ne(),je(Tn,{key:2,hasChildSites:!0,minimised:u.minimised,href:"/sports",icon:"sports_soccer",name:"Sports"},null,8,["minimised"])):Ne("",!0),Zk,me(Tn,{minimised:u.minimised,class:"hideIfMobile",href:"/playlist/create",icon:"add_circle",name:"Create Playlist"},null,8,["minimised"]),me(Tn,{minimised:u.minimised,href:"/collection/tracks",icon:"favorite",name:"Liked Songs"},null,8,["minimised"])]),o.value.length?(ne(),ge("hr",Gk)):Ne("",!0),te("div",Yk,[(ne(!0),ge(et,null,fr(o.value.filter(f=>f.type!="special"),(f,h)=>(ne(),je(Tn,{key:h,href:f.href,img:f.cover,minimised:u.minimised,name:f.name},null,8,["href","img","minimised","name"]))),128))]),se(l).player.expandedCover?(ne(),ge("img",{key:1,src:s.value,class:"cover hideIfMobile",onClick:c[0]||(c[0]=f=>se(l).player.expandedCover=!1)},null,8,Jk)):Ne("",!0)]))}});const Wv=at(Qk,[["__scopeId","data-v-50cefd67"]]);const eE={name:"Body",data(){return{maximised:!1}},methods:{onMaximiseChange(e){this.maximised=e,this.$emit("maximise",e)}}};function tE(e,t,r,s,o,l){const u=Hi("router-view");return ne(),ge("div",{class:Je(["body",{maximised:o.maximised}])},[me(u,{onMaximise:l.onMaximiseChange,class:"view"},null,8,["onMaximise"])],2)}const Fv=at(eE,[["render",tE],["__scopeId","data-v-85e4fc55"]]),nE={class:"html-audio"},rE=["src"],iE=ze({__name:"HtmlAudio",setup(e,{expose:t}){const r=Bt(),s=Tc(),o=Pe(null);let l=!1;Vt(()=>{o.value.src=null,o.value.src=r.stream,o.value.load(),o.value.onloadedmetadata=()=>{o.value&&(r.setDuration(o.value.duration),(l||r.playing)&&(c(),l=!1))}}),st(()=>r.song.id,()=>{o.value.paused||(l=!0),o.value.src=null,o.value.src=r.stream,o.value.load(),r.setPlaying(!o.value.paused)});const u=()=>{l=!0,r.onSongEnded()},c=()=>{try{o.value.play()}catch{}},f=()=>{o.value.pause()},h=b=>{o.value.currentTime=b},p=b=>{let y=b/100;y=Math.min(Math.max(y,0),1),o.value.volume=y},v=b=>{o.value.muted=b};return Vt(()=>{p(r.volume);var b=window.AudioContext,y=new b,E=y.createMediaElementSource(o.value);E.connect(y.destination),s.setSource(E,y)}),t({play:c,pause:f,seek:h,setVolume:p,setMute:v}),(b,y)=>(ne(),ge("div",nE,[te("audio",{ref_key:"audio",ref:o,src:se(r).stream,onEnded:u,onPause:y[0]||(y[0]=E=>se(r).setPlaying(!1)),onPlay:y[1]||(y[1]=E=>se(r).setPlaying(!0)),onTimeupdate:y[2]||(y[2]=E=>{var R;return se(r).setProgress((R=o.value)==null?void 0:R.currentTime)})},null,40,rE)]))}});const sE={props:{modelValue:{type:Number,required:!0},max:{type:Number,default:100}},watch:{modelValue(){this.value=this.modelValue}},computed:{percentage(){return Math.min(1,this.value/this.max)*100}},methods:{seek(e,t=!1){console.log("seek",e);const r=this.$el.getBoundingClientRect(),s=e.clientX-r.left,o=this.$el.offsetWidth;if(this.value=s/o*this.max,!t){this.seeking=!1,this.$emit("change",this.value);try{this.$emit("update:modelValue",this.value)}catch{}}}},data(){return{hover:!1,value:this.modelValue||0,seeking:!1}},mounted(){window.addEventListener("mouseup",e=>{this.seeking&&(this.seeking=!1,this.seek(e))}),window.addEventListener("mousemove",e=>{this.seeking&&this.seek(e,!0)})}},oE={class:"progressBar__track"};function aE(e,t,r,s,o,l){return ne(),ge("div",{ref:"el",class:"progressBar",onMousedown:t[0]||(t[0]=u=>o.seeking=!0),onDragover:t[1]||(t[1]=Dt(()=>{},["stop"])),onClick:t[2]||(t[2]=(...u)=>l.seek&&l.seek(...u)),onMouseenter:t[3]||(t[3]=u=>o.hover=!0),onMouseleave:t[4]||(t[4]=u=>o.hover=!1)},[te("div",oE,[te("div",{class:Je([{hover:o.hover},"progressBar__progress"]),style:Vr({width:`${l.percentage}%`})},null,6)])],544)}const wu=at(sE,[["render",aE],["__scopeId","data-v-bd694edc"]]),lE={class:"dropdown"},uE=["onClick"],cE={class:"material-symbols-rounded"},fE={key:0,class:"material-symbols-rounded"},dE=ze({__name:"IconDropdown",props:{modelValue:{type:String,required:!0},icon:{type:String,required:!0},options:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=Pe(r.options),o=Pe(r.modelValue),l=Pe(!1),u=t;st(r,h=>{o.value=h.modelValue,s.value=h.options},{deep:!0});const c=h=>{o.value=h,u("update:modelValue",h),l.value=!1},f=Pe(null);return st(l,h=>{ur(()=>{if(h){const p=f.value.getBoundingClientRect();window.innerHeight-p.top>p.height?(f.value.style.top="100%",f.value.style.bottom="auto"):(f.value.style.top="auto",f.value.style.bottom="100%"),p.left<0?(f.value.style.left="0",f.value.style.right="auto"):p.right>window.innerWidth&&(f.value.style.left="auto",f.value.style.right="0")}})}),document.addEventListener("click",()=>{l.value=!1}),(h,p)=>(ne(),ge("div",lE,[te("span",{class:"dropdown__selected material-symbols-rounded ms-wght-400",onClick:p[0]||(p[0]=Dt(v=>l.value=!l.value,["stop"]))},We(e.icon),1),l.value?(ne(),ge("div",{key:0,ref_key:"trueDropdown",ref:f,class:Je([{expanded:l.value},"dropdown__options"])},[(ne(!0),ge(et,null,fr(s.value,v=>(ne(),ge("div",{key:v.value,class:"dropdown__option",onClick:Dt(m=>c(v.value),["stop"])},[te("span",cE,We(v.icon),1),te("span",null,We(v.label),1),o.value==v.value?(ne(),ge("span",fE,"check")):Ne("",!0)],8,uE))),128))],2)):Ne("",!0)]))}});const Au=at(dE,[["__scopeId","data-v-b20d4971"]]),hE={class:"loader"},pE=ze({__name:"Spinner",setup(e){const t=Pe(null);return Vt(()=>{var l,u;const s=((l=t.value)==null?void 0:l.clientWidth)??0,o=8/80;for(const c of((u=t.value)==null?void 0:u.children)??[])c.style.width=`${s*.8}px`,c.style.height=`${s*.8}px`,c.style.borderWidth=`${s*o}px`,c.style.margin=`${s*o}px`}),(r,s)=>(ne(),ge("span",hE))}});const Sp=at(pE,[["__scopeId","data-v-ed1fd951"]]);var Vv={exports:{}};/*! +}`;var qe=sh(function(){return it(C,Te+"return "+he).apply(r,$)});if(qe.source=he,Jl(qe))throw qe;return qe}function Lw(n){return ot(n).toLowerCase()}function $w(n){return ot(n).toUpperCase()}function Dw(n,i,a){if(n=ot(n),n&&(a||i===r))return pf(n);if(!n||!(i=an(i)))return n;var d=En(n),g=En(i),C=mf(d,g),$=vf(d,g)+1;return _r(d,C,$).join("")}function Bw(n,i,a){if(n=ot(n),n&&(a||i===r))return n.slice(0,yf(n)+1);if(!n||!(i=an(i)))return n;var d=En(n),g=vf(d,En(i))+1;return _r(d,0,g).join("")}function Nw(n,i,a){if(n=ot(n),n&&(a||i===r))return n.replace(Ja,"");if(!n||!(i=an(i)))return n;var d=En(n),g=mf(d,En(i));return _r(d,g).join("")}function Ww(n,i){var a=K,d=q;if(At(i)){var g="separator"in i?i.separator:g;a="length"in i?Ue(i.length):a,d="omission"in i?an(i.omission):d}n=ot(n);var C=n.length;if(gi(n)){var $=En(n);C=$.length}if(a>=C)return n;var W=a-yi(d);if(W<1)return d;var J=$?_r($,0,W).join(""):n.slice(0,W);if(g===r)return J+d;if($&&(W+=J.length-W),Xl(g)){if(n.slice(W).search(g)){var ae,ue=J;for(g.global||(g=pl(g.source,ot($c.exec(g))+"g")),g.lastIndex=0;ae=g.exec(ue);)var he=ae.index;J=J.slice(0,he===r?W:he)}}else if(n.indexOf(an(g),W)!=W){var we=J.lastIndexOf(g);we>-1&&(J=J.slice(0,we))}return J+d}function Fw(n){return n=ot(n),n&&Jv.test(n)?n.replace(Ic,my):n}var Vw=Ci(function(n,i,a){return n+(a?" ":"")+i.toUpperCase()}),tu=od("toUpperCase");function ih(n,i,a){return n=ot(n),i=a?r:i,i===r?cy(n)?yy(n):ty(n):n.match(i)||[]}var sh=Ke(function(n,i){try{return sn(n,r,i)}catch(a){return Jl(a)?a:new Ve(a)}}),Hw=Yn(function(n,i){return vn(i,function(a){a=Wn(a),Zn(n,a,Gl(n[a],n))}),n});function Uw(n){var i=n==null?0:n.length,a=Me();return n=i?gt(n,function(d){if(typeof d[1]!="function")throw new gn(u);return[a(d[0]),d[1]]}):[],Ke(function(d){for(var g=-1;++gb)return[];var a=_,d=Nt(n,_);i=Me(i),n-=_;for(var g=fl(d,i);++a0||i<0)?new Ye(a):(n<0?a=a.takeRight(-n):n&&(a=a.drop(n)),i!==r&&(i=Ue(i),a=i<0?a.dropRight(-i):a.take(i-n)),a)},Ye.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ye.prototype.toArray=function(){return this.take(_)},Bn(Ye.prototype,function(n,i){var a=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),g=w[d?"take"+(i=="last"?"Right":""):i],C=d||/^find/.test(i);g&&(w.prototype[i]=function(){var $=this.__wrapped__,W=d?[1]:arguments,J=$ instanceof Ye,ae=W[0],ue=J||He($),he=function(Ge){var Qe=g.apply(w,hr([Ge],W));return d&&we?Qe[0]:Qe};ue&&a&&typeof ae=="function"&&ae.length!=1&&(J=ue=!1);var we=this.__chain__,Te=!!this.__actions__.length,$e=C&&!we,qe=J&&!Te;if(!C&&ue){$=qe?$:new Ye(this);var De=n.apply($,W);return De.__actions__.push({func:Wo,args:[he],thisArg:r}),new yn(De,we)}return $e&&qe?n.apply(this,W):(De=this.thru(he),$e?d?De.value()[0]:De.value():De)})}),vn(["pop","push","shift","sort","splice","unshift"],function(n){var i=co[n],a=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);w.prototype[n]=function(){var g=arguments;if(d&&!this.__chain__){var C=this.value();return i.apply(He(C)?C:[],g)}return this[a](function($){return i.apply(He($)?$:[],g)})}}),Bn(Ye.prototype,function(n,i){var a=w[i];if(a){var d=a.name+"";lt.call(Ai,d)||(Ai[d]=[]),Ai[d].push({name:i,func:a})}}),Ai[Io(r,O).name]=[{name:"wrapper",func:r}],Ye.prototype.clone=Fy,Ye.prototype.reverse=Vy,Ye.prototype.value=Hy,w.prototype.at=g0,w.prototype.chain=y0,w.prototype.commit=_0,w.prototype.next=b0,w.prototype.plant=A0,w.prototype.reverse=x0,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=P0,w.prototype.first=w.prototype.head,ns&&(w.prototype[ns]=w0),w},_i=_y();qr?((qr.exports=_i)._=_i,rl._=_i):Mt._=_i}).call(As)})(ka,ka.exports);var u3=ka.exports;const c3={class:"flex flex-col"},f3=ze({__name:"InputWithAutoComplete",props:{icon:String,placeholder:String,modelValue:String,onClick:{type:Function,required:!1},suggest:{type:Function,required:!0},clickSuggest:{type:Function,required:!1}},emits:["update:modelValue","change","submit"],setup(e,{expose:t,emit:r}){const s=Pe(-1),o=R=>R.key==="ArrowDown"?(s.value++,s.value>=m.value.length&&(s.value=-1),!0):R.key==="ArrowUp"?(s.value===-1&&(s.value=m.value.length),s.value--,s.value<0&&(s.value=-1),!0):R.key==="Enter"&&s.value>=0?(c.clickSuggest(m.value[s.value],R.shiftKey),s.value=-1,m.value=[],!0):!1,l=()=>{m.value=[],x("submit",f.value)},u=()=>{var R,O;(O=(R=p.value)==null?void 0:R.querySelector("input"))==null||O.blur()};document.addEventListener("click",R=>{var O;(O=p.value)!=null&&O.contains(R.target)||(m.value=[],s.value=-1)}),document.addEventListener("keydown",R=>{R.key==="Escape"&&(m.value=[],s.value=-1,u())});const c=e,f=Pe(c.modelValue),h=Pe(null);st(()=>c.modelValue,R=>{f.value=R});const p=Pe(null),v=Fe(()=>{var R,O;return{top:p.value.offsetTop+p.value.offsetHeight+"px",left:((R=p.value)==null?void 0:R.offsetLeft)+"px",width:((O=p.value)==null?void 0:O.offsetWidth)+"px"}}),m=Pe([]),y=u3.debounce(async()=>{m.value=(await c.suggest(f.value)).slice(0,5)},300),x=r,k=()=>{x("update:modelValue",f.value),x("change",f.value),y()};return t({focus:()=>{var R;(R=h.value)==null||R.focus()},blur:u}),(R,O)=>(ne(),ge(et,null,[te("div",{ref_key:"inputElement",ref:p,class:"input-with-autocomplete"},[me(Gu,{modelValue:f.value,"onUpdate:modelValue":O[0]||(O[0]=S=>f.value=S),icon:e.icon,placeholder:e.placeholder,onChange:k,onSubmit:l,onKeyUp:o,expanded:m.value.length>0,ref_key:"input",ref:h},null,8,["modelValue","icon","placeholder","expanded"])],512),m.value.length>0?(ne(),je(eo,{key:0,to:"#autocomplete-target"},[te("div",{class:"suggestions absolute w-full z-10",style:Vr(v.value),onClick:O[1]||(O[1]=Dt(S=>m.value=[],["stop"]))},[te("div",c3,[(ne(!0),ge(et,null,fr(m.value,(S,M)=>Ui(R.$slots,"default",{selected:M===s.value,value:S},void 0,!0)),256))])],4)])):We("",!0)],64))}});const d3=at(f3,[["__scopeId","data-v-d77dd6e4"]]);const h3={name:"Loader"},p3=e=>(ci("data-v-5094a170"),e=e(),fi(),e),m3={class:"loader"},v3=p3(()=>te("div",{class:"spinner"},[te("div",{class:"bounce1"}),te("div",{class:"bounce2"}),te("div",{class:"bounce3"})],-1)),g3=[v3];function y3(e,t,r,s,o,l){return ne(),ge("div",m3,g3)}const Ov=at(h3,[["render",y3],["__scopeId","data-v-5094a170"]]),_3={key:1},b3=ze({__name:"IconButton",props:{icon:{type:String,required:!1},label:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"negative"}},setup(e){return(t,r)=>(ne(),ge("button",{class:Je([(e.disabled?"disabled ":"")+e.type,"flex items-center justify-center h-12 p-4 mt-4 rounded-full"])},[e.icon?(ne(),ge("span",{key:0,class:Je([{"mr-2":e.label},"material-symbols-rounded"])},Be(e.icon),3)):We("",!0),e.label?(ne(),ge("span",_3,Be(e.label),1)):We("",!0)],2))}});const kp=at(b3,[["__scopeId","data-v-b68d33f1"]]),w3=e=>(ci("data-v-e243c458"),e=e(),fi(),e),A3={class:"header bg-secondary rounded-t-2xl p-3"},x3={class:"title font-black"},P3=w3(()=>te("span",{class:"title material-icons-round"}," close ",-1)),C3=[P3],k3={key:1},E3={class:"p-4 error"},S3={key:2,class:"p-4 pt-0 flex flex-col overflow-x-hidden overflow-y-auto"},O3={key:0,class:"confirm"},R3=ze({__name:"Template",props:{name:{type:String,required:!0},submit:{type:Object,required:!1},secondary:{type:Object,required:!1,default:null}},emits:["submit","close","secondary"],setup(e,{expose:t,emit:r}){const s=e,o=Pe(!1),l=Pe(!1),u=Pe(""),c=()=>l.value=!1,f=()=>{o.value=!1,l.value=!0},h=()=>{o.value=!0,l.value=!0},p=async(k,R)=>{h();const O=await window.fetch(k,R);return f(),O.ok?O:(u.value=await O.text(),null)},v=r,m=()=>{c(),v("close")},y=()=>{v("submit"),m()},x=()=>{v("secondary"),m()};return t({show:f,hide:c,load:h,fetch:p}),(k,R)=>l.value?(ne(),je(eo,{key:0,to:"#popup-target"},[te("div",{class:"modal",onClick:R[1]||(R[1]=Dt(O=>l.value=!1,["stop"])),onContextmenu:R[2]||(R[2]=Dt(()=>{},["stop"])),onDrag:R[3]||(R[3]=Dt(()=>{},["stop"]))},[te("div",{class:"modal-content",onClick:R[0]||(R[0]=Dt(()=>{},["stop"]))},[te("div",A3,[te("h3",x3,Be(e.name),1),te("button",{class:"modal-close",onClick:m},C3)]),o.value?(ne(),je(Ov,{key:0})):u.value?(ne(),ge("div",k3,[te("p",E3,Be(u.value),1)])):(ne(),ge("div",S3,[Ui(k.$slots,"default",{},void 0,!0),s.submit||s.secondary?(ne(),ge("div",O3,[s.secondary?(ne(),je(kp,{key:0,icon:s.secondary.icon,label:s.secondary.label,type:s.secondary.type,onClick:x},null,8,["icon","label","type"])):We("",!0),s.submit?(ne(),je(kp,{key:1,icon:s.submit.icon,label:s.submit.label,type:s.submit.type,onClick:y},null,8,["icon","label","type"])):We("",!0)])):We("",!0)]))])],32)])):We("",!0)}});const Rv=at(R3,[["__scopeId","data-v-e243c458"]]),T3={class:"flex flex-row gap-2"},I3={key:0,class:"material-symbols-rounded ms-wght-200"},M3={class:"material-symbols-rounded"},L3=["onClick"],$3={class:"material-symbols-rounded"},D3={key:0,class:"material-symbols-rounded"},B3=ze({__name:"Dropdown",props:{modelValue:{type:String,required:!0},options:{type:Array,required:!0},icon:{type:String,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=Pe(r.modelValue),o=Pe(!1),l=t;st(r,p=>{s.value=p.modelValue},{deep:!0});const u=p=>{s.value=p,l("update:modelValue",p),o.value=!1},c=Fe(()=>{const p=r.options.find(v=>v.value==s.value);return p?p.label:""}),f=Pe(null),h=Pe(null);return st(o,p=>{ur(()=>{if(p){const v=f.value.getBoundingClientRect(),m=h.value.getBoundingClientRect(),y=m.top,x=m.bottom,k=window.innerHeight-x,R=m.width;f.value.style.width=R+"px",f.value.style.left=m.left+"px",k>v.height?(f.value.style.top=x+"px",f.value.style.bottom="auto"):(f.value.style.top="auto",f.value.style.bottom=y-v.height+"px")}})}),window.addEventListener("click",()=>{o.value=!1}),(p,v)=>(ne(),ge("div",{ref_key:"container",ref:h,class:"dropdown"},[te("div",{class:Je([{expanded:o.value},"dropdown__selected"]),onClick:v[0]||(v[0]=Dt(m=>o.value=!o.value,["stop"]))},[te("div",T3,[e.icon?(ne(),ge("span",I3,Be(e.icon),1)):We("",!0),te("span",null,Be(c.value),1)]),te("i",M3,Be(o.value?"expand_less":"expand_more"),1)],2),(ne(),je(eo,{to:"#dropdown-target"},[o.value?(ne(),ge("div",{key:0,ref_key:"trueDropdown",ref:f,class:"dropdown__options"},[(ne(!0),ge(et,null,fr(e.options,m=>(ne(),ge("div",{key:m.value,class:"dropdown__option",onClick:Dt(y=>u(m.value),["stop"])},[te("span",$3,Be(m.icon),1),te("span",null,Be(m.label),1),s.value==m.value?(ne(),ge("span",D3,"check")):We("",!0)],8,L3))),128))],512)):We("",!0)]))],512))}});const N3=at(B3,[["__scopeId","data-v-186027d9"]]),W3={class:"form"},F3={class:"content"},V3=["onClick"],H3=["accept","onChange"],U3={key:0,class:"imagePreview"},q3=["onUpdate:modelValue","type","onChange"],j3=ze({__name:"Form",props:{options:{type:Array,required:!0}},setup(e,{expose:t}){const r=e;return t({toObject:()=>{const o={};return r.options.forEach(l=>{o[l.name]=l.value}),o}}),(o,l)=>(ne(),ge("div",W3,[(ne(!0),ge(et,null,fr(e.options,u=>(ne(),ge("div",{key:u.name,class:"option"},[te("h4",null,Be(se(V5)(u.name)),1),te("div",F3,[u.type=="upload"?(ne(),ge(et,{key:0},[te("span",{class:"material-symbols-rounded icon-button",onClick:()=>{var c,f;return(f=(c=o.$refs["upload-"+u.name])==null?void 0:c[0])==null?void 0:f.click()}}," file_upload ",8,V3),te("input",{ref_for:!0,ref:"upload-"+u.name,accept:u.accept,style:{display:"none"},type:"file",onChange:c=>u==null?void 0:u.onUpload(c.target.files[0])},null,40,H3),me(Gu,{ref_for:!0,ref:"cover",modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,class:"addSong cover",type:"text",onChange:c=>u==null?void 0:u.onChange(u.value)},null,8,["modelValue","onUpdate:modelValue","icon","onChange"]),u.imagePreview?(ne(),ge("div",U3,[me(oi,{src:se(xa)(u.value),class:"cover",onClick:c=>se(wc)(u.value)},null,8,["src","onClick"])])):We("",!0)],64)):u.type=="dropdown"?(ne(),je(N3,{key:1,modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,options:u.options},null,8,["modelValue","onUpdate:modelValue","icon","options"])):u.type=="text"?(ne(),je(Gu,{key:2,modelValue:u.value,"onUpdate:modelValue":c=>u.value=c,icon:u.icon,placeholder:u.placeholder,required:u.required,type:u.type,onChange:c=>u.onChange?u==null?void 0:u.onChange(u.value):null},null,8,["modelValue","onUpdate:modelValue","icon","placeholder","required","type","onChange"])):Ks((ne(),ge("input",{key:3,"onUpdate:modelValue":c=>u.value=c,type:u.type,onChange:c=>u.onChange?u==null?void 0:u.onChange(u.value):null},null,40,q3)),[[bc,u.value]])])]))),128))]))}});const Tv=at(j3,[["__scopeId","data-v-f7f90291"]]),K3={class:"padding-20 playlisteditor"},z3=["src"],Z3={class:"details"},G3={class:"detailswrapper"},Y3=["onClick"],J3=ze({__name:"TrackInfo",props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},cover:{type:String,required:!0},icons:{type:Array,required:!0}},setup(e){return(t,r)=>(ne(),ge("div",K3,[te("img",{src:e.cover,class:"cover"},null,8,z3),te("div",Z3,[te("div",G3,[(ne(!0),ge(et,null,fr(e.icons,(s,o)=>(ne(),ge("span",{key:o,class:"material-icons-round",onClick:s.onClick},Be(s.name),9,Y3))),128))]),te("h1",null,Be(e.title),1),te("h6",null,Be(e.subtitle),1)])]))}});const Iv=at(J3,[["__scopeId","data-v-46f31e97"]]),xs=e=>{const t=new CustomEvent("notification.add",{detail:e});window.dispatchEvent(t)},ar={addSuccess(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"success",timeout:r}),s},addError(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"error",timeout:r}),s},addInfo(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"info",timeout:r}),s},addWarning(e,t,r){const s=Math.random().toString(36).substring(7);return xs({id:s,message:e,details:t,type:"warning",timeout:r}),s},addYesNo(e,t,r,s,o,l){const u=Math.random().toString(36).substring(7);return xs({id:u,message:e,details:t,type:"yes-no",timeout:r,onYes:s,onNo:o,onTimeout:l}),u},remove(e){const t=new CustomEvent("notification.remove",{detail:e});window.dispatchEvent(t)},clear(){const e=new CustomEvent("notification.clear");window.dispatchEvent(e)}},Mv=ze({__name:"ImportSpotifySong",props:{song:{type:Object,required:!0}},setup(e,{expose:t}){const r=zt(),s=e,o=Pe([{name:"playlist",type:"dropdown",icon:"playlist_add",required:!0,value:null,options:r.playlistsAsDropdown}]),l=Pe(null),u=Pe(null),c=Pe(null),f=async()=>{if(c.value){l.value.show();return}const m=await l.value.fetch("/api/browse/track",{method:"POST",body:JSON.stringify({url:s.song.href??s.song.url})});m&&(l.value.load(),c.value=await m.json(),l.value.show())},h=()=>{const m=new CustomEvent("player.play",{detail:{artist:s.song.artist,title:s.song.title,source:s.song.href}});window.dispatchEvent(m)},p=async m=>{if(m==="new"){const y=await xc("classic",s.song.title,s.song.artist,s.song.cover);return o.value[0].options=r.playlistsAsDropdown,o.value[0].value=y,y}return m},v=async(m,y=null)=>{var x;y??(y=u.value.toObject().playlist),console.log(y),y=await p(y),await dv(y,c.value),s.song.added=!0,ar.addSuccess(c.value.title,`Added to ${(x=r.playlists.find(k=>k.id==y))==null?void 0:x.name}`,3e3)};return t({show:f}),(m,y)=>(ne(),je(Rv,{ref_key:"modal",ref:l,submit:{label:"Add",icon:"add"},name:"Import Song",onClose:y[0]||(y[0]=x=>m.$emit("close")),onSubmit:v},{default:Ot(()=>[me(Iv,{cover:e.song.cover,icons:[{name:"share",onClick:()=>se(wc)(e.song.href)},{name:"play_arrow",onClick:h}],title:e.song.title},null,8,["cover","icons","title"]),me(Tv,{ref_key:"form",ref:u,options:o.value},null,8,["options"])]),_:1},512))}}),Rc=e=>(ci("data-v-f8e4524a"),e=e(),fi(),e),X3=Rc(()=>te("div",{class:"index text-right"},"#",-1)),Q3=Rc(()=>te("div",{class:"artist-title"}," title ",-1)),eC={key:0,class:"album"},tC={key:1,class:"duration"},nC=Rc(()=>te("span",{class:"material-symbols-rounded"},"schedule",-1)),rC=[nC],iC=ze({__name:"PlaylistHeader",props:{withAlbum:{type:Boolean,required:!1,default:!1},withMore:{type:Boolean,required:!1,default:!1},withoutDuration:{type:Boolean,required:!1,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",{class:Je([{withAlbum:e.withAlbum,withMore:e.withMore},"playlist-header"])},[X3,Q3,e.withAlbum?(ne(),ge("div",eC," album ")):We("",!0),e.withoutDuration?We("",!0):(ne(),ge("div",tC,rC))],2))}});const sC=at(iC,[["__scopeId","data-v-f8e4524a"]]);const oC={name:"Marquee",mounted(){this.update(),window.addEventListener("resize",this.update)},data(){return{isMarquee:!1}},methods:{isTruncated(e){return(e==null?void 0:e.scrollWidth)>(e==null?void 0:e.clientWidth)},update(){this.isMarquee=!1,setTimeout(()=>{this.isMarquee=this.isTruncated(this.$refs.marquee)},10)}}},aC={key:0,class:"replacer"},lC={key:0,class:"overlay"};function uC(e,t,r,s,o,l){return ne(),ge("div",{class:Je([{marquee:o.isMarquee},"marqueeWrapper"])},[te("span",{ref:"marquee",class:Je({marquee:o.isMarquee})},[Ui(e.$slots,"default",{},void 0,!0),o.isMarquee?(ne(),ge("span",aC,[Ui(e.$slots,"default",{},void 0,!0)])):We("",!0)],2),o.isMarquee?(ne(),ge("div",lC)):We("",!0)],2)}const cC=at(oC,[["render",uC],["__scopeId","data-v-ad7138e8"]]),fC={class:"artist"},dC=ze({__name:"ArtistMarquee",props:{artist:{type:String,required:!0}},setup(e){const t=e,r=Fe(()=>t.artist.split(", "));return(s,o)=>{const l=Hi("router-link");return ne(),je(cC,null,{default:Ot(()=>[(ne(!0),ge(et,null,fr(r.value,u=>(ne(),ge("span",fC,[me(l,{to:"/artist/"+u},{default:Ot(()=>[Ua(Be(u),1)]),_:2},1032,["to"])]))),256))]),_:1})}}});const Lv=at(dC,[["__scopeId","data-v-156468cf"]]),hC={key:0,class:"cover"},pC={class:"artist-title"},mC={class:"title"},vC={class:"artist"},gC={key:1,class:"album"},yC=["onClick"],_C=ze({__name:"ExternalEntry",props:{song:{type:Object,required:!0},index:{type:Number,required:!0},withCover:{type:Boolean,required:!1,default:!1},withAlbum:{type:Boolean,required:!1,default:!1},selected:{type:Boolean,required:!1,default:!1},playlistId:{type:Number,required:!1,default:null},canImport:{type:Boolean,required:!1,default:!1}},emits:["update","add"],setup(e,{emit:t}){const r=e,s=t,o=Bt(),l=Fe(()=>r.song.id==o.song.id),u=Pe(!1);Fe(()=>r.playlistId==null?o.playlist.id:r.playlistId);const c=()=>{r4(r.song.title,r.song.artist,r.song.source||r.song.href)},f=Pe(null),h=()=>{r.canImport?f.value.show():s("add")};return(p,v)=>(ne(),ge(et,null,[e.canImport?(ne(),je(Mv,{key:0,ref_key:"updatePopup",ref:f,song:e.song},null,8,["song"])):We("",!0),te("div",{class:Je([{playing:l.value,selected:e.selected,hovering:u.value,withCover:e.withCover,withAlbum:e.withAlbum},"playlist-entry"]),onDblclick:c,onMouseenter:v[0]||(v[0]=m=>u.value=!0),onMouseleave:v[1]||(v[1]=m=>u.value=!1)},[te("div",{class:Je([{"material-symbols-rounded":u.value},"index text-right"]),onClick:c},Be(u.value?"play_arrow":e.index+1),3),e.withCover?(ne(),ge("div",hC,[me(oi,{src:e.song.cover,type:"track"},null,8,["src"])])):We("",!0),te("div",pC,[te("span",mC,[(ne(),je(QA(e.song.href.startsWith("http")?"a":"router-link"),{href:e.song.href,to:e.song.href,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:e.song.title},null,8,["text"])]),_:1},8,["href","to"]))]),te("span",vC,[me(Lv,{artist:e.song.artist,class:"text-muted text-xs"},null,8,["artist"])])]),e.withAlbum&&!se(qu)?(ne(),ge("div",gC,[me(ir,{text:e.song.album},null,8,["text"])])):We("",!0),te("div",{class:"icon text-left material-symbols-rounded",onClick:Dt(h,["stop"])},Be(e.song.added?"done":"add"),9,yC)],34)],64))}});const bC=at(_C,[["__scopeId","data-v-2482bde4"]]),wC=e=>(ci("data-v-a918d839"),e=e(),fi(),e),AC={class:"playlist"},xC=wC(()=>te("hr",null,null,-1)),PC={class:"entries"},CC=ze({__name:"Playlist",props:{songs:{type:Array,required:!0},noCover:{type:Boolean,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",AC,[me(sC,{"without-duration":""}),xC,te("div",PC,[(ne(!0),ge(et,null,fr(e.songs,(s,o)=>(ne(),je(bC,{key:s.source,added:s.added,index:o,song:s,title:s.title,"with-cover":!e.noCover,onAdd:l=>t.$emit("add",o)},null,8,["added","index","song","title","with-cover","onAdd"]))),128))])]))}});const kC=at(CC,[["__scopeId","data-v-a918d839"]]),EC=te("br",null,null,-1),SC=ze({__name:"ImportSpotifyAlbum",props:{album:{type:Object,required:!0}},setup(e,{expose:t}){const r=zt(),s=e,o=Pe([{name:"playlist",type:"dropdown",icon:"playlist_add",required:!0,value:null,options:r.playlistsAsDropdown}]),l=Pe(null),u=Pe(null),c=Pe([]);let f=null;const h=async()=>{if(c.value.length>0&&f===s.album.id){l.value.show();return}const x=await l.value.fetch(`/api/spotify/albums/${s.album.id}`);if(f=s.album.id,!x){ar.addError("Failed to fetch album from Spotify",x.text,3e3);return}c.value=await x.json()},p=()=>{const x=new CustomEvent("player.play",{detail:{artist:s.album.artist,title:s.album.title,source:s.album.href}});window.dispatchEvent(x)},v=async x=>{if(x==="new"){const k=await xc("classic",s.album.title,`${s.album.releaseDate}, ${s.album.artist}`,s.album.cover);return o.value[0].options=r.playlistsAsDropdown,o.value[0].value=k,k}return x},m=async(x,k=null)=>{c.value[x].added||(k??(k=u.value.toObject().playlist),k=await v(k),await dv(k,c.value[x]),c.value[x].added=!0)},y=async()=>{let x=u.value.toObject().playlist;x=await v(x),c.value.forEach((k,R)=>{m(R,x)}),ar.addSuccess(s.album.title,`Added ${c.value.length} songs to ${r.playlists[x].name}`,3e3)};return t({show:h}),(x,k)=>(ne(),je(Rv,{ref_key:"modal",ref:l,submit:{label:"Add All",icon:"add"},name:"Import Album",onClose:k[0]||(k[0]=R=>x.$emit("close")),onSubmit:y},{default:Ot(()=>[me(Iv,{cover:e.album.cover,icons:[{name:"share",onClick:()=>se(wc)(e.album.href)},{name:"play_arrow",onClick:p}],subtitle:e.album.artist,title:e.album.title},null,8,["cover","icons","subtitle","title"]),me(Tv,{ref_key:"form",ref:u,options:o.value},null,8,["options"]),EC,me(kC,{songs:c.value,noCover:"",onAdd:m},null,8,["songs"])]),_:1},512))}}),OC={class:"info"},RC={class:"flex flex-col flex-1"},TC={class:"name"},IC={key:0,class:"text-muted text-sm"},MC={class:"aux flex items-center text-muted text-sm gap-2"},LC={class:"tag"},$C={class:"material-symbols-rounded tag"},DC=["name"],BC=ze({__name:"SearchResultItem",props:{item:{type:Object,required:!0},large:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},setup(e){const t=i3(),r=e,s=Fe(()=>{var k,R,O,S;return((R=(k=r.item)==null?void 0:k.item)==null?void 0:R.cover)??((S=(O=r.item)==null?void 0:O.item)==null?void 0:S.image)}),o=Fe(()=>{var k,R,O,S;return((R=(k=r.item)==null?void 0:k.item)==null?void 0:R.name)??((S=(O=r.item)==null?void 0:O.item)==null?void 0:S.title)}),l=Fe(()=>{var k,R;return(R=(k=r.item)==null?void 0:k.item)==null?void 0:R.artist}),u=Fe(()=>{var k;return(k=r.item)==null?void 0:k.type}),c=Fe(()=>({song:"music_note",album:"album",artist:"person",playlist:"queue_music",command:"code"})[u.value??"song"]),f=Fe(()=>{var k;return Math.round(((k=r.item)==null?void 0:k.confidence)*1e3)/10}),h=Fe(()=>{var k;return((k=r.item)==null?void 0:k.scope)==="local"}),p=Fe(()=>{var k;return((k=r.item)==null?void 0:k.scope)==="spotify"}),v=Fe(()=>{var k;return((k=r.item)==null?void 0:k.scope)==="audius"}),m=Pe(),y=Pe(),x=()=>{u.value==="artist"?t.push(`/artist/${r.item.item.name}`):u.value==="playlist"?t.push(r.item.item.href):h.value?u.value==="song"&&t.push(r.item.item.href):p.value?u.value==="song"?m.value.show():u.value==="album"&&y.value.show():v.value&&u.value==="song"&&m.value.show()};return(k,R)=>(ne(),ge(et,null,[u.value==="song"&&(p.value||v.value)?(ne(),je(Mv,{key:0,ref_key:"importSpotifySong",ref:m,song:r.item.item},null,8,["song"])):We("",!0),u.value==="album"&&p.value?(ne(),je(SC,{key:1,ref_key:"importSpotifyAlbum",ref:y,album:r.item.item},null,8,["album"])):We("",!0),te("div",{class:Je(["item",{large:e.large,noHover:e.noHover}]),onClick:x},[me(oi,{src:s.value,placeholder:c.value,"with-ambient":""},null,8,["src","placeholder"]),te("div",OC,[te("div",RC,[te("span",TC,Be(o.value),1),l.value?(ne(),ge("span",IC,Be(l.value),1)):We("",!0)]),te("div",MC,[te("span",LC,Be(f.value)+"% ",1),te("span",$C,Be(c.value),1),h.value?We("",!0):(ne(),ge("span",{key:0,name:e.item.scope,class:"uppercase tag"},Be(e.item.scope),9,DC))])])],2)],64))}});const NC=at(BC,[["__scopeId","data-v-4496fc3d"]]),Z6=["local","spotify","audius"],WC=["song","artist","album","playlist"],FC={class:"header grid grid-cols-3 justify-between drop-shadow-md"},VC={class:"search flex flex-row"},HC=["onClick"],UC={class:"mr-2 flex flex-row gap-2"},qC=ze({__name:"Header",setup(e){const t=Pe(null),r=Pe(!1),s=zt(),o=Bt(),l=Fe(()=>{if(!t.value)return{};const y=`calc(${t.value.offsetTop}px + 10px)`,x=`calc(${t.value.offsetLeft}px + 10px)`;return{top:y,left:x}});Pc().onDownload.push(y=>{r.value=!0,setTimeout(()=>{r.value=!1},500)});const c=(y,x=!1)=>{var k,R;if(x){if(y.type==="song"){o.loadPlaylist("track",y.item.id),(k=v.value)==null||k.blur();return}if(y.type==="playlist"){o.loadPlaylist(y.item.id),(R=v.value)==null||R.blur();return}}if(y.type==="artist"){Mi.push(`/artist/${y.item.name}`);return}Mi.push(y.item.href)},f=()=>{const y=s.playlists.flatMap(k=>k.songs),x=y[Math.floor(Math.random()*y.length)];return console.log(x),x},h=async y=>{if(!y.length)return[];if(y==="/rand"){const R=f();return R?[{type:"command",confidence:1,scope:"local",item:R}]:[]}return["/create","/new"].includes(y)?[{type:"command",confidence:.5,scope:"local",item:{name:"Create classic playlist",href:"/playlist/create?type=classic"}},{type:"command",confidence:.5,scope:"local",item:{name:"Create smart playlist",href:"/playlist/create?type=smart"}}]:(await(await fetch("/api/search",{method:"POST",body:JSON.stringify({query:y,scope:["local",...WC]})})).json()).items};let p=Pe("");const v=Pe(null);Vt(()=>{p.value=Mi.currentRoute.value.params.query||"",Mi.afterEach(y=>{p.value=y.params.query||"",console.log(p.value)}),window.addEventListener("keydown",y=>{var x;y.ctrlKey&&y.key==="k"&&(y.preventDefault(),(x=v.value)==null||x.focus())})});let m=()=>{Mi.push({name:"Search",params:{query:p.value}})};return(y,x)=>(ne(),ge("div",FC,[me(se(m4),{class:"hideIfMobile logo",onClick:x[0]||(x[0]=k=>y.$router.push("/"))}),te("div",VC,[me(Tn,{class:"sm:ml-0 mr-2",href:"/",icon:"home",minimised:"",name:"Home"}),me(d3,{modelValue:se(p),"onUpdate:modelValue":x[1]||(x[1]=k=>_t(p)?p.value=k:p=k),class:"md:!w-96",icon:"search",placeholder:"Search...",onSubmit:se(m),clickSuggest:c,suggest:h,ref_key:"search",ref:v},{default:Ot(({value:k,selected:R})=>[te("div",{class:Je(["suggestion",{selected:R}]),onClick:O=>c(k)},[me(NC,{item:k},null,8,["item"])],10,HC)]),_:1},8,["modelValue","onSubmit"])]),te("div",UC,[te("div",{class:"download",ref_key:"downloadIcon",ref:t},[me(Tn,{href:"/download",icon:"download",minimised:"",name:"Download"}),(ne(),je(eo,{to:"#popup-target"},[r.value?(ne(),ge("span",{key:0,class:"download-anim absolute top-0 left-0 z-[1000] material-symbols-rounded",style:Vr(l.value)},"download",4)):We("",!0)]))],512),me(Tn,{href:"/preferences",icon:"settings",minimised:"",name:"Preferences"})])]))}});const jC=at(qC,[["__scopeId","data-v-2bea1460"]]),KC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 809.48 395.8"},zC=te("path",{d:"M80.09 254.67c-4.84 0-9.04-1.72-12.6-5.16-3.57-3.43-5.35-7.7-5.35-12.79V79.04c0-4.84 1.78-8.97 5.35-12.41 3.56-3.44 7.76-5.16 12.6-5.16s8.97 1.72 12.41 5.16c3.43 3.43 5.15 7.57 5.15 12.41v157.68c0 5.09-1.72 9.36-5.15 12.79-3.44 3.44-7.58 5.16-12.41 5.16Zm70.63 61.47c-4.84 0-8.97-1.78-12.41-5.34-3.44-3.57-5.16-7.77-5.16-12.6V17.57c0-4.58 1.72-8.66 5.16-12.22 3.43-3.56 7.57-5.34 12.41-5.34s9.04 1.78 12.6 5.34c3.56 3.57 5.34 7.64 5.34 12.22V298.2c0 4.83-1.78 9.03-5.34 12.6-3.56 3.56-7.76 5.34-12.6 5.34ZM17.38 193.2c-4.79 0-8.88-1.7-12.27-5.1-3.4-3.4-5.1-7.61-5.1-12.65v-35.13c0-4.79 1.7-8.88 5.1-12.27 3.4-3.4 7.49-5.1 12.27-5.1s9 1.7 12.66 5.1c3.65 3.4 5.48 7.49 5.48 12.27v35.33c0 3.92-1.25 7.85-3.85 10.77-4.01 4.51-8.78 6.77-14.28 6.77Zm195.29 60.46c-4.78 0-8.87-1.7-12.28-5.11-3.4-3.4-5.1-7.62-5.1-12.66V79.86c0-4.79 1.7-8.88 5.1-12.28 3.4-3.4 7.5-5.11 12.28-5.11s9.01 1.7 12.66 5.11c3.65 3.4 5.48 7.49 5.48 12.28V235.9c0 5.04-1.76 9.26-5.29 12.66-3.52 3.4-7.81 5.11-12.85 5.11Zm62.52-60.46c-4.78 0-8.94-1.7-12.46-5.1-3.52-3.4-5.29-7.61-5.29-12.65v-35.13c0-4.79 1.76-8.88 5.29-12.27 3.53-3.4 7.68-5.1 12.46-5.1s8.94 1.7 12.46 5.1c3.53 3.4 5.29 7.49 5.29 12.27v35.13c0 5.03-1.76 9.25-5.29 12.65-3.52 3.4-7.68 5.1-12.46 5.1ZM436.15 266.18c-10.94-6.13-19.61-14.63-26-25.51-6.39-10.88-9.59-23.17-9.59-36.88s3.2-26 9.59-36.88c6.39-10.88 15.06-19.34 26-25.41 10.94-6.06 22.94-9.1 35.99-9.1s25.21 3.03 36.09 9.1c10.88 6.06 19.48 14.53 25.8 25.41 6.33 10.88 9.49 23.17 9.49 36.88s-3.16 26-9.49 36.88-14.96 19.38-25.9 25.51c-10.94 6.13-22.94 9.19-35.99 9.19s-25.05-3.06-35.99-9.19Zm59.42-36.48c5.73-6.46 8.6-15.09 8.6-25.9s-2.87-19.8-8.6-26.2c-5.73-6.39-13.54-9.59-23.43-9.59s-17.87 3.2-23.53 9.59c-5.67 6.4-8.5 15.13-8.5 26.2s2.83 19.61 8.5 26c5.67 6.4 13.51 9.59 23.53 9.59s17.7-3.23 23.43-9.69ZM690.05 273.99h-38.76l-51.61-77.91v77.91h-38.76V134.58h38.76l51.61 78.9v-78.9h38.76v139.41ZM750.95 165.63v22.74h44.49v29.46h-44.49v25.11h50.42v31.04h-89.18v-139.4h89.18v31.04h-50.42ZM414.68 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43h-1.39c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22ZM455.71 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.52-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM486.61 97.82h-17.56l-3.23 8.95h-5.54l14.55-40.02h6.06l14.5 40.02h-5.54l-3.23-8.95Zm-1.5-4.27-7.28-20.33-7.28 20.33h14.55ZM529.81 75.13v31.65h-5.25v-4.68c-1 1.62-2.4 2.88-4.19 3.78-1.79.9-3.76 1.36-5.92 1.36-2.46 0-4.68-.51-6.64-1.53s-3.51-2.55-4.65-4.59c-1.14-2.04-1.7-4.52-1.7-7.45V75.13h5.2v17.85c0 3.12.79 5.52 2.37 7.19 1.58 1.67 3.73 2.51 6.47 2.51s5.02-.87 6.64-2.6 2.43-4.25 2.43-7.57V75.13h5.25ZM538.7 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.86-2.02 7.71-2.02 2.46 0 4.75.57 6.87 1.7 2.12 1.14 3.73 2.63 4.85 4.48V64.04h5.31v42.74h-5.31v-5.95c-1.04 1.89-2.58 3.44-4.62 4.65s-4.43 1.82-7.16 1.82-5.36-.69-7.65-2.08c-2.29-1.39-4.09-3.33-5.4-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM577.91 68.95c-.69-.69-1.04-1.54-1.04-2.54s.35-1.85 1.04-2.54 1.54-1.04 2.54-1.04 1.78.35 2.45 1.04 1.01 1.54 1.01 2.54-.34 1.85-1.01 2.54-1.49 1.04-2.45 1.04-1.85-.35-2.54-1.04Zm5.08 6.18v31.65h-5.25V75.13h5.25ZM597.69 105.27c-2.41-1.35-4.29-3.26-5.66-5.75-1.37-2.48-2.05-5.36-2.05-8.63s.7-6.09 2.11-8.58 3.32-4.39 5.75-5.72 5.14-1.99 8.14-1.99 5.72.66 8.14 1.99 4.34 3.23 5.75 5.69c1.41 2.46 2.11 5.33 2.11 8.6s-.72 6.15-2.17 8.63c-1.44 2.48-3.4 4.4-5.86 5.75-2.46 1.35-5.2 2.02-8.2 2.02s-5.65-.67-8.06-2.02Zm13.37-3.93c1.65-.89 2.99-2.21 4.01-3.98 1.02-1.77 1.53-3.93 1.53-6.47s-.5-4.7-1.5-6.47c-1-1.77-2.31-3.09-3.93-3.96-1.62-.87-3.37-1.3-5.25-1.3s-3.69.43-5.28 1.3c-1.6.87-2.88 2.19-3.84 3.96s-1.44 3.93-1.44 6.47.47 4.76 1.41 6.53c.94 1.77 2.2 3.09 3.78 3.96 1.58.87 3.31 1.3 5.2 1.3s3.66-.44 5.31-1.33ZM652.38 86.65c-2.29 2.21-5.79 3.32-10.48 3.32h-7.74v16.81h-5.25V66.53h12.99c4.54 0 8 1.1 10.37 3.29 2.37 2.19 3.55 5.02 3.55 8.49s-1.15 6.13-3.44 8.35Zm-4.01-2.92c1.39-1.27 2.08-3.08 2.08-5.43 0-4.97-2.85-7.45-8.55-7.45h-7.74v14.78h7.74c2.93 0 5.08-.64 6.47-1.91ZM667.6 64.04v42.74h-5.25V64.04h5.25ZM676.55 82.32c1.31-2.44 3.11-4.34 5.4-5.69 2.29-1.35 4.84-2.02 7.65-2.02s5.18.6 7.22 1.79 3.56 2.7 4.56 4.5v-5.78h5.31v31.65h-5.31v-5.89c-1.04 1.85-2.59 3.38-4.65 4.59-2.06 1.21-4.46 1.82-7.19 1.82s-5.35-.69-7.62-2.08c-2.27-1.39-4.06-3.33-5.37-5.83-1.31-2.5-1.96-5.35-1.96-8.55s.65-6.07 1.96-8.52Zm23.39 2.34c-.96-1.77-2.26-3.13-3.9-4.07-1.64-.94-3.44-1.42-5.4-1.42s-3.75.46-5.37 1.39-2.91 2.27-3.87 4.04-1.44 3.85-1.44 6.24.48 4.53 1.44 6.32 2.25 3.16 3.87 4.1c1.62.94 3.41 1.42 5.37 1.42s3.76-.47 5.4-1.42c1.64-.94 2.94-2.31 3.9-4.1.96-1.79 1.44-3.88 1.44-6.27s-.48-4.47-1.44-6.24ZM742.85 75.13l-19.06 46.55h-5.43l6.24-15.25-12.76-31.3h5.83l9.93 25.64 9.82-25.64h5.43ZM776.8 92.91h-25.29c.19 3.12 1.26 5.55 3.21 7.31 1.94 1.75 4.3 2.63 7.07 2.63 2.27 0 4.17-.53 5.69-1.59 1.52-1.06 2.59-2.47 3.21-4.24h5.66c-.85 3.04-2.54 5.52-5.08 7.42s-5.7 2.86-9.47 2.86c-3 0-5.69-.67-8.06-2.02s-4.23-3.26-5.57-5.75c-1.35-2.48-2.02-5.36-2.02-8.63s.65-6.14 1.96-8.6 3.15-4.36 5.51-5.69 5.09-1.99 8.17-1.99 5.66.65 7.97 1.96c2.31 1.31 4.09 3.11 5.34 5.4 1.25 2.29 1.88 4.88 1.88 7.77 0 1-.06 2.06-.17 3.18Zm-6.58-9.44a8.686 8.686 0 0 0-3.61-3.29c-1.52-.75-3.21-1.13-5.05-1.13-2.66 0-4.92.85-6.79 2.54s-2.94 4.04-3.21 7.05h19.98c0-2-.44-3.72-1.33-5.17ZM793.12 76.05c1.71-1 3.8-1.5 6.27-1.5v5.43H798c-5.89 0-8.84 3.2-8.84 9.59v17.21h-5.25V75.13h5.25v5.14c.92-1.81 2.24-3.21 3.96-4.22Z"},null,-1),ZC=[zC];function GC(e,t){return ne(),ge("svg",KC,ZC)}const YC={render:GC};const JC={class:"startup"},XC={class:"wrap"},QC={class:"logo"},ek={__name:"Startup",setup(e){return Vt(()=>{ar.clear()}),(t,r)=>(ne(),ge("div",JC,[te("div",XC,[te("div",QC,[me(se(YC))]),me(se(Ov))])]))}},tk=at(ek,[["__scopeId","data-v-24a52185"]]),qn=document.createElement("video");qn.style.position="absolute";qn.style.top="0";qn.style.left="0";qn.style.width="500px";qn.style.height="500px";qn.style.zIndex="-1000";document.body.appendChild(qn);const Un=Pe("error"),oa=async()=>{if(Un.value=="error"||Un.value=="loading")return!1;await qn.requestPictureInPicture()},$v=()=>{const e=Bt(),t=Ur();let r;const s=async o=>{if(!t.player.pictureInPicture||e.song.id<0)return!1;r==null||r.terminate(),r=new Worker("/assets/ffmpeg/ffmpeg-worker-mp4.js"),Un.value="loading",console.log("loading new cover",o);const u=await(await fetch(o)).blob(),c=URL.createObjectURL(u);qn.src="";const f="t.jpg",h=[],p=new Image;p.src=c,p.style.width="100%",p.style.height="100%",p.onload=()=>{const x=document.createElement("canvas");x.width=p.width,x.height=p.height,x.getContext("2d").drawImage(p,0,0);const R=x.toDataURL("image/jpeg",1),O=v(R);h.push({name:f,data:O}),console.log("loaded image",h),requestAnimationFrame(m)};function v(x){var k=x.replace(/^data[^,]+,/,""),R=window.atob(k),O=R.length,S=new Uint8Array(new ArrayBuffer(O));for(let M=0;M{qn.src=webkitURL.createObjectURL(x)}};return st(()=>t.player.pictureInPicture,async o=>{console.log("pictureInPicture enabled",o),o?($v(),o=!0,Un.value="error",await s(e.song.cover)):(r==null||r.terminate(),o=!1,Un.value="error")}),t.player.pictureInPicture?(st(()=>e.song.cover,s),!0):!1},nk=ze({__name:"Card",props:{withHover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,r)=>(ne(),ge("div",{class:Je([{withHover:e.withHover,disabled:e.disabled},"card"])},[Ui(t.$slots,"default",{},void 0,!0)],2))}});const Dv=at(nk,[["__scopeId","data-v-04b9eb92"]]),rk={class:"message"},ik={key:0,class:"details"},sk=ze({__name:"ClosableNotification",props:{notification:{type:Object,required:!0}},emits:["remove"],setup(e,{emit:t}){const r=t,s=o=>{r("remove",o)};return(o,l)=>(ne(),je(Dv,{class:Je([e.notification.type,"notification"])},{default:Ot(()=>[te("div",rk,[te("h4",null,Be(e.notification.message),1),e.notification.details?(ne(),ge("span",ik,Be(e.notification.details),1)):We("",!0)]),te("span",{class:"material-symbols-rounded close",onClick:l[0]||(l[0]=u=>s(e.notification.id))}," close ")]),_:1},8,["class"]))}});const ok=at(sk,[["__scopeId","data-v-49e9d059"]]),Bv=e=>(ci("data-v-4dd7578e"),e=e(),fi(),e),ak={class:"message"},lk={key:0,class:"details"},uk=Bv(()=>te("span",{class:"material-symbols-rounded"}," check ",-1)),ck=[uk],fk=Bv(()=>te("span",{class:"material-symbols-rounded"}," close ",-1)),dk=[fk],hk=ze({__name:"YesNoNotification",props:{notification:{type:Object,required:!0}},emits:["remove"],setup(e,{emit:t}){const r=e,s=t,o=()=>{s("remove",r.notification.id),r.notification.onNo&&r.notification.onNo()},l=()=>{s("remove",r.notification.id),r.notification.onYes&&r.notification.onYes()};return(u,c)=>(ne(),je(Dv,{class:"notification"},{default:Ot(()=>[te("div",ak,[te("h4",null,Be(e.notification.message),1),e.notification.details?(ne(),ge("span",lk,Be(e.notification.details),1)):We("",!0)]),te("div",{class:"yes-no"},[te("div",{class:"yes option",onClick:l},ck),te("div",{class:"no option",onClick:o},dk)])]),_:1}))}});const pk=at(hk,[["__scopeId","data-v-4dd7578e"]]),mk={class:"notifications"},vk=ze({__name:"NotificationHandler",setup(e){const t=["success","error","info","warning"],r=Pe([]),s=u=>{r.value.push(u),u.timeout&&setTimeout(()=>{var c;(c=u.onTimeout)==null||c.call(u),o(u.id)},u.timeout)},o=u=>{r.value=r.value.filter(c=>c.id!=u)},l=()=>{r.value=[]};return window.addEventListener("notification.add",u=>{const c=u.detail;s(c)}),window.addEventListener("notification.remove",u=>{const c=u.detail;o(c)}),window.addEventListener("notification.clear",()=>{l()}),(u,c)=>(ne(),ge("div",mk,[(ne(!0),ge(et,null,fr(r.value,f=>(ne(),ge(et,{key:f.id},[t.includes(f.type)?(ne(),je(ok,{key:0,notification:f,onRemove:o},null,8,["notification"])):f.type=="yes-no"?(ne(),je(pk,{key:1,notification:f,onRemove:o},null,8,["notification"])):We("",!0)],64))),128))]))}});const gk=at(vk,[["__scopeId","data-v-ca1aa49b"]]);const Nv=()=>{console.log("attempting reconnect");const e=window.location.hostname,t=window.location.port==5173?1234:window.location.port,r=new WebSocket(`ws://${e}:${t}/ws`);r.onclose=()=>{console.log("ws closed"),Bt().setReady(!1),setTimeout(()=>Nv(),1e3)},r.onopen=()=>{console.log("ws connected"),Bt().setReady(!0)},r.onmessage=s=>{const o=Bt(),l=JSON.parse(s.data);l.path=="player.song"&&o.setSong(l.data),l.path=="player.playlist"&&o.setPlaylist(l.data)}};function yk(e){const t=3.999843853973347,r=1681.974450955533,s=.7071752369554196,o=Math.tan(Math.PI*r/e),l=Math.pow(10,t/20),u=Math.pow(l,.4996667741545416),c=1+o/s+o*o,f=2*(o*o-1)/c,h=(1-o/s+o*o)/c,p=(l+u*o/s+o*o)/c,v=2*(o*o-l)/c,m=(l-u*o/s+o*o)/c;return{numerators:[p,v,m],denominators:[1,f,h]}}function _k(e){const t=38.13547087602444,r=.5003270373238773,s=Math.tan(Math.PI*t/e),o=2*(s*s-1)/(1+s/r+s*s),l=(1-s/r+s*s)/(1+s/r+s*s);return{numerators:[1,-2,1],denominators:[1,o,l]}}function bk(e){if("createIIRFilter"in e){const t=yk(e.sampleRate);return e.createIIRFilter(t.numerators,t.denominators)}else{const t=e.createBiquadFilter();return t.type="highshelf",t.frequency.value=1500,t.gain.value=4,t}}function wk(e){if("createIIRFilter"in e){const t=_k(e.sampleRate);return e.createIIRFilter(t.numerators,t.denominators)}else{const t=e.createBiquadFilter();return t.type="highpass",t.frequency.value=38,t.Q.value=-6,t}}var Ak={on:function(e,t){(this._listeners[e]=this._listeners[e]||[]).push(t)},off:function(e,t){if(!e){this._listeners={};return}t?this._listeners[e]=(this._listeners[e]||[]).filter(r=>r!==t):delete this._listeners[e]},trigger:function(e,t){(this._listeners[e]||[]).forEach(r=>{r({type:e,data:t})})}};class xk{constructor(t,r,s){this.source=t.source,this.context=this.source.context,this.name=r,this.uri=s,this.node.then(o=>{o.port.onmessage=function(l){t.trigger(l.data.type,l.data)}})}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>this.context.audioWorklet.addModule(this.uri).then(()=>t(new AudioWorkletNode(this.context,this.name))).catch(r)),this._node)}message(t){this.node.then(r=>r.port.postMessage(t))}}class Pk{constructor(t,r){this.source=t.source,this.context=this.source.context,this.worker=new Worker(r),this.node.then(s=>{s.onaudioprocess=o=>{const l=[];for(var u=0;u{t.trigger(s.data.type,s.data)}}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>{t(this._createNode(1024,this.source.channelCount,this.source.channelCount))}),this._node)}message(t){this.worker.postMessage(t)}_createNode(){return(this.context.createScriptProcessor||this.context.createJavaScriptNode).apply(this.context,arguments)}}class Ck{constructor(t,r){this.source=t.source,this.context=this.source.context,this.worker=new Worker(r),this.worker.onmessage=s=>{t.trigger(s.data.type,s.data)}}message(t){this.worker.postMessage(t)}get node(){return this._node?this._node:(this._node=new Promise((t,r)=>{t(this.context.createGain())}),this._node)}}const kk=!1;function Ek({context:e,source:t,controller:r}){const s=Sk(r);return s.node.then(o=>{o.connect(e.destination),t.connect(o)}),s}function Sk(e){return e.offline?new Ck(e,e.workerUri):"AudioWorkletNode"in window&&kk?new xk(e,"needles-worklet",e.workletUri):new Pk(e,e.workerUri)}class Ok extends Error{constructor(t){super(t),this.name="InvalidStateError"}}const Rk=window.OfflineAudioContext||window.webkitOfflineAudioContext;class Tk{constructor(t){this.state="inactive",this._listeners={},Object.assign(this,Ak),this.workerUri=t.workerUri,this.workletUri=t.workletUri,this.source=t.source,this.weightedSource=t.weightedSource,this.context=this.source.context,this.offline=this.context instanceof Rk,this.workerAdapter.message({type:"initialize",attributes:{sampleRate:this.context.sampleRate,modes:t.modes}})}get workerAdapter(){return this._workerAdapter=this._workerAdapter||new Ek({controller:this,context:this.context,source:this.weightedSource||this.source})}input(t){const s=t.length,o=t.numberOfChannels;this.offline&&this.workerAdapter.message({type:"set",key:"duration",value:t.duration*1e3});for(var l=0;lthis.input(t)))}pause(){this.state==="inactive"&&this._throwInvalidStateErrorFor("pause"),this.state="paused",this.workerAdapter.message({type:"pause"})}resume(){this.state==="inactive"&&this._throwInvalidStateErrorFor("resume"),this.state="recording",this.workerAdapter.message({type:"resume"})}stop(){this.state==="inactive"&&this._throwInvalidStateErrorFor("stop"),this.state="inactive",this.workerAdapter.message({type:"stop"})}reset(){this.workerAdapter.message({type:"reset"})}_startRendering(){return new Promise((t,r)=>{this.context.startRendering(),this.context.addEventListener("complete",s=>{t(s.renderedBuffer)})})}_throwInvalidStateErrorFor(t){throw new Ok(`Failed to execute '${t}' on 'Needles': The Needles's state is '${this.state}'.`)}}function Ik(e){e.modes=e.modes||["momentary","short-term","integrated"];const t=e.source.context,r=bk(t),s=wk(t);return e.source.connect(r),r.connect(s),new Tk({...e,weightedSource:s})}let bu=0;const Mk=1,Lk=.1,Ep=(e,t)=>{var r=Dk(e,t);r.angle-=.78539816;var s=Bk(r.radius,r.angle);return{x:s.x,y:s.y}},$k=(e,t)=>{var r=-1,s=Math.atan2(e,t);return r*s},Dk=(e,t)=>{var r=Math.sqrt(e*e+t*t),s=Math.atan2(t,e);return{radius:r,angle:s}},Bk=(e,t)=>{var r=e*Math.sin(t),s=e*Math.cos(t);return{x:r,y:s}},Nk=(e,t)=>{const r=[];return r.push(new Float32Array(t.frequencyBinCount)),t.getFloatTimeDomainData(r[0]),r.push(new Float32Array(e.frequencyBinCount)),e.getFloatTimeDomainData(r[1]),r},Wk=e=>{const t=(l,u)=>{var c=l;return l>u?c-=Lk*(l-u):c+=Mk*(u-l),c};for(var r=0,s,o=0;o1&&(r=1),r<-1&&(r=-1),bu=t(bu,r),bu},Fk=e=>{var t=e[1]?e[1][0]:0;let r=Ep(t,e[0][0]);const s=[];s.push({x:r.x,y:r.y});for(var o=1;o({stereo:{left:0,right:0,correlation:0,field:[],_analyserL:null,_analyserR:null},tonalBalance:{data:null,_analyser:null},truePeak:{left:-1/0,right:-1/0},loudness:{momentary:-1/0,maxMomentary:-1/0,shortterm:-1/0,integrated:-1/0},_meter:null}),actions:{_reset(){this.stereo.left=0,this.stereo.right=0,this.truePeak.left=-1/0,this.truePeak.right=-1/0,this.loudness.momentary=-1/0,this.loudness.maxMomentary=-1/0,this.loudness.shortterm=-1/0,this.loudness.integrated=-1/0},setSource(e,t){var s,o;this._meter=new Ik({source:e,workerUri:"/assets/needles/needles-worker.js"}),(s=this._meter)==null||s.start(),(o=this._meter)==null||o.pause(),this.stereo.analyserL=t.createAnalyser(),this.stereo.analyserR=t.createAnalyser(),this.tonalBalance.analyser=t.createAnalyser(),this.tonalBalance.analyser.fftSize=256,e.connect(this.tonalBalance.analyser),this.tonalBalance.data=new Uint8Array(this.tonalBalance.analyser.frequencyBinCount);var r=t.createChannelSplitter(2);e.connect(r),r.connect(this.stereo.analyserR,1),r.connect(this.stereo.analyserL,0),this._stereo()},_stereo(){const e=Oc(),t=new Float32Array(this.stereo.analyserR.fftSize),r=new Float32Array(this.stereo.analyserL.fftSize),s=()=>{if(e.path!=="/player/insights"){window.requestAnimationFrame(s);return}this.tonalBalance.analyser.getByteFrequencyData(this.tonalBalance.data),this.stereo.analyserR.getFloatTimeDomainData(t),this.stereo.analyserL.getFloatTimeDomainData(r);let o=0,l=0;for(const u of t)o+=u*u;for(const u of r)l+=u*u;this.stereo.right=Math.sqrt(o/t.length),this.stereo.left=Math.sqrt(l/r.length),this.stereo.data=Nk(this.stereo.analyserL,this.stereo.analyserR),this.stereo.correlation=Wk(this.stereo.data),this.stereo.field=Fk(this.stereo.data),window.requestAnimationFrame(s)};window.requestAnimationFrame(s)},initialise(){const e=Bt();st(()=>e.song,()=>{var t,r;this._reset(),(t=this._meter)==null||t.reset(),(r=this._meter)==null||r.on("dataavailable",s=>this._setLoudness(s.data.mode,s.data.value))}),st(()=>e.playing,()=>{var t,r;e.playing?(t=this._meter)==null||t.resume():(r=this._meter)==null||r.pause()})},_setLoudness(e,t){switch(e){case"momentary":this.loudness.momentary=t,this.loudness.maxMomentary=Math.max(this.loudness.maxMomentary,t);break;case"short-term":this.loudness.shortterm=t;break;case"integrated":this.loudness.integrated=t;break}}}}),Vk=()=>{Bt().initialise(),zt().fetchPlaylists(),Pc().initialise(),Tc().initialise(),yv.restoreTheme()},Hk=async()=>await(await fetch("/api/config/first-time")).json(),G6=async(e,t)=>{await fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:e,secret:t})})},Uk=async()=>{const e=await fetch("/api/spotify/authorise");return e.status==200?(ar.addYesNo("Do you want to authorise reAudioPlayer ONE to access your Spotify account?","You will be redirected to Spotify to authorise reAudioPlayer ONE to access your account.",null,async()=>{window.location.href=await e.text()}),!1):e.status==204},Y6=async()=>await(await fetch("/api/config")).json(),J6=async e=>{await fetch("/api/config",{method:"PUT",body:JSON.stringify(e)})},qk=e=>(ci("data-v-50cefd67"),e=e(),fi(),e),jk={class:"sidebar drop-shadow-xl"},Kk={class:"static"},zk={key:0},Zk=qk(()=>te("br",{class:"hideIfMobile"},null,-1)),Gk={key:0,class:"hideIfMobile"},Yk={class:"playlistList hideIfMobile"},Jk=["src"],Xk={name:"Sidebar",components:{NavEntry:Tn},watch:{minimised(){this.collapseSidebar()}},mounted(){this.collapseSidebar()},computed:{minimised(){return!0}},methods:{hideCover(){this.$emit("expandCover",!1)},collapseSidebar(){document.documentElement.style.setProperty("--w-sidebar",this.minimised?"44px":"200px")}}},Qk=ze({...Xk,setup(e){const t=Bt(),r=zt(),s=Fe(()=>t.song.cover),o=Fe(()=>r.playlists),l=Ur();return(u,c)=>(ne(),ge("div",jk,[te("div",Kk,[me(Tn,{hasChildSites:!0,minimised:u.minimised,href:"/collection/playlists",icon:"library_music",name:"Your Library",parentHref:"/collection"},null,8,["minimised"]),me(Tn,{minimised:u.minimised,href:"/discover",icon:"explore",name:"Discover"},null,8,["minimised"]),se(l).sidebar.news||se(l).sidebar.sports?(ne(),ge("br",zk)):We("",!0),se(l).sidebar.news?(ne(),je(Tn,{key:1,hasChildSites:!0,minimised:u.minimised,href:"/news",icon:"newspaper",name:"News"},null,8,["minimised"])):We("",!0),se(l).sidebar.sports?(ne(),je(Tn,{key:2,hasChildSites:!0,minimised:u.minimised,href:"/sports",icon:"sports_soccer",name:"Sports"},null,8,["minimised"])):We("",!0),Zk,me(Tn,{minimised:u.minimised,class:"hideIfMobile",href:"/playlist/create",icon:"add_circle",name:"Create Playlist"},null,8,["minimised"]),me(Tn,{minimised:u.minimised,href:"/collection/tracks",icon:"favorite",name:"Liked Songs"},null,8,["minimised"])]),o.value.length?(ne(),ge("hr",Gk)):We("",!0),te("div",Yk,[(ne(!0),ge(et,null,fr(o.value.filter(f=>f.type!="special"),(f,h)=>(ne(),je(Tn,{key:h,href:f.href,img:f.cover,minimised:u.minimised,name:f.name},null,8,["href","img","minimised","name"]))),128))]),se(l).player.expandedCover?(ne(),ge("img",{key:1,src:s.value,class:"cover hideIfMobile",onClick:c[0]||(c[0]=f=>se(l).player.expandedCover=!1)},null,8,Jk)):We("",!0)]))}});const Wv=at(Qk,[["__scopeId","data-v-50cefd67"]]);const eE={name:"Body",data(){return{maximised:!1}},methods:{onMaximiseChange(e){this.maximised=e,this.$emit("maximise",e)}}};function tE(e,t,r,s,o,l){const u=Hi("router-view");return ne(),ge("div",{class:Je(["body",{maximised:o.maximised}])},[me(u,{onMaximise:l.onMaximiseChange,class:"view"},null,8,["onMaximise"])],2)}const Fv=at(eE,[["render",tE],["__scopeId","data-v-85e4fc55"]]),nE={class:"html-audio"},rE=["src"],iE=ze({__name:"HtmlAudio",setup(e,{expose:t}){const r=Bt(),s=Tc(),o=Pe(null);let l=!1;Vt(()=>{o.value.src=null,o.value.src=r.stream,o.value.load(),o.value.onloadedmetadata=()=>{o.value&&(r.setDuration(o.value.duration),(l||r.playing)&&(c(),l=!1))}}),st(()=>r.song.id,()=>{o.value.paused||(l=!0),o.value.src=null,o.value.src=r.stream,o.value.load(),r.setPlaying(!o.value.paused)});const u=()=>{l=!0,r.onSongEnded()},c=()=>{try{o.value.play()}catch{}},f=()=>{o.value.pause()},h=y=>{o.value.currentTime=y},p=y=>{let x=y/100;x=Math.min(Math.max(x,0),1),o.value.volume=x},v=y=>{o.value.muted=y};return Vt(()=>{p(r.volume);var y=window.AudioContext,x=new y,k=x.createMediaElementSource(o.value);k.connect(x.destination),s.setSource(k,x)}),t({play:c,pause:f,seek:h,setVolume:p,setMute:v}),(y,x)=>(ne(),ge("div",nE,[te("audio",{ref_key:"audio",ref:o,src:se(r).stream,onEnded:u,onPause:x[0]||(x[0]=k=>se(r).setPlaying(!1)),onPlay:x[1]||(x[1]=k=>se(r).setPlaying(!0)),onTimeupdate:x[2]||(x[2]=k=>{var R;return se(r).setProgress((R=o.value)==null?void 0:R.currentTime)})},null,40,rE)]))}});const sE={props:{modelValue:{type:Number,required:!0},max:{type:Number,default:100}},watch:{modelValue(){this.value=this.modelValue}},computed:{percentage(){return Math.min(1,this.value/this.max)*100}},methods:{seek(e,t=!1){console.log("seek",e);const r=this.$el.getBoundingClientRect(),s=e.clientX-r.left,o=this.$el.offsetWidth;if(this.value=s/o*this.max,!t){this.seeking=!1,this.$emit("change",this.value);try{this.$emit("update:modelValue",this.value)}catch{}}}},data(){return{hover:!1,value:this.modelValue||0,seeking:!1}},mounted(){window.addEventListener("mouseup",e=>{this.seeking&&(this.seeking=!1,this.seek(e))}),window.addEventListener("mousemove",e=>{this.seeking&&this.seek(e,!0)})}},oE={class:"progressBar__track"};function aE(e,t,r,s,o,l){return ne(),ge("div",{ref:"el",class:"progressBar",onMousedown:t[0]||(t[0]=u=>o.seeking=!0),onDragover:t[1]||(t[1]=Dt(()=>{},["stop"])),onClick:t[2]||(t[2]=(...u)=>l.seek&&l.seek(...u)),onMouseenter:t[3]||(t[3]=u=>o.hover=!0),onMouseleave:t[4]||(t[4]=u=>o.hover=!1)},[te("div",oE,[te("div",{class:Je([{hover:o.hover},"progressBar__progress"]),style:Vr({width:`${l.percentage}%`})},null,6)])],544)}const wu=at(sE,[["render",aE],["__scopeId","data-v-bd694edc"]]),lE={class:"dropdown"},uE=["onClick"],cE={class:"material-symbols-rounded"},fE={key:0,class:"material-symbols-rounded"},dE=ze({__name:"IconDropdown",props:{modelValue:{type:String,required:!0},icon:{type:String,required:!0},options:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=Pe(r.options),o=Pe(r.modelValue),l=Pe(!1),u=t;st(r,h=>{o.value=h.modelValue,s.value=h.options},{deep:!0});const c=h=>{o.value=h,u("update:modelValue",h),l.value=!1},f=Pe(null);return st(l,h=>{ur(()=>{if(h){const p=f.value.getBoundingClientRect();window.innerHeight-p.top>p.height?(f.value.style.top="100%",f.value.style.bottom="auto"):(f.value.style.top="auto",f.value.style.bottom="100%"),p.left<0?(f.value.style.left="0",f.value.style.right="auto"):p.right>window.innerWidth&&(f.value.style.left="auto",f.value.style.right="0")}})}),document.addEventListener("click",()=>{l.value=!1}),(h,p)=>(ne(),ge("div",lE,[te("span",{class:"dropdown__selected material-symbols-rounded ms-wght-400",onClick:p[0]||(p[0]=Dt(v=>l.value=!l.value,["stop"]))},Be(e.icon),1),l.value?(ne(),ge("div",{key:0,ref_key:"trueDropdown",ref:f,class:Je([{expanded:l.value},"dropdown__options"])},[(ne(!0),ge(et,null,fr(s.value,v=>(ne(),ge("div",{key:v.value,class:"dropdown__option",onClick:Dt(m=>c(v.value),["stop"])},[te("span",cE,Be(v.icon),1),te("span",null,Be(v.label),1),o.value==v.value?(ne(),ge("span",fE,"check")):We("",!0)],8,uE))),128))],2)):We("",!0)]))}});const Au=at(dE,[["__scopeId","data-v-b20d4971"]]),hE={class:"loader"},pE=ze({__name:"Spinner",setup(e){const t=Pe(null);return Vt(()=>{var l,u;const s=((l=t.value)==null?void 0:l.clientWidth)??0,o=8/80;for(const c of((u=t.value)==null?void 0:u.children)??[])c.style.width=`${s*.8}px`,c.style.height=`${s*.8}px`,c.style.borderWidth=`${s*o}px`,c.style.margin=`${s*o}px`}),(r,s)=>(ne(),ge("span",hE))}});const Sp=at(pE,[["__scopeId","data-v-ed1fd951"]]);var Vv={exports:{}};/*! * wavesurfer.js 6.6.4 (2023-06-10) * https://wavesurfer-js.org * @license BSD-3-Clause - */(function(e,t){(function(s,o){e.exports=o()})(self,()=>(()=>{var r={"./src/drawer.canvasentry.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=v(f("./src/util/style.js")),p=v(f("./src/util/get-id.js"));function v(M){return M&&M.__esModule?M:{default:M}}function m(M){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},m(M)}function b(M,k){if(!(M instanceof k))throw new TypeError("Cannot call a class as a function")}function y(M,k){for(var I=0;I=L;pe--)_=H[2*pe+1]||0,Q=Math.round(_/Y),I.lineTo((pe-F)*P+this.halfPixel,w-Q);I.lineTo((L-F)*P,w-Math.round((H[2*L+1]||0)/Y)),I.closePath(),I.fill()}}},{key:"destroy",value:function(){this.waveCtx=null,this.wave=null,this.progressCtx=null,this.progress=null}},{key:"getImage",value:function(I,H,U){var N=this;if(U==="blob")return new Promise(function(j){N.wave.toBlob(j,I,H)});if(U==="dataURL")return this.wave.toDataURL(I,H)}}]),M}();c.default=O,u.exports=c.default},"./src/drawer.js":(u,c,f)=>{function h(K){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},h(K)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=m(f("./src/util/index.js"));function v(K){if(typeof WeakMap!="function")return null;var q=new WeakMap,G=new WeakMap;return(v=function(x){return x?G:q})(K)}function m(K,q){if(!q&&K&&K.__esModule)return K;if(K===null||h(K)!=="object"&&typeof K!="function")return{default:K};var G=v(q);if(G&&G.has(K))return G.get(K);var F={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in K)if(L!=="default"&&Object.prototype.hasOwnProperty.call(K,L)){var V=x?Object.getOwnPropertyDescriptor(K,L):null;V&&(V.get||V.set)?Object.defineProperty(F,L,V):F[L]=K[L]}return F.default=K,G&&G.set(K,F),F}function b(K,q){if(!(K instanceof q))throw new TypeError("Cannot call a class as a function")}function y(K,q){for(var G=0;G"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(K){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},N(K)}var j=function(K){O(G,K);var q=k(G);function G(F,x){var L;return b(this,G),L=q.call(this),L.container=p.withOrientation(F,x.vertical),L.params=x,L.width=0,L.height=x.height*L.params.pixelRatio,L.lastPos=0,L.wrapper=null,L}return E(G,[{key:"style",value:function(x,L){return p.style(x,L)}},{key:"createWrapper",value:function(){this.wrapper=p.withOrientation(this.container.appendChild(document.createElement("wave")),this.params.vertical),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",cursor:this.params.hideCursor?"none":"auto",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()}},{key:"handleEvent",value:function(x,L){!L&&x.preventDefault();var V=p.withOrientation(x.targetTouches?x.targetTouches[0]:x,this.params.vertical).clientX,P=this.wrapper.getBoundingClientRect(),w=this.width,Y=this.getWidth(),B=this.getProgressPixels(P,V),_;return!this.params.fillParent&&w=w.bottom-P)return}x.params.interact&&x.fireEvent("click",L,x.handleEvent(L))}),this.wrapper.addEventListener("dblclick",function(L){x.params.interact&&x.fireEvent("dblclick",L,x.handleEvent(L))}),this.wrapper.addEventListener("scroll",function(L){return x.fireEvent("scroll",L)})}},{key:"drawPeaks",value:function(x,L,V,P){this.setWidth(L)||this.clearWave(),this.params.barWidth?this.drawBars(x,0,V,P):this.drawWave(x,0,V,P)}},{key:"resetScroll",value:function(){this.wrapper!==null&&(this.wrapper.scrollLeft=0)}},{key:"recenter",value:function(x){var L=this.wrapper.scrollWidth*x;this.recenterOnPosition(L,!0)}},{key:"recenterOnPosition",value:function(x,L){var V=this.wrapper.scrollLeft,P=~~(this.wrapper.clientWidth/2),w=this.wrapper.scrollWidth-this.wrapper.clientWidth,Y=x-P,B=Y-V;if(w!=0){if(!L&&-P<=B&&B=L){if(this.lastPos=V,this.params.scrollParent&&this.params.autoCenter){var P=~~(this.wrapper.scrollWidth*x);this.recenterOnPosition(P,this.params.autoCenterImmediately)}this.updateProgress(V)}}},{key:"destroy",value:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container.domElement&&this.container.removeChild(this.wrapper.domElement),this.wrapper=null)}},{key:"updateCursor",value:function(){}},{key:"updateSize",value:function(){}},{key:"drawBars",value:function(x,L,V,P){}},{key:"drawWave",value:function(x,L,V,P){}},{key:"clearWave",value:function(){}},{key:"updateProgress",value:function(x){}}]),G}(p.Observer);c.default=j,u.exports=c.default},"./src/drawer.multicanvas.js":(u,c,f)=>{function h(F){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},h(F)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=E(f("./src/drawer.js")),v=y(f("./src/util/index.js")),m=E(f("./src/drawer.canvasentry.js"));function b(F){if(typeof WeakMap!="function")return null;var x=new WeakMap,L=new WeakMap;return(b=function(P){return P?L:x})(F)}function y(F,x){if(!x&&F&&F.__esModule)return F;if(F===null||h(F)!=="object"&&typeof F!="function")return{default:F};var L=b(x);if(L&&L.has(F))return L.get(F);var V={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in F)if(w!=="default"&&Object.prototype.hasOwnProperty.call(F,w)){var Y=P?Object.getOwnPropertyDescriptor(F,w):null;Y&&(Y.get||Y.set)?Object.defineProperty(V,w,Y):V[w]=F[w]}return V.default=F,L&&L.set(F,V),V}function E(F){return F&&F.__esModule?F:{default:F}}function R(F,x){if(!(F instanceof x))throw new TypeError("Cannot call a class as a function")}function S(F,x){for(var L=0;L"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(F){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},q(F)}var G=function(F){I(L,F);var x=U(L);function L(V,P){var w;return R(this,L),w=x.call(this,V,P),w.maxCanvasWidth=P.maxCanvasWidth,w.maxCanvasElementWidth=Math.round(P.maxCanvasWidth/P.pixelRatio),w.hasProgressCanvas=P.waveColor!=P.progressColor,w.halfPixel=.5/P.pixelRatio,w.canvases=[],w.progressWave=null,w.EntryClass=m.default,w.canvasContextAttributes=P.drawingContextAttributes,w.overlap=2*Math.ceil(P.pixelRatio/2),w.barRadius=P.barRadius||0,w.vertical=P.vertical,w}return O(L,[{key:"init",value:function(){this.createWrapper(),this.createElements()}},{key:"createElements",value:function(){this.progressWave=v.withOrientation(this.wrapper.appendChild(document.createElement("wave")),this.params.vertical),this.style(this.progressWave,{position:"absolute",zIndex:3,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"}),this.addCanvas(),this.updateCursor()}},{key:"updateCursor",value:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})}},{key:"updateSize",value:function(){for(var P=this,w=Math.round(this.width/this.params.pixelRatio),Y=Math.ceil(w/(this.maxCanvasElementWidth+this.overlap));this.canvases.lengthY;)this.removeCanvas();var B=this.maxCanvasWidth+this.overlap,_=this.canvases.length-1;this.canvases.forEach(function(Q,pe){pe==_&&(B=P.width-P.maxCanvasWidth*_),P.updateDimensions(Q,B,P.height),Q.clearWave()})}},{key:"addCanvas",value:function(){var P=new this.EntryClass;P.canvasContextAttributes=this.canvasContextAttributes,P.hasProgressCanvas=this.hasProgressCanvas,P.halfPixel=this.halfPixel;var w=this.maxCanvasElementWidth*this.canvases.length,Y=v.withOrientation(this.wrapper.appendChild(document.createElement("canvas")),this.params.vertical);if(this.style(Y,{position:"absolute",zIndex:2,left:w+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"}),P.initWave(Y),this.hasProgressCanvas){var B=v.withOrientation(this.progressWave.appendChild(document.createElement("canvas")),this.params.vertical);this.style(B,{position:"absolute",left:w+"px",top:0,bottom:0,height:"100%"}),P.initProgress(B)}this.canvases.push(P)}},{key:"removeCanvas",value:function(){var P=this.canvases[this.canvases.length-1];P.wave.parentElement.removeChild(P.wave.domElement),this.hasProgressCanvas&&P.progress.parentElement.removeChild(P.progress.domElement),P&&(P.destroy(),P=null),this.canvases.pop()}},{key:"updateDimensions",value:function(P,w,Y){var B=Math.round(w/this.params.pixelRatio),_=Math.round(this.width/this.params.pixelRatio);P.updateDimensions(B,_,w,Y),this.style(this.progressWave,{display:"block"})}},{key:"clearWave",value:function(){var P=this;v.frame(function(){P.canvases.forEach(function(w){return w.clearWave()})})()}},{key:"drawBars",value:function(P,w,Y,B){var _=this;return this.prepareDraw(P,w,Y,B,function(Q){var pe=Q.absmax,xe=Q.hasMinVals;Q.height;var _e=Q.offsetY,Oe=Q.halfH,X=Q.peaks,oe=Q.channelIndex;if(Y!==void 0){var de=xe?2:1,Ae=X.length/de,Re=_.params.barWidth*_.params.pixelRatio,T=_.params.barGap===null?Math.max(_.params.pixelRatio,~~(Re/2)):Math.max(_.params.pixelRatio,_.params.barGap*_.params.pixelRatio),D=Re+T,z=Ae/_.width,re=Y,ce=B,le=re;for(le;lebe&&(be=fe),ve+=de}while(ve1&&arguments[1]!==void 0?arguments[1]:this.params.waveColor,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.params.progressColor;P.setFillStyles(w,Y)}},{key:"applyCanvasTransforms",value:function(P){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;P.applyCanvasTransforms(w)}},{key:"getImage",value:function(P,w,Y){if(Y==="blob")return Promise.all(this.canvases.map(function(_){return _.getImage(P,w,Y)}));if(Y==="dataURL"){var B=this.canvases.map(function(_){return _.getImage(P,w,Y)});return B.length>1?B:B[0]}}},{key:"updateProgress",value:function(P){this.style(this.progressWave,{width:P+"px"})}}]),L}(p.default);c.default=G,u.exports=c.default},"./src/mediaelement-webaudio.js":(u,c,f)=>{function h(q){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},h(q)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=v(f("./src/mediaelement.js"));function v(q){return q&&q.__esModule?q:{default:q}}function m(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}function b(q,G){for(var F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(q){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},j(q)}var K=function(q){M(F,q);var G=I(F);function F(x){var L;return m(this,F),L=G.call(this,x),L.params=x,L.sourceMediaElement=null,L}return y(F,[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer(),this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode()}},{key:"_load",value:function(L,V,P){S(j(F.prototype),"_load",this).call(this,L,V,P),this.createMediaElementSource(L)}},{key:"createMediaElementSource",value:function(L){this.sourceMediaElement=this.ac.createMediaElementSource(L),this.sourceMediaElement.connect(this.analyser)}},{key:"play",value:function(L,V){return this.resumeAudioContext(),S(j(F.prototype),"play",this).call(this,L,V)}},{key:"destroy",value:function(){S(j(F.prototype),"destroy",this).call(this),this.destroyWebAudio()}}]),F}(p.default);c.default=K,u.exports=c.default},"./src/mediaelement.js":(u,c,f)=>{function h(x){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},h(x)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=y(f("./src/webaudio.js")),v=b(f("./src/util/index.js"));function m(x){if(typeof WeakMap!="function")return null;var L=new WeakMap,V=new WeakMap;return(m=function(w){return w?V:L})(x)}function b(x,L){if(!L&&x&&x.__esModule)return x;if(x===null||h(x)!=="object"&&typeof x!="function")return{default:x};var V=m(L);if(V&&V.has(x))return V.get(x);var P={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in x)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(x,Y)){var B=w?Object.getOwnPropertyDescriptor(x,Y):null;B&&(B.get||B.set)?Object.defineProperty(P,Y,B):P[Y]=x[Y]}return P.default=x,V&&V.set(x,P),P}function y(x){return x&&x.__esModule?x:{default:x}}function E(x,L){if(!(x instanceof L))throw new TypeError("Cannot call a class as a function")}function R(x,L){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(x){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},G(x)}var F=function(x){H(V,x);var L=N(V);function V(P){var w;return E(this,V),w=L.call(this,P),w.params=P,w.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){},volume:0},w.mediaType=P.mediaType.toLowerCase(),w.elementPosition=P.elementPosition,w.peaks=null,w.playbackRate=1,w.volume=1,w.isMuted=!1,w.buffer=null,w.onPlayEnd=null,w.mediaListeners={},w}return S(V,[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer()}},{key:"_setupMediaListeners",value:function(){var w=this;this.mediaListeners.error=function(){w.fireEvent("error","Error loading media element")},this.mediaListeners.waiting=function(){w.fireEvent("waiting")},this.mediaListeners.canplay=function(){w.fireEvent("canplay")},this.mediaListeners.ended=function(){w.fireEvent("finish")},this.mediaListeners.play=function(){w.fireEvent("play")},this.mediaListeners.pause=function(){w.fireEvent("pause")},this.mediaListeners.seeked=function(Y){w.fireEvent("seek")},this.mediaListeners.volumechange=function(Y){w.isMuted=w.media.muted,w.isMuted?w.volume=0:w.volume=w.media.volume,w.fireEvent("volume")},Object.keys(this.mediaListeners).forEach(function(Y){w.media.removeEventListener(Y,w.mediaListeners[Y]),w.media.addEventListener(Y,w.mediaListeners[Y])})}},{key:"createTimer",value:function(){var w=this,Y=function B(){w.isPaused()||(w.fireEvent("audioprocess",w.getCurrentTime()),v.frame(B)())};this.on("play",Y),this.on("pause",function(){w.fireEvent("audioprocess",w.getCurrentTime())})}},{key:"load",value:function(w,Y,B,_){var Q=document.createElement(this.mediaType);Q.controls=this.params.mediaControls,Q.autoplay=this.params.autoplay||!1,Q.preload=_??"auto",Q.src=w,Q.style.width="100%";var pe=Y.querySelector(this.mediaType);pe&&Y.removeChild(pe),Y.appendChild(Q),this._load(Q,B,_)}},{key:"loadElt",value:function(w,Y){w.controls=this.params.mediaControls,w.autoplay=this.params.autoplay||!1,this._load(w,Y,w.preload)}},{key:"_load",value:function(w,Y,B){if(!(w instanceof HTMLMediaElement)||typeof w.addEventListener>"u")throw new Error("media parameter is not a valid media element");typeof w.load=="function"&&!(Y&&B=="none")&&w.load(),this.media=w,this._setupMediaListeners(),this.peaks=Y,this.onPlayEnd=null,this.buffer=null,this.isMuted=w.muted,this.setPlaybackRate(this.playbackRate),this.setVolume(this.volume)}},{key:"isPaused",value:function(){return!this.media||this.media.paused}},{key:"getDuration",value:function(){if(this.explicitDuration)return this.explicitDuration;var w=(this.buffer||this.media).duration;return w>=1/0&&(w=this.media.seekable.end(0)),w}},{key:"getCurrentTime",value:function(){return this.media&&this.media.currentTime}},{key:"getPlayedPercents",value:function(){return this.getCurrentTime()/this.getDuration()||0}},{key:"getPlaybackRate",value:function(){return this.playbackRate||this.media.playbackRate}},{key:"setPlaybackRate",value:function(w){this.playbackRate=w||1,this.media.playbackRate=this.playbackRate}},{key:"seekTo",value:function(w){w!=null&&!isNaN(w)&&(this.media.currentTime=w),this.clearPlayEnd()}},{key:"play",value:function(w,Y){this.seekTo(w);var B=this.media.play();return Y&&this.setPlayEnd(Y),B}},{key:"pause",value:function(){var w;return this.media&&(w=this.media.pause()),this.clearPlayEnd(),w}},{key:"setPlayEnd",value:function(w){var Y=this;this.clearPlayEnd(),this._onPlayEnd=function(B){B>=w&&(Y.pause(),Y.seekTo(w))},this.on("audioprocess",this._onPlayEnd)}},{key:"clearPlayEnd",value:function(){this._onPlayEnd&&(this.un("audioprocess",this._onPlayEnd),this._onPlayEnd=null)}},{key:"getPeaks",value:function(w,Y,B){return this.buffer?k(G(V.prototype),"getPeaks",this).call(this,w,Y,B):this.peaks||[]}},{key:"setSinkId",value:function(w){return w?this.media.setSinkId?this.media.setSinkId(w):Promise.reject(new Error("setSinkId is not supported in your browser")):Promise.reject(new Error("Invalid deviceId: "+w))}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(w){this.volume=w,this.media.volume!==this.volume&&(this.media.volume=this.volume)}},{key:"setMute",value:function(w){this.isMuted=this.media.muted=w}},{key:"destroy",value:function(){var w=this;this.pause(),this.unAll(),this.destroyed=!0,Object.keys(this.mediaListeners).forEach(function(Y){w.media&&w.media.removeEventListener(Y,w.mediaListeners[Y])}),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}]),V}(p.default);c.default=F,u.exports=c.default},"./src/peakcache.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;function f(E){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(E)}function h(E,R){if(!(E instanceof R))throw new TypeError("Cannot call a class as a function")}function p(E,R){for(var S=0;S{Object.defineProperty(c,"__esModule",{value:!0}),c.default=m;var h=v(f("./src/util/max.js")),p=v(f("./src/util/min.js"));function v(b){return b&&b.__esModule?b:{default:b}}function m(b){var y=(0,h.default)(b),E=(0,p.default)(b);return-E>y?-E:y}u.exports=c.default},"./src/util/clamp.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h,p,v){return Math.min(Math.max(p,h),v)}u.exports=c.default},"./src/util/fetch.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=O;var h=p(f("./src/util/observer.js"));function p(M){return M&&M.__esModule?M:{default:M}}function v(M){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},v(M)}function m(M,k){if(!(M instanceof k))throw new TypeError("Cannot call a class as a function")}function b(M,k){for(var I=0;I{Object.defineProperty(c,"__esModule",{value:!0}),c.default=v;var h=p(f("./src/util/request-animation-frame.js"));function p(m){return m&&m.__esModule?m:{default:m}}function v(m){return function(){for(var b=arguments.length,y=new Array(b),E=0;E{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){return h===void 0&&(h="wavesurfer_"),h+Math.random().toString(32).substring(2)}u.exports=c.default},"./src/util/index.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"Observer",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(c,"absMax",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(c,"clamp",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(c,"debounce",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(c,"fetchFile",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(c,"frame",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(c,"getId",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(c,"ignoreSilenceMode",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(c,"max",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(c,"min",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(c,"preventClick",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(c,"requestAnimationFrame",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(c,"style",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(c,"withOrientation",{enumerable:!0,get:function(){return I.default}});var h=U(f("./src/util/get-id.js")),p=U(f("./src/util/max.js")),v=U(f("./src/util/min.js")),m=U(f("./src/util/absMax.js")),b=U(f("./src/util/observer.js")),y=U(f("./src/util/style.js")),E=U(f("./src/util/request-animation-frame.js")),R=U(f("./src/util/frame.js")),S=U(f("./node_modules/debounce/index.js")),O=U(f("./src/util/prevent-click.js")),M=U(f("./src/util/fetch.js")),k=U(f("./src/util/clamp.js")),I=U(f("./src/util/orientation.js")),H=U(f("./src/util/silence-mode.js"));function U(N){return N&&N.__esModule?N:{default:N}}},"./src/util/max.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){var p=-1/0;return Object.keys(h).forEach(function(v){h[v]>p&&(p=h[v])}),p}u.exports=c.default},"./src/util/min.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){var p=1/0;return Object.keys(h).forEach(function(v){h[v]{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;function f(E){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(E)}function h(E,R){if(!(E instanceof R))throw new TypeError("Cannot call a class as a function")}function p(E,R){for(var S=0;S=0;k--)M[k]==O&&M.splice(k,1);else M.length=0}}},{key:"unAll",value:function(){this.handlers=null}},{key:"once",value:function(S,O){var M=this,k=function I(){for(var H=arguments.length,U=new Array(H),N=0;N1?O-1:0),k=1;k{Object.defineProperty(c,"__esModule",{value:!0}),c.default=v;var f={width:"height",height:"width",overflowX:"overflowY",overflowY:"overflowX",clientWidth:"clientHeight",clientHeight:"clientWidth",clientX:"clientY",clientY:"clientX",scrollWidth:"scrollHeight",scrollLeft:"scrollTop",offsetLeft:"offsetTop",offsetTop:"offsetLeft",offsetHeight:"offsetWidth",offsetWidth:"offsetHeight",left:"top",right:"bottom",top:"left",bottom:"right",borderRightStyle:"borderBottomStyle",borderRightWidth:"borderBottomWidth",borderRightColor:"borderBottomColor"};function h(m,b){return Object.prototype.hasOwnProperty.call(f,m)&&b?f[m]:m}var p=Symbol("isProxy");function v(m,b){return m[p]?m:new Proxy(m,{get:function(E,R,S){if(R===p)return!0;if(R==="domElement")return E;if(R==="style")return v(E.style,b);if(R==="canvas")return v(E.canvas,b);if(R==="getBoundingClientRect")return function(){return v(E.getBoundingClientRect.apply(E,arguments),b)};if(R==="getContext")return function(){return v(E.getContext.apply(E,arguments),b)};var O=E[h(R,b)];return typeof O=="function"?O.bind(E):O},set:function(E,R,S){return E[h(R,b)]=S,!0}})}u.exports=c.default},"./src/util/prevent-click.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=h;function f(p){p.stopPropagation(),document.body.removeEventListener("click",f,!0)}function h(p){document.body.addEventListener("click",f,!0)}u.exports=c.default},"./src/util/request-animation-frame.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var f=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(h,p){return setTimeout(h,1e3/60)}).bind(window);c.default=f,u.exports=c.default},"./src/util/silence-mode.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(){var h=new AudioContext,p=h.createBufferSource();p.buffer=h.createBuffer(1,1,44100),p.connect(h.destination),p.start();var v="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAACAAACcQCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA//////////////////////////////////////////////////////////////////8AAABhTEFNRTMuMTAwA8MAAAAAAAAAABQgJAUHQQAB9AAAAnGMHkkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//sQxAADgnABGiAAQBCqgCRMAAgEAH///////////////7+n/9FTuQsQH//////2NG0jWUGlio5gLQTOtIoeR2WX////X4s9Atb/JRVCbBUpeRUq//////////////////9RUi0f2jn/+xDECgPCjAEQAABN4AAANIAAAAQVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ==",m=document.createElement("div");m.innerHTML='';var b=m.children.item(0);b.src=v,b.preload="auto",b.type="audio/mpeg",b.disableRemotePlayback=!0,b.play(),b.remove(),m.remove()}u.exports=c.default},"./src/util/style.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h,p){return Object.keys(p).forEach(function(v){h.style[v]!==p[v]&&(h.style[v]=p[v])}),h}u.exports=c.default},"./src/wavesurfer.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=S(f("./src/util/index.js")),p=E(f("./src/drawer.multicanvas.js")),v=E(f("./src/webaudio.js")),m=E(f("./src/mediaelement.js")),b=E(f("./src/peakcache.js")),y=E(f("./src/mediaelement-webaudio.js"));function E(P){return P&&P.__esModule?P:{default:P}}function R(P){if(typeof WeakMap!="function")return null;var w=new WeakMap,Y=new WeakMap;return(R=function(_){return _?Y:w})(P)}function S(P,w){if(!w&&P&&P.__esModule)return P;if(P===null||K(P)!=="object"&&typeof P!="function")return{default:P};var Y=R(w);if(Y&&Y.has(P))return Y.get(P);var B={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in P)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(P,Q)){var pe=_?Object.getOwnPropertyDescriptor(P,Q):null;pe&&(pe.get||pe.set)?Object.defineProperty(B,Q,pe):B[Q]=P[Q]}return B.default=P,Y&&Y.set(P,B),B}function O(P,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(w&&w.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),w&&M(P,w)}function M(P,w){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,_){return B.__proto__=_,B},M(P,w)}function k(P){var w=U();return function(){var B=N(P),_;if(w){var Q=N(this).constructor;_=Reflect.construct(B,arguments,Q)}else _=B.apply(this,arguments);return I(this,_)}}function I(P,w){if(w&&(K(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(P)}function H(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(P){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},N(P)}function j(P,w,Y){return w=x(w),w in P?Object.defineProperty(P,w,{value:Y,enumerable:!0,configurable:!0,writable:!0}):P[w]=Y,P}function K(P){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},K(P)}function q(P,w){if(!(P instanceof w))throw new TypeError("Cannot call a class as a function")}function G(P,w){for(var Y=0;Y=this.getDuration()?this.seekTo(1):this.seekTo(_/this.getDuration())}},{key:"play",value:function(_,Q){var pe=this;return this.params.ignoreSilenceMode&&h.ignoreSilenceMode(),this.fireEvent("interaction",function(){return pe.play(_,Q)}),this.backend.play(_,Q)}},{key:"setPlayEnd",value:function(_){this.backend.setPlayEnd(_)}},{key:"pause",value:function(){if(!this.backend.isPaused())return this.backend.pause()}},{key:"playPause",value:function(){return this.backend.isPaused()?this.play():this.pause()}},{key:"isPlaying",value:function(){return!this.backend.isPaused()}},{key:"skipBackward",value:function(_){this.skip(-_||-this.params.skipLength)}},{key:"skipForward",value:function(_){this.skip(_||this.params.skipLength)}},{key:"skip",value:function(_){var Q=this.getDuration()||1,pe=this.getCurrentTime()||0;pe=Math.max(0,Math.min(Q,pe+(_||0))),this.seekAndCenter(pe/Q)}},{key:"seekAndCenter",value:function(_){this.seekTo(_),this.drawer.recenter(_)}},{key:"seekTo",value:function(_){var Q=this;if(typeof _!="number"||!isFinite(_)||_<0||_>1)throw new Error("Error calling wavesurfer.seekTo, parameter must be a number between 0 and 1!");this.fireEvent("interaction",function(){return Q.seekTo(_)});var pe=this.params.backend==="WebAudio",xe=this.backend.isPaused();pe&&!xe&&this.backend.pause();var _e=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(_*this.getDuration()),this.drawer.progress(_),pe&&!xe&&this.backend.play(),this.params.scrollParent=_e,this.fireEvent("seek",_)}},{key:"stop",value:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)}},{key:"setSinkId",value:function(_){return this.backend.setSinkId(_)}},{key:"setVolume",value:function(_){if(this.isMuted===!0){this.savedVolume=_;return}this.backend.setVolume(_),this.fireEvent("volume",_)}},{key:"getVolume",value:function(){return this.backend.getVolume()}},{key:"setPlaybackRate",value:function(_){this.backend.setPlaybackRate(_)}},{key:"getPlaybackRate",value:function(){return this.backend.getPlaybackRate()}},{key:"toggleMute",value:function(){this.setMute(!this.isMuted)}},{key:"setMute",value:function(_){if(_===this.isMuted){this.fireEvent("mute",this.isMuted);return}this.backend.setMute?(this.backend.setMute(_),this.isMuted=_):_?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0,this.fireEvent("volume",0)):(this.backend.setVolume(this.savedVolume),this.isMuted=!1,this.fireEvent("volume",this.savedVolume)),this.fireEvent("mute",this.isMuted)}},{key:"getMute",value:function(){return this.isMuted}},{key:"getFilters",value:function(){return this.backend.filters||[]}},{key:"toggleScroll",value:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()}},{key:"toggleInteraction",value:function(){this.params.interact=!this.params.interact}},{key:"getWaveColor",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.params.splitChannelsOptions.channelColors[_]?this.params.splitChannelsOptions.channelColors[_].waveColor:this.params.waveColor}},{key:"setWaveColor",value:function(_){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.params.splitChannelsOptions.channelColors[Q]?this.params.splitChannelsOptions.channelColors[Q].waveColor=_:this.params.waveColor=_,this.drawBuffer()}},{key:"getProgressColor",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.params.splitChannelsOptions.channelColors[_]?this.params.splitChannelsOptions.channelColors[_].progressColor:this.params.progressColor}},{key:"setProgressColor",value:function(_,Q){this.params.splitChannelsOptions.channelColors[Q]?this.params.splitChannelsOptions.channelColors[Q].progressColor=_:this.params.progressColor=_,this.drawBuffer()}},{key:"getBackgroundColor",value:function(){return this.params.backgroundColor}},{key:"setBackgroundColor",value:function(_){this.params.backgroundColor=_,h.style(this.container,{background:this.params.backgroundColor})}},{key:"getCursorColor",value:function(){return this.params.cursorColor}},{key:"setCursorColor",value:function(_){this.params.cursorColor=_,this.drawer.updateCursor()}},{key:"getHeight",value:function(){return this.params.height}},{key:"setHeight",value:function(_){this.params.height=_,this.drawer.setHeight(_*this.params.pixelRatio),this.drawBuffer()}},{key:"setFilteredChannels",value:function(_){this.params.splitChannelsOptions.filterChannels=_,this.drawBuffer()}},{key:"drawBuffer",value:function(){var _=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),Q=this.drawer.getWidth(),pe=_,xe=0,_e=Math.max(xe+Q,pe);this.params.fillParent&&(!this.params.scrollParent||_(()=>{var r={"./src/drawer.canvasentry.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=v(f("./src/util/style.js")),p=v(f("./src/util/get-id.js"));function v(M){return M&&M.__esModule?M:{default:M}}function m(M){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},m(M)}function y(M,E){if(!(M instanceof E))throw new TypeError("Cannot call a class as a function")}function x(M,E){for(var I=0;I=L;pe--)_=H[2*pe+1]||0,Q=Math.round(_/Y),I.lineTo((pe-F)*P+this.halfPixel,b-Q);I.lineTo((L-F)*P,b-Math.round((H[2*L+1]||0)/Y)),I.closePath(),I.fill()}}},{key:"destroy",value:function(){this.waveCtx=null,this.wave=null,this.progressCtx=null,this.progress=null}},{key:"getImage",value:function(I,H,U){var N=this;if(U==="blob")return new Promise(function(j){N.wave.toBlob(j,I,H)});if(U==="dataURL")return this.wave.toDataURL(I,H)}}]),M}();c.default=S,u.exports=c.default},"./src/drawer.js":(u,c,f)=>{function h(K){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},h(K)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=m(f("./src/util/index.js"));function v(K){if(typeof WeakMap!="function")return null;var q=new WeakMap,G=new WeakMap;return(v=function(A){return A?G:q})(K)}function m(K,q){if(!q&&K&&K.__esModule)return K;if(K===null||h(K)!=="object"&&typeof K!="function")return{default:K};var G=v(q);if(G&&G.has(K))return G.get(K);var F={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in K)if(L!=="default"&&Object.prototype.hasOwnProperty.call(K,L)){var V=A?Object.getOwnPropertyDescriptor(K,L):null;V&&(V.get||V.set)?Object.defineProperty(F,L,V):F[L]=K[L]}return F.default=K,G&&G.set(K,F),F}function y(K,q){if(!(K instanceof q))throw new TypeError("Cannot call a class as a function")}function x(K,q){for(var G=0;G"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(K){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},N(K)}var j=function(K){S(G,K);var q=E(G);function G(F,A){var L;return y(this,G),L=q.call(this),L.container=p.withOrientation(F,A.vertical),L.params=A,L.width=0,L.height=A.height*L.params.pixelRatio,L.lastPos=0,L.wrapper=null,L}return k(G,[{key:"style",value:function(A,L){return p.style(A,L)}},{key:"createWrapper",value:function(){this.wrapper=p.withOrientation(this.container.appendChild(document.createElement("wave")),this.params.vertical),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",cursor:this.params.hideCursor?"none":"auto",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()}},{key:"handleEvent",value:function(A,L){!L&&A.preventDefault();var V=p.withOrientation(A.targetTouches?A.targetTouches[0]:A,this.params.vertical).clientX,P=this.wrapper.getBoundingClientRect(),b=this.width,Y=this.getWidth(),B=this.getProgressPixels(P,V),_;return!this.params.fillParent&&b=b.bottom-P)return}A.params.interact&&A.fireEvent("click",L,A.handleEvent(L))}),this.wrapper.addEventListener("dblclick",function(L){A.params.interact&&A.fireEvent("dblclick",L,A.handleEvent(L))}),this.wrapper.addEventListener("scroll",function(L){return A.fireEvent("scroll",L)})}},{key:"drawPeaks",value:function(A,L,V,P){this.setWidth(L)||this.clearWave(),this.params.barWidth?this.drawBars(A,0,V,P):this.drawWave(A,0,V,P)}},{key:"resetScroll",value:function(){this.wrapper!==null&&(this.wrapper.scrollLeft=0)}},{key:"recenter",value:function(A){var L=this.wrapper.scrollWidth*A;this.recenterOnPosition(L,!0)}},{key:"recenterOnPosition",value:function(A,L){var V=this.wrapper.scrollLeft,P=~~(this.wrapper.clientWidth/2),b=this.wrapper.scrollWidth-this.wrapper.clientWidth,Y=A-P,B=Y-V;if(b!=0){if(!L&&-P<=B&&B=L){if(this.lastPos=V,this.params.scrollParent&&this.params.autoCenter){var P=~~(this.wrapper.scrollWidth*A);this.recenterOnPosition(P,this.params.autoCenterImmediately)}this.updateProgress(V)}}},{key:"destroy",value:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container.domElement&&this.container.removeChild(this.wrapper.domElement),this.wrapper=null)}},{key:"updateCursor",value:function(){}},{key:"updateSize",value:function(){}},{key:"drawBars",value:function(A,L,V,P){}},{key:"drawWave",value:function(A,L,V,P){}},{key:"clearWave",value:function(){}},{key:"updateProgress",value:function(A){}}]),G}(p.Observer);c.default=j,u.exports=c.default},"./src/drawer.multicanvas.js":(u,c,f)=>{function h(F){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},h(F)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=k(f("./src/drawer.js")),v=x(f("./src/util/index.js")),m=k(f("./src/drawer.canvasentry.js"));function y(F){if(typeof WeakMap!="function")return null;var A=new WeakMap,L=new WeakMap;return(y=function(P){return P?L:A})(F)}function x(F,A){if(!A&&F&&F.__esModule)return F;if(F===null||h(F)!=="object"&&typeof F!="function")return{default:F};var L=y(A);if(L&&L.has(F))return L.get(F);var V={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in F)if(b!=="default"&&Object.prototype.hasOwnProperty.call(F,b)){var Y=P?Object.getOwnPropertyDescriptor(F,b):null;Y&&(Y.get||Y.set)?Object.defineProperty(V,b,Y):V[b]=F[b]}return V.default=F,L&&L.set(F,V),V}function k(F){return F&&F.__esModule?F:{default:F}}function R(F,A){if(!(F instanceof A))throw new TypeError("Cannot call a class as a function")}function O(F,A){for(var L=0;L"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(F){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},q(F)}var G=function(F){I(L,F);var A=U(L);function L(V,P){var b;return R(this,L),b=A.call(this,V,P),b.maxCanvasWidth=P.maxCanvasWidth,b.maxCanvasElementWidth=Math.round(P.maxCanvasWidth/P.pixelRatio),b.hasProgressCanvas=P.waveColor!=P.progressColor,b.halfPixel=.5/P.pixelRatio,b.canvases=[],b.progressWave=null,b.EntryClass=m.default,b.canvasContextAttributes=P.drawingContextAttributes,b.overlap=2*Math.ceil(P.pixelRatio/2),b.barRadius=P.barRadius||0,b.vertical=P.vertical,b}return S(L,[{key:"init",value:function(){this.createWrapper(),this.createElements()}},{key:"createElements",value:function(){this.progressWave=v.withOrientation(this.wrapper.appendChild(document.createElement("wave")),this.params.vertical),this.style(this.progressWave,{position:"absolute",zIndex:3,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"}),this.addCanvas(),this.updateCursor()}},{key:"updateCursor",value:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})}},{key:"updateSize",value:function(){for(var P=this,b=Math.round(this.width/this.params.pixelRatio),Y=Math.ceil(b/(this.maxCanvasElementWidth+this.overlap));this.canvases.lengthY;)this.removeCanvas();var B=this.maxCanvasWidth+this.overlap,_=this.canvases.length-1;this.canvases.forEach(function(Q,pe){pe==_&&(B=P.width-P.maxCanvasWidth*_),P.updateDimensions(Q,B,P.height),Q.clearWave()})}},{key:"addCanvas",value:function(){var P=new this.EntryClass;P.canvasContextAttributes=this.canvasContextAttributes,P.hasProgressCanvas=this.hasProgressCanvas,P.halfPixel=this.halfPixel;var b=this.maxCanvasElementWidth*this.canvases.length,Y=v.withOrientation(this.wrapper.appendChild(document.createElement("canvas")),this.params.vertical);if(this.style(Y,{position:"absolute",zIndex:2,left:b+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"}),P.initWave(Y),this.hasProgressCanvas){var B=v.withOrientation(this.progressWave.appendChild(document.createElement("canvas")),this.params.vertical);this.style(B,{position:"absolute",left:b+"px",top:0,bottom:0,height:"100%"}),P.initProgress(B)}this.canvases.push(P)}},{key:"removeCanvas",value:function(){var P=this.canvases[this.canvases.length-1];P.wave.parentElement.removeChild(P.wave.domElement),this.hasProgressCanvas&&P.progress.parentElement.removeChild(P.progress.domElement),P&&(P.destroy(),P=null),this.canvases.pop()}},{key:"updateDimensions",value:function(P,b,Y){var B=Math.round(b/this.params.pixelRatio),_=Math.round(this.width/this.params.pixelRatio);P.updateDimensions(B,_,b,Y),this.style(this.progressWave,{display:"block"})}},{key:"clearWave",value:function(){var P=this;v.frame(function(){P.canvases.forEach(function(b){return b.clearWave()})})()}},{key:"drawBars",value:function(P,b,Y,B){var _=this;return this.prepareDraw(P,b,Y,B,function(Q){var pe=Q.absmax,xe=Q.hasMinVals;Q.height;var _e=Q.offsetY,Oe=Q.halfH,X=Q.peaks,oe=Q.channelIndex;if(Y!==void 0){var de=xe?2:1,Ae=X.length/de,Re=_.params.barWidth*_.params.pixelRatio,T=_.params.barGap===null?Math.max(_.params.pixelRatio,~~(Re/2)):Math.max(_.params.pixelRatio,_.params.barGap*_.params.pixelRatio),D=Re+T,z=Ae/_.width,re=Y,ce=B,le=re;for(le;lebe&&(be=fe),ve+=de}while(ve1&&arguments[1]!==void 0?arguments[1]:this.params.waveColor,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.params.progressColor;P.setFillStyles(b,Y)}},{key:"applyCanvasTransforms",value:function(P){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;P.applyCanvasTransforms(b)}},{key:"getImage",value:function(P,b,Y){if(Y==="blob")return Promise.all(this.canvases.map(function(_){return _.getImage(P,b,Y)}));if(Y==="dataURL"){var B=this.canvases.map(function(_){return _.getImage(P,b,Y)});return B.length>1?B:B[0]}}},{key:"updateProgress",value:function(P){this.style(this.progressWave,{width:P+"px"})}}]),L}(p.default);c.default=G,u.exports=c.default},"./src/mediaelement-webaudio.js":(u,c,f)=>{function h(q){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},h(q)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=v(f("./src/mediaelement.js"));function v(q){return q&&q.__esModule?q:{default:q}}function m(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}function y(q,G){for(var F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(q){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},j(q)}var K=function(q){M(F,q);var G=I(F);function F(A){var L;return m(this,F),L=G.call(this,A),L.params=A,L.sourceMediaElement=null,L}return x(F,[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer(),this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode()}},{key:"_load",value:function(L,V,P){O(j(F.prototype),"_load",this).call(this,L,V,P),this.createMediaElementSource(L)}},{key:"createMediaElementSource",value:function(L){this.sourceMediaElement=this.ac.createMediaElementSource(L),this.sourceMediaElement.connect(this.analyser)}},{key:"play",value:function(L,V){return this.resumeAudioContext(),O(j(F.prototype),"play",this).call(this,L,V)}},{key:"destroy",value:function(){O(j(F.prototype),"destroy",this).call(this),this.destroyWebAudio()}}]),F}(p.default);c.default=K,u.exports=c.default},"./src/mediaelement.js":(u,c,f)=>{function h(A){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},h(A)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p=x(f("./src/webaudio.js")),v=y(f("./src/util/index.js"));function m(A){if(typeof WeakMap!="function")return null;var L=new WeakMap,V=new WeakMap;return(m=function(b){return b?V:L})(A)}function y(A,L){if(!L&&A&&A.__esModule)return A;if(A===null||h(A)!=="object"&&typeof A!="function")return{default:A};var V=m(L);if(V&&V.has(A))return V.get(A);var P={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in A)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(A,Y)){var B=b?Object.getOwnPropertyDescriptor(A,Y):null;B&&(B.get||B.set)?Object.defineProperty(P,Y,B):P[Y]=A[Y]}return P.default=A,V&&V.set(A,P),P}function x(A){return A&&A.__esModule?A:{default:A}}function k(A,L){if(!(A instanceof L))throw new TypeError("Cannot call a class as a function")}function R(A,L){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(A){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},G(A)}var F=function(A){H(V,A);var L=N(V);function V(P){var b;return k(this,V),b=L.call(this,P),b.params=P,b.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){},volume:0},b.mediaType=P.mediaType.toLowerCase(),b.elementPosition=P.elementPosition,b.peaks=null,b.playbackRate=1,b.volume=1,b.isMuted=!1,b.buffer=null,b.onPlayEnd=null,b.mediaListeners={},b}return O(V,[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer()}},{key:"_setupMediaListeners",value:function(){var b=this;this.mediaListeners.error=function(){b.fireEvent("error","Error loading media element")},this.mediaListeners.waiting=function(){b.fireEvent("waiting")},this.mediaListeners.canplay=function(){b.fireEvent("canplay")},this.mediaListeners.ended=function(){b.fireEvent("finish")},this.mediaListeners.play=function(){b.fireEvent("play")},this.mediaListeners.pause=function(){b.fireEvent("pause")},this.mediaListeners.seeked=function(Y){b.fireEvent("seek")},this.mediaListeners.volumechange=function(Y){b.isMuted=b.media.muted,b.isMuted?b.volume=0:b.volume=b.media.volume,b.fireEvent("volume")},Object.keys(this.mediaListeners).forEach(function(Y){b.media.removeEventListener(Y,b.mediaListeners[Y]),b.media.addEventListener(Y,b.mediaListeners[Y])})}},{key:"createTimer",value:function(){var b=this,Y=function B(){b.isPaused()||(b.fireEvent("audioprocess",b.getCurrentTime()),v.frame(B)())};this.on("play",Y),this.on("pause",function(){b.fireEvent("audioprocess",b.getCurrentTime())})}},{key:"load",value:function(b,Y,B,_){var Q=document.createElement(this.mediaType);Q.controls=this.params.mediaControls,Q.autoplay=this.params.autoplay||!1,Q.preload=_??"auto",Q.src=b,Q.style.width="100%";var pe=Y.querySelector(this.mediaType);pe&&Y.removeChild(pe),Y.appendChild(Q),this._load(Q,B,_)}},{key:"loadElt",value:function(b,Y){b.controls=this.params.mediaControls,b.autoplay=this.params.autoplay||!1,this._load(b,Y,b.preload)}},{key:"_load",value:function(b,Y,B){if(!(b instanceof HTMLMediaElement)||typeof b.addEventListener>"u")throw new Error("media parameter is not a valid media element");typeof b.load=="function"&&!(Y&&B=="none")&&b.load(),this.media=b,this._setupMediaListeners(),this.peaks=Y,this.onPlayEnd=null,this.buffer=null,this.isMuted=b.muted,this.setPlaybackRate(this.playbackRate),this.setVolume(this.volume)}},{key:"isPaused",value:function(){return!this.media||this.media.paused}},{key:"getDuration",value:function(){if(this.explicitDuration)return this.explicitDuration;var b=(this.buffer||this.media).duration;return b>=1/0&&(b=this.media.seekable.end(0)),b}},{key:"getCurrentTime",value:function(){return this.media&&this.media.currentTime}},{key:"getPlayedPercents",value:function(){return this.getCurrentTime()/this.getDuration()||0}},{key:"getPlaybackRate",value:function(){return this.playbackRate||this.media.playbackRate}},{key:"setPlaybackRate",value:function(b){this.playbackRate=b||1,this.media.playbackRate=this.playbackRate}},{key:"seekTo",value:function(b){b!=null&&!isNaN(b)&&(this.media.currentTime=b),this.clearPlayEnd()}},{key:"play",value:function(b,Y){this.seekTo(b);var B=this.media.play();return Y&&this.setPlayEnd(Y),B}},{key:"pause",value:function(){var b;return this.media&&(b=this.media.pause()),this.clearPlayEnd(),b}},{key:"setPlayEnd",value:function(b){var Y=this;this.clearPlayEnd(),this._onPlayEnd=function(B){B>=b&&(Y.pause(),Y.seekTo(b))},this.on("audioprocess",this._onPlayEnd)}},{key:"clearPlayEnd",value:function(){this._onPlayEnd&&(this.un("audioprocess",this._onPlayEnd),this._onPlayEnd=null)}},{key:"getPeaks",value:function(b,Y,B){return this.buffer?E(G(V.prototype),"getPeaks",this).call(this,b,Y,B):this.peaks||[]}},{key:"setSinkId",value:function(b){return b?this.media.setSinkId?this.media.setSinkId(b):Promise.reject(new Error("setSinkId is not supported in your browser")):Promise.reject(new Error("Invalid deviceId: "+b))}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(b){this.volume=b,this.media.volume!==this.volume&&(this.media.volume=this.volume)}},{key:"setMute",value:function(b){this.isMuted=this.media.muted=b}},{key:"destroy",value:function(){var b=this;this.pause(),this.unAll(),this.destroyed=!0,Object.keys(this.mediaListeners).forEach(function(Y){b.media&&b.media.removeEventListener(Y,b.mediaListeners[Y])}),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}]),V}(p.default);c.default=F,u.exports=c.default},"./src/peakcache.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;function f(k){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(k)}function h(k,R){if(!(k instanceof R))throw new TypeError("Cannot call a class as a function")}function p(k,R){for(var O=0;O{Object.defineProperty(c,"__esModule",{value:!0}),c.default=m;var h=v(f("./src/util/max.js")),p=v(f("./src/util/min.js"));function v(y){return y&&y.__esModule?y:{default:y}}function m(y){var x=(0,h.default)(y),k=(0,p.default)(y);return-k>x?-k:x}u.exports=c.default},"./src/util/clamp.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h,p,v){return Math.min(Math.max(p,h),v)}u.exports=c.default},"./src/util/fetch.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=S;var h=p(f("./src/util/observer.js"));function p(M){return M&&M.__esModule?M:{default:M}}function v(M){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},v(M)}function m(M,E){if(!(M instanceof E))throw new TypeError("Cannot call a class as a function")}function y(M,E){for(var I=0;I{Object.defineProperty(c,"__esModule",{value:!0}),c.default=v;var h=p(f("./src/util/request-animation-frame.js"));function p(m){return m&&m.__esModule?m:{default:m}}function v(m){return function(){for(var y=arguments.length,x=new Array(y),k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){return h===void 0&&(h="wavesurfer_"),h+Math.random().toString(32).substring(2)}u.exports=c.default},"./src/util/index.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"Observer",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(c,"absMax",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(c,"clamp",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(c,"debounce",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(c,"fetchFile",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(c,"frame",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(c,"getId",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(c,"ignoreSilenceMode",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(c,"max",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(c,"min",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(c,"preventClick",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(c,"requestAnimationFrame",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(c,"style",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(c,"withOrientation",{enumerable:!0,get:function(){return I.default}});var h=U(f("./src/util/get-id.js")),p=U(f("./src/util/max.js")),v=U(f("./src/util/min.js")),m=U(f("./src/util/absMax.js")),y=U(f("./src/util/observer.js")),x=U(f("./src/util/style.js")),k=U(f("./src/util/request-animation-frame.js")),R=U(f("./src/util/frame.js")),O=U(f("./node_modules/debounce/index.js")),S=U(f("./src/util/prevent-click.js")),M=U(f("./src/util/fetch.js")),E=U(f("./src/util/clamp.js")),I=U(f("./src/util/orientation.js")),H=U(f("./src/util/silence-mode.js"));function U(N){return N&&N.__esModule?N:{default:N}}},"./src/util/max.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){var p=-1/0;return Object.keys(h).forEach(function(v){h[v]>p&&(p=h[v])}),p}u.exports=c.default},"./src/util/min.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h){var p=1/0;return Object.keys(h).forEach(function(v){h[v]{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;function f(k){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(k)}function h(k,R){if(!(k instanceof R))throw new TypeError("Cannot call a class as a function")}function p(k,R){for(var O=0;O=0;E--)M[E]==S&&M.splice(E,1);else M.length=0}}},{key:"unAll",value:function(){this.handlers=null}},{key:"once",value:function(O,S){var M=this,E=function I(){for(var H=arguments.length,U=new Array(H),N=0;N1?S-1:0),E=1;E{Object.defineProperty(c,"__esModule",{value:!0}),c.default=v;var f={width:"height",height:"width",overflowX:"overflowY",overflowY:"overflowX",clientWidth:"clientHeight",clientHeight:"clientWidth",clientX:"clientY",clientY:"clientX",scrollWidth:"scrollHeight",scrollLeft:"scrollTop",offsetLeft:"offsetTop",offsetTop:"offsetLeft",offsetHeight:"offsetWidth",offsetWidth:"offsetHeight",left:"top",right:"bottom",top:"left",bottom:"right",borderRightStyle:"borderBottomStyle",borderRightWidth:"borderBottomWidth",borderRightColor:"borderBottomColor"};function h(m,y){return Object.prototype.hasOwnProperty.call(f,m)&&y?f[m]:m}var p=Symbol("isProxy");function v(m,y){return m[p]?m:new Proxy(m,{get:function(k,R,O){if(R===p)return!0;if(R==="domElement")return k;if(R==="style")return v(k.style,y);if(R==="canvas")return v(k.canvas,y);if(R==="getBoundingClientRect")return function(){return v(k.getBoundingClientRect.apply(k,arguments),y)};if(R==="getContext")return function(){return v(k.getContext.apply(k,arguments),y)};var S=k[h(R,y)];return typeof S=="function"?S.bind(k):S},set:function(k,R,O){return k[h(R,y)]=O,!0}})}u.exports=c.default},"./src/util/prevent-click.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=h;function f(p){p.stopPropagation(),document.body.removeEventListener("click",f,!0)}function h(p){document.body.addEventListener("click",f,!0)}u.exports=c.default},"./src/util/request-animation-frame.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var f=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(h,p){return setTimeout(h,1e3/60)}).bind(window);c.default=f,u.exports=c.default},"./src/util/silence-mode.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(){var h=new AudioContext,p=h.createBufferSource();p.buffer=h.createBuffer(1,1,44100),p.connect(h.destination),p.start();var v="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAACAAACcQCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA//////////////////////////////////////////////////////////////////8AAABhTEFNRTMuMTAwA8MAAAAAAAAAABQgJAUHQQAB9AAAAnGMHkkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//sQxAADgnABGiAAQBCqgCRMAAgEAH///////////////7+n/9FTuQsQH//////2NG0jWUGlio5gLQTOtIoeR2WX////X4s9Atb/JRVCbBUpeRUq//////////////////9RUi0f2jn/+xDECgPCjAEQAABN4AAANIAAAAQVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ==",m=document.createElement("div");m.innerHTML='';var y=m.children.item(0);y.src=v,y.preload="auto",y.type="audio/mpeg",y.disableRemotePlayback=!0,y.play(),y.remove(),m.remove()}u.exports=c.default},"./src/util/style.js":(u,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=f;function f(h,p){return Object.keys(p).forEach(function(v){h.style[v]!==p[v]&&(h.style[v]=p[v])}),h}u.exports=c.default},"./src/wavesurfer.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=O(f("./src/util/index.js")),p=k(f("./src/drawer.multicanvas.js")),v=k(f("./src/webaudio.js")),m=k(f("./src/mediaelement.js")),y=k(f("./src/peakcache.js")),x=k(f("./src/mediaelement-webaudio.js"));function k(P){return P&&P.__esModule?P:{default:P}}function R(P){if(typeof WeakMap!="function")return null;var b=new WeakMap,Y=new WeakMap;return(R=function(_){return _?Y:b})(P)}function O(P,b){if(!b&&P&&P.__esModule)return P;if(P===null||K(P)!=="object"&&typeof P!="function")return{default:P};var Y=R(b);if(Y&&Y.has(P))return Y.get(P);var B={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in P)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(P,Q)){var pe=_?Object.getOwnPropertyDescriptor(P,Q):null;pe&&(pe.get||pe.set)?Object.defineProperty(B,Q,pe):B[Q]=P[Q]}return B.default=P,Y&&Y.set(P,B),B}function S(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),b&&M(P,b)}function M(P,b){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,_){return B.__proto__=_,B},M(P,b)}function E(P){var b=U();return function(){var B=N(P),_;if(b){var Q=N(this).constructor;_=Reflect.construct(B,arguments,Q)}else _=B.apply(this,arguments);return I(this,_)}}function I(P,b){if(b&&(K(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(P)}function H(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(P){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},N(P)}function j(P,b,Y){return b=A(b),b in P?Object.defineProperty(P,b,{value:Y,enumerable:!0,configurable:!0,writable:!0}):P[b]=Y,P}function K(P){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},K(P)}function q(P,b){if(!(P instanceof b))throw new TypeError("Cannot call a class as a function")}function G(P,b){for(var Y=0;Y=this.getDuration()?this.seekTo(1):this.seekTo(_/this.getDuration())}},{key:"play",value:function(_,Q){var pe=this;return this.params.ignoreSilenceMode&&h.ignoreSilenceMode(),this.fireEvent("interaction",function(){return pe.play(_,Q)}),this.backend.play(_,Q)}},{key:"setPlayEnd",value:function(_){this.backend.setPlayEnd(_)}},{key:"pause",value:function(){if(!this.backend.isPaused())return this.backend.pause()}},{key:"playPause",value:function(){return this.backend.isPaused()?this.play():this.pause()}},{key:"isPlaying",value:function(){return!this.backend.isPaused()}},{key:"skipBackward",value:function(_){this.skip(-_||-this.params.skipLength)}},{key:"skipForward",value:function(_){this.skip(_||this.params.skipLength)}},{key:"skip",value:function(_){var Q=this.getDuration()||1,pe=this.getCurrentTime()||0;pe=Math.max(0,Math.min(Q,pe+(_||0))),this.seekAndCenter(pe/Q)}},{key:"seekAndCenter",value:function(_){this.seekTo(_),this.drawer.recenter(_)}},{key:"seekTo",value:function(_){var Q=this;if(typeof _!="number"||!isFinite(_)||_<0||_>1)throw new Error("Error calling wavesurfer.seekTo, parameter must be a number between 0 and 1!");this.fireEvent("interaction",function(){return Q.seekTo(_)});var pe=this.params.backend==="WebAudio",xe=this.backend.isPaused();pe&&!xe&&this.backend.pause();var _e=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(_*this.getDuration()),this.drawer.progress(_),pe&&!xe&&this.backend.play(),this.params.scrollParent=_e,this.fireEvent("seek",_)}},{key:"stop",value:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)}},{key:"setSinkId",value:function(_){return this.backend.setSinkId(_)}},{key:"setVolume",value:function(_){if(this.isMuted===!0){this.savedVolume=_;return}this.backend.setVolume(_),this.fireEvent("volume",_)}},{key:"getVolume",value:function(){return this.backend.getVolume()}},{key:"setPlaybackRate",value:function(_){this.backend.setPlaybackRate(_)}},{key:"getPlaybackRate",value:function(){return this.backend.getPlaybackRate()}},{key:"toggleMute",value:function(){this.setMute(!this.isMuted)}},{key:"setMute",value:function(_){if(_===this.isMuted){this.fireEvent("mute",this.isMuted);return}this.backend.setMute?(this.backend.setMute(_),this.isMuted=_):_?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0,this.fireEvent("volume",0)):(this.backend.setVolume(this.savedVolume),this.isMuted=!1,this.fireEvent("volume",this.savedVolume)),this.fireEvent("mute",this.isMuted)}},{key:"getMute",value:function(){return this.isMuted}},{key:"getFilters",value:function(){return this.backend.filters||[]}},{key:"toggleScroll",value:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()}},{key:"toggleInteraction",value:function(){this.params.interact=!this.params.interact}},{key:"getWaveColor",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.params.splitChannelsOptions.channelColors[_]?this.params.splitChannelsOptions.channelColors[_].waveColor:this.params.waveColor}},{key:"setWaveColor",value:function(_){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.params.splitChannelsOptions.channelColors[Q]?this.params.splitChannelsOptions.channelColors[Q].waveColor=_:this.params.waveColor=_,this.drawBuffer()}},{key:"getProgressColor",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.params.splitChannelsOptions.channelColors[_]?this.params.splitChannelsOptions.channelColors[_].progressColor:this.params.progressColor}},{key:"setProgressColor",value:function(_,Q){this.params.splitChannelsOptions.channelColors[Q]?this.params.splitChannelsOptions.channelColors[Q].progressColor=_:this.params.progressColor=_,this.drawBuffer()}},{key:"getBackgroundColor",value:function(){return this.params.backgroundColor}},{key:"setBackgroundColor",value:function(_){this.params.backgroundColor=_,h.style(this.container,{background:this.params.backgroundColor})}},{key:"getCursorColor",value:function(){return this.params.cursorColor}},{key:"setCursorColor",value:function(_){this.params.cursorColor=_,this.drawer.updateCursor()}},{key:"getHeight",value:function(){return this.params.height}},{key:"setHeight",value:function(_){this.params.height=_,this.drawer.setHeight(_*this.params.pixelRatio),this.drawBuffer()}},{key:"setFilteredChannels",value:function(_){this.params.splitChannelsOptions.filterChannels=_,this.drawBuffer()}},{key:"drawBuffer",value:function(){var _=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),Q=this.drawer.getWidth(),pe=_,xe=0,_e=Math.max(xe+Q,pe);this.params.fillParent&&(!this.params.scrollParent||_{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=v(f("./src/util/index.js"));function p(x){if(typeof WeakMap!="function")return null;var L=new WeakMap,V=new WeakMap;return(p=function(w){return w?V:L})(x)}function v(x,L){if(!L&&x&&x.__esModule)return x;if(x===null||m(x)!=="object"&&typeof x!="function")return{default:x};var V=p(L);if(V&&V.has(x))return V.get(x);var P={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in x)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(x,Y)){var B=w?Object.getOwnPropertyDescriptor(x,Y):null;B&&(B.get||B.set)?Object.defineProperty(P,Y,B):P[Y]=x[Y]}return P.default=x,V&&V.set(x,P),P}function m(x){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},m(x)}function b(x,L){if(!(x instanceof L))throw new TypeError("Cannot call a class as a function")}function y(x,L){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H(x){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},H(x)}function U(x,L,V){return L=N(L),L in x?Object.defineProperty(x,L,{value:V,enumerable:!0,configurable:!0,writable:!0}):x[L]=V,x}function N(x){var L=j(x,"string");return m(L)==="symbol"?L:String(L)}function j(x,L){if(m(x)!=="object"||x===null)return x;var V=x[Symbol.toPrimitive];if(V!==void 0){var P=V.call(x,L||"default");if(m(P)!=="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(x)}var K="playing",q="paused",G="finished",F=function(x){R(V,x);var L=O(V);function V(P){var w,Y,B;return b(this,V),B=L.call(this),U(k(B),"audioContext",null),U(k(B),"stateBehaviors",(w={},U(w,K,{init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var Q=this.getDuration();return this.getCurrentTime()/Q||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}}),U(w,q,{init:function(){},getPlayedPercents:function(){var Q=this.getDuration();return this.getCurrentTime()/Q||0},getCurrentTime:function(){return this.startPosition}}),U(w,G,{init:function(){this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}}),w)),B.params=P,B.ac=P.audioContext||(B.supportsWebAudio()?B.getAudioContext():{}),B.lastPlay=B.ac.currentTime,B.startPosition=0,B.scheduledPause=null,B.states=(Y={},U(Y,K,Object.create(B.stateBehaviors[K])),U(Y,q,Object.create(B.stateBehaviors[q])),U(Y,G,Object.create(B.stateBehaviors[G])),Y),B.buffer=null,B.filters=[],B.gainNode=null,B.mergedPeaks=null,B.offlineAc=null,B.peaks=null,B.playbackRate=1,B.analyser=null,B.scriptNode=null,B.source=null,B.splitPeaks=[],B.state=null,B.explicitDuration=P.duration,B.sinkStreamDestination=null,B.sinkAudioElement=null,B.destroyed=!1,B}return E(V,[{key:"supportsWebAudio",value:function(){return!!(window.AudioContext||window.webkitAudioContext)}},{key:"getAudioContext",value:function(){return window.WaveSurferAudioContext||(window.WaveSurferAudioContext=new(window.AudioContext||window.webkitAudioContext)),window.WaveSurferAudioContext}},{key:"getOfflineAudioContext",value:function(w){return window.WaveSurferOfflineAudioContext||(window.WaveSurferOfflineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,w)),window.WaveSurferOfflineAudioContext}},{key:"init",value:function(){this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(q),this.setPlaybackRate(this.params.audioRate),this.setLength(0)}},{key:"disconnectFilters",value:function(){this.filters&&(this.filters.forEach(function(w){w&&w.disconnect()}),this.filters=null,this.analyser.connect(this.gainNode))}},{key:"setState",value:function(w){this.state!==this.states[w]&&(this.state=this.states[w],this.state.init.call(this))}},{key:"setFilter",value:function(){for(var w=arguments.length,Y=new Array(w),B=0;B=w.getDuration()&&w.state!==w.states[G]?(w.setState(G),w.fireEvent("pause")):_>=w.scheduledPause&&w.state!==w.states[q]?w.pause():w.state===w.states[K]&&(w.fireEvent("audioprocess",_),h.frame(B)())};Y()}},{key:"createAnalyserNode",value:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)}},{key:"createVolumeNode",value:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)}},{key:"setSinkId",value:function(w){return w?(this.sinkAudioElement||(this.sinkAudioElement=new window.Audio,this.sinkAudioElement.autoplay=!0),this.sinkAudioElement.setSinkId?(this.sinkStreamDestination||(this.sinkStreamDestination=this.ac.createMediaStreamDestination()),this.gainNode.disconnect(),this.gainNode.connect(this.sinkStreamDestination),this.sinkAudioElement.srcObject=this.sinkStreamDestination.stream,this.sinkAudioElement.setSinkId(w)):Promise.reject(new Error("setSinkId is not supported in your browser"))):Promise.reject(new Error("Invalid deviceId: "+w))}},{key:"setVolume",value:function(w){this.gainNode.gain.setValueAtTime(w,this.ac.currentTime)}},{key:"getVolume",value:function(){return this.gainNode.gain.value}},{key:"decodeArrayBuffer",value:function(w,Y,B){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac&&this.ac.sampleRate?this.ac.sampleRate:44100)),"webkitAudioContext"in window?this.offlineAc.decodeAudioData(w,function(_){return Y(_)},B):this.offlineAc.decodeAudioData(w).then(function(_){return Y(_)}).catch(function(_){return B(_)})}},{key:"setPeaks",value:function(w,Y){Y!=null&&(this.explicitDuration=Y),this.peaks=w}},{key:"setLength",value:function(w){if(!(this.mergedPeaks&&w==2*this.mergedPeaks.length-1+2)){this.splitPeaks=[],this.mergedPeaks=[];var Y=this.buffer?this.buffer.numberOfChannels:1,B;for(B=0;BT&&(T=z),zthis.mergedPeaks[2*oe])&&(this.mergedPeaks[2*oe]=T),(_e==0||Re=this.getDuration()&&(w=0)),Y==null&&(Y=this.getDuration()),this.startPosition=w,this.lastPlay=this.ac.currentTime,this.state===this.states[G]&&this.setState(q),{start:w,end:Y}}},{key:"getPlayedTime",value:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate}},{key:"play",value:function(w,Y){if(this.buffer){this.createSource();var B=this.seekTo(w,Y);w=B.start,Y=B.end,this.scheduledPause=Y,this.source.start(0,w),this.resumeAudioContext(),this.setState(K),this.fireEvent("play")}}},{key:"pause",value:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime();try{this.source&&this.source.stop(0)}catch{}this.setState(q),this.fireEvent("pause")}},{key:"getCurrentTime",value:function(){return this.state.getCurrentTime.call(this)}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"setPlaybackRate",value:function(w){this.playbackRate=w||1,this.source&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.ac.currentTime)}},{key:"setPlayEnd",value:function(w){this.scheduledPause=w}}]),V}(h.Observer);c.default=F,u.exports=c.default},"./node_modules/debounce/index.js":u=>{function c(f,h,p){var v,m,b,y,E;h==null&&(h=100);function R(){var O=Date.now()-y;O=0?v=setTimeout(R,h-O):(v=null,p||(E=f.apply(b,m),b=m=null))}var S=function(){b=this,m=arguments,y=Date.now();var O=p&&!v;return v||(v=setTimeout(R,h)),O&&(E=f.apply(b,m),b=m=null),E};return S.clear=function(){v&&(clearTimeout(v),v=null)},S.flush=function(){v&&(E=f.apply(b,m),b=m=null,clearTimeout(v),v=null)},S}c.debounce=c,u.exports=c}},s={};function o(u){var c=s[u];if(c!==void 0)return c.exports;var f=s[u]={exports:{}};return r[u](f,f.exports,o),f.exports}var l=o("./src/wavesurfer.js");return l})())})(Vv);var mE=Vv.exports;const vE=l3(mE),Op=ze({__name:"WaveAudio",setup(e,{expose:t}){const r=Pe(null),s=new Audio;Vt(()=>{const b=window.getCurrentTheme(),y=li["fg-base"][b],E=li["fg-secondary"][b];r.value=vE.create({container:"#waveform",waveColor:y,progressColor:E,cursorWidth:0,barWidth:1,barGap:3,responsive:!0,backend:"MediaElement"}),r.value.on("play",()=>{o.setPlaying(!0)}),r.value.on("pause",()=>{o.setPlaying(!1)}),r.value.on("audioprocess",()=>{o.setProgress(r.value.getCurrentTime())}),r.value.on("finish",()=>{u=!0,o.onSongEnded()}),r.value.on("waveform-ready",()=>{r.value&&(o.setDuration(r.value.getDuration()),(u||o.playing)&&(c(),u=!1))});var R=r.value.backend.ac,S=R.createMediaElementSource(s);S.connect(R.destination),l.setSource(S,R)});const o=Bt(),l=Tc();let u=!1;Vt(()=>{s.src=o.stream,r.value.load(s)}),st(()=>o.song.id,()=>{r.value.isPlaying()&&(u=!0),s.src=o.stream,r.value.load(s),o.setPlaying(!1)});const c=()=>{try{r.value.play()}catch{}},f=()=>{r.value.pause()},h=b=>{r.value.seekTo(b/o.durationSeconds)},p=b=>{let y=b/100;y=Math.min(Math.max(y,0),1),r.value.setVolume(y)},v=b=>{r.value.setMute(b)};return Vt(()=>{p(o.volume)}),t({play:c,pause:f,seek:h,setVolume:p,setMute:v}),(b,y)=>(ne(),ge("div",{id:"waveform",onAudioprocess:y[0]||(y[0]=E=>se(o).setProgress(E))},null,32))}});const gE=ze({__name:"AmbientBackground",props:{src:{type:String,required:!0},direction:{type:String,required:!1,default:"to bottom"},placeholder:{type:String,required:!1}},setup(e){const t=Ur(),r=e,s=Pe(null),o=async(l=void 0)=>{if(!s.value)return;const u=l===void 0?cv(r.src):l,c=await Pa(u,r.placeholder);try{await j4(s.value,c,r.direction)}catch(f){if(!(f instanceof Error)||!f.message.includes("Error loading image"))throw f;await o(null)}};return st(()=>r.src,()=>ur(o)),Vt(o),(l,u)=>e.src!=null&&se(t).ambient?(ne(),ge("div",{key:0,ref_key:"ambientGradient",ref:s,class:"ambient-gradient absolute inset-0 pointer-events-none"},null,512)):Ne("",!0)}}),yE=e=>(ci("data-v-07466254"),e=e(),fi(),e),_E={class:"player relative"},bE={key:1,class:"desktop mx-4"},wE={class:"song-info"},AE={class:"title-artist"},xE={class:"controls"},PE={class:"top relative"},CE=["disabled"],kE=["disabled"],EE=["disabled"],SE={class:"bottom"},OE={class:"display"},RE={class:"text-xs text-muted text-left"},TE={class:"aux relative"},IE={key:0,class:"cursor-pointer material-symbols-rounded ms-fill"},ME={key:2,class:"mobile mx-4"},LE={class:"artist-title overflow-hidden"},$E={class:"full"},DE={class:"rest"},BE={class:"song-info"},NE=yE(()=>te("div",{class:"rest"},null,-1)),WE={class:"title-artist mb-4"},FE={class:"controls mb-4"},VE={class:"top"},HE={class:"bottom"},UE={class:"flex flex-row justify-between"},qE={class:"text-xs text-muted text-right"},jE={class:"text-xs text-muted text-left"},KE={class:"aux flex flex-row justify-between"},zE={class:"flex flex-row"},ZE=ze({__name:"Player",setup(e){const t=Bt(),r=Ur(),s=Pe(null),o=Pe(""),l=Ve(()=>t.sharedPlayer.connections.map(v=>({value:v.id,label:v.friendlyName})));st(o,v=>{var m;v===((m=t.sharedPlayer.me)==null?void 0:m.id)?(t.sharedPlayer.makeMePlayer(),t.setPlaying(!1)):u(v)}),st(()=>t.sharedPlayer.connections,v=>{var m;(!o.value||!v.find(b=>b.id===o.value))&&(o.value=(m=t.sharedPlayer.me)==null?void 0:m.id)});const u=v=>{const m=t.sharedPlayer.connections.find(b=>b.id===v);m&&(t.sharedPlayer.setPlayer(m),s.value=t.sharedPlayer)};Vt(()=>{var v;o.value=(v=t.sharedPlayer.me)==null?void 0:v.id}),st(s,()=>{t.setPlayer(s.value)}),Vt(()=>{t.setPlayer(s.value)});const c=Pe(!1),f=Ve(()=>{var v;return o.value===((v=t.sharedPlayer.me)==null?void 0:v.id)}),h=Ve(()=>r.player.type==="web"&&f.value),p=Ve(()=>r.player.type==="web/wave"&&f.value);return(v,m)=>{const b=Hi("router-link");return ne(),ge("div",_E,[me(gE,{src:se(t).song.cover,direction:"to top right"},null,8,["src"]),h.value?(ne(),je(iE,{key:0,ref_key:"playable",ref:s},null,512)):Ne("",!0),se(qu)?(ne(),ge("div",ME,[se(qu)&&!f.value?(ne(),ge("audio",{key:0,id:"hijackVolume",onVolumechange:m[14]||(m[14]=y=>se(t).setVolume(y.target.volume*100))},null,32)):Ne("",!0),Ks(te("div",{class:"small",onClick:m[18]||(m[18]=y=>c.value=!0)},[me(oi,{src:se(t).song.cover,class:"cover rounded-md"},null,8,["src"]),te("div",LE,[me(ir,{text:se(t).song.title,class:"text-sm"},null,8,["text"]),me(ir,{text:se(t).song.artist,class:"text-xs text-muted"},null,8,["text"])]),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[15]||(m[15]=y=>o.value=y),class:Je([{"on-this-device":f.value},"material-symbols-rounded"]),options:l.value,icon:"devices",onClick:m[16]||(m[16]=Dt(()=>{},["stop"]))},null,8,["modelValue","class","options"]),te("span",{class:"cursor-pointer material-symbols-rounded ms-fill text-xl",onClick:m[17]||(m[17]=Dt((...y)=>se(t).playPause&&se(t).playPause(...y),["stop"]))},We(se(t).playing?"pause":"play_arrow"),1)],512),[[wa,!c.value]]),Ks(te("div",$E,[te("div",null,[te("span",{class:"material-symbols-rounded ms-wght-500",onClick:m[19]||(m[19]=y=>c.value=!1)}," expand_more ")]),me(b,{class:"my-auto linkOnHover",to:"/player"},{default:Ot(()=>[me(oi,{src:se(t).song.cover,class:"cover rounded-md"},null,8,["src"])]),_:1}),te("div",DE,[te("div",BE,[NE,te("div",WE,[me(b,{to:`/track/${se(rp)(se(t).song.id)}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.title,class:"text-2xl font-bold"},null,8,["text"])]),_:1},8,["to"]),me(b,{to:`/search/${se(t).song.artist}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.artist,class:"text-muted text-xs"},null,8,["text"])]),_:1},8,["to"])])]),te("div",FE,[te("div",VE,[te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[20]||(m[20]=(...y)=>se(t).toggleShuffle&&se(t).toggleShuffle(...y))},We(se(t).shuffleIcon),1),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill",onClick:m[21]||(m[21]=(...y)=>se(t).previous&&se(t).previous(...y))}," skip_previous "),te("span",{class:"cursor-pointer material-symbols-rounded ms-fill text-4xl",onClick:m[22]||(m[22]=(...y)=>se(t).playPause&&se(t).playPause(...y))},We(se(t).playing?"pause_circle":"play_circle"),1),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill",onClick:m[23]||(m[23]=(...y)=>se(t).next&&se(t).next(...y))}," skip_next "),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[24]||(m[24]=(...y)=>se(t).toggleRepeat&&se(t).toggleRepeat(...y))},We(se(t).repeat),1)]),te("div",HE,[p.value?(ne(),je(Op,{key:0,ref_key:"playable",ref:s},null,512)):(ne(),je(wu,{key:1,modelValue:se(t).progressPercent,"onUpdate:modelValue":m[25]||(m[25]=y=>se(t).progressPercent=y),max:"1000",onChange:m[26]||(m[26]=y=>se(t).seekPercent(y/10))},null,8,["modelValue"])),te("div",UE,[te("span",qE,We(se(t).displayProgress),1),te("span",jE,We(se(t).song.duration),1)])])]),te("div",KE,[te("div",zE,[te("span",{class:Je([{"ms-fill":se(t).song.favourite},"favourite text-xl cursor-pointer material-symbols-rounded ms-wght-300"]),onClick:m[27]||(m[27]=(...y)=>se(t).toggleFavourite&&se(t).toggleFavourite(...y))}," favorite ",2),se(r).player.pictureInPicture?(ne(),ge(et,{key:0},[se(Un)=="loading"?(ne(),je(Sp,{key:0})):(ne(),ge("span",{key:1,class:"favourite material-icons-round cursor-pointer text-xl ml-2",onClick:m[28]||(m[28]=(...y)=>se(oa)&&se(oa)(...y))},We(se(Un)=="ready"?"picture_in_picture_alt":"error"),1))],64)):Ne("",!0)]),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[29]||(m[29]=y=>o.value=y),class:Je({"on-this-device":f.value}),options:l.value,icon:"devices"},null,8,["modelValue","class","options"])])])],512),[[wa,c.value]])])):(ne(),ge("div",bE,[te("div",wE,[me(b,{class:"linkOnHover",to:"/player"},{default:Ot(()=>[se(t).loaded?(ne(),je(oi,{key:0,src:se(t).song.cover,class:"cover rounded-md",name:se(t).song.title},null,8,["src","name"])):Ne("",!0)]),_:1}),se(t).loaded?(ne(),ge(et,{key:0},[te("div",AE,[me(b,{to:`/track/${se(rp)(se(t).song.id)}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.title,class:""},null,8,["text"])]),_:1},8,["to"]),me(Lv,{artist:se(t).song.artist,class:"text-muted text-xs"},null,8,["artist"])]),te("span",{class:Je([{"ms-fill":se(t).song.favourite},"favourite text-xl cursor-pointer material-symbols-rounded ms-wght-300"]),onClick:m[0]||(m[0]=(...y)=>se(t).toggleFavourite&&se(t).toggleFavourite(...y))}," favorite ",2),se(r).player.pictureInPicture?(ne(),ge(et,{key:0},[se(Un)=="loading"?(ne(),je(Sp,{key:0})):(ne(),ge("span",{key:1,class:"favourite material-icons-round cursor-pointer text-xl",onClick:m[1]||(m[1]=(...y)=>se(oa)&&se(oa)(...y))},We(se(Un)=="ready"?"picture_in_picture_alt":"error"),1))],64)):Ne("",!0)],64)):(ne(),je(b,{key:1,to:"/collection/playlists"},{default:Ot(()=>[me(ir,{class:"text-xs text-muted",text:"Nothing playing yet..."})]),_:1}))]),te("div",xE,[te("div",PE,[te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[2]||(m[2]=(...y)=>se(t).toggleShuffle&&se(t).toggleShuffle(...y))},We(se(t).shuffleIcon),1),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"icon cursor-pointer material-symbols-rounded ms-fill"]),disabled:!se(t).loaded,onClick:m[3]||(m[3]=(...y)=>se(t).previous&&se(t).previous(...y))}," skip_previous ",10,CE),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"cursor-pointer material-symbols-rounded ms-fill text-4xl"]),disabled:!se(t).loaded,onClick:m[4]||(m[4]=(...y)=>se(t).playPause&&se(t).playPause(...y))},We(se(t).playing?"pause_circle":"play_circle"),11,kE),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"icon cursor-pointer material-symbols-rounded ms-fill"]),disabled:!se(t).loaded,onClick:m[5]||(m[5]=(...y)=>se(t).next&&se(t).next(...y))}," skip_next ",10,EE),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[6]||(m[6]=(...y)=>se(t).toggleRepeat&&se(t).toggleRepeat(...y))},We(se(t).repeat),1)]),te("div",SE,[te("div",OE,[te("span",{class:"text-xs text-muted text-right cursor-pointer",onClick:m[7]||(m[7]=y=>se(r).player.type=se(r).player.type==="web"?"web/wave":"web")},We(se(t).displayProgress),1),p.value?(ne(),je(Op,{key:0,ref_key:"playable",ref:s},null,512)):(ne(),je(wu,{key:1,modelValue:se(t).progressPercent,"onUpdate:modelValue":m[8]||(m[8]=y=>se(t).progressPercent=y),max:"1000",onChange:m[9]||(m[9]=y=>se(t).seekPercent(y/10))},null,8,["modelValue"])),te("span",RE,We(se(t).displayDuration),1)])])]),te("div",TE,[me(b,{to:"/sing-along",class:"icon select-none"},{default:Ot(()=>[se(t).loaded&&se(t).hasLyrics?(ne(),ge("span",IE," mic ")):Ne("",!0)]),_:1}),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[10]||(m[10]=y=>o.value=y),class:Je([{"on-this-device":f.value},"select-none"]),options:l.value,icon:"devices"},null,8,["modelValue","class","options"]),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill select-none",onClick:m[11]||(m[11]=(...y)=>se(t).toggleMute&&se(t).toggleMute(...y))},We(se(t).muteIcon),1),me(wu,{modelValue:se(t).volume,"onUpdate:modelValue":m[12]||(m[12]=y=>se(t).volume=y),max:"100",onChange:m[13]||(m[13]=y=>se(t).setVolume(y))},null,8,["modelValue"])])]))])}}});const Hv=at(ZE,[["__scopeId","data-v-07466254"]]),GE=1,YE=1,JE=1,X6=e=>({type:"song",version:GE,song:e}),XE=async e=>{const t={type:"playlist",version:YE};if(e.type==="special")return null;if(e.type==="classic"){const r=Object.assign({},e);return delete r.queue,delete r.cursor,{...t,playlist:r}}if(e.type==="smart"){const r=await K5(e.id);return{...t,playlist:{name:e.name,description:e.description,cover:e.cover,type:e.type,definition:r,plays:e.plays,id:e.id,href:e.href}}}},Q6=async e=>({type:"collection",version:JE,collection:await Promise.all(e.filter(t=>t.type!="special").map(XE))}),eO=(e,t="my")=>{var r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),s=document.createElement("a");s.setAttribute("href",r),s.setAttribute("download",`${t}.one.${e.type}`),s.click()},QE=async e=>{if(!e.length)return;const t=Oc();if(!t.path.startsWith("/playlist/")){ar.addError("No playlist selected","Please select open the playlist you want to add songs to",3e3);return}const r=zt().getPlaylistById(t.params.id);if(r.type!=="classic"){ar.addError("Can't add songs to this playlist","You can only add songs to classic playlists",3e3);return}await hv(r.id,e.map(s=>s.song)),ar.addSuccess(`Added ${e.length} songs to ${r.name}`,null,3e3)},eS=async e=>{const t=e.playlist,r=await xc(t.type,t.name,t.description,t.cover);if(t.type==="smart"){await z5(r,t.definition);return}await hv(r,t.songs)},tS=async e=>{if(e.length){for(const t of e)await eS(t);ar.addSuccess(`Added ${e.length} playlists`,null,3e3),zt().fetchPlaylists()}},nS=e=>{const t=e.filter(o=>o.type==="song");QE(t);const r=e.filter(o=>o.type==="playlist"),s=e.filter(o=>o.type==="collection");for(const o of s)r.push(...o.collection);tS(r)},rS=["onDrop","onDragleave"],iS=ze({__name:"DropImport",setup(e){const t=Pe(!1),r=Oc(),s=zt(),o=Ve(()=>r.path.startsWith("/playlist/")),l=Ve(()=>{if(!o.value)return null;const p=r.params.id;return s.getPlaylistById(p)}),u=Ve(()=>l.value?l.value.type==="classic":!1),c=async p=>{const v=[];for(let y=0;yJSON.parse(y));nS(b)},f=p=>{if(t.value=!1,!u)return;const v=p.dataTransfer.files;v.length&&c(v)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(t.value=!1)};return(p,v)=>(ne(),ge("div",{class:Je(["dropzone",{drophover:t.value}]),onDrop:Dt(f,["prevent"]),onDragenter:v[0]||(v[0]=Dt(()=>{},["prevent"])),onDragover:v[1]||(v[1]=Dt(m=>t.value=!0,["prevent"])),onDragleave:Dt(h,["prevent"])},[Ui(p.$slots,"default",{},void 0,!0)],42,rS))}});const sS=at(iS,[["__scopeId","data-v-c5853362"]]),oS=["src"],aS={id:"appRoot",class:"appRoot"},lS={class:"interface"},uS=te("div",{id:"popup-target"},null,-1),cS=te("div",{id:"dropdown-target"},null,-1),fS=te("div",{id:"autocomplete-target"},null,-1),dS={name:"App",components:{Sidebar:Wv,Body:Fv,Player:Hv},async mounted(){Ur(),Vk(),Nv(),await Hk()&&this.$router.push("/welcome"),await Uk()},data(){return{maximised:!1}},watch:{$route(e){document.title=e.meta.title||"reAudioPlayer One"}}},hS=ze({...dS,setup(e){$v();const t=Bt(),r=Pe(null);st(()=>t.song.cover,()=>{console.log("cover changed"),s()});const s=async()=>{r.value=await Pa(t.song.cover,t.song.title,200)},o=async()=>{r.value=await Cc(t.song.title,200)};s();const l=Ve(()=>window.getCurrentThemeProperty("coverAsBackground"));return Vt(()=>{window.addEventListener("keydown",u=>{u.code==="Space"&&document.activeElement===document.body&&(u.preventDefault(),t.playPause())})}),(u,c)=>(ne(),ge(et,null,[te("div",{class:Je([{hidden:!l.value},"bgImageWrapper"])},[te("div",{style:Vr({backgroundImage:`url(${r.value})`}),class:"bgImage"},[te("img",{src:r.value,class:"hidden",onError:o},null,40,oS)],4)],2),me(sS,null,{default:Ot(()=>[te("div",aS,[se(t).ready?(ne(),ge(et,{key:0},[me(jC),te("div",lS,[u.maximised?Ne("",!0):(ne(),je(Wv,{key:0})),me(Fv,{onMaximise:c[0]||(c[0]=f=>u.maximised=f)})]),me(Hv),u.maximised?Ne("",!0):(ne(),je(c4,{key:0}))],64)):(ne(),je(tk,{key:1}))])]),_:1}),uS,cS,fS,me(gk)],64))}});function ca(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ca=function(t){return typeof t}:ca=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function pS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rp(e,t){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:{},s,o,l,u=function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),v=1;v1){var h=c.find(function(v){return v.isIntersecting});h&&(f=h)}if(o.callback){var p=f.isIntersecting&&f.intersectionRatio>=o.threshold;if(p===o.oldResult)return;o.oldResult=p,o.callback(p,f)}},this.options.intersection),s.context.$nextTick(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function qv(e,t,r){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new wS(e,s,r);e._vue_visibilityState=o}}function AS(e,t,r){var s=t.value,o=t.oldValue;if(!Uv(s,o)){var l=e._vue_visibilityState;if(!s){jv(e);return}l?l.createObserver(s,r):qv(e,{value:s},r)}}function jv(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var fa={bind:qv,update:AS,unbind:jv};function xS(e){e.directive("observe-visibility",fa)}var PS={version:"1.0.0",install:xS},Ea=null;typeof window<"u"?Ea=window.Vue:typeof global<"u"&&(Ea=global.Vue);Ea&&Ea.use(PS);var Kv=function(t,r){var s,o=r.arg;if(!o){console.error("参数有误");return}var l=r.value,u=_t(o)?o.value:(s=r.instance)===null||s===void 0?void 0:s.$refs[o];if(!u){console.error("没有找到 ".concat(o," 对应的实例"));return}if(typeof u.addReference!="function"){console.error("".concat(o," 对应的实例不是 VContextmenu"));return}t.$contextmenuKey=o,u.addReference(t,l)},zv=function(t,r){var s,o=t.$contextmenuKey;if(o){var l=(s=r.instance)===null||s===void 0?void 0:s.$refs[o];l==null||l.removeReference(t)}},CS=function(t,r){zv(t,r),Kv(t,r)},kS={mounted:Kv,updated:CS,beforeUnmount:zv},yt={contextmenu:"v-contextmenu",contextmenuIcon:"v-contextmenu-icon",contextmenuInner:"v-contextmenu-inner",contextmenuDivider:"v-contextmenu-divider",contextmenuItem:"v-contextmenu-item",contextmenuItemHover:"v-contextmenu-item--hover",contextmenuItemDisabled:"v-contextmenu-item--disabled",contextmenuGroup:"v-contextmenu-group",contextmenuGroupTitle:"v-contextmenu-group__title",contextmenuGroupMenus:"v-contextmenu-group__menus",contextmenuSubmenu:"v-contextmenu-submenu",contextmenuSubmenuTitle:"v-contextmenu-submenu__title",contextmenuSubmenuMenus:"v-contextmenu-submenu__menus",contextmenuSubmenuMenusTop:"v-contextmenu-submenu__menus--top",contextmenuSubmenuMenusRight:"v-contextmenu-submenu__menus--right",contextmenuSubmenuMenusBottom:"v-contextmenu-submenu__menus--bottom",contextmenuSubmenuMenusLeft:"v-contextmenu-submenu__menus--left",contextmenuSubmenuArrow:"v-contextmenu-submenu__arrow"};function ES(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Nr(e)}var SS={trigger:["contextmenu"]},Ip=ze({name:"VContextmenu",props:{modelValue:{type:Boolean,default:!1},autoAjustPlacement:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},teleport:{type:[String,Object],default:function(){return"body"}}},emits:["show","hide","update:modelValue"],setup:function(t,r){var s=r.emit,o=Pe(null),l=Pe(t.modelValue||!1),u=function(M){l.value=M,s("update:modelValue",M)},c=Pe({top:0,left:0}),f=Ve(function(){return{top:"".concat(c.value.top,"px"),left:"".concat(c.value.left,"px")}}),h=Pe(null),p=function(M,k){var I=M instanceof Event?k:M,H=(I==null?void 0:I.autoAjustPlacement)||t.autoAjustPlacement,U={top:(I==null?void 0:I.top)||0,left:(I==null?void 0:I.left)||0};if(M instanceof Event){var N,j;M.preventDefault(),U.top=(N=I==null?void 0:I.top)!==null&&N!==void 0?N:M.pageY,U.left=(j=I==null?void 0:I.left)!==null&&j!==void 0?j:M.pageX}u(!0),ur(function(){if(H){var K=o.value;if(!K)return;var q=K.clientWidth,G=K.clientHeight;if(G+U.top>=window.innerHeight+window.scrollY){var F=U.top-G;F>window.scrollY&&(U.top=F)}if(q+U.left>=window.innerWidth+window.scrollX){var x=U.left-q;x>window.scrollX&&(U.left=x)}}c.value=U,s("show")})},v=function(){h.value=null,u(!1),s("hide")},m=Qi(new Map),b=Pe(),y=Ve(function(){return b.value&&m.get(b.value)}),E=function(M,k){var I=function(){return k!=null&&k.trigger?Array.isArray(k.trigger)?k.trigger:[k.trigger]:SS.trigger}(),H=function(N){t.disabled||(b.value=M,p(N,{}))};I.forEach(function(U){M.addEventListener(U,H)}),m.set(M,{triggers:I,handler:H})},R=function(M){var k=m.get(M);k&&(k.triggers.forEach(function(I){M.removeEventListener(I,k.handler)}),m.delete(M))},S=function(M){if(!(!M.target||!o.value||!b.value)){var k=o.value.contains(M.target)||y.value&&y.value.triggers.includes("click")&&b.value.contains(M.target);k||u(!1)}};return st(l,function(O){O?document.addEventListener("click",S):document.removeEventListener("click",S)}),Va(function(){document.removeEventListener("click",S)}),Rr("visible",l),Rr("autoAjustPlacement",t.autoAjustPlacement),Rr("show",p),Rr("hide",v),{visible:l,style:f,currentReferenceOptions:y,currentOptions:h,contextmenuRef:o,addReference:E,removeReference:R,toggle:u,show:p,hide:v}},methods:{renderContent:function(){var t,r;return Ks(me("div",{class:yt.contextmenu,ref:"contextmenuRef",style:this.style},[me("ul",{class:yt.contextmenuInner},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r,{triggerOptions:"currentReferenceOptions",options:"currentOptions"})])]),[[wa,"visible"]])}},render:function(){var t;return this.visible?this.teleport?me(eo,{to:this.teleport},ES(t=this.renderContent())?t:{default:function(){return[t]}}):this.renderContent():null}});function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mp=ze({name:"VContextmenuItem",props:{disabled:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0}},emits:["click","mouseenter","mouseleave"],setup:function(t,r){var s=r.emit,o=nn("hide"),l=Pe(!1),u=Ve(function(){var p;return p={},fn(p,yt.contextmenuItem,!0),fn(p,yt.contextmenuItemDisabled,t.disabled),fn(p,yt.contextmenuItemHover,l.value),p}),c=function(v){t.disabled||(s("click",v),t.hideOnClick&&(o==null||o()))},f=function(v){t.disabled||(l.value=!0,s("mouseenter",v))},h=function(v){t.disabled||(l.value=!1,s("mouseleave",v))};return{classes:u,handleClick:c,handleMouseenter:f,handleMouseleave:h}},render:function(){var t,r;return me("li",{class:this.classes,onClick:this.handleClick,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r)])}}),Lp=ze({name:"VContextmenuDivider",render:function(){return me("li",{class:yt.contextmenuDivider},null)}}),OS=ze({name:"VContextmenuIcon",props:{name:{type:String,required:!0}},render:function(){return me("i",{class:[yt.contextmenuIcon,"".concat(yt.contextmenuIcon,"-").concat(this.name)]},null)}}),$p=ze({name:"VContextmenuSubmenu",props:{title:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["mouseenter","mouseleave"],setup:function(t,r){var s=r.emit,o=Pe(null),l=nn("autoAjustPlacement"),u=Pe(["top","right"]),c=Pe(!1),f=function(b){t.disabled||(c.value=!0,s("mouseenter",b),ur(function(){var y=[];if(l){var E=b.target,R=E.getBoundingClientRect();if(!o.value)return;var S=o.value.clientWidth,O=o.value.clientHeight;R.right+S>=window.innerWidth?y.push("left"):y.push("right"),R.bottom+O>=window.innerHeight?y.push("bottom"):y.push("top")}u.value=y}))},h=function(b){t.disabled||(c.value=!1,s("mouseleave",b))},p=Ve(function(){var m;return m={},fn(m,yt.contextmenuItem,!0),fn(m,yt.contextmenuSubmenuTitle,!0),fn(m,yt.contextmenuItemHover,c.value),fn(m,yt.contextmenuItemDisabled,t.disabled),m}),v=Ve(function(){var m;return m={},fn(m,yt.contextmenu,!0),fn(m,yt.contextmenuSubmenuMenus,!0),fn(m,yt.contextmenuSubmenuMenusTop,u.value.includes("top")),fn(m,yt.contextmenuSubmenuMenusRight,u.value.includes("right")),fn(m,yt.contextmenuSubmenuMenusBottom,u.value.includes("bottom")),fn(m,yt.contextmenuSubmenuMenusLeft,u.value.includes("left")),m});return{hover:c,submenuRef:o,titleClasses:p,menusClasses:v,handleMouseenter:f,handleMouseleave:h}},render:function(){var t,r,s,o;return me("li",{class:yt.contextmenuSubmenu,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[me("div",{class:this.titleClasses},[((t=(r=this.$slots).title)===null||t===void 0?void 0:t.call(r))||this.title,me("span",{class:yt.contextmenuSubmenuArrow},[me(OS,{name:"right-arrow"},null)])]),this.hover?me("div",{ref:"submenuRef",class:this.menusClasses},[me("ul",{class:yt.contextmenuInner},[(s=(o=this.$slots).default)===null||s===void 0?void 0:s.call(o)])]):null])}}),Dp=ze({name:"VContextmenuGroup",props:{title:{type:String,default:void 0},maxWidth:{type:[Number,String],default:void 0}},setup:function(t){var r=Ve(function(){if(t.maxWidth)return{"max-width":typeof t.maxWidth=="number"?"".concat(t.maxWidth,"px"):t.maxWidth,"overflow-x":"auto"}});return{style:r}},methods:{renderTitle:function(){var t,r,s=((t=(r=this.$slots).title)===null||t===void 0?void 0:t.call(r))||this.title;return s?me("div",{class:yt.contextmenuGroupTitle},[s]):null}},render:function(){var t,r;return me("li",{class:yt.contextmenuGroup},[this.renderTitle(),me("ul",{style:this.style,class:yt.contextmenuGroupMenus},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r)])])}}),RS="3.0.0",TS=function(t){t.directive("contextmenu",kS),t.component(Ip.name,Ip),t.component(Mp.name,Mp),t.component(Lp.name,Lp),t.component($p.name,$p),t.component(Dp.name,Dp)},IS={install:TS,version:RS};const Ga=p5(hS);Ga.directive("observe-visibility",{beforeMount:(e,t,r)=>{r.context=t.instance,fa.bind(e,t,r)},updated:fa.update,unmounted:fa.unbind});Ga.use(IS);Ga.use(Mi);Ga.use(b5()).mount("#app");export{D6 as $,rp as A,Oc as B,Dv as C,Ve as D,Vt as E,et as F,st as G,NC as H,kp as I,Dt as J,SC as K,Ov as L,ir as M,Lv as N,Je as O,sC as P,ur as Q,Ac as R,Z6 as S,WC as T,u3 as U,N6 as V,K5 as W,Au as X,Gu as Y,z5 as Z,at as _,te as a,LS as a$,VA as a0,ym as a1,Zt as a2,Vp as a3,GS as a4,Fs as a5,Wi as a6,jS as a7,eo as a8,qi as a9,r6 as aA,vs as aB,$S as aC,Hp as aD,Hr as aE,qp as aF,ac as aG,Ax as aH,gc as aI,es as aJ,lx as aK,h5 as aL,g6 as aM,S6 as aN,nn as aO,Tx as aP,sm as aQ,Ir as aR,Fi as aS,_t as aT,v6 as aU,va as aV,Nr as aW,$a as aX,u6 as aY,c6 as aZ,xx as a_,Vm as aa,C6 as ab,_c as ac,US as ad,Cn as ae,Mr as af,pn as ag,Ra as ah,lr as ai,w6 as aj,p5 as ak,vx as al,f6 as am,mx as an,E6 as ao,JS as ap,p6 as aq,FS as ar,ZS as as,e5 as at,e6 as au,t6 as av,i6 as aw,n6 as ax,QS as ay,A6 as az,Ua as b,qS as b$,UA as b0,KA as b1,Va as b2,zA as b3,qA as b4,JA as b5,YA as b6,GA as b7,j2 as b8,ZA as b9,gA as bA,WS as bB,h6 as bC,NS as bD,a6 as bE,x6 as bF,P6 as bG,l6 as bH,Rx as bI,o6 as bJ,gm as bK,Gm as bL,bc as bM,Ym as bN,l5 as bO,Fu as bP,wa as bQ,Ix as bR,HS as bS,KS as bT,NA as bU,zS as bV,d6 as bW,s6 as bX,Ks as bY,k6 as bZ,y6 as b_,uc as ba,lc as bb,Rr as bc,am as bd,fm as be,Qi as bf,im as bg,m6 as bh,Gh as bi,YS as bj,QA as bk,b6 as bl,zs as bm,Rh as bn,kA as bo,Vi as bp,rm as bq,BS as br,hA as bs,Ox as bt,_6 as bu,DS as bv,aa as bw,XS as bx,tt as by,VS as bz,ge as c,z6 as c0,As as c1,l3 as c2,V6 as c3,Rv as c4,O6 as c5,dv as c6,XE as c7,eO as c8,Bt as c9,L6 as cA,G6 as cB,Hk as cC,Tc as cD,Iv as cE,kC as cF,K6 as cG,X6 as cH,Sp as cI,qu as cJ,H6 as cK,W6 as cL,U5 as ca,gE as cb,R6 as cc,M6 as cd,U6 as ce,I6 as cf,bC as cg,q6 as ch,e4 as ci,j6 as cj,T6 as ck,wc as cl,Y6 as cm,N3 as cn,J6 as co,yv as cp,Ur as cq,ar as cr,cv as cs,Mv as ct,Q6 as cu,hv as cv,B6 as cw,F6 as cx,nS as cy,Pc as cz,Ne as d,Hi as e,je as f,me as g,oi as h,ze as i,fr as j,zt as k,$6 as l,ci as m,fi as n,ne as o,xa as p,Pe as q,Ui as r,i3 as s,We as t,se as u,Uk as v,Ot as w,Tv as x,xc as y,Vr as z}; + - `)),pe=null)}switch(this.params.backend==="WebAudio"&&_ instanceof HTMLMediaElement&&(_=_.src),this.params.backend){case"WebAudio":return this.loadBuffer(_,Q,xe);case"MediaElement":case"MediaElementWebAudio":return this.loadMediaElement(_,Q,pe,xe)}}},{key:"loadBuffer",value:function(_,Q,pe){var xe=this,_e=function(X){return X&&xe.tmpEvents.push(xe.once("ready",X)),xe.getArrayBuffer(_,function(oe){return xe.loadArrayBuffer(oe)})};if(Q)this.backend.setPeaks(Q,pe),this.drawBuffer(),this.fireEvent("waveform-ready"),this.tmpEvents.push(this.once("interaction",_e));else return _e()}},{key:"loadMediaElement",value:function(_,Q,pe,xe){var _e=this,Oe=_;if(typeof _=="string")this.backend.load(Oe,this.mediaContainer,Q,pe);else{var X=_;this.backend.loadElt(X,Q),Oe=X.src}this.tmpEvents.push(this.backend.once("canplay",function(){_e.backend.destroyed||(_e.drawBuffer(),_e.isReady=!0,_e.fireEvent("ready"))}),this.backend.once("error",function(oe){return _e.fireEvent("error",oe)})),Q&&(this.backend.setPeaks(Q,xe),this.drawBuffer(),this.fireEvent("waveform-ready")),(!Q||this.params.forceDecode)&&this.backend.supportsWebAudio()&&this.getArrayBuffer(Oe,function(oe){_e.decodeArrayBuffer(oe,function(de){_e.backend.buffer=de,_e.backend.setPeaks(null),_e.drawBuffer(),_e.fireEvent("waveform-ready")})})}},{key:"decodeArrayBuffer",value:function(_,Q){var pe=this;this.isDestroyed||(this.arraybuffer=_,this.backend.decodeArrayBuffer(_,function(xe){!pe.isDestroyed&&pe.arraybuffer==_&&(Q(xe),pe.arraybuffer=null)},function(){return pe.fireEvent("error","Error decoding audiobuffer")}))}},{key:"getArrayBuffer",value:function(_,Q){var pe=this,xe=Object.assign({url:_,responseType:"arraybuffer"},this.params.xhr),_e=h.fetchFile(xe);return this.currentRequest=_e,this.tmpEvents.push(_e.on("progress",function(Oe){pe.onProgress(Oe)}),_e.on("success",function(Oe){Q(Oe),pe.currentRequest=null}),_e.on("error",function(Oe){pe.fireEvent("error",Oe),pe.currentRequest=null})),_e}},{key:"onProgress",value:function(_){var Q;_.lengthComputable?Q=_.loaded/_.total:Q=_.loaded/(_.loaded+1e6),this.fireEvent("loading",Math.round(Q*100),_.target)}},{key:"exportPCM",value:function(_,Q,pe,xe,_e){_=_||1024,xe=xe||0,Q=Q||1e4,pe=pe||!1;var Oe=this.backend.getPeaks(_,xe,_e),X=[].map.call(Oe,function(oe){return Math.round(oe*Q)/Q});return new Promise(function(oe,de){if(!pe){var Ae=new Blob([JSON.stringify(X)],{type:"application/json;charset=utf-8"}),Re=URL.createObjectURL(Ae);window.open(Re),URL.revokeObjectURL(Re)}oe(X)})}},{key:"exportImage",value:function(_,Q,pe){return _||(_="image/png"),Q||(Q=1),pe||(pe="dataURL"),this.drawer.getImage(_,Q,pe)}},{key:"cancelAjax",value:function(){this.currentRequest&&this.currentRequest.controller&&(this.currentRequest._reader&&this.currentRequest._reader.cancel().catch(function(_){}),this.currentRequest.controller.abort(),this.currentRequest=null)}},{key:"clearTmpEvents",value:function(){this.tmpEvents.forEach(function(_){return _.un()})}},{key:"empty",value:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.isReady=!1,this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)}},{key:"destroy",value:function(){this.destroyAllPlugins(),this.fireEvent("destroy"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),this.params.responsive!==!1&&(window.removeEventListener("resize",this._onResize,!0),window.removeEventListener("orientationchange",this._onResize,!0)),this.backend&&(this.backend.destroy(),this.backend=null),this.drawer&&this.drawer.destroy(),this.isDestroyed=!0,this.isReady=!1,this.arraybuffer=null}}],[{key:"create",value:function(_){var Q=new Y(_);return Q.init()}}]),Y}(h.Observer);c.default=V,j(V,"VERSION","6.6.4"),j(V,"util",h),u.exports=c.default},"./src/webaudio.js":(u,c,f)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h=v(f("./src/util/index.js"));function p(A){if(typeof WeakMap!="function")return null;var L=new WeakMap,V=new WeakMap;return(p=function(b){return b?V:L})(A)}function v(A,L){if(!L&&A&&A.__esModule)return A;if(A===null||m(A)!=="object"&&typeof A!="function")return{default:A};var V=p(L);if(V&&V.has(A))return V.get(A);var P={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in A)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(A,Y)){var B=b?Object.getOwnPropertyDescriptor(A,Y):null;B&&(B.get||B.set)?Object.defineProperty(P,Y,B):P[Y]=A[Y]}return P.default=A,V&&V.set(A,P),P}function m(A){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},m(A)}function y(A,L){if(!(A instanceof L))throw new TypeError("Cannot call a class as a function")}function x(A,L){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H(A){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},H(A)}function U(A,L,V){return L=N(L),L in A?Object.defineProperty(A,L,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[L]=V,A}function N(A){var L=j(A,"string");return m(L)==="symbol"?L:String(L)}function j(A,L){if(m(A)!=="object"||A===null)return A;var V=A[Symbol.toPrimitive];if(V!==void 0){var P=V.call(A,L||"default");if(m(P)!=="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(A)}var K="playing",q="paused",G="finished",F=function(A){R(V,A);var L=S(V);function V(P){var b,Y,B;return y(this,V),B=L.call(this),U(E(B),"audioContext",null),U(E(B),"stateBehaviors",(b={},U(b,K,{init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var Q=this.getDuration();return this.getCurrentTime()/Q||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}}),U(b,q,{init:function(){},getPlayedPercents:function(){var Q=this.getDuration();return this.getCurrentTime()/Q||0},getCurrentTime:function(){return this.startPosition}}),U(b,G,{init:function(){this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}}),b)),B.params=P,B.ac=P.audioContext||(B.supportsWebAudio()?B.getAudioContext():{}),B.lastPlay=B.ac.currentTime,B.startPosition=0,B.scheduledPause=null,B.states=(Y={},U(Y,K,Object.create(B.stateBehaviors[K])),U(Y,q,Object.create(B.stateBehaviors[q])),U(Y,G,Object.create(B.stateBehaviors[G])),Y),B.buffer=null,B.filters=[],B.gainNode=null,B.mergedPeaks=null,B.offlineAc=null,B.peaks=null,B.playbackRate=1,B.analyser=null,B.scriptNode=null,B.source=null,B.splitPeaks=[],B.state=null,B.explicitDuration=P.duration,B.sinkStreamDestination=null,B.sinkAudioElement=null,B.destroyed=!1,B}return k(V,[{key:"supportsWebAudio",value:function(){return!!(window.AudioContext||window.webkitAudioContext)}},{key:"getAudioContext",value:function(){return window.WaveSurferAudioContext||(window.WaveSurferAudioContext=new(window.AudioContext||window.webkitAudioContext)),window.WaveSurferAudioContext}},{key:"getOfflineAudioContext",value:function(b){return window.WaveSurferOfflineAudioContext||(window.WaveSurferOfflineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,b)),window.WaveSurferOfflineAudioContext}},{key:"init",value:function(){this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(q),this.setPlaybackRate(this.params.audioRate),this.setLength(0)}},{key:"disconnectFilters",value:function(){this.filters&&(this.filters.forEach(function(b){b&&b.disconnect()}),this.filters=null,this.analyser.connect(this.gainNode))}},{key:"setState",value:function(b){this.state!==this.states[b]&&(this.state=this.states[b],this.state.init.call(this))}},{key:"setFilter",value:function(){for(var b=arguments.length,Y=new Array(b),B=0;B=b.getDuration()&&b.state!==b.states[G]?(b.setState(G),b.fireEvent("pause")):_>=b.scheduledPause&&b.state!==b.states[q]?b.pause():b.state===b.states[K]&&(b.fireEvent("audioprocess",_),h.frame(B)())};Y()}},{key:"createAnalyserNode",value:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)}},{key:"createVolumeNode",value:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)}},{key:"setSinkId",value:function(b){return b?(this.sinkAudioElement||(this.sinkAudioElement=new window.Audio,this.sinkAudioElement.autoplay=!0),this.sinkAudioElement.setSinkId?(this.sinkStreamDestination||(this.sinkStreamDestination=this.ac.createMediaStreamDestination()),this.gainNode.disconnect(),this.gainNode.connect(this.sinkStreamDestination),this.sinkAudioElement.srcObject=this.sinkStreamDestination.stream,this.sinkAudioElement.setSinkId(b)):Promise.reject(new Error("setSinkId is not supported in your browser"))):Promise.reject(new Error("Invalid deviceId: "+b))}},{key:"setVolume",value:function(b){this.gainNode.gain.setValueAtTime(b,this.ac.currentTime)}},{key:"getVolume",value:function(){return this.gainNode.gain.value}},{key:"decodeArrayBuffer",value:function(b,Y,B){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac&&this.ac.sampleRate?this.ac.sampleRate:44100)),"webkitAudioContext"in window?this.offlineAc.decodeAudioData(b,function(_){return Y(_)},B):this.offlineAc.decodeAudioData(b).then(function(_){return Y(_)}).catch(function(_){return B(_)})}},{key:"setPeaks",value:function(b,Y){Y!=null&&(this.explicitDuration=Y),this.peaks=b}},{key:"setLength",value:function(b){if(!(this.mergedPeaks&&b==2*this.mergedPeaks.length-1+2)){this.splitPeaks=[],this.mergedPeaks=[];var Y=this.buffer?this.buffer.numberOfChannels:1,B;for(B=0;BT&&(T=z),zthis.mergedPeaks[2*oe])&&(this.mergedPeaks[2*oe]=T),(_e==0||Re=this.getDuration()&&(b=0)),Y==null&&(Y=this.getDuration()),this.startPosition=b,this.lastPlay=this.ac.currentTime,this.state===this.states[G]&&this.setState(q),{start:b,end:Y}}},{key:"getPlayedTime",value:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate}},{key:"play",value:function(b,Y){if(this.buffer){this.createSource();var B=this.seekTo(b,Y);b=B.start,Y=B.end,this.scheduledPause=Y,this.source.start(0,b),this.resumeAudioContext(),this.setState(K),this.fireEvent("play")}}},{key:"pause",value:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime();try{this.source&&this.source.stop(0)}catch{}this.setState(q),this.fireEvent("pause")}},{key:"getCurrentTime",value:function(){return this.state.getCurrentTime.call(this)}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"setPlaybackRate",value:function(b){this.playbackRate=b||1,this.source&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.ac.currentTime)}},{key:"setPlayEnd",value:function(b){this.scheduledPause=b}}]),V}(h.Observer);c.default=F,u.exports=c.default},"./node_modules/debounce/index.js":u=>{function c(f,h,p){var v,m,y,x,k;h==null&&(h=100);function R(){var S=Date.now()-x;S=0?v=setTimeout(R,h-S):(v=null,p||(k=f.apply(y,m),y=m=null))}var O=function(){y=this,m=arguments,x=Date.now();var S=p&&!v;return v||(v=setTimeout(R,h)),S&&(k=f.apply(y,m),y=m=null),k};return O.clear=function(){v&&(clearTimeout(v),v=null)},O.flush=function(){v&&(k=f.apply(y,m),y=m=null,clearTimeout(v),v=null)},O}c.debounce=c,u.exports=c}},s={};function o(u){var c=s[u];if(c!==void 0)return c.exports;var f=s[u]={exports:{}};return r[u](f,f.exports,o),f.exports}var l=o("./src/wavesurfer.js");return l})())})(Vv);var mE=Vv.exports;const vE=l3(mE),Op=ze({__name:"WaveAudio",setup(e,{expose:t}){const r=Pe(null),s=new Audio;Vt(()=>{const y=window.getCurrentTheme(),x=li["fg-base"][y],k=li["fg-secondary"][y];r.value=vE.create({container:"#waveform",waveColor:x,progressColor:k,cursorWidth:0,barWidth:1,barGap:3,responsive:!0,backend:"MediaElement"}),r.value.on("play",()=>{o.setPlaying(!0)}),r.value.on("pause",()=>{o.setPlaying(!1)}),r.value.on("audioprocess",()=>{o.setProgress(r.value.getCurrentTime())}),r.value.on("finish",()=>{u=!0,o.onSongEnded()}),r.value.on("waveform-ready",()=>{r.value&&(o.setDuration(r.value.getDuration()),(u||o.playing)&&(c(),u=!1))});var R=r.value.backend.ac,O=R.createMediaElementSource(s);O.connect(R.destination),l.setSource(O,R)});const o=Bt(),l=Tc();let u=!1;Vt(()=>{s.src=o.stream,r.value.load(s)}),st(()=>o.song.id,()=>{r.value.isPlaying()&&(u=!0),s.src=o.stream,r.value.load(s),o.setPlaying(!1)});const c=()=>{try{r.value.play()}catch{}},f=()=>{r.value.pause()},h=y=>{r.value.seekTo(y/o.durationSeconds)},p=y=>{let x=y/100;x=Math.min(Math.max(x,0),1),r.value.setVolume(x)},v=y=>{r.value.setMute(y)};return Vt(()=>{p(o.volume)}),t({play:c,pause:f,seek:h,setVolume:p,setMute:v}),(y,x)=>(ne(),ge("div",{id:"waveform",onAudioprocess:x[0]||(x[0]=k=>se(o).setProgress(k))},null,32))}});const gE=ze({__name:"AmbientBackground",props:{src:{type:String,required:!0},direction:{type:String,required:!1,default:"to bottom"},placeholder:{type:String,required:!1}},setup(e){const t=Ur(),r=e,s=Pe(null),o=async(l=void 0)=>{if(!s.value)return;const u=l===void 0?cv(r.src):l,c=await Pa(u,r.placeholder);try{await j4(s.value,c,r.direction)}catch(f){if(!(f instanceof Error)||!f.message.includes("Error loading image"))throw f;await o(null)}};return st(()=>r.src,()=>ur(o)),Vt(o),(l,u)=>e.src!=null&&se(t).ambient?(ne(),ge("div",{key:0,ref_key:"ambientGradient",ref:s,class:"ambient-gradient absolute inset-0 pointer-events-none"},null,512)):We("",!0)}}),yE=e=>(ci("data-v-07466254"),e=e(),fi(),e),_E={class:"player relative"},bE={key:1,class:"desktop mx-4"},wE={class:"song-info"},AE={class:"title-artist"},xE={class:"controls"},PE={class:"top relative"},CE=["disabled"],kE=["disabled"],EE=["disabled"],SE={class:"bottom"},OE={class:"display"},RE={class:"text-xs text-muted text-left"},TE={class:"aux relative"},IE={key:0,class:"cursor-pointer material-symbols-rounded ms-fill"},ME={key:2,class:"mobile mx-4"},LE={class:"artist-title overflow-hidden"},$E={class:"full"},DE={class:"rest"},BE={class:"song-info"},NE=yE(()=>te("div",{class:"rest"},null,-1)),WE={class:"title-artist mb-4"},FE={class:"controls mb-4"},VE={class:"top"},HE={class:"bottom"},UE={class:"flex flex-row justify-between"},qE={class:"text-xs text-muted text-right"},jE={class:"text-xs text-muted text-left"},KE={class:"aux flex flex-row justify-between"},zE={class:"flex flex-row"},ZE=ze({__name:"Player",setup(e){const t=Bt(),r=Ur(),s=Pe(null),o=Pe(""),l=Fe(()=>t.sharedPlayer.connections.map(v=>({value:v.id,label:v.friendlyName})));st(o,v=>{var m;v===((m=t.sharedPlayer.me)==null?void 0:m.id)?(t.sharedPlayer.makeMePlayer(),t.setPlaying(!1)):u(v)}),st(()=>t.sharedPlayer.connections,v=>{var m;(!o.value||!v.find(y=>y.id===o.value))&&(o.value=(m=t.sharedPlayer.me)==null?void 0:m.id)});const u=v=>{const m=t.sharedPlayer.connections.find(y=>y.id===v);m&&(t.sharedPlayer.setPlayer(m),s.value=t.sharedPlayer)};Vt(()=>{var v;o.value=(v=t.sharedPlayer.me)==null?void 0:v.id}),st(s,()=>{t.setPlayer(s.value)}),Vt(()=>{t.setPlayer(s.value)});const c=Pe(!1),f=Fe(()=>{var v;return o.value===((v=t.sharedPlayer.me)==null?void 0:v.id)}),h=Fe(()=>r.player.type==="web"&&f.value),p=Fe(()=>r.player.type==="web/wave"&&f.value);return(v,m)=>{const y=Hi("router-link");return ne(),ge("div",_E,[me(gE,{src:se(t).song.cover,direction:"to top right"},null,8,["src"]),h.value?(ne(),je(iE,{key:0,ref_key:"playable",ref:s},null,512)):We("",!0),se(qu)?(ne(),ge("div",ME,[se(qu)&&!f.value?(ne(),ge("audio",{key:0,id:"hijackVolume",onVolumechange:m[14]||(m[14]=x=>se(t).setVolume(x.target.volume*100))},null,32)):We("",!0),Ks(te("div",{class:"small",onClick:m[18]||(m[18]=x=>c.value=!0)},[me(oi,{src:se(t).song.cover,class:"cover rounded-md"},null,8,["src"]),te("div",LE,[me(ir,{text:se(t).song.title,class:"text-sm"},null,8,["text"]),me(ir,{text:se(t).song.artist,class:"text-xs text-muted"},null,8,["text"])]),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[15]||(m[15]=x=>o.value=x),class:Je([{"on-this-device":f.value},"material-symbols-rounded"]),options:l.value,icon:"devices",onClick:m[16]||(m[16]=Dt(()=>{},["stop"]))},null,8,["modelValue","class","options"]),te("span",{class:"cursor-pointer material-symbols-rounded ms-fill text-xl",onClick:m[17]||(m[17]=Dt((...x)=>se(t).playPause&&se(t).playPause(...x),["stop"]))},Be(se(t).playing?"pause":"play_arrow"),1)],512),[[wa,!c.value]]),Ks(te("div",$E,[te("div",null,[te("span",{class:"material-symbols-rounded ms-wght-500",onClick:m[19]||(m[19]=x=>c.value=!1)}," expand_more ")]),me(y,{class:"my-auto linkOnHover",to:"/player"},{default:Ot(()=>[me(oi,{src:se(t).song.cover,class:"cover rounded-md"},null,8,["src"])]),_:1}),te("div",DE,[te("div",BE,[NE,te("div",WE,[me(y,{to:`/track/${se(rp)(se(t).song.id)}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.title,class:"text-2xl font-bold"},null,8,["text"])]),_:1},8,["to"]),me(y,{to:`/search/${se(t).song.artist}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.artist,class:"text-muted text-xs"},null,8,["text"])]),_:1},8,["to"])])]),te("div",FE,[te("div",VE,[te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[20]||(m[20]=(...x)=>se(t).toggleShuffle&&se(t).toggleShuffle(...x))},Be(se(t).shuffleIcon),1),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill",onClick:m[21]||(m[21]=(...x)=>se(t).previous&&se(t).previous(...x))}," skip_previous "),te("span",{class:"cursor-pointer material-symbols-rounded ms-fill text-4xl",onClick:m[22]||(m[22]=(...x)=>se(t).playPause&&se(t).playPause(...x))},Be(se(t).playing?"pause_circle":"play_circle"),1),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill",onClick:m[23]||(m[23]=(...x)=>se(t).next&&se(t).next(...x))}," skip_next "),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[24]||(m[24]=(...x)=>se(t).toggleRepeat&&se(t).toggleRepeat(...x))},Be(se(t).repeat),1)]),te("div",HE,[p.value?(ne(),je(Op,{key:0,ref_key:"playable",ref:s},null,512)):(ne(),je(wu,{key:1,modelValue:se(t).progressPercent,"onUpdate:modelValue":m[25]||(m[25]=x=>se(t).progressPercent=x),max:"1000",onChange:m[26]||(m[26]=x=>se(t).seekPercent(x/10))},null,8,["modelValue"])),te("div",UE,[te("span",qE,Be(se(t).displayProgress),1),te("span",jE,Be(se(t).song.duration),1)])])]),te("div",KE,[te("div",zE,[te("span",{class:Je([{"ms-fill":se(t).song.favourite},"favourite text-xl cursor-pointer material-symbols-rounded ms-wght-300"]),onClick:m[27]||(m[27]=(...x)=>se(t).toggleFavourite&&se(t).toggleFavourite(...x))}," favorite ",2),se(r).player.pictureInPicture?(ne(),ge(et,{key:0},[se(Un)=="loading"?(ne(),je(Sp,{key:0})):(ne(),ge("span",{key:1,class:"favourite material-icons-round cursor-pointer text-xl ml-2",onClick:m[28]||(m[28]=(...x)=>se(oa)&&se(oa)(...x))},Be(se(Un)=="ready"?"picture_in_picture_alt":"error"),1))],64)):We("",!0)]),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[29]||(m[29]=x=>o.value=x),class:Je({"on-this-device":f.value}),options:l.value,icon:"devices"},null,8,["modelValue","class","options"])])])],512),[[wa,c.value]])])):(ne(),ge("div",bE,[te("div",wE,[me(y,{class:"linkOnHover",to:"/player"},{default:Ot(()=>[se(t).loaded?(ne(),je(oi,{key:0,src:se(t).song.cover,class:"cover rounded-md",name:se(t).song.title},null,8,["src","name"])):We("",!0)]),_:1}),se(t).loaded?(ne(),ge(et,{key:0},[te("div",AE,[me(y,{to:`/track/${se(rp)(se(t).song.id)}`,class:"linkOnHover"},{default:Ot(()=>[me(ir,{text:se(t).song.title,class:""},null,8,["text"])]),_:1},8,["to"]),me(Lv,{artist:se(t).song.artist,class:"text-muted text-xs"},null,8,["artist"])]),te("span",{class:Je([{"ms-fill":se(t).song.favourite},"favourite text-xl cursor-pointer material-symbols-rounded ms-wght-300"]),onClick:m[0]||(m[0]=(...x)=>se(t).toggleFavourite&&se(t).toggleFavourite(...x))}," favorite ",2),se(r).player.pictureInPicture?(ne(),ge(et,{key:0},[se(Un)=="loading"?(ne(),je(Sp,{key:0})):(ne(),ge("span",{key:1,class:"favourite material-icons-round cursor-pointer text-xl",onClick:m[1]||(m[1]=(...x)=>se(oa)&&se(oa)(...x))},Be(se(Un)=="ready"?"picture_in_picture_alt":"error"),1))],64)):We("",!0)],64)):(ne(),je(y,{key:1,to:"/collection/playlists"},{default:Ot(()=>[me(ir,{class:"text-xs text-muted",text:"Nothing playing yet..."})]),_:1}))]),te("div",xE,[te("div",PE,[te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[2]||(m[2]=(...x)=>se(t).toggleShuffle&&se(t).toggleShuffle(...x))},Be(se(t).shuffleIcon),1),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"icon cursor-pointer material-symbols-rounded ms-fill"]),disabled:!se(t).loaded,onClick:m[3]||(m[3]=(...x)=>se(t).previous&&se(t).previous(...x))}," skip_previous ",10,CE),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"cursor-pointer material-symbols-rounded ms-fill text-4xl"]),disabled:!se(t).loaded,onClick:m[4]||(m[4]=(...x)=>se(t).playPause&&se(t).playPause(...x))},Be(se(t).playing?"pause_circle":"play_circle"),11,kE),te("span",{class:Je([{"cursor-not-allowed":!se(t).loaded},"icon cursor-pointer material-symbols-rounded ms-fill"]),disabled:!se(t).loaded,onClick:m[5]||(m[5]=(...x)=>se(t).next&&se(t).next(...x))}," skip_next ",10,EE),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-wght-300",onClick:m[6]||(m[6]=(...x)=>se(t).toggleRepeat&&se(t).toggleRepeat(...x))},Be(se(t).repeat),1)]),te("div",SE,[te("div",OE,[te("span",{class:"text-xs text-muted text-right cursor-pointer",onClick:m[7]||(m[7]=x=>se(r).player.type=se(r).player.type==="web"?"web/wave":"web")},Be(se(t).displayProgress),1),p.value?(ne(),je(Op,{key:0,ref_key:"playable",ref:s},null,512)):(ne(),je(wu,{key:1,modelValue:se(t).progressPercent,"onUpdate:modelValue":m[8]||(m[8]=x=>se(t).progressPercent=x),max:"1000",onChange:m[9]||(m[9]=x=>se(t).seekPercent(x/10))},null,8,["modelValue"])),te("span",RE,Be(se(t).displayDuration),1)])])]),te("div",TE,[me(y,{to:"/sing-along",class:"icon select-none"},{default:Ot(()=>[se(t).loaded&&se(t).hasLyrics?(ne(),ge("span",IE," mic ")):We("",!0)]),_:1}),me(Au,{modelValue:o.value,"onUpdate:modelValue":m[10]||(m[10]=x=>o.value=x),class:Je([{"on-this-device":f.value},"select-none"]),options:l.value,icon:"devices"},null,8,["modelValue","class","options"]),te("span",{class:"icon cursor-pointer material-symbols-rounded ms-fill select-none",onClick:m[11]||(m[11]=(...x)=>se(t).toggleMute&&se(t).toggleMute(...x))},Be(se(t).muteIcon),1),me(wu,{modelValue:se(t).volume,"onUpdate:modelValue":m[12]||(m[12]=x=>se(t).volume=x),max:"100",onChange:m[13]||(m[13]=x=>se(t).setVolume(x))},null,8,["modelValue"])])]))])}}});const Hv=at(ZE,[["__scopeId","data-v-07466254"]]),GE=1,YE=1,JE=1,X6=e=>({type:"song",version:GE,song:e}),XE=async e=>{const t={type:"playlist",version:YE};if(e.type==="special")return null;if(e.type==="classic"){const r=Object.assign({},e);return delete r.queue,delete r.cursor,{...t,playlist:r}}if(e.type==="smart"){const r=await K5(e.id);return{...t,playlist:{name:e.name,description:e.description,cover:e.cover,type:e.type,definition:r,plays:e.plays,id:e.id,href:e.href}}}},Q6=async e=>({type:"collection",version:JE,collection:await Promise.all(e.filter(t=>t.type!="special").map(XE))}),eO=(e,t="my")=>{var r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),s=document.createElement("a");s.setAttribute("href",r),s.setAttribute("download",`${t}.one.${e.type}`),s.click()},QE=async e=>{if(!e.length)return;const t=Oc();if(!t.path.startsWith("/playlist/")){ar.addError("No playlist selected","Please select open the playlist you want to add songs to",3e3);return}const r=zt().getPlaylistById(t.params.id);if(r.type!=="classic"){ar.addError("Can't add songs to this playlist","You can only add songs to classic playlists",3e3);return}await hv(r.id,e.map(s=>s.song)),ar.addSuccess(`Added ${e.length} songs to ${r.name}`,null,3e3)},eS=async e=>{const t=e.playlist,r=await xc(t.type,t.name,t.description,t.cover);if(t.type==="smart"){await z5(r,t.definition);return}await hv(r,t.songs)},tS=async e=>{if(e.length){for(const t of e)await eS(t);ar.addSuccess(`Added ${e.length} playlists`,null,3e3),zt().fetchPlaylists()}},nS=e=>{const t=e.filter(o=>o.type==="song");QE(t);const r=e.filter(o=>o.type==="playlist"),s=e.filter(o=>o.type==="collection");for(const o of s)r.push(...o.collection);tS(r)},rS=["onDrop","onDragleave"],iS=ze({__name:"DropImport",setup(e){const t=Pe(!1),r=Oc(),s=zt(),o=Fe(()=>r.path.startsWith("/playlist/")),l=Fe(()=>{if(!o.value)return null;const p=r.params.id;return s.getPlaylistById(p)}),u=Fe(()=>l.value?l.value.type==="classic":!1),c=async p=>{const v=[];for(let x=0;xJSON.parse(x));nS(y)},f=p=>{if(t.value=!1,!u)return;const v=p.dataTransfer.files;v.length&&c(v)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(t.value=!1)};return(p,v)=>(ne(),ge("div",{class:Je(["dropzone",{drophover:t.value}]),onDrop:Dt(f,["prevent"]),onDragenter:v[0]||(v[0]=Dt(()=>{},["prevent"])),onDragover:v[1]||(v[1]=Dt(m=>t.value=!0,["prevent"])),onDragleave:Dt(h,["prevent"])},[Ui(p.$slots,"default",{},void 0,!0)],42,rS))}});const sS=at(iS,[["__scopeId","data-v-c5853362"]]),oS=["src"],aS={id:"appRoot",class:"appRoot"},lS={class:"interface"},uS=te("div",{id:"popup-target"},null,-1),cS=te("div",{id:"dropdown-target"},null,-1),fS=te("div",{id:"autocomplete-target"},null,-1),dS={name:"App",components:{Sidebar:Wv,Body:Fv,Player:Hv},async mounted(){Ur(),Vk(),Nv(),await Hk()&&this.$router.push("/welcome"),await Uk()},data(){return{maximised:!1}},watch:{$route(e){document.title=e.meta.title||"reAudioPlayer One"}}},hS=ze({...dS,setup(e){$v();const t=Bt(),r=Pe(null);st(()=>t.song.cover,()=>{console.log("cover changed"),s()});const s=async()=>{r.value=await Pa(t.song.cover,t.song.title,200)},o=async()=>{r.value=await Cc(t.song.title,200)};s();const l=Fe(()=>window.getCurrentThemeProperty("coverAsBackground"));return Vt(()=>{window.addEventListener("keydown",u=>{u.code==="Space"&&document.activeElement===document.body&&(u.preventDefault(),t.playPause())})}),(u,c)=>(ne(),ge(et,null,[te("div",{class:Je([{hidden:!l.value},"bgImageWrapper"])},[te("div",{style:Vr({backgroundImage:`url(${r.value})`}),class:"bgImage"},[te("img",{src:r.value,class:"hidden",onError:o},null,40,oS)],4)],2),me(sS,null,{default:Ot(()=>[te("div",aS,[se(t).ready?(ne(),ge(et,{key:0},[me(jC),te("div",lS,[u.maximised?We("",!0):(ne(),je(Wv,{key:0})),me(Fv,{onMaximise:c[0]||(c[0]=f=>u.maximised=f)})]),me(Hv),u.maximised?We("",!0):(ne(),je(c4,{key:0}))],64)):(ne(),je(tk,{key:1}))])]),_:1}),uS,cS,fS,me(gk)],64))}});function ca(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ca=function(t){return typeof t}:ca=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function pS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rp(e,t){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:{},s,o,l,u=function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),v=1;v1){var h=c.find(function(v){return v.isIntersecting});h&&(f=h)}if(o.callback){var p=f.isIntersecting&&f.intersectionRatio>=o.threshold;if(p===o.oldResult)return;o.oldResult=p,o.callback(p,f)}},this.options.intersection),s.context.$nextTick(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function qv(e,t,r){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new wS(e,s,r);e._vue_visibilityState=o}}function AS(e,t,r){var s=t.value,o=t.oldValue;if(!Uv(s,o)){var l=e._vue_visibilityState;if(!s){jv(e);return}l?l.createObserver(s,r):qv(e,{value:s},r)}}function jv(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var fa={bind:qv,update:AS,unbind:jv};function xS(e){e.directive("observe-visibility",fa)}var PS={version:"1.0.0",install:xS},Ea=null;typeof window<"u"?Ea=window.Vue:typeof global<"u"&&(Ea=global.Vue);Ea&&Ea.use(PS);var Kv=function(t,r){var s,o=r.arg;if(!o){console.error("参数有误");return}var l=r.value,u=_t(o)?o.value:(s=r.instance)===null||s===void 0?void 0:s.$refs[o];if(!u){console.error("没有找到 ".concat(o," 对应的实例"));return}if(typeof u.addReference!="function"){console.error("".concat(o," 对应的实例不是 VContextmenu"));return}t.$contextmenuKey=o,u.addReference(t,l)},zv=function(t,r){var s,o=t.$contextmenuKey;if(o){var l=(s=r.instance)===null||s===void 0?void 0:s.$refs[o];l==null||l.removeReference(t)}},CS=function(t,r){zv(t,r),Kv(t,r)},kS={mounted:Kv,updated:CS,beforeUnmount:zv},yt={contextmenu:"v-contextmenu",contextmenuIcon:"v-contextmenu-icon",contextmenuInner:"v-contextmenu-inner",contextmenuDivider:"v-contextmenu-divider",contextmenuItem:"v-contextmenu-item",contextmenuItemHover:"v-contextmenu-item--hover",contextmenuItemDisabled:"v-contextmenu-item--disabled",contextmenuGroup:"v-contextmenu-group",contextmenuGroupTitle:"v-contextmenu-group__title",contextmenuGroupMenus:"v-contextmenu-group__menus",contextmenuSubmenu:"v-contextmenu-submenu",contextmenuSubmenuTitle:"v-contextmenu-submenu__title",contextmenuSubmenuMenus:"v-contextmenu-submenu__menus",contextmenuSubmenuMenusTop:"v-contextmenu-submenu__menus--top",contextmenuSubmenuMenusRight:"v-contextmenu-submenu__menus--right",contextmenuSubmenuMenusBottom:"v-contextmenu-submenu__menus--bottom",contextmenuSubmenuMenusLeft:"v-contextmenu-submenu__menus--left",contextmenuSubmenuArrow:"v-contextmenu-submenu__arrow"};function ES(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Nr(e)}var SS={trigger:["contextmenu"]},Ip=ze({name:"VContextmenu",props:{modelValue:{type:Boolean,default:!1},autoAjustPlacement:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},teleport:{type:[String,Object],default:function(){return"body"}}},emits:["show","hide","update:modelValue"],setup:function(t,r){var s=r.emit,o=Pe(null),l=Pe(t.modelValue||!1),u=function(M){l.value=M,s("update:modelValue",M)},c=Pe({top:0,left:0}),f=Fe(function(){return{top:"".concat(c.value.top,"px"),left:"".concat(c.value.left,"px")}}),h=Pe(null),p=function(M,E){var I=M instanceof Event?E:M,H=(I==null?void 0:I.autoAjustPlacement)||t.autoAjustPlacement,U={top:(I==null?void 0:I.top)||0,left:(I==null?void 0:I.left)||0};if(M instanceof Event){var N,j;M.preventDefault(),U.top=(N=I==null?void 0:I.top)!==null&&N!==void 0?N:M.pageY,U.left=(j=I==null?void 0:I.left)!==null&&j!==void 0?j:M.pageX}u(!0),ur(function(){if(H){var K=o.value;if(!K)return;var q=K.clientWidth,G=K.clientHeight;if(G+U.top>=window.innerHeight+window.scrollY){var F=U.top-G;F>window.scrollY&&(U.top=F)}if(q+U.left>=window.innerWidth+window.scrollX){var A=U.left-q;A>window.scrollX&&(U.left=A)}}c.value=U,s("show")})},v=function(){h.value=null,u(!1),s("hide")},m=Qi(new Map),y=Pe(),x=Fe(function(){return y.value&&m.get(y.value)}),k=function(M,E){var I=function(){return E!=null&&E.trigger?Array.isArray(E.trigger)?E.trigger:[E.trigger]:SS.trigger}(),H=function(N){t.disabled||(y.value=M,p(N,{}))};I.forEach(function(U){M.addEventListener(U,H)}),m.set(M,{triggers:I,handler:H})},R=function(M){var E=m.get(M);E&&(E.triggers.forEach(function(I){M.removeEventListener(I,E.handler)}),m.delete(M))},O=function(M){if(!(!M.target||!o.value||!y.value)){var E=o.value.contains(M.target)||x.value&&x.value.triggers.includes("click")&&y.value.contains(M.target);E||u(!1)}};return st(l,function(S){S?document.addEventListener("click",O):document.removeEventListener("click",O)}),Va(function(){document.removeEventListener("click",O)}),Rr("visible",l),Rr("autoAjustPlacement",t.autoAjustPlacement),Rr("show",p),Rr("hide",v),{visible:l,style:f,currentReferenceOptions:x,currentOptions:h,contextmenuRef:o,addReference:k,removeReference:R,toggle:u,show:p,hide:v}},methods:{renderContent:function(){var t,r;return Ks(me("div",{class:yt.contextmenu,ref:"contextmenuRef",style:this.style},[me("ul",{class:yt.contextmenuInner},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r,{triggerOptions:"currentReferenceOptions",options:"currentOptions"})])]),[[wa,"visible"]])}},render:function(){var t;return this.visible?this.teleport?me(eo,{to:this.teleport},ES(t=this.renderContent())?t:{default:function(){return[t]}}):this.renderContent():null}});function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mp=ze({name:"VContextmenuItem",props:{disabled:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0}},emits:["click","mouseenter","mouseleave"],setup:function(t,r){var s=r.emit,o=nn("hide"),l=Pe(!1),u=Fe(function(){var p;return p={},fn(p,yt.contextmenuItem,!0),fn(p,yt.contextmenuItemDisabled,t.disabled),fn(p,yt.contextmenuItemHover,l.value),p}),c=function(v){t.disabled||(s("click",v),t.hideOnClick&&(o==null||o()))},f=function(v){t.disabled||(l.value=!0,s("mouseenter",v))},h=function(v){t.disabled||(l.value=!1,s("mouseleave",v))};return{classes:u,handleClick:c,handleMouseenter:f,handleMouseleave:h}},render:function(){var t,r;return me("li",{class:this.classes,onClick:this.handleClick,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r)])}}),Lp=ze({name:"VContextmenuDivider",render:function(){return me("li",{class:yt.contextmenuDivider},null)}}),OS=ze({name:"VContextmenuIcon",props:{name:{type:String,required:!0}},render:function(){return me("i",{class:[yt.contextmenuIcon,"".concat(yt.contextmenuIcon,"-").concat(this.name)]},null)}}),$p=ze({name:"VContextmenuSubmenu",props:{title:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["mouseenter","mouseleave"],setup:function(t,r){var s=r.emit,o=Pe(null),l=nn("autoAjustPlacement"),u=Pe(["top","right"]),c=Pe(!1),f=function(y){t.disabled||(c.value=!0,s("mouseenter",y),ur(function(){var x=[];if(l){var k=y.target,R=k.getBoundingClientRect();if(!o.value)return;var O=o.value.clientWidth,S=o.value.clientHeight;R.right+O>=window.innerWidth?x.push("left"):x.push("right"),R.bottom+S>=window.innerHeight?x.push("bottom"):x.push("top")}u.value=x}))},h=function(y){t.disabled||(c.value=!1,s("mouseleave",y))},p=Fe(function(){var m;return m={},fn(m,yt.contextmenuItem,!0),fn(m,yt.contextmenuSubmenuTitle,!0),fn(m,yt.contextmenuItemHover,c.value),fn(m,yt.contextmenuItemDisabled,t.disabled),m}),v=Fe(function(){var m;return m={},fn(m,yt.contextmenu,!0),fn(m,yt.contextmenuSubmenuMenus,!0),fn(m,yt.contextmenuSubmenuMenusTop,u.value.includes("top")),fn(m,yt.contextmenuSubmenuMenusRight,u.value.includes("right")),fn(m,yt.contextmenuSubmenuMenusBottom,u.value.includes("bottom")),fn(m,yt.contextmenuSubmenuMenusLeft,u.value.includes("left")),m});return{hover:c,submenuRef:o,titleClasses:p,menusClasses:v,handleMouseenter:f,handleMouseleave:h}},render:function(){var t,r,s,o;return me("li",{class:yt.contextmenuSubmenu,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[me("div",{class:this.titleClasses},[((t=(r=this.$slots).title)===null||t===void 0?void 0:t.call(r))||this.title,me("span",{class:yt.contextmenuSubmenuArrow},[me(OS,{name:"right-arrow"},null)])]),this.hover?me("div",{ref:"submenuRef",class:this.menusClasses},[me("ul",{class:yt.contextmenuInner},[(s=(o=this.$slots).default)===null||s===void 0?void 0:s.call(o)])]):null])}}),Dp=ze({name:"VContextmenuGroup",props:{title:{type:String,default:void 0},maxWidth:{type:[Number,String],default:void 0}},setup:function(t){var r=Fe(function(){if(t.maxWidth)return{"max-width":typeof t.maxWidth=="number"?"".concat(t.maxWidth,"px"):t.maxWidth,"overflow-x":"auto"}});return{style:r}},methods:{renderTitle:function(){var t,r,s=((t=(r=this.$slots).title)===null||t===void 0?void 0:t.call(r))||this.title;return s?me("div",{class:yt.contextmenuGroupTitle},[s]):null}},render:function(){var t,r;return me("li",{class:yt.contextmenuGroup},[this.renderTitle(),me("ul",{style:this.style,class:yt.contextmenuGroupMenus},[(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r)])])}}),RS="3.0.0",TS=function(t){t.directive("contextmenu",kS),t.component(Ip.name,Ip),t.component(Mp.name,Mp),t.component(Lp.name,Lp),t.component($p.name,$p),t.component(Dp.name,Dp)},IS={install:TS,version:RS};const Ga=p5(hS);Ga.directive("observe-visibility",{beforeMount:(e,t,r)=>{r.context=t.instance,fa.bind(e,t,r)},updated:fa.update,unmounted:fa.unbind});Ga.use(IS);Ga.use(Mi);Ga.use(b5()).mount("#app");export{D6 as $,rp as A,Oc as B,Dv as C,Fe as D,Vt as E,et as F,st as G,NC as H,kp as I,Dt as J,SC as K,Ov as L,ir as M,Lv as N,Je as O,sC as P,ur as Q,Ac as R,Z6 as S,WC as T,u3 as U,N6 as V,K5 as W,Au as X,Gu as Y,z5 as Z,at as _,te as a,LS as a$,VA as a0,ym as a1,Zt as a2,Vp as a3,GS as a4,Fs as a5,Wi as a6,jS as a7,eo as a8,qi as a9,r6 as aA,vs as aB,$S as aC,Hp as aD,Hr as aE,qp as aF,ac as aG,Ax as aH,gc as aI,es as aJ,lx as aK,h5 as aL,g6 as aM,S6 as aN,nn as aO,Tx as aP,sm as aQ,Ir as aR,Fi as aS,_t as aT,v6 as aU,va as aV,Nr as aW,$a as aX,u6 as aY,c6 as aZ,xx as a_,Vm as aa,C6 as ab,_c as ac,US as ad,Cn as ae,Mr as af,pn as ag,Ra as ah,lr as ai,w6 as aj,p5 as ak,vx as al,f6 as am,mx as an,E6 as ao,JS as ap,p6 as aq,FS as ar,ZS as as,e5 as at,e6 as au,t6 as av,i6 as aw,n6 as ax,QS as ay,A6 as az,Ua as b,qS as b$,UA as b0,KA as b1,Va as b2,zA as b3,qA as b4,JA as b5,YA as b6,GA as b7,j2 as b8,ZA as b9,gA as bA,WS as bB,h6 as bC,NS as bD,a6 as bE,x6 as bF,P6 as bG,l6 as bH,Rx as bI,o6 as bJ,gm as bK,Gm as bL,bc as bM,Ym as bN,l5 as bO,Fu as bP,wa as bQ,Ix as bR,HS as bS,KS as bT,NA as bU,zS as bV,d6 as bW,s6 as bX,Ks as bY,k6 as bZ,y6 as b_,uc as ba,lc as bb,Rr as bc,am as bd,fm as be,Qi as bf,im as bg,m6 as bh,Gh as bi,YS as bj,QA as bk,b6 as bl,zs as bm,Rh as bn,kA as bo,Vi as bp,rm as bq,BS as br,hA as bs,Ox as bt,_6 as bu,DS as bv,aa as bw,XS as bx,tt as by,VS as bz,ge as c,z6 as c0,As as c1,l3 as c2,V6 as c3,Rv as c4,O6 as c5,dv as c6,XE as c7,eO as c8,Bt as c9,L6 as cA,G6 as cB,Hk as cC,Tc as cD,Iv as cE,kC as cF,K6 as cG,X6 as cH,Sp as cI,qu as cJ,H6 as cK,W6 as cL,U5 as ca,gE as cb,R6 as cc,M6 as cd,U6 as ce,I6 as cf,bC as cg,q6 as ch,e4 as ci,j6 as cj,T6 as ck,wc as cl,Y6 as cm,N3 as cn,J6 as co,yv as cp,Ur as cq,ar as cr,cv as cs,Mv as ct,Q6 as cu,hv as cv,B6 as cw,F6 as cx,nS as cy,Pc as cz,We as d,Hi as e,je as f,me as g,oi as h,ze as i,fr as j,zt as k,$6 as l,ci as m,fi as n,ne as o,xa as p,Pe as q,Ui as r,i3 as s,Be as t,se as u,Uk as v,Ot as w,Tv as x,xc as y,Vr as z}; diff --git a/src/ui/dist/assets/index-926884cb.js.gz b/src/ui/dist/assets/index-926884cb.js.gz new file mode 100644 index 000000000..daf88d0a9 Binary files /dev/null and b/src/ui/dist/assets/index-926884cb.js.gz differ diff --git a/src/ui/dist/assets/index-c7c58561.css.gz b/src/ui/dist/assets/index-c7c58561.css.gz deleted file mode 100644 index 9cdcc82e3..000000000 Binary files a/src/ui/dist/assets/index-c7c58561.css.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-e6a9a5a2.js b/src/ui/dist/assets/index-e6a9a5a2.js deleted file mode 100644 index 8faf7121b..000000000 --- a/src/ui/dist/assets/index-e6a9a5a2.js +++ /dev/null @@ -1 +0,0 @@ -import{i as C,o as s,c as _,t as g,O as D,_ as V,q as v,E as X,D as N,f as w,d as S,a as t,b as T,F as $,m as B,n as U,c9 as Z,g as m,I as x,j as P,w as L,h as ee,M as j,u as f,C as G,aq as te,cm as M,cn as H,co as F,cp as J,cq as Y,G as q,bY as ae,bM as le,Y as se,cr as oe,B as ne,s as ie,bk as ce}from"./index-effe4d2f.js";import{_ as re}from"./Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js";import{T as R}from"./TrackCompact-8c571f42.js";import{G as ue}from"./gistClient-63edeca1.js";const de=C({__name:"TabButton",props:{name:{type:String,required:!0},active:{type:Boolean,default:!1}},setup(l){return(e,o)=>(s(),_("button",{class:D(["btn",{active:l.active}])},g(l.name),3))}});const pe=V(de,[["__scopeId","data-v-3f038910"]]),_e="0.11.25",z=l=>(B("data-v-6c134c33"),l=l(),U(),l),me={class:"flex flex-col"},ve={key:0,class:"text-sm flex items-center gap-2 latest"},he=z(()=>t("span",{class:"material-symbols-rounded"},"check",-1)),ye={key:1,class:"text-sm flex items-center gap-2 update"},fe=z(()=>t("span",{class:"material-symbols-rounded"},"update",-1)),W="0.11.2",be=C({__name:"About",setup(l){const e=v(""),o=v("");X(async()=>{const d=await(await fetch("https://api.github.com/repos/reAudioPlayer/one/releases/latest")).json();e.value=d.tag_name,o.value=d.body});const p=N(()=>e.value===W),n=N(()=>_e.split(".").pop()),u=v(null);return(a,d)=>(s(),_("div",me,[o.value?(s(),w(re,{key:0,content:o.value,title:"What's new in "+e.value,ref_key:"changelog",ref:u,onClose:d[0]||(d[0]=()=>o.value="")},null,8,["content","title"])):S("",!0),t("span",null,[t("strong",null,"v"+g(W)),T(" (Build "+g(n.value)+") ",1)]),e.value?(s(),_($,{key:1},[p.value?(s(),_("span",ve,[he,T(" You're on the latest version "),t("a",{class:"cursor-pointer",onClick:d[1]||(d[1]=y=>{var c;return(c=u.value)==null?void 0:c.show()})}," What's changed? ")])):(s(),_("span",ye,[fe,T(" Update available: "+g(e.value)+" ",1),t("a",{class:"cursor-pointer",onClick:d[2]||(d[2]=y=>{var c;return(c=u.value)==null?void 0:c.show()})}," What's changed? ")]))],64)):S("",!0)]))}});const ge=V(be,[["__scopeId","data-v-6c134c33"]]);const E=l=>(B("data-v-16d50c59"),l=l(),U(),l),ke={class:"wrap"},we=E(()=>t("h3",null,"Browser Data",-1)),$e=E(()=>t("h3",null,"Import / Export",-1)),xe={class:"flex gap-4 mb-4"},Se={class:"covers mb-2"},Ce=E(()=>t("h3",null,"Local covers",-1)),Ve={key:0,class:"items gap-4"},Pe={class:"flex justify-between w-full mb-4"},Ie={class:"overflow-hidden"},Ae=["onClick"],Te={key:1,class:"text-muted italic"},De={class:"tracks"},Ne=E(()=>t("h3",null,"Local tracks",-1)),Be={key:0,class:"items gap-4"},Ue={class:"flex justify-between w-full mb-4"},Ee={class:"overflow-hidden"},Oe=["onClick"],Le={class:"flex justify-center w-full mb-4"},Ge=["src"],qe={key:1,class:"text-muted italic"},je={__name:"LocalData",setup(l){const e=v([]),o=v([]),p=Z(),n=()=>{fetch("/api/config/images").then(c=>c.json()).then(c=>e.value=c),fetch("/api/config/tracks").then(c=>c.json()).then(c=>o.value=c)},u=async c=>{await fetch("/api/config/images",{method:"DELETE",body:JSON.stringify({name:c})}),n()},a=async c=>{fetch("/api/config/tracks",{method:"DELETE",body:JSON.stringify({name:c})}),n()},d=c=>{p.loadPlaylist("track",c)};n();const y=()=>{localStorage.clear(),sessionStorage.clear(),window.location.reload()};return(c,b)=>(s(),_("div",ke,[we,m(x,{class:"mb-4",icon:"delete",label:"Clean browser settings",onClick:y}),$e,t("div",xe,[m(x,{icon:"backup",label:"Back up / Export",onClick:b[0]||(b[0]=h=>c.$router.push("/export"))}),m(x,{icon:"cloud_download",label:"Import",onClick:b[1]||(b[1]=h=>c.$router.push("/import"))})]),t("div",Se,[Ce,e.value.length?(s(),_("div",Ve,[(s(!0),_($,null,P(e.value,(h,A)=>(s(),w(G,{key:A,class:"cover-wrapper p-4"},{default:L(()=>[m(ee,{src:h.name,class:"rounded-xl mb-4"},null,8,["src"]),t("div",Pe,[t("p",Ie,[m(j,{text:h.name},null,8,["text"])]),t("span",{class:"ml-2 material-symbols-rounded cursor-pointer",onClick:i=>u(h.name)},"delete",8,Ae)]),(s(!0),_($,null,P(h.songs,(i,r)=>(s(),w(f(R),{id:i.id,key:r,artist:i.artist,cover:i.cover,title:i.title,onPlay:k=>d(i.id)},null,8,["id","artist","cover","title","onPlay"]))),128))]),_:2},1024))),128))])):(s(),_("span",Te,"No local covers"))]),t("div",De,[Ne,o.value.length?(s(),_("div",Be,[(s(!0),_($,null,P(o.value,(h,A)=>(s(),w(G,{key:A,class:"track p-4"},{default:L(()=>[t("div",Ue,[t("p",Ee,[m(j,{text:h.name},null,8,["text"])]),t("span",{class:"material-symbols-rounded cursor-pointer",onClick:i=>a(h.name)},"delete",8,Oe)]),t("div",Le,[t("audio",{src:"/api/"+h.name.replace("local:","/src/tracks/"),controls:""},null,8,Ge)]),(s(!0),_($,null,P(h.songs,(i,r)=>(s(),w(f(R),{id:i.id,key:r,artist:i.artist,cover:i.cover,title:i.title,onPlay:k=>d(i.id)},null,8,["id","artist","cover","title","onPlay"]))),128))]),_:2},1024))),128))])):(s(),_("span",qe,"No local tracks"))])]))}},Je=V(je,[["__scopeId","data-v-16d50c59"]]),Re={class:"markdown-body"},We=te("

By default, reAudioPlayer does not share any data with third parties.

Optionally, when entering your Spotify credentials, reAudioPlayer can access your Spotify data to offer the following features:

  • Display your Spotify playlists and offer importing them
  • Search songs on Spotify without leaving reAudioPlayer and adding them to your playlists
  • Display song information (BPM, key, etc.) from Spotify
  • Search artists on Spotify without leaving reAudioPlayer to display their information and follow them on Spotify
  • Display artist information (genres, popularity, etc.) from Spotify
  • Provide the release radar

Optionally, when entering your GitHub credentials, reAudioPlayer can access your GitHub data to offer the following features:

  • Storing your library in a GitHub Gist
  • Importing your library from a GitHub Gist

All data stays between your device and Spotify or Github, respectively.

Depending on the cache policy, reAudioPlayer stores songs locally to improve performance and reduce network traffic. The browser additionally stores the following user preferences in local storage:

  • Theme
  • Selected audio player
  • Volume
  • Repeat mode
  • Picture in Picture mode
  • pre-rendered placeholder images

You can manage your local data, that you manually uploaded to reAudioPlayer, in section “Local Data”. None of this data left or will leave your device.

",9),Me=[We],He={__name:"Privacy",setup(l,{expose:e}){return e({frontmatter:{}}),(p,n)=>(s(),_("div",Re,Me))}},Fe={class:"material-symbols-rounded ms-wght-300 cursor-pointer"},Ye={class:"checkbox__label"},ze={class:"checkbox__label__title"},Ke={class:"checkbox__label__sublabel italic"},Qe=C({__name:"Checkbox",props:{modelValue:{type:Boolean,required:!0},label:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},sublabel:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup(l,{emit:e}){const o=l,p=e,n=a=>p("update:modelValue",a),u=()=>{o.disabled||n(!o.modelValue)};return(a,d)=>(s(),_("div",{class:D([{"opacity-50":l.disabled},"checkbox"]),onClick:u},[t("span",Fe,g(l.modelValue?"check_box":"check_box_outline_blank"),1),t("div",Ye,[t("div",ze,g(l.label),1),t("div",Ke,g(l.sublabel),1)])],2))}});const I=V(Qe,[["__scopeId","data-v-be9fa887"]]),Xe={class:"relative"},Ze=C({__name:"Cache",setup(l){const e=v(null),o=v("");M().then(u=>{e.value=u,o.value=JSON.stringify(u)});const p=N(()=>e.value?JSON.stringify(e.value)!==o.value:!1),n=async()=>{p.value&&(await F(e.value),o.value=JSON.stringify(e.value))};return(u,a)=>(s(),_("div",Xe,[e.value?(s(),w(I,{key:0,modelValue:e.value.cache.preserve,"onUpdate:modelValue":a[0]||(a[0]=d=>e.value.cache.preserve=d),label:"Preserve cache"},null,8,["modelValue"])):S("",!0),e.value?(s(),w(I,{key:1,modelValue:e.value.cache.preserveInSession,"onUpdate:modelValue":a[1]||(a[1]=d=>e.value.cache.preserveInSession=d),disabled:e.value.cache.preserve,label:"Preserve cache in session"},null,8,["modelValue","disabled"])):S("",!0),e.value?(s(),w(H,{key:2,modelValue:e.value.cache.strategy,"onUpdate:modelValue":a[2]||(a[2]=d=>e.value.cache.strategy=d),options:[{value:"all",label:"All Songs"},{value:"playlist",label:"Current Playlist"},{value:"currentNext",label:"Current + Next Song "},{value:"current",label:"Current Song Only"}],icon:"cached"},null,8,["modelValue"])):S("",!0),m(x,{disabled:!e.value||!p.value,class:"ml-auto mt-4",icon:"save",label:"Save",onClick:n},null,8,["disabled"])]))}});const et={name:"Theme",props:{name:String},methods:{selected(){return J.getCurrentTheme()==this.name},select(){J.setTheme(this.name),this.$emit("selected")}}},tt=["src"];function at(l,e,o,p,n,u){return s(),_("div",{onClick:e[0]||(e[0]=(...a)=>u.select&&u.select(...a)),class:"wrapper"},[t("p",{class:D(["mb-4",{selected:u.selected()}])},g(o.name),3),t("img",{src:`/assets/img/themes/${this.name}.svg`,class:D({selected:u.selected()})},null,10,tt)])}const lt=V(et,[["render",at],["__scopeId","data-v-74855c2d"]]),K=l=>(B("data-v-5cc6477c"),l=l(),U(),l),st=K(()=>t("h3",{class:"mt-[10px]"},"Theme",-1)),ot={class:"themes"},nt=K(()=>t("h3",{class:"mt-[10px]"},"Sidebar",-1)),it=C({__name:"Appearance",setup(l){const e=Y(),o=["dynamic","light","dark"];return(p,n)=>(s(),_($,null,[st,m(I,{modelValue:f(e).ambient,"onUpdate:modelValue":n[0]||(n[0]=u=>f(e).ambient=u),disabled:!f(e).themeSupportsAmbient,label:"Ambient"},null,8,["modelValue","disabled"]),t("div",ot,[(s(),_($,null,P(o,(u,a)=>m(lt,{key:a,name:u},null,8,["name"])),64))]),nt,m(I,{modelValue:f(e).sidebar.news,"onUpdate:modelValue":n[1]||(n[1]=u=>f(e).sidebar.news=u),label:"Show 'News' Tab"},null,8,["modelValue"]),m(I,{modelValue:f(e).sidebar.sports,"onUpdate:modelValue":n[2]||(n[2]=u=>f(e).sidebar.sports=u),label:"Show 'Sports' Tab"},null,8,["modelValue"])],64))}});const ct=V(it,[["__scopeId","data-v-5cc6477c"]]),rt={class:"relative"},ut=C({__name:"Player",setup(l){const e=Y();return(o,p)=>(s(),_("div",rt,[m(I,{modelValue:f(e).player.pictureInPicture,"onUpdate:modelValue":p[0]||(p[0]=n=>f(e).player.pictureInPicture=n),label:"Support Picture in Picture",sublabel:"this will slightly reduce performance"},null,8,["modelValue"]),m(H,{modelValue:f(e).player.type,"onUpdate:modelValue":p[1]||(p[1]=n=>f(e).player.type=n),options:[{value:"web",label:"Native player",icon:"horizontal_rule"},{value:"web/wave",label:"Wave player",icon:"graphic_eq"}],icon:"music_note"},null,8,["modelValue"])]))}});const dt={key:0,class:"material-symbols-rounded"},pt=["disabled","placeholder","type"],_t={__name:"PasswordInputWithIcon",props:{icon:String,placeholder:String,modelValue:String,disabled:Boolean},emits:["update:modelValue","change","submit"],setup(l,{emit:e}){const o=l,p=v(o.modelValue);q(()=>o.modelValue,y=>{p.value=y});const n=e,u=()=>{n("update:modelValue",p.value),n("change",p.value)},a=y=>{y.key==="Enter"&&n("submit",p)},d=v(!1);return(y,c)=>(s(),_("div",{class:D([{disabled:l.disabled},"text-input-with-icon rounded-3xl flex items-center px-4"])},[l.icon?(s(),_("span",dt,g(l.icon),1)):S("",!0),ae(t("input",{"onUpdate:modelValue":c[0]||(c[0]=b=>p.value=b),disabled:l.disabled,placeholder:l.placeholder,type:d.value?"text":"password",onInput:u,onKeyup:a},null,40,pt),[[le,p.value]]),t("span",{class:"material-symbols-rounded cursor-pointer",onClick:c[1]||(c[1]=b=>d.value=!d.value)},g(d.value?"visibility":"visibility_off"),1)],2))}},O=V(_t,[["__scopeId","data-v-5e026540"]]),Q="reAudioPlayer One",mt=`https://audius.co/oauth/auth?scope=read&app_name=${Q}&redirect_uri=`,vt="/audius/callback",ht=()=>{const l=encodeURIComponent(`${window.location.origin}${vt}`),e=`${mt}${l}`;window.open(e,Q,"width=500,height=800")},yt=t("summary",{class:"cursor-pointer"},"How to",-1),ft=t("p",null,[T(" 1) Head over to the "),t("a",{href:"https://developer.spotify.com/dashboard/applications",target:"_blank"},"spotify developer dashboard")],-1),bt=t("p",null,"2) Create An App",-1),gt=t("p",null,"3) Enter any name and any description",-1),kt=t("p",null," 5) Copy and enter the client id and secret into the corresponding input field ",-1),wt=t("hr",{class:"my-4"},null,-1),$t=t("h5",null,"Client ID:",-1),xt=t("h5",{class:"mt-4"},"Client Secret:",-1),St=t("h3",{class:"mt-[10px]"},"Github",-1),Ct=t("h5",{class:"mt-4"},"PAT:",-1),Vt=t("h5",{class:"mt-4"},"Gist ID:",-1),Pt={class:"flex gap-4 justify-end mt-4"},It=t("h3",{class:"mt-[10px]"},"Audius",-1),At=C({__name:"Integration",setup(l){const e=v(!1),o=v({id:"",secret:""}),p=N(()=>e.value?Object.values(o.value).some(i=>i==="")?!1:o.value.id!==n.value.id||o.value.secret!==n.value.secret||e.value!==n.value.enabled:n.value.enabled),n=v({id:"",secret:"",enabled:!1});fetch("/api/config/spotify").then(async i=>{let r={id:"",secret:"",enabled:!1};if(i.status==200)r=await i.json();else if([204,401].includes(i.status))r={id:"restricted",secret:"restricted",enabled:!1};else throw new Error("Failed to fetch spotify config");n.value=r,n.value.enabled=![r.id,r.secret].includes("restricted"),e.value=n.value.enabled,o.value.id=r.id.replace("restricted",""),o.value.secret=r.secret.replace("restricted","")});const u=async()=>{if(!p.value)return;let i=o.value.id,r=o.value.secret;e.value||(r=i="restricted"),(await fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:i,secret:r})})).ok&&(n.value={id:i,secret:r,enabled:e.value})},a=v(null),d=v("");M().then(i=>{a.value=i,d.value=JSON.stringify(i)});const y=N(()=>a.value?JSON.stringify(a.value)!==d.value:!1),c=async()=>{y.value&&(await F(a.value),d.value=JSON.stringify(a.value))},h=`http://${window.location.host}/api/spotify/callback`,A=async()=>{var i,r;(r=(i=a.value)==null?void 0:i.github)!=null&&r.githubPat&&(a.value.github.gistId||(a.value.github.gistId=await ue.search(a.value.github.githubPat),a.value.github.gistId||oe.addError("Failed to find gist","You can start syncing directly in 'Local Data' (a Gist will be created for you) or enter the gist id manually")))};return q(()=>{var i,r;return(r=(i=a.value)==null?void 0:i.github)==null?void 0:r.githubPat},A),(i,r)=>(s(),_($,null,[m(I,{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=k=>e.value=k),class:"h3 mb-2",label:"Spotify"},null,8,["modelValue"]),t("details",null,[yt,ft,bt,gt,t("p",null,[T(" 4) Edit the settings: set the redirect url to "),t("a",{href:h},g(h))]),kt]),wt,$t,m(O,{modelValue:o.value.id,"onUpdate:modelValue":r[1]||(r[1]=k=>o.value.id=k),disabled:!e.value,icon:"token"},null,8,["modelValue","disabled"]),xt,m(O,{modelValue:o.value.secret,"onUpdate:modelValue":r[2]||(r[2]=k=>o.value.secret=k),disabled:!e.value,icon:"lock"},null,8,["modelValue","disabled"]),m(x,{disabled:!p.value,class:"ml-auto mt-4",icon:"save",label:"Save",onClick:u},null,8,["disabled"]),St,Ct,a.value?(s(),w(O,{key:0,modelValue:a.value.github.githubPat,"onUpdate:modelValue":r[3]||(r[3]=k=>a.value.github.githubPat=k),icon:"lock"},null,8,["modelValue"])):S("",!0),Vt,a.value?(s(),w(se,{key:1,modelValue:a.value.github.gistId,"onUpdate:modelValue":r[4]||(r[4]=k=>a.value.github.gistId=k),icon:"numbers"},null,8,["modelValue"])):S("",!0),t("div",Pt,[m(x,{disabled:!a.value||!a.value.github.githubPat||!!a.value.github.gistId,icon:"search",label:"Search",onClick:A},null,8,["disabled"]),m(x,{disabled:!a.value||!y.value,icon:"save",label:"Save",onClick:c},null,8,["disabled"])]),It,m(x,{icon:"link",label:"Connect",onClick:f(ht)},null,8,["onClick"])],64))}}),Tt=l=>(B("data-v-ae954c76"),l=l(),U(),l),Dt={class:"p-[10px] preferences"},Nt=Tt(()=>t("h1",{class:"w-full"},"Preferences",-1)),Bt={class:"wrapper"},Ut={class:"sections flex flex-col"},Et={class:"section p-2"},Ot={class:"h5 text-sm"},Lt=C({__name:"index",setup(l){const e={About:ge,Privacy:He,"Local Data":Je,Integrations:At,"Cache Policy":Ze,Appearance:ct,Player:ut},o=v([{name:"General",items:["About"]},{name:"My Data",items:["Privacy","Local Data","Integrations"]},{name:"Player",items:["Player","Cache Policy"]},{name:"Appearance",items:["Appearance"]}]),p=ne(),n=ie();let u=p.query.tab;const a=v("About");return Object.keys(e).includes(u)&&(a.value=u),q(a,d=>{const y={tab:d};n.replace({query:y})}),(d,y)=>(s(),_("div",Dt,[Nt,t("div",Bt,[t("div",Ut,[(s(!0),_($,null,P(o.value,c=>(s(),_("div",Et,[t("span",Ot,g(c.name),1),(s(!0),_($,null,P(c.items,b=>(s(),w(pe,{key:b,name:b,active:a.value===b,onClick:h=>a.value=b},null,8,["name","active","onClick"]))),128))]))),256))]),m(G,{class:"content h-max p-4 pt-0"},{default:L(()=>[t("h2",null,g(a.value),1),(s(),w(ce(e[a.value])))]),_:1})])]))}});const Rt=V(Lt,[["__scopeId","data-v-ae954c76"]]);export{Rt as default}; diff --git a/src/ui/dist/assets/index-e6a9a5a2.js.gz b/src/ui/dist/assets/index-e6a9a5a2.js.gz deleted file mode 100644 index 13091c615..000000000 Binary files a/src/ui/dist/assets/index-e6a9a5a2.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-effe4d2f.js.gz b/src/ui/dist/assets/index-effe4d2f.js.gz deleted file mode 100644 index d7e6ebb00..000000000 Binary files a/src/ui/dist/assets/index-effe4d2f.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-f2b722ff.js.gz b/src/ui/dist/assets/index-f2b722ff.js.gz deleted file mode 100644 index 622a3a341..000000000 Binary files a/src/ui/dist/assets/index-f2b722ff.js.gz and /dev/null differ diff --git a/src/ui/dist/assets/index-f2b722ff.js b/src/ui/dist/assets/index-f6a20c43.js similarity index 98% rename from src/ui/dist/assets/index-f2b722ff.js rename to src/ui/dist/assets/index-f6a20c43.js index 5185a033a..aa66e08f3 100644 --- a/src/ui/dist/assets/index-f2b722ff.js +++ b/src/ui/dist/assets/index-f6a20c43.js @@ -1 +1 @@ -import{i as W,c9 as $,o as y,c as g,g as F,u as d,cb as G,t as x,f as A,d as C,a as j,I as H,F as I,j as K,O as z,b as O,J as N,L as q,_ as V}from"./index-effe4d2f.js";var S={d:(a,t)=>{for(var e in t)S.o(t,e)&&!S.o(a,e)&&Object.defineProperty(a,e,{enumerable:!0,get:t[e]})},o:(a,t)=>Object.prototype.hasOwnProperty.call(a,t)},m={};function Y(a){let t=[],e=0;for(let o=0;oi?t[e++]=i:(2048>i?t[e++]=i>>6|192:((64512&i)==55296&&o+1>18|240,t[e++]=i>>12&63|128):t[e++]=i>>12|224,t[e++]=i>>6&63|128),t[e++]=63&i|128)}let n=0;for(e=0;en&&(n=2147483648+(2147483647&n)),n%=1e6,n.toString()+"."+n.toString()}S.d(m,{ZP:()=>Q,j1:()=>L,Gb:()=>J,e6:()=>P,XU:()=>Z,Iu:()=>M});const B=function(a,t){for(let e=0;e>>n:a<o.append("dt",i)),`https://translate.google.${e.tld}/translate_a/single?${o}`}const D={auto:"Automatic",af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",hy:"Armenian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",bg:"Bulgarian",ca:"Catalan",ceb:"Cebuano",ny:"Chichewa",zh:"Chinese Simplified","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",co:"Corsican",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",eo:"Esperanto",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",fy:"Frisian",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",iw:"Hebrew",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",is:"Icelandic",ig:"Igbo",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",jw:"Javanese",kn:"Kannada",kk:"Kazakh",km:"Khmer",rw:"Kinyarwanda",ko:"Korean",ku:"Kurdish (Kurmanji)",ky:"Kyrgyz",lo:"Lao",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"Macedonian",mg:"Malagasy",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mn:"Mongolian",my:"Myanmar (Burmese)",ne:"Nepali",no:"Norwegian",or:"Odia (Oriya)",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",sm:"Samoan",gd:"Scots Gaelic",sr:"Serbian",st:"Sesotho",sn:"Shona",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sw:"Swahili",sv:"Swedish",tg:"Tajik",ta:"Tamil",tt:"Tatar",te:"Telugu",th:"Thai",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",vi:"Vietnamese",cy:"Welsh",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zu:"Zulu"},J=a=>!!D[a];function P(a,t=!1){const e={text:"",pronunciation:"",from:{language:{didYouMean:!1,iso:""},text:{autoCorrected:!1,value:"",didYouMean:!1}}};if(a[0].forEach(n=>{n[0]?e.text+=n[0]:n[2]&&(e.pronunciation+=n[2])}),a[2]===a[8][0][0]?e.from.language.iso=a[2]:(e.from.language.didYouMean=!0,e.from.language.iso=a[8][0][0]),a[7]&&a[7][0]){let n=a[7][0];n=n.replace(//g,"["),n=n.replace(/<\/i><\/b>/g,"]"),e.from.text.value=n,a[7][5]===!0?e.from.text.autoCorrected=!0:e.from.text.didYouMean=!0}return t&&(e.raw=a),e}var X=function(a,t,e,n){return new(e||(e=Promise))(function(o,i){function w(u){try{p(n.next(u))}catch(r){i(r)}}function v(u){try{p(n.throw(u))}catch(r){i(r)}}function p(u){var r;u.done?o(u.value):(r=u.value,r instanceof e?r:new e(function(s){s(r)})).then(w,v)}p((n=n.apply(a,t||[])).next())})};let U="";const Z=a=>(U=a,M);function M(a,t={}){return X(this,void 0,void 0,function*(){const e=L(a,t),n=yield fetch(`${U}${e}`);if(!n.ok)throw new Error("Request failed");return P(yield n.json(),t.raw)})}const Q=M;m.ZP;m.j1;m.Gb;m.e6;var ee=m.XU;m.Iu;const ne={key:0,class:"fill-page"},ae={key:0},te={class:"w-full flex flex-row justify-end"},re={key:1,class:"lyrics"},se=["onClick"],ie=["onClick"],oe=W({__name:"index",setup(a){const t=ee("http://localhost:1234/api/cors/"),e=$(),n=r=>{var f,k;if(!((f=e.lyrics)!=null&&f.lyrics))return!1;const s=e.progress*1e3,l=e.lyrics.lyrics[r],c=parseInt(l.startTimeMs),h=parseInt(l.endTimeMs)?parseInt(l.endTimeMs):parseInt((k=e.lyrics.lyrics[r+1])==null?void 0:k.startTimeMs);if(s>=c&&s=h?"past":"future"},o=r=>{e.lyrics.lyrics[r].originalWorlds?w(r):i(r)},i=async r=>{const s=e.lyrics.lyrics[r];if(s.originalWorlds)return;const l=await t(s.words,{to:"en"});s.originalWorlds=s.words,s.words=l.text},w=r=>{const s=e.lyrics.lyrics[r];s.originalWorlds&&(s.words=s.originalWorlds,s.originalWorlds=null)},v=()=>{var r,s;(s=(r=e.lyrics)==null?void 0:r.lyrics)==null||s.forEach((l,c)=>{i(c)})},p=()=>{var r,s;(s=(r=e.lyrics)==null?void 0:r.lyrics)==null||s.forEach((l,c)=>{w(c)})},u=()=>{var s,l,c,h;const r=(l=(s=e.lyrics)==null?void 0:s.lyrics)==null?void 0:l.filter(f=>f.originalWorlds).length;return r&&r>((h=(c=e.lyrics)==null?void 0:c.lyrics)==null?void 0:h.length)/2};return(r,s)=>{var l,c,h,f,k,b;return y(),g(I,null,[F(G,{src:d(e).song.cover},null,8,["src"]),!d(e).lyrics||(l=d(e).lyrics)!=null&&l.error?(y(),g("div",ne,[(c=d(e).lyrics)!=null&&c.error?(y(),g("h1",ae,x((h=d(e).lyrics)==null?void 0:h.error),1)):(y(),A(q,{key:1}))])):C("",!0),j("div",te,[(f=d(e).lyrics)!=null&&f.lyrics?(y(),A(H,{key:0,icon:"translate",label:u()?"Show original":"Translate all",class:"mr-2",onClick:s[0]||(s[0]=_=>u()?p():v())},null,8,["label"])):C("",!0)]),(k=d(e).lyrics)!=null&&k.lyrics?(y(),g("div",re,[(y(!0),g(I,null,K((b=d(e).lyrics)==null?void 0:b.lyrics,(_,T)=>(y(),g("div",{class:z(["line",n(T)]),onClick:E=>d(e).seek(parseInt(_.startTimeMs)/1e3)},[O(x(_.words)+" ",1),j("span",{class:z(["material-symbols-rounded translate",{translated:_.originalWorlds}]),onClick:N(E=>o(T),["stop"])}," translate ",10,ie)],10,se))),256))])):C("",!0)],64)}}});const ce=V(oe,[["__scopeId","data-v-56ae1f29"]]);export{ce as default}; +import{i as W,c9 as $,o as y,c as g,g as F,u as d,cb as G,t as x,f as A,d as C,a as j,I as H,F as I,j as K,O as z,b as O,J as N,L as q,_ as V}from"./index-926884cb.js";var S={d:(a,t)=>{for(var e in t)S.o(t,e)&&!S.o(a,e)&&Object.defineProperty(a,e,{enumerable:!0,get:t[e]})},o:(a,t)=>Object.prototype.hasOwnProperty.call(a,t)},m={};function Y(a){let t=[],e=0;for(let o=0;oi?t[e++]=i:(2048>i?t[e++]=i>>6|192:((64512&i)==55296&&o+1>18|240,t[e++]=i>>12&63|128):t[e++]=i>>12|224,t[e++]=i>>6&63|128),t[e++]=63&i|128)}let n=0;for(e=0;en&&(n=2147483648+(2147483647&n)),n%=1e6,n.toString()+"."+n.toString()}S.d(m,{ZP:()=>Q,j1:()=>L,Gb:()=>J,e6:()=>P,XU:()=>Z,Iu:()=>M});const B=function(a,t){for(let e=0;e>>n:a<o.append("dt",i)),`https://translate.google.${e.tld}/translate_a/single?${o}`}const D={auto:"Automatic",af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",hy:"Armenian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",bg:"Bulgarian",ca:"Catalan",ceb:"Cebuano",ny:"Chichewa",zh:"Chinese Simplified","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",co:"Corsican",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",eo:"Esperanto",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",fy:"Frisian",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",iw:"Hebrew",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",is:"Icelandic",ig:"Igbo",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",jw:"Javanese",kn:"Kannada",kk:"Kazakh",km:"Khmer",rw:"Kinyarwanda",ko:"Korean",ku:"Kurdish (Kurmanji)",ky:"Kyrgyz",lo:"Lao",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"Macedonian",mg:"Malagasy",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mn:"Mongolian",my:"Myanmar (Burmese)",ne:"Nepali",no:"Norwegian",or:"Odia (Oriya)",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",sm:"Samoan",gd:"Scots Gaelic",sr:"Serbian",st:"Sesotho",sn:"Shona",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sw:"Swahili",sv:"Swedish",tg:"Tajik",ta:"Tamil",tt:"Tatar",te:"Telugu",th:"Thai",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",vi:"Vietnamese",cy:"Welsh",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zu:"Zulu"},J=a=>!!D[a];function P(a,t=!1){const e={text:"",pronunciation:"",from:{language:{didYouMean:!1,iso:""},text:{autoCorrected:!1,value:"",didYouMean:!1}}};if(a[0].forEach(n=>{n[0]?e.text+=n[0]:n[2]&&(e.pronunciation+=n[2])}),a[2]===a[8][0][0]?e.from.language.iso=a[2]:(e.from.language.didYouMean=!0,e.from.language.iso=a[8][0][0]),a[7]&&a[7][0]){let n=a[7][0];n=n.replace(//g,"["),n=n.replace(/<\/i><\/b>/g,"]"),e.from.text.value=n,a[7][5]===!0?e.from.text.autoCorrected=!0:e.from.text.didYouMean=!0}return t&&(e.raw=a),e}var X=function(a,t,e,n){return new(e||(e=Promise))(function(o,i){function w(u){try{p(n.next(u))}catch(r){i(r)}}function v(u){try{p(n.throw(u))}catch(r){i(r)}}function p(u){var r;u.done?o(u.value):(r=u.value,r instanceof e?r:new e(function(s){s(r)})).then(w,v)}p((n=n.apply(a,t||[])).next())})};let U="";const Z=a=>(U=a,M);function M(a,t={}){return X(this,void 0,void 0,function*(){const e=L(a,t),n=yield fetch(`${U}${e}`);if(!n.ok)throw new Error("Request failed");return P(yield n.json(),t.raw)})}const Q=M;m.ZP;m.j1;m.Gb;m.e6;var ee=m.XU;m.Iu;const ne={key:0,class:"fill-page"},ae={key:0},te={class:"w-full flex flex-row justify-end"},re={key:1,class:"lyrics"},se=["onClick"],ie=["onClick"],oe=W({__name:"index",setup(a){const t=ee("http://localhost:1234/api/cors/"),e=$(),n=r=>{var f,k;if(!((f=e.lyrics)!=null&&f.lyrics))return!1;const s=e.progress*1e3,l=e.lyrics.lyrics[r],c=parseInt(l.startTimeMs),h=parseInt(l.endTimeMs)?parseInt(l.endTimeMs):parseInt((k=e.lyrics.lyrics[r+1])==null?void 0:k.startTimeMs);if(s>=c&&s=h?"past":"future"},o=r=>{e.lyrics.lyrics[r].originalWorlds?w(r):i(r)},i=async r=>{const s=e.lyrics.lyrics[r];if(s.originalWorlds)return;const l=await t(s.words,{to:"en"});s.originalWorlds=s.words,s.words=l.text},w=r=>{const s=e.lyrics.lyrics[r];s.originalWorlds&&(s.words=s.originalWorlds,s.originalWorlds=null)},v=()=>{var r,s;(s=(r=e.lyrics)==null?void 0:r.lyrics)==null||s.forEach((l,c)=>{i(c)})},p=()=>{var r,s;(s=(r=e.lyrics)==null?void 0:r.lyrics)==null||s.forEach((l,c)=>{w(c)})},u=()=>{var s,l,c,h;const r=(l=(s=e.lyrics)==null?void 0:s.lyrics)==null?void 0:l.filter(f=>f.originalWorlds).length;return r&&r>((h=(c=e.lyrics)==null?void 0:c.lyrics)==null?void 0:h.length)/2};return(r,s)=>{var l,c,h,f,k,b;return y(),g(I,null,[F(G,{src:d(e).song.cover},null,8,["src"]),!d(e).lyrics||(l=d(e).lyrics)!=null&&l.error?(y(),g("div",ne,[(c=d(e).lyrics)!=null&&c.error?(y(),g("h1",ae,x((h=d(e).lyrics)==null?void 0:h.error),1)):(y(),A(q,{key:1}))])):C("",!0),j("div",te,[(f=d(e).lyrics)!=null&&f.lyrics?(y(),A(H,{key:0,icon:"translate",label:u()?"Show original":"Translate all",class:"mr-2",onClick:s[0]||(s[0]=_=>u()?p():v())},null,8,["label"])):C("",!0)]),(k=d(e).lyrics)!=null&&k.lyrics?(y(),g("div",re,[(y(!0),g(I,null,K((b=d(e).lyrics)==null?void 0:b.lyrics,(_,T)=>(y(),g("div",{class:z(["line",n(T)]),onClick:E=>d(e).seek(parseInt(_.startTimeMs)/1e3)},[O(x(_.words)+" ",1),j("span",{class:z(["material-symbols-rounded translate",{translated:_.originalWorlds}]),onClick:N(E=>o(T),["stop"])}," translate ",10,ie)],10,se))),256))])):C("",!0)],64)}}});const ce=V(oe,[["__scopeId","data-v-56ae1f29"]]);export{ce as default}; diff --git a/src/ui/dist/assets/index-f6a20c43.js.gz b/src/ui/dist/assets/index-f6a20c43.js.gz new file mode 100644 index 000000000..6f43f6350 Binary files /dev/null and b/src/ui/dist/assets/index-f6a20c43.js.gz differ diff --git a/src/ui/dist/assets/index-f7a162af.js b/src/ui/dist/assets/index-f7a162af.js new file mode 100644 index 000000000..637f95eaf --- /dev/null +++ b/src/ui/dist/assets/index-f7a162af.js @@ -0,0 +1 @@ +import{i as S,o,c as _,t as g,O as T,_ as V,q as h,E as X,D,f as w,d as C,a as t,b as N,F as $,m as B,n as U,c9 as Z,g as m,I as x,j as P,w as L,h as ee,M as R,u as f,C as G,aq as te,cm as H,cn as F,co as Y,cp as J,cq as q,G as j,bY as ae,bM as le,Y as se,cr as oe,B as ne,s as ie,bk as ce}from"./index-926884cb.js";import{_ as re}from"./Markdown.vue_vue_type_style_index_0_lang-863128c2.js";import{T as W}from"./TrackCompact-9f5e6d25.js";import{G as ue}from"./gistClient-c2987d49.js";const de=S({__name:"TabButton",props:{name:{type:String,required:!0},active:{type:Boolean,default:!1}},setup(l){return(e,s)=>(o(),_("button",{class:T(["btn",{active:l.active}])},g(l.name),3))}});const pe=V(de,[["__scopeId","data-v-3f038910"]]),_e="0.11.26",z=l=>(B("data-v-6c134c33"),l=l(),U(),l),me={class:"flex flex-col"},ve={key:0,class:"text-sm flex items-center gap-2 latest"},he=z(()=>t("span",{class:"material-symbols-rounded"},"check",-1)),ye={key:1,class:"text-sm flex items-center gap-2 update"},fe=z(()=>t("span",{class:"material-symbols-rounded"},"update",-1)),M="0.11.2",be=S({__name:"About",setup(l){const e=h(""),s=h("");X(async()=>{const c=await(await fetch("https://api.github.com/repos/reAudioPlayer/one/releases/latest")).json();e.value=c.tag_name,s.value=c.body});const p=D(()=>e.value===M),n=D(()=>_e.split(".").pop()),d=h(null);return(a,c)=>(o(),_("div",me,[s.value?(o(),w(re,{key:0,content:s.value,title:"What's new in "+e.value,ref_key:"changelog",ref:d,onClose:c[0]||(c[0]=()=>s.value="")},null,8,["content","title"])):C("",!0),t("span",null,[t("strong",null,"v"+g(M)),N(" (Build "+g(n.value)+") ",1)]),e.value?(o(),_($,{key:1},[p.value?(o(),_("span",ve,[he,N(" You're on the latest version "),t("a",{class:"cursor-pointer",onClick:c[1]||(c[1]=y=>{var r;return(r=d.value)==null?void 0:r.show()})}," What's changed? ")])):(o(),_("span",ye,[fe,N(" Update available: "+g(e.value)+" ",1),t("a",{class:"cursor-pointer",onClick:c[2]||(c[2]=y=>{var r;return(r=d.value)==null?void 0:r.show()})}," What's changed? ")]))],64)):C("",!0)]))}});const ge=V(be,[["__scopeId","data-v-6c134c33"]]);const E=l=>(B("data-v-16d50c59"),l=l(),U(),l),ke={class:"wrap"},we=E(()=>t("h3",null,"Browser Data",-1)),$e=E(()=>t("h3",null,"Import / Export",-1)),xe={class:"flex gap-4 mb-4"},Se={class:"covers mb-2"},Ce=E(()=>t("h3",null,"Local covers",-1)),Ve={key:0,class:"items gap-4"},Pe={class:"flex justify-between w-full mb-4"},Ie={class:"overflow-hidden"},Ae=["onClick"],De={key:1,class:"text-muted italic"},Ne={class:"tracks"},Te=E(()=>t("h3",null,"Local tracks",-1)),Be={key:0,class:"items gap-4"},Ue={class:"flex justify-between w-full mb-4"},Ee={class:"overflow-hidden"},Oe=["onClick"],Le={class:"flex justify-center w-full mb-4"},Ge=["src"],qe={key:1,class:"text-muted italic"},je={__name:"LocalData",setup(l){const e=h([]),s=h([]),p=Z(),n=()=>{fetch("/api/config/images").then(r=>r.json()).then(r=>e.value=r),fetch("/api/config/tracks").then(r=>r.json()).then(r=>s.value=r)},d=async r=>{await fetch("/api/config/images",{method:"DELETE",body:JSON.stringify({name:r})}),n()},a=async r=>{fetch("/api/config/tracks",{method:"DELETE",body:JSON.stringify({name:r})}),n()},c=r=>{p.loadPlaylist("track",r)};n();const y=()=>{localStorage.clear(),sessionStorage.clear(),window.location.reload()};return(r,b)=>(o(),_("div",ke,[we,m(x,{class:"mb-4",icon:"delete",label:"Clean browser settings",onClick:y}),$e,t("div",xe,[m(x,{icon:"backup",label:"Back up / Export",onClick:b[0]||(b[0]=v=>r.$router.push("/export"))}),m(x,{icon:"cloud_download",label:"Import",onClick:b[1]||(b[1]=v=>r.$router.push("/import"))})]),t("div",Se,[Ce,e.value.length?(o(),_("div",Ve,[(o(!0),_($,null,P(e.value,(v,A)=>(o(),w(G,{key:A,class:"cover-wrapper p-4"},{default:L(()=>[m(ee,{src:v.name,class:"rounded-xl mb-4"},null,8,["src"]),t("div",Pe,[t("p",Ie,[m(R,{text:v.name},null,8,["text"])]),t("span",{class:"ml-2 material-symbols-rounded cursor-pointer",onClick:i=>d(v.name)},"delete",8,Ae)]),(o(!0),_($,null,P(v.songs,(i,u)=>(o(),w(f(W),{id:i.id,key:u,artist:i.artist,cover:i.cover,title:i.title,onPlay:k=>c(i.id)},null,8,["id","artist","cover","title","onPlay"]))),128))]),_:2},1024))),128))])):(o(),_("span",De,"No local covers"))]),t("div",Ne,[Te,s.value.length?(o(),_("div",Be,[(o(!0),_($,null,P(s.value,(v,A)=>(o(),w(G,{key:A,class:"track p-4"},{default:L(()=>[t("div",Ue,[t("p",Ee,[m(R,{text:v.name},null,8,["text"])]),t("span",{class:"material-symbols-rounded cursor-pointer",onClick:i=>a(v.name)},"delete",8,Oe)]),t("div",Le,[t("audio",{src:"/api/"+v.name.replace("local:","/src/tracks/"),controls:""},null,8,Ge)]),(o(!0),_($,null,P(v.songs,(i,u)=>(o(),w(f(W),{id:i.id,key:u,artist:i.artist,cover:i.cover,title:i.title,onPlay:k=>c(i.id)},null,8,["id","artist","cover","title","onPlay"]))),128))]),_:2},1024))),128))])):(o(),_("span",qe,"No local tracks"))])]))}},Re=V(je,[["__scopeId","data-v-16d50c59"]]),Je={class:"markdown-body"},We=te("

By default, reAudioPlayer does not share any data with third parties.

Optionally, when entering your Spotify credentials, reAudioPlayer can access your Spotify data to offer the following features:

  • Display your Spotify playlists and offer importing them
  • Search songs on Spotify without leaving reAudioPlayer and adding them to your playlists
  • Display song information (BPM, key, etc.) from Spotify
  • Search artists on Spotify without leaving reAudioPlayer to display their information and follow them on Spotify
  • Display artist information (genres, popularity, etc.) from Spotify
  • Provide the release radar

Optionally, when entering your GitHub credentials, reAudioPlayer can access your GitHub data to offer the following features:

  • Storing your library in a GitHub Gist
  • Importing your library from a GitHub Gist

All data stays between your device and Spotify or Github, respectively.

Depending on the cache policy, reAudioPlayer stores songs locally to improve performance and reduce network traffic. The browser additionally stores the following user preferences in local storage:

  • Theme
  • Selected audio player
  • Volume
  • Repeat mode
  • Picture in Picture mode
  • pre-rendered placeholder images

You can manage your local data, that you manually uploaded to reAudioPlayer, in section “Local Data”. None of this data left or will leave your device.

",9),Me=[We],He={__name:"Privacy",setup(l,{expose:e}){return e({frontmatter:{}}),(p,n)=>(o(),_("div",Je,Me))}},Fe={class:"material-symbols-rounded ms-wght-300 cursor-pointer"},Ye={class:"checkbox__label"},ze={class:"checkbox__label__title"},Ke={class:"checkbox__label__sublabel italic"},Qe=S({__name:"Checkbox",props:{modelValue:{type:Boolean,required:!0},label:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},sublabel:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup(l,{emit:e}){const s=l,p=e,n=a=>p("update:modelValue",a),d=()=>{s.disabled||n(!s.modelValue)};return(a,c)=>(o(),_("div",{class:T([{"opacity-50":l.disabled},"checkbox"]),onClick:d},[t("span",Fe,g(l.modelValue?"check_box":"check_box_outline_blank"),1),t("div",Ye,[t("div",ze,g(l.label),1),t("div",Ke,g(l.sublabel),1)])],2))}});const I=V(Qe,[["__scopeId","data-v-be9fa887"]]),Xe={class:"relative"},Ze=S({__name:"Cache",setup(l){const e=h(null),s=h("");H().then(d=>{e.value=d,s.value=JSON.stringify(d)});const p=D(()=>e.value?JSON.stringify(e.value)!==s.value:!1),n=async()=>{p.value&&(await Y(e.value),s.value=JSON.stringify(e.value))};return(d,a)=>(o(),_("div",Xe,[e.value?(o(),w(I,{key:0,modelValue:e.value.cache.preserve,"onUpdate:modelValue":a[0]||(a[0]=c=>e.value.cache.preserve=c),label:"Preserve cache"},null,8,["modelValue"])):C("",!0),e.value?(o(),w(I,{key:1,modelValue:e.value.cache.preserveInSession,"onUpdate:modelValue":a[1]||(a[1]=c=>e.value.cache.preserveInSession=c),disabled:e.value.cache.preserve,label:"Preserve cache in session"},null,8,["modelValue","disabled"])):C("",!0),e.value?(o(),w(F,{key:2,modelValue:e.value.cache.strategy,"onUpdate:modelValue":a[2]||(a[2]=c=>e.value.cache.strategy=c),options:[{value:"all",label:"All Songs"},{value:"playlist",label:"Current Playlist"},{value:"currentNext",label:"Current + Next Song "},{value:"current",label:"Current Song Only"}],icon:"cached"},null,8,["modelValue"])):C("",!0),m(x,{disabled:!e.value||!p.value,class:"ml-auto mt-4",icon:"save",label:"Save",onClick:n},null,8,["disabled"])]))}});const et={name:"Theme",props:{name:String},methods:{selected(){return J.getCurrentTheme()==this.name},select(){J.setTheme(this.name),this.$emit("selected")}}},tt=["src"];function at(l,e,s,p,n,d){return o(),_("div",{onClick:e[0]||(e[0]=(...a)=>d.select&&d.select(...a)),class:"wrapper"},[t("p",{class:T(["mb-4",{selected:d.selected()}])},g(s.name),3),t("img",{src:`/assets/img/themes/${this.name}.svg`,class:T({selected:d.selected()})},null,10,tt)])}const lt=V(et,[["render",at],["__scopeId","data-v-74855c2d"]]),K=l=>(B("data-v-5cc6477c"),l=l(),U(),l),st=K(()=>t("h3",{class:"mt-[10px]"},"Theme",-1)),ot={class:"themes"},nt=K(()=>t("h3",{class:"mt-[10px]"},"Sidebar",-1)),it=S({__name:"Appearance",setup(l){const e=q(),s=["dynamic","light","dark"];return(p,n)=>(o(),_($,null,[st,m(I,{modelValue:f(e).ambient,"onUpdate:modelValue":n[0]||(n[0]=d=>f(e).ambient=d),disabled:!f(e).themeSupportsAmbient,label:"Ambient"},null,8,["modelValue","disabled"]),t("div",ot,[(o(),_($,null,P(s,(d,a)=>m(lt,{key:a,name:d},null,8,["name"])),64))]),nt,m(I,{modelValue:f(e).sidebar.news,"onUpdate:modelValue":n[1]||(n[1]=d=>f(e).sidebar.news=d),label:"Show 'News' Tab"},null,8,["modelValue"]),m(I,{modelValue:f(e).sidebar.sports,"onUpdate:modelValue":n[2]||(n[2]=d=>f(e).sidebar.sports=d),label:"Show 'Sports' Tab"},null,8,["modelValue"])],64))}});const ct=V(it,[["__scopeId","data-v-5cc6477c"]]),rt={class:"relative"},ut=S({__name:"Player",setup(l){const e=q();return(s,p)=>(o(),_("div",rt,[m(I,{modelValue:f(e).player.pictureInPicture,"onUpdate:modelValue":p[0]||(p[0]=n=>f(e).player.pictureInPicture=n),label:"Support Picture in Picture",sublabel:"this will slightly reduce performance"},null,8,["modelValue"]),m(F,{modelValue:f(e).player.type,"onUpdate:modelValue":p[1]||(p[1]=n=>f(e).player.type=n),options:[{value:"web",label:"Native player",icon:"horizontal_rule"},{value:"web/wave",label:"Wave player",icon:"graphic_eq"}],icon:"music_note"},null,8,["modelValue"])]))}});const dt={key:0,class:"material-symbols-rounded"},pt=["disabled","placeholder","type"],_t={__name:"PasswordInputWithIcon",props:{icon:String,placeholder:String,modelValue:String,disabled:Boolean},emits:["update:modelValue","change","submit"],setup(l,{emit:e}){const s=l,p=h(s.modelValue);j(()=>s.modelValue,y=>{p.value=y});const n=e,d=()=>{n("update:modelValue",p.value),n("change",p.value)},a=y=>{y.key==="Enter"&&n("submit",p)},c=h(!1);return(y,r)=>(o(),_("div",{class:T([{disabled:l.disabled},"text-input-with-icon rounded-3xl flex items-center px-4"])},[l.icon?(o(),_("span",dt,g(l.icon),1)):C("",!0),ae(t("input",{"onUpdate:modelValue":r[0]||(r[0]=b=>p.value=b),disabled:l.disabled,placeholder:l.placeholder,type:c.value?"text":"password",onInput:d,onKeyup:a},null,40,pt),[[le,p.value]]),t("span",{class:"material-symbols-rounded cursor-pointer",onClick:r[1]||(r[1]=b=>c.value=!c.value)},g(c.value?"visibility":"visibility_off"),1)],2))}},O=V(_t,[["__scopeId","data-v-5e026540"]]),Q="reAudioPlayer One",mt=`https://audius.co/oauth/auth?scope=read&app_name=${Q}&redirect_uri=`,vt="/audius/callback",ht=()=>{const l=encodeURIComponent(`${window.location.origin}${vt}`),e=`${mt}${l}`;window.open(e,Q,"width=500,height=800")},yt=t("summary",{class:"cursor-pointer"},"How to",-1),ft=t("p",null,[N(" 1) Head over to the "),t("a",{href:"https://developer.spotify.com/dashboard/applications",target:"_blank"},"spotify developer dashboard")],-1),bt=t("p",null,"2) Create An App",-1),gt=t("p",null,"3) Enter any name and any description",-1),kt=t("p",null," 5) Copy and enter the client id and secret into the corresponding input field ",-1),wt=t("hr",{class:"my-4"},null,-1),$t=t("h5",null,"Client ID:",-1),xt=t("h5",{class:"mt-4"},"Client Secret:",-1),St=t("h3",{class:"mt-[10px]"},"Github",-1),Ct=t("h5",{class:"mt-4"},"PAT:",-1),Vt=t("h5",{class:"mt-4"},"Gist ID:",-1),Pt={class:"flex gap-4 justify-end mt-4"},It=t("h3",{class:"mt-[10px]"},"Audius",-1),At=S({__name:"Integration",setup(l){const e=h(!1),s=h({id:"",secret:""}),p=D(()=>e.value?Object.values(s.value).some(i=>i==="")?!1:s.value.id!==n.value.id||s.value.secret!==n.value.secret||e.value!==n.value.enabled:n.value.enabled),n=h({id:"",secret:"",enabled:!1});fetch("/api/config/spotify").then(async i=>{let u={id:"",secret:"",enabled:!1};if(i.status==200)u=await i.json();else if([204,401].includes(i.status))u={id:"restricted",secret:"restricted",enabled:!1};else throw new Error("Failed to fetch spotify config");n.value=u,n.value.enabled=![u.id,u.secret].includes("restricted"),e.value=n.value.enabled,s.value.id=u.id.replace("restricted",""),s.value.secret=u.secret.replace("restricted","")});const d=async()=>{if(!p.value)return;let i=s.value.id,u=s.value.secret;e.value||(u=i="restricted"),(await fetch("/api/config/spotify",{method:"POST",body:JSON.stringify({id:i,secret:u})})).ok&&(n.value={id:i,secret:u,enabled:e.value})},a=h(null),c=h("");H().then(i=>{a.value=i,c.value=JSON.stringify(i)});const y=D(()=>a.value?JSON.stringify(a.value)!==c.value:!1),r=async()=>{y.value&&(await Y(a.value),c.value=JSON.stringify(a.value))},v=`http://${window.location.host}/api/spotify/callback`,A=async()=>{var i,u;(u=(i=a.value)==null?void 0:i.github)!=null&&u.githubPat&&(a.value.github.gistId||(a.value.github.gistId=await ue.search(a.value.github.githubPat),a.value.github.gistId||oe.addError("Failed to find gist","You can start syncing directly in 'Local Data' (a Gist will be created for you) or enter the gist id manually")))};return j(()=>{var i,u;return(u=(i=a.value)==null?void 0:i.github)==null?void 0:u.githubPat},A),(i,u)=>(o(),_($,null,[m(I,{modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=k=>e.value=k),class:"h3 mb-2",label:"Spotify"},null,8,["modelValue"]),t("details",null,[yt,ft,bt,gt,t("p",null,[N(" 4) Edit the settings: set the redirect url to "),t("a",{href:v},g(v))]),kt]),wt,$t,m(O,{modelValue:s.value.id,"onUpdate:modelValue":u[1]||(u[1]=k=>s.value.id=k),disabled:!e.value,icon:"token"},null,8,["modelValue","disabled"]),xt,m(O,{modelValue:s.value.secret,"onUpdate:modelValue":u[2]||(u[2]=k=>s.value.secret=k),disabled:!e.value,icon:"lock"},null,8,["modelValue","disabled"]),m(x,{disabled:!p.value,class:"ml-auto mt-4",icon:"save",label:"Save",onClick:d},null,8,["disabled"]),St,Ct,a.value?(o(),w(O,{key:0,modelValue:a.value.github.githubPat,"onUpdate:modelValue":u[3]||(u[3]=k=>a.value.github.githubPat=k),icon:"lock"},null,8,["modelValue"])):C("",!0),Vt,a.value?(o(),w(se,{key:1,modelValue:a.value.github.gistId,"onUpdate:modelValue":u[4]||(u[4]=k=>a.value.github.gistId=k),icon:"numbers"},null,8,["modelValue"])):C("",!0),t("div",Pt,[m(x,{disabled:!a.value||!a.value.github.githubPat||!!a.value.github.gistId,icon:"search",label:"Search",onClick:A},null,8,["disabled"]),m(x,{disabled:!a.value||!y.value,icon:"save",label:"Save",onClick:r},null,8,["disabled"])]),It,m(x,{icon:"link",label:"Connect",onClick:f(ht)},null,8,["onClick"])],64))}}),Dt={class:"flex items-center gap-2"},Nt=S({__name:"Developer",setup(l){q();const e=()=>{fetch("/api/system/kill")},s=()=>{fetch("/api/system/restart/nginx")};return(p,n)=>(o(),_("div",Dt,[m(x,{icon:"refresh",label:"Restart",onClick:e,type:"danger"}),m(x,{icon:"refresh",label:"Restart Nginx",onClick:s})]))}}),Tt=l=>(B("data-v-4ad07a26"),l=l(),U(),l),Bt={class:"p-[10px] preferences"},Ut=Tt(()=>t("h1",{class:"w-full"},"Preferences",-1)),Et={class:"wrapper"},Ot={class:"sections flex flex-col"},Lt={class:"section p-2"},Gt={class:"h5 text-sm"},qt=S({__name:"index",setup(l){const e={About:ge,Privacy:He,"Local Data":Re,Integrations:At,"Cache Policy":Ze,Appearance:ct,Player:ut,Developer:Nt},s=D(()=>[{name:"General",items:["About"]},{name:"My Data",items:["Privacy","Local Data","Integrations"]},{name:"Player",items:["Player","Cache Policy"]},{name:"Appearance",items:["Appearance"]}]),p=ne(),n=ie();let d=p.query.tab;const a=h("About");return Object.keys(e).includes(d)&&(a.value=d),j(a,c=>{const y={tab:c};n.replace({query:y})}),(c,y)=>(o(),_("div",Bt,[Ut,t("div",Et,[t("div",Ot,[(o(!0),_($,null,P(s.value,r=>(o(),_("div",Lt,[t("span",Gt,g(r.name),1),(o(!0),_($,null,P(r.items,b=>(o(),w(pe,{key:b,name:b,active:a.value===b,onClick:v=>a.value=b},null,8,["name","active","onClick"]))),128))]))),256))]),m(G,{class:"content h-max p-4 pt-0"},{default:L(()=>[t("h2",null,g(a.value),1),(o(),w(ce(e[a.value])))]),_:1})])]))}});const Mt=V(qt,[["__scopeId","data-v-4ad07a26"]]);export{Mt as default}; diff --git a/src/ui/dist/assets/index-f7a162af.js.gz b/src/ui/dist/assets/index-f7a162af.js.gz new file mode 100644 index 000000000..87368bddb Binary files /dev/null and b/src/ui/dist/assets/index-f7a162af.js.gz differ diff --git a/src/ui/dist/assets/spotify-50eca206.js b/src/ui/dist/assets/spotify-3cee06ae.js similarity index 93% rename from src/ui/dist/assets/spotify-50eca206.js rename to src/ui/dist/assets/spotify-3cee06ae.js index 8ab8804f7..0f8739021 100644 --- a/src/ui/dist/assets/spotify-50eca206.js +++ b/src/ui/dist/assets/spotify-3cee06ae.js @@ -1 +1 @@ -import{o as c,c as e,a as o}from"./index-effe4d2f.js";const t={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 168 168"},s=o("path",{fill:"#111",d:"M83.996.277C37.747.277.253 37.77.253 84.019c0 46.251 37.494 83.741 83.743 83.741 46.254 0 83.744-37.49 83.744-83.741 0-46.246-37.49-83.738-83.745-83.738l.001-.004zm38.404 120.78a5.217 5.217 0 0 1-7.18 1.73c-19.662-12.01-44.414-14.73-73.564-8.07a5.222 5.222 0 0 1-6.249-3.93 5.213 5.213 0 0 1 3.926-6.25c31.9-7.291 59.263-4.15 81.337 9.34 2.46 1.51 3.24 4.72 1.73 7.18zm10.25-22.805c-1.89 3.075-5.91 4.045-8.98 2.155-22.51-13.839-56.823-17.846-83.448-9.764-3.453 1.043-7.1-.903-8.148-4.35a6.538 6.538 0 0 1 4.354-8.143c30.413-9.228 68.222-4.758 94.072 11.127 3.07 1.89 4.04 5.91 2.15 8.976v-.001zm.88-23.744c-26.99-16.031-71.52-17.505-97.289-9.684-4.138 1.255-8.514-1.081-9.768-5.219a7.835 7.835 0 0 1 5.221-9.771c29.581-8.98 78.756-7.245 109.83 11.202a7.823 7.823 0 0 1 2.74 10.733c-2.2 3.722-7.02 4.949-10.73 2.739z"},null,-1),a=[s];function n(r,l){return c(),e("svg",t,a)}const _={render:n};export{_ as s}; +import{o as c,c as e,a as o}from"./index-926884cb.js";const t={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 168 168"},s=o("path",{fill:"#111",d:"M83.996.277C37.747.277.253 37.77.253 84.019c0 46.251 37.494 83.741 83.743 83.741 46.254 0 83.744-37.49 83.744-83.741 0-46.246-37.49-83.738-83.745-83.738l.001-.004zm38.404 120.78a5.217 5.217 0 0 1-7.18 1.73c-19.662-12.01-44.414-14.73-73.564-8.07a5.222 5.222 0 0 1-6.249-3.93 5.213 5.213 0 0 1 3.926-6.25c31.9-7.291 59.263-4.15 81.337 9.34 2.46 1.51 3.24 4.72 1.73 7.18zm10.25-22.805c-1.89 3.075-5.91 4.045-8.98 2.155-22.51-13.839-56.823-17.846-83.448-9.764-3.453 1.043-7.1-.903-8.148-4.35a6.538 6.538 0 0 1 4.354-8.143c30.413-9.228 68.222-4.758 94.072 11.127 3.07 1.89 4.04 5.91 2.15 8.976v-.001zm.88-23.744c-26.99-16.031-71.52-17.505-97.289-9.684-4.138 1.255-8.514-1.081-9.768-5.219a7.835 7.835 0 0 1 5.221-9.771c29.581-8.98 78.756-7.245 109.83 11.202a7.823 7.823 0 0 1 2.74 10.733c-2.2 3.722-7.02 4.949-10.73 2.739z"},null,-1),a=[s];function n(r,l){return c(),e("svg",t,a)}const _={render:n};export{_ as s}; diff --git a/src/ui/dist/assets/spotify-3cee06ae.js.gz b/src/ui/dist/assets/spotify-3cee06ae.js.gz new file mode 100644 index 000000000..72715560b Binary files /dev/null and b/src/ui/dist/assets/spotify-3cee06ae.js.gz differ diff --git a/src/ui/dist/assets/spotify-50eca206.js.gz b/src/ui/dist/assets/spotify-50eca206.js.gz deleted file mode 100644 index 89bfea1c7..000000000 Binary files a/src/ui/dist/assets/spotify-50eca206.js.gz and /dev/null differ diff --git a/src/ui/dist/index.html b/src/ui/dist/index.html index 6ff6c3134..89a0e0687 100644 --- a/src/ui/dist/index.html +++ b/src/ui/dist/index.html @@ -48,8 +48,8 @@ reAudioPlayer One - - + + diff --git a/src/ui/dist/index.html.gz b/src/ui/dist/index.html.gz index 0647389b7..9a411758d 100644 Binary files a/src/ui/dist/index.html.gz and b/src/ui/dist/index.html.gz differ diff --git a/src/ui/dist/sw.js b/src/ui/dist/sw.js index 7641c67fe..2665f847c 100644 --- a/src/ui/dist/sw.js +++ b/src/ui/dist/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,r)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const t=s=>l(s,n),a={module:{uri:n},exports:u,require:t};e[n]=Promise.all(i.map((s=>a[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-fa446783"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/Albums-9b5db7b3.css",revision:null},{url:"assets/Albums-e315f40c.js",revision:null},{url:"assets/Artist-320cfdeb.js",revision:null},{url:"assets/Artist-a6b528f5.css",revision:null},{url:"assets/Artists-45473996.css",revision:null},{url:"assets/Artists-9a115461.js",revision:null},{url:"assets/BigPlayer-4db387e6.css",revision:null},{url:"assets/BigPlayer-82fedc52.js",revision:null},{url:"assets/Breaking-e008ad36.js",revision:null},{url:"assets/CollectionHeader-9c02c260.css",revision:null},{url:"assets/CollectionHeader-b8a4afb0.js",revision:null},{url:"assets/Create-8ab3526b.css",revision:null},{url:"assets/Create-b56d4917.js",revision:null},{url:"assets/Editor-29aa8a80.css",revision:null},{url:"assets/Editor-728b12af.js",revision:null},{url:"assets/EditSong.vue_vue_type_script_setup_true_lang-a1ca5b19.js",revision:null},{url:"assets/Explore-1b45015b.css",revision:null},{url:"assets/Explore-4b9b1614.js",revision:null},{url:"assets/Export-50946e36.js",revision:null},{url:"assets/Export-a03f6dd4.css",revision:null},{url:"assets/FactCard-3c5d1fcf.css",revision:null},{url:"assets/FactCard-e9e3d5c4.js",revision:null},{url:"assets/FullShelf-62d1d109.css",revision:null},{url:"assets/FullShelf-94271883.js",revision:null},{url:"assets/gistClient-63edeca1.js",revision:null},{url:"assets/Import-5bb9c089.css",revision:null},{url:"assets/Import-d1f36c56.js",revision:null},{url:"assets/ImportLink-dd654ee2.js",revision:null},{url:"assets/ImportLink-fa9af2ae.css",revision:null},{url:"assets/index-1de74717.css",revision:null},{url:"assets/index-3d76937e.css",revision:null},{url:"assets/index-47e6e554.js",revision:null},{url:"assets/index-4e4ed216.css",revision:null},{url:"assets/index-5d1bd560.js",revision:null},{url:"assets/index-5f698628.css",revision:null},{url:"assets/index-712f8d27.js",revision:null},{url:"assets/index-bd89c879.css",revision:null},{url:"assets/index-c7c58561.css",revision:null},{url:"assets/index-e6a9a5a2.js",revision:null},{url:"assets/index-effe4d2f.js",revision:null},{url:"assets/index-f2b722ff.js",revision:null},{url:"assets/Insight-8c46a3d4.css",revision:null},{url:"assets/Insight-a38a8858.js",revision:null},{url:"assets/Liked-7933f62e.js",revision:null},{url:"assets/Markdown-d883632e.css",revision:null},{url:"assets/Markdown.vue_vue_type_style_index_0_lang-bbb35b77.js",revision:null},{url:"assets/needles/needles-worker.js",revision:"5d9e2eedeab164e3b968a86bdf450d2f"},{url:"assets/News-99169f9d.css",revision:null},{url:"assets/News-bc3272d2.js",revision:null},{url:"assets/NewsArticle-03a45240.css",revision:null},{url:"assets/NewsArticle-fbd5f10d.js",revision:null},{url:"assets/Normal-e24a5b2f.js",revision:null},{url:"assets/playerInPicture-af203fdf.js",revision:null},{url:"assets/Playlist.vue_vue_type_script_setup_true_lang-48ab6b8c.js",revision:null},{url:"assets/PlaylistEntry-4b74ffe1.css",revision:null},{url:"assets/PlaylistEntry-9c8199d3.js",revision:null},{url:"assets/PlaylistItem-1de8bde1.css",revision:null},{url:"assets/PlaylistItem-8e935ec4.js",revision:null},{url:"assets/Playlists-45ff5629.js",revision:null},{url:"assets/Playlists-d44628c1.css",revision:null},{url:"assets/Releases-b3f5cb50.css",revision:null},{url:"assets/Releases-d2d1819d.js",revision:null},{url:"assets/Sports-385f73f9.css",revision:null},{url:"assets/Sports-86dac5f9.js",revision:null},{url:"assets/spotify-50eca206.js",revision:null},{url:"assets/Template-01e8e5fe.css",revision:null},{url:"assets/Template-e0818326.js",revision:null},{url:"assets/Track-4d6e682b.js",revision:null},{url:"assets/Track-7c1d0a5c.css",revision:null},{url:"assets/TrackCompact-79c8b159.css",revision:null},{url:"assets/TrackCompact-8c571f42.js",revision:null},{url:"assets/Welcome-5b21c29e.css",revision:null},{url:"assets/Welcome-c9a11eb5.js",revision:null},{url:"index.html",revision:"e930f032941d2e3d5540ef49ff38149f"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.png",revision:"81eb710c3fadc823ae3bb676eacf1795"},{url:"manifest.webmanifest",revision:"54fda1775a89a999bda4c67bd363bb64"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/api/]}))})); +if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,r)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const t=s=>l(s,n),a={module:{uri:n},exports:u,require:t};e[n]=Promise.all(i.map((s=>a[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-fa446783"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/Albums-9666741f.js",revision:null},{url:"assets/Albums-9b5db7b3.css",revision:null},{url:"assets/Artist-144ae9ea.js",revision:null},{url:"assets/Artist-a6b528f5.css",revision:null},{url:"assets/Artists-45473996.css",revision:null},{url:"assets/Artists-ee6d8494.js",revision:null},{url:"assets/BigPlayer-4db387e6.css",revision:null},{url:"assets/BigPlayer-f7f84fb2.js",revision:null},{url:"assets/Breaking-4d1ad9b4.js",revision:null},{url:"assets/CollectionHeader-55cbbce2.js",revision:null},{url:"assets/CollectionHeader-9c02c260.css",revision:null},{url:"assets/Create-8ab3526b.css",revision:null},{url:"assets/Create-fcb01c1e.js",revision:null},{url:"assets/Editor-059c28c4.js",revision:null},{url:"assets/Editor-29aa8a80.css",revision:null},{url:"assets/EditSong.vue_vue_type_script_setup_true_lang-28f6161c.js",revision:null},{url:"assets/Explore-1b45015b.css",revision:null},{url:"assets/Explore-6a451902.js",revision:null},{url:"assets/Export-a03f6dd4.css",revision:null},{url:"assets/Export-be62f3c3.js",revision:null},{url:"assets/FactCard-3c5d1fcf.css",revision:null},{url:"assets/FactCard-517d18b6.js",revision:null},{url:"assets/FullShelf-62d1d109.css",revision:null},{url:"assets/FullShelf-e5484026.js",revision:null},{url:"assets/gistClient-c2987d49.js",revision:null},{url:"assets/Import-2f67c72f.js",revision:null},{url:"assets/Import-5bb9c089.css",revision:null},{url:"assets/ImportLink-a264ba07.js",revision:null},{url:"assets/ImportLink-fa9af2ae.css",revision:null},{url:"assets/index-2f9f0259.css",revision:null},{url:"assets/index-3d76937e.css",revision:null},{url:"assets/index-45d67ac2.js",revision:null},{url:"assets/index-4e4ed216.css",revision:null},{url:"assets/index-6034035d.js",revision:null},{url:"assets/index-673825f1.js",revision:null},{url:"assets/index-6ee17978.css",revision:null},{url:"assets/index-8f9fd7d1.css",revision:null},{url:"assets/index-926884cb.js",revision:null},{url:"assets/index-bd89c879.css",revision:null},{url:"assets/index-f6a20c43.js",revision:null},{url:"assets/index-f7a162af.js",revision:null},{url:"assets/Insight-8c46a3d4.css",revision:null},{url:"assets/Insight-e5370e3a.js",revision:null},{url:"assets/Liked-b900d113.js",revision:null},{url:"assets/Markdown-d883632e.css",revision:null},{url:"assets/Markdown.vue_vue_type_style_index_0_lang-863128c2.js",revision:null},{url:"assets/needles/needles-worker.js",revision:"5d9e2eedeab164e3b968a86bdf450d2f"},{url:"assets/News-34726618.js",revision:null},{url:"assets/News-99169f9d.css",revision:null},{url:"assets/NewsArticle-03a45240.css",revision:null},{url:"assets/NewsArticle-5e58ed70.js",revision:null},{url:"assets/Normal-e2c2cf32.js",revision:null},{url:"assets/playerInPicture-af203fdf.js",revision:null},{url:"assets/Playlist.vue_vue_type_script_setup_true_lang-1b66463d.js",revision:null},{url:"assets/PlaylistEntry-4b74ffe1.css",revision:null},{url:"assets/PlaylistEntry-c58cccb9.js",revision:null},{url:"assets/PlaylistItem-1de8bde1.css",revision:null},{url:"assets/PlaylistItem-705d9df8.js",revision:null},{url:"assets/Playlists-26e178b4.js",revision:null},{url:"assets/Playlists-d44628c1.css",revision:null},{url:"assets/Releases-b3f5cb50.css",revision:null},{url:"assets/Releases-dd0e8dec.js",revision:null},{url:"assets/Sports-00fca57e.js",revision:null},{url:"assets/Sports-385f73f9.css",revision:null},{url:"assets/spotify-3cee06ae.js",revision:null},{url:"assets/Template-01e8e5fe.css",revision:null},{url:"assets/Template-d4a34a3b.js",revision:null},{url:"assets/Track-7c1d0a5c.css",revision:null},{url:"assets/Track-8a51f52b.js",revision:null},{url:"assets/TrackCompact-79c8b159.css",revision:null},{url:"assets/TrackCompact-9f5e6d25.js",revision:null},{url:"assets/Welcome-51cf28ce.js",revision:null},{url:"assets/Welcome-5b21c29e.css",revision:null},{url:"index.html",revision:"a151526fd1a77d61980fe88aec445768"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.png",revision:"81eb710c3fadc823ae3bb676eacf1795"},{url:"manifest.webmanifest",revision:"54fda1775a89a999bda4c67bd363bb64"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/api/]}))})); diff --git a/src/ui/package-lock.json b/src/ui/package-lock.json index 50aeee13d..9c8ef3db1 100644 --- a/src/ui/package-lock.json +++ b/src/ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "reAudioPlayer", - "version": "0.11.25", + "version": "0.11.26", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "reAudioPlayer", - "version": "0.11.25", + "version": "0.11.26", "dependencies": { "@domchristie/needles": "^0.0.2-1", "fast-average-color": "^9.3.0", diff --git a/src/ui/package.json b/src/ui/package.json index 7bc95b6d4..96715fcd5 100644 --- a/src/ui/package.json +++ b/src/ui/package.json @@ -1,6 +1,6 @@ { "name": "reAudioPlayer", - "version": "0.11.25", + "version": "0.11.26", "scripts": { "dev": "vite", "preview": "vite preview --port 8080", diff --git a/src/ui/src/common.ts b/src/ui/src/common.ts index 4deca8cde..44b4c546d 100644 --- a/src/ui/src/common.ts +++ b/src/ui/src/common.ts @@ -120,6 +120,7 @@ export interface ISpotifySong extends ISong { added?: boolean; artists: string[]; source: string; + url?: string; } export interface ISpotifyAlbum { diff --git a/src/ui/src/components/popups/ImportSpotifySong.vue b/src/ui/src/components/popups/ImportSpotifySong.vue index 6287a7d06..30a9409c4 100644 --- a/src/ui/src/components/popups/ImportSpotifySong.vue +++ b/src/ui/src/components/popups/ImportSpotifySong.vue @@ -20,19 +20,20 @@ const data = useDataStore(); const props = defineProps({ song: { type: Object as PropType, - required: true - } -}) - -const options = ref([{ - name: "playlist", - type: "dropdown", - icon: "playlist_add", - required: true, - value: null, - options: data.playlistsAsDropdown -}]); - + required: true, + }, +}); + +const options = ref([ + { + name: "playlist", + type: "dropdown", + icon: "playlist_add", + required: true, + value: null, + options: data.playlistsAsDropdown, + }, +]); const modal = ref(null); const form = ref(null); @@ -47,8 +48,8 @@ const show = async () => { const res = await modal.value.fetch("/api/browse/track", { method: "POST", body: JSON.stringify({ - url: props.song.href - }) + url: props.song.href ?? props.song.url, + }), }); if (!res) return; @@ -57,26 +58,33 @@ const show = async () => { track.value = await res.json(); modal.value.show(); -} +}; const preview = () => { - const event = new CustomEvent('player.play', { detail: { + const event = new CustomEvent("player.play", { + detail: { artist: props.song.artist, title: props.song.title, - source: props.song.href - } }); + source: props.song.href, + }, + }); window.dispatchEvent(event); -} +}; const createPlaylist = async (playlistId: string): Promise => { if (playlistId === "new") { - const newPlaylist = await createPlaylistWithMetadata("classic", props.song.title, props.song.artist, props.song.cover); + const newPlaylist = await createPlaylistWithMetadata( + "classic", + props.song.title, + props.song.artist, + props.song.cover + ); options.value[0].options = data.playlistsAsDropdown; options.value[0].value = newPlaylist; return newPlaylist; } return playlistId; -} +}; const addSong = async (index: number, playlistId: string = null) => { playlistId ??= form.value.toObject().playlist; @@ -85,18 +93,18 @@ const addSong = async (index: number, playlistId: string = null) => { playlistId = await createPlaylist(playlistId); - await addSongToPlaylist( - playlistId, - track.value); + await addSongToPlaylist(playlistId, track.value); props.song.added = true; - Notifications.addSuccess(track.value.title, - `Added to ${data.playlists.find(p => p.id == playlistId)?.name}`, - 3000); -} + Notifications.addSuccess( + track.value.title, + `Added to ${data.playlists.find((p) => p.id == playlistId)?.name}`, + 3000 + ); +}; defineExpose({ - show -}) + show, +}); diff --git a/src/ui/src/views/Search/SearchResultItem.vue b/src/ui/src/views/Search/SearchResultItem.vue index afe8bfaa7..ae9b66d85 100644 --- a/src/ui/src/views/Search/SearchResultItem.vue +++ b/src/ui/src/views/Search/SearchResultItem.vue @@ -61,6 +61,10 @@ const isSpotify = computed(() => { return props.item?.scope === "spotify"; }); +const isAudius = computed(() => { + return props.item?.scope === "audius"; +}); + const importSpotifySong = ref(); const importSpotifyAlbum = ref(); @@ -79,12 +83,16 @@ const onClick = () => { } else if (type.value === "album") { importSpotifyAlbum.value.show(); } + } else if (isAudius.value) { + if (type.value === "song") { + importSpotifySong.value.show(); + } } }; @@ -50,6 +77,7 @@ const route = useRoute(); const loading = ref(true); const error = ref(null); +const showAllSongs = ref(false); const response = ref(null); const topResult = computed(() => { diff --git a/src/ui/src/views/preferences/index.vue b/src/ui/src/views/preferences/index.vue index 3e6e515bf..961b43ce0 100644 --- a/src/ui/src/views/preferences/index.vue +++ b/src/ui/src/views/preferences/index.vue @@ -4,7 +4,7 @@ --> +