lemon-mse 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lemon.js +1 -1
  2. package/package.json +1 -1
package/dist/lemon.js CHANGED
@@ -1 +1 @@
1
- var ro=Object.defineProperty;var ao=(t,e,s)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var W=(t,e,s)=>ao(t,typeof e!="symbol"?e+"":e,s);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function s(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(n){if(n.ep)return;n.ep=!0;const l=s(n);fetch(n.href,l)}})();const uo=Vue.createApp,Q=Vue.defineComponent,v=Vue.unref,y=Vue.openBlock,b=Vue.createElementBlock,ue=Vue.createCommentVNode,X=Vue.renderList,$=Vue.Fragment,L=Vue.normalizeClass,c=Vue.createElementVNode,Ke=Vue.resolveComponent,O=Vue.withCtx,M=Vue.createVNode,Z=Vue.vShow,B=Vue.withDirectives,Re=Vue.resolveDynamicComponent,V=Vue.createBlock,co=Vue.KeepAlive,k=Vue.ref,Ce=Vue.onMounted,oe=Vue.watch,re=Vue.reactive,Ve=Vue.watchEffect,z=Vue.computed,ce=Vue.isRef,dt=Vue.vModelText,vo=Vue.withKeys,T=Vue.toDisplayString,Bt=Vue.onActivated,vt=Vue.resolveDirective,je=Vue.createTextVNode,F=Vue.withModifiers,xe=Vue.normalizeStyle,fo=Vue.shallowRef,at=Vue.nextTick,tt=Vue.onBeforeUnmount;Vue.h;const po=Vue.onDeactivated,mo=Vue.onUnmounted,Ue=Vue.useModel,Be=Vue.mergeModels,ho=Vue.renderSlot,Vt=Vue.useSlots,go=Vue.provide,yo=Vue.inject,wo=Vue.getCurrentInstance,Xe=(t,e)=>{let s=-1;const a=t.length,n=new Array(a);for(;++s<a;)n[s]=e(t[s]);return n},Ut=(t,e)=>{let s=-1;const a=t.length;for(;++s<a;)e(t[s])},xo=t=>{if(t.scrollTop>0)return!0;t.scrollTop=1;const e=!!t.scrollTop;return t.scrollTop=0,e},ko=async(t,e,s)=>{const a=[],n=[];for(const l of t){const i=Promise.resolve().then(()=>s(l));if(a.push(i),e<=t.length){const r=i.then(()=>n.splice(n.indexOf(r),1));n.push(r),n.length>=e&&await Promise.race(n)}}return Promise.all(a)},ft="http://lemonlive.deno.dev/api/",le=(t,e,s)=>(t=="douyin"&&(s?s.cookie=K[t]:s={cookie:K[t]}),pt(`${ft}${t}/${e}${s?"?"+new URLSearchParams(s).toString():""}`)),ct=async t=>{const e=Object.keys(t.follows);if(!e.length)return Promise.resolve(!1);if(t.id=="douyin"){(await ko(e,4,a=>le("douyin","getLiveStatus",{id:a}))).forEach((a,n)=>t.follows[e[n]].status=a[e[n]].status);return}await le(t.id,"getLiveStatus",{id:e.join(",")}).then(s=>Object.keys(s).forEach(a=>{t.follows[a].status=s[a].status}))},bo=t=>pt(`${ft}sync`,{method:"POST",body:t}),Co=t=>pt(`${ft}sync/${t}`),pt=(t,e)=>fetch(t,e).then(async s=>{const a=await s.json();return a.code!=200?Promise.reject(a.msg):a.data},s=>{Promise.reject("网络异常!")});k(!0);const j=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("bilibili"))}],ke=["huya","douyu","douyin","bilibili"],q=k(_e("volume",100)),G=k(_e("brightness",100)),We=t=>{q.value=t?Math.min(100,q.value+5):Math.max(0,q.value-5)},Mt=t=>{G.value=t?Math.min(200,G.value+10):Math.max(50,G.value-10)};function Je(t){const e=localStorage.getItem("follows-"+t);return e?JSON.parse(e):{}}function Le(t){const e=j.find(s=>s.id==t.siteId);return t.siteId=e.id,e.follows[t.roomId]={...t,stream:void 0,ws:void 0},localStorage.setItem("follows-"+t.siteId,JSON.stringify(e.follows)),Reflect.has(e.follows,t.roomId)}function _o(t,e){const s=j.find(a=>a.id==t);return delete s.follows[e],localStorage.setItem("follows-"+t,JSON.stringify(s.follows)),Reflect.has(s.follows,e)}function Io(){j.forEach(t=>{for(const e in t.follows)delete t.follows[e];localStorage.removeItem("follows-"+t.id)})}async function Tt(t,e){const s=t.categories;s.value.length||(s.value=await le(t.id,"getCategories"));for(const a of s.value)for(const n of a.list)if(n.cid==e)return n;return null}const w=re(_e("dm-settings",{canvasOpen:!0,canvasFontsize:18,canvasGap:10,canvasOpacity:100,canvasRows:10,canvasSpeed:2.5,canvasColorOpen:!1,sideOpen:!0,sideFontsize:14,sideGap:2,sideColorOpen:!1,sideClean:100,colors:["#ffffff","#7e22ce","1d4ed8","#be185d","#fcd34d"],blockOpen:!1,blockWords:""}));Ve(()=>{be("dm-settings",w)});function _e(t,e){const s=localStorage.getItem(t);return s?JSON.parse(s):e}function be(t,e){localStorage.setItem(t,JSON.stringify(e))}const So=["#ffffff","#000000","#374151","#b91c1c","#f87171","#fdba74","#c2410c","#fcd34d","#b45309","#bef264","#4d7c0f","#86efac","#15803d","#5eead4","#0f766e","#67e8f9","#0e7490","#93c5fd","#1d4ed8","#d8b4fe","#7e22ce","#f0abfc","#a21caf","#f9a8d4","#be185d","#fda4af","#be123c"],Et=z(()=>w.blockWords.length==0?[]:w.blockWords.split(" ").map(t=>new RegExp(t))),K=re(_e("cookies",{}));Ve(()=>be("cookies",K));const P=k(0),we=k(_e("show-chat",!0)),He=k(_e("show-aside",!0));Ve(()=>be("show-chat",we.value));Ve(()=>be("show-aside",He.value));const Ao=VueRouter.createRouter,Mo=VueRouter.createWebHistory,mt=VueRouter.useRoute,ht=VueRouter.useRouter,To=VueRouter.onBeforeRouteUpdate,Eo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},Oo={"text-sm":"","pos-fixed":"","bottom-0":"","left-0":"","right-0":"","md:py-2":"","b-t-solid":"",b:"","b-gray-7":"","md:b-r-solid":"","md:top-0":"","md:right-auto":"",flex:"","justify-around":"","md:flex-col":"","md:justify-left":"","bg-dark-7":"","z-10":""},jo={"h-full":"",class:"scrolly","md:px-3":""},Lo=Q({__name:"App",setup(t){const e=[{icon:"i-ri-home-smile-line",link:"/"},{icon:"i-ri-apps-2-line",link:"/category"},{icon:"i-ri-heart-line",link:"/follow"},{icon:"i-ri-search-line",link:"/search"},{icon:"i-ri-user-smile-line",link:"/user"}],s=k(!0);Ce(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>s.value=!1,5e3)});const a=mt();return oe(a,()=>{const n=a.params.siteid;if(n==null)return;const l=ke.findIndex(i=>i==n);l!=-1&&(P.value=l)}),(n,l)=>{const i=Ke("router-link"),r=Ke("router-view");return y(),b($,null,[v(s)?(y(),b("iframe",Eo)):ue("",!0),B(c("div",Oo,[(y(),b($,null,X(e,u=>M(i,{to:u.link,"hover:text-amber":"","rounded-2":"","py-2":"","px-4":"","m-2":"",class:L({"text-amber":n.$route.path==u.link})},{default:O(()=>[c("div",{class:L(u.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[Z,v(He)]]),c("main",{"mx-2":"","md:mx-0":"",class:L(["md:!h-100vh",{"md:ml-17.5":v(He),"!h-100vh":!v(He)}]),"pt-2":"","box-border":""},[c("div",jo,[M(r,null,{default:O(({Component:u})=>[(y(),V(co,{exclude:["play"]},[(y(),V(Re(u)))],1024))]),_:1})])],2)],64)}}}),Ro=t=>{const e=k(t);return[e,a=>e.value=a]},Bo=/scroll|auto|overlay/i;function Vo(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function Uo(t,e=document.body){let s=t;for(;s&&s!==e&&Vo(s);){const{overflowY:a}=window.getComputedStyle(s);if(Bo.test(a))return s;s=s.parentNode}return e}function Po(t,e=document.body){const s=k();return Ce(()=>{t.value&&(s.value=Uo(t.value,e))}),s}const zo={key:0,"text-center":""},Fo={key:1,"text-center":""},ot=Q({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(t,{emit:e}){const s=t,a=k(0),[n,l]=Ro("normal"),i=k(),r=Po(i),u=e,f=()=>{if(a.value=r.value.scrollTop,n.value!="normal")return;r.value.scrollHeight-r.value.clientHeight-r.value.scrollTop<s.offset&&h()};Ce(()=>{s.immediate&&h(),r.value.addEventListener("scroll",f,{passive:!0})}),Bt(()=>{r.value.scrollTop=a.value,r.value.addEventListener("scroll",f)});const p=()=>{r.value.removeEventListener("scroll",f)};po(p),tt(p);let m;const h=()=>{l("loading"),u("load",l),clearTimeout(m),m=setTimeout(()=>{xo(r.value)||u("load",l)},2e3)};return(E,Y)=>(y(),b("div",{ref_key:"root",ref:i,"h-full":"","select-none":""},[ho(E.$slots,"default"),v(n)=="loading"?(y(),b("div",zo,"加载中...")):v(n)=="finshed"?(y(),b("div",Fo,T(s.finshedText),1)):v(n)=="loaderror"?(y(),b("div",{key:2,"text-center":"","cursor-pointer":"",onClick:h},T(s.errorText),1)):ue("",!0)],512))}}),$o=["data-id","data-site","href"],No={"pos-relative":"","text-rose-4":"","rounded-t-2":"","w-full":"","aspect-video":""},Do={block:"","h-full":"","rounded-2":"","select-none":""},Go={"pos-absolute":"","bottom-0":"","right-0":"","px-2":"","py-1":"","rounded-tl-2":"","bg-dark-6":""},Qo={"line-height-none":"","pos-absolute":"","top-0":"","right-0":"","px-1":"","py-1":"","rounded-tr-1":"","rounded-bl-2":"","bg-dark-6":""},Wo={key:0,"rounded-2":"","text-white":"","pos-absolute":"","text-8":"","top-0":"","bottom-0":"","left-0":"","right-0":"",flex:"","justify-center":"","items-center":"","bg-gray-7":"","bg-op-80":""},Jo={"px-2":"","text-truncate":"","leading-normal":""},Yo={"px-2":"","text-truncate":"","leading-normal":"","pb-2":""},st=Q({__name:"rooms",props:{list:{}},setup(t){let e;const s=ht(),a=k(),n=r=>{clearTimeout(e),e=setTimeout(()=>{const u=i("id",r.target,a.value);if(!u)return;const f=i("site",r.target,a.value);s.push(`/${f}/play/${u}`)},300)},l=r=>{var m;clearTimeout(e);const u=i("id",r.target,a.value);if(!u)return;const p=`/${i("site",r.target,a.value)}/play/${u}`;(m=window.open(p,"_blank"))==null||m.location},i=(r,u,f)=>{if(u==f)return null;const p=u.dataset[r];return p||i(r,u.parentElement,f)};return(r,u)=>{const f=vt("lazy");return r.list.value.length>0?(y(),b("div",{key:0,ref_key:"root",ref:a,grid:"","gap-4":"","p-2":"","justify-evenly":"","cursor-pointer":"","select-none":"","grid-cols-2":"","md:grid-cols-3":"","xl:grid-cols-4":"",class:"2xl:grid-cols-5",onClick:F(n,["prevent"]),onDblclick:F(l,["prevent"])},[(y(!0),b($,null,X(r.list.value,p=>(y(),b("a",{"data-id":p.roomId,"data-site":p.siteId,href:`/${p.siteId}/play/${p.roomId}`,key:`${p.siteId}-${p.roomId}`,shadow:"","rounded-2":"","b-2px":"","b-solid":"","b-transparent":"","hover:b-amber":"","overflow-hidden":""},[c("div",No,[B(c("img",Do,null,512),[[f,p.cover]]),c("div",Go,T(p.category),1),c("div",Qo,[u[0]||(u[0]=c("div",{class:"i-mdi-fire"},null,-1)),c("span",null,T(p.online),1)]),p.status?ue("",!0):(y(),b("div",Wo," 未开播 "))]),c("div",Jo,T(p.title),1),c("div",Yo,T(p.nickname),1)],8,$o))),128))],544)):ue("",!0)}}}),qo={"h-full":""},Ho={flex:"","py-1":"","px-2":"","text-lg":"","gap-2":""},Zo={grow:"","text-center":""},Ko={"hover:text-amber":""},Xo={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},es=Q({__name:"categoryRooms",setup(t){const e=mt(),s=k(""),a=k(),n={list:k([]),page:1,hasMore:!0},l=f=>{const{site:p,id:m}=e.meta;le(p.id,"getCategoryRooms",{id:m,pid:a.value,page:n.page}).then(h=>{if(n.list.value=n.list.value.concat(h.list),n.hasMore=h.hasMore,K[p.id]||(K[p.id]=h.cookie),!h.hasMore)return f("finshed");n.page++,f("normal")},h=>{s.value=h,f("loaderror")})},i=k(!1),r=()=>{document.querySelector("#goTop").click(),i.value=!0;const{site:f,id:p}=e.meta;le(f.id,"getCategoryRooms",{id:p,pid:a.value,page:n.page}).then(m=>{n.list.value=m.list,n.hasMore=m.hasMore,n.page++,K[f.id]||(K[f.id]=m.cookie)},m=>{s.value=m}).finally(()=>i.value=!1)};let u=e.fullPath;return Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),Bt(function(){u!=e.fullPath&&(u=e.fullPath,Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),n.list.value=[],n.page=1,n.hasMore=!0)}),(f,p)=>{var E;const m=st,h=ot;return y(),b("div",qo,[c("div",Ho,[c("div",{"hover:text-amber":"",onClick:p[0]||(p[0]=(...Y)=>f.$router.back&&f.$router.back(...Y)),class:"i-ri-arrow-left-line"}),c("div",Zo,[c("span",Ko,T(`${(E=v(e).meta.site)==null?void 0:E.name} ${v(s)==null?"分区不存在":v(s)==""?"加载中":v(s)}`),1)]),c("div",{"mr-7":"","md:mr-24":"","hover:text-amber":"",onClick:r,class:L(["i-ri-refresh-line",{"animate-spin":v(i)}])},null,2)]),v(s)?(y(),b("div",Xo,[(y(),V(h,{key:v(u),onLoad:l},{default:O(()=>[M(m,{list:n.list},null,8,["list"])]),_:1}))])):ue("",!0)])}}}),Pt=Symbol("tabs"),ts=(t,e)=>{const s=re([]);return go(t,Object.assign({link:l=>{l.proxy&&s.push(l.proxy)},unlink:l=>{const i=s.indexOf(l.proxy);s.splice(i,1)},children:s},e)),s},zt=t=>{const e=yo(t);if(e==null)return{parent:e,index:k(-1)};const s=wo(),{link:a,unlink:n,children:l}=e;a(s),mo(()=>n(s));const i=z(()=>l.indexOf(s.proxy));return{parent:e,children:l,index:i}},os={class:"h-full","box-border":""},ss={"w-full":"","box-border":"","text-sm":"","sm:text-base":""},ns=["onClick"],ls={class:"h-[calc(100%-2rem)] scrolly","box-border":"","pt-1":""},Pe=Q({__name:"tabs",props:Be({link:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},grow:{type:Boolean,default:!1},swipeable:{type:Boolean,default:!1},swipeloop:{type:Boolean,default:!0},justify:{default:"justify-center"}},{active:{default:0},activeModifiers:{}}),emits:Be(["tabClick"],["update:active"]),setup(t,{emit:e}){const s=Ue(t,"active"),a=t,n=e,l=u=>{s.value=u,n("tabClick",u)},i=ts(Pt,{active:s,props:a}),r=z(()=>Xe(i,u=>u.title));return(u,f)=>{const p=Ke("router-link");return y(),b("div",os,[c("div",ss,[c("div",{flex:"",p1:"","sm:gap-1":"","text-center":"","h-8":"","box-border":"","lg:justify-center":"",class:L([[v(i).length>5||u.grow?"":u.justify],"scrollx"])},[a.link?(y(!0),b($,{key:0},X(v(r),(m,h)=>(y(),V(p,{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),to:v(i)[h].href},{default:O(()=>[je(T(m),1)]),_:2},1032,["class","to"]))),256)):(y(!0),b($,{key:1},X(v(r),(m,h)=>(y(),b("a",{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),onClick:E=>l(h)},T(m),11,ns))),256))],2)]),c("div",ls,[(y(),V(Re(u.$slots.default)))])])}}}),is=Symbol("swipe"),rs={"w-full":"","h-full":"","shrink-0":"","pos-relative":""},as=Q({__name:"swipeItem",emits:["inited"],setup(t,{emit:e}){const s=k(!1),{parent:a,children:n,index:l}=zt(is),i=Vt(),r=e,u=z(()=>(a==null?void 0:a.active.value)==l.value?(s.value||(s.value=!0,r("inited",l.value)),!0):l.value==(a.active.value==0?n.length-1:a.active.value-1)||l.value==(a.active.value==n.length-1?0:a.active.value+1)),f=z(()=>u.value||s.value||!(a!=null&&a.props.lazy)?i.default:null);return(p,m)=>B((y(),b("div",rs,[(y(),V(Re(v(f))))],512)),[[Z,v(u)]])}}),us={"h-full":"","w-full":"","shrink-0":"",class:"scrolly"},ze=Q({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(t,{expose:e,emit:s}){const a=t,n=k(!1),l=Vt(),{parent:i,index:r,children:u}=zt(Pt),f=s,p=z(()=>(i==null?void 0:i.active.value)==r.value?(n.value||(n.value=!0,f("inited",r.value)),!0):(i==null?void 0:i.props.swipeable)&&(r.value==(i.active.value==0?u.length-1:i.active.value-1)||r.value==(i.active.value==u.length-1?0:i.active.value+1))),m=z(()=>p.value||i!=null&&i.props.swipeable||n.value||!(i!=null&&i.props.lazy)?l.default:null);return e({title:a.title}),(h,E)=>{var C,_;const Y=as;return B((y(),b("div",us,[(C=v(i))!=null&&C.props.swipeable?(y(),V(Y,{key:0},{default:O(()=>[(y(),V(Re(v(m))))]),_:1})):(y(),V(Re(v(m)),{key:1}))],512)),[[Z,v(p)||((_=v(i))==null?void 0:_.props.swipeable)]])}}}),cs={key:0,"text-center":""},ds={"pb-2":"",grid:"","gap-4":"","px-4":"","md:px-2":"","grid-cols-4":"","sm:grid-cols-6":"","md:grid-cols-8":"","lg:grid-cols-10":"","xl:grid-cols-15":"",lass:"2xl:grid-cols-18"},vs={"w-full":"","aspect-ratio-square":"",rounded:""},fs={"w-full":"","text-truncate":"","text-xs":"","md:text-sm":"","text-center":""},ps=Q({__name:"category",setup(t){const e=z(()=>j[P.value].id),s=k(),a=n=>{j[n].categories.value.length||(s.value="加载中...",le(e.value,"getCategories").then(l=>{s.value=null,j[n].categories.value=l},l=>s.value=l))};return(n,l)=>{const i=Ke("router-link"),r=ze,u=Pe,f=vt("lazy");return y(),V(u,{active:v(P),"onUpdate:active":l[0]||(l[0]=p=>ce(P)?P.value=p:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),p=>(y(),V(r,{title:p.name,href:`/${p.id}/category`,onInited:a,key:p.id},{default:O(()=>[v(s)?(y(),b("div",cs,T(v(s)),1)):(y(),V(u,{key:1,active:p.categoryActive.value,"onUpdate:active":m=>p.categoryActive.value=m},{default:O(()=>[(y(!0),b($,null,X(p.categories.value,m=>(y(),V(r,{title:m.name,key:m.id},{default:O(()=>[c("div",ds,[(y(!0),b($,null,X(m.list,h=>(y(),V(i,{to:`/${p.id}/category/${h.cid}`,"cursor-pointer":""},{default:O(()=>[B(c("img",vs,null,512),[[f,h.pic]]),c("div",fs,T(h.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),ms={"text-center":"","py-1":""},hs={class:"w-60% max-w-md pos-relative inline-block"},gs={class:"h-[calc(100%-3rem)]"},ys={key:1},ws={key:1},xs=Q({__name:"search",setup(t){const e=k(""),s=z(()=>j[P.value]),a=k(),n=()=>{if(!e.value)return Promise.resolve();const p=s.value.search;p.list.value=[],p.page=1,p.hasMore=!0,a.value="搜索中...";const m=s.value.id;return le(m,"searchRooms",{page:p.page,kw:e.value}).then(h=>{p.list.value=h.list,p.hasMore=h.hasMore,p.page+=1,a.value="finished",K[m]||(K[m]=h.cookie)},h=>a.value=h)},l=p=>{const m=s.value.search,h=s.value.id;p("loading"),le(h,"searchRooms",{page:m.page,kw:e.value}).then(E=>{if(m.list.value=m.list.value.concat(E.list),m.hasMore=E.hasMore,K[h]||(K[h]=E.cookie),!m.hasMore)return p("finshed");m.page+=1,p("normal")},E=>{p("loaderror")})},i=p=>{r.push(`/${ke[p]}/search`),!u()&&j[p].search.page==1&&n()},r=ht(),u=()=>{if(e.value)return/^[\d]*$/.test(e.value)?(r.push(`/play/${s.value.id}/${e.value}`),!0):!1},f=()=>{u()||(j.forEach(p=>p.search.page=1),n())};return(p,m)=>{const h=st,E=ot,Y=ze,C=Pe;return y(),b($,null,[c("div",ms,[c("div",hs,[B(c("input",{"md:text-4":"",type:"text","onUpdate:modelValue":m[0]||(m[0]=_=>ce(e)?e.value=_:null),"box-border":"","w-full":"","py-2.5":"","pl-3":"","pr-9":"","text-white":"","bg-transparent":"","b-1":"","b-green":"","rounded-6":"","outline-0":"",onKeydown:vo(f,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[dt,v(e),void 0,{trim:!0}]]),c("div",{class:"i-ri-search-line top-50%",absolute:"","right-3":"",onClick:f,style:{transform:"translateY(-50%)"}})])]),c("div",gs,[M(C,{active:v(P),"onUpdate:active":m[1]||(m[1]=_=>ce(P)?P.value=_:null),onTabClick:i},{default:O(()=>[(y(!0),b($,null,X(v(j),_=>(y(),V(Y,{title:_.name,key:_.id},{default:O(()=>[v(a)=="finished"?(y(),b($,{key:0},[_.search.list.value.length?(y(),V(E,{key:0,onLoad:l},{default:O(()=>[M(h,{list:_.search.list},null,8,["list"])]),_:2},1024)):(y(),b("div",ys," 什么也没有找到 "))],64)):(y(),b("div",ws,T(v(a)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),ks={flex:"","items-center":""},bs={"grow-1":"","justify-center":"","gap-2":"","p-2":"",flex:""},Cs={"pos-relative":"",flex:"","gap-2":""},_s={"pos-absolute":"","top-0":"","right-0":"",style:{transform:"translateX(150%)"},"rounded-6":"","bg-white":"",shadow:"","text-amber":""},Is={class:"bg-gray-7 gap-4 p-12 rounded-2 flex flex-col shadow relative mt-30"},Ss={class:"flex justify-center items-center"},As={class:"flex gap-4"},Ms={class:"py-2 min-w-16"},Ts={class:"flex gap-4"},Es={class:"py-2 min-w-16"},Os={class:"h-[calc(100%-3rem)]"},js=Q({__name:"follow",setup(t){const e=Xe(j,_=>({name:_.name,list:z(()=>Object.values(_.follows).sort(S=>S.status?-1:0))}));e.unshift({name:"全部",list:z(()=>j.map(_=>Object.values(_.follows)).flat().sort(_=>_.status?-1:0))});const s=k(0),a=()=>{var S;if(l.value)return;const _=s.value;l.value=!0,_==0?Promise.all(Xe(j,ct)).finally(n):(S=ct(j[_-1]))==null||S.finally(n)},n=()=>setTimeout(()=>l.value=!1,300),l=k(!1),i=k(""),r=k(!1),u=k([]),f=k(!1),p=()=>setTimeout(()=>f.value=!1,300),m=()=>{f.value||(f.value=!0,bo(JSON.stringify(e[0].list.value)).then(_=>{i.value=_,u.value=e[0].list.value}).finally(p))},h=()=>{if(!f.value){if(!/^\d{4}$/.test(i.value))return i.value="";f.value=!0,Co(i.value).then(_=>{u.value=_}).finally(p)}},E=()=>{if(!f.value){if(f.value=!0,i.value.startsWith("[")){try{const _=JSON.parse(i.value);Ut(_,S=>{/^\d+$/.test(S.roomId)&&Le({siteId:S.siteId,roomId:S.roomId,cover:S.face,nickname:S.userName})})}catch{i.value="合并失败"}return p()}u.value.forEach(_=>Le(_)),p()}},Y=()=>{f.value||(f.value=!0,Io(),u.value.forEach(_=>Le(_)),p())};a();const C=_=>_("finshed");return(_,S)=>{const $e=st,ee=ot,ve=ze,fe=Pe;return y(),b($,null,[c("div",ks,[c("div",bs,[c("div",Cs,[S[6]||(S[6]=je("关注用户 ")),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:S[0]||(S[0]=se=>r.value=!0)},"同步"),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:a},"刷新"),B(c("div",_s,S[5]||(S[5]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(l)]])]),B(c("div",{class:"absolute z-10 top-0 left-0 right-0 bottom-0 flex justify-center items-start",onClick:S[3]||(S[3]=F(se=>r.value=!1,["self"]))},[c("div",Is,[c("div",Ss,[S[8]||(S[8]=c("div",{class:"text-8"},"同步",-1)),B(c("div",null,S[7]||(S[7]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(f)]])]),B(c("input",{class:"outline-none p-2 border-none rounded-2 flex-1","onUpdate:modelValue":S[1]||(S[1]=se=>ce(i)?i.value=se:null),type:"text",placeholder:"key"},null,512),[[dt,v(i)]]),c("div",As,[c("div",Ms,"本地 "+T(v(e)[0].list.value.length),1),c("div",{onClick:E,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"}," 合并 "),c("div",{onClick:Y,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")]),c("div",Ts,[c("div",Es,"云端 "+T(v(u).length),1),c("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"拉取"),c("div",{onClick:m,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")]),S[9]||(S[9]=c("div",null,[c("div",null,"1. key 有效期 10 分钟"),c("div",null,"2. 拉取需要输入 key"),c("div",null,"3. 推送自动生成 key ")],-1)),c("div",{onClick:S[2]||(S[2]=F(se=>r.value=!1,["stop"])),class:"i-ri-close-circle-line absolute right-2 top-2"})])],512),[[Z,v(r)]])])]),c("div",Os,[M(fe,{active:v(s),"onUpdate:active":S[4]||(S[4]=se=>ce(s)?s.value=se:null)},{default:O(()=>[(y(!0),b($,null,X(v(e),se=>(y(),V(ve,{title:se.name},{default:O(()=>[M(ee,{onLoad:C,"finshed-text":""},{default:O(()=>[M($e,{list:se.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),Ls=Q({__name:"index",setup(t){const e=z(()=>j[P.value].id),s=a=>{const n=j[P.value].recommend;le(e.value,"getRecommendRooms",{page:n.page}).then(l=>{if(n.list.value=n.list.value.concat(l.list),n.hasMore=l.hasMore,K[e.value]||(K[e.value]=l.cookie),!n.hasMore)return a("finshed");n.page++,a("normal")},()=>a("loaderror"))};return(a,n)=>{const l=st,i=ot,r=ze,u=Pe;return y(),V(u,{active:v(P),"onUpdate:active":n[0]||(n[0]=f=>ce(P)?P.value=f:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),f=>(y(),V(r,{href:`/${f.id}`,key:f.id,title:f.name,"pos-relative":""},{default:O(()=>[M(i,{onLoad:s,"h-full":""},{default:O(()=>[M(l,{list:f.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),Rs=Q({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(t){const e=Ue(t,"value");return(s,a)=>(y(),b("div",{"pos-relative":"",style:{transition:"background-color .3s"},onClick:a[0]||(a[0]=()=>e.value=!e.value),"w-12":"","inline-block":"","cursor-pointer":"","rounded-6":"","h-6":"",class:L([e.value?"bg-amber":"bg-gray-4"])},[c("div",{"w-6":"","h-full":"","rounded-6":"","bg-white":"",style:xe([{transition:"transform .3s"},e.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),Bs={"rounded-4":"",flex:"","bg-gray-7":"","w-min":"","p-2":"","py-1":"","gap-2":""},Vs=Q({__name:"stepper",props:Be({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=()=>s.value=Math.min(s.value+e.step,e.max),n=()=>s.value=Math.max(s.value-e.step,e.min);return(l,i)=>(y(),b("div",Bs,[c("div",{class:"i-ri-subtract-fill",onClick:n}),c("div",null,T(s.value),1),c("div",{class:"i-ri-add-fill",onClick:a})]))}});function Us(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Ze=Us(),Ps=t=>Ze?t.touches==null?t:t.touches[0]||t.changedTouches[0]:t,zs=Q({__name:"slider",props:Be({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=k(),n=e.width<e.height;let l;const i=m=>{m.stopPropagation(),f(m),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",p,!0)},r=z(()=>(s.value-e.min)/(e.max-e.min)*100),u=z(()=>{const m=100-r.value,h=`top:${m}%`,E=`left:${m}%`;return n?{loaded:h,indicator:h}:{loaded:`${E};transform:translateX(-100%)`,indicator:E}}),f=m=>{m.stopPropagation(),m=Ps(m);const E=100-(Math.min(n?l.height:l.width,Math.max(0,n?m.clientY-l.y:m.clientX-l.x))/(n?l.height:l.width)*100|0);s.value=((e.max-e.min)*E|0)/100+e.min|0},p=m=>{m.stopPropagation(),document.removeEventListener("mousemove",f,!0),document.removeEventListener("mouseup",p,!0)};return Ce(()=>{l=a.value.getBoundingClientRect(),a.value.addEventListener("mousedown",i,!0)}),tt(()=>{a.value.removeEventListener("mousedown",i,!0)}),(m,h)=>(y(),b("div",{"cursor-pointer":"",style:xe({width:`${e.width}px`,height:`${e.height}px`}),class:L(n?" py-4 ":"px-4"),flex:"","justify-center":""},[c("div",{"w-full":"","h-full":"","pos-relative":"",flex:"","justify-center":"","items-center":"",ref_key:"root",ref:a,onClick:f},[c("div",{"bg-gray":"","pos-relative":"","overflow-hidden":"",class:L(n?"h-full w-2px":"w-full h-2px")},[c("div",{"w-full":"","bg-amber":"","h-full":"","pos-absolute":"",style:xe(v(u).loaded)},null,4)],2),c("div",{"pos-absolute":"","w-12px":"","h-12px":"","bg-amber":"","rounded-2":"",style:xe(v(u).indicator),class:L(n?"-mt-6px":"-ml-6px")},null,6)],512)],6))}}),Fs={key:0,"z-1":"",fixed:"","top-0":"","bottom-0":"","left-0":"","right-0":"","bg-transparent":"","data-index":"-1"},$s={"p-1":"","data-index":"-1","hover:text-amber":""},Ns={"text-center":"","z-1":"","pos-absolute":"","top-0":"",class:"left-50%","w-max":"",style:{transform:"translate3d(-50%,-100%,0)"}},Ds=["data-index"],Gs=Q({__name:"select",props:Be(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(t){const e=Ue(t,"active"),s=k(!1),a=n=>{const l=n.target.dataset.index;l&&(l!="-1"&&(e.value=parseInt(l)),s.value=!s.value)};return(n,l)=>(y(),b("div",{"inline-block":"","pos-relative":"",onClick:a,"cursor-pointer":"","text-center":""},[v(s)?(y(),b("div",Fs)):ue("",!0),c("div",$s,T(t.list[e.value]),1),B(c("div",Ns,[(y(!0),b($,null,X(t.list,(i,r)=>(y(),b("div",{"data-index":r,class:L({"text-amber":r==e.value}),"p-1":"","hover:text-amber":""},T(i),11,Ds))),256))],512),[[Z,v(s)]])]))}}),Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IArs4c6QAAAEVQTFRFR3BM//////////////b4/////////////////////9Dd////////////+3GZ/HGZ/HGZ/HCZ/HGZ/HGZ/HGZ////+3GZG7vCKwAAABV0Uk5TAPEvsA6dhsxqVwYgQt7qaUAelc+1KF61kQAACS5JREFUeNrtnYmSozgMhjE2vsCdhIS8/6NOID0Jh40lH0C6oq3aqt3JGD4sS79kjqL42te+9rWvfZgxxWnFGx0/UqlUw3bDqEg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NyvDNqrMjFBi2fnuMDboDHd/GQPXl+Awn0ttSMz4qSZn+qRfhbGgc2Iqil/PZWV3IAuwvl0Op2TF1KLv1fiEslzTRCyeAuoS3Gefn43AoDP5UILqfWM6F+wHNf3vLzP63YJ57hDZpSg4q9zG7H0+snVL651G86BrBG1o3aigMLo6vWuGI5JjUhwPx9lIOvVviAUBraQ8nh9ickcI44atKWxovnwBcj6mUlccPjvVwzaAmnzcUwrEoDaWtR5wpl9roh6wsXRwjPQ5LUj/sgyLfPE2ktarogLfI7lmG1xAnxLST68YbHi0vOtzBbuKuhCyrdIkn5T6gQOpgGFlGeRJH2/lv4BklxScMx8K+kb9k8w4RRUSHlTQ9JXhbUQKZuKY/4doKRfobj5SQILKYCkTUnikLOjspWl41h8xyHlgvftnOmEHMsqgydcJw7P+Y1I4YWU/bLNdYdIGLtWY+stRrhDmrIx79AHkrSxBQhAQc3fy5KnAdpm4LB/5EXwRB8edympSOFuBXF8gaYj5vk6bz5856QZXpFdM5aGJD1H31ZA7mT2Ly03zz2Ep43uRuO9KeavNjJwFLrpEhuRASRtAk9ukn8iovJ3FjJw5CBRSJJbojhZp/68kAB0ESMKkJUUzxOT1BiSW8oKokn7aZsSICDDCxDPpgfJBeISkFk4iqSff5r3MhyyC7CzFjgrKtHXSDhQQAYXIIBpUVX8vFh62w4BmY1jeHchaySv+m+dBH6mzlrVnFMWUkFk/XdOmvfH+J7tRvr8qEvPOhh5mRFSgwXkhhyrUxfb7ToCR4q+3adyzGXXqSj+BMknc7y237eNV1ns0j7kys/tpIs/YH8C4mtf+9rXvva1r33tj9o/Lzzyu+swTmIAAAAASUVORK5CYII=",jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMAQL+AVSFwReurxLHcZuZhaxvx9dKPfhIHXc6LUC4LeVmg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y830MRW3Y8OFugJYXXxket45v16fcvSbl2Daf1973R7DMDVuVOl4umOKkjZUT5Z07MWkMOScT5hNKDvO0UqG36E+OOIrOkYdcc7Mb/UCF1Anlkygu8kn/HMpafSuF8Htla75mQ+M2DwGLemBad3wmA5LqB020yCEGlIwMh7UkmufyanxG+7k1VmRmr2zVk3O0BzqN1/9zQDrrYcu1Bvcq7L67Tr5EgmLbyrzGa4y+BJMPlkJrTyBL8PCubCbdN9ev5CM39hOIExUx/EXGVP/cNpF5nLT9w7rwP/IY/cLPOBPnjx58uTJk6r5CXO8FpZU+7yPAAAAAElFTkSuQmCC",Ye=window.Flv,Qs=window.pako.ungzip;function Ws(t){return Js(yt(t))}function Js(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{let a=gt(t);(e.messagesList||(e.messagesList=[])).push(Ys(t)),t.limit=a;break}case 8:{e.heartbeatDuration=ae(t,!0);break}case 9:{e.needAck=!!J(t);break}default:Ie(t,s&7)}}return e}function Ys(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.method=de(t,U(t));break}case 2:{e.payload=Nt(t,U(t));break}case 3:{e.msgId=ae(t,!1);break}case 4:{e.msgType=U(t);break}case 5:{e.offset=ae(t,!1);break}case 6:{e.needWrdsStore=!!J(t);break}case 7:{e.wrdsVersion=ae(t,!1);break}case 8:{e.wrdsSubKey=de(t,U(t));break}default:Ie(t,s&7)}}return e}function qs(t){return Hs(yt(t))}function Hs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 2:{let a=gt(t);e.user=Zs(t),t.limit=a;break}case 3:{e.content=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Zs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 3:{e.nickName=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Ks(t){let e=$t();return Xs(t,e),an(e)}function Xs(t,e){let s=t.seqId;s!==void 0&&(H(e,8),qe(e,s));let a=t.logId;a!==void 0&&(H(e,16),qe(e,a));let n=t.service;n!==void 0&&(H(e,24),qe(e,n));let l=t.method;l!==void 0&&(H(e,32),qe(e,l));let i=t.headersList;if(i!==void 0)for(let p of i){H(e,42);let m=$t();on(p,m),H(e,m.limit),cn(e,m),rn(m)}let r=t.payloadEncoding;r!==void 0&&(H(e,50),et(e,r));let u=t.payloadType;u!==void 0&&(H(e,58),et(e,u));let f=t.payload;f!==void 0&&(H(e,66),H(e,f.length),un(e,f))}function en(t){return tn(yt(t))}function tn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.seqId=ae(t,!0);break}case 2:{e.logId=ae(t,!0);break}case 3:{e.service=ae(t,!0);break}case 4:{e.method=ae(t,!0);break}case 5:{let a=gt(t);(e.headersList||(e.headersList=[])).push(sn(t)),t.limit=a;break}case 6:{e.payloadEncoding=de(t,U(t));break}case 7:{e.payloadType=de(t,U(t));break}case 8:{e.payload=Nt(t,U(t));break}default:Ie(t,s&7)}}return e}function on(t,e){let s=t.key;s!==void 0&&(H(e,10),et(e,s));let a=t.value;a!==void 0&&(H(e,18),et(e,a))}function sn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.key=de(t,U(t));break}case 2:{e.value=de(t,U(t));break}default:Ie(t,s&7)}}return e}function gt(t){let e=U(t),s=t.limit;return t.limit=t.offset+e,s}function Ie(t,e){switch(e){case 0:for(;J(t)&128;);break;case 2:ut(t,U(t));break;case 5:ut(t,4);break;case 1:ut(t,8);break;default:throw new Error("Unimplemented type: "+e)}}let nn=new Float32Array(1);new Uint8Array(nn.buffer);let ln=new Float64Array(1);new Uint8Array(ln.buffer);let Ft=[];function $t(){const t=Ft.pop();return t?(t.offset=t.limit=0,t):{bytes:new Uint8Array(64),offset:0,limit:0}}function rn(t){Ft.push(t)}function yt(t){return{bytes:t,offset:0,limit:t.length}}function an(t){let e=t.bytes,s=t.limit;return e.length===s?e:e.subarray(0,s)}function ut(t,e){if(t.offset+e>t.limit)throw new Error("Skip past limit");t.offset+=e}function Se(t){return t.offset>=t.limit}function Fe(t,e){let s=t.bytes,a=t.offset,n=t.limit,l=a+e;if(l>s.length){let i=new Uint8Array(l*2);i.set(s),t.bytes=i}return t.offset=l,l>n&&(t.limit=l),a}function wt(t,e){let s=t.offset;if(s+e>t.limit)throw new Error("Read past limit");return t.offset+=e,s}function Nt(t,e){let s=wt(t,e);return t.bytes.subarray(s,s+e)}function un(t,e){let s=Fe(t,e.length);t.bytes.set(e,s)}function de(t,e){let s=wt(t,e),a=String.fromCharCode,n=t.bytes,l="�",i="";for(let r=0;r<e;r++){let u=n[r+s],f,p,m,h;u&128?(u&224)===192?r+1>=e?i+=l:(f=n[r+s+1],(f&192)!==128?i+=l:(h=(u&31)<<6|f&63,h<128?i+=l:(i+=a(h),r++))):(u&240)==224?r+2>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],((f|p<<8)&49344)!==32896?i+=l:(h=(u&15)<<12|(f&63)<<6|p&63,h<2048||h>=55296&&h<=57343?i+=l:(i+=a(h),r+=2))):(u&248)==240?r+3>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],m=n[r+s+3],((f|p<<8|m<<16)&12632256)!==8421504?i+=l:(h=(u&7)<<18|(f&63)<<12|(p&63)<<6|m&63,h<65536||h>1114111?i+=l:(h-=65536,i+=a((h>>10)+55296,(h&1023)+56320),r+=3))):i+=l:i+=a(u)}return i}function et(t,e){let s=e.length,a=0;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),a+=r<128?1:r<2048?2:r<65536?3:4}H(t,a);let n=Fe(t,a),l=t.bytes;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),r<128?l[n++]=r:(r<2048?l[n++]=r>>6&31|192:(r<65536?l[n++]=r>>12&15|224:(l[n++]=r>>18&7|240,l[n++]=r>>12&63|128),l[n++]=r>>6&63|128),l[n++]=r&63|128)}}function cn(t,e){let s=Fe(t,e.limit),a=t.bytes,n=e.bytes;for(let l=0,i=e.limit;l<i;l++)a[l+s]=n[l]}function J(t){return t.bytes[wt(t,1)]}function Lt(t,e){let s=Fe(t,1);t.bytes[s]=e}function U(t){let e=0,s=0,a;do a=J(t),e<32&&(s|=(a&127)<<e),e+=7;while(a&128);return s}function H(t,e){for(e>>>=0;e>=128;)Lt(t,e&127|128),e>>>=7;Lt(t,e)}function ae(t,e){let s=0,a=0,n=0,l;return l=J(t),s=l&127,l&128&&(l=J(t),s|=(l&127)<<7,l&128&&(l=J(t),s|=(l&127)<<14,l&128&&(l=J(t),s|=(l&127)<<21,l&128&&(l=J(t),a=l&127,l&128&&(l=J(t),a|=(l&127)<<7,l&128&&(l=J(t),a|=(l&127)<<14,l&128&&(l=J(t),a|=(l&127)<<21,l&128&&(l=J(t),n=l&127,l&128&&(l=J(t),n|=(l&127)<<7))))))))),{low:s|a<<28,high:a>>>4|n<<24,unsigned:e}}function qe(t,e){let s=e.low>>>0,a=(e.low>>>28|e.high<<4)>>>0,n=e.high>>>24,l=n===0?a===0?s<16384?s<128?1:2:s<1<<21?3:4:a<16384?a<128?5:6:a<1<<21?7:8:n<128?9:10,i=Fe(t,l),r=t.bytes;switch(l){case 10:r[i+9]=n>>>7&1;case 9:r[i+8]=l!==9?n|128:n&127;case 8:r[i+7]=l!==8?a>>>21|128:a>>>21&127;case 7:r[i+6]=l!==7?a>>>14|128:a>>>14&127;case 6:r[i+5]=l!==6?a>>>7|128:a>>>7&127;case 5:r[i+4]=l!==5?a|128:a&127;case 4:r[i+3]=l!==4?s>>>21|128:s>>>21&127;case 3:r[i+2]=l!==3?s>>>14|128:s>>>14&127;case 2:r[i+1]=l!==2?s>>>7|128:s>>>7&127;case 1:r[i]=l!==1?s|128:s&127}}var dn=function(t,e){t.constructor==String?t=hn(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=gn(t),a=8*t.length,n=1732584193,l=-271733879,i=-1732584194,r=271733878,u=0;u<s.length;u++)s[u]=(s[u]<<8|s[u]>>>24)&16711935|(s[u]<<24|s[u]>>>8)&4278255360;s[a>>>5]|=128<<a%32,s[(a+64>>>9<<4)+14]=a;for(var f=vn,p=fn,m=pn,h=mn,u=0;u<s.length;u+=16){var E=n,Y=l,C=i,_=r;n=f(n,l,i,r,s[u+0],7,-680876936),r=f(r,n,l,i,s[u+1],12,-389564586),i=f(i,r,n,l,s[u+2],17,606105819),l=f(l,i,r,n,s[u+3],22,-1044525330),n=f(n,l,i,r,s[u+4],7,-176418897),r=f(r,n,l,i,s[u+5],12,1200080426),i=f(i,r,n,l,s[u+6],17,-1473231341),l=f(l,i,r,n,s[u+7],22,-45705983),n=f(n,l,i,r,s[u+8],7,1770035416),r=f(r,n,l,i,s[u+9],12,-1958414417),i=f(i,r,n,l,s[u+10],17,-42063),l=f(l,i,r,n,s[u+11],22,-1990404162),n=f(n,l,i,r,s[u+12],7,1804603682),r=f(r,n,l,i,s[u+13],12,-40341101),i=f(i,r,n,l,s[u+14],17,-1502002290),l=f(l,i,r,n,s[u+15],22,1236535329),n=p(n,l,i,r,s[u+1],5,-165796510),r=p(r,n,l,i,s[u+6],9,-1069501632),i=p(i,r,n,l,s[u+11],14,643717713),l=p(l,i,r,n,s[u+0],20,-373897302),n=p(n,l,i,r,s[u+5],5,-701558691),r=p(r,n,l,i,s[u+10],9,38016083),i=p(i,r,n,l,s[u+15],14,-660478335),l=p(l,i,r,n,s[u+4],20,-405537848),n=p(n,l,i,r,s[u+9],5,568446438),r=p(r,n,l,i,s[u+14],9,-1019803690),i=p(i,r,n,l,s[u+3],14,-187363961),l=p(l,i,r,n,s[u+8],20,1163531501),n=p(n,l,i,r,s[u+13],5,-1444681467),r=p(r,n,l,i,s[u+2],9,-51403784),i=p(i,r,n,l,s[u+7],14,1735328473),l=p(l,i,r,n,s[u+12],20,-1926607734),n=m(n,l,i,r,s[u+5],4,-378558),r=m(r,n,l,i,s[u+8],11,-2022574463),i=m(i,r,n,l,s[u+11],16,1839030562),l=m(l,i,r,n,s[u+14],23,-35309556),n=m(n,l,i,r,s[u+1],4,-1530992060),r=m(r,n,l,i,s[u+4],11,1272893353),i=m(i,r,n,l,s[u+7],16,-155497632),l=m(l,i,r,n,s[u+10],23,-1094730640),n=m(n,l,i,r,s[u+13],4,681279174),r=m(r,n,l,i,s[u+0],11,-358537222),i=m(i,r,n,l,s[u+3],16,-722521979),l=m(l,i,r,n,s[u+6],23,76029189),n=m(n,l,i,r,s[u+9],4,-640364487),r=m(r,n,l,i,s[u+12],11,-421815835),i=m(i,r,n,l,s[u+15],16,530742520),l=m(l,i,r,n,s[u+2],23,-995338651),n=h(n,l,i,r,s[u+0],6,-198630844),r=h(r,n,l,i,s[u+7],10,1126891415),i=h(i,r,n,l,s[u+14],15,-1416354905),l=h(l,i,r,n,s[u+5],21,-57434055),n=h(n,l,i,r,s[u+12],6,1700485571),r=h(r,n,l,i,s[u+3],10,-1894986606),i=h(i,r,n,l,s[u+10],15,-1051523),l=h(l,i,r,n,s[u+1],21,-2054922799),n=h(n,l,i,r,s[u+8],6,1873313359),r=h(r,n,l,i,s[u+15],10,-30611744),i=h(i,r,n,l,s[u+6],15,-1560198380),l=h(l,i,r,n,s[u+13],21,1309151649),n=h(n,l,i,r,s[u+4],6,-145523070),r=h(r,n,l,i,s[u+11],10,-1120210379),i=h(i,r,n,l,s[u+2],15,718787259),l=h(l,i,r,n,s[u+9],21,-343485551),n=n+E>>>0,l=l+Y>>>0,i=i+C>>>0,r=r+_>>>0}return Dt([n,l,i,r])};const vn=function(t,e,s,a,n,l,i){var r=t+(e&s|~e&a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},fn=function(t,e,s,a,n,l,i){var r=t+(e&a|s&~a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},pn=function(t,e,s,a,n,l,i){var r=t+(e^s^a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},mn=function(t,e,s,a,n,l,i){var r=t+(s^(e|~a))+(n>>>0)+i;return(r<<l|r>>>32-l)+e},hn=function(t){for(var e=[],s=0;s<t.length;s++)e.push(255&t.charCodeAt(s));return e},gn=function(t){for(var e=[],s=0,a=0;s<t.length;s++,a+=8)e[a>>>5]|=t[s]<<24-a%32;return e},yn=function(t){for(var e=[],s=0;s<32*t.length;s+=8)e.push(t[s>>>5]>>>24-s%32&255);return e},Dt=function(t){if(t.constructor==Number)return 16711935&Rt(t,8)|4278255360&Rt(t,24);for(var e=0;e<t.length;e++)t[e]=Dt(t[e]);return t},Rt=function(t,e){return t<<e|t>>>32-e},wn=function(t){for(var e=[],s=0;s<t.length;s++)e.push((t[s]>>>4).toString(16)),e.push((15&t[s]).toString(16));return e.join("")},xn=(t,e)=>{const a=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${t},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${e},device_platform=web,device_type=,ac=,identity=audience`.substring(1),n=dn(a),l=yn(n),i=wn(l);return window.byted_acrawler.frontierSign({"X-MS-STUB":i})["X-Bogus"]},kn=(t,e)=>{const s=k();let a,n=new ResizeObserver(l=>{clearTimeout(a),a=setTimeout(()=>{s.value.resize()},500)});return Ce(()=>{n.observe(t.value),e.canvas=t.value,s.value=new bn(e)}),tt(()=>{n.unobserve(t.value),clearTimeout(a)}),s};class bn{constructor(e){W(this,"canvas");W(this,"colors");W(this,"ctx");W(this,"isdraw");W(this,"lines");W(this,"textList");W(this,"fontSize");W(this,"font");W(this,"rows");W(this,"gap");W(this,"speed");W(this,"opacity");W(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=e.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=e.speed||2,this.setFont(e.fontSize||16),this.setGap(e.gap||8),this.setRows(e.rows||4),this.setOpacity(e.opacity||100),this.setColors(e.colors||["FFFFFF","#00FF80","#00FFFF","#FF00FF","#8000FF","#FF9933"]),this.resize()}resize(){this.canvas.width=this.canvas.getBoundingClientRect().width*window.devicePixelRatio,this.canvas.height=this.canvas.getBoundingClientRect().height*window.devicePixelRatio,this.initRows()}setOpacity(e){this.opacity=e;const s=Math.floor(2.55*e).toString(16);this.opacityStr=s.length==1?"0"+s:s}setRows(e){this.rows=e}setSpeed(e){this.speed=e}setFont(e){this.ctx.textBaseline="top",this.fontSize=e,this.font=`${e}px sans-serif`}setGap(e){this.gap=e}setColors(e){this.colors=e}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(e){const s=this.getLine();if(s==-1)return;const a=Math.ceil(this.ctx.measureText(e).width),n=this.canvas.width+a;this.lines[s].width=n,this.textList.push({value:e,width:a,line:s,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let e=-1,s=this.lines.length;for(;++e<s;)if(this.lines[e].width==this.canvas.width)return e;return-1}initRows(){this.lines=[];let e=-1;const s=this.gap+this.fontSize;for(;++e<this.rows;)this.lines.push({top:this.gap+s*e,width:this.canvas.width})}draw(){this.ctx.textBaseline="top",this.ctx.font=this.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let e=-1,s=this.textList.length;const a=[];for(;++e<s;){const n=this.textList[e],l=n.left+n.width;if(l<=0)continue;this.ctx.fillStyle=n.color+this.opacityStr;const i=this.lines[n.line];i&&(this.ctx.fillText(n.value,n.left,this.lines[n.line].top),n.left-=this.speed,a.push(n),i.width=Math.max(l,this.canvas.width))}this.textList=a,a.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const Cn={"w-full":"","h-full":"",flex:"","flex-col":"","lg:flex-row":"","box-border":"","md:pb-2":""},_n={"lg:grow-5":"",flex:"","flex-col":""},In={flex:"","p-2":"","pt-1":"","gap-2":"","text-lg":"","md:pr-3":""},Sn={"hover:text-amber":"",grow:"","w-25":"","box-border":"","text-center":"",truncate:"","text-4":"","md:text-5":"","m-0":"","pr-6":"","sm:pr-2":"","lg:pr-0":""},An={"aspect-ratio-video":""},Mn={"w-full":"","h-full":"","pos-absolute":"","top-0":"","z-1":"",flex:"","justify-center":"","items-center":"","text-6":""},Tn=["src"],En={key:0},On={class:"flex items-center gap-4 p-1"},jn={class:"flex items-center gap-4 p-1"},Ln={key:1,"h-0":"","w-0":""},Rn={grow:"","min-h-50":"","lg:grow-0":"","lg:w-80":"","xl:w-100":"",flex:"","flex-col":"","lg:pr-0":"","pt-3":"","lg-pt-12":"","lg:ml-3":"","box-border":"","lg:b-l-solid":"",b:"","lg:b-l-gray-7":"","lg:pl-3":""},Bn={flex:"","items-center":"","line-height-none":"","gap-4":"",b:"","b-y-solid":"","py-3":"","b-gray-7":"","px-4":""},Vn=["src"],Un={"grow-1":"","w-20":""},Pn={"h-4":"",truncate:""},zn={"h-4":"",flex:"","text-3":"","items-center":"","gap-1":""},Fn=["src"],$n={"pos-absolute":"","top-0":"","right-4":"","text-4":"",flex:"","flex-col":"","gap-3":""},Nn=["src"],Dn=["href"],Gn=["data-id","data-site","href"],Qn={"w-5":"","h-5":"","rounded-5":"",alt:""},Wn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},Jn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Yn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},qn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Hn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Zn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Kn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Xn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},el={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},tl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},ol={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},sl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},nl={flex:"","flex-wrap":"",shadow:"",blur:"","bg-dark":"","p-2":"","box-border":"",b:"","b-solid":"","b-gray-7":"",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"},rounded:""},ll=["data-color"],il={"p-3":"","bg-sm":"",flex:"","justify-between":"","items-center":""},rl=Q({__name:"play",setup(t){let e,s,a;const n=re({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),l=mt(),i=k(),r=k(),u=k(),f=fo(),p=z(()=>f.value&&f.value.stream.length>0?f.value.stream.map(g=>g.name):[]),m=z(()=>p.value.length>0?f.value.stream[n.qn].lines.map(g=>g.name):[]),h=z(()=>m.value.length>0?f.value.stream[n.qn].lines[n.line].url:""),E=z(()=>j.map(g=>Object.values(g.follows)).flat().sort(g=>g.status?-1:0));oe(h,()=>{var g;if(h.value){if(n.flv){(g=n.flv)==null||g.switchURL(h.value,l.meta.site.id!="bilibili");return}if(Ye!=null&&Ye.isSupported("video")){const d=new Ye({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return d.load(h.value),n.flv=d}return n.notice="不支持 flv",clearTimeout(s)}});const Y=()=>{u.value.scrollTop=0,Ae=0,u.value.innerHTML=""};let C,_=0,S=!0;const $e=k(),ee=kn($e,{gap:w.canvasGap,rows:w.canvasRows,speed:w.canvasSpeed,opacity:w.canvasOpacity,colors:w.canvasColorOpen?w.colors:["#ffffff"]}),ve=[];let fe;function se(){fe||(fe=setTimeout(()=>{let g=-1;const d=ve.length>5?5:ve.length;for(u.value.style.display="none";++g<d;)u.value.appendChild(ve[g]);u.value.style.display="block",ve.splice(0,5),S&&(u.value.scrollTop=u.value.scrollHeight),fe=void 0},200))}const N=(g,d)=>{var he;if(_++,w.blockOpen&&Et.value.length&&Et.value.some(Ee=>Ee.test(d))||(_%(w.sideClean||100)==0&&(u.value.innerHTML="",Ae=0),w.canvasOpen&&((he=ee.value)==null||he.add(d)),!we.value||!w.sideOpen))return;const I=document.createElement("div"),{sideColorOpen:A,sideFontsize:R,sideGap:D,colors:te}=w;I.style.margin=`${D}px 0`,I.style.fontSize=`${R}px`,A&&(I.style.color=te[Math.floor(Math.random()*te.length)]);const me=document.createElement("span");me.style.opacity="0.5",me.appendChild(document.createTextNode(g+":"));const ge=document.createElement("span");ge.appendChild(document.createTextNode(d)),I.appendChild(me),I.appendChild(ge),ve.push(I),se()};let Ae=0;const Me=()=>{if(u.value.scrollTop>=Ae)return Ae=u.value.scrollTop;Ae=u.value.scrollTop,S=!1,u.value.removeEventListener("scroll",Me)},Wt=()=>{S=!0,u.value.scrollTop=u.value.scrollHeight,u.value.addEventListener("scroll",Me,{passive:!1})};let ne;const xt=async()=>{var d;if(!f.value||C||!w.canvasOpen&&!w.sideOpen)return;let g=!0;if(f.value.siteId=="huya"){const I=(d=f.value)==null?void 0:d.ws;if(!I)return;C=new WebSocket(I),C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C==null||C.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ne=setInterval(()=>{C.send("ping")},45e3)},C.onmessage=A=>{if(g)return N("系统","弹幕服务器连接成功"),g=!1;const{sendNick:R,content:D}=JSON.parse(A.data).data;N(R,D)},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")}}else if(f.value.siteId=="douyu")C=new WebSocket("wss://danmuproxy.douyu.com:8506"),C.onopen=()=>{var I,A;clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C.send(Ne(`type@=loginreq/roomid@=${(I=f.value)==null?void 0:I.roomId}`)),C.send(Ne(`type@=joingroup/rid@=${(A=f.value)==null?void 0:A.roomId}/gid@=-9999`)),ne=setInterval(()=>{C.send(Ne("type@=mrkl/"))},45e3)},C.onmessage=async({data:I})=>{g&&(N("系统","弹幕服务器连接成功"),g=!1),(await I.text()).split(/type@=chatmsg\//).forEach(D=>{const te=D.match(/nn@=(.*)\/txt@=(.*)\/cid/);te!=null&&N(te[1],te[2])})},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")};else if(f.value.siteId=="douyin"){const I=f.value.ws.split(","),A=I[0],R=I[1],D=xn(A,R);let te=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${A}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${R}&identity=audience&signature=${D}&aid=6383&device_platform=web&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F126.0.0.0+Safari%2F537.36+Edg%2F126.0.0.0`;C=new WebSocket(te),C.binaryType="arraybuffer",C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),console.log(C),u.value.addEventListener("scroll",Me),ne=setInterval(()=>{(C==null?void 0:C.readyState)==1&&C.send(Ks({payloadType:"bh"}))},1e4)},C.onmessage=me=>{g&&(N("系统","弹幕服务器连接成功"),g=!1);const ge=en(new Uint8Array(me.data)),he=Qs(ge.payload),ie=Ws(new Uint8Array(he)).messagesList;if(!ie||ie.length==0)return;const Qe=ie.length;let ye=-1;for(;++ye<Qe;){if(ie[ye].method!="WebcastChatMessage")continue;const x=qs(ie[ye].payload);N(x.user.nickName,x.content)}},C.onerror=function(){console.log(this),clearInterval(ne),N("系统","弹幕服务器连接失败")}}},kt=new TextEncoder;function Ne(g){let d=kt.encode(g);const I=9+d.byteLength,A=[I,0,0,.1,I,0,0,0,177,2,0,0];d=kt.encode(g+"\0");const R=new Uint8Array(12+d.byteLength);return R.set(A),R.set(d,12),R.buffer}const nt=()=>{clearInterval(ne),C&&(C.onmessage=null,It=="douyu"?C.send(Ne("type@=logout")):C.close(),C=null,_=0,u.value&&De==l.fullPath&&N("系统","弹幕服务器断开连接"))};oe(f,()=>xt()),oe([()=>w.sideOpen,()=>w.canvasOpen],()=>{!w.sideOpen&&!w.canvasOpen&&nt(),C||xt()});const lt=()=>{const{site:g,id:d}=l.meta,I=l.meta.site.follows[d];I&&(f.value=I,n.follow=!0),clearInterval(ne),clearTimeout(s),n.notice="加载中...",at(()=>{N("系统","开始获取直播间信息")}),le(g.id,"getRoomDetail",{id:d}).then(A=>{if(f.value=A,n.follow&&Le(A),at(()=>N("系统","直播间信息获取成功")),!A.status)return n.notice="未开播!";document.title=f.value.title},A=>{n.notice=A,at(()=>N("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(s))},Jt=()=>{if(!f.value)return;const{id:g}=l.meta.site;n.follow=n.follow?_o(g,f.value.roomId):Le(f.value)},it=()=>{!f.value||!f.value.status||(clearTimeout(e),e=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},bt=()=>{clearTimeout(e),n.fullscreen=!n.fullscreen,document.fullscreenElement?document.exitFullscreen():i.value.requestFullscreen()},pe=()=>{clearTimeout(a),n.showController=!0,a=setTimeout(()=>{var g,d;(g=r.value)!=null&&g.paused||!((d=r.value)!=null&&d.played.length)||(n.showController=!1)},3e3)},Yt=()=>{clearTimeout(e),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},qt=()=>{n.paused=!1,pe()},Ht=()=>{n.paused=!0,pe()},Ct=g=>{if(h.value)switch(g.code){case"ArrowDown":return We(!1);case"ArrowUp":return We(!0);case"Space":return it()}},Zt=()=>{var g;clearTimeout(e),clearTimeout(a),clearTimeout(s),clearTimeout(fe),nt(),document.title="Lemon live",document.removeEventListener("keydown",Ct),n.pictureInPicture||(g=n.flv)==null||g.destroy()};lt();const _t=ht();let De=l.fullPath;Ce(()=>{i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,r.value.volume=q.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Ze||(i.value.addEventListener("mousemove",pe),document.addEventListener("keydown",Ct)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var g;if(!/play/.test(l.path))return _t.push(De);if(l.fullPath==De)return n.pictureInPicture=!1;(g=n.flv)==null||g.destroy()})});let It=l.meta.site.id;To(g=>{const{siteid:d,id:I}=g.params,A=ke.findIndex(R=>R==d);return A==-1?{name:"404"}:(g.meta.site=j[A],g.meta.id=I,n.flv&&(n.flv.destroy(),n.flv=void 0),n.qn=0,n.line=0,n.follow=!1,f.value=void 0,!0)}),oe(()=>l.params,()=>{var g;clearTimeout(fe),nt(),Y(),(g=ee.value)==null||g.destory(),It=l.meta.site.id,De=l.fullPath,lt()}),tt(Zt);const Kt=()=>Promise.all(Xe(j,ct)),Xt=async g=>{g==1&&await Kt()},eo=()=>n.showController?it():pe(),to=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},oo=g=>{const d=g.target.dataset.color;if(!d)return;const I=w.colors.findIndex(A=>A==d);if(I==-1)return w.colors.push(d);w.colors.length!=1&&w.colors.splice(I,1)};oe(()=>w.colors,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.colors)}),oe(()=>w.canvasSpeed,()=>{var g;return(g=ee.value)==null?void 0:g.setSpeed(w.canvasSpeed)}),oe(()=>w.canvasOpacity,()=>{var g;return(g=ee.value)==null?void 0:g.setOpacity(w.canvasOpacity)}),oe(()=>w.canvasColorOpen,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.canvasColorOpen?w.colors:["#ffffff"])}),Ve(()=>{var g,d,I,A;(g=ee.value)==null||g.setGap(w.canvasGap),(d=ee.value)==null||d.setFont(w.canvasFontsize),(I=ee.value)==null||I.setRows(w.canvasRows),(A=ee.value)==null||A.resize()}),oe(q,()=>{pe(),clearTimeout(s),n.notice=`当前音量 ${q.value}%`,r.value.volume=q.value/100,be("volume",q.value),s=setTimeout(()=>n.notice=null,2e3)}),oe(G,()=>{pe(),clearTimeout(s),n.notice=`当前亮度 ${G.value}%`,i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,be("brightness",G.value),s=setTimeout(()=>n.notice=null,2e3)});let rt;const Ge=k(),so=g=>{clearTimeout(rt),rt=setTimeout(()=>{const d=Te("id",g.target,Ge.value);if(!d)return;const I=Te("site",g.target,Ge.value);_t.push(`/${I}/play/${d}`)},300)},no=g=>{var R;clearTimeout(rt);const d=Te("id",g.target,Ge.value);if(!d)return;const A=`/${Te("site",g.target,Ge.value)}/play/${d}`;(R=window.open(A,"_blank"))==null||R.location},Te=(g,d,I)=>{if(d==I)return null;const A=d.dataset[g];return A||Te(g,d.parentElement,I)},lo=()=>G.value=100;oe(()=>n.muted,()=>{pe(),clearTimeout(s),n.notice=n.muted?"已静音":"已开启声音",s=setTimeout(()=>n.notice=null,2e3)});const io=()=>{if(r.value.muted){r.value.muted=!1,n.muted=!1;return}r.value.muted=!0,n.muted=!0};return(g,d)=>{var he,Ee,ie,Qe,ye;const I=Gs,A=zs,R=ze,D=Vs,te=Rs,me=Pe,ge=vt("lazy");return y(),b("div",Cn,[c("div",_n,[c("div",In,[c("div",{"hover:text-amber":"",onClick:d[0]||(d[0]=(...x)=>g.$router.back&&g.$router.back(...x)),class:"i-ri-arrow-left-line"}),c("h1",Sn,T((he=v(f))==null?void 0:he.title),1),c("div",{onClick:d[1]||(d[1]=x=>we.value=!v(we)),hidden:"","lg:block":"",style:xe(v(we)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill"},null,4)]),c("div",{ref_key:"player",ref:i,"md:rounded-6px":"","text-4":"","text-white":"",onContextmenu:d[19]||(d[19]=F(()=>{},["prevent"])),"bg-black":"","cursor-default":"",class:L({"cursor-none":!v(n).showController,"text-5":v(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":v(n).webscreen}),"pos-relative":"","w-full":"","overflow-hidden":"","select-none":"","h-full":"",onClick:eo,onDblclick:bt},[c("div",An,[c("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,"w-full":"","h-full":"","pos-absolute":"",onPlay:qt,onPause:Ht},null,544)]),B(c("div",Mn,[c("span",null,T(v(n).notice),1)],512),[[Z,v(n).notice]]),c("canvas",{ref_key:"canvas",ref:$e,"pos-absolute":"","top-0":"",width:"0",height:"0","w-full":"","h-full":"","z-1":""},null,512),B(c("div",{"pos-absolute":"","bottom-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","items-center":"",onClick:d[5]||(d[5]=F(()=>{},["stop"])),onDblclick:d[6]||(d[6]=F(()=>{},["stop"])),class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"bg-black":"","bg-op-30":""},[c("div",{onClick:it,"hover:text-amber":"",class:L(v(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill")},null,2),c("div",{"hover:text-amber":"",onClick:Jt,class:L(v(n).follow?"i-ri-heart-fill":"i-ri-heart-line")},null,2),c("div",{"hover:text-amber":"",onClick:lt,class:"i-ri-refresh-line"}),c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[2]||(d[2]=()=>v(w).canvasOpen=!v(w).canvasOpen),src:v(w).canvasOpen?v(Ot):v(jt)},null,8,Tn),d[33]||(d[33]=c("div",{grow:""},null,-1)),v(p).length?(y(),b("div",En,[M(I,{active:v(n).qn,"onUpdate:active":d[3]||(d[3]=x=>v(n).qn=x),list:v(p)},null,8,["active","list"]),M(I,{active:v(n).line,"onUpdate:active":d[4]||(d[4]=x=>v(n).line=x),list:v(m)},null,8,["active","list"]),v(Ze)?ue("",!0):(y(),b("div",{key:0,"ml-2":"","hover:text-amber":"",onClick:to,class:L(v(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line")},null,2))])):ue("",!0),c("div",{"hover:text-amber":"",onClick:Yt,class:"i-mdi-fit-to-screen"}),c("div",{"hover:text-amber":"",onClick:bt,class:L(v(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill")},null,2)],34),[[Z,v(n).showController]]),v(Ze)?B((y(),b("div",{key:0,class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"pos-absolute":"","top-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","justify-between":"","bg-black":"","bg-op-30":"",onClick:d[11]||(d[11]=F(()=>{},["stop"])),onDblclick:d[12]||(d[12]=F(()=>{},["stop"]))},[c("div",On,[c("div",{onClick:d[7]||(d[7]=x=>v(Mt)(!1)),class:"i-ri-sun-line"}),c("div",null,T(v(G)),1),c("div",{onClick:d[8]||(d[8]=x=>v(Mt)(!0)),class:"i-ri-sun-fill"})]),B(c("div",{"flex-1":"","w-10":"",truncate:"","text-center":""},T((Ee=v(f))==null?void 0:Ee.title),513),[[Z,v(n).fullscreen]]),c("div",jn,[c("div",{onClick:d[9]||(d[9]=x=>v(We)(!1)),class:"i-ri-volume-down-fill"}),c("div",null,T(v(q)),1),c("div",{onClick:d[10]||(d[10]=x=>v(We)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[Z,v(n).showController]]):B((y(),b("div",Ln,[c("div",{onClick:d[14]||(d[14]=F(()=>{},["stop"])),onDblclick:d[15]||(d[15]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% left-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[c("div",null,T(v(G)),1),M(A,{value:v(G),"onUpdate:value":d[13]||(d[13]=x=>ce(G)?G.value=x:null),max:200,min:50},null,8,["value"]),c("div",{onClick:F(lo,["stop"]),class:"i-ri-sun-line"})],32),c("div",{onClick:d[17]||(d[17]=F(()=>{},["stop"])),onDblclick:d[18]||(d[18]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% right-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[je(T(v(q))+" ",1),M(A,{value:v(q),"onUpdate:value":d[16]||(d[16]=x=>ce(q)?q.value=x:null),max:100,min:0},null,8,["value"]),c("div",{onClick:F(io,["stop"]),class:L(v(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[Z,v(n).showController]])],34)]),B(c("div",Rn,[c("div",Bn,[c("img",{src:(ie=v(f))==null?void 0:ie.avatar,"w-8":"","h-8":"",alt:"","rounded-4":""},null,8,Vn),c("div",Un,[c("div",Pn,T((Qe=v(f))==null?void 0:Qe.nickname),1),c("div",zn,[c("img",{"w-4":"","h-4":"",src:g.$route.meta.site.icon},null,8,Fn),je(" "+T(g.$route.meta.site.name),1)])]),c("div",null,[d[34]||(d[34]=c("div",{"mx-1":"",class:"i-mdi-fire"},null,-1)),c("span",null,T((ye=v(f))==null?void 0:ye.online),1)])]),M(me,{grow:!0,onTabClick:Xt,class:"!h-[calc(100%-3.75rem)]"},{default:O(()=>[M(R,{title:"聊天","pos-relative":""},{default:O(()=>{var x;return[c("div",$n,[c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[20]||(d[20]=()=>v(w).sideOpen=!v(w).sideOpen),src:v(w).sideOpen?v(Ot):v(jt)},null,8,Nn),c("div",{"text-green-5":"",onClick:Y,class:"i-ri-delete-bin-3-line"}),c("a",{"text-green-5":"",href:(x=v(f))==null?void 0:x.url,target:"_blank"},d[35]||(d[35]=[c("div",{class:"i-ri-link"},null,-1)]),8,Dn),c("div",{onClick:Wt,"text-green-5":"",class:"i-ri-arrow-down-circle-line"})]),c("div",{ref_key:"dm",ref:u,"h-full":"","pl-2":"","box-border":"",class:"scrolly"},null,512)]}),_:1}),M(R,{title:"关注","box-border":"","px-4":""},{default:O(()=>[c("div",{onClick:F(so,["prevent"]),onDblclick:F(no,["prevent"])},[(y(!0),b($,null,X(v(E),x=>{var St,At;return y(),b("a",{"data-id":x.roomId,"data-site":x.siteId,class:L({"text-amber":((St=v(f))==null?void 0:St.siteId)==x.siteId&&((At=v(f))==null?void 0:At.roomId)==x.roomId}),key:`${x.siteId}/${x.roomId}`,href:`/${x.siteId}/play/${x.roomId}`,flex:"","items-center":"","gap-2":"","py-2":""},[B(c("img",Qn,null,512),[[ge,x.avatar]]),c("div",null,T(x.nickname),1),c("div",{"w-3":"","h-3":"","rounded-3":"",class:L([x.status?"bg-green":"bg-red"])},null,2),c("div",null,T(x.status?"直播中":"未开播"),1)],10,Gn)}),128))],32)]),_:1}),M(R,{title:"设置","px-2":""},{default:O(()=>[d[47]||(d[47]=c("div",{"p-3":"","bg-sm":""},"弹幕",-1)),c("div",Wn,[c("div",Jn,[d[36]||(d[36]=c("div",null,"文字大小",-1)),M(D,{value:v(w).canvasFontsize,"onUpdate:value":d[21]||(d[21]=x=>v(w).canvasFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",Yn,[d[37]||(d[37]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).canvasGap,"onUpdate:value":d[22]||(d[22]=x=>v(w).canvasGap=x),max:80,min:1,step:1},null,8,["value"])]),c("div",qn,[d[38]||(d[38]=c("div",null,"最大行数",-1)),M(D,{value:v(w).canvasRows,"onUpdate:value":d[23]||(d[23]=x=>v(w).canvasRows=x),max:50,min:1,step:1},null,8,["value"])]),c("div",Hn,[d[39]||(d[39]=c("div",null,"弹幕速度",-1)),M(D,{value:v(w).canvasSpeed,"onUpdate:value":d[24]||(d[24]=x=>v(w).canvasSpeed=x),max:32,min:.5,step:.5},null,8,["value"])]),c("div",Zn,[d[40]||(d[40]=c("div",null,"弹幕透明",-1)),M(D,{value:v(w).canvasOpacity,"onUpdate:value":d[25]||(d[25]=x=>v(w).canvasOpacity=x),max:100,min:10,step:10},null,8,["value"])]),c("div",Kn,[d[41]||(d[41]=c("div",null,"彩色弹幕",-1)),M(te,{value:v(w).canvasColorOpen,"onUpdate:value":d[26]||(d[26]=x=>v(w).canvasColorOpen=x)},null,8,["value"])])]),d[48]||(d[48]=c("div",{"p-3":"","bg-sm":""},"聊天",-1)),c("div",Xn,[c("div",el,[d[42]||(d[42]=c("div",null,"文字大小",-1)),M(D,{value:v(w).sideFontsize,"onUpdate:value":d[27]||(d[27]=x=>v(w).sideFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",tl,[d[43]||(d[43]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).sideGap,"onUpdate:value":d[28]||(d[28]=x=>v(w).sideGap=x),max:80,min:0,step:1},null,8,["value"])]),c("div",ol,[d[44]||(d[44]=c("div",null,"自动清屏",-1)),M(D,{value:v(w).sideClean,"onUpdate:value":d[29]||(d[29]=x=>v(w).sideClean=x),max:500,min:10,step:10},null,8,["value"])]),c("div",sl,[d[45]||(d[45]=c("div",null,"彩色消息",-1)),M(te,{value:v(w).sideColorOpen,"onUpdate:value":d[30]||(d[30]=x=>v(w).sideColorOpen=x)},null,8,["value"])])]),d[49]||(d[49]=c("div",{"p-3":"","bg-sm":""},"颜色",-1)),c("div",nl,[(y(!0),b($,null,X(v(So),x=>(y(),b("div",{onClick:oo},[c("div",{class:"w-4 h-4 rounded-2 m-2 shadow","box-border":"","data-color":x,"cursor-pointer":"",style:xe(`background:${x};${v(w).colors.includes(x)?"box-shadow:0 0 0px 2px white":""}`)},null,12,ll)]))),256))]),c("div",il,[d[46]||(d[46]=je("屏蔽 ")),M(te,{value:v(w).blockOpen,"onUpdate:value":d[31]||(d[31]=x=>v(w).blockOpen=x)},null,8,["value"])]),B(c("textarea",{"outline-none":"","w-full":"","onUpdate:modelValue":d[32]||(d[32]=x=>v(w).blockWords=x),"text-white":"",b:"","b-solid":"","b-gray-7":"","p-2":"","box-border":"",rows:"5","bg-dark":"",shadow:"","rounded-1":"",placeholder:"以空格分隔"},null,512),[[dt,v(w).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[Z,v(we)]])])}}}),Gt=(t,e)=>{const s=t.__vccOpts||t;for(const[a,n]of e)s[a]=n;return s},al={},ul={"h-full":"","box-border":"","py-2":"",class:"scrolly"};function cl(t,e){return y(),b("div",ul,e[0]||(e[0]=[c("div",{"text-xl":"","p-4":""},"支持",-1),c("div",{"ml-4":""},[c("img",{"h-50":"","mr-5":"",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),c("img",{"h-50":"",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1)]))}const dl=Gt(al,[["render",cl]]),vl={},fl={"h-full":"",flex:"","justify-center":"","items-center":""};function pl(t,e){return y(),b("div",fl,e[0]||(e[0]=[c("div",{"text-center":"","text-8":"","line-height-8":""},[c("div",{"font-900":""},"404"),c("div",{"mt-4":""},"页面未找到")],-1)]))}const ml=Gt(vl,[["render",pl]]);async function Oe(t){const{siteid:e,id:s}=t.params,a=j.findIndex(n=>n.id==e);return a==-1?{name:"404"}:(t.meta.site=j[a],t.meta.id=s,t.meta.index=a,P.value=a,!0)}const hl=Ao({history:Mo(),routes:[{path:"/",redirect:()=>`/${ke[P.value]}`},{path:"/follow",component:js},{path:"/user",component:dl},{path:"/category",redirect:()=>`/${ke[P.value]}/category`},{path:"/search",redirect:()=>`/${ke[P.value]}/search`},{path:"/:siteid",component:Ls,beforeEnter:Oe},{path:"/:siteid/category",component:ps,beforeEnter:Oe},{path:"/:siteid/category/:id",component:es,beforeEnter:Oe},{path:"/:siteid/play/:id",component:rl,beforeEnter:Oe},{path:"/:siteid/search",component:xs,beforeEnter:Oe},{path:"/:pathMatch(.*)*",name:"404",component:ml}]}),gl={install(t){t.directive("lazy",{mounted(e,s){e.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const a=new IntersectionObserver(n=>{Ut(n,l=>{if(l.isIntersecting){const i=new Image;i.src=s.value,i.onload=()=>e.src=s.value,a.unobserve(l.target)}})});a.observe(e)}})}},Qt=uo(Lo);Qt.use(hl).use(gl);Qt.mount("#app");
1
+ var ro=Object.defineProperty;var ao=(t,e,s)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var W=(t,e,s)=>ao(t,typeof e!="symbol"?e+"":e,s);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function s(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(n){if(n.ep)return;n.ep=!0;const l=s(n);fetch(n.href,l)}})();const uo=Vue.createApp,Q=Vue.defineComponent,v=Vue.unref,y=Vue.openBlock,b=Vue.createElementBlock,ue=Vue.createCommentVNode,X=Vue.renderList,$=Vue.Fragment,L=Vue.normalizeClass,c=Vue.createElementVNode,Ke=Vue.resolveComponent,O=Vue.withCtx,M=Vue.createVNode,Z=Vue.vShow,B=Vue.withDirectives,Re=Vue.resolveDynamicComponent,V=Vue.createBlock,co=Vue.KeepAlive,k=Vue.ref,Ce=Vue.onMounted,oe=Vue.watch,re=Vue.reactive,Ve=Vue.watchEffect,z=Vue.computed,ce=Vue.isRef,dt=Vue.vModelText,vo=Vue.withKeys,T=Vue.toDisplayString,Bt=Vue.onActivated,vt=Vue.resolveDirective,je=Vue.createTextVNode,F=Vue.withModifiers,xe=Vue.normalizeStyle,fo=Vue.shallowRef,at=Vue.nextTick,tt=Vue.onBeforeUnmount;Vue.h;const po=Vue.onDeactivated,mo=Vue.onUnmounted,Ue=Vue.useModel,Be=Vue.mergeModels,ho=Vue.renderSlot,Vt=Vue.useSlots,go=Vue.provide,yo=Vue.inject,wo=Vue.getCurrentInstance,Xe=(t,e)=>{let s=-1;const a=t.length,n=new Array(a);for(;++s<a;)n[s]=e(t[s]);return n},Ut=(t,e)=>{let s=-1;const a=t.length;for(;++s<a;)e(t[s])},xo=t=>{if(t.scrollTop>0)return!0;t.scrollTop=1;const e=!!t.scrollTop;return t.scrollTop=0,e},ko=async(t,e,s)=>{const a=[],n=[];for(const l of t){const i=Promise.resolve().then(()=>s(l));if(a.push(i),e<=t.length){const r=i.then(()=>n.splice(n.indexOf(r),1));n.push(r),n.length>=e&&await Promise.race(n)}}return Promise.all(a)},ft="https://lemonlive.deno.dev/api/",le=(t,e,s)=>(t=="douyin"&&(s?s.cookie=K[t]:s={cookie:K[t]}),pt(`${ft}${t}/${e}${s?"?"+new URLSearchParams(s).toString():""}`)),ct=async t=>{const e=Object.keys(t.follows);if(!e.length)return Promise.resolve(!1);if(t.id=="douyin"){(await ko(e,4,a=>le("douyin","getLiveStatus",{id:a}))).forEach((a,n)=>t.follows[e[n]].status=a[e[n]].status);return}await le(t.id,"getLiveStatus",{id:e.join(",")}).then(s=>Object.keys(s).forEach(a=>{t.follows[a].status=s[a].status}))},bo=t=>pt(`${ft}sync`,{method:"POST",body:t}),Co=t=>pt(`${ft}sync/${t}`),pt=(t,e)=>fetch(t,e).then(async s=>{const a=await s.json();return a.code!=200?Promise.reject(a.msg):a.data},s=>{Promise.reject("网络异常!")});k(!0);const j=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("bilibili"))}],ke=["huya","douyu","douyin","bilibili"],q=k(_e("volume",100)),G=k(_e("brightness",100)),We=t=>{q.value=t?Math.min(100,q.value+5):Math.max(0,q.value-5)},Mt=t=>{G.value=t?Math.min(200,G.value+10):Math.max(50,G.value-10)};function Je(t){const e=localStorage.getItem("follows-"+t);return e?JSON.parse(e):{}}function Le(t){const e=j.find(s=>s.id==t.siteId);return t.siteId=e.id,e.follows[t.roomId]={...t,stream:void 0,ws:void 0},localStorage.setItem("follows-"+t.siteId,JSON.stringify(e.follows)),Reflect.has(e.follows,t.roomId)}function _o(t,e){const s=j.find(a=>a.id==t);return delete s.follows[e],localStorage.setItem("follows-"+t,JSON.stringify(s.follows)),Reflect.has(s.follows,e)}function Io(){j.forEach(t=>{for(const e in t.follows)delete t.follows[e];localStorage.removeItem("follows-"+t.id)})}async function Tt(t,e){const s=t.categories;s.value.length||(s.value=await le(t.id,"getCategories"));for(const a of s.value)for(const n of a.list)if(n.cid==e)return n;return null}const w=re(_e("dm-settings",{canvasOpen:!0,canvasFontsize:18,canvasGap:10,canvasOpacity:100,canvasRows:10,canvasSpeed:2.5,canvasColorOpen:!1,sideOpen:!0,sideFontsize:14,sideGap:2,sideColorOpen:!1,sideClean:100,colors:["#ffffff","#7e22ce","1d4ed8","#be185d","#fcd34d"],blockOpen:!1,blockWords:""}));Ve(()=>{be("dm-settings",w)});function _e(t,e){const s=localStorage.getItem(t);return s?JSON.parse(s):e}function be(t,e){localStorage.setItem(t,JSON.stringify(e))}const So=["#ffffff","#000000","#374151","#b91c1c","#f87171","#fdba74","#c2410c","#fcd34d","#b45309","#bef264","#4d7c0f","#86efac","#15803d","#5eead4","#0f766e","#67e8f9","#0e7490","#93c5fd","#1d4ed8","#d8b4fe","#7e22ce","#f0abfc","#a21caf","#f9a8d4","#be185d","#fda4af","#be123c"],Et=z(()=>w.blockWords.length==0?[]:w.blockWords.split(" ").map(t=>new RegExp(t))),K=re(_e("cookies",{}));Ve(()=>be("cookies",K));const P=k(0),we=k(_e("show-chat",!0)),He=k(_e("show-aside",!0));Ve(()=>be("show-chat",we.value));Ve(()=>be("show-aside",He.value));const Ao=VueRouter.createRouter,Mo=VueRouter.createWebHistory,mt=VueRouter.useRoute,ht=VueRouter.useRouter,To=VueRouter.onBeforeRouteUpdate,Eo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},Oo={"text-sm":"","pos-fixed":"","bottom-0":"","left-0":"","right-0":"","md:py-2":"","b-t-solid":"",b:"","b-gray-7":"","md:b-r-solid":"","md:top-0":"","md:right-auto":"",flex:"","justify-around":"","md:flex-col":"","md:justify-left":"","bg-dark-7":"","z-10":""},jo={"h-full":"",class:"scrolly","md:px-3":""},Lo=Q({__name:"App",setup(t){const e=[{icon:"i-ri-home-smile-line",link:"/"},{icon:"i-ri-apps-2-line",link:"/category"},{icon:"i-ri-heart-line",link:"/follow"},{icon:"i-ri-search-line",link:"/search"},{icon:"i-ri-user-smile-line",link:"/user"}],s=k(!0);Ce(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>s.value=!1,5e3)});const a=mt();return oe(a,()=>{const n=a.params.siteid;if(n==null)return;const l=ke.findIndex(i=>i==n);l!=-1&&(P.value=l)}),(n,l)=>{const i=Ke("router-link"),r=Ke("router-view");return y(),b($,null,[v(s)?(y(),b("iframe",Eo)):ue("",!0),B(c("div",Oo,[(y(),b($,null,X(e,u=>M(i,{to:u.link,"hover:text-amber":"","rounded-2":"","py-2":"","px-4":"","m-2":"",class:L({"text-amber":n.$route.path==u.link})},{default:O(()=>[c("div",{class:L(u.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[Z,v(He)]]),c("main",{"mx-2":"","md:mx-0":"",class:L(["md:!h-100vh",{"md:ml-17.5":v(He),"!h-100vh":!v(He)}]),"pt-2":"","box-border":""},[c("div",jo,[M(r,null,{default:O(({Component:u})=>[(y(),V(co,{exclude:["play"]},[(y(),V(Re(u)))],1024))]),_:1})])],2)],64)}}}),Ro=t=>{const e=k(t);return[e,a=>e.value=a]},Bo=/scroll|auto|overlay/i;function Vo(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function Uo(t,e=document.body){let s=t;for(;s&&s!==e&&Vo(s);){const{overflowY:a}=window.getComputedStyle(s);if(Bo.test(a))return s;s=s.parentNode}return e}function Po(t,e=document.body){const s=k();return Ce(()=>{t.value&&(s.value=Uo(t.value,e))}),s}const zo={key:0,"text-center":""},Fo={key:1,"text-center":""},ot=Q({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(t,{emit:e}){const s=t,a=k(0),[n,l]=Ro("normal"),i=k(),r=Po(i),u=e,f=()=>{if(a.value=r.value.scrollTop,n.value!="normal")return;r.value.scrollHeight-r.value.clientHeight-r.value.scrollTop<s.offset&&h()};Ce(()=>{s.immediate&&h(),r.value.addEventListener("scroll",f,{passive:!0})}),Bt(()=>{r.value.scrollTop=a.value,r.value.addEventListener("scroll",f)});const p=()=>{r.value.removeEventListener("scroll",f)};po(p),tt(p);let m;const h=()=>{l("loading"),u("load",l),clearTimeout(m),m=setTimeout(()=>{xo(r.value)||u("load",l)},2e3)};return(E,Y)=>(y(),b("div",{ref_key:"root",ref:i,"h-full":"","select-none":""},[ho(E.$slots,"default"),v(n)=="loading"?(y(),b("div",zo,"加载中...")):v(n)=="finshed"?(y(),b("div",Fo,T(s.finshedText),1)):v(n)=="loaderror"?(y(),b("div",{key:2,"text-center":"","cursor-pointer":"",onClick:h},T(s.errorText),1)):ue("",!0)],512))}}),$o=["data-id","data-site","href"],No={"pos-relative":"","text-rose-4":"","rounded-t-2":"","w-full":"","aspect-video":""},Do={block:"","h-full":"","rounded-2":"","select-none":""},Go={"pos-absolute":"","bottom-0":"","right-0":"","px-2":"","py-1":"","rounded-tl-2":"","bg-dark-6":""},Qo={"line-height-none":"","pos-absolute":"","top-0":"","right-0":"","px-1":"","py-1":"","rounded-tr-1":"","rounded-bl-2":"","bg-dark-6":""},Wo={key:0,"rounded-2":"","text-white":"","pos-absolute":"","text-8":"","top-0":"","bottom-0":"","left-0":"","right-0":"",flex:"","justify-center":"","items-center":"","bg-gray-7":"","bg-op-80":""},Jo={"px-2":"","text-truncate":"","leading-normal":""},Yo={"px-2":"","text-truncate":"","leading-normal":"","pb-2":""},st=Q({__name:"rooms",props:{list:{}},setup(t){let e;const s=ht(),a=k(),n=r=>{clearTimeout(e),e=setTimeout(()=>{const u=i("id",r.target,a.value);if(!u)return;const f=i("site",r.target,a.value);s.push(`/${f}/play/${u}`)},300)},l=r=>{var m;clearTimeout(e);const u=i("id",r.target,a.value);if(!u)return;const p=`/${i("site",r.target,a.value)}/play/${u}`;(m=window.open(p,"_blank"))==null||m.location},i=(r,u,f)=>{if(u==f)return null;const p=u.dataset[r];return p||i(r,u.parentElement,f)};return(r,u)=>{const f=vt("lazy");return r.list.value.length>0?(y(),b("div",{key:0,ref_key:"root",ref:a,grid:"","gap-4":"","p-2":"","justify-evenly":"","cursor-pointer":"","select-none":"","grid-cols-2":"","md:grid-cols-3":"","xl:grid-cols-4":"",class:"2xl:grid-cols-5",onClick:F(n,["prevent"]),onDblclick:F(l,["prevent"])},[(y(!0),b($,null,X(r.list.value,p=>(y(),b("a",{"data-id":p.roomId,"data-site":p.siteId,href:`/${p.siteId}/play/${p.roomId}`,key:`${p.siteId}-${p.roomId}`,shadow:"","rounded-2":"","b-2px":"","b-solid":"","b-transparent":"","hover:b-amber":"","overflow-hidden":""},[c("div",No,[B(c("img",Do,null,512),[[f,p.cover]]),c("div",Go,T(p.category),1),c("div",Qo,[u[0]||(u[0]=c("div",{class:"i-mdi-fire"},null,-1)),c("span",null,T(p.online),1)]),p.status?ue("",!0):(y(),b("div",Wo," 未开播 "))]),c("div",Jo,T(p.title),1),c("div",Yo,T(p.nickname),1)],8,$o))),128))],544)):ue("",!0)}}}),qo={"h-full":""},Ho={flex:"","py-1":"","px-2":"","text-lg":"","gap-2":""},Zo={grow:"","text-center":""},Ko={"hover:text-amber":""},Xo={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},es=Q({__name:"categoryRooms",setup(t){const e=mt(),s=k(""),a=k(),n={list:k([]),page:1,hasMore:!0},l=f=>{const{site:p,id:m}=e.meta;le(p.id,"getCategoryRooms",{id:m,pid:a.value,page:n.page}).then(h=>{if(n.list.value=n.list.value.concat(h.list),n.hasMore=h.hasMore,K[p.id]||(K[p.id]=h.cookie),!h.hasMore)return f("finshed");n.page++,f("normal")},h=>{s.value=h,f("loaderror")})},i=k(!1),r=()=>{document.querySelector("#goTop").click(),i.value=!0;const{site:f,id:p}=e.meta;le(f.id,"getCategoryRooms",{id:p,pid:a.value,page:n.page}).then(m=>{n.list.value=m.list,n.hasMore=m.hasMore,n.page++,K[f.id]||(K[f.id]=m.cookie)},m=>{s.value=m}).finally(()=>i.value=!1)};let u=e.fullPath;return Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),Bt(function(){u!=e.fullPath&&(u=e.fullPath,Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),n.list.value=[],n.page=1,n.hasMore=!0)}),(f,p)=>{var E;const m=st,h=ot;return y(),b("div",qo,[c("div",Ho,[c("div",{"hover:text-amber":"",onClick:p[0]||(p[0]=(...Y)=>f.$router.back&&f.$router.back(...Y)),class:"i-ri-arrow-left-line"}),c("div",Zo,[c("span",Ko,T(`${(E=v(e).meta.site)==null?void 0:E.name} ${v(s)==null?"分区不存在":v(s)==""?"加载中":v(s)}`),1)]),c("div",{"mr-7":"","md:mr-24":"","hover:text-amber":"",onClick:r,class:L(["i-ri-refresh-line",{"animate-spin":v(i)}])},null,2)]),v(s)?(y(),b("div",Xo,[(y(),V(h,{key:v(u),onLoad:l},{default:O(()=>[M(m,{list:n.list},null,8,["list"])]),_:1}))])):ue("",!0)])}}}),Pt=Symbol("tabs"),ts=(t,e)=>{const s=re([]);return go(t,Object.assign({link:l=>{l.proxy&&s.push(l.proxy)},unlink:l=>{const i=s.indexOf(l.proxy);s.splice(i,1)},children:s},e)),s},zt=t=>{const e=yo(t);if(e==null)return{parent:e,index:k(-1)};const s=wo(),{link:a,unlink:n,children:l}=e;a(s),mo(()=>n(s));const i=z(()=>l.indexOf(s.proxy));return{parent:e,children:l,index:i}},os={class:"h-full","box-border":""},ss={"w-full":"","box-border":"","text-sm":"","sm:text-base":""},ns=["onClick"],ls={class:"h-[calc(100%-2rem)] scrolly","box-border":"","pt-1":""},Pe=Q({__name:"tabs",props:Be({link:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},grow:{type:Boolean,default:!1},swipeable:{type:Boolean,default:!1},swipeloop:{type:Boolean,default:!0},justify:{default:"justify-center"}},{active:{default:0},activeModifiers:{}}),emits:Be(["tabClick"],["update:active"]),setup(t,{emit:e}){const s=Ue(t,"active"),a=t,n=e,l=u=>{s.value=u,n("tabClick",u)},i=ts(Pt,{active:s,props:a}),r=z(()=>Xe(i,u=>u.title));return(u,f)=>{const p=Ke("router-link");return y(),b("div",os,[c("div",ss,[c("div",{flex:"",p1:"","sm:gap-1":"","text-center":"","h-8":"","box-border":"","lg:justify-center":"",class:L([[v(i).length>5||u.grow?"":u.justify],"scrollx"])},[a.link?(y(!0),b($,{key:0},X(v(r),(m,h)=>(y(),V(p,{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),to:v(i)[h].href},{default:O(()=>[je(T(m),1)]),_:2},1032,["class","to"]))),256)):(y(!0),b($,{key:1},X(v(r),(m,h)=>(y(),b("a",{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),onClick:E=>l(h)},T(m),11,ns))),256))],2)]),c("div",ls,[(y(),V(Re(u.$slots.default)))])])}}}),is=Symbol("swipe"),rs={"w-full":"","h-full":"","shrink-0":"","pos-relative":""},as=Q({__name:"swipeItem",emits:["inited"],setup(t,{emit:e}){const s=k(!1),{parent:a,children:n,index:l}=zt(is),i=Vt(),r=e,u=z(()=>(a==null?void 0:a.active.value)==l.value?(s.value||(s.value=!0,r("inited",l.value)),!0):l.value==(a.active.value==0?n.length-1:a.active.value-1)||l.value==(a.active.value==n.length-1?0:a.active.value+1)),f=z(()=>u.value||s.value||!(a!=null&&a.props.lazy)?i.default:null);return(p,m)=>B((y(),b("div",rs,[(y(),V(Re(v(f))))],512)),[[Z,v(u)]])}}),us={"h-full":"","w-full":"","shrink-0":"",class:"scrolly"},ze=Q({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(t,{expose:e,emit:s}){const a=t,n=k(!1),l=Vt(),{parent:i,index:r,children:u}=zt(Pt),f=s,p=z(()=>(i==null?void 0:i.active.value)==r.value?(n.value||(n.value=!0,f("inited",r.value)),!0):(i==null?void 0:i.props.swipeable)&&(r.value==(i.active.value==0?u.length-1:i.active.value-1)||r.value==(i.active.value==u.length-1?0:i.active.value+1))),m=z(()=>p.value||i!=null&&i.props.swipeable||n.value||!(i!=null&&i.props.lazy)?l.default:null);return e({title:a.title}),(h,E)=>{var C,_;const Y=as;return B((y(),b("div",us,[(C=v(i))!=null&&C.props.swipeable?(y(),V(Y,{key:0},{default:O(()=>[(y(),V(Re(v(m))))]),_:1})):(y(),V(Re(v(m)),{key:1}))],512)),[[Z,v(p)||((_=v(i))==null?void 0:_.props.swipeable)]])}}}),cs={key:0,"text-center":""},ds={"pb-2":"",grid:"","gap-4":"","px-4":"","md:px-2":"","grid-cols-4":"","sm:grid-cols-6":"","md:grid-cols-8":"","lg:grid-cols-10":"","xl:grid-cols-15":"",lass:"2xl:grid-cols-18"},vs={"w-full":"","aspect-ratio-square":"",rounded:""},fs={"w-full":"","text-truncate":"","text-xs":"","md:text-sm":"","text-center":""},ps=Q({__name:"category",setup(t){const e=z(()=>j[P.value].id),s=k(),a=n=>{j[n].categories.value.length||(s.value="加载中...",le(e.value,"getCategories").then(l=>{s.value=null,j[n].categories.value=l},l=>s.value=l))};return(n,l)=>{const i=Ke("router-link"),r=ze,u=Pe,f=vt("lazy");return y(),V(u,{active:v(P),"onUpdate:active":l[0]||(l[0]=p=>ce(P)?P.value=p:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),p=>(y(),V(r,{title:p.name,href:`/${p.id}/category`,onInited:a,key:p.id},{default:O(()=>[v(s)?(y(),b("div",cs,T(v(s)),1)):(y(),V(u,{key:1,active:p.categoryActive.value,"onUpdate:active":m=>p.categoryActive.value=m},{default:O(()=>[(y(!0),b($,null,X(p.categories.value,m=>(y(),V(r,{title:m.name,key:m.id},{default:O(()=>[c("div",ds,[(y(!0),b($,null,X(m.list,h=>(y(),V(i,{to:`/${p.id}/category/${h.cid}`,"cursor-pointer":""},{default:O(()=>[B(c("img",vs,null,512),[[f,h.pic]]),c("div",fs,T(h.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),ms={"text-center":"","py-1":""},hs={class:"w-60% max-w-md pos-relative inline-block"},gs={class:"h-[calc(100%-3rem)]"},ys={key:1},ws={key:1},xs=Q({__name:"search",setup(t){const e=k(""),s=z(()=>j[P.value]),a=k(),n=()=>{if(!e.value)return Promise.resolve();const p=s.value.search;p.list.value=[],p.page=1,p.hasMore=!0,a.value="搜索中...";const m=s.value.id;return le(m,"searchRooms",{page:p.page,kw:e.value}).then(h=>{p.list.value=h.list,p.hasMore=h.hasMore,p.page+=1,a.value="finished",K[m]||(K[m]=h.cookie)},h=>a.value=h)},l=p=>{const m=s.value.search,h=s.value.id;p("loading"),le(h,"searchRooms",{page:m.page,kw:e.value}).then(E=>{if(m.list.value=m.list.value.concat(E.list),m.hasMore=E.hasMore,K[h]||(K[h]=E.cookie),!m.hasMore)return p("finshed");m.page+=1,p("normal")},E=>{p("loaderror")})},i=p=>{r.push(`/${ke[p]}/search`),!u()&&j[p].search.page==1&&n()},r=ht(),u=()=>{if(e.value)return/^[\d]*$/.test(e.value)?(r.push(`/play/${s.value.id}/${e.value}`),!0):!1},f=()=>{u()||(j.forEach(p=>p.search.page=1),n())};return(p,m)=>{const h=st,E=ot,Y=ze,C=Pe;return y(),b($,null,[c("div",ms,[c("div",hs,[B(c("input",{"md:text-4":"",type:"text","onUpdate:modelValue":m[0]||(m[0]=_=>ce(e)?e.value=_:null),"box-border":"","w-full":"","py-2.5":"","pl-3":"","pr-9":"","text-white":"","bg-transparent":"","b-1":"","b-green":"","rounded-6":"","outline-0":"",onKeydown:vo(f,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[dt,v(e),void 0,{trim:!0}]]),c("div",{class:"i-ri-search-line top-50%",absolute:"","right-3":"",onClick:f,style:{transform:"translateY(-50%)"}})])]),c("div",gs,[M(C,{active:v(P),"onUpdate:active":m[1]||(m[1]=_=>ce(P)?P.value=_:null),onTabClick:i},{default:O(()=>[(y(!0),b($,null,X(v(j),_=>(y(),V(Y,{title:_.name,key:_.id},{default:O(()=>[v(a)=="finished"?(y(),b($,{key:0},[_.search.list.value.length?(y(),V(E,{key:0,onLoad:l},{default:O(()=>[M(h,{list:_.search.list},null,8,["list"])]),_:2},1024)):(y(),b("div",ys," 什么也没有找到 "))],64)):(y(),b("div",ws,T(v(a)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),ks={flex:"","items-center":""},bs={"grow-1":"","justify-center":"","gap-2":"","p-2":"",flex:""},Cs={"pos-relative":"",flex:"","gap-2":""},_s={"pos-absolute":"","top-0":"","right-0":"",style:{transform:"translateX(150%)"},"rounded-6":"","bg-white":"",shadow:"","text-amber":""},Is={class:"bg-gray-7 gap-4 p-12 rounded-2 flex flex-col shadow relative mt-30"},Ss={class:"flex justify-center items-center"},As={class:"flex gap-4"},Ms={class:"py-2 min-w-16"},Ts={class:"flex gap-4"},Es={class:"py-2 min-w-16"},Os={class:"h-[calc(100%-3rem)]"},js=Q({__name:"follow",setup(t){const e=Xe(j,_=>({name:_.name,list:z(()=>Object.values(_.follows).sort(S=>S.status?-1:0))}));e.unshift({name:"全部",list:z(()=>j.map(_=>Object.values(_.follows)).flat().sort(_=>_.status?-1:0))});const s=k(0),a=()=>{var S;if(l.value)return;const _=s.value;l.value=!0,_==0?Promise.all(Xe(j,ct)).finally(n):(S=ct(j[_-1]))==null||S.finally(n)},n=()=>setTimeout(()=>l.value=!1,300),l=k(!1),i=k(""),r=k(!1),u=k([]),f=k(!1),p=()=>setTimeout(()=>f.value=!1,300),m=()=>{f.value||(f.value=!0,bo(JSON.stringify(e[0].list.value)).then(_=>{i.value=_,u.value=e[0].list.value}).finally(p))},h=()=>{if(!f.value){if(!/^\d{4}$/.test(i.value))return i.value="";f.value=!0,Co(i.value).then(_=>{u.value=_}).finally(p)}},E=()=>{if(!f.value){if(f.value=!0,i.value.startsWith("[")){try{const _=JSON.parse(i.value);Ut(_,S=>{/^\d+$/.test(S.roomId)&&Le({siteId:S.siteId,roomId:S.roomId,cover:S.face,nickname:S.userName})})}catch{i.value="合并失败"}return p()}u.value.forEach(_=>Le(_)),p()}},Y=()=>{f.value||(f.value=!0,Io(),u.value.forEach(_=>Le(_)),p())};a();const C=_=>_("finshed");return(_,S)=>{const $e=st,ee=ot,ve=ze,fe=Pe;return y(),b($,null,[c("div",ks,[c("div",bs,[c("div",Cs,[S[6]||(S[6]=je("关注用户 ")),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:S[0]||(S[0]=se=>r.value=!0)},"同步"),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:a},"刷新"),B(c("div",_s,S[5]||(S[5]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(l)]])]),B(c("div",{class:"absolute z-10 top-0 left-0 right-0 bottom-0 flex justify-center items-start",onClick:S[3]||(S[3]=F(se=>r.value=!1,["self"]))},[c("div",Is,[c("div",Ss,[S[8]||(S[8]=c("div",{class:"text-8"},"同步",-1)),B(c("div",null,S[7]||(S[7]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(f)]])]),B(c("input",{class:"outline-none p-2 border-none rounded-2 flex-1","onUpdate:modelValue":S[1]||(S[1]=se=>ce(i)?i.value=se:null),type:"text",placeholder:"key"},null,512),[[dt,v(i)]]),c("div",As,[c("div",Ms,"本地 "+T(v(e)[0].list.value.length),1),c("div",{onClick:E,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"}," 合并 "),c("div",{onClick:Y,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")]),c("div",Ts,[c("div",Es,"云端 "+T(v(u).length),1),c("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"拉取"),c("div",{onClick:m,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")]),S[9]||(S[9]=c("div",null,[c("div",null,"1. key 有效期 10 分钟"),c("div",null,"2. 拉取需要输入 key"),c("div",null,"3. 推送自动生成 key ")],-1)),c("div",{onClick:S[2]||(S[2]=F(se=>r.value=!1,["stop"])),class:"i-ri-close-circle-line absolute right-2 top-2"})])],512),[[Z,v(r)]])])]),c("div",Os,[M(fe,{active:v(s),"onUpdate:active":S[4]||(S[4]=se=>ce(s)?s.value=se:null)},{default:O(()=>[(y(!0),b($,null,X(v(e),se=>(y(),V(ve,{title:se.name},{default:O(()=>[M(ee,{onLoad:C,"finshed-text":""},{default:O(()=>[M($e,{list:se.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),Ls=Q({__name:"index",setup(t){const e=z(()=>j[P.value].id),s=a=>{const n=j[P.value].recommend;le(e.value,"getRecommendRooms",{page:n.page}).then(l=>{if(n.list.value=n.list.value.concat(l.list),n.hasMore=l.hasMore,K[e.value]||(K[e.value]=l.cookie),!n.hasMore)return a("finshed");n.page++,a("normal")},()=>a("loaderror"))};return(a,n)=>{const l=st,i=ot,r=ze,u=Pe;return y(),V(u,{active:v(P),"onUpdate:active":n[0]||(n[0]=f=>ce(P)?P.value=f:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),f=>(y(),V(r,{href:`/${f.id}`,key:f.id,title:f.name,"pos-relative":""},{default:O(()=>[M(i,{onLoad:s,"h-full":""},{default:O(()=>[M(l,{list:f.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),Rs=Q({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(t){const e=Ue(t,"value");return(s,a)=>(y(),b("div",{"pos-relative":"",style:{transition:"background-color .3s"},onClick:a[0]||(a[0]=()=>e.value=!e.value),"w-12":"","inline-block":"","cursor-pointer":"","rounded-6":"","h-6":"",class:L([e.value?"bg-amber":"bg-gray-4"])},[c("div",{"w-6":"","h-full":"","rounded-6":"","bg-white":"",style:xe([{transition:"transform .3s"},e.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),Bs={"rounded-4":"",flex:"","bg-gray-7":"","w-min":"","p-2":"","py-1":"","gap-2":""},Vs=Q({__name:"stepper",props:Be({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=()=>s.value=Math.min(s.value+e.step,e.max),n=()=>s.value=Math.max(s.value-e.step,e.min);return(l,i)=>(y(),b("div",Bs,[c("div",{class:"i-ri-subtract-fill",onClick:n}),c("div",null,T(s.value),1),c("div",{class:"i-ri-add-fill",onClick:a})]))}});function Us(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Ze=Us(),Ps=t=>Ze?t.touches==null?t:t.touches[0]||t.changedTouches[0]:t,zs=Q({__name:"slider",props:Be({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=k(),n=e.width<e.height;let l;const i=m=>{m.stopPropagation(),f(m),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",p,!0)},r=z(()=>(s.value-e.min)/(e.max-e.min)*100),u=z(()=>{const m=100-r.value,h=`top:${m}%`,E=`left:${m}%`;return n?{loaded:h,indicator:h}:{loaded:`${E};transform:translateX(-100%)`,indicator:E}}),f=m=>{m.stopPropagation(),m=Ps(m);const E=100-(Math.min(n?l.height:l.width,Math.max(0,n?m.clientY-l.y:m.clientX-l.x))/(n?l.height:l.width)*100|0);s.value=((e.max-e.min)*E|0)/100+e.min|0},p=m=>{m.stopPropagation(),document.removeEventListener("mousemove",f,!0),document.removeEventListener("mouseup",p,!0)};return Ce(()=>{l=a.value.getBoundingClientRect(),a.value.addEventListener("mousedown",i,!0)}),tt(()=>{a.value.removeEventListener("mousedown",i,!0)}),(m,h)=>(y(),b("div",{"cursor-pointer":"",style:xe({width:`${e.width}px`,height:`${e.height}px`}),class:L(n?" py-4 ":"px-4"),flex:"","justify-center":""},[c("div",{"w-full":"","h-full":"","pos-relative":"",flex:"","justify-center":"","items-center":"",ref_key:"root",ref:a,onClick:f},[c("div",{"bg-gray":"","pos-relative":"","overflow-hidden":"",class:L(n?"h-full w-2px":"w-full h-2px")},[c("div",{"w-full":"","bg-amber":"","h-full":"","pos-absolute":"",style:xe(v(u).loaded)},null,4)],2),c("div",{"pos-absolute":"","w-12px":"","h-12px":"","bg-amber":"","rounded-2":"",style:xe(v(u).indicator),class:L(n?"-mt-6px":"-ml-6px")},null,6)],512)],6))}}),Fs={key:0,"z-1":"",fixed:"","top-0":"","bottom-0":"","left-0":"","right-0":"","bg-transparent":"","data-index":"-1"},$s={"p-1":"","data-index":"-1","hover:text-amber":""},Ns={"text-center":"","z-1":"","pos-absolute":"","top-0":"",class:"left-50%","w-max":"",style:{transform:"translate3d(-50%,-100%,0)"}},Ds=["data-index"],Gs=Q({__name:"select",props:Be(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(t){const e=Ue(t,"active"),s=k(!1),a=n=>{const l=n.target.dataset.index;l&&(l!="-1"&&(e.value=parseInt(l)),s.value=!s.value)};return(n,l)=>(y(),b("div",{"inline-block":"","pos-relative":"",onClick:a,"cursor-pointer":"","text-center":""},[v(s)?(y(),b("div",Fs)):ue("",!0),c("div",$s,T(t.list[e.value]),1),B(c("div",Ns,[(y(!0),b($,null,X(t.list,(i,r)=>(y(),b("div",{"data-index":r,class:L({"text-amber":r==e.value}),"p-1":"","hover:text-amber":""},T(i),11,Ds))),256))],512),[[Z,v(s)]])]))}}),Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IArs4c6QAAAEVQTFRFR3BM//////////////b4/////////////////////9Dd////////////+3GZ/HGZ/HGZ/HCZ/HGZ/HGZ/HGZ////+3GZG7vCKwAAABV0Uk5TAPEvsA6dhsxqVwYgQt7qaUAelc+1KF61kQAACS5JREFUeNrtnYmSozgMhjE2vsCdhIS8/6NOID0Jh40lH0C6oq3aqt3JGD4sS79kjqL42te+9rWvfZgxxWnFGx0/UqlUw3bDqEg3mJFxA9X8ORBtduEoTfcyGnM1FUkzTijH+/D9GYS7lxqPIzYn0aKbGA8dqJmOQ7cGkd3MysCFZmbjqI1BxBzEhDkXnY8jtuWou4XxJBPbdduukmZ5AiHOVZPlMNvGYGUBwTuXFpZh5O4zgncubhtF7b1G8M5lvRobu1Zhc4pOoJyrNrYxiN4WRHbRzkWtQ1RbZ0QR61z2S0HqzbWW9Tzgkask1gFksbnxKOfS9hmlxQ4W5VzVQRwr1rnskbfbp7KKcC5GuiQZNVNNAnYubY+8Qu8EEuxcjshbFrtZmHPZ+feIvHHOxcxxIm+Uc9kjr2G7ggQ4lzpU5A13rvpYkdfnXO5IerTIG+pc/EDSBORcjlOryeEir8+5qLQZPULk1XXZNEo9TodzXlUVpVQIYYz9IiONEGMeoz3GfIzMueRSKqWask68eEpZiW4fE1Sm0i5NRbp9jVTxaYZJ0x3BjIxK/YyT7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3fy5KnAdpm4LB/5EXwRB8edympSOFuBXF8gaYj5vk6bz5856QZXpFdM5aGJD1H31ZA7mT2Ly03zz2Ep43uRuO9KeavNjJwFLrpEhuRASRtAk9ukn8iovJ3FjJw5CBRSJJbojhZp/68kAB0ESMKkJUUzxOT1BiSW8oKokn7aZsSICDDCxDPpgfJBeISkFk4iqSff5r3MhyyC7CzFjgrKtHXSDhQQAYXIIBpUVX8vFh62w4BmY1jeHchaySv+m+dBH6mzlrVnFMWUkFk/XdOmvfH+J7tRvr8qEvPOhh5mRFSgwXkhhyrUxfb7ToCR4q+3adyzGXXqSj+BMknc7y237eNV1ns0j7kys/tpIs/YH8C4mtf+9rXvva1r33tj9o/Lzzyu+swTmIAAAAASUVORK5CYII=",jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMAQL+AVSFwReurxLHcZuZhaxvx9dKPfhIHXc6LUC4LeVmgOMiFNCbXm5N04LeoSzz7pBYru5YPA5jd4ld+AAAKR0lEQVR42uzba3OiMBQG4INXvKGiUuttvaPVarW27vv//9h21umCJlZOBMPO8Hy2Dm+TcMIJUiKRSCQSiUQikUj8p8bL1JdMm5RtXr++YGeQVpkUTswlqUm7OOmkSZ8MPAW1HPDoS5KBX0EtRwySHMs40yKuCs5tSIseLmSIZ2biXIm0KOGCWyeWAxCLIYFgRBxTCJakA0QV1swUrUkHiKx3CipbhuiVdICAcw/eQWJKOpQgkaNgXvAlJou9B4nGjIIw3iBRJC2OZaiu18EEMhnSIwcZh25bQuaDdClAJk+3PEOmOCBd3k1IFNu3/syChD0jfSqQ6arc7lAlnXaQ6dFPHMi0SKvsChLNPV23gUzqSHpVIfObrto3IWH3SbcRZJ6Znx+SdvUyJFZZkqtBpksxMITMjqTGDUikKBY+IFMjiXYKEvacYuGpCQmzT6JuX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1QARkDxKi5xmE9HSNs1bGywLlW55Il3p39Fiq9Yx0V/bQFBikSI5UjGWVK6ZZ/uagJot34BCUJIJ3z1+wBwWOMu0viyjhJ7xsZUlflvKjzKTlnVtYo4WFpQ9cchtW0lKjsJEhD/BORRQMT1un0BSMqIVq6YPfVNLIhnnMUKJQyunONS9vn69fwwkJRat27Tj4ZcGOgV/uEdS4hI7sj/U9kcfW24RI5WSNrFtthAMbQKVkfLDlqRkJPEoeO8xjKEyPG76JSnxhSIy/U0Ol10G1dDn/hiSkpBcOo2ZSK9hulWI2ZROoe0SJbbGbPpD1gSzafpvy4/RLF+1o4G1c/fzyaJzuqaa8f82Tol++E4yZFUR+qOTtBYUAVKJOJu6gKLwWHW8u7LFYIt5a4516yDigPV3BqsQz5aYLa+DVxJrWifjUdnDWz4BH61kg1ilH6/kJJkSD3OsEkM4oEBzCllluLJZ9Ih7+ZgFwT2RjUtWFStpf6qFVHKf/5sdWDXE0sCsnqFUItJK6DH+XaaL7Djy+s5PaSnmxO3+TZI9a1WwkmQljioEqpIwAR2SuMnuZF/axT2lKlmBLqd2Y830MRW3Y8OFugJYXXxket45v16fcvSbl2Daf1973R7DMDVuVOl4umOKkjZUT5Z07MWkMOScT5hNKDvO0UqG36E+OOIrOkYdcc7Mb/UCF1Anlkygu8kn/HMpafSuF8Htla75mQ+M2DwGLemBad3wmA5LqB020yCEGlIwMh7UkmufyanxG+7k1VmRmr2zVk3O0BzqN1/9zQDrrYcu1Bvcq7L67Tr5EgmLbyrzGa4y+BJMPlkJrTyBL8PCubCbdN9ev5CM39hOIExUx/EXGVP/cNpF5nLT9w7rwP/IY/cLPOBPnjx58uTJk6r5CXO8FpZU+7yPAAAAAElFTkSuQmCC",Ye=window.Flv,Qs=window.pako.ungzip;function Ws(t){return Js(yt(t))}function Js(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{let a=gt(t);(e.messagesList||(e.messagesList=[])).push(Ys(t)),t.limit=a;break}case 8:{e.heartbeatDuration=ae(t,!0);break}case 9:{e.needAck=!!J(t);break}default:Ie(t,s&7)}}return e}function Ys(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.method=de(t,U(t));break}case 2:{e.payload=Nt(t,U(t));break}case 3:{e.msgId=ae(t,!1);break}case 4:{e.msgType=U(t);break}case 5:{e.offset=ae(t,!1);break}case 6:{e.needWrdsStore=!!J(t);break}case 7:{e.wrdsVersion=ae(t,!1);break}case 8:{e.wrdsSubKey=de(t,U(t));break}default:Ie(t,s&7)}}return e}function qs(t){return Hs(yt(t))}function Hs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 2:{let a=gt(t);e.user=Zs(t),t.limit=a;break}case 3:{e.content=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Zs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 3:{e.nickName=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Ks(t){let e=$t();return Xs(t,e),an(e)}function Xs(t,e){let s=t.seqId;s!==void 0&&(H(e,8),qe(e,s));let a=t.logId;a!==void 0&&(H(e,16),qe(e,a));let n=t.service;n!==void 0&&(H(e,24),qe(e,n));let l=t.method;l!==void 0&&(H(e,32),qe(e,l));let i=t.headersList;if(i!==void 0)for(let p of i){H(e,42);let m=$t();on(p,m),H(e,m.limit),cn(e,m),rn(m)}let r=t.payloadEncoding;r!==void 0&&(H(e,50),et(e,r));let u=t.payloadType;u!==void 0&&(H(e,58),et(e,u));let f=t.payload;f!==void 0&&(H(e,66),H(e,f.length),un(e,f))}function en(t){return tn(yt(t))}function tn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.seqId=ae(t,!0);break}case 2:{e.logId=ae(t,!0);break}case 3:{e.service=ae(t,!0);break}case 4:{e.method=ae(t,!0);break}case 5:{let a=gt(t);(e.headersList||(e.headersList=[])).push(sn(t)),t.limit=a;break}case 6:{e.payloadEncoding=de(t,U(t));break}case 7:{e.payloadType=de(t,U(t));break}case 8:{e.payload=Nt(t,U(t));break}default:Ie(t,s&7)}}return e}function on(t,e){let s=t.key;s!==void 0&&(H(e,10),et(e,s));let a=t.value;a!==void 0&&(H(e,18),et(e,a))}function sn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.key=de(t,U(t));break}case 2:{e.value=de(t,U(t));break}default:Ie(t,s&7)}}return e}function gt(t){let e=U(t),s=t.limit;return t.limit=t.offset+e,s}function Ie(t,e){switch(e){case 0:for(;J(t)&128;);break;case 2:ut(t,U(t));break;case 5:ut(t,4);break;case 1:ut(t,8);break;default:throw new Error("Unimplemented type: "+e)}}let nn=new Float32Array(1);new Uint8Array(nn.buffer);let ln=new Float64Array(1);new Uint8Array(ln.buffer);let Ft=[];function $t(){const t=Ft.pop();return t?(t.offset=t.limit=0,t):{bytes:new Uint8Array(64),offset:0,limit:0}}function rn(t){Ft.push(t)}function yt(t){return{bytes:t,offset:0,limit:t.length}}function an(t){let e=t.bytes,s=t.limit;return e.length===s?e:e.subarray(0,s)}function ut(t,e){if(t.offset+e>t.limit)throw new Error("Skip past limit");t.offset+=e}function Se(t){return t.offset>=t.limit}function Fe(t,e){let s=t.bytes,a=t.offset,n=t.limit,l=a+e;if(l>s.length){let i=new Uint8Array(l*2);i.set(s),t.bytes=i}return t.offset=l,l>n&&(t.limit=l),a}function wt(t,e){let s=t.offset;if(s+e>t.limit)throw new Error("Read past limit");return t.offset+=e,s}function Nt(t,e){let s=wt(t,e);return t.bytes.subarray(s,s+e)}function un(t,e){let s=Fe(t,e.length);t.bytes.set(e,s)}function de(t,e){let s=wt(t,e),a=String.fromCharCode,n=t.bytes,l="�",i="";for(let r=0;r<e;r++){let u=n[r+s],f,p,m,h;u&128?(u&224)===192?r+1>=e?i+=l:(f=n[r+s+1],(f&192)!==128?i+=l:(h=(u&31)<<6|f&63,h<128?i+=l:(i+=a(h),r++))):(u&240)==224?r+2>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],((f|p<<8)&49344)!==32896?i+=l:(h=(u&15)<<12|(f&63)<<6|p&63,h<2048||h>=55296&&h<=57343?i+=l:(i+=a(h),r+=2))):(u&248)==240?r+3>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],m=n[r+s+3],((f|p<<8|m<<16)&12632256)!==8421504?i+=l:(h=(u&7)<<18|(f&63)<<12|(p&63)<<6|m&63,h<65536||h>1114111?i+=l:(h-=65536,i+=a((h>>10)+55296,(h&1023)+56320),r+=3))):i+=l:i+=a(u)}return i}function et(t,e){let s=e.length,a=0;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),a+=r<128?1:r<2048?2:r<65536?3:4}H(t,a);let n=Fe(t,a),l=t.bytes;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),r<128?l[n++]=r:(r<2048?l[n++]=r>>6&31|192:(r<65536?l[n++]=r>>12&15|224:(l[n++]=r>>18&7|240,l[n++]=r>>12&63|128),l[n++]=r>>6&63|128),l[n++]=r&63|128)}}function cn(t,e){let s=Fe(t,e.limit),a=t.bytes,n=e.bytes;for(let l=0,i=e.limit;l<i;l++)a[l+s]=n[l]}function J(t){return t.bytes[wt(t,1)]}function Lt(t,e){let s=Fe(t,1);t.bytes[s]=e}function U(t){let e=0,s=0,a;do a=J(t),e<32&&(s|=(a&127)<<e),e+=7;while(a&128);return s}function H(t,e){for(e>>>=0;e>=128;)Lt(t,e&127|128),e>>>=7;Lt(t,e)}function ae(t,e){let s=0,a=0,n=0,l;return l=J(t),s=l&127,l&128&&(l=J(t),s|=(l&127)<<7,l&128&&(l=J(t),s|=(l&127)<<14,l&128&&(l=J(t),s|=(l&127)<<21,l&128&&(l=J(t),a=l&127,l&128&&(l=J(t),a|=(l&127)<<7,l&128&&(l=J(t),a|=(l&127)<<14,l&128&&(l=J(t),a|=(l&127)<<21,l&128&&(l=J(t),n=l&127,l&128&&(l=J(t),n|=(l&127)<<7))))))))),{low:s|a<<28,high:a>>>4|n<<24,unsigned:e}}function qe(t,e){let s=e.low>>>0,a=(e.low>>>28|e.high<<4)>>>0,n=e.high>>>24,l=n===0?a===0?s<16384?s<128?1:2:s<1<<21?3:4:a<16384?a<128?5:6:a<1<<21?7:8:n<128?9:10,i=Fe(t,l),r=t.bytes;switch(l){case 10:r[i+9]=n>>>7&1;case 9:r[i+8]=l!==9?n|128:n&127;case 8:r[i+7]=l!==8?a>>>21|128:a>>>21&127;case 7:r[i+6]=l!==7?a>>>14|128:a>>>14&127;case 6:r[i+5]=l!==6?a>>>7|128:a>>>7&127;case 5:r[i+4]=l!==5?a|128:a&127;case 4:r[i+3]=l!==4?s>>>21|128:s>>>21&127;case 3:r[i+2]=l!==3?s>>>14|128:s>>>14&127;case 2:r[i+1]=l!==2?s>>>7|128:s>>>7&127;case 1:r[i]=l!==1?s|128:s&127}}var dn=function(t,e){t.constructor==String?t=hn(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=gn(t),a=8*t.length,n=1732584193,l=-271733879,i=-1732584194,r=271733878,u=0;u<s.length;u++)s[u]=(s[u]<<8|s[u]>>>24)&16711935|(s[u]<<24|s[u]>>>8)&4278255360;s[a>>>5]|=128<<a%32,s[(a+64>>>9<<4)+14]=a;for(var f=vn,p=fn,m=pn,h=mn,u=0;u<s.length;u+=16){var E=n,Y=l,C=i,_=r;n=f(n,l,i,r,s[u+0],7,-680876936),r=f(r,n,l,i,s[u+1],12,-389564586),i=f(i,r,n,l,s[u+2],17,606105819),l=f(l,i,r,n,s[u+3],22,-1044525330),n=f(n,l,i,r,s[u+4],7,-176418897),r=f(r,n,l,i,s[u+5],12,1200080426),i=f(i,r,n,l,s[u+6],17,-1473231341),l=f(l,i,r,n,s[u+7],22,-45705983),n=f(n,l,i,r,s[u+8],7,1770035416),r=f(r,n,l,i,s[u+9],12,-1958414417),i=f(i,r,n,l,s[u+10],17,-42063),l=f(l,i,r,n,s[u+11],22,-1990404162),n=f(n,l,i,r,s[u+12],7,1804603682),r=f(r,n,l,i,s[u+13],12,-40341101),i=f(i,r,n,l,s[u+14],17,-1502002290),l=f(l,i,r,n,s[u+15],22,1236535329),n=p(n,l,i,r,s[u+1],5,-165796510),r=p(r,n,l,i,s[u+6],9,-1069501632),i=p(i,r,n,l,s[u+11],14,643717713),l=p(l,i,r,n,s[u+0],20,-373897302),n=p(n,l,i,r,s[u+5],5,-701558691),r=p(r,n,l,i,s[u+10],9,38016083),i=p(i,r,n,l,s[u+15],14,-660478335),l=p(l,i,r,n,s[u+4],20,-405537848),n=p(n,l,i,r,s[u+9],5,568446438),r=p(r,n,l,i,s[u+14],9,-1019803690),i=p(i,r,n,l,s[u+3],14,-187363961),l=p(l,i,r,n,s[u+8],20,1163531501),n=p(n,l,i,r,s[u+13],5,-1444681467),r=p(r,n,l,i,s[u+2],9,-51403784),i=p(i,r,n,l,s[u+7],14,1735328473),l=p(l,i,r,n,s[u+12],20,-1926607734),n=m(n,l,i,r,s[u+5],4,-378558),r=m(r,n,l,i,s[u+8],11,-2022574463),i=m(i,r,n,l,s[u+11],16,1839030562),l=m(l,i,r,n,s[u+14],23,-35309556),n=m(n,l,i,r,s[u+1],4,-1530992060),r=m(r,n,l,i,s[u+4],11,1272893353),i=m(i,r,n,l,s[u+7],16,-155497632),l=m(l,i,r,n,s[u+10],23,-1094730640),n=m(n,l,i,r,s[u+13],4,681279174),r=m(r,n,l,i,s[u+0],11,-358537222),i=m(i,r,n,l,s[u+3],16,-722521979),l=m(l,i,r,n,s[u+6],23,76029189),n=m(n,l,i,r,s[u+9],4,-640364487),r=m(r,n,l,i,s[u+12],11,-421815835),i=m(i,r,n,l,s[u+15],16,530742520),l=m(l,i,r,n,s[u+2],23,-995338651),n=h(n,l,i,r,s[u+0],6,-198630844),r=h(r,n,l,i,s[u+7],10,1126891415),i=h(i,r,n,l,s[u+14],15,-1416354905),l=h(l,i,r,n,s[u+5],21,-57434055),n=h(n,l,i,r,s[u+12],6,1700485571),r=h(r,n,l,i,s[u+3],10,-1894986606),i=h(i,r,n,l,s[u+10],15,-1051523),l=h(l,i,r,n,s[u+1],21,-2054922799),n=h(n,l,i,r,s[u+8],6,1873313359),r=h(r,n,l,i,s[u+15],10,-30611744),i=h(i,r,n,l,s[u+6],15,-1560198380),l=h(l,i,r,n,s[u+13],21,1309151649),n=h(n,l,i,r,s[u+4],6,-145523070),r=h(r,n,l,i,s[u+11],10,-1120210379),i=h(i,r,n,l,s[u+2],15,718787259),l=h(l,i,r,n,s[u+9],21,-343485551),n=n+E>>>0,l=l+Y>>>0,i=i+C>>>0,r=r+_>>>0}return Dt([n,l,i,r])};const vn=function(t,e,s,a,n,l,i){var r=t+(e&s|~e&a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},fn=function(t,e,s,a,n,l,i){var r=t+(e&a|s&~a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},pn=function(t,e,s,a,n,l,i){var r=t+(e^s^a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},mn=function(t,e,s,a,n,l,i){var r=t+(s^(e|~a))+(n>>>0)+i;return(r<<l|r>>>32-l)+e},hn=function(t){for(var e=[],s=0;s<t.length;s++)e.push(255&t.charCodeAt(s));return e},gn=function(t){for(var e=[],s=0,a=0;s<t.length;s++,a+=8)e[a>>>5]|=t[s]<<24-a%32;return e},yn=function(t){for(var e=[],s=0;s<32*t.length;s+=8)e.push(t[s>>>5]>>>24-s%32&255);return e},Dt=function(t){if(t.constructor==Number)return 16711935&Rt(t,8)|4278255360&Rt(t,24);for(var e=0;e<t.length;e++)t[e]=Dt(t[e]);return t},Rt=function(t,e){return t<<e|t>>>32-e},wn=function(t){for(var e=[],s=0;s<t.length;s++)e.push((t[s]>>>4).toString(16)),e.push((15&t[s]).toString(16));return e.join("")},xn=(t,e)=>{const a=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${t},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${e},device_platform=web,device_type=,ac=,identity=audience`.substring(1),n=dn(a),l=yn(n),i=wn(l);return window.byted_acrawler.frontierSign({"X-MS-STUB":i})["X-Bogus"]},kn=(t,e)=>{const s=k();let a,n=new ResizeObserver(l=>{clearTimeout(a),a=setTimeout(()=>{s.value.resize()},500)});return Ce(()=>{n.observe(t.value),e.canvas=t.value,s.value=new bn(e)}),tt(()=>{n.unobserve(t.value),clearTimeout(a)}),s};class bn{constructor(e){W(this,"canvas");W(this,"colors");W(this,"ctx");W(this,"isdraw");W(this,"lines");W(this,"textList");W(this,"fontSize");W(this,"font");W(this,"rows");W(this,"gap");W(this,"speed");W(this,"opacity");W(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=e.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=e.speed||2,this.setFont(e.fontSize||16),this.setGap(e.gap||8),this.setRows(e.rows||4),this.setOpacity(e.opacity||100),this.setColors(e.colors||["FFFFFF","#00FF80","#00FFFF","#FF00FF","#8000FF","#FF9933"]),this.resize()}resize(){this.canvas.width=this.canvas.getBoundingClientRect().width*window.devicePixelRatio,this.canvas.height=this.canvas.getBoundingClientRect().height*window.devicePixelRatio,this.initRows()}setOpacity(e){this.opacity=e;const s=Math.floor(2.55*e).toString(16);this.opacityStr=s.length==1?"0"+s:s}setRows(e){this.rows=e}setSpeed(e){this.speed=e}setFont(e){this.ctx.textBaseline="top",this.fontSize=e,this.font=`${e}px sans-serif`}setGap(e){this.gap=e}setColors(e){this.colors=e}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(e){const s=this.getLine();if(s==-1)return;const a=Math.ceil(this.ctx.measureText(e).width),n=this.canvas.width+a;this.lines[s].width=n,this.textList.push({value:e,width:a,line:s,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let e=-1,s=this.lines.length;for(;++e<s;)if(this.lines[e].width==this.canvas.width)return e;return-1}initRows(){this.lines=[];let e=-1;const s=this.gap+this.fontSize;for(;++e<this.rows;)this.lines.push({top:this.gap+s*e,width:this.canvas.width})}draw(){this.ctx.textBaseline="top",this.ctx.font=this.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let e=-1,s=this.textList.length;const a=[];for(;++e<s;){const n=this.textList[e],l=n.left+n.width;if(l<=0)continue;this.ctx.fillStyle=n.color+this.opacityStr;const i=this.lines[n.line];i&&(this.ctx.fillText(n.value,n.left,this.lines[n.line].top),n.left-=this.speed,a.push(n),i.width=Math.max(l,this.canvas.width))}this.textList=a,a.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const Cn={"w-full":"","h-full":"",flex:"","flex-col":"","lg:flex-row":"","box-border":"","md:pb-2":""},_n={"lg:grow-5":"",flex:"","flex-col":""},In={flex:"","p-2":"","pt-1":"","gap-2":"","text-lg":"","md:pr-3":""},Sn={"hover:text-amber":"",grow:"","w-25":"","box-border":"","text-center":"",truncate:"","text-4":"","md:text-5":"","m-0":"","pr-6":"","sm:pr-2":"","lg:pr-0":""},An={"aspect-ratio-video":""},Mn={"w-full":"","h-full":"","pos-absolute":"","top-0":"","z-1":"",flex:"","justify-center":"","items-center":"","text-6":""},Tn=["src"],En={key:0},On={class:"flex items-center gap-4 p-1"},jn={class:"flex items-center gap-4 p-1"},Ln={key:1,"h-0":"","w-0":""},Rn={grow:"","min-h-50":"","lg:grow-0":"","lg:w-80":"","xl:w-100":"",flex:"","flex-col":"","lg:pr-0":"","pt-3":"","lg-pt-12":"","lg:ml-3":"","box-border":"","lg:b-l-solid":"",b:"","lg:b-l-gray-7":"","lg:pl-3":""},Bn={flex:"","items-center":"","line-height-none":"","gap-4":"",b:"","b-y-solid":"","py-3":"","b-gray-7":"","px-4":""},Vn=["src"],Un={"grow-1":"","w-20":""},Pn={"h-4":"",truncate:""},zn={"h-4":"",flex:"","text-3":"","items-center":"","gap-1":""},Fn=["src"],$n={"pos-absolute":"","top-0":"","right-4":"","text-4":"",flex:"","flex-col":"","gap-3":""},Nn=["src"],Dn=["href"],Gn=["data-id","data-site","href"],Qn={"w-5":"","h-5":"","rounded-5":"",alt:""},Wn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},Jn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Yn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},qn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Hn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Zn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Kn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Xn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},el={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},tl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},ol={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},sl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},nl={flex:"","flex-wrap":"",shadow:"",blur:"","bg-dark":"","p-2":"","box-border":"",b:"","b-solid":"","b-gray-7":"",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"},rounded:""},ll=["data-color"],il={"p-3":"","bg-sm":"",flex:"","justify-between":"","items-center":""},rl=Q({__name:"play",setup(t){let e,s,a;const n=re({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),l=mt(),i=k(),r=k(),u=k(),f=fo(),p=z(()=>f.value&&f.value.stream.length>0?f.value.stream.map(g=>g.name):[]),m=z(()=>p.value.length>0?f.value.stream[n.qn].lines.map(g=>g.name):[]),h=z(()=>m.value.length>0?f.value.stream[n.qn].lines[n.line].url:""),E=z(()=>j.map(g=>Object.values(g.follows)).flat().sort(g=>g.status?-1:0));oe(h,()=>{var g;if(h.value){if(n.flv){(g=n.flv)==null||g.switchURL(h.value,l.meta.site.id!="bilibili");return}if(Ye!=null&&Ye.isSupported("video")){const d=new Ye({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return d.load(h.value),n.flv=d}return n.notice="不支持 flv",clearTimeout(s)}});const Y=()=>{u.value.scrollTop=0,Ae=0,u.value.innerHTML=""};let C,_=0,S=!0;const $e=k(),ee=kn($e,{gap:w.canvasGap,rows:w.canvasRows,speed:w.canvasSpeed,opacity:w.canvasOpacity,colors:w.canvasColorOpen?w.colors:["#ffffff"]}),ve=[];let fe;function se(){fe||(fe=setTimeout(()=>{let g=-1;const d=ve.length>5?5:ve.length;for(u.value.style.display="none";++g<d;)u.value.appendChild(ve[g]);u.value.style.display="block",ve.splice(0,5),S&&(u.value.scrollTop=u.value.scrollHeight),fe=void 0},200))}const N=(g,d)=>{var he;if(_++,w.blockOpen&&Et.value.length&&Et.value.some(Ee=>Ee.test(d))||(_%(w.sideClean||100)==0&&(u.value.innerHTML="",Ae=0),w.canvasOpen&&((he=ee.value)==null||he.add(d)),!we.value||!w.sideOpen))return;const I=document.createElement("div"),{sideColorOpen:A,sideFontsize:R,sideGap:D,colors:te}=w;I.style.margin=`${D}px 0`,I.style.fontSize=`${R}px`,A&&(I.style.color=te[Math.floor(Math.random()*te.length)]);const me=document.createElement("span");me.style.opacity="0.5",me.appendChild(document.createTextNode(g+":"));const ge=document.createElement("span");ge.appendChild(document.createTextNode(d)),I.appendChild(me),I.appendChild(ge),ve.push(I),se()};let Ae=0;const Me=()=>{if(u.value.scrollTop>=Ae)return Ae=u.value.scrollTop;Ae=u.value.scrollTop,S=!1,u.value.removeEventListener("scroll",Me)},Wt=()=>{S=!0,u.value.scrollTop=u.value.scrollHeight,u.value.addEventListener("scroll",Me,{passive:!1})};let ne;const xt=async()=>{var d;if(!f.value||C||!w.canvasOpen&&!w.sideOpen)return;let g=!0;if(f.value.siteId=="huya"){const I=(d=f.value)==null?void 0:d.ws;if(!I)return;C=new WebSocket(I),C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C==null||C.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ne=setInterval(()=>{C.send("ping")},45e3)},C.onmessage=A=>{if(g)return N("系统","弹幕服务器连接成功"),g=!1;const{sendNick:R,content:D}=JSON.parse(A.data).data;N(R,D)},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")}}else if(f.value.siteId=="douyu")C=new WebSocket("wss://danmuproxy.douyu.com:8506"),C.onopen=()=>{var I,A;clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C.send(Ne(`type@=loginreq/roomid@=${(I=f.value)==null?void 0:I.roomId}`)),C.send(Ne(`type@=joingroup/rid@=${(A=f.value)==null?void 0:A.roomId}/gid@=-9999`)),ne=setInterval(()=>{C.send(Ne("type@=mrkl/"))},45e3)},C.onmessage=async({data:I})=>{g&&(N("系统","弹幕服务器连接成功"),g=!1),(await I.text()).split(/type@=chatmsg\//).forEach(D=>{const te=D.match(/nn@=(.*)\/txt@=(.*)\/cid/);te!=null&&N(te[1],te[2])})},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")};else if(f.value.siteId=="douyin"){const I=f.value.ws.split(","),A=I[0],R=I[1],D=xn(A,R);let te=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${A}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${R}&identity=audience&signature=${D}&aid=6383&device_platform=web&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F126.0.0.0+Safari%2F537.36+Edg%2F126.0.0.0`;C=new WebSocket(te),C.binaryType="arraybuffer",C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),console.log(C),u.value.addEventListener("scroll",Me),ne=setInterval(()=>{(C==null?void 0:C.readyState)==1&&C.send(Ks({payloadType:"bh"}))},1e4)},C.onmessage=me=>{g&&(N("系统","弹幕服务器连接成功"),g=!1);const ge=en(new Uint8Array(me.data)),he=Qs(ge.payload),ie=Ws(new Uint8Array(he)).messagesList;if(!ie||ie.length==0)return;const Qe=ie.length;let ye=-1;for(;++ye<Qe;){if(ie[ye].method!="WebcastChatMessage")continue;const x=qs(ie[ye].payload);N(x.user.nickName,x.content)}},C.onerror=function(){console.log(this),clearInterval(ne),N("系统","弹幕服务器连接失败")}}},kt=new TextEncoder;function Ne(g){let d=kt.encode(g);const I=9+d.byteLength,A=[I,0,0,.1,I,0,0,0,177,2,0,0];d=kt.encode(g+"\0");const R=new Uint8Array(12+d.byteLength);return R.set(A),R.set(d,12),R.buffer}const nt=()=>{clearInterval(ne),C&&(C.onmessage=null,It=="douyu"?C.send(Ne("type@=logout")):C.close(),C=null,_=0,u.value&&De==l.fullPath&&N("系统","弹幕服务器断开连接"))};oe(f,()=>xt()),oe([()=>w.sideOpen,()=>w.canvasOpen],()=>{!w.sideOpen&&!w.canvasOpen&&nt(),C||xt()});const lt=()=>{const{site:g,id:d}=l.meta,I=l.meta.site.follows[d];I&&(f.value=I,n.follow=!0),clearInterval(ne),clearTimeout(s),n.notice="加载中...",at(()=>{N("系统","开始获取直播间信息")}),le(g.id,"getRoomDetail",{id:d}).then(A=>{if(f.value=A,n.follow&&Le(A),at(()=>N("系统","直播间信息获取成功")),!A.status)return n.notice="未开播!";document.title=f.value.title},A=>{n.notice=A,at(()=>N("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(s))},Jt=()=>{if(!f.value)return;const{id:g}=l.meta.site;n.follow=n.follow?_o(g,f.value.roomId):Le(f.value)},it=()=>{!f.value||!f.value.status||(clearTimeout(e),e=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},bt=()=>{clearTimeout(e),n.fullscreen=!n.fullscreen,document.fullscreenElement?document.exitFullscreen():i.value.requestFullscreen()},pe=()=>{clearTimeout(a),n.showController=!0,a=setTimeout(()=>{var g,d;(g=r.value)!=null&&g.paused||!((d=r.value)!=null&&d.played.length)||(n.showController=!1)},3e3)},Yt=()=>{clearTimeout(e),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},qt=()=>{n.paused=!1,pe()},Ht=()=>{n.paused=!0,pe()},Ct=g=>{if(h.value)switch(g.code){case"ArrowDown":return We(!1);case"ArrowUp":return We(!0);case"Space":return it()}},Zt=()=>{var g;clearTimeout(e),clearTimeout(a),clearTimeout(s),clearTimeout(fe),nt(),document.title="Lemon live",document.removeEventListener("keydown",Ct),n.pictureInPicture||(g=n.flv)==null||g.destroy()};lt();const _t=ht();let De=l.fullPath;Ce(()=>{i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,r.value.volume=q.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Ze||(i.value.addEventListener("mousemove",pe),document.addEventListener("keydown",Ct)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var g;if(!/play/.test(l.path))return _t.push(De);if(l.fullPath==De)return n.pictureInPicture=!1;(g=n.flv)==null||g.destroy()})});let It=l.meta.site.id;To(g=>{const{siteid:d,id:I}=g.params,A=ke.findIndex(R=>R==d);return A==-1?{name:"404"}:(g.meta.site=j[A],g.meta.id=I,n.flv&&(n.flv.destroy(),n.flv=void 0),n.qn=0,n.line=0,n.follow=!1,f.value=void 0,!0)}),oe(()=>l.params,()=>{var g;clearTimeout(fe),nt(),Y(),(g=ee.value)==null||g.destory(),It=l.meta.site.id,De=l.fullPath,lt()}),tt(Zt);const Kt=()=>Promise.all(Xe(j,ct)),Xt=async g=>{g==1&&await Kt()},eo=()=>n.showController?it():pe(),to=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},oo=g=>{const d=g.target.dataset.color;if(!d)return;const I=w.colors.findIndex(A=>A==d);if(I==-1)return w.colors.push(d);w.colors.length!=1&&w.colors.splice(I,1)};oe(()=>w.colors,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.colors)}),oe(()=>w.canvasSpeed,()=>{var g;return(g=ee.value)==null?void 0:g.setSpeed(w.canvasSpeed)}),oe(()=>w.canvasOpacity,()=>{var g;return(g=ee.value)==null?void 0:g.setOpacity(w.canvasOpacity)}),oe(()=>w.canvasColorOpen,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.canvasColorOpen?w.colors:["#ffffff"])}),Ve(()=>{var g,d,I,A;(g=ee.value)==null||g.setGap(w.canvasGap),(d=ee.value)==null||d.setFont(w.canvasFontsize),(I=ee.value)==null||I.setRows(w.canvasRows),(A=ee.value)==null||A.resize()}),oe(q,()=>{pe(),clearTimeout(s),n.notice=`当前音量 ${q.value}%`,r.value.volume=q.value/100,be("volume",q.value),s=setTimeout(()=>n.notice=null,2e3)}),oe(G,()=>{pe(),clearTimeout(s),n.notice=`当前亮度 ${G.value}%`,i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,be("brightness",G.value),s=setTimeout(()=>n.notice=null,2e3)});let rt;const Ge=k(),so=g=>{clearTimeout(rt),rt=setTimeout(()=>{const d=Te("id",g.target,Ge.value);if(!d)return;const I=Te("site",g.target,Ge.value);_t.push(`/${I}/play/${d}`)},300)},no=g=>{var R;clearTimeout(rt);const d=Te("id",g.target,Ge.value);if(!d)return;const A=`/${Te("site",g.target,Ge.value)}/play/${d}`;(R=window.open(A,"_blank"))==null||R.location},Te=(g,d,I)=>{if(d==I)return null;const A=d.dataset[g];return A||Te(g,d.parentElement,I)},lo=()=>G.value=100;oe(()=>n.muted,()=>{pe(),clearTimeout(s),n.notice=n.muted?"已静音":"已开启声音",s=setTimeout(()=>n.notice=null,2e3)});const io=()=>{if(r.value.muted){r.value.muted=!1,n.muted=!1;return}r.value.muted=!0,n.muted=!0};return(g,d)=>{var he,Ee,ie,Qe,ye;const I=Gs,A=zs,R=ze,D=Vs,te=Rs,me=Pe,ge=vt("lazy");return y(),b("div",Cn,[c("div",_n,[c("div",In,[c("div",{"hover:text-amber":"",onClick:d[0]||(d[0]=(...x)=>g.$router.back&&g.$router.back(...x)),class:"i-ri-arrow-left-line"}),c("h1",Sn,T((he=v(f))==null?void 0:he.title),1),c("div",{onClick:d[1]||(d[1]=x=>we.value=!v(we)),hidden:"","lg:block":"",style:xe(v(we)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill"},null,4)]),c("div",{ref_key:"player",ref:i,"md:rounded-6px":"","text-4":"","text-white":"",onContextmenu:d[19]||(d[19]=F(()=>{},["prevent"])),"bg-black":"","cursor-default":"",class:L({"cursor-none":!v(n).showController,"text-5":v(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":v(n).webscreen}),"pos-relative":"","w-full":"","overflow-hidden":"","select-none":"","h-full":"",onClick:eo,onDblclick:bt},[c("div",An,[c("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,"w-full":"","h-full":"","pos-absolute":"",onPlay:qt,onPause:Ht},null,544)]),B(c("div",Mn,[c("span",null,T(v(n).notice),1)],512),[[Z,v(n).notice]]),c("canvas",{ref_key:"canvas",ref:$e,"pos-absolute":"","top-0":"",width:"0",height:"0","w-full":"","h-full":"","z-1":""},null,512),B(c("div",{"pos-absolute":"","bottom-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","items-center":"",onClick:d[5]||(d[5]=F(()=>{},["stop"])),onDblclick:d[6]||(d[6]=F(()=>{},["stop"])),class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"bg-black":"","bg-op-30":""},[c("div",{onClick:it,"hover:text-amber":"",class:L(v(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill")},null,2),c("div",{"hover:text-amber":"",onClick:Jt,class:L(v(n).follow?"i-ri-heart-fill":"i-ri-heart-line")},null,2),c("div",{"hover:text-amber":"",onClick:lt,class:"i-ri-refresh-line"}),c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[2]||(d[2]=()=>v(w).canvasOpen=!v(w).canvasOpen),src:v(w).canvasOpen?v(Ot):v(jt)},null,8,Tn),d[33]||(d[33]=c("div",{grow:""},null,-1)),v(p).length?(y(),b("div",En,[M(I,{active:v(n).qn,"onUpdate:active":d[3]||(d[3]=x=>v(n).qn=x),list:v(p)},null,8,["active","list"]),M(I,{active:v(n).line,"onUpdate:active":d[4]||(d[4]=x=>v(n).line=x),list:v(m)},null,8,["active","list"]),v(Ze)?ue("",!0):(y(),b("div",{key:0,"ml-2":"","hover:text-amber":"",onClick:to,class:L(v(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line")},null,2))])):ue("",!0),c("div",{"hover:text-amber":"",onClick:Yt,class:"i-mdi-fit-to-screen"}),c("div",{"hover:text-amber":"",onClick:bt,class:L(v(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill")},null,2)],34),[[Z,v(n).showController]]),v(Ze)?B((y(),b("div",{key:0,class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"pos-absolute":"","top-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","justify-between":"","bg-black":"","bg-op-30":"",onClick:d[11]||(d[11]=F(()=>{},["stop"])),onDblclick:d[12]||(d[12]=F(()=>{},["stop"]))},[c("div",On,[c("div",{onClick:d[7]||(d[7]=x=>v(Mt)(!1)),class:"i-ri-sun-line"}),c("div",null,T(v(G)),1),c("div",{onClick:d[8]||(d[8]=x=>v(Mt)(!0)),class:"i-ri-sun-fill"})]),B(c("div",{"flex-1":"","w-10":"",truncate:"","text-center":""},T((Ee=v(f))==null?void 0:Ee.title),513),[[Z,v(n).fullscreen]]),c("div",jn,[c("div",{onClick:d[9]||(d[9]=x=>v(We)(!1)),class:"i-ri-volume-down-fill"}),c("div",null,T(v(q)),1),c("div",{onClick:d[10]||(d[10]=x=>v(We)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[Z,v(n).showController]]):B((y(),b("div",Ln,[c("div",{onClick:d[14]||(d[14]=F(()=>{},["stop"])),onDblclick:d[15]||(d[15]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% left-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[c("div",null,T(v(G)),1),M(A,{value:v(G),"onUpdate:value":d[13]||(d[13]=x=>ce(G)?G.value=x:null),max:200,min:50},null,8,["value"]),c("div",{onClick:F(lo,["stop"]),class:"i-ri-sun-line"})],32),c("div",{onClick:d[17]||(d[17]=F(()=>{},["stop"])),onDblclick:d[18]||(d[18]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% right-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[je(T(v(q))+" ",1),M(A,{value:v(q),"onUpdate:value":d[16]||(d[16]=x=>ce(q)?q.value=x:null),max:100,min:0},null,8,["value"]),c("div",{onClick:F(io,["stop"]),class:L(v(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[Z,v(n).showController]])],34)]),B(c("div",Rn,[c("div",Bn,[c("img",{src:(ie=v(f))==null?void 0:ie.avatar,"w-8":"","h-8":"",alt:"","rounded-4":""},null,8,Vn),c("div",Un,[c("div",Pn,T((Qe=v(f))==null?void 0:Qe.nickname),1),c("div",zn,[c("img",{"w-4":"","h-4":"",src:g.$route.meta.site.icon},null,8,Fn),je(" "+T(g.$route.meta.site.name),1)])]),c("div",null,[d[34]||(d[34]=c("div",{"mx-1":"",class:"i-mdi-fire"},null,-1)),c("span",null,T((ye=v(f))==null?void 0:ye.online),1)])]),M(me,{grow:!0,onTabClick:Xt,class:"!h-[calc(100%-3.75rem)]"},{default:O(()=>[M(R,{title:"聊天","pos-relative":""},{default:O(()=>{var x;return[c("div",$n,[c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[20]||(d[20]=()=>v(w).sideOpen=!v(w).sideOpen),src:v(w).sideOpen?v(Ot):v(jt)},null,8,Nn),c("div",{"text-green-5":"",onClick:Y,class:"i-ri-delete-bin-3-line"}),c("a",{"text-green-5":"",href:(x=v(f))==null?void 0:x.url,target:"_blank"},d[35]||(d[35]=[c("div",{class:"i-ri-link"},null,-1)]),8,Dn),c("div",{onClick:Wt,"text-green-5":"",class:"i-ri-arrow-down-circle-line"})]),c("div",{ref_key:"dm",ref:u,"h-full":"","pl-2":"","box-border":"",class:"scrolly"},null,512)]}),_:1}),M(R,{title:"关注","box-border":"","px-4":""},{default:O(()=>[c("div",{onClick:F(so,["prevent"]),onDblclick:F(no,["prevent"])},[(y(!0),b($,null,X(v(E),x=>{var St,At;return y(),b("a",{"data-id":x.roomId,"data-site":x.siteId,class:L({"text-amber":((St=v(f))==null?void 0:St.siteId)==x.siteId&&((At=v(f))==null?void 0:At.roomId)==x.roomId}),key:`${x.siteId}/${x.roomId}`,href:`/${x.siteId}/play/${x.roomId}`,flex:"","items-center":"","gap-2":"","py-2":""},[B(c("img",Qn,null,512),[[ge,x.avatar]]),c("div",null,T(x.nickname),1),c("div",{"w-3":"","h-3":"","rounded-3":"",class:L([x.status?"bg-green":"bg-red"])},null,2),c("div",null,T(x.status?"直播中":"未开播"),1)],10,Gn)}),128))],32)]),_:1}),M(R,{title:"设置","px-2":""},{default:O(()=>[d[47]||(d[47]=c("div",{"p-3":"","bg-sm":""},"弹幕",-1)),c("div",Wn,[c("div",Jn,[d[36]||(d[36]=c("div",null,"文字大小",-1)),M(D,{value:v(w).canvasFontsize,"onUpdate:value":d[21]||(d[21]=x=>v(w).canvasFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",Yn,[d[37]||(d[37]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).canvasGap,"onUpdate:value":d[22]||(d[22]=x=>v(w).canvasGap=x),max:80,min:1,step:1},null,8,["value"])]),c("div",qn,[d[38]||(d[38]=c("div",null,"最大行数",-1)),M(D,{value:v(w).canvasRows,"onUpdate:value":d[23]||(d[23]=x=>v(w).canvasRows=x),max:50,min:1,step:1},null,8,["value"])]),c("div",Hn,[d[39]||(d[39]=c("div",null,"弹幕速度",-1)),M(D,{value:v(w).canvasSpeed,"onUpdate:value":d[24]||(d[24]=x=>v(w).canvasSpeed=x),max:32,min:.5,step:.5},null,8,["value"])]),c("div",Zn,[d[40]||(d[40]=c("div",null,"弹幕透明",-1)),M(D,{value:v(w).canvasOpacity,"onUpdate:value":d[25]||(d[25]=x=>v(w).canvasOpacity=x),max:100,min:10,step:10},null,8,["value"])]),c("div",Kn,[d[41]||(d[41]=c("div",null,"彩色弹幕",-1)),M(te,{value:v(w).canvasColorOpen,"onUpdate:value":d[26]||(d[26]=x=>v(w).canvasColorOpen=x)},null,8,["value"])])]),d[48]||(d[48]=c("div",{"p-3":"","bg-sm":""},"聊天",-1)),c("div",Xn,[c("div",el,[d[42]||(d[42]=c("div",null,"文字大小",-1)),M(D,{value:v(w).sideFontsize,"onUpdate:value":d[27]||(d[27]=x=>v(w).sideFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",tl,[d[43]||(d[43]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).sideGap,"onUpdate:value":d[28]||(d[28]=x=>v(w).sideGap=x),max:80,min:0,step:1},null,8,["value"])]),c("div",ol,[d[44]||(d[44]=c("div",null,"自动清屏",-1)),M(D,{value:v(w).sideClean,"onUpdate:value":d[29]||(d[29]=x=>v(w).sideClean=x),max:500,min:10,step:10},null,8,["value"])]),c("div",sl,[d[45]||(d[45]=c("div",null,"彩色消息",-1)),M(te,{value:v(w).sideColorOpen,"onUpdate:value":d[30]||(d[30]=x=>v(w).sideColorOpen=x)},null,8,["value"])])]),d[49]||(d[49]=c("div",{"p-3":"","bg-sm":""},"颜色",-1)),c("div",nl,[(y(!0),b($,null,X(v(So),x=>(y(),b("div",{onClick:oo},[c("div",{class:"w-4 h-4 rounded-2 m-2 shadow","box-border":"","data-color":x,"cursor-pointer":"",style:xe(`background:${x};${v(w).colors.includes(x)?"box-shadow:0 0 0px 2px white":""}`)},null,12,ll)]))),256))]),c("div",il,[d[46]||(d[46]=je("屏蔽 ")),M(te,{value:v(w).blockOpen,"onUpdate:value":d[31]||(d[31]=x=>v(w).blockOpen=x)},null,8,["value"])]),B(c("textarea",{"outline-none":"","w-full":"","onUpdate:modelValue":d[32]||(d[32]=x=>v(w).blockWords=x),"text-white":"",b:"","b-solid":"","b-gray-7":"","p-2":"","box-border":"",rows:"5","bg-dark":"",shadow:"","rounded-1":"",placeholder:"以空格分隔"},null,512),[[dt,v(w).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[Z,v(we)]])])}}}),Gt=(t,e)=>{const s=t.__vccOpts||t;for(const[a,n]of e)s[a]=n;return s},al={},ul={"h-full":"","box-border":"","py-2":"",class:"scrolly"};function cl(t,e){return y(),b("div",ul,e[0]||(e[0]=[c("div",{"text-xl":"","p-4":""},"支持",-1),c("div",{"ml-4":""},[c("img",{"h-50":"","mr-5":"",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),c("img",{"h-50":"",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1)]))}const dl=Gt(al,[["render",cl]]),vl={},fl={"h-full":"",flex:"","justify-center":"","items-center":""};function pl(t,e){return y(),b("div",fl,e[0]||(e[0]=[c("div",{"text-center":"","text-8":"","line-height-8":""},[c("div",{"font-900":""},"404"),c("div",{"mt-4":""},"页面未找到")],-1)]))}const ml=Gt(vl,[["render",pl]]);async function Oe(t){const{siteid:e,id:s}=t.params,a=j.findIndex(n=>n.id==e);return a==-1?{name:"404"}:(t.meta.site=j[a],t.meta.id=s,t.meta.index=a,P.value=a,!0)}const hl=Ao({history:Mo(),routes:[{path:"/",redirect:()=>`/${ke[P.value]}`},{path:"/follow",component:js},{path:"/user",component:dl},{path:"/category",redirect:()=>`/${ke[P.value]}/category`},{path:"/search",redirect:()=>`/${ke[P.value]}/search`},{path:"/:siteid",component:Ls,beforeEnter:Oe},{path:"/:siteid/category",component:ps,beforeEnter:Oe},{path:"/:siteid/category/:id",component:es,beforeEnter:Oe},{path:"/:siteid/play/:id",component:rl,beforeEnter:Oe},{path:"/:siteid/search",component:xs,beforeEnter:Oe},{path:"/:pathMatch(.*)*",name:"404",component:ml}]}),gl={install(t){t.directive("lazy",{mounted(e,s){e.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const a=new IntersectionObserver(n=>{Ut(n,l=>{if(l.isIntersecting){const i=new Image;i.src=s.value,i.onload=()=>e.src=s.value,a.unobserve(l.target)}})});a.observe(e)}})}},Qt=uo(Lo);Qt.use(hl).use(gl);Qt.mount("#app");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemon-mse",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "types": "./dist/es/index.d.ts",
6
6
  "module": "./dist/es/index.js",