diff --git a/app/src/main/assets/web/vue/assets/BookChapter-B1YmoZ9j.js b/app/src/main/assets/web/vue/assets/BookChapter-B1YmoZ9j.js new file mode 100644 index 000000000..5c1778c83 --- /dev/null +++ b/app/src/main/assets/web/vue/assets/BookChapter-B1YmoZ9j.js @@ -0,0 +1 @@ +import{a0 as Oe,m as A,x as w,R as Se,a5 as Pe,o as m,d as k,g as t,t as H,F as oe,N as ie,u as n,a6 as Y,a7 as Fe,a2 as He,p as V,e as J,w as W,a8 as We,y as ve,a9 as Je,f as Z,K as me,a3 as Te,j as F,aa as qe,q as Ge,ab as Re,s as Me,ac as Ze,V as Ye,I as je,M as Ve,ad as Xe,a4 as _e,c as $e}from"./vendor-DyjdUqFg.js";import{i as et,u as le,a as tt,b as ot}from"./el-message-box-Cdo1N8K_.js";import{_ as re,A as X}from"./index-D7Z3b_yE.js";const nt=(c,a,d,g)=>(c/=g/2,c<1?d/2*c*c+a:(c--,-d/2*(c*(c-2)-1)+a)),st=()=>{let c,a,d,g,s,x,y,E,p,h,i,b,L;function u(){let C=c.scrollTop||c.scrollY||c.pageYOffset;return C=typeof C>"u"?0:C,C}function B(C){const D=C.getBoundingClientRect().top,q=c.getBoundingClientRect?c.getBoundingClientRect().top:0;return D-q+d}function r(C){c.scrollTo?c.scrollTo(0,C):c.scrollTop=C}function I(C){h||(h=C),i=C-h,b=x(i,d,E,p),r(b),i
({"17d7f9f0":g.spacing.letter,"55c3df56":g.spacing.line,67823168:g.spacing.paragraph}));const g=c,s=u=>{const B=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,r=u.match(B)[1];return et(r)?X.getProxyImageUrl(r,le().config.readWidth):r},x=u=>{u.target.src=X.getProxyImageUrl(u.target.src,le().config.readWidth)},y=u=>{const B=/]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g;return u.replaceAll(B," ").length},E=A(()=>{let u=-1;return Array.from(g.contents,B=>(u+=y(B)+1,u))}),p=w(),h=w();a({scrollToReadedLength:u=>{if(u===0)return;let B=E.value.findIndex(r=>r>=u);B!==-1&&Fe(()=>{ee(h.value[B],{duration:0})})}});let b=null;const L=d;return Se(()=>{b=new IntersectionObserver(u=>{for(let{target:B,isIntersecting:r}of u)r&&L("readedLengthChange",g.chapterIndex,parseInt(B.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),b.observe(p.value),h.value.forEach(u=>{b.observe(u)})}),Pe(()=>{b==null||b.disconnect(),b=null}),(u,B)=>(m(),k(oe,null,[t("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:p},H(c.title),513),(m(!0),k(oe,null,ie(c.contents,(r,I)=>(m(),k("div",{key:I,ref_for:!0,ref_key:"paragraphRef",ref:h,"data-chapterpos":n(E)[I]},[/^\s*]*src[^>]+>$/.test(r)?(m(),k("img",{key:0,class:"full",src:s(r),onErrorOnce:x,loading:"lazy"},null,40,it)):(m(),k("p",{key:1,style:Y({fontFamily:c.fontFamily,fontSize:c.fontSize}),innerHTML:r},null,12,lt))],8,at))),128))],64))}},At=re(rt,[["__scopeId","data-v-b529dd09"]]),ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3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wVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==",Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEUWGBkYGhsdHyAfISI1t/v6AAAB5ElEQVQozxXQsYoTURSA4f/EeycZsDgDdySDjihk38Hy3GWi2J2BCaziQhaiaB+tt9AFu1kwvYUPsIXNPoB9BAUfwAfwEUzKv/v4odGrroyp9/rUaC6rZ5skv5F8qPsfYYP+yKUMymmAEEeW55oUR4o8jr05KNzJ07yvB7w0KKfLwcQUSjfmMU0PJfPHFoEVU+ohNrcKMEzMQ23FDnVSI2dqtYWI7KlLu6vE4UnyvKc3SJuL7lBbeEEl42ItpGLjzIT8PRJCmkRjVpVpsbJFVN0687okJNZiHAr5Z7MV0BnGIDc+THM1zlbieBc1Fq+tH5BH+OpnbWkj40hSqC8Lw2TvFuF0SUFJCk2IytXbjeqcRAt6NHpnrUkUU4KRzZs8RCK8N/Akn2W04LwxMU/V7XK0bDyN2RxfDyx7I4h5vjZby72V8UnOWumZL3qtYc+8DTE0siSBMXGhywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==";var te={themes:[{body:"#ede7da url("+ct+") repeat",content:"#ede7da url("+ut+") repeat",popup:"#ede7da url("+dt+") repeat"},{body:"#ede7da url("+gt+") repeat",content:"#ede7da url("+pt+") repeat",popup:"#ede7da url("+ft+") repeat"},{body:"#ede7da url("+mt+") repeat",content:"#ede7da url("+vt+") repeat",popup:"#ede7da url("+kt+") repeat"},{body:"#ede7da url("+Bt+") repeat",content:"#ede7da url("+yt+") repeat",popup:"#ede7da url("+Ct+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+ht+") repeat",content:"#ede7da url("+It+") repeat",popup:"#ede7da url("+bt+") repeat"},{body:"#ede7da url("+St+") repeat",content:"#ede7da url("+wt+") repeat",popup:"#ede7da url("+Et+") repeat"}],fonts:["Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif","PingFangSC-Regular, -apple-system, Simsun","Kaiti"]};const Ut={class:"setting-list"},xt={class:"theme-list"},Dt=["onClick"],Qt={key:0,class:"iconfont"},Vt={key:1,class:"moon-icon"},Pt={class:"font-list"},Ft=["onClick"],Rt={class:"font-list"},Mt={style:{"text-align":"right",margin:"0"}},Lt={class:"font-size"},Kt={class:"resize"},zt={class:"lang"},Nt={class:"letter-spacing"},Ot={class:"resize"},Ht={class:"lang"},Wt={class:"line-spacing"},Jt={class:"resize"},Tt={class:"lang"},qt={class:"paragraph-spacing"},Gt={class:"resize"},Zt={class:"resize"},Yt={class:"lang"},jt={key:0,class:"read-width"},Xt={class:"resize"},_t={class:"lang"},$t={class:"paragraph-spacing"},eo={class:"resize"},to={class:"resize"},oo={class:"lang"},no={class:"infinite-loading"},so={__name:"ReadSettings",setup(c){const a=le(),d=w(0),g=w(a.config.theme==6),s=w(""),x=He([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),y=w({display:"inline",color:"rgba(255,255,255,0.2)"}),E=w(["雅黑","宋体","楷书"]),p=w(a.config.customFontName),h=w(!1);Se(()=>{var v=a.config;d.value=v.theme,d.value==6?s.value="":s.value=""});const i=A(()=>a.config),b=A(()=>({background:te.themes[i.value.theme].popup})),L=A(()=>a.config.theme),u=A(()=>a.config.font),B=v=>{v==6?(g.value=!0,s.value="",y.value.color="#ed4259"):(g.value=!1,s.value="",y.value.color="rgba(255,255,255,0.2)"),i.value.theme=v,U(i.value)},r=v=>{i.value.font=v,U(i.value)},I=()=>{i.value.font=-1,i.value.customFontName=p.value,U(i.value)},T=()=>{Te.prompt("请输入 字体网络链接","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^https?:.+$/,inputErrorMessage:"url 形式不正确",beforeClose:(v,e,K)=>{if(v==="confirm"){e.confirmButtonLoading=!0,e.confirmButtonText="下载中……";const j=e.inputValue;if(typeof FontFace!="function")return F.error("浏览器不支持FontFace"),K();const G=new FontFace(p.value,`url("${j}")`);document.fonts.add(G),G.load().then(function(){e.confirmButtonLoading=!1,F.info("字体加载成功!"),I(),K()}).catch(function(Q){throw e.confirmButtonLoading=!1,e.confirmButtonText="确定",F.error("下载失败,请检查您输入的 url"),Q})}else K()}})},R=A(()=>a.config.fontSize),C=()=>{i.value.fontSize<48&&(i.value.fontSize+=2),U(i.value)},D=()=>{i.value.fontSize>12&&(i.value.fontSize-=2),U(i.value)},q=A(()=>a.config.spacing),ke=()=>{a.config.spacing.letter-=.01,U(i.value)},Ae=()=>{a.config.spacing.letter+=.01,U(i.value)},Be=()=>{a.config.spacing.line-=.1,U(i.value)},ye=()=>{a.config.spacing.line+=.1,U(i.value)},_=()=>{a.config.spacing.paragraph-=.1,U(i.value)},Ce=()=>{a.config.spacing.paragraph+=.1,U(i.value)},he=A(()=>a.config.readWidth),ce=()=>{i.value.readWidth+160+2*68>window.innerWidth||(i.value.readWidth+=160,U(i.value))},ne=()=>{i.value.readWidth>640&&(i.value.readWidth-=160),U(i.value)},ue=A(()=>a.config.jumpDuration),se=()=>{a.config.jumpDuration+=100,U(i.value)},de=()=>{a.config.jumpDuration!==0&&(a.config.jumpDuration-=100,U(i.value))},ge=A(()=>a.config.infiniteLoading),pe=v=>{i.value.infiniteLoading=v,U(i.value)},U=v=>{a.setConfig(v),localStorage.setItem("config",JSON.stringify(v)),fe(v)},fe=v=>{X.saveReadConfig(v)};return(v,e)=>{const K=qe,j=Ge,G=Re;return m(),k("div",{class:V(["settings-wrapper",{night:n(g),day:!n(g)}]),style:Y(n(b))},[e[50]||(e[50]=t("div",{class:"settings-title"},"设置",-1)),t("div",Ut,[t("ul",null,[t("li",xt,[e[6]||(e[6]=t("i",null,"阅读主题",-1)),(m(!0),k(oe,null,ie(n(x),(Q,z)=>(m(),k("span",{class:V(["theme-item",{selected:n(L)==z}]),key:z,style:Y(Q),ref_for:!0,ref:"themes",onClick:Ie=>B(z)},[z<6?(m(),k("em",Qt,"")):(m(),k("em",Vt,H(n(s)),1))],14,Dt))),128))]),t("li",Pt,[e[7]||(e[7]=t("i",null,"正文字体",-1)),(m(!0),k(oe,null,ie(n(E),(Q,z)=>(m(),k("span",{class:V(["font-item",{selected:n(u)==z}]),key:z,onClick:Ie=>r(z)},H(Q),11,Ft))),128))]),t("li",Rt,[e[13]||(e[13]=t("i",null,"自定字体",-1)),J(K,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:W(()=>[We(t("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":e[0]||(e[0]=Q=>ve(p)?p.value=Q:null),placeholder:"请输入自定义的字体名称"},null,512),[[Je,n(p)]])]),_:1}),J(G,{placement:"top",width:"270",trigger:"click",visible:n(h),"onUpdate:visible":e[3]||(e[3]=Q=>ve(h)?h.value=Q:null)},{reference:W(()=>e[11]||(e[11]=[t("span",{type:"text",class:"font-item"},"保存",-1)])),default:W(()=>[e[12]||(e[12]=t("p",null," 已经安装在您的设备上的字体请确认输入的字体名称完整无误,或者从网络下载字体。 ",-1)),t("div",Mt,[J(j,{size:"small",plain:"",onClick:e[1]||(e[1]=Q=>h.value=!1)},{default:W(()=>e[8]||(e[8]=[Z("取消")])),_:1}),J(j,{type:"primary",size:"small",onClick:e[2]||(e[2]=Q=>{I(),h.value=!1})},{default:W(()=>e[9]||(e[9]=[Z("确定")])),_:1}),J(j,{type:"primary",size:"small",onClick:T},{default:W(()=>e[10]||(e[10]=[Z("网络下载")])),_:1})])]),_:1},8,["visible"])]),t("li",Lt,[e[19]||(e[19]=t("i",null,"字体大小",-1)),t("div",Kt,[t("span",{class:"less",onClick:D},e[14]||(e[14]=[t("em",{class:"iconfont"},"",-1)])),e[16]||(e[16]=t("b",null,null,-1)),e[17]||(e[17]=Z()),t("span",zt,H(n(R)),1),e[18]||(e[18]=t("b",null,null,-1)),t("span",{class:"more",onClick:C},e[15]||(e[15]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",Nt,[e[25]||(e[25]=t("i",null,"字距",-1)),t("div",Ot,[t("span",{class:"less",onClick:ke},e[20]||(e[20]=[t("em",{class:"iconfont"},"",-1)])),e[22]||(e[22]=t("b",null,null,-1)),e[23]||(e[23]=Z()),t("span",Ht,H(n(q).letter.toFixed(2)),1),e[24]||(e[24]=t("b",null,null,-1)),t("span",{class:"more",onClick:Ae},e[21]||(e[21]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",Wt,[e[31]||(e[31]=t("i",null,"行距",-1)),t("div",Jt,[t("span",{class:"less",onClick:Be},e[26]||(e[26]=[t("em",{class:"iconfont"},"",-1)])),e[28]||(e[28]=t("b",null,null,-1)),e[29]||(e[29]=Z()),t("span",Tt,H(n(q).line.toFixed(1)),1),e[30]||(e[30]=t("b",null,null,-1)),t("span",{class:"more",onClick:ye},e[27]||(e[27]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",qt,[e[36]||(e[36]=t("i",null,"段距",-1)),t("div",Gt,[t("div",Zt,[t("span",{class:"less",onClick:_},e[32]||(e[32]=[t("em",{class:"iconfont"},"",-1)])),e[34]||(e[34]=t("b",null,null,-1)),t("span",Yt,H(n(q).paragraph.toFixed(1)),1),e[35]||(e[35]=t("b",null,null,-1)),t("span",{class:"more",onClick:Ce},e[33]||(e[33]=[t("em",{class:"iconfont"},"",-1)]))])])]),n(a).miniInterface?me("",!0):(m(),k("li",jt,[e[42]||(e[42]=t("i",null,"页面宽度",-1)),t("div",Xt,[t("span",{class:"less",onClick:ne},e[37]||(e[37]=[t("em",{class:"iconfont"},"",-1)])),e[39]||(e[39]=t("b",null,null,-1)),e[40]||(e[40]=Z()),t("span",_t,H(n(he)),1),e[41]||(e[41]=t("b",null,null,-1)),t("span",{class:"more",onClick:ce},e[38]||(e[38]=[t("em",{class:"iconfont"},"",-1)]))])])),t("li",$t,[e[48]||(e[48]=t("i",null,"翻页速度",-1)),t("div",eo,[t("div",to,[t("span",{class:"less",onClick:de},e[43]||(e[43]=[t("em",{class:"iconfont"},"",-1)])),e[45]||(e[45]=t("b",null,null,-1)),e[46]||(e[46]=Z()),t("span",oo,H(n(ue)),1),e[47]||(e[47]=t("b",null,null,-1)),t("span",{class:"more",onClick:se},e[44]||(e[44]=[t("em",{class:"iconfont"},"",-1)]))])])]),t("li",no,[e[49]||(e[49]=t("i",null,"无限加载",-1)),(m(),k("span",{class:V(["infinite-loading-item",{selected:n(ge)==!1}]),key:0,onClick:e[4]||(e[4]=Q=>pe(!1))},"关闭",2)),(m(),k("span",{class:V(["infinite-loading-item",{selected:n(ge)==!0}]),key:1,onClick:e[5]||(e[5]=Q=>pe(!0))},"开启",2))])])])],6)}}},ao=re(so,[["__scopeId","data-v-30b6868f"]]),io={class:"wrapper"},lo=["onClick"],ro={__name:"CatalogItem",props:["index","source","gotoChapter","currentChapterIndex"],setup(c){const a=c,d=s=>s==a.currentChapterIndex,g=A(()=>{var s;return((s=a.source)==null?void 0:s.catas)??[a.source]});return(s,x)=>(m(),k("div",io,[(m(!0),k(oe,null,ie(n(g),y=>(m(),k("div",{class:V(["cata-text",{selected:d(y.index)}]),key:y.url,onClick:E=>c.gotoChapter(y)},H(y.title),11,lo))),128))]))}},Ao=re(ro,[["__scopeId","data-v-51153469"]]),co={__name:"PopCatalog",emits:["getContent"],setup(c,{emit:a}){const d=le(),g=A(()=>E.value==6),{catalog:s,popCataVisible:x,miniInterface:y}=Me(d),E=A(()=>d.config.theme),p=A(()=>({background:te.themes[E.value].popup})),h=A({get:()=>d.readingBook.index,set:r=>d.readingBook.index=r}),i=A(()=>{let r=s.value;if(y.value)return r;let I=Math.ceil(r.length/2),T=new Array(I),R=0;for(;R{const I=s.value.indexOf(r);h.value=I,d.setPopCataVisible(!1),d.setContentLoading(!0),d.saveBookProgress(),b("getContent",I)},u=w(),B=A(()=>{let r=h.value;return y.value?r:Math.floor(r/2)});return Ze(()=>{x.value&&u.value.scrollToIndex(B.value)}),(r,I)=>(m(),k("div",{class:V({"cata-wrapper":!0,visible:n(x)}),style:Y(n(p))},[I[0]||(I[0]=t("div",{class:"title"},"目录",-1)),J(n(Ye),{style:{height:"300px",overflow:"auto"},class:V({night:n(g),day:!n(g)}),ref_key:"virtualListRef",ref:u,"data-key":"index","wrap-class":"data-wrapper","item-class":"cata","data-sources":n(i),"data-component":Ao,"estimate-size":40,"extra-props":{gotoChapter:L,currentChapterIndex:n(h)}},null,8,["class","data-sources","extra-props"])],6))}},uo=re(co,[["__scopeId","data-v-7ec68dd9"]]),go={class:"tools"},po={class:"tools"},fo={key:0},mo={key:0},vo={class:"content"},ko=["chapterIndex"],Bo={__name:"BookChapter",setup(c){const a=w(),{isLoading:d,loadingWrapper:g}=tt(a,"正在获取信息"),s=le();try{const o=JSON.parse(localStorage.getItem("config"));o!=null&&s.setConfig(o)}catch{localStorage.removeItem("config")}const{catalog:x,popCataVisible:y,readSettingsVisible:E,miniInterface:p,showContent:h,config:i,readingBook:b,bookProgress:L}=Me(s),u=A({get:()=>b.value.chapterPos,set:o=>b.value.chapterPos=o}),B=A({get:()=>b.value.index,set:o=>b.value.index=o}),r=A(()=>i.value.theme),I=A(()=>i.value.infiniteLoading),T=A(()=>s.config.font>=0?te.fonts[s.config.font]:s.config.customFontName),R=A(()=>s.config.fontSize+"px"),C=A(()=>te.themes[r.value].body),D=A(()=>te.themes[r.value].content),q=A(()=>te.themes[r.value].popup),ke=A(()=>p.value?window.innerWidth+"px":s.config.readWidth-130+"px"),Ae=A(()=>p.value?window.innerWidth-33:s.config.readWidth-33),Be=A(()=>({background:C.value})),ye=A(()=>({background:D.value,width:ke.value})),_=w(!1),Ce=A(()=>({background:q.value,marginLeft:p.value?0:-(s.config.readWidth/2+68)+"px",display:p.value&&!_.value?"none":"block"})),he=A(()=>({background:q.value,marginRight:p.value?0:-(s.config.readWidth/2+52)+"px",display:p.value&&!_.value?"none":"block"})),ce=A(()=>r.value==6),ne=()=>{s.setMiniInterface(window.innerWidth<776);const o=s.config.readWidth;ue(o)},ue=o=>{s.miniInterface||o+2*68>window.innerWidth&&(s.config.readWidth-=160)};je(()=>s.config.readWidth,o=>ue(o));const se=w(),de=w(),ge=()=>{ee(se.value)},pe=()=>{ee(de.value)},U=_e(),fe=()=>{U.push("/")},v=w([]),e=w(!0),K=(o,l=!0,P=0)=>{l&&(s.setShowContent(!1),ee(se.value,{duration:0}),we(o,P),v.value=[]);let S=sessionStorage.getItem("bookUrl"),{title:N,index:O}=x.value[o];g(X.getBookContent(S,O).then(f=>{if(f.data.isSuccess){let Ne=f.data.data.split(/\n+/);v.value.push({index:o,content:Ne,title:N}),l&&Q(P)}else{F({message:f.data.errorMsg,type:"error"});let $=[f.data.errorMsg];v.value.push({index:o,content:$,title:N})}if(s.setContentLoading(!0),e.value=!1,s.setShowContent(!0),!f.data.isSuccess)throw f.data},f=>{F({message:"获取章节内容失败",type:"error"});let $=["获取章节内容失败!"];throw v.value.push({index:o,content:$,title:N}),s.setShowContent(!0),f}))},j=w(),G=w(),Q=o=>{Fe(()=>{G.value.length===1&&G.value[0].scrollToReadedLength(o)})},z=ot(()=>s.saveBookProgress(),6e4),Ie=(o,l)=>{we(o,l),z()};Ve(()=>{var o;document.title=((o=x.value[B.value])==null?void 0:o.title)||document.title});const we=(o,l)=>{let P=sessionStorage.getItem("bookUrl");var S=JSON.parse(localStorage.getItem(P));S.index=o,S.chapterPos=l,localStorage.setItem(P,JSON.stringify(S)),S=JSON.parse(localStorage.getItem("readingRecent")),S.chapterIndex=o,S.chapterPos=l,localStorage.setItem("readingRecent",JSON.stringify(S)),B.value=o,u.value=l,sessionStorage.setItem("chapterIndex",o),sessionStorage.setItem("chapterPos",String(l))},Ee=()=>{document.visibilityState=="hidden"&&X.saveBookProgressWithBeacon(L.value)},Ue=()=>{s.setContentLoading(!0);let o=B.value+1;typeof x.value[o]<"u"?(F({message:"下一章",type:"info"}),K(o),s.saveBookProgress()):F({message:"本章是最后一章",type:"error"})},xe=()=>{s.setContentLoading(!0);let o=B.value-1;typeof x.value[o]<"u"?(F({message:"上一章",type:"info"}),K(o),s.saveBookProgress()):F({message:"本章是第一章",type:"error"})};let M;const be=w();Ve(()=>{I.value?M==null||M.observe(be.value):M==null||M.disconnect()});const Le=()=>{let o=v.value.slice(-1)[0].index;x.value.length-1>o&&(K(o+1,!1),s.saveBookProgress())},Ke=o=>{if(!d.value)for(let{isIntersecting:l}of o){if(!l)return;Le()}};let ae=!0;const De=o=>{if(ae)switch(o.key){case"ArrowLeft":o.stopPropagation(),o.preventDefault(),xe();break;case"ArrowRight":o.stopPropagation(),o.preventDefault(),Ue();break;case"ArrowUp":o.stopPropagation(),o.preventDefault(),document.documentElement.scrollTop===0?F({message:"已到达页面顶部",type:"warn"}):(ae=!1,ee(0-document.documentElement.clientHeight+100,{duration:s.config.jumpDuration,callback:()=>ae=!0}));break;case"ArrowDown":o.stopPropagation(),o.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?F({message:"已到达页面底部",type:"warn"}):(ae=!1,ee(document.documentElement.clientHeight-100,{duration:s.config.jumpDuration,callback:()=>ae=!0}));break}},Qe=o=>{(o.key==="ArrowUp"||o.key==="ArrowDown")&&(o.preventDefault(),o.stopPropagation())};Se(()=>{let o=sessionStorage.getItem("bookUrl"),l=sessionStorage.getItem("bookName"),P=sessionStorage.getItem("bookAuthor"),S=Number(sessionStorage.getItem("chapterIndex")||0),N=Number(sessionStorage.getItem("chapterPos")||0);var O=JSON.parse(localStorage.getItem(o));(O==null||S!=O.index||N!=O.chapterPos)&&(O={bookName:l,bookAuthor:P,bookUrl:o,index:S,chapterPos:N},localStorage.setItem(o,JSON.stringify(O))),ne(),window.addEventListener("resize",ne),g(X.getChapterList(o).then(f=>{if(!f.data.isSuccess){F({message:f.data.errorMsg,type:"error"}),setTimeout(fe,500);return}let $=f.data.data;s.setCatalog($),s.setReadingBook(O),K(S,!0,N),window.addEventListener("keyup",De),window.addEventListener("keydown",Qe),document.addEventListener("visibilitychange",Ee),M=new IntersectionObserver(Ke,{rootMargin:"-100% 0% 20% 0%"}),I.value&&M.observe(be.value),document.title=null,document.title=l+" | "+x.value[S].title},f=>{throw F({message:"获取书籍目录失败",type:"error"}),f}))}),Pe(()=>{window.removeEventListener("keyup",De),window.removeEventListener("keydown",Qe),window.removeEventListener("resize",ne),document.removeEventListener("visibilitychange",Ee),E.value=!1,y.value=!1,M==null||M.disconnect(),M=null});const ze=async()=>{const o=sessionStorage.getItem("bookUrl"),l=sessionStorage.getItem("bookName"),P=sessionStorage.getItem("isSeachBook"),S=JSON.parse(localStorage.getItem(o));sessionStorage.removeItem("isSeachBook"),P==="true"&&(window.confirm(`是否将《${l}》放入书架?`)||await X.deleteBook(S))};return Xe(async(o,l,P)=>{await ze(),P()}),(o,l)=>{const P=uo,S=Re,N=ao,O=At;return m(),k("div",{class:V(["chapter-wrapper",{night:n(ce),day:!n(ce)}]),style:Y(n(Be)),onClick:l[2]||(l[2]=f=>_.value=!n(_))},[t("div",{class:"tool-bar",style:Y(n(Ce))},[t("div",go,[J(S,{placement:"right",width:n(Ae),trigger:"click","show-arrow":!1,visible:n(y),"onUpdate:visible":l[0]||(l[0]=f=>ve(y)?y.value=f:null),"popper-class":"pop-cata"},{reference:W(()=>[t("div",{class:V(["tool-icon",{"no-point":n(e)}])},l[3]||(l[3]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"目录",-1)]),2)]),default:W(()=>[J(P,{onGetContent:K,class:"popup"})]),_:1},8,["width","visible"]),J(S,{placement:"right",width:n(Ae),trigger:"click","show-arrow":!1,visible:n(E),"onUpdate:visible":l[1]||(l[1]=f=>ve(E)?E.value=f:null),"popper-class":"pop-setting"},{reference:W(()=>[t("div",{class:V(["tool-icon",{"no-point":n(e)}])},l[4]||(l[4]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"设置",-1)]),2)]),default:W(()=>[J(N,{class:"popup"})]),_:1},8,["width","visible"]),t("div",{class:"tool-icon",onClick:fe},l[5]||(l[5]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"书架",-1)])),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:ge},l[6]||(l[6]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"顶部",-1)]),2),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:pe},l[7]||(l[7]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"底部",-1)]),2)])],4),t("div",{class:"read-bar",style:Y(n(he))},[t("div",po,[t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:xe},[l[8]||(l[8]=t("div",{class:"iconfont"},"",-1)),n(p)?(m(),k("span",fo,"上一章")):me("",!0)],2),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:Ue},[n(p)?(m(),k("span",mo,"下一章")):me("",!0),l[9]||(l[9]=t("div",{class:"iconfont"},"",-1))],2)])],4),l[10]||(l[10]=t("div",{class:"chapter-bar"},null,-1)),t("div",{class:"chapter",ref_key:"content",ref:a,style:Y(n(ye))},[t("div",vo,[t("div",{class:"top-bar",ref_key:"top",ref:se},null,512),(m(!0),k(oe,null,ie(n(v),f=>(m(),k("div",{key:f.index,chapterIndex:f.index,ref_for:!0,ref_key:"chapter",ref:j},[n(h)?(m(),$e(O,{key:0,ref_for:!0,ref_key:"chapterRef",ref:G,chapterIndex:f.index,contents:f.content,title:f.title,spacing:n(s).config.spacing,fontSize:n(R),fontFamily:n(T),onReadedLengthChange:Ie},null,8,["chapterIndex","contents","title","spacing","fontSize","fontFamily"])):me("",!0)],8,ko))),128)),t("div",{class:"loading",ref_key:"loading",ref:be},null,512),t("div",{class:"bottom-bar",ref_key:"bottom",ref:de},null,512)])],4)],6)}}},Io=re(Bo,[["__scopeId","data-v-65978af5"]]);export{Io as default}; diff --git a/app/src/main/assets/web/vue/assets/BookChapter-BR_a5Boa.js b/app/src/main/assets/web/vue/assets/BookChapter-BR_a5Boa.js deleted file mode 100644 index 63cdc8ed5..000000000 --- a/app/src/main/assets/web/vue/assets/BookChapter-BR_a5Boa.js +++ /dev/null @@ -1 +0,0 @@ -import{a0 as Oe,m as A,x as S,R as Se,a5 as Pe,o as m,d as y,g as t,t as O,F as oe,N as ie,u as n,a6 as Y,a7 as Fe,a2 as Ne,p as V,e as H,w as N,a8 as He,y as ve,a9 as We,f as Z,K as me,a3 as Je,j as P,aa as Te,q as qe,ab as Me,s as Re,ac as Ge,V as Ze,I as Ye,M as Ve,a4 as je,c as Xe}from"./vendor-fl4hlNse.js";import{i as _e,u as le,a as $e,b as et}from"./el-message-box-C4L4UnIC.js";import{_ as re,A as te}from"./index-BmuGQon2.js";const tt=(c,a,d,g)=>(c/=g/2,c<1?d/2*c*c+a:(c--,-d/2*(c*(c-2)-1)+a)),ot=()=>{let c,a,d,g,s,U,k,w,p,h,i,b,R;function u(){let B=c.scrollTop||c.scrollY||c.pageYOffset;return B=typeof B>"u"?0:B,B}function C(B){const x=B.getBoundingClientRect().top,q=c.getBoundingClientRect?c.getBoundingClientRect().top:0;return x-q+d}function r(B){c.scrollTo?c.scrollTo(0,B):c.scrollTop=B}function I(B){h||(h=B),i=B-h,b=U(i,d,w,p),r(b),i
({"17d7f9f0":g.spacing.letter,"55c3df56":g.spacing.line,67823168:g.spacing.paragraph}));const g=c,s=u=>{const C=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,r=u.match(C)[1];return _e(r)?te.getProxyImageUrl(r,le().config.readWidth):r},U=u=>{u.target.src=te.getProxyImageUrl(u.target.src,le().config.readWidth)},k=u=>{const C=/]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g;return u.replaceAll(C," ").length},w=A(()=>{let u=-1;return Array.from(g.contents,C=>(u+=k(C)+1,u))}),p=S(),h=S();a({scrollToReadedLength:u=>{if(u===0)return;let C=w.value.findIndex(r=>r>=u);C!==-1&&Fe(()=>{$(h.value[C],{duration:0})})}});let b=null;const R=d;return Se(()=>{b=new IntersectionObserver(u=>{for(let{target:C,isIntersecting:r}of u)r&&R("readedLengthChange",g.chapterIndex,parseInt(C.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),b.observe(p.value),h.value.forEach(u=>{b.observe(u)})}),Pe(()=>{b==null||b.disconnect(),b=null}),(u,C)=>(m(),y(oe,null,[t("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:p},O(c.title),513),(m(!0),y(oe,null,ie(c.contents,(r,I)=>(m(),y("div",{key:I,ref_for:!0,ref_key:"paragraphRef",ref:h,"data-chapterpos":n(w)[I]},[/^\s*]*src[^>]+>$/.test(r)?(m(),y("img",{key:0,class:"full",src:s(r),onErrorOnce:U,loading:"lazy"},null,40,st)):(m(),y("p",{key:1,style:Y({fontFamily:c.fontFamily,fontSize:c.fontSize}),innerHTML:r},null,12,at))],8,nt))),128))],64))}},lt=re(it,[["__scopeId","data-v-b529dd09"]]),rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXp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KPXNfwopuHDcO04UAAAAAElFTkSuQmCC",Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXm9PXq+Pno9vfs+vttWKBGAAACPElEQVQozw3RQWrbQACF4TfCMjPqZgIj4RRaxsZKE0PuMBZ2cLKaCI9RDAXFmJJknUWWI1O1UlamOMHJSjGkuFn3AD2Cr9CepDrAg+/xIxK4QwIqHHQkUhQ/WuphInVIFBojl8QXc012Tgq4RTtVHWVLZVFh1tEoI91uiN4joCqde8Ukn/zGM1B2W4ari2PtTwyw55Ld+Wways54qhGPyS6FzbIT3lIY8WwWdCq56Yolx6KmSKzoqrsCB5heAp4TGNQWJ1Pc6XlE5jQD5OlIX9I47A9uiUQcPQxcury/ToyxWJG/za6ki88crxKPocKS59Sl3EtBG7C89fCGflpfqoSzCeC4crioJA7F0V5+8MaSIk4qSCdwzpogmbqzEirVpGiS2dOVJvUuuqFEmhHao06KEpq+8lvHI14NJk3Qrmi9vBuRLwAz0qZB4hsDXQFXgtnlpDX3C6ug9BquSw/CYtwAzuTz5vuQNdr/YibhR68378ehZH30FSpjh71LpQkrsj+Q062h5WwZ5wlRoD6uQJy1DqvSYuCUapMBqT5YA4ZFw4KlWapxoUGlKWrx0eDQvmigu4WMYt97ruru98fYL8/0lG6CTOFcFWBhFK5gKw19h2JN808nh7xhkU6sWKLXdtkqBL6h+lULK5k19wFB/FldnGYf3LDeuf6IC2/MzJOSOP0qPxLqzaGIqtBcFIItrstkazONOkrc1D1czjuwEGESB4JJnjgSMN7PXAu7fZQpl1C236C+9mM4Af8P98Ch4R2TRl8AAAAASUVORK5CYII=",kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXPz8/R0dHT09PU1NToNyAhAAACdElEQVQozw3NP0xTQQDH8d9d7sFrG+QeKVgQ4aoFCwFkYERyLY//0UB8GNGg1WAC0RBGJrzW4mCXQmpgvCYOwEAYiulS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+rt+") repeat",content:"#ede7da url("+At+") repeat",popup:"#ede7da url("+ct+") repeat"},{body:"#ede7da url("+ut+") repeat",content:"#ede7da url("+dt+") repeat",popup:"#ede7da url("+gt+") repeat"},{body:"#ede7da url("+pt+") repeat",content:"#ede7da url("+ft+") repeat",popup:"#ede7da url("+mt+") repeat"},{body:"#ede7da url("+vt+") repeat",content:"#ede7da url("+yt+") repeat",popup:"#ede7da url("+Ct+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+kt+") repeat",content:"#ede7da url("+Bt+") repeat",popup:"#ede7da url("+ht+") repeat"},{body:"#ede7da url("+It+") repeat",content:"#ede7da url("+bt+") repeat",popup:"#ede7da url("+St+") repeat"}],fonts:["Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif","PingFangSC-Regular, -apple-system, Simsun","Kaiti"]};const wt={class:"setting-list"},Et={class:"theme-list"},Ut=["onClick"],xt={key:0,class:"iconfont"},Dt={key:1,class:"moon-icon"},Qt={class:"font-list"},Vt=["onClick"],Pt={class:"font-list"},Ft={style:{"text-align":"right",margin:"0"}},Mt={class:"font-size"},Rt={class:"resize"},Lt={class:"lang"},Kt={class:"letter-spacing"},zt={class:"resize"},Ot={class:"lang"},Nt={class:"line-spacing"},Ht={class:"resize"},Wt={class:"lang"},Jt={class:"paragraph-spacing"},Tt={class:"resize"},qt={class:"resize"},Gt={class:"lang"},Zt={key:0,class:"read-width"},Yt={class:"resize"},jt={class:"lang"},Xt={class:"paragraph-spacing"},_t={class:"resize"},$t={class:"resize"},eo={class:"lang"},to={class:"infinite-loading"},oo={__name:"ReadSettings",setup(c){const a=le(),d=S(0),g=S(a.config.theme==6),s=S(""),U=Ne([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),k=S({display:"inline",color:"rgba(255,255,255,0.2)"}),w=S(["雅黑","宋体","楷书"]),p=S(a.config.customFontName),h=S(!1);Se(()=>{var v=a.config;d.value=v.theme,d.value==6?s.value="":s.value=""});const i=A(()=>a.config),b=A(()=>({background:ee.themes[i.value.theme].popup})),R=A(()=>a.config.theme),u=A(()=>a.config.font),C=v=>{v==6?(g.value=!0,s.value="",k.value.color="#ed4259"):(g.value=!1,s.value="",k.value.color="rgba(255,255,255,0.2)"),i.value.theme=v,E(i.value)},r=v=>{i.value.font=v,E(i.value)},I=()=>{i.value.font=-1,i.value.customFontName=p.value,E(i.value)},T=()=>{Je.prompt("请输入 字体网络链接","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^https?:.+$/,inputErrorMessage:"url 形式不正确",beforeClose:(v,e,L)=>{if(v==="confirm"){e.confirmButtonLoading=!0,e.confirmButtonText="下载中……";const j=e.inputValue;if(typeof FontFace!="function")return P.error("浏览器不支持FontFace"),L();const G=new FontFace(p.value,`url("${j}")`);document.fonts.add(G),G.load().then(function(){e.confirmButtonLoading=!1,P.info("字体加载成功!"),I(),L()}).catch(function(Q){throw e.confirmButtonLoading=!1,e.confirmButtonText="确定",P.error("下载失败,请检查您输入的 url"),Q})}else L()}})},F=A(()=>a.config.fontSize),B=()=>{i.value.fontSize<48&&(i.value.fontSize+=2),E(i.value)},x=()=>{i.value.fontSize>12&&(i.value.fontSize-=2),E(i.value)},q=A(()=>a.config.spacing),ye=()=>{a.config.spacing.letter-=.01,E(i.value)},Ae=()=>{a.config.spacing.letter+=.01,E(i.value)},Ce=()=>{a.config.spacing.line-=.1,E(i.value)},ke=()=>{a.config.spacing.line+=.1,E(i.value)},X=()=>{a.config.spacing.paragraph-=.1,E(i.value)},Be=()=>{a.config.spacing.paragraph+=.1,E(i.value)},he=A(()=>a.config.readWidth),ce=()=>{i.value.readWidth+160+2*68>window.innerWidth||(i.value.readWidth+=160,E(i.value))},ne=()=>{i.value.readWidth>640&&(i.value.readWidth-=160),E(i.value)},ue=A(()=>a.config.jumpDuration),se=()=>{a.config.jumpDuration+=100,E(i.value)},de=()=>{a.config.jumpDuration!==0&&(a.config.jumpDuration-=100,E(i.value))},ge=A(()=>a.config.infiniteLoading),pe=v=>{i.value.infiniteLoading=v,E(i.value)},E=v=>{a.setConfig(v),localStorage.setItem("config",JSON.stringify(v)),fe(v)},fe=v=>{te.saveReadConfig(v)};return(v,e)=>{const L=Te,j=qe,G=Me;return m(),y("div",{class:V(["settings-wrapper",{night:n(g),day:!n(g)}]),style:Y(n(b))},[e[50]||(e[50]=t("div",{class:"settings-title"},"设置",-1)),t("div",wt,[t("ul",null,[t("li",Et,[e[6]||(e[6]=t("i",null,"阅读主题",-1)),(m(!0),y(oe,null,ie(n(U),(Q,K)=>(m(),y("span",{class:V(["theme-item",{selected:n(R)==K}]),key:K,style:Y(Q),ref_for:!0,ref:"themes",onClick:Ie=>C(K)},[K<6?(m(),y("em",xt,"")):(m(),y("em",Dt,O(n(s)),1))],14,Ut))),128))]),t("li",Qt,[e[7]||(e[7]=t("i",null,"正文字体",-1)),(m(!0),y(oe,null,ie(n(w),(Q,K)=>(m(),y("span",{class:V(["font-item",{selected:n(u)==K}]),key:K,onClick:Ie=>r(K)},O(Q),11,Vt))),128))]),t("li",Pt,[e[13]||(e[13]=t("i",null,"自定字体",-1)),H(L,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:N(()=>[He(t("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":e[0]||(e[0]=Q=>ve(p)?p.value=Q:null),placeholder:"请输入自定义的字体名称"},null,512),[[We,n(p)]])]),_:1}),H(G,{placement:"top",width:"270",trigger:"click",visible:n(h),"onUpdate:visible":e[3]||(e[3]=Q=>ve(h)?h.value=Q:null)},{reference:N(()=>e[11]||(e[11]=[t("span",{type:"text",class:"font-item"},"保存",-1)])),default:N(()=>[e[12]||(e[12]=t("p",null," 已经安装在您的设备上的字体请确认输入的字体名称完整无误,或者从网络下载字体。 ",-1)),t("div",Ft,[H(j,{size:"small",plain:"",onClick:e[1]||(e[1]=Q=>h.value=!1)},{default:N(()=>e[8]||(e[8]=[Z("取消")])),_:1}),H(j,{type:"primary",size:"small",onClick:e[2]||(e[2]=Q=>{I(),h.value=!1})},{default:N(()=>e[9]||(e[9]=[Z("确定")])),_:1}),H(j,{type:"primary",size:"small",onClick:T},{default:N(()=>e[10]||(e[10]=[Z("网络下载")])),_:1})])]),_:1},8,["visible"])]),t("li",Mt,[e[19]||(e[19]=t("i",null,"字体大小",-1)),t("div",Rt,[t("span",{class:"less",onClick:x},e[14]||(e[14]=[t("em",{class:"iconfont"},"",-1)])),e[16]||(e[16]=t("b",null,null,-1)),e[17]||(e[17]=Z()),t("span",Lt,O(n(F)),1),e[18]||(e[18]=t("b",null,null,-1)),t("span",{class:"more",onClick:B},e[15]||(e[15]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",Kt,[e[25]||(e[25]=t("i",null,"字距",-1)),t("div",zt,[t("span",{class:"less",onClick:ye},e[20]||(e[20]=[t("em",{class:"iconfont"},"",-1)])),e[22]||(e[22]=t("b",null,null,-1)),e[23]||(e[23]=Z()),t("span",Ot,O(n(q).letter.toFixed(2)),1),e[24]||(e[24]=t("b",null,null,-1)),t("span",{class:"more",onClick:Ae},e[21]||(e[21]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",Nt,[e[31]||(e[31]=t("i",null,"行距",-1)),t("div",Ht,[t("span",{class:"less",onClick:Ce},e[26]||(e[26]=[t("em",{class:"iconfont"},"",-1)])),e[28]||(e[28]=t("b",null,null,-1)),e[29]||(e[29]=Z()),t("span",Wt,O(n(q).line.toFixed(1)),1),e[30]||(e[30]=t("b",null,null,-1)),t("span",{class:"more",onClick:ke},e[27]||(e[27]=[t("em",{class:"iconfont"},"",-1)]))])]),t("li",Jt,[e[36]||(e[36]=t("i",null,"段距",-1)),t("div",Tt,[t("div",qt,[t("span",{class:"less",onClick:X},e[32]||(e[32]=[t("em",{class:"iconfont"},"",-1)])),e[34]||(e[34]=t("b",null,null,-1)),t("span",Gt,O(n(q).paragraph.toFixed(1)),1),e[35]||(e[35]=t("b",null,null,-1)),t("span",{class:"more",onClick:Be},e[33]||(e[33]=[t("em",{class:"iconfont"},"",-1)]))])])]),n(a).miniInterface?me("",!0):(m(),y("li",Zt,[e[42]||(e[42]=t("i",null,"页面宽度",-1)),t("div",Yt,[t("span",{class:"less",onClick:ne},e[37]||(e[37]=[t("em",{class:"iconfont"},"",-1)])),e[39]||(e[39]=t("b",null,null,-1)),e[40]||(e[40]=Z()),t("span",jt,O(n(he)),1),e[41]||(e[41]=t("b",null,null,-1)),t("span",{class:"more",onClick:ce},e[38]||(e[38]=[t("em",{class:"iconfont"},"",-1)]))])])),t("li",Xt,[e[48]||(e[48]=t("i",null,"翻页速度",-1)),t("div",_t,[t("div",$t,[t("span",{class:"less",onClick:de},e[43]||(e[43]=[t("em",{class:"iconfont"},"",-1)])),e[45]||(e[45]=t("b",null,null,-1)),e[46]||(e[46]=Z()),t("span",eo,O(n(ue)),1),e[47]||(e[47]=t("b",null,null,-1)),t("span",{class:"more",onClick:se},e[44]||(e[44]=[t("em",{class:"iconfont"},"",-1)]))])])]),t("li",to,[e[49]||(e[49]=t("i",null,"无限加载",-1)),(m(),y("span",{class:V(["infinite-loading-item",{selected:n(ge)==!1}]),key:0,onClick:e[4]||(e[4]=Q=>pe(!1))},"关闭",2)),(m(),y("span",{class:V(["infinite-loading-item",{selected:n(ge)==!0}]),key:1,onClick:e[5]||(e[5]=Q=>pe(!0))},"开启",2))])])])],6)}}},no=re(oo,[["__scopeId","data-v-30b6868f"]]),so={class:"wrapper"},ao=["onClick"],io={__name:"CatalogItem",props:["index","source","gotoChapter","currentChapterIndex"],setup(c){const a=c,d=s=>s==a.currentChapterIndex,g=A(()=>{var s;return((s=a.source)==null?void 0:s.catas)??[a.source]});return(s,U)=>(m(),y("div",so,[(m(!0),y(oe,null,ie(n(g),k=>(m(),y("div",{class:V(["cata-text",{selected:d(k.index)}]),key:k.url,onClick:w=>c.gotoChapter(k)},O(k.title),11,ao))),128))]))}},lo=re(io,[["__scopeId","data-v-51153469"]]),ro={__name:"PopCatalog",emits:["getContent"],setup(c,{emit:a}){const d=le(),g=A(()=>w.value==6),{catalog:s,popCataVisible:U,miniInterface:k}=Re(d),w=A(()=>d.config.theme),p=A(()=>({background:ee.themes[w.value].popup})),h=A({get:()=>d.readingBook.index,set:r=>d.readingBook.index=r}),i=A(()=>{let r=s.value;if(k.value)return r;let I=Math.ceil(r.length/2),T=new Array(I),F=0;for(;F{const I=s.value.indexOf(r);h.value=I,d.setPopCataVisible(!1),d.setContentLoading(!0),d.saveBookProgress(),b("getContent",I)},u=S(),C=A(()=>{let r=h.value;return k.value?r:Math.floor(r/2)});return Ge(()=>{U.value&&u.value.scrollToIndex(C.value)}),(r,I)=>(m(),y("div",{class:V({"cata-wrapper":!0,visible:n(U)}),style:Y(n(p))},[I[0]||(I[0]=t("div",{class:"title"},"目录",-1)),H(n(Ze),{style:{height:"300px",overflow:"auto"},class:V({night:n(g),day:!n(g)}),ref_key:"virtualListRef",ref:u,"data-key":"index","wrap-class":"data-wrapper","item-class":"cata","data-sources":n(i),"data-component":lo,"estimate-size":40,"extra-props":{gotoChapter:R,currentChapterIndex:n(h)}},null,8,["class","data-sources","extra-props"])],6))}},Ao=re(ro,[["__scopeId","data-v-7ec68dd9"]]),co={class:"tools"},uo={class:"tools"},go={key:0},po={key:0},fo={class:"content"},mo=["chapterIndex"],vo={__name:"BookChapter",setup(c){const a=S(),{isLoading:d,loadingWrapper:g}=$e(a,"正在获取信息"),s=le();try{const o=JSON.parse(localStorage.getItem("config"));o!=null&&s.setConfig(o)}catch{localStorage.removeItem("config")}const{catalog:U,popCataVisible:k,readSettingsVisible:w,miniInterface:p,showContent:h,config:i,readingBook:b,bookProgress:R}=Re(s),u=A({get:()=>b.value.chapterPos,set:o=>b.value.chapterPos=o}),C=A({get:()=>b.value.index,set:o=>b.value.index=o}),r=A(()=>i.value.theme),I=A(()=>i.value.infiniteLoading),T=A(()=>s.config.font>=0?ee.fonts[s.config.font]:s.config.customFontName),F=A(()=>s.config.fontSize+"px"),B=A(()=>ee.themes[r.value].body),x=A(()=>ee.themes[r.value].content),q=A(()=>ee.themes[r.value].popup),ye=A(()=>p.value?window.innerWidth+"px":s.config.readWidth-130+"px"),Ae=A(()=>p.value?window.innerWidth-33:s.config.readWidth-33),Ce=A(()=>({background:B.value})),ke=A(()=>({background:x.value,width:ye.value})),X=S(!1),Be=A(()=>({background:q.value,marginLeft:p.value?0:-(s.config.readWidth/2+68)+"px",display:p.value&&!X.value?"none":"block"})),he=A(()=>({background:q.value,marginRight:p.value?0:-(s.config.readWidth/2+52)+"px",display:p.value&&!X.value?"none":"block"})),ce=A(()=>r.value==6),ne=()=>{s.setMiniInterface(window.innerWidth<776);const o=s.config.readWidth;ue(o)},ue=o=>{s.miniInterface||o+2*68>window.innerWidth&&(s.config.readWidth-=160)};Ye(()=>s.config.readWidth,o=>ue(o));const se=S(),de=S(),ge=()=>{$(se.value)},pe=()=>{$(de.value)},E=je(),fe=()=>{E.push("/")},v=S([]),e=S(!0),L=(o,l=!0,W=0)=>{l&&(s.setShowContent(!1),$(se.value,{duration:0}),we(o,W),v.value=[]);let D=sessionStorage.getItem("bookUrl"),{title:J,index:z}=U.value[o];g(te.getBookContent(D,z).then(f=>{if(f.data.isSuccess){let ze=f.data.data.split(/\n+/);v.value.push({index:o,content:ze,title:J}),l&&Q(W)}else{P({message:f.data.errorMsg,type:"error"});let _=[f.data.errorMsg];v.value.push({index:o,content:_,title:J})}if(s.setContentLoading(!0),e.value=!1,s.setShowContent(!0),!f.data.isSuccess)throw f.data},f=>{P({message:"获取章节内容失败",type:"error"});let _=["获取章节内容失败!"];throw v.value.push({index:o,content:_,title:J}),s.setShowContent(!0),f}))},j=S(),G=S(),Q=o=>{Fe(()=>{G.value.length===1&&G.value[0].scrollToReadedLength(o)})},K=et(()=>s.saveBookProgress(),6e4),Ie=(o,l)=>{we(o,l),K()};Ve(()=>{var o;document.title=((o=U.value[C.value])==null?void 0:o.title)||document.title});const we=(o,l)=>{let W=sessionStorage.getItem("bookUrl");var D=JSON.parse(localStorage.getItem(W));D.index=o,D.chapterPos=l,localStorage.setItem(W,JSON.stringify(D)),D=JSON.parse(localStorage.getItem("readingRecent")),D.chapterIndex=o,D.chapterPos=l,localStorage.setItem("readingRecent",JSON.stringify(D)),C.value=o,u.value=l,sessionStorage.setItem("chapterIndex",o),sessionStorage.setItem("chapterPos",String(l))},Ee=()=>{document.visibilityState=="hidden"&&te.saveBookProgressWithBeacon(R.value)},Ue=()=>{s.setContentLoading(!0);let o=C.value+1;typeof U.value[o]<"u"?(P({message:"下一章",type:"info"}),L(o),s.saveBookProgress()):P({message:"本章是最后一章",type:"error"})},xe=()=>{s.setContentLoading(!0);let o=C.value-1;typeof U.value[o]<"u"?(P({message:"上一章",type:"info"}),L(o),s.saveBookProgress()):P({message:"本章是第一章",type:"error"})};let M;const be=S();Ve(()=>{I.value?M==null||M.observe(be.value):M==null||M.disconnect()});const Le=()=>{let o=v.value.slice(-1)[0].index;U.value.length-1>o&&(L(o+1,!1),s.saveBookProgress())},Ke=o=>{if(!d.value)for(let{isIntersecting:l}of o){if(!l)return;Le()}};let ae=!0;const De=o=>{if(ae)switch(o.key){case"ArrowLeft":o.stopPropagation(),o.preventDefault(),xe();break;case"ArrowRight":o.stopPropagation(),o.preventDefault(),Ue();break;case"ArrowUp":o.stopPropagation(),o.preventDefault(),document.documentElement.scrollTop===0?P({message:"已到达页面顶部",type:"warn"}):(ae=!1,$(0-document.documentElement.clientHeight+100,{duration:s.config.jumpDuration,callback:()=>ae=!0}));break;case"ArrowDown":o.stopPropagation(),o.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?P({message:"已到达页面底部",type:"warn"}):(ae=!1,$(document.documentElement.clientHeight-100,{duration:s.config.jumpDuration,callback:()=>ae=!0}));break}},Qe=o=>{(o.key==="ArrowUp"||o.key==="ArrowDown")&&(o.preventDefault(),o.stopPropagation())};return Se(()=>{let o=sessionStorage.getItem("bookUrl"),l=sessionStorage.getItem("bookName"),W=sessionStorage.getItem("bookAuthor"),D=Number(sessionStorage.getItem("chapterIndex")||0),J=Number(sessionStorage.getItem("chapterPos")||0);var z=JSON.parse(localStorage.getItem(o));(z==null||D!=z.index||J!=z.chapterPos)&&(z={bookName:l,bookAuthor:W,bookUrl:o,index:D,chapterPos:J},localStorage.setItem(o,JSON.stringify(z))),ne(),window.addEventListener("resize",ne),g(te.getChapterList(o).then(f=>{if(!f.data.isSuccess){P({message:f.data.errorMsg,type:"error"}),setTimeout(fe,500);return}let _=f.data.data;s.setCatalog(_),s.setReadingBook(z),L(D,!0,J),window.addEventListener("keyup",De),window.addEventListener("keydown",Qe),document.addEventListener("visibilitychange",Ee),M=new IntersectionObserver(Ke,{rootMargin:"-100% 0% 20% 0%"}),I.value&&M.observe(be.value),document.title=null,document.title=l+" | "+U.value[D].title},f=>{throw P({message:"获取书籍目录失败",type:"error"}),f}))}),Pe(()=>{window.removeEventListener("keyup",De),window.removeEventListener("keydown",Qe),window.removeEventListener("resize",ne),document.removeEventListener("visibilitychange",Ee),w.value=!1,k.value=!1,M==null||M.disconnect(),M=null}),(o,l)=>{const W=Ao,D=Me,J=no,z=lt;return m(),y("div",{class:V(["chapter-wrapper",{night:n(ce),day:!n(ce)}]),style:Y(n(Ce)),onClick:l[2]||(l[2]=f=>X.value=!n(X))},[t("div",{class:"tool-bar",style:Y(n(Be))},[t("div",co,[H(D,{placement:"right",width:n(Ae),trigger:"click","show-arrow":!1,visible:n(k),"onUpdate:visible":l[0]||(l[0]=f=>ve(k)?k.value=f:null),"popper-class":"pop-cata"},{reference:N(()=>[t("div",{class:V(["tool-icon",{"no-point":n(e)}])},l[3]||(l[3]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"目录",-1)]),2)]),default:N(()=>[H(W,{onGetContent:L,class:"popup"})]),_:1},8,["width","visible"]),H(D,{placement:"right",width:n(Ae),trigger:"click","show-arrow":!1,visible:n(w),"onUpdate:visible":l[1]||(l[1]=f=>ve(w)?w.value=f:null),"popper-class":"pop-setting"},{reference:N(()=>[t("div",{class:V(["tool-icon",{"no-point":n(e)}])},l[4]||(l[4]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"设置",-1)]),2)]),default:N(()=>[H(J,{class:"popup"})]),_:1},8,["width","visible"]),t("div",{class:"tool-icon",onClick:fe},l[5]||(l[5]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"书架",-1)])),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:ge},l[6]||(l[6]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"顶部",-1)]),2),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:pe},l[7]||(l[7]=[t("div",{class:"iconfont"},"",-1),t("div",{class:"icon-text"},"底部",-1)]),2)])],4),t("div",{class:"read-bar",style:Y(n(he))},[t("div",uo,[t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:xe},[l[8]||(l[8]=t("div",{class:"iconfont"},"",-1)),n(p)?(m(),y("span",go,"上一章")):me("",!0)],2),t("div",{class:V(["tool-icon",{"no-point":n(e)}]),onClick:Ue},[n(p)?(m(),y("span",po,"下一章")):me("",!0),l[9]||(l[9]=t("div",{class:"iconfont"},"",-1))],2)])],4),l[10]||(l[10]=t("div",{class:"chapter-bar"},null,-1)),t("div",{class:"chapter",ref_key:"content",ref:a,style:Y(n(ke))},[t("div",fo,[t("div",{class:"top-bar",ref_key:"top",ref:se},null,512),(m(!0),y(oe,null,ie(n(v),f=>(m(),y("div",{key:f.index,chapterIndex:f.index,ref_for:!0,ref_key:"chapter",ref:j},[n(h)?(m(),Xe(z,{key:0,ref_for:!0,ref_key:"chapterRef",ref:G,chapterIndex:f.index,contents:f.content,title:f.title,spacing:n(s).config.spacing,fontSize:n(F),fontFamily:n(T),onReadedLengthChange:Ie},null,8,["chapterIndex","contents","title","spacing","fontSize","fontFamily"])):me("",!0)],8,mo))),128)),t("div",{class:"loading",ref_key:"loading",ref:be},null,512),t("div",{class:"bottom-bar",ref_key:"bottom",ref:de},null,512)])],4)],6)}}},Bo=re(vo,[["__scopeId","data-v-f53faca0"]]);export{Bo as default};
diff --git a/app/src/main/assets/web/vue/assets/BookChapter-BLcHWDb9.css b/app/src/main/assets/web/vue/assets/BookChapter-rTVd3xtP.css
similarity index 84%
rename from app/src/main/assets/web/vue/assets/BookChapter-BLcHWDb9.css
rename to app/src/main/assets/web/vue/assets/BookChapter-rTVd3xtP.css
index 155215158..67d2e4309 100644
--- a/app/src/main/assets/web/vue/assets/BookChapter-BLcHWDb9.css
+++ b/app/src/main/assets/web/vue/assets/BookChapter-rTVd3xtP.css
@@ -1 +1 @@
-@charset "UTF-8";.title[data-v-b529dd09]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-b529dd09]{display:block;word-wrap:break-word;letter-spacing:calc(var(--17d7f9f0) * 1em);line-height:calc(1 + var(--55c3df56));margin:calc(var(--67823168) * 1em) 0}p[data-v-b529dd09] img{height:1em}.full[data-v-b529dd09]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-WaOB0hHG.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-PstzbNMW.woff) format("woff")}[data-v-30b6868f] .iconfont,[data-v-30b6868f] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-30b6868f]{-webkit-user-select:none;user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-30b6868f]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-30b6868f]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-30b6868f]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-30b6868f]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-30b6868f]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-30b6868f]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-30b6868f]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-30b6868f]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-30b6868f]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading[data-v-30b6868f]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-30b6868f],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-30b6868f]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-30b6868f]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-30b6868f]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-30b6868f]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-30b6868f]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize[data-v-30b6868f]{display:inline-block;width:274px;height:34px;vertical-align:middle;border-radius:2px}.settings-wrapper .setting-list ul .font-size .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize span[data-v-30b6868f]{width:89px;height:34px;line-height:34px;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul .font-size .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize span em[data-v-30b6868f]{font-style:normal}.settings-wrapper .setting-list ul .font-size .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .font-size .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .read-width .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .read-width .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .more[data-v-30b6868f]:hover{color:#ed4259}.settings-wrapper .setting-list ul .font-size .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize .lang[data-v-30b6868f]{color:#a6a6a6;font-weight:400;font-family:FZZCYSK}.settings-wrapper .setting-list ul .font-size .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize b[data-v-30b6868f]{display:inline-block;height:20px;vertical-align:middle}.night[data-v-30b6868f] .theme-item,.night[data-v-30b6868f] .selected{border:1px solid #666}.night[data-v-30b6868f] .moon-icon{color:#ed4259}.night[data-v-30b6868f] .font-list .font-item,.night[data-v-30b6868f] .font-list .infinite-loading-item,.night .infinite-loading .font-item[data-v-30b6868f],.night .infinite-loading .infinite-loading-item[data-v-30b6868f],.night[data-v-30b6868f] .resize{border:1px solid #666;background:#2d2d2d80}.night[data-v-30b6868f] .resize b{border-right:1px solid #666}.day[data-v-30b6868f] .theme-item{border:1px solid #e5e5e5}.day[data-v-30b6868f] .selected{border:1px solid #ed4259}.day[data-v-30b6868f] .moon-icon{display:inline;color:#fff3}.day[data-v-30b6868f] .font-list .font-item,.day[data-v-30b6868f] .font-list .infinite-loading-item,.day .infinite-loading .font-item[data-v-30b6868f],.day .infinite-loading .infinite-loading-item[data-v-30b6868f]{background:#ffffff80;border:1px solid rgba(0,0,0,.1)}.day[data-v-30b6868f] .resize{border:1px solid #e5e5e5;background:#ffffff80}.day[data-v-30b6868f] .resize b{border-right:1px solid #e5e5e5}@media screen and (max-width: 500px){.settings-wrapper i[data-v-30b6868f]{display:flex!important;flex-wrap:wrap;padding-bottom:5px!important}}.selected[data-v-51153469]{color:#eb4259}.wrapper[data-v-51153469]{display:flex}.wrapper .cata-text[data-v-51153469]{width:100%;margin-right:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cata-wrapper[data-v-7ec68dd9]{margin:-16px;padding:18px 0 24px 25px}.cata-wrapper .title[data-v-7ec68dd9]{font-size:18px;font-weight:400;font-family:FZZCYSK;margin:0 0 20px;color:#ed4259;width:fit-content;border-bottom:1px solid #ed4259}.cata-wrapper[data-v-7ec68dd9] .data-wrapper .cata{height:40px;cursor:pointer;font:16px/40px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.cata-wrapper .night[data-v-7ec68dd9] .cata{border-bottom:1px solid #666}.cata-wrapper .day[data-v-7ec68dd9] .cata{border-bottom:1px solid #f2f2f2}[data-v-f53faca0] .pop-setting{margin-left:68px;top:0}[data-v-f53faca0] .pop-cata{margin-left:10px}.chapter-wrapper[data-v-f53faca0]{padding:0 4%;overflow-x:hidden}.chapter-wrapper[data-v-f53faca0] .no-point{pointer-events:none}.chapter-wrapper .tool-bar[data-v-f53faca0]{position:fixed;top:0;left:50%;z-index:100}.chapter-wrapper .tool-bar .tools[data-v-f53faca0]{display:flex;flex-direction:column}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-f53faca0]{font-size:18px;width:58px;height:48px;text-align:center;padding-top:12px;cursor:pointer;outline:none}.chapter-wrapper .tool-bar .tools .tool-icon .iconfont[data-v-f53faca0]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .tool-bar .tools .tool-icon .icon-text[data-v-f53faca0]{font-size:12px}.chapter-wrapper .read-bar[data-v-f53faca0]{position:fixed;bottom:0;right:50%;z-index:100}.chapter-wrapper .read-bar .tools[data-v-f53faca0]{display:flex;flex-direction:column}.chapter-wrapper .read-bar .tools .tool-icon[data-v-f53faca0]{font-size:18px;width:42px;height:31px;padding-top:12px;text-align:center;align-items:center;cursor:pointer;outline:none;margin-top:-1px}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-f53faca0]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .chapter[data-v-f53faca0]{font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif;text-align:left;padding:0 65px;min-height:100vh;width:670px;margin:0 auto}.chapter-wrapper .chapter .content[data-v-f53faca0]{font-size:18px;line-height:1.8;font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif}.chapter-wrapper .chapter .content .bottom-bar[data-v-f53faca0],.chapter-wrapper .chapter .content .top-bar[data-v-f53faca0]{height:64px}.day[data-v-f53faca0] .popup{box-shadow:0 2px 4px #0000001f,0 0 6px #0000000a}.day[data-v-f53faca0] .tool-icon{border:1px solid rgba(0,0,0,.1);margin-top:-1px;color:#000}.day[data-v-f53faca0] .tool-icon .icon-text{color:#0006}.day[data-v-f53faca0] .chapter{border:1px solid #d8d8d8;color:#262626}.night[data-v-f53faca0] .popup{box-shadow:0 2px 4px #0000007a,0 0 6px #00000029}.night[data-v-f53faca0] .tool-icon{border:1px solid #444;margin-top:-1px;color:#666}.night[data-v-f53faca0] .tool-icon .icon-text{color:#666}.night[data-v-f53faca0] .chapter{border:1px solid #444;color:#666}.night[data-v-f53faca0] .popper__arrow{background:#666}@media screen and (max-width: 776px){.chapter-wrapper[data-v-f53faca0]{padding:0}.chapter-wrapper .tool-bar[data-v-f53faca0]{left:0;width:100vw;margin-left:0!important}.chapter-wrapper .tool-bar .tools[data-v-f53faca0]{flex-direction:row;justify-content:space-between}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-f53faca0]{border:none}.chapter-wrapper .read-bar[data-v-f53faca0]{right:0;width:100vw;margin-right:0!important}.chapter-wrapper .read-bar .tools[data-v-f53faca0]{flex-direction:row;justify-content:space-between;padding:0 15px}.chapter-wrapper .read-bar .tools .tool-icon[data-v-f53faca0]{border:none;width:auto}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-f53faca0]{display:inline-block}.chapter-wrapper .chapter[data-v-f53faca0]{width:100vw!important;padding:0 20px;box-sizing:border-box}}
+@charset "UTF-8";.title[data-v-b529dd09]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-b529dd09]{display:block;word-wrap:break-word;letter-spacing:calc(var(--17d7f9f0) * 1em);line-height:calc(1 + var(--55c3df56));margin:calc(var(--67823168) * 1em) 0}p[data-v-b529dd09] img{height:1em}.full[data-v-b529dd09]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-WaOB0hHG.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-PstzbNMW.woff) format("woff")}[data-v-30b6868f] .iconfont,[data-v-30b6868f] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-30b6868f]{-webkit-user-select:none;user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-30b6868f]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-30b6868f]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-30b6868f]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-30b6868f]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-30b6868f]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-30b6868f]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-30b6868f]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-30b6868f]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-30b6868f]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading[data-v-30b6868f]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-30b6868f],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-30b6868f]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-30b6868f]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-30b6868f],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-30b6868f]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-30b6868f]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-30b6868f]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize[data-v-30b6868f]{display:inline-block;width:274px;height:34px;vertical-align:middle;border-radius:2px}.settings-wrapper .setting-list ul .font-size .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize span[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize span[data-v-30b6868f]{width:89px;height:34px;line-height:34px;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul .font-size .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize span em[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize span em[data-v-30b6868f]{font-style:normal}.settings-wrapper .setting-list ul .font-size .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .font-size .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .read-width .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .read-width .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .more[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .less[data-v-30b6868f]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .more[data-v-30b6868f]:hover{color:#ed4259}.settings-wrapper .setting-list ul .font-size .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize .lang[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize .lang[data-v-30b6868f]{color:#a6a6a6;font-weight:400;font-family:FZZCYSK}.settings-wrapper .setting-list ul .font-size .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .read-width .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .letter-spacing .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .line-spacing .resize b[data-v-30b6868f],.settings-wrapper .setting-list ul .paragraph-spacing .resize b[data-v-30b6868f]{display:inline-block;height:20px;vertical-align:middle}.night[data-v-30b6868f] .theme-item,.night[data-v-30b6868f] .selected{border:1px solid #666}.night[data-v-30b6868f] .moon-icon{color:#ed4259}.night[data-v-30b6868f] .font-list .font-item,.night[data-v-30b6868f] .font-list .infinite-loading-item,.night .infinite-loading .font-item[data-v-30b6868f],.night .infinite-loading .infinite-loading-item[data-v-30b6868f],.night[data-v-30b6868f] .resize{border:1px solid #666;background:#2d2d2d80}.night[data-v-30b6868f] .resize b{border-right:1px solid #666}.day[data-v-30b6868f] .theme-item{border:1px solid #e5e5e5}.day[data-v-30b6868f] .selected{border:1px solid #ed4259}.day[data-v-30b6868f] .moon-icon{display:inline;color:#fff3}.day[data-v-30b6868f] .font-list .font-item,.day[data-v-30b6868f] .font-list .infinite-loading-item,.day .infinite-loading .font-item[data-v-30b6868f],.day .infinite-loading .infinite-loading-item[data-v-30b6868f]{background:#ffffff80;border:1px solid rgba(0,0,0,.1)}.day[data-v-30b6868f] .resize{border:1px solid #e5e5e5;background:#ffffff80}.day[data-v-30b6868f] .resize b{border-right:1px solid #e5e5e5}@media screen and (max-width: 500px){.settings-wrapper i[data-v-30b6868f]{display:flex!important;flex-wrap:wrap;padding-bottom:5px!important}}.selected[data-v-51153469]{color:#eb4259}.wrapper[data-v-51153469]{display:flex}.wrapper .cata-text[data-v-51153469]{width:100%;margin-right:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cata-wrapper[data-v-7ec68dd9]{margin:-16px;padding:18px 0 24px 25px}.cata-wrapper .title[data-v-7ec68dd9]{font-size:18px;font-weight:400;font-family:FZZCYSK;margin:0 0 20px;color:#ed4259;width:fit-content;border-bottom:1px solid #ed4259}.cata-wrapper[data-v-7ec68dd9] .data-wrapper .cata{height:40px;cursor:pointer;font:16px/40px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.cata-wrapper .night[data-v-7ec68dd9] .cata{border-bottom:1px solid #666}.cata-wrapper .day[data-v-7ec68dd9] .cata{border-bottom:1px solid #f2f2f2}[data-v-65978af5] .pop-setting{margin-left:68px;top:0}[data-v-65978af5] .pop-cata{margin-left:10px}.chapter-wrapper[data-v-65978af5]{padding:0 4%;overflow-x:hidden}.chapter-wrapper[data-v-65978af5] .no-point{pointer-events:none}.chapter-wrapper .tool-bar[data-v-65978af5]{position:fixed;top:0;left:50%;z-index:100}.chapter-wrapper .tool-bar .tools[data-v-65978af5]{display:flex;flex-direction:column}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-65978af5]{font-size:18px;width:58px;height:48px;text-align:center;padding-top:12px;cursor:pointer;outline:none}.chapter-wrapper .tool-bar .tools .tool-icon .iconfont[data-v-65978af5]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .tool-bar .tools .tool-icon .icon-text[data-v-65978af5]{font-size:12px}.chapter-wrapper .read-bar[data-v-65978af5]{position:fixed;bottom:0;right:50%;z-index:100}.chapter-wrapper .read-bar .tools[data-v-65978af5]{display:flex;flex-direction:column}.chapter-wrapper .read-bar .tools .tool-icon[data-v-65978af5]{font-size:18px;width:42px;height:31px;padding-top:12px;text-align:center;align-items:center;cursor:pointer;outline:none;margin-top:-1px}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-65978af5]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .chapter[data-v-65978af5]{font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif;text-align:left;padding:0 65px;min-height:100vh;width:670px;margin:0 auto}.chapter-wrapper .chapter .content[data-v-65978af5]{font-size:18px;line-height:1.8;font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif}.chapter-wrapper .chapter .content .bottom-bar[data-v-65978af5],.chapter-wrapper .chapter .content .top-bar[data-v-65978af5]{height:64px}.day[data-v-65978af5] .popup{box-shadow:0 2px 4px #0000001f,0 0 6px #0000000a}.day[data-v-65978af5] .tool-icon{border:1px solid rgba(0,0,0,.1);margin-top:-1px;color:#000}.day[data-v-65978af5] .tool-icon .icon-text{color:#0006}.day[data-v-65978af5] .chapter{border:1px solid #d8d8d8;color:#262626}.night[data-v-65978af5] .popup{box-shadow:0 2px 4px #0000007a,0 0 6px #00000029}.night[data-v-65978af5] .tool-icon{border:1px solid #444;margin-top:-1px;color:#666}.night[data-v-65978af5] .tool-icon .icon-text{color:#666}.night[data-v-65978af5] .chapter{border:1px solid #444;color:#666}.night[data-v-65978af5] .popper__arrow{background:#666}@media screen and (max-width: 776px){.chapter-wrapper[data-v-65978af5]{padding:0}.chapter-wrapper .tool-bar[data-v-65978af5]{left:0;width:100vw;margin-left:0!important}.chapter-wrapper .tool-bar .tools[data-v-65978af5]{flex-direction:row;justify-content:space-between}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-65978af5]{border:none}.chapter-wrapper .read-bar[data-v-65978af5]{right:0;width:100vw;margin-right:0!important}.chapter-wrapper .read-bar .tools[data-v-65978af5]{flex-direction:row;justify-content:space-between;padding:0 15px}.chapter-wrapper .read-bar .tools .tool-icon[data-v-65978af5]{border:none;width:auto}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-65978af5]{display:inline-block}.chapter-wrapper .chapter[data-v-65978af5]{width:100vw!important;padding:0 20px;box-sizing:border-box}}
diff --git a/app/src/main/assets/web/vue/assets/BookShelf-Dvcapkge.js b/app/src/main/assets/web/vue/assets/BookShelf-BYu7_7Ty.js
similarity index 97%
rename from app/src/main/assets/web/vue/assets/BookShelf-Dvcapkge.js
rename to app/src/main/assets/web/vue/assets/BookShelf-BYu7_7Ty.js
index ee65fadac..e4f45bc53 100644
--- a/app/src/main/assets/web/vue/assets/BookShelf-Dvcapkge.js
+++ b/app/src/main/assets/web/vue/assets/BookShelf-BYu7_7Ty.js
@@ -1 +1 @@
-import{a0 as G,m as D,o as d,d as u,g as t,F as Z,N as W,t as h,c as X,w as P,f as N,K as x,u as n,a1 as H,s as j,x as y,a2 as $,M as ee,R as te,j as B,e as S,y as se,J as ae,p as M,a3 as oe,a4 as ne,G as re,z as ie}from"./vendor-fl4hlNse.js";import{d as ce,i as le,u as de,a as ue}from"./el-message-box-C4L4UnIC.js";import{_ as O,A as p}from"./index-BmuGQon2.js";const he={class:"books-wrapper"},pe={class:"wrapper"},ge=["onClick"],me={class:"cover-img"},fe=["src"],ve={class:"info"},_e={class:"name"},we={class:"sub"},Be={class:"author"},Ae={key:0,class:"tags"},Ce={key:1,class:"update-info"},Ie={class:"size"},ke={class:"date"},xe={key:0,class:"intro"},ye={key:1,class:"dur-chapter"},Se={class:"last-chapter"},Re={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(m,{emit:o}){G(s=>({f19573ba:n(C)}));const R=m,E=o,z=s=>E("bookClick",s),A=s=>le(s)?p.getProxyCoverUrl(s):s,T=s=>{s.target.src=p.getProxyCoverUrl(s.target.src)},C=D(()=>R.isSearch?"space-between":"flex-start");return(s,f)=>{const L=H;return d(),u("div",he,[t("div",pe,[(d(!0),u(Z,null,W(m.books,r=>{var I;return d(),u("div",{class:"book",key:r.bookUrl,onClick:w=>z(r)},[t("div",me,[(d(),u("img",{class:"cover",src:A(r.coverUrl),key:r.coverUrl,onErrorOnce:T,alt:"",loading:"lazy"},null,40,fe))]),t("div",ve,[t("div",_e,h(r.name),1),t("div",we,[t("div",Be,h(r.author),1),m.isSearch?(d(),u("div",Ae,[(d(!0),u(Z,null,W((I=r.kind)==null?void 0:I.split(",").slice(0,2),w=>(d(),X(L,{key:w},{default:P(()=>[N(h(w),1)]),_:2},1024))),128))])):x("",!0),m.isSearch?x("",!0):(d(),u("div",Ce,[f[0]||(f[0]=t("div",{class:"dot"},"•",-1)),t("div",Ie,"共"+h(r.totalChapterNum)+"章",1),f[1]||(f[1]=t("div",{class:"dot"},"•",-1)),t("div",ke,h(n(ce)(r.lastCheckTime)),1)]))]),m.isSearch?(d(),u("div",xe,h(r.intro),1)):x("",!0),m.isSearch?x("",!0):(d(),u("div",ye," 已读:"+h(r.durChapterTitle),1)),t("div",Se,"最新:"+h(r.latestChapterTitle),1)])],8,ge)}),128))])])}}},Ee=O(Re,[["__scopeId","data-v-1139d638"]]),ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==",Te={class:"navigation-wrapper"},Le={class:"search-wrapper"},Me={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Ne={class:"reading-recent"},Ve={class:"setting-wrapper"},be={class:"setting-item"},Je={class:"bottom-icons"},Ze={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},We={class:"bottom-icon"},De=["src"],He={__name:"BookShelf",setup(m){const o=de(),{connectStatus:R,connectType:E,newConnect:z,shelf:A,theme:T}=j(o),C=D(()=>T.value==6),s=y({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),f=y(null),{showLoading:L,closeLoading:r,loadingWrapper:I,isLoading:w}=ue(f,"正在获取书籍信息"),v=$([]),g=y(""),k=y(!1);ee(()=>{if(!(k.value&&g.value!="")){if(k.value=!1,v.value=[],g.value==""){v.value=A.value;return}v.value=A.value.filter(a=>a.name.includes(g.value)||a.author.includes(g.value))}});const U=()=>{g.value!=""&&(v.value=[],o.clearSearchBooks(),L(),k.value=!0,p.search(g.value,a=>{w&&r();try{o.setSearchBooks(JSON.parse(a)),v.value=o.searchBooks}catch(e){throw B.error("后端数据错误"),e}},()=>{r(),v.value.length==0&&B.info("搜索结果为空")}))},F=()=>{oe.prompt("请输入 IP 和端口 ( 如:127.0.0.1:9527 或者通过内网穿透的地址)","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?:([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-6][0-5][0-5][0-3][0-5])$/,inputErrorMessage:"url 形式不正确",beforeClose:(a,e,c)=>{if(a==="confirm"){o.setNewConnect(!0),e.confirmButtonLoading=!0,e.confirmButtonText="校验中……";const i=e.inputValue;p.testLeagdoHttpUrlConnection("http://"+i).then(function(l){e.confirmButtonLoading=!1,o.setConnectType("success"),o.setConnectStatus("已连接 "+i),o.clearSearchBooks(),o.setNewConnect(!1),p.setLeagdoHttpUrl("http://"+i),localStorage.setItem("remoteIp",i),b(),c()}).catch(function(l){throw e.confirmButtonLoading=!1,e.confirmButtonText="确定",B.error("访问失败,请检查您输入的 url"),o.setNewConnect(!1),l})}else c()}})},K=ne(),Y=async a=>{const{bookUrl:e,name:c,author:i,durChapterIndex:l=0,durChapterPos:_=0}=a,J="respondTime"in a;J&&await p.saveBook(a),V(e,c,i,l,_,J)},V=(a,e,c,i,l,_)=>{e!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",a),sessionStorage.setItem("bookName",e),sessionStorage.setItem("bookAuthor",c),sessionStorage.setItem("chapterIndex",i),sessionStorage.setItem("chapterPos",l),sessionStorage.setItem("isSeachBook",_),s.value={name:e,author:c,url:a,chapterIndex:i,chapterPos:l},localStorage.setItem("readingRecent",JSON.stringify(s.value)),K.push({path:"/chapter"}))};te(()=>{let a=localStorage.getItem("readingRecent");a!=null&&(s.value=JSON.parse(a),typeof s.value.chapterIndex>"u"&&(s.value.chapterIndex=0)),p.testLeagdoHttpUrlConnection().then(q).then(Q).catch(function(e){throw o.setConnectType("danger"),o.setConnectStatus("连接异常"),B.error("后端连接失败异常,请检查阅读WEB服务或者设置其它可用IP"),o.setNewConnect(!1),e})});const Q=()=>{I(o.saveBookProgress().finally(b))},b=()=>p.getBookShelf().then(a=>{o.setConnectType("success"),a.data.isSuccess?o.addBooks(a.data.data.sort(function(e,c){var i=e.durChapterTime||0,l=c.durChapterTime||0;return l-i})):B.error(a.data.errorMsg??"后端返回格式错误!"),o.setConnectStatus("已连接 "+p.legado_http_origin),o.setNewConnect(!1)}),q=()=>p.getReadConfig().then(a=>{var e=a.data.data;if(e){let c=JSON.parse(e);o.setConfig(c)}});return(a,e)=>{const c=re,i=H,l=Ee;return d(),u("div",{class:M({"index-wrapper":!0,night:n(C),day:!n(C)})},[t("div",Te,[e[4]||(e[4]=t("div",{class:"navigation-title-wrapper"},[t("div",{class:"navigation-title"},"阅读"),t("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),t("div",Le,[S(c,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:n(g),"onUpdate:modelValue":e[0]||(e[0]=_=>se(g)?g.value=_:null),class:"search-input","prefix-icon":n(ie),onKeyup:ae(U,["enter"])},null,8,["modelValue","prefix-icon"])]),t("div",Me,[t("div",Pe,[e[2]||(e[2]=t("div",{class:"recent-title"},"最近阅读",-1)),t("div",Ne,[S(i,{type:n(s).name=="尚无阅读记录"?"warning":"",class:M(["recent-book",{"no-point":n(s).url==""}]),size:"large",onClick:e[1]||(e[1]=_=>V(n(s).url,n(s).name,n(s).author,n(s).chapterIndex,n(s).chapterPos))},{default:P(()=>[N(h(n(s).name),1)]),_:1},8,["type","class"])])]),t("div",Ve,[e[3]||(e[3]=t("div",{class:"setting-title"},"基本设定",-1)),t("div",be,[S(i,{type:n(E),size:"large",class:M(["setting-connect",{"no-point":n(z)}]),onClick:F},{default:P(()=>[N(h(n(R)),1)]),_:1},8,["type","class"])])])]),t("div",Je,[t("a",Ze,[t("div",We,[t("img",{src:n(ze),alt:""},null,8,De)])])])]),t("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:f},[S(l,{books:n(v),onBookClick:Y,isSearch:n(k)},null,8,["books","isSearch"])],512)],2)}}},Ke=O(He,[["__scopeId","data-v-fb6598ff"]]);export{Ke as default};
+import{a0 as G,m as D,o as d,d as u,g as t,F as Z,N as W,t as h,c as X,w as P,f as N,K as x,u as n,a1 as H,s as j,x as y,a2 as $,M as ee,R as te,j as B,e as S,y as se,J as ae,p as M,a3 as oe,a4 as ne,G as re,z as ie}from"./vendor-DyjdUqFg.js";import{d as ce,i as le,u as de,a as ue}from"./el-message-box-Cdo1N8K_.js";import{_ as O,A as p}from"./index-D7Z3b_yE.js";const he={class:"books-wrapper"},pe={class:"wrapper"},ge=["onClick"],me={class:"cover-img"},fe=["src"],ve={class:"info"},_e={class:"name"},we={class:"sub"},Be={class:"author"},Ae={key:0,class:"tags"},Ce={key:1,class:"update-info"},Ie={class:"size"},ke={class:"date"},xe={key:0,class:"intro"},ye={key:1,class:"dur-chapter"},Se={class:"last-chapter"},Re={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(m,{emit:o}){G(s=>({f19573ba:n(C)}));const R=m,E=o,z=s=>E("bookClick",s),A=s=>le(s)?p.getProxyCoverUrl(s):s,T=s=>{s.target.src=p.getProxyCoverUrl(s.target.src)},C=D(()=>R.isSearch?"space-between":"flex-start");return(s,f)=>{const L=H;return d(),u("div",he,[t("div",pe,[(d(!0),u(Z,null,W(m.books,r=>{var I;return d(),u("div",{class:"book",key:r.bookUrl,onClick:w=>z(r)},[t("div",me,[(d(),u("img",{class:"cover",src:A(r.coverUrl),key:r.coverUrl,onErrorOnce:T,alt:"",loading:"lazy"},null,40,fe))]),t("div",ve,[t("div",_e,h(r.name),1),t("div",we,[t("div",Be,h(r.author),1),m.isSearch?(d(),u("div",Ae,[(d(!0),u(Z,null,W((I=r.kind)==null?void 0:I.split(",").slice(0,2),w=>(d(),X(L,{key:w},{default:P(()=>[N(h(w),1)]),_:2},1024))),128))])):x("",!0),m.isSearch?x("",!0):(d(),u("div",Ce,[f[0]||(f[0]=t("div",{class:"dot"},"•",-1)),t("div",Ie,"共"+h(r.totalChapterNum)+"章",1),f[1]||(f[1]=t("div",{class:"dot"},"•",-1)),t("div",ke,h(n(ce)(r.lastCheckTime)),1)]))]),m.isSearch?(d(),u("div",xe,h(r.intro),1)):x("",!0),m.isSearch?x("",!0):(d(),u("div",ye," 已读:"+h(r.durChapterTitle),1)),t("div",Se,"最新:"+h(r.latestChapterTitle),1)])],8,ge)}),128))])])}}},Ee=O(Re,[["__scopeId","data-v-1139d638"]]),ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxM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gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==",Te={class:"navigation-wrapper"},Le={class:"search-wrapper"},Me={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Ne={class:"reading-recent"},Ve={class:"setting-wrapper"},be={class:"setting-item"},Je={class:"bottom-icons"},Ze={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},We={class:"bottom-icon"},De=["src"],He={__name:"BookShelf",setup(m){const o=de(),{connectStatus:R,connectType:E,newConnect:z,shelf:A,theme:T}=j(o),C=D(()=>T.value==6),s=y({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),f=y(null),{showLoading:L,closeLoading:r,loadingWrapper:I,isLoading:w}=ue(f,"正在获取书籍信息"),v=$([]),g=y(""),k=y(!1);ee(()=>{if(!(k.value&&g.value!="")){if(k.value=!1,v.value=[],g.value==""){v.value=A.value;return}v.value=A.value.filter(a=>a.name.includes(g.value)||a.author.includes(g.value))}});const U=()=>{g.value!=""&&(v.value=[],o.clearSearchBooks(),L(),k.value=!0,p.search(g.value,a=>{w&&r();try{o.setSearchBooks(JSON.parse(a)),v.value=o.searchBooks}catch(e){throw B.error("后端数据错误"),e}},()=>{r(),v.value.length==0&&B.info("搜索结果为空")}))},F=()=>{oe.prompt("请输入 IP 和端口 ( 如:127.0.0.1:9527 或者通过内网穿透的地址)","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?:([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-6][0-5][0-5][0-3][0-5])$/,inputErrorMessage:"url 形式不正确",beforeClose:(a,e,c)=>{if(a==="confirm"){o.setNewConnect(!0),e.confirmButtonLoading=!0,e.confirmButtonText="校验中……";const i=e.inputValue;p.testLeagdoHttpUrlConnection("http://"+i).then(function(l){e.confirmButtonLoading=!1,o.setConnectType("success"),o.setConnectStatus("已连接 "+i),o.clearSearchBooks(),o.setNewConnect(!1),p.setLeagdoHttpUrl("http://"+i),localStorage.setItem("remoteIp",i),b(),c()}).catch(function(l){throw e.confirmButtonLoading=!1,e.confirmButtonText="确定",B.error("访问失败,请检查您输入的 url"),o.setNewConnect(!1),l})}else c()}})},K=ne(),Y=async a=>{const{bookUrl:e,name:c,author:i,durChapterIndex:l=0,durChapterPos:_=0}=a,J="respondTime"in a;J&&await p.saveBook(a),V(e,c,i,l,_,J)},V=(a,e,c,i,l,_)=>{e!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",a),sessionStorage.setItem("bookName",e),sessionStorage.setItem("bookAuthor",c),sessionStorage.setItem("chapterIndex",i),sessionStorage.setItem("chapterPos",l),sessionStorage.setItem("isSeachBook",_),s.value={name:e,author:c,url:a,chapterIndex:i,chapterPos:l},localStorage.setItem("readingRecent",JSON.stringify(s.value)),K.push({path:"/chapter"}))};te(()=>{let a=localStorage.getItem("readingRecent");a!=null&&(s.value=JSON.parse(a),typeof s.value.chapterIndex>"u"&&(s.value.chapterIndex=0)),p.testLeagdoHttpUrlConnection().then(q).then(Q).catch(function(e){throw o.setConnectType("danger"),o.setConnectStatus("连接异常"),B.error("后端连接失败异常,请检查阅读WEB服务或者设置其它可用IP"),o.setNewConnect(!1),e})});const Q=()=>{I(o.saveBookProgress().finally(b))},b=()=>p.getBookShelf().then(a=>{o.setConnectType("success"),a.data.isSuccess?o.addBooks(a.data.data.sort(function(e,c){var i=e.durChapterTime||0,l=c.durChapterTime||0;return l-i})):B.error(a.data.errorMsg??"后端返回格式错误!"),o.setConnectStatus("已连接 "+p.legado_http_origin),o.setNewConnect(!1)}),q=()=>p.getReadConfig().then(a=>{var e=a.data.data;if(e){let c=JSON.parse(e);o.setConfig(c)}});return(a,e)=>{const c=re,i=H,l=Ee;return d(),u("div",{class:M({"index-wrapper":!0,night:n(C),day:!n(C)})},[t("div",Te,[e[4]||(e[4]=t("div",{class:"navigation-title-wrapper"},[t("div",{class:"navigation-title"},"阅读"),t("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),t("div",Le,[S(c,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:n(g),"onUpdate:modelValue":e[0]||(e[0]=_=>se(g)?g.value=_:null),class:"search-input","prefix-icon":n(ie),onKeyup:ae(U,["enter"])},null,8,["modelValue","prefix-icon"])]),t("div",Me,[t("div",Pe,[e[2]||(e[2]=t("div",{class:"recent-title"},"最近阅读",-1)),t("div",Ne,[S(i,{type:n(s).name=="尚无阅读记录"?"warning":"",class:M(["recent-book",{"no-point":n(s).url==""}]),size:"large",onClick:e[1]||(e[1]=_=>V(n(s).url,n(s).name,n(s).author,n(s).chapterIndex,n(s).chapterPos))},{default:P(()=>[N(h(n(s).name),1)]),_:1},8,["type","class"])])]),t("div",Ve,[e[3]||(e[3]=t("div",{class:"setting-title"},"基本设定",-1)),t("div",be,[S(i,{type:n(E),size:"large",class:M(["setting-connect",{"no-point":n(z)}]),onClick:F},{default:P(()=>[N(h(n(R)),1)]),_:1},8,["type","class"])])])]),t("div",Je,[t("a",Ze,[t("div",We,[t("img",{src:n(ze),alt:""},null,8,De)])])])]),t("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:f},[S(l,{books:n(v),onBookClick:Y,isSearch:n(k)},null,8,["books","isSearch"])],512)],2)}}},Ke=O(He,[["__scopeId","data-v-fb6598ff"]]);export{Ke as default};
diff --git a/app/src/main/assets/web/vue/assets/el-message-box-C4L4UnIC.js b/app/src/main/assets/web/vue/assets/el-message-box-Cdo1N8K_.js
similarity index 97%
rename from app/src/main/assets/web/vue/assets/el-message-box-C4L4UnIC.js
rename to app/src/main/assets/web/vue/assets/el-message-box-Cdo1N8K_.js
index 693c9ce13..155ba6e5f 100644
--- a/app/src/main/assets/web/vue/assets/el-message-box-C4L4UnIC.js
+++ b/app/src/main/assets/web/vue/assets/el-message-box-Cdo1N8K_.js
@@ -1 +1 @@
-import{k as b,y as D,u as w,x as L,I as C,a5 as y,ad as v}from"./vendor-fl4hlNse.js";import{A as B}from"./index-BmuGQon2.js";const F=b("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",jumpDuration:1e3,spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var l;if(e.catalog.length==0)return;const{index:a,chapterPos:t,bookName:o,bookAuthor:s}=e.readingBook;let n=(l=e.catalog[a])==null?void 0:l.title;if(n)return{name:o,author:s,durChapterIndex:a,durChapterPos:t,durChapterTime:new Date().getTime(),durChapterTitle:n}},theme:e=>e.config.theme},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},clearBooks(){this.shelf=[]},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){this.config=Object.assign({},this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(a=>{this.shelf.find(o=>o.bookUrl==a.bookUrl)===void 0&&this.searchBooks.push(a)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?B.saveBookProgress(this.bookProgress):Promise.resolve()}}});function P(e){return typeof e=="function"?e():w(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const M=()=>{};function T(e,a){function t(...o){return new Promise((s,n)=>{Promise.resolve(e(()=>a.apply(this,o),{fn:a,thisArg:this,args:o})).then(s).catch(n)})}return t}function Y(...e){let a=0,t,o=!0,s=M,n,l,i,r,c;!D(e[0])&&typeof e[0]=="object"?{delay:l,trailing:i=!0,leading:r=!0,rejectOnCancel:c=!1}=e[0]:[l,i=!0,r=!0,c=!1]=e;const p=()=>{t&&(clearTimeout(t),t=void 0,s(),s=M)};return h=>{const u=P(l),g=Date.now()-a,d=()=>n=h();return p(),u<=0?(a=Date.now(),d()):(g>u&&(r||!o)?(a=Date.now(),d()):i&&(n=new Promise((m,S)=>{s=c?S:m,t=setTimeout(()=>{a=Date.now(),o=!0,m(d()),p()},Math.max(0,u-g))})),!r&&!t&&(t=setTimeout(()=>o=!0,u)),o=!1,n)}}function E(e,a=200,t=!1,o=!0,s=!1){return T(Y(a,t,o,s),e)}const x=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function A(e,a,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((n,l)=>n+=`${l}.`,"")),t?s.toLowerCase():s}function f(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}function V(e,a,t={}){var o;const s=e.getFullYear(),n=e.getMonth(),l=e.getDate(),i=e.getHours(),r=e.getMinutes(),c=e.getSeconds(),p=e.getMilliseconds(),k=e.getDay(),h=(o=t.customMeridiem)!=null?o:A,u={Yo:()=>f(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>n+1,Mo:()=>f(n+1),MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(t.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(t.locales,{month:"long"}),D:()=>String(l),Do:()=>f(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(i),Ho:()=>f(i),HH:()=>`${i}`.padStart(2,"0"),h:()=>`${i%12||12}`.padStart(1,"0"),ho:()=>f(i%12||12),hh:()=>`${i%12||12}`.padStart(2,"0"),m:()=>String(r),mo:()=>f(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(c),so:()=>f(c),ss:()=>`${c}`.padStart(2,"0"),SSS:()=>`${p}`.padStart(3,"0"),d:()=>k,dd:()=>e.toLocaleDateString(t.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(t.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(t.locales,{weekday:"long"}),A:()=>h(i,r),AA:()=>h(i,r,!1,!0),a:()=>h(i,r,!0),aa:()=>h(i,r,!0,!0)};return a.replace(x,(g,d)=>{var m,S;return(S=d??((m=u[g])==null?void 0:m.call(u)))!=null?S:g})}const R=e=>/,\s*\{/.test(e)||!(e.startsWith("http")||e.startsWith("data:")||e.startsWith("blob:")),j=e=>{let a=new Date().getTime(),t=Math.floor((a-e)/1e3),o="";return t<=30?o="刚刚":t<60?o=t+"秒前":t<3600?o=Math.floor(t/60)+"分钟前":t<86400?o=Math.floor(t/3600)+"小时前":t<2592e3?o=Math.floor(t/86400)+"天前":o=V(new Date(e),"YYYY-MM-DD"),o},H='',I=(e,a,t=H)=>{const o=L(!1);let s=null;const n=()=>o.value=!1,l=()=>o.value=!0;C(o,r=>{if(!r)return s==null?void 0:s.close();s=v.service({target:w(e),spinner:t,text:a,lock:!0,background:"rgba(0, 0, 0, 0)"})});const i=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return y(()=>{n()}),{isLoading:o,showLoading:l,closeLoading:n,loadingWrapper:i}};export{I as a,E as b,j as d,R as i,F as u};
+import{k as b,y as D,u as w,x as L,I as C,a5 as y,ae as v}from"./vendor-DyjdUqFg.js";import{A as B}from"./index-D7Z3b_yE.js";const F=b("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",jumpDuration:1e3,spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var l;if(e.catalog.length==0)return;const{index:a,chapterPos:t,bookName:o,bookAuthor:s}=e.readingBook;let n=(l=e.catalog[a])==null?void 0:l.title;if(n)return{name:o,author:s,durChapterIndex:a,durChapterPos:t,durChapterTime:new Date().getTime(),durChapterTitle:n}},theme:e=>e.config.theme},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},clearBooks(){this.shelf=[]},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){this.config=Object.assign({},this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(a=>{this.shelf.find(o=>o.bookUrl==a.bookUrl)===void 0&&this.searchBooks.push(a)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?B.saveBookProgress(this.bookProgress):Promise.resolve()}}});function P(e){return typeof e=="function"?e():w(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const M=()=>{};function T(e,a){function t(...o){return new Promise((s,n)=>{Promise.resolve(e(()=>a.apply(this,o),{fn:a,thisArg:this,args:o})).then(s).catch(n)})}return t}function Y(...e){let a=0,t,o=!0,s=M,n,l,i,r,c;!D(e[0])&&typeof e[0]=="object"?{delay:l,trailing:i=!0,leading:r=!0,rejectOnCancel:c=!1}=e[0]:[l,i=!0,r=!0,c=!1]=e;const p=()=>{t&&(clearTimeout(t),t=void 0,s(),s=M)};return h=>{const u=P(l),g=Date.now()-a,d=()=>n=h();return p(),u<=0?(a=Date.now(),d()):(g>u&&(r||!o)?(a=Date.now(),d()):i&&(n=new Promise((m,S)=>{s=c?S:m,t=setTimeout(()=>{a=Date.now(),o=!0,m(d()),p()},Math.max(0,u-g))})),!r&&!t&&(t=setTimeout(()=>o=!0,u)),o=!1,n)}}function E(e,a=200,t=!1,o=!0,s=!1){return T(Y(a,t,o,s),e)}const x=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function A(e,a,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((n,l)=>n+=`${l}.`,"")),t?s.toLowerCase():s}function f(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}function V(e,a,t={}){var o;const s=e.getFullYear(),n=e.getMonth(),l=e.getDate(),i=e.getHours(),r=e.getMinutes(),c=e.getSeconds(),p=e.getMilliseconds(),k=e.getDay(),h=(o=t.customMeridiem)!=null?o:A,u={Yo:()=>f(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>n+1,Mo:()=>f(n+1),MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(t.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(t.locales,{month:"long"}),D:()=>String(l),Do:()=>f(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(i),Ho:()=>f(i),HH:()=>`${i}`.padStart(2,"0"),h:()=>`${i%12||12}`.padStart(1,"0"),ho:()=>f(i%12||12),hh:()=>`${i%12||12}`.padStart(2,"0"),m:()=>String(r),mo:()=>f(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(c),so:()=>f(c),ss:()=>`${c}`.padStart(2,"0"),SSS:()=>`${p}`.padStart(3,"0"),d:()=>k,dd:()=>e.toLocaleDateString(t.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(t.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(t.locales,{weekday:"long"}),A:()=>h(i,r),AA:()=>h(i,r,!1,!0),a:()=>h(i,r,!0),aa:()=>h(i,r,!0,!0)};return a.replace(x,(g,d)=>{var m,S;return(S=d??((m=u[g])==null?void 0:m.call(u)))!=null?S:g})}const R=e=>/,\s*\{/.test(e)||!(e.startsWith("http")||e.startsWith("data:")||e.startsWith("blob:")),j=e=>{let a=new Date().getTime(),t=Math.floor((a-e)/1e3),o="";return t<=30?o="刚刚":t<60?o=t+"秒前":t<3600?o=Math.floor(t/60)+"分钟前":t<86400?o=Math.floor(t/3600)+"小时前":t<2592e3?o=Math.floor(t/86400)+"天前":o=V(new Date(e),"YYYY-MM-DD"),o},H='',I=(e,a,t=H)=>{const o=L(!1);let s=null;const n=()=>o.value=!1,l=()=>o.value=!0;C(o,r=>{if(!r)return s==null?void 0:s.close();s=v.service({target:w(e),spinner:t,text:a,lock:!0,background:"rgba(0, 0, 0, 0)"})});const i=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return y(()=>{n()}),{isLoading:o,showLoading:l,closeLoading:n,loadingWrapper:i}};export{I as a,E as b,j as d,R as i,F as u};
diff --git a/app/src/main/assets/web/vue/assets/index-BmuGQon2.js b/app/src/main/assets/web/vue/assets/index-D7Z3b_yE.js
similarity index 98%
rename from app/src/main/assets/web/vue/assets/index-BmuGQon2.js
rename to app/src/main/assets/web/vue/assets/index-D7Z3b_yE.js
index 18ef1da54..5a4fd4bc5 100644
--- a/app/src/main/assets/web/vue/assets/index-BmuGQon2.js
+++ b/app/src/main/assets/web/vue/assets/index-D7Z3b_yE.js
@@ -1,5 +1,5 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BookShelf-Dvcapkge.js","./vendor-fl4hlNse.js","./vendor-DaRzvvaT.css","./el-message-box-C4L4UnIC.js","./el-message-box-Bdqw_xyS.css","./BookShelf-2-n0JA9B.css","./BookChapter-BR_a5Boa.js","./BookChapter-BLcHWDb9.css"])))=>i.map(i=>d[i]);
-import{r as Ee,o as c,c as U,a as le,b as se,d as I,e as m,w as u,f as y,u as r,l as $,g as h,F as O,E as Be,h as me,i as Ie,j as E,k as Ve,s as Z,m as G,t as X,n as Se,p as he,q as ie,v as Ne,x as J,y as H,z as fe,A as Re,B as Te,C as ue,V as Le,D as $e,G as ee,H as Oe,I as ye,J as Je,K as T,L as De,M as Pe,N as j,O as _e,P as be,Q as M,R as Ae,S as je,T as He,U as Ke,W as Me,X as We,Y as qe,Z as Fe,_ as ze,$ as Ge}from"./vendor-fl4hlNse.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const p of s.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();const D=(e,o)=>{const t=e.__vccOpts||e;for(const[l,n]of o)t[l]=n;return t},Qe={};function Xe(e,o){const t=Ee("router-view");return c(),U(t)}const Ye=D(Qe,[["render",Xe]]),Ze="modulepreload",et=function(e,o){return new URL(e,o).href},ce={},de=function(o,t,l){let n=Promise.resolve();if(t&&t.length>0){const p=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),_=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));n=Promise.allSettled(t.map(b=>{if(b=et(b,l),b in ce)return;ce[b]=!0;const x=b.endsWith(".css"),B=x?'[rel="stylesheet"]':"";if(!!l)for(let d=p.length-1;d>=0;d--){const v=p[d];if(v.href===b&&(!x||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${b}"]${B}`))return;const i=document.createElement("link");if(i.rel=x?"stylesheet":Ze,x||(i.as="script"),i.crossOrigin="",i.href=b,_&&i.setAttribute("nonce",_),document.head.appendChild(i),x)return new Promise((d,v)=>{i.addEventListener("load",d),i.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${b}`)))})}))}function s(p){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=p,window.dispatchEvent(g),!g.defaultPrevented)throw p}return n.then(p=>{for(const g of p||[])g.status==="rejected"&&s(g.reason);return o().catch(s)})},ke=[{path:"/",name:"shelf",component:()=>de(()=>import("./BookShelf-Dvcapkge.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/chapter",name:"chapter",component:()=>de(()=>import("./BookChapter-BR_a5Boa.js"),__vite__mapDeps([6,1,2,3,4,7]),import.meta.url)}];le({history:se(),routes:ke});const tt={style:{"margin-top":"20px"}},ot={__name:"SourceHelp",setup(e){return(o,t)=>{const l=Be,n=me;return c(),I(O,null,[m(l,{icon:r($),href:"/help/#appHelp",target:"_blank"},{default:u(()=>t[0]||(t[0]=[y("APP帮助文档")])),_:1},8,["icon"]),t[19]||(t[19]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#ruleHelp",target:"_blank"},{default:u(()=>t[1]||(t[1]=[y("书源制作教程")])),_:1},8,["icon"]),t[20]||(t[20]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#jsHelp",target:"_blank"},{default:u(()=>t[2]||(t[2]=[y("js变量和函数")])),_:1},8,["icon"]),t[21]||(t[21]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#xpathHelp",target:"_blank"},{default:u(()=>t[3]||(t[3]=[y("xpath语法教程")])),_:1},8,["icon"]),t[22]||(t[22]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#regexHelp",target:"_blank"},{default:u(()=>t[4]||(t[4]=[y("正则表达式教程")])),_:1},8,["icon"]),t[23]||(t[23]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#txtTocRuleHelp",target:"_blank"},{default:u(()=>t[5]||(t[5]=[y("txt目录正则说明")])),_:1},8,["icon"]),t[24]||(t[24]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#debugHelp",target:"_blank"},{default:u(()=>t[6]||(t[6]=[y("书源调试说明")])),_:1},8,["icon"]),t[25]||(t[25]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#httpTTSHelp",target:"_blank"},{default:u(()=>t[7]||(t[7]=[y("在线朗读规则")])),_:1},8,["icon"]),t[26]||(t[26]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#webDavBookHelp",target:"_blank"},{default:u(()=>t[8]||(t[8]=[y(" WebDav书籍简明使用教程")])),_:1},8,["icon"]),t[27]||(t[27]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#webDavHelp",target:"_blank"},{default:u(()=>t[9]||(t[9]=[y(" WebDav备份教程")])),_:1},8,["icon"]),t[28]||(t[28]=h("br",null,null,-1)),m(l,{icon:r($),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>t[10]||(t[10]=[y("正则表达式在线验证工具")])),_:1},8,["icon"]),t[29]||(t[29]=h("br",null,null,-1)),h("div",tt,[h("span",null,[m(n,null,{default:u(()=>t[11]||(t[11]=[h("code",null,"^$()[]{}.?+*|",-1),y(" 这些是Java正则特殊符号,匹配需转义")])),_:1})]),t[15]||(t[15]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[12]||(t[12]=[h("code",null,"(?s)",-1),y(" 前缀表示跨行解析")])),_:1})]),t[16]||(t[16]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[13]||(t[13]=[h("code",null,"(?m)",-1),y(" 前缀表示逐行匹配")])),_:1})]),t[17]||(t[17]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[14]||(t[14]=[h("code",null,"(?i)",-1),y(" 前缀表示忽略大小写")])),_:1})]),t[18]||(t[18]=h("br",null,null,-1))])],64)}}},nt=D(ot,[["__scopeId","data-v-35b7188a"]]),rt=1e3,C=Ie.create({baseURL:localStorage.getItem("remoteIp")||location.origin,timeout:120*rt});let A,Y;const ve=e=>{let o;const{protocol:t,hostname:l,port:n}=new URL(e);if(!t.startsWith("http"))throw new Error("unexpect protocol:"+e);C.defaults.baseURL=e,A=e,n!==""?o=Number(n)+1:o=t.startsWith("https:")?"444":"81",Y=`${t.startsWith("https:")?"wss://":"ws://"}${l}:${o}`,console.info("legado_server_config:"),console.table({legado_http_origin:A,legado_webSocket_origin:Y})};ve(C.defaults.baseURL);const lt=async e=>{const{data:o={}}=await C.get("/getReadConfig",{baseURL:e,timeout:3e3});try{if("isSuccess"in o)return;throw new Error("ReadConfig后端返回格式错误")}catch{throw new Error("ReadConfig后端返回格式错误")}},st=/source/i.test(location.href),it=e=>{throw st&&E({message:"后端错误,检查网络或者阅读app",type:"error"}),e};C.interceptors.response.use(e=>e,it);const at=()=>C.get("/getReadConfig"),ut=e=>C.post("/saveReadConfig",e),ct=e=>C.post("/saveBookProgress",e),dt=e=>{e&&navigator.sendBeacon(`${A}/saveBookProgress`,JSON.stringify(e))},pt=()=>C.get("/getBookshelf"),gt=e=>C.get("/getChapterList?url="+encodeURIComponent(e)),mt=(e,o)=>C.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+o),St=(e,o,t)=>{const l=`${Y}/searchBook`,n=new WebSocket(l);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:s})=>o(s),n.onclose=()=>{t()}},ht=e=>C.post("/saveBook",e),ft=e=>C.post("/deleteBook",e),Q=/bookSource/i.test(location.href),yt=()=>Q?C.get("/getBookSources"):C.get("/getRssSources"),_t=e=>Q?C.post("/saveBookSource",e):C.post("/saveRssSource",e),bt=e=>Q?C.post("/saveBookSources",e):C.post("/saveRssSources",e),kt=e=>Q?C.post("/deleteBookSources",e):C.post("/deleteRssSources",e),vt=(e,o,t,l)=>{const n=`${Y}/${Q?"bookSource":"rssSource"}Debug`,s=new WebSocket(n);s.onopen=()=>{s.send(JSON.stringify({tag:e,key:o}))},s.onmessage=({data:p})=>t(p),s.onclose=()=>{E({message:"调试已关闭!",type:"info"}),l()}},wt=e=>e.startsWith(A)?e:A+"/cover?path="+encodeURIComponent(e),Ut=(e,o)=>e.startsWith(A)?e:A+"/image?path="+encodeURIComponent(e)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+o,q={getReadConfig:at,saveReadConfig:ut,saveBookProgress:ct,saveBookProgressWithBeacon:dt,getBookShelf:pt,getChapterList:gt,getBookContent:mt,search:St,saveBook:ht,deleteBook:ft,getSources:yt,saveSources:bt,saveSource:_t,deleteSource:kt,debug:vt,getProxyCoverUrl:wt,getProxyImageUrl:Ut,testLeagdoHttpUrlConnection:lt,setLeagdoHttpUrl:ve,legado_http_origin:A},z=e=>e==null||e.length===0||/^\s+$/.test(e),ae=e=>"bookSourceName"in e,Ct=e=>ae(e)?!z(e.bookSourceName)&&!z(e.bookSourceUrl)&&!z(e.bookSourceType):!z(e.sourceName)&&!z(e.sourceUrl),te=e=>ae(e)?e.bookSourceUrl:e.sourceUrl,xt=(e,o)=>{var t,l,n,s,p,g,_,b;return ae(e)?(((t=e.bookSourceName)==null?void 0:t.includes(o))||((l=e.bookSourceUrl)==null?void 0:l.includes(o))||((n=e.bookSourceGroup)==null?void 0:n.includes(o))||((s=e.bookSourceComment)==null?void 0:s.includes(o)))??!1:(((p=e.sourceName)==null?void 0:p.includes(o))||((g=e.sourceUrl)==null?void 0:g.includes(o))||((_=e.sourceGroup)==null?void 0:_.includes(o))||((b=e.sourceComment)==null?void 0:b.includes(o)))??!1},re=e=>{const o=new Map;return e.forEach(t=>o.set(te(t),t)),o},Et={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},Bt={},W=/bookSource/i.test(location.href),pe=W?Et:Bt,K=Ve("source",{state:()=>({bookSources:[],rssSources:[],savedSources:[],currentSource:pe,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>W?e.bookSources:e.rssSources,sourcesMap:e=>re(e.sources),savedSourcesMap:e=>re(e.savedSources),currentSourceUrl:e=>W?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>W?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){W?this.bookSources=e:this.rssSources=e},setPushReturnSources(e){this.savedSources=e},deleteSources(e){let o=W?this.bookSources:this.rssSources;e.forEach(t=>{let l=o.indexOf(t);l>-1&&o.splice(l,1)})},saveCurrentSource(){let e=this.currentSource,o=this.sourcesMap;o.set(te(e),JSON.parse(JSON.stringify(e))),this.saveSources(Array.from(o.values()))},changeCurrentSource(e){this.currentSource=JSON.parse(JSON.stringify(e))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){this.editTabSource=JSON.parse(JSON.stringify(e))},editHistory(e){let o;if(localStorage.getItem("history"))o=JSON.parse(localStorage.getItem("history")),o.new.push(e),o.new.length>50&&o.new.shift(),o.old.length>50&&o.old.shift(),localStorage.setItem("history",JSON.stringify(o));else{const t={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(t))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=pe},clearAllSource(){this.bookSources=[],this.rssSources=[],this.savedSources=[]}}}),It={__name:"SourceItem",props:["source"],setup(e){const o=e,t=K(),{savedSourcesMap:l,currentSourceUrl:n}=Z(t),s=G(()=>te(o.source)),p=_=>{t.changeCurrentSource(_)},g=G(()=>{const _=l.value;return _.size==0?!1:!_.has(s.value)});return(_,b)=>{const x=ie,B=Ne;return c(),U(B,{size:"large",border:"",label:r(s),class:he({error:r(g),edit:r(s)==r(n)})},{default:u(()=>[y(X(e.source.bookSourceName||e.source.sourceName)+" ",1),m(x,{text:"",icon:r(Se),onClick:b[0]||(b[0]=w=>p(e.source))},null,8,["icon"])]),_:1},8,["label","class"])}}},Vt=D(It,[["__scopeId","data-v-830cee5a"]]),Nt={class:"tool"},Rt={__name:"SourceList",setup(e){const o=K(),t=J([]),l=J(""),{sources:n,sourcesMap:s}=Z(o),p=G(()=>{const i=l.value;return i===""?n.value:n.value.filter(d=>xt(d,i))}),g=G(()=>{const i=t.value;if(i.length==0)return[];const d=l.value==""?s.value:re(p.value);return i.reduce((v,k)=>{const V=d.get(k);return V&&v.push(V),v},[])}),_=()=>{const i=g.value;q.deleteSource(i).then(({data:d})=>{if(!d.isSuccess)return E.error(d.errorMsg);o.deleteSources(i);const v=$e(t.value);i.forEach(k=>{const V=v.indexOf(te(k));V>-1&&v.splice(V,1)}),t.value=v})},b=()=>{o.clearAllSource(),t.value=[]},x=()=>{const i=document.createElement("input");i.type="file",i.accept=".json,.txt",i.addEventListener("change",d=>{const v=d.target.files[0];var k=new FileReader;k.readAsText(v),k.onload=()=>{try{const V=JSON.parse(k.result);o.saveSources(V)}catch{E({message:"上传的源格式错误",type:"error"})}}}),i.click()},B=/bookSource/.test(window.location.href),w=()=>{const i=document.createElement("a");let d=t.value.length===0?p.value:g.value,v=B?"BookSource":"RssSource";i.download=`${v}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let k=new Blob([JSON.stringify(d,null,4)],{type:"application/json"});i.href=window.URL.createObjectURL(k),i.click()};return(i,d)=>{const v=ee,k=ie,V=Oe;return c(),I(O,null,[m(v,{modelValue:r(l),"onUpdate:modelValue":d[0]||(d[0]=N=>H(l)?l.value=N:null),class:"search","prefix-icon":r(fe),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),h("div",Nt,[m(k,{onClick:x,icon:r(Re)},{default:u(()=>d[2]||(d[2]=[y("打开")])),_:1},8,["icon"]),m(k,{disabled:r(p).length===0,onClick:w,icon:r(Te)},{default:u(()=>d[3]||(d[3]=[y(" 导出")])),_:1},8,["disabled","icon"]),m(k,{type:"danger",icon:r(ue),onClick:_,disabled:r(g).length===0},{default:u(()=>d[4]||(d[4]=[y("删除")])),_:1},8,["icon","disabled"]),m(k,{type:"danger",icon:r(ue),onClick:b,disabled:r(n).length===0},{default:u(()=>d[5]||(d[5]=[y("清空")])),_:1},8,["icon","disabled"])]),m(V,{id:"source-list",modelValue:r(t),"onUpdate:modelValue":d[1]||(d[1]=N=>H(t)?t.value=N:null)},{default:u(()=>[m(r(Le),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":N=>N.bookSourceUrl||N.sourceUrl,"data-sources":r(p),"data-component":Vt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},Tt=D(Rt,[["__scopeId","data-v-cd1572ca"]]),Lt={__name:"SourceDebug",setup(e){const o=K(),t=J(""),l=J("");ye(()=>o.isDebuging,()=>{o.isDebuging&&s()});const n=g=>{let _=document.querySelector("#debug-text");_.scrollTop=_.scrollHeight,t.value+=g+`
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BookShelf-BYu7_7Ty.js","./vendor-DyjdUqFg.js","./vendor-DaRzvvaT.css","./el-message-box-Cdo1N8K_.js","./el-message-box-Bdqw_xyS.css","./BookShelf-2-n0JA9B.css","./BookChapter-B1YmoZ9j.js","./BookChapter-rTVd3xtP.css"])))=>i.map(i=>d[i]);
+import{r as Ee,o as c,c as U,a as le,b as se,d as I,e as m,w as u,f as y,u as r,l as $,g as h,F as O,E as Be,h as me,i as Ie,j as E,k as Ve,s as Z,m as G,t as X,n as Se,p as he,q as ie,v as Ne,x as J,y as H,z as fe,A as Re,B as Te,C as ue,V as Le,D as $e,G as ee,H as Oe,I as ye,J as Je,K as T,L as De,M as Pe,N as j,O as _e,P as be,Q as M,R as Ae,S as je,T as He,U as Ke,W as Me,X as We,Y as qe,Z as Fe,_ as ze,$ as Ge}from"./vendor-DyjdUqFg.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const p of s.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();const D=(e,o)=>{const t=e.__vccOpts||e;for(const[l,n]of o)t[l]=n;return t},Qe={};function Xe(e,o){const t=Ee("router-view");return c(),U(t)}const Ye=D(Qe,[["render",Xe]]),Ze="modulepreload",et=function(e,o){return new URL(e,o).href},ce={},de=function(o,t,l){let n=Promise.resolve();if(t&&t.length>0){const p=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),_=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));n=Promise.allSettled(t.map(b=>{if(b=et(b,l),b in ce)return;ce[b]=!0;const x=b.endsWith(".css"),B=x?'[rel="stylesheet"]':"";if(!!l)for(let d=p.length-1;d>=0;d--){const v=p[d];if(v.href===b&&(!x||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${b}"]${B}`))return;const i=document.createElement("link");if(i.rel=x?"stylesheet":Ze,x||(i.as="script"),i.crossOrigin="",i.href=b,_&&i.setAttribute("nonce",_),document.head.appendChild(i),x)return new Promise((d,v)=>{i.addEventListener("load",d),i.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${b}`)))})}))}function s(p){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=p,window.dispatchEvent(g),!g.defaultPrevented)throw p}return n.then(p=>{for(const g of p||[])g.status==="rejected"&&s(g.reason);return o().catch(s)})},ke=[{path:"/",name:"shelf",component:()=>de(()=>import("./BookShelf-BYu7_7Ty.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/chapter",name:"chapter",component:()=>de(()=>import("./BookChapter-B1YmoZ9j.js"),__vite__mapDeps([6,1,2,3,4,7]),import.meta.url)}];le({history:se(),routes:ke});const tt={style:{"margin-top":"20px"}},ot={__name:"SourceHelp",setup(e){return(o,t)=>{const l=Be,n=me;return c(),I(O,null,[m(l,{icon:r($),href:"/help/#appHelp",target:"_blank"},{default:u(()=>t[0]||(t[0]=[y("APP帮助文档")])),_:1},8,["icon"]),t[19]||(t[19]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#ruleHelp",target:"_blank"},{default:u(()=>t[1]||(t[1]=[y("书源制作教程")])),_:1},8,["icon"]),t[20]||(t[20]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#jsHelp",target:"_blank"},{default:u(()=>t[2]||(t[2]=[y("js变量和函数")])),_:1},8,["icon"]),t[21]||(t[21]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#xpathHelp",target:"_blank"},{default:u(()=>t[3]||(t[3]=[y("xpath语法教程")])),_:1},8,["icon"]),t[22]||(t[22]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#regexHelp",target:"_blank"},{default:u(()=>t[4]||(t[4]=[y("正则表达式教程")])),_:1},8,["icon"]),t[23]||(t[23]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#txtTocRuleHelp",target:"_blank"},{default:u(()=>t[5]||(t[5]=[y("txt目录正则说明")])),_:1},8,["icon"]),t[24]||(t[24]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#debugHelp",target:"_blank"},{default:u(()=>t[6]||(t[6]=[y("书源调试说明")])),_:1},8,["icon"]),t[25]||(t[25]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#httpTTSHelp",target:"_blank"},{default:u(()=>t[7]||(t[7]=[y("在线朗读规则")])),_:1},8,["icon"]),t[26]||(t[26]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#webDavBookHelp",target:"_blank"},{default:u(()=>t[8]||(t[8]=[y(" WebDav书籍简明使用教程")])),_:1},8,["icon"]),t[27]||(t[27]=h("br",null,null,-1)),m(l,{icon:r($),href:"/help/#webDavHelp",target:"_blank"},{default:u(()=>t[9]||(t[9]=[y(" WebDav备份教程")])),_:1},8,["icon"]),t[28]||(t[28]=h("br",null,null,-1)),m(l,{icon:r($),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>t[10]||(t[10]=[y("正则表达式在线验证工具")])),_:1},8,["icon"]),t[29]||(t[29]=h("br",null,null,-1)),h("div",tt,[h("span",null,[m(n,null,{default:u(()=>t[11]||(t[11]=[h("code",null,"^$()[]{}.?+*|",-1),y(" 这些是Java正则特殊符号,匹配需转义")])),_:1})]),t[15]||(t[15]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[12]||(t[12]=[h("code",null,"(?s)",-1),y(" 前缀表示跨行解析")])),_:1})]),t[16]||(t[16]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[13]||(t[13]=[h("code",null,"(?m)",-1),y(" 前缀表示逐行匹配")])),_:1})]),t[17]||(t[17]=h("br",null,null,-1)),h("span",null,[m(n,null,{default:u(()=>t[14]||(t[14]=[h("code",null,"(?i)",-1),y(" 前缀表示忽略大小写")])),_:1})]),t[18]||(t[18]=h("br",null,null,-1))])],64)}}},nt=D(ot,[["__scopeId","data-v-35b7188a"]]),rt=1e3,C=Ie.create({baseURL:localStorage.getItem("remoteIp")||location.origin,timeout:120*rt});let A,Y;const ve=e=>{let o;const{protocol:t,hostname:l,port:n}=new URL(e);if(!t.startsWith("http"))throw new Error("unexpect protocol:"+e);C.defaults.baseURL=e,A=e,n!==""?o=Number(n)+1:o=t.startsWith("https:")?"444":"81",Y=`${t.startsWith("https:")?"wss://":"ws://"}${l}:${o}`,console.info("legado_server_config:"),console.table({legado_http_origin:A,legado_webSocket_origin:Y})};ve(C.defaults.baseURL);const lt=async e=>{const{data:o={}}=await C.get("/getReadConfig",{baseURL:e,timeout:3e3});try{if("isSuccess"in o)return;throw new Error("ReadConfig后端返回格式错误")}catch{throw new Error("ReadConfig后端返回格式错误")}},st=/source/i.test(location.href),it=e=>{throw st&&E({message:"后端错误,检查网络或者阅读app",type:"error"}),e};C.interceptors.response.use(e=>e,it);const at=()=>C.get("/getReadConfig"),ut=e=>C.post("/saveReadConfig",e),ct=e=>C.post("/saveBookProgress",e),dt=e=>{e&&navigator.sendBeacon(`${A}/saveBookProgress`,JSON.stringify(e))},pt=()=>C.get("/getBookshelf"),gt=e=>C.get("/getChapterList?url="+encodeURIComponent(e)),mt=(e,o)=>C.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+o),St=(e,o,t)=>{const l=`${Y}/searchBook`,n=new WebSocket(l);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:s})=>o(s),n.onclose=()=>{t()}},ht=e=>C.post("/saveBook",e),ft=e=>C.post("/deleteBook",e),Q=/bookSource/i.test(location.href),yt=()=>Q?C.get("/getBookSources"):C.get("/getRssSources"),_t=e=>Q?C.post("/saveBookSource",e):C.post("/saveRssSource",e),bt=e=>Q?C.post("/saveBookSources",e):C.post("/saveRssSources",e),kt=e=>Q?C.post("/deleteBookSources",e):C.post("/deleteRssSources",e),vt=(e,o,t,l)=>{const n=`${Y}/${Q?"bookSource":"rssSource"}Debug`,s=new WebSocket(n);s.onopen=()=>{s.send(JSON.stringify({tag:e,key:o}))},s.onmessage=({data:p})=>t(p),s.onclose=()=>{E({message:"调试已关闭!",type:"info"}),l()}},wt=e=>e.startsWith(A)?e:A+"/cover?path="+encodeURIComponent(e),Ut=(e,o)=>e.startsWith(A)?e:A+"/image?path="+encodeURIComponent(e)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+o,q={getReadConfig:at,saveReadConfig:ut,saveBookProgress:ct,saveBookProgressWithBeacon:dt,getBookShelf:pt,getChapterList:gt,getBookContent:mt,search:St,saveBook:ht,deleteBook:ft,getSources:yt,saveSources:bt,saveSource:_t,deleteSource:kt,debug:vt,getProxyCoverUrl:wt,getProxyImageUrl:Ut,testLeagdoHttpUrlConnection:lt,setLeagdoHttpUrl:ve,legado_http_origin:A},z=e=>e==null||e.length===0||/^\s+$/.test(e),ae=e=>"bookSourceName"in e,Ct=e=>ae(e)?!z(e.bookSourceName)&&!z(e.bookSourceUrl)&&!z(e.bookSourceType):!z(e.sourceName)&&!z(e.sourceUrl),te=e=>ae(e)?e.bookSourceUrl:e.sourceUrl,xt=(e,o)=>{var t,l,n,s,p,g,_,b;return ae(e)?(((t=e.bookSourceName)==null?void 0:t.includes(o))||((l=e.bookSourceUrl)==null?void 0:l.includes(o))||((n=e.bookSourceGroup)==null?void 0:n.includes(o))||((s=e.bookSourceComment)==null?void 0:s.includes(o)))??!1:(((p=e.sourceName)==null?void 0:p.includes(o))||((g=e.sourceUrl)==null?void 0:g.includes(o))||((_=e.sourceGroup)==null?void 0:_.includes(o))||((b=e.sourceComment)==null?void 0:b.includes(o)))??!1},re=e=>{const o=new Map;return e.forEach(t=>o.set(te(t),t)),o},Et={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},Bt={},W=/bookSource/i.test(location.href),pe=W?Et:Bt,K=Ve("source",{state:()=>({bookSources:[],rssSources:[],savedSources:[],currentSource:pe,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>W?e.bookSources:e.rssSources,sourcesMap:e=>re(e.sources),savedSourcesMap:e=>re(e.savedSources),currentSourceUrl:e=>W?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>W?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){W?this.bookSources=e:this.rssSources=e},setPushReturnSources(e){this.savedSources=e},deleteSources(e){let o=W?this.bookSources:this.rssSources;e.forEach(t=>{let l=o.indexOf(t);l>-1&&o.splice(l,1)})},saveCurrentSource(){let e=this.currentSource,o=this.sourcesMap;o.set(te(e),JSON.parse(JSON.stringify(e))),this.saveSources(Array.from(o.values()))},changeCurrentSource(e){this.currentSource=JSON.parse(JSON.stringify(e))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){this.editTabSource=JSON.parse(JSON.stringify(e))},editHistory(e){let o;if(localStorage.getItem("history"))o=JSON.parse(localStorage.getItem("history")),o.new.push(e),o.new.length>50&&o.new.shift(),o.old.length>50&&o.old.shift(),localStorage.setItem("history",JSON.stringify(o));else{const t={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(t))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=pe},clearAllSource(){this.bookSources=[],this.rssSources=[],this.savedSources=[]}}}),It={__name:"SourceItem",props:["source"],setup(e){const o=e,t=K(),{savedSourcesMap:l,currentSourceUrl:n}=Z(t),s=G(()=>te(o.source)),p=_=>{t.changeCurrentSource(_)},g=G(()=>{const _=l.value;return _.size==0?!1:!_.has(s.value)});return(_,b)=>{const x=ie,B=Ne;return c(),U(B,{size:"large",border:"",label:r(s),class:he({error:r(g),edit:r(s)==r(n)})},{default:u(()=>[y(X(e.source.bookSourceName||e.source.sourceName)+" ",1),m(x,{text:"",icon:r(Se),onClick:b[0]||(b[0]=w=>p(e.source))},null,8,["icon"])]),_:1},8,["label","class"])}}},Vt=D(It,[["__scopeId","data-v-830cee5a"]]),Nt={class:"tool"},Rt={__name:"SourceList",setup(e){const o=K(),t=J([]),l=J(""),{sources:n,sourcesMap:s}=Z(o),p=G(()=>{const i=l.value;return i===""?n.value:n.value.filter(d=>xt(d,i))}),g=G(()=>{const i=t.value;if(i.length==0)return[];const d=l.value==""?s.value:re(p.value);return i.reduce((v,k)=>{const V=d.get(k);return V&&v.push(V),v},[])}),_=()=>{const i=g.value;q.deleteSource(i).then(({data:d})=>{if(!d.isSuccess)return E.error(d.errorMsg);o.deleteSources(i);const v=$e(t.value);i.forEach(k=>{const V=v.indexOf(te(k));V>-1&&v.splice(V,1)}),t.value=v})},b=()=>{o.clearAllSource(),t.value=[]},x=()=>{const i=document.createElement("input");i.type="file",i.accept=".json,.txt",i.addEventListener("change",d=>{const v=d.target.files[0];var k=new FileReader;k.readAsText(v),k.onload=()=>{try{const V=JSON.parse(k.result);o.saveSources(V)}catch{E({message:"上传的源格式错误",type:"error"})}}}),i.click()},B=/bookSource/.test(window.location.href),w=()=>{const i=document.createElement("a");let d=t.value.length===0?p.value:g.value,v=B?"BookSource":"RssSource";i.download=`${v}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let k=new Blob([JSON.stringify(d,null,4)],{type:"application/json"});i.href=window.URL.createObjectURL(k),i.click()};return(i,d)=>{const v=ee,k=ie,V=Oe;return c(),I(O,null,[m(v,{modelValue:r(l),"onUpdate:modelValue":d[0]||(d[0]=N=>H(l)?l.value=N:null),class:"search","prefix-icon":r(fe),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),h("div",Nt,[m(k,{onClick:x,icon:r(Re)},{default:u(()=>d[2]||(d[2]=[y("打开")])),_:1},8,["icon"]),m(k,{disabled:r(p).length===0,onClick:w,icon:r(Te)},{default:u(()=>d[3]||(d[3]=[y(" 导出")])),_:1},8,["disabled","icon"]),m(k,{type:"danger",icon:r(ue),onClick:_,disabled:r(g).length===0},{default:u(()=>d[4]||(d[4]=[y("删除")])),_:1},8,["icon","disabled"]),m(k,{type:"danger",icon:r(ue),onClick:b,disabled:r(n).length===0},{default:u(()=>d[5]||(d[5]=[y("清空")])),_:1},8,["icon","disabled"])]),m(V,{id:"source-list",modelValue:r(t),"onUpdate:modelValue":d[1]||(d[1]=N=>H(t)?t.value=N:null)},{default:u(()=>[m(r(Le),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":N=>N.bookSourceUrl||N.sourceUrl,"data-sources":r(p),"data-component":Vt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},Tt=D(Rt,[["__scopeId","data-v-cd1572ca"]]),Lt={__name:"SourceDebug",setup(e){const o=K(),t=J(""),l=J("");ye(()=>o.isDebuging,()=>{o.isDebuging&&s()});const n=g=>{let _=document.querySelector("#debug-text");_.scrollTop=_.scrollHeight,t.value+=g+`
`},s=async()=>{t.value="";try{await q.saveSource(o.currentSource)}catch(g){throw o.debugFinish(),g}q.debug(o.currentSourceUrl,l.value||o.searchKey,n,o.debugFinish)},p=G(()=>/bookSource/.test(window.location.href));return(g,_)=>{const b=ee;return c(),I(O,null,[r(p)?(c(),U(b,{key:0,id:"debug-key",modelValue:r(l),"onUpdate:modelValue":_[0]||(_[0]=x=>H(l)?l.value=x:null),placeholder:"搜索书名、作者","prefix-icon":r(fe),style:{"padding-bottom":"4px"},onKeydown:Je(s,["enter"])},null,8,["modelValue","prefix-icon"])):T("",!0),m(b,{id:"debug-text",modelValue:r(t),"onUpdate:modelValue":_[1]||(_[1]=x=>H(t)?t.value=x:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},$t=D(Lt,[["__scopeId","data-v-97ed449e"]]),Ot=De(),Jt={__name:"SourceJson",setup(e){const o=K(),t=J(""),l=async n=>{try{o.changeEditTabSource(JSON.parse(n))}catch{E({message:"粘贴的源格式错误",type:"error"})}};return Pe(async()=>{let n=o.editTabSource;Object.keys(n).length>0?t.value=JSON.stringify(n,null,4):t.value=""}),(n,s)=>{const p=ee;return c(),U(p,{id:"source-json",modelValue:r(t),"onUpdate:modelValue":s[0]||(s[0]=g=>H(t)?t.value=g:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:l,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Dt=D(Jt,[["__scopeId","data-v-7e91a802"]]),Pt={__name:"SourceTabTools",setup(e){const o=K(),{currentTab:t}=Z(o),l=J([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,s)=>{const p=Dt,g=$t,_=Tt,b=nt,x=_e,B=be;return c(),U(B,{modelValue:r(t),"onUpdate:modelValue":s[0]||(s[0]=w=>H(t)?t.value=w:null)},{default:u(()=>[(c(!0),I(O,null,j(r(l),(w,i)=>(c(),U(x,{key:w[0],name:w[0],label:w[1]},{default:u(()=>[i==0?(c(),U(p,{key:0})):T("",!0),i==1?(c(),U(g,{key:1})):T("",!0),i==2?(c(),U(_,{key:2})):T("",!0),i==3?(c(),U(b,{key:3})):T("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},At=D(Pt,[["__scopeId","data-v-dcce2457"]]),jt={class:"menu flex-column-center"},Ht={class:"hotkeys-header flex-space-between"},Kt=["id"],Mt={key:0},Wt={class:"hotkeys-settings flex-column-center"},qt={class:"title"},Ft={class:"hotkeys-item__content"},zt={key:0},Gt={key:0},Qt={__name:"ToolBar",setup(e){const o=K(),t=()=>{const f=E({message:"加载中……",showClose:!0,duration:0});q.getSources().then(({data:a})=>{a.isSuccess?(o.changeTabName("editList"),o.saveSources(a.data),E({message:`成功拉取${a.data.length}条源`,type:"success"})):E({message:a.errorMsg??"后端错误",type:"error"})}).finally(()=>f.close())},l=()=>{let f=o.sources;if(o.changeTabName("editList"),f.length===0)return E({message:"空空如也",type:"info"});E({message:"正在推送中",type:"info"}),q.saveSources(f).then(({data:a})=>{if(a.isSuccess){let S=a.data;if(Array.isArray(S)){let P="";f.length>S.length&&(P=`
推送失败的源将用红色字体标注!`,o.setPushReturnSources(S)),E({message:`批量推送源到「阅读3.0APP」
共计: ${f.length} 条
diff --git a/app/src/main/assets/web/vue/assets/vendor-fl4hlNse.js b/app/src/main/assets/web/vue/assets/vendor-DyjdUqFg.js
similarity index 53%
rename from app/src/main/assets/web/vue/assets/vendor-fl4hlNse.js
rename to app/src/main/assets/web/vue/assets/vendor-DyjdUqFg.js
index 61e6b63fb..f1d78343d 100644
--- a/app/src/main/assets/web/vue/assets/vendor-fl4hlNse.js
+++ b/app/src/main/assets/web/vue/assets/vendor-DyjdUqFg.js
@@ -2,23 +2,23 @@
* @vue/shared v3.5.10
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**//*! #__NO_SIDE_EFFECTS__ */function Ru(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ye={},Ao=[],ht=()=>{},Ay=()=>!1,ma=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pu=e=>e.startsWith("onUpdate:"),dt=Object.assign,Iu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xy=Object.prototype.hasOwnProperty,je=(e,t)=>xy.call(e,t),he=Array.isArray,xo=e=>qs(e)==="[object Map]",ga=e=>qs(e)==="[object Set]",Wc=e=>qs(e)==="[object Date]",ve=e=>typeof e=="function",Te=e=>typeof e=="string",Fn=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",qi=e=>(Ae(e)||ve(e))&&ve(e.then)&&ve(e.catch),sh=Object.prototype.toString,qs=e=>sh.call(e),Ii=e=>qs(e).slice(8,-1),ih=e=>qs(e)==="[object Object]",$u=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ls=Ru(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ya=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ry=/-(\w)/g,Qt=ya(e=>e.replace(Ry,(t,n)=>n?n.toUpperCase():"")),Py=/\B([A-Z])/g,nr=ya(e=>e.replace(Py,"-$1").toLowerCase()),Ws=ya(e=>e.charAt(0).toUpperCase()+e.slice(1)),$i=ya(e=>e?`on${Ws(e)}`:""),xr=(e,t)=>!Object.is(e,t),ki=(e,...t)=>{for(let n=0;nko(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>ko(u,l))||o.push(l))}return[n,r,o]}function $8(){return Se(Ia)}const s1='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',i1=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,td=e=>Array.from(e.querySelectorAll(s1)).filter(t=>a1(t)&&i1(t)),a1=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Un=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const s=e==null?void 0:e(o);if(n===!1||!s)return t==null?void 0:t(o)};var l1=!1,u1=Object.defineProperty,c1=Object.defineProperties,f1=Object.getOwnPropertyDescriptors,nd=Object.getOwnPropertySymbols,d1=Object.prototype.hasOwnProperty,p1=Object.prototype.propertyIsEnumerable,rd=(e,t,n)=>t in e?u1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h1=(e,t)=>{for(var n in t||(t={}))d1.call(t,n)&&rd(e,n,t[n]);if(nd)for(var n of nd(t))p1.call(t,n)&&rd(e,n,t[n]);return e},v1=(e,t)=>c1(e,f1(t));function od(e,t){var n;const r=Ar();return ec(()=>{r.value=e()},v1(h1({},t),{flush:(n=void 0)!=null?n:"sync"})),Gs(r)}var sd;const it=typeof window<"u",m1=e=>typeof e=="string",oa=()=>{},Zl=it&&((sd=window==null?void 0:window.navigator)==null?void 0:sd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function $s(e){return typeof e=="function"?e():m(e)}function g1(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function y1(e,t={}){let n,r,o=oa;const s=a=>{clearTimeout(a),o(),o=oa};return a=>{const l=$s(e),u=$s(t.maxWait);return n&&s(n),l<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,c(a())},l)})}}function b1(e){return e}function Xs(e){return ku()?(Lu(e),!0):!1}function w1(e,t=200,n={}){return g1(y1(t,n),e)}function S1(e,t=200,n={}){const r=B(e.value),o=w1(()=>{r.value=e.value},t,n);return me(e,()=>o()),r}function _1(e,t=!0){lt()?Ue(e):t?e():Fe(e)}function Ql(e,t,n={}){const{immediate:r=!0}=n,o=B(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...u){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...u)},$s(t))}return r&&(o.value=!0,it&&l()),Xs(a),{isPending:Gs(o),start:l,stop:a}}function Yn(e){var t;const n=$s(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Zs=it?window:void 0,E1=it?window.document:void 0;function Xt(...e){let t,n,r,o;if(m1(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Zs):[t,n,r,o]=e,!t)return oa;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(c=>c()),s.length=0},a=(c,f,d,v)=>(c.addEventListener(f,d,v),()=>c.removeEventListener(f,d,v)),l=me(()=>[Yn(t),$s(o)],([c,f])=>{i(),c&&s.push(...n.flatMap(d=>r.map(v=>a(c,d,v,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return Xs(u),u}let id=!1;function C1(e,t,n={}){const{window:r=Zs,ignore:o=[],capture:s=!0,detectIframe:i=!1}=n;if(!r)return;Zl&&!id&&(id=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",oa)));let a=!0;const l=d=>o.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Yn(v);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Xt(r,"click",d=>{const v=Yn(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(a=!l(d)),!a){a=!0;return}t(d)}},{passive:!0,capture:s}),Xt(r,"pointerdown",d=>{const v=Yn(e);v&&(a=!d.composedPath().includes(v)&&!l(d))},{passive:!0}),i&&Xt(r,"blur",d=>{var v;const p=Yn(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function Hv(e,t=!1){const n=B(),r=()=>n.value=!!e();return r(),_1(r,t),n}const ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ld="__vueuse_ssr_handlers__";ad[ld]=ad[ld]||{};function T1({document:e=E1}={}){if(!e)return B("visible");const t=B(e.visibilityState);return Xt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ud=Object.getOwnPropertySymbols,O1=Object.prototype.hasOwnProperty,A1=Object.prototype.propertyIsEnumerable,x1=(e,t)=>{var n={};for(var r in e)O1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ud)for(var r of ud(e))t.indexOf(r)<0&&A1.call(e,r)&&(n[r]=e[r]);return n};function Ft(e,t,n={}){const r=n,{window:o=Zs}=r,s=x1(r,["window"]);let i;const a=Hv(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},u=me(()=>Yn(e),f=>{l(),a.value&&o&&f&&(i=new ResizeObserver(t),i.observe(f,s))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Xs(c),{isSupported:a,stop:c}}var cd=Object.getOwnPropertySymbols,R1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,I1=(e,t)=>{var n={};for(var r in e)R1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cd)for(var r of cd(e))t.indexOf(r)<0&&P1.call(e,r)&&(n[r]=e[r]);return n};function $1(e,t,n={}){const r=n,{window:o=Zs}=r,s=I1(r,["window"]);let i;const a=Hv(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},u=me(()=>Yn(e),f=>{l(),a.value&&o&&f&&(i=new MutationObserver(t),i.observe(f,s))},{immediate:!0}),c=()=>{l(),u()};return Xs(c),{isSupported:a,stop:c}}var fd;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(fd||(fd={}));var k1=Object.defineProperty,dd=Object.getOwnPropertySymbols,L1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,pd=(e,t,n)=>t in e?k1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t)=>{for(var n in t||(t={}))L1.call(t,n)&&pd(e,n,t[n]);if(dd)for(var n of dd(t))M1.call(t,n)&&pd(e,n,t[n]);return e};const F1={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};N1({linear:b1},F1);function B1({window:e=Zs}={}){if(!e)return B(!1);const t=B(e.document.hasFocus());return Xt(e,"blur",()=>{t.value=!1}),Xt(e,"focus",()=>{t.value=!0}),t}const D1=()=>it&&/firefox/i.test(window.navigator.userAgent);var Kv=typeof global=="object"&&global&&global.Object===Object&&global,V1=typeof self=="object"&&self&&self.Object===Object&&self,Cn=Kv||V1||Function("return this")(),an=Cn.Symbol,Uv=Object.prototype,j1=Uv.hasOwnProperty,z1=Uv.toString,ns=an?an.toStringTag:void 0;function H1(e){var t=j1.call(e,ns),n=e[ns];try{e[ns]=void 0;var r=!0}catch{}var o=z1.call(e);return r&&(t?e[ns]=n:delete e[ns]),o}var K1=Object.prototype,U1=K1.toString;function q1(e){return U1.call(e)}var W1="[object Null]",G1="[object Undefined]",hd=an?an.toStringTag:void 0;function Ho(e){return e==null?e===void 0?G1:W1:hd&&hd in Object(e)?H1(e):q1(e)}function Rr(e){return e!=null&&typeof e=="object"}var Y1="[object Symbol]";function $a(e){return typeof e=="symbol"||Rr(e)&&Ho(e)==Y1}function J1(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++nko(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>ko(u,l))||o.push(l))}return[n,r,o]}function L8(){return Se($a)}const i1='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',a1=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,nd=e=>Array.from(e.querySelectorAll(i1)).filter(t=>l1(t)&&a1(t)),l1=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Un=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const s=e==null?void 0:e(o);if(n===!1||!s)return t==null?void 0:t(o)};var u1=!1,c1=Object.defineProperty,f1=Object.defineProperties,d1=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,p1=Object.prototype.hasOwnProperty,h1=Object.prototype.propertyIsEnumerable,od=(e,t,n)=>t in e?c1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v1=(e,t)=>{for(var n in t||(t={}))p1.call(t,n)&&od(e,n,t[n]);if(rd)for(var n of rd(t))h1.call(t,n)&&od(e,n,t[n]);return e},m1=(e,t)=>f1(e,d1(t));function sd(e,t){var n;const r=Ar();return tc(()=>{r.value=e()},m1(v1({},t),{flush:(n=void 0)!=null?n:"sync"})),Gs(r)}var id;const it=typeof window<"u",g1=e=>typeof e=="string",oa=()=>{},Ql=it&&((id=window==null?void 0:window.navigator)==null?void 0:id.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function $s(e){return typeof e=="function"?e():m(e)}function y1(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function b1(e,t={}){let n,r,o=oa;const s=a=>{clearTimeout(a),o(),o=oa};return a=>{const l=$s(e),u=$s(t.maxWait);return n&&s(n),l<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,c(a())},l)})}}function w1(e){return e}function Xs(e){return Lu()?(Mu(e),!0):!1}function S1(e,t=200,n={}){return y1(b1(t,n),e)}function _1(e,t=200,n={}){const r=B(e.value),o=S1(()=>{r.value=e.value},t,n);return me(e,()=>o()),r}function E1(e,t=!0){lt()?Ue(e):t?e():Fe(e)}function eu(e,t,n={}){const{immediate:r=!0}=n,o=B(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...u){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...u)},$s(t))}return r&&(o.value=!0,it&&l()),Xs(a),{isPending:Gs(o),start:l,stop:a}}function Yn(e){var t;const n=$s(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Zs=it?window:void 0,C1=it?window.document:void 0;function Xt(...e){let t,n,r,o;if(g1(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Zs):[t,n,r,o]=e,!t)return oa;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(c=>c()),s.length=0},a=(c,f,d,v)=>(c.addEventListener(f,d,v),()=>c.removeEventListener(f,d,v)),l=me(()=>[Yn(t),$s(o)],([c,f])=>{i(),c&&s.push(...n.flatMap(d=>r.map(v=>a(c,d,v,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return Xs(u),u}let ad=!1;function T1(e,t,n={}){const{window:r=Zs,ignore:o=[],capture:s=!0,detectIframe:i=!1}=n;if(!r)return;Ql&&!ad&&(ad=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",oa)));let a=!0;const l=d=>o.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Yn(v);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Xt(r,"click",d=>{const v=Yn(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(a=!l(d)),!a){a=!0;return}t(d)}},{passive:!0,capture:s}),Xt(r,"pointerdown",d=>{const v=Yn(e);v&&(a=!d.composedPath().includes(v)&&!l(d))},{passive:!0}),i&&Xt(r,"blur",d=>{var v;const p=Yn(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function Kv(e,t=!1){const n=B(),r=()=>n.value=!!e();return r(),E1(r,t),n}const ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ud="__vueuse_ssr_handlers__";ld[ud]=ld[ud]||{};function O1({document:e=C1}={}){if(!e)return B("visible");const t=B(e.visibilityState);return Xt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var cd=Object.getOwnPropertySymbols,A1=Object.prototype.hasOwnProperty,x1=Object.prototype.propertyIsEnumerable,R1=(e,t)=>{var n={};for(var r in e)A1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cd)for(var r of cd(e))t.indexOf(r)<0&&x1.call(e,r)&&(n[r]=e[r]);return n};function Ft(e,t,n={}){const r=n,{window:o=Zs}=r,s=R1(r,["window"]);let i;const a=Kv(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},u=me(()=>Yn(e),f=>{l(),a.value&&o&&f&&(i=new ResizeObserver(t),i.observe(f,s))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Xs(c),{isSupported:a,stop:c}}var fd=Object.getOwnPropertySymbols,P1=Object.prototype.hasOwnProperty,I1=Object.prototype.propertyIsEnumerable,$1=(e,t)=>{var n={};for(var r in e)P1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fd)for(var r of fd(e))t.indexOf(r)<0&&I1.call(e,r)&&(n[r]=e[r]);return n};function k1(e,t,n={}){const r=n,{window:o=Zs}=r,s=$1(r,["window"]);let i;const a=Kv(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},u=me(()=>Yn(e),f=>{l(),a.value&&o&&f&&(i=new MutationObserver(t),i.observe(f,s))},{immediate:!0}),c=()=>{l(),u()};return Xs(c),{isSupported:a,stop:c}}var dd;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(dd||(dd={}));var L1=Object.defineProperty,pd=Object.getOwnPropertySymbols,M1=Object.prototype.hasOwnProperty,N1=Object.prototype.propertyIsEnumerable,hd=(e,t,n)=>t in e?L1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F1=(e,t)=>{for(var n in t||(t={}))M1.call(t,n)&&hd(e,n,t[n]);if(pd)for(var n of pd(t))N1.call(t,n)&&hd(e,n,t[n]);return e};const B1={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};F1({linear:w1},B1);function D1({window:e=Zs}={}){if(!e)return B(!1);const t=B(e.document.hasFocus());return Xt(e,"blur",()=>{t.value=!1}),Xt(e,"focus",()=>{t.value=!0}),t}const V1=()=>it&&/firefox/i.test(window.navigator.userAgent);var Uv=typeof global=="object"&&global&&global.Object===Object&&global,j1=typeof self=="object"&&self&&self.Object===Object&&self,Cn=Uv||j1||Function("return this")(),an=Cn.Symbol,qv=Object.prototype,z1=qv.hasOwnProperty,H1=qv.toString,ns=an?an.toStringTag:void 0;function K1(e){var t=z1.call(e,ns),n=e[ns];try{e[ns]=void 0;var r=!0}catch{}var o=H1.call(e);return r&&(t?e[ns]=n:delete e[ns]),o}var U1=Object.prototype,q1=U1.toString;function W1(e){return q1.call(e)}var G1="[object Null]",Y1="[object Undefined]",vd=an?an.toStringTag:void 0;function Ho(e){return e==null?e===void 0?Y1:G1:vd&&vd in Object(e)?K1(e):W1(e)}function Rr(e){return e!=null&&typeof e=="object"}var J1="[object Symbol]";function ka(e){return typeof e=="symbol"||Rr(e)&&Ho(e)==J1}function X1(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n