(()=>{return(t,i)=>{const{NavbarComponent:e}=i.import("custom-navbar-component");const n=t=>{const i=new Date;const e=Number(new Date(i.getFullYear(),i.getMonth(),i.getDate()));const n=24*36e5;const s=e-n;const a=e-7*n;const r=_.groupBy(t,t=>{if(t.timestamp>=e){return"今天"}if(t.timestamp>=s){return"昨天"}if(t.timestamp>=a){return"本周"}return"更早"});return Object.entries(r).map(([t,i])=>{return{name:t,items:i}})};const s=t=>{return`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`};const a=[{name:"视频",type:"video",api:"https://api.bilibili.com/x/web-interface/history/cursor?type=archive&ps=30",moreLink:"https://www.bilibili.com/account/history",getTimeline:t=>{const i=t.data.list;const e=i.map(t=>{const i=t.view_at*1e3;const e=Boolean(t.uri);const n=t.progress>0?`t=${t.progress}`:"t=0";const a=t.progress===-1?1:t.progress/t.duration;const r={isBangumi:e,id:t.kid,title:t.title,coverUrl:t.cover,upName:t.author_name||t.show_title,upID:t.author_mid||t.kid,href:e?t.uri+`?${n}`:`https://www.bilibili.com/video/av${t.kid}?p=${t.history.page}&${n}`,duration:t.duration,durationText:formatDuration(t.duration),progress:a,progressText:fixed(a*100,1)+"%",timestamp:i,time:new Date(i)};r.timeText=s(r.time);return r});return n(e)}},{name:"专栏",type:"article",api:"https://api.bilibili.com/x/web-interface/history/cursor?type=article&ps=30",moreLink:"",getTimeline:t=>{const i=t.data.list;const e=i.map(t=>{const i=t.view_at*1e3;const e={id:t.kid,title:t.title,coverUrl:t.covers[0],upName:t.author_name,upID:t.author_mid,href:`https://www.bilibili.com/read/cv${t.kid}`,timestamp:i,time:new Date(i)};e.timeText=s(e.time);return e});return n(e)}},{name:"直播",type:"live",api:"https://api.live.bilibili.com/xlive/web-ucenter/v1/history/get_history_by_uid",moreLink:"https://link.bilibili.com/p/center/index#/user-center/view-history/live",getTimeline:t=>{const i=t.data.list;const e=i.map(t=>{return{id:t.roomid,href:`https://live.bilibili.com/${t.roomid}`,upID:t.uid,upName:t.uname,coverUrl:t.user_cover,title:t.title}});return[{name:"最近观看",items:e}]}}];class r extends e{constructor(){super();this.noPadding=true;this.href=`https://www.bilibili.com/account/history`;this.html=`历史`;this.active=document.URL.replace(/\?.*$/,"")===this.href;this.popupHtml=`\n