diff --git a/app/src/main/assets/web/source/css/app.b909a48a.css b/app/src/main/assets/web/source/css/app.1f4cfba4.css similarity index 52% rename from app/src/main/assets/web/source/css/app.b909a48a.css rename to app/src/main/assets/web/source/css/app.1f4cfba4.css index ad85f76ff..b00b85267 100644 --- a/app/src/main/assets/web/source/css/app.b909a48a.css +++ b/app/src/main/assets/web/source/css/app.1f4cfba4.css @@ -1 +1 @@ -.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@-webkit-keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-27eae50d]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px}button[data-v-27eae50d]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-27eae50d]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-2579f873]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-2579f873]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-2579f873]:hover{color:#fff;background-color:gray}button:hover span[data-v-2579f873]{transform:translateY(0);opacity:1}textarea[data-v-4301c68c]{font-size:14px}input[data-v-28b882dd]{outline:none;height:25px;font-size:16px}textarea[data-v-28b882dd]{font-size:14px}.search[data-v-3db6355f]{border:1px solid #ddd;border-radius:4px}input[data-v-3db6355f]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-3db6355f]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-3db6355f]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-3db6355f]:hover{background-color:#ddd}input[type=checkbox][data-v-3db6355f]{transform:scale(2);margin:0 15px 0}.book_item[data-v-3db6355f]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-3db6355f]{background-color:#32cd32}.book_index[data-v-3db6355f]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-3db6355f]{display:flex;justify-content:space-between}.book_list[data-v-3db6355f]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-7ac1e65e]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-7ac1e65e]:hover{color:red;margin-left:10px}code[data-v-7ac1e65e]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-7ac1e65e]{position:fixed;right:20px;bottom:20px}.author a[data-v-7ac1e65e]{padding:5px 10px;border-radius:4px}.author a[data-v-7ac1e65e]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}ul li[data-v-0fc56f5e]{border-bottom:2px solid #333}a[data-v-0fc56f5e]{font-size:18px;color:blue}span[data-v-2ede5ef6]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-2ede5ef6]{font-style:normal}.edit_input[data-v-2ede5ef6]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}body,ul{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-63af33ef]{border-bottom:2px solid #333}a[data-v-63af33ef]{font-size:18px;color:blue} \ No newline at end of file +.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@-webkit-keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-27eae50d]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px}button[data-v-27eae50d]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-27eae50d]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-0cc5d4a4]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-0cc5d4a4]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-0cc5d4a4]:hover{color:#fff;background-color:gray}button:hover span[data-v-0cc5d4a4]{transform:translateY(0);opacity:1}textarea[data-v-4301c68c]{font-size:14px}input[data-v-28b882dd]{outline:none;height:25px;font-size:16px}textarea[data-v-28b882dd]{font-size:14px}.search[data-v-6c074651]{border:1px solid #ddd;border-radius:4px}input[data-v-6c074651]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-6c074651]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-6c074651]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-6c074651]:hover{background-color:#ddd}input[type=checkbox][data-v-6c074651]{transform:scale(2);margin:0 15px 0}.book_item[data-v-6c074651]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-6c074651]{background-color:#32cd32}.book_index[data-v-6c074651]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-6c074651]{display:flex;justify-content:space-between}.source_list[data-v-6c074651]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-7ac1e65e]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-7ac1e65e]:hover{color:red;margin-left:10px}code[data-v-7ac1e65e]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-7ac1e65e]{position:fixed;right:20px;bottom:20px}.author a[data-v-7ac1e65e]{padding:5px 10px;border-radius:4px}.author a[data-v-7ac1e65e]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}ul li[data-v-0fc56f5e]{border-bottom:2px solid #333}a[data-v-0fc56f5e]{font-size:18px;color:blue}span[data-v-2ede5ef6]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-2ede5ef6]{font-style:normal}.edit_input[data-v-2ede5ef6]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}body,ul{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-63af33ef]{border-bottom:2px solid #333}a[data-v-63af33ef]{font-size:18px;color:blue} \ No newline at end of file diff --git a/app/src/main/assets/web/source/index.html b/app/src/main/assets/web/source/index.html index 7d6399886..e4228d1c8 100644 --- a/app/src/main/assets/web/source/index.html +++ b/app/src/main/assets/web/source/index.html @@ -1 +1 @@ -legado_web_source_editor
\ No newline at end of file +legado_web_source_editor
\ No newline at end of file diff --git a/app/src/main/assets/web/source/js/app.18ad945c.js b/app/src/main/assets/web/source/js/app.18ad945c.js deleted file mode 100644 index c3b19921a..000000000 --- a/app/src/main/assets/web/source/js/app.18ad945c.js +++ /dev/null @@ -1 +0,0 @@ -(function(){"use strict";var e={5484:function(e,t,n){var o=n(9963),r=n(6252);const i={class:"editor"};function a(e,t,n,o,a,l){const c=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)("div",i,[(0,r.Wm)(c)])}var l={setup(){}},c=n(3744);const s=(0,c.Z)(l,[["render",a]]);var u=s,d=n(2201),h=n(3577);const p=e=>((0,r.dD)("data-v-0fc56f5e"),e=e(),(0,r.Cn)(),e),g={class:"left"},w=p((()=>(0,r._)("div",null,[(0,r._)("a",{href:"/"},"←主页"),(0,r._)("b",null,"书源")],-1))),v=["onClick"],m=["onClick"],S=["onClick"],f=["onClick"],_=["onClick"],b=["onClick"],C=["onClick"],k=["onClick"];function y(e,t,n,o,i,a){const l=(0,r.up)("router-link"),c=(0,r.up)("router-view"),s=(0,r.up)("edit-menu"),u=(0,r.up)("edit-out");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",g,[(0,r._)("div",null,[w,(0,r._)("ul",null,[(0,r.Wm)(l,{to:{name:"book-base"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 基础 ",10,v)])),_:1}),(0,r.Wm)(l,{to:{name:"book-search"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 搜索 ",10,m)])),_:1}),(0,r.Wm)(l,{to:{name:"book-find"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 发现 ",10,S)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-detail"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 详情 ",10,f)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-directory"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 目录 ",10,_)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-content"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 正文 ",10,b)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-review"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 段评 ",10,C)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-other"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 其他 ",10,k)])),_:1})])]),(0,r.Wm)(c,null,{default:(0,r.w5)((({Component:e})=>[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e)))],1024))])),_:1})]),(0,r.Wm)(s),(0,r.Wm)(u)],64)}var D=n(2262);n(7658);const U=e=>((0,r.dD)("data-v-2579f873"),e=e(),(0,r.Cn)(),e),I={class:"menu"},x=(0,r.Uk)("⇈推送源 "),K=U((()=>(0,r._)("span",null,"Ctrl+P",-1))),j=[x,K],T=(0,r.Uk)("⇊拉取源 "),B=U((()=>(0,r._)("span",null,"Shift+P",-1))),A=[T,B],H=(0,r.Uk)("⋙生成源"),L=U((()=>(0,r._)("span",null,"Ctrl+E",-1))),R=[H,L],E=(0,r.Uk)(" ✗清空表单"),N=U((()=>(0,r._)("span",null,"Shift+C",-1))),O=[E,N],q=(0,r.Uk)("↶撤销操作"),J=U((()=>(0,r._)("span",null,"Ctrl+Z",-1))),W=[q,J],Z=(0,r.Uk)("↷重做操作"),P=U((()=>(0,r._)("span",null,"Shift+R",-1))),$=[Z,P],M=(0,r.Uk)(" ⇏调试源 "),Y=U((()=>(0,r._)("span",null,"Ctrl+Enter",-1))),V=[M,Y],z=(0,r.Uk)(" ✓保存源"),F=U((()=>(0,r._)("span",null,"Ctrl+S",-1))),G=[z,F];function Q(e,t,n,o,i,a){const l=(0,r.up)("edit-loading"),c=(0,r.up)("edit-warn"),s=(0,r.up)("edit-success");return(0,r.wg)(),(0,r.iD)("div",I,[(0,r._)("div",null,[o.isShow?((0,r.wg)(),(0,r.j4)(l,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(c,{text:o.warnText,"is-show":o.warnShow,onChangeShow:o.changeShow},null,8,["text","is-show","onChangeShow"]),o.successShow?((0,r.wg)(),(0,r.j4)(s,{key:1,isShow:o.successShow,onChangeShow:o.changeSuccessShow,text:o.successText},null,8,["isShow","onChangeShow","text"])):(0,r.kq)("",!0)]),(0,r._)("button",{onClick:t[0]||(t[0]=(...e)=>o.push&&o.push(...e)),title:"Ctrl+P"},j),(0,r._)("button",{onClick:t[1]||(t[1]=(...e)=>o.pull&&o.pull(...e)),title:"Shift+P"},A),(0,r._)("button",{onClick:t[2]||(t[2]=(...e)=>o.conver&&o.conver(...e)),title:"Ctrl+E"},R),(0,r._)("button",{onClick:t[3]||(t[3]=(...e)=>o.clearEdit&&o.clearEdit(...e)),title:"Shift+C"},O),(0,r._)("button",{onClick:t[4]||(t[4]=(...e)=>o.undo&&o.undo(...e)),title:"Ctrl+Z"},W),(0,r._)("button",{onClick:t[5]||(t[5]=(...e)=>o.redo&&o.redo(...e)),title:"Shift+R"},$),(0,r._)("button",{onClick:t[6]||(t[6]=(...e)=>o.debug&&o.debug(...e)),title:"Ctrl+Enter"},V),(0,r._)("button",{onClick:t[7]||(t[7]=(...e)=>o.saveSource&&o.saveSource(...e)),title:"Ctrl+S"},G)])}function X(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json()))}function ee(e){return fetch(e).then((e=>e.json()))}function te(e,t=!0){let n=/bookSource/.test(location.href),o=`http://${localStorage.getItem("url")||location.host}/`,r=n?"BookSource":"RssSource";return`${o}${e}${r}${t?"s":""}`}function ne(){return ee(te("get"))}function oe(e){return X(te("save"),e)}function re(e){return X(te("save",!1),e)}function ie(e){return X(te("delete"),e)}var ae=n(3907),le=(0,ae.MT)({state:{url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSourceInfo:{},deBugMsg:"",searchKey:""},getters:{},mutations:{changeSearchKey(e,t){e.searchKey=t},saveSources(e,t){/bookSource/.test(location.href)?e.bookSources=t:e.rssSources=t},changeCurrentSource(e,t){const n=JSON.stringify(t);e.currentSource=JSON.parse(n)},changeCurrentSourceValue(e,t){let n={true:!0,false:!1},o=n[t.value]||t.value;if(/\d+/.test(o)&&(o=parseInt(o)),t.type.includes("_")){let n=t.type.split("_")[0],r=t.type.split("_")[1],i={};i[r]=o,e.currentSource[n]=Object.assign(e.currentSource[n]||{},i)}else e.currentSource[t.type]=o;e.currentSource.lastUpdateTime=(new Date).getTime()},changeTabName(e,t){e.currentTab=t,localStorage.setItem("tabName",t),console.log(t)},changeEidtTabSourceInfo(e){e.editTabSourceInfo=e.currentSource},editHistory(e,t){let n;if(localStorage.getItem("history"))n=JSON.parse(localStorage.getItem("history")),n.new.push(t),n.new.length>50&&n.new.shift(),n.old.length>50&&n.old.shift(),localStorage.setItem("history",JSON.stringify(n));else{const e={new:[t],old:[]};localStorage.setItem("history",JSON.stringify(e))}},editHistoryUndo(e){if(localStorage.getItem("history")){let t=JSON.parse(localStorage.getItem("history"));t.old.push(e.currentSource),t.new.length&&(e.currentSource=t.new.pop()),localStorage.setItem("history",JSON.stringify(t))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(e){e.editTabSourceInfo={},e.currentSource={}},appendDeBugMsg(e,t){let n=document.querySelector("#debug_text");n.scrollTop=n.scrollHeight,e.deBugMsg+=t+"\n"},clearDeBugMsg(e){e.deBugMsg=""},clearAllSource(e){e.bookSources=[],e.rssSources=[]}},actions:{},modules:{}});const ce=e=>((0,r.dD)("data-v-ab8a8a34"),e=e(),(0,r.Cn)(),e),se={class:"fixed"},ue=ce((()=>(0,r._)("div",{class:"half-circle-spinner"},[(0,r._)("div",{class:"circle circle-1"}),(0,r._)("div",{class:"circle circle-2"})],-1))),de=[ue];function he(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",se,de)}var pe={name:"editLoading"};const ge=(0,c.Z)(pe,[["render",he],["__scopeId","data-v-ab8a8a34"]]);var we=ge;const ve={key:0,class:"warm"};function me(e,t,n,o,i,a){return n.isShow?((0,r.wg)(),(0,r.iD)("div",ve,[(0,r._)("p",null,(0,h.zw)(n.text),1),(0,r._)("div",null,[(0,r._)("button",{onClick:t[0]||(t[0]=(...e)=>o.changeShow&&o.changeShow(...e))},"关闭")])])):(0,r.kq)("",!0)}var Se={name:"editWarm",props:{isShow:{default:!1,type:Boolean},text:{type:String,default:""}},setup(e,{emit:t}){const n=()=>{t("changeShow",!e.isShow)};return{changeShow:n}}};const fe=(0,c.Z)(Se,[["render",me],["__scopeId","data-v-27eae50d"]]);var _e=fe;const be={class:"success"};function Ce(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",be,[(0,r._)("p",null,(0,h.zw)(n.text),1)])}var ke={props:{text:{type:String,default:""},isShow:{type:Boolean,default:!1}},emits:["changeShow"],setup(e,{emit:t}){return setTimeout((()=>{t("changeShow",!e.isShow)}),3e3),{}}};const ye=(0,c.Z)(ke,[["render",Ce],["__scopeId","data-v-bef92f74"]]);var De=ye,Ue={components:{editLoading:we,editWarn:_e,editSuccess:De},setup(){const e=(0,D.iH)(!1),t=(0,D.iH)(!1),n=(0,D.iH)(""),o=(0,D.iH)(!1),i=(0,D.iH)(""),a=e=>{t.value=e},l=e=>{console.log(e),o.value=e},c=()=>{e.value=!0,ne().then((t=>{le.commit("changeTabName","editList"),le.commit("saveSources",t.data),e.value=!1,n.value=`成功拉取${t.data.length}条源`,o.value=!0})).catch((n=>{console.log(n),e.value=!1,i.value=" 请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务",t.value=!0}))},s=()=>{n.value="正在推送中",o.value=!0,e.value=!0;let r=/bookSource/.test(location.href)?le.state.bookSources:le.state.rssSources;oe(r).then((a=>{if(a.isSuccess){let e=a.data;if(Array.isArray(e)){let t="";r.length>e.length&&(r.forEach((t=>{e.find((e=>e.bookSourceUrl===t.bookSourceUrl))||console.log(t.bookSourceUrl)})),t="\n推送失败的源将用红色字体标注!"),n.value=`批量推送源到「阅读3.0APP」\n共计: ${r.length} 条\n成功: ${e.length} 条\n失败: ${r.length-e.length} 条${t}`,o.value=!0}else n.value=`批量推送源到「阅读3.0APP」成功!\n共计: ${r.length} 条`,o.value=!0}else i.value=`批量推送源失败!\nErrorMsg: ${a.errorMsg}`,t.value=!0;e.value=!1})).catch((n=>{console.log(n),e.value=!1,t.value=!0,i.value="请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务"}))},u=()=>{le.commit("changeEidtTabSourceInfo"),le.commit("changeTabName","editTab")},d=()=>{le.commit("editHistoryUndo")},h=()=>{le.commit("clearEdit"),console.log("已清除"),n.value="已清除",o.value=!0},p=()=>{le.commit("clearEdit"),le.commit("clearAllHistory"),n.value="已清除所有历史记录",o.value=!0},g=()=>{let e=/bookSource/.test(location.href),r=le.state.currentSource;e&&""!==r.bookSourceUrl&&""!==r.bookSourceType&&""!==r.bookSourceName||!e&&""!==r.sourceUrl&&""!==r.sourceName?re(r).then((a=>{a.isSuccess?(n.value=`源《${e?r.bookSourceName:r.sourceName}》已成功保存到「阅读3.0APP」`,o.value=!0):(i.value=`源《${e?r.bookSourceName:r.sourceName}》保存失败!\nErrorMsg: ${a.errorMsg}`,t.value=!0)})):(i.value="请检查<必填>项是否全部填写",t.value=!0)},w=()=>{e.value=!0,le.commit("clearDeBugMsg"),le.commit("changeTabName","editDebug");let t=/bookSource/.test(location.href),r=le.state.currentSource;re(r).then((i=>{console.log(i);let a="ws://"+(localStorage.getItem("url")||location.host).replace(/\d+$/,(e=>parseInt(e)+1))+"/"+(t?"bookSourceDebug":"rssSourceDebug");console.log(a);const l=new WebSocket(a);let c="",s=t?r.bookSourceUrl:r.sourceUrl;t&&(c=r.ruleSearch.checkKeyWord?r.ruleSearch.checkKeyWord:le.state.searchKey?le.state.searchKey:"我的"),l.onopen=()=>{l.send(`{"tag":"${s}", "key":"${c}"}`)},l.onmessage=e=>{le.commit("appendDeBugMsg",e.data)},l.onclose=()=>{e.value=!1,n.value="调试已关闭!",o.value=!0,le.commit("appendDeBugMsg","调试已关闭!")}}))};return(0,r.bv)((()=>{document.onkeydown=e=>{(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&w(),(e.ctrlKey||e.metaKey)&&"s"===e.key&&(g(),e.preventDefault()),e.shiftKey&&"R"===e.key&&p(),e.shiftKey&&"C"===e.key&&h(),e.ctrlKey&&"e"===e.key&&(u(),e.preventDefault()),e.shiftKey&&"P"===e.key&&c(),e.ctrlKey&&"p"===e.key&&(s(),e.preventDefault())}})),{debug:w,push:s,pull:c,clearEdit:h,isShow:e,changeShow:a,warnShow:t,successText:n,changeSuccessShow:l,successShow:o,undo:d,redo:p,conver:u,warnText:i,saveSource:g}}};const Ie=(0,c.Z)(Ue,[["render",Q],["__scopeId","data-v-2579f873"]]);var xe=Ie;const Ke={class:"out"};function je(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",Ke,[(0,r._)("ul",null,[(0,r._)("li",{class:(0,h.C_)("editTab"===e.current_tab?"active":""),onClick:t[0]||(t[0]=e=>o.handleSetActive("editTab"))}," 编辑源 ",2),(0,r._)("li",{class:(0,h.C_)("editDebug"===e.current_tab?"active":""),onClick:t[1]||(t[1]=e=>o.handleSetActive("editDebug"))}," 调试源 ",2),(0,r._)("li",{class:(0,h.C_)("editList"===e.current_tab?"active":""),onClick:t[2]||(t[2]=e=>o.handleSetActive("editList"))}," 源列表 ",2),(0,r._)("li",{class:(0,h.C_)("editHelp"===e.current_tab?"active":""),onClick:t[3]||(t[3]=e=>o.handleSetActive("editHelp"))}," 帮助信息 ",2)]),((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.current_tab)))],1024))])}function Te(e,t,n,i,a,l){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("textarea",{placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP","onUpdate:modelValue":t[0]||(t[0]=t=>e.sourceInfo=t)},null,512)),[[o.nr,e.sourceInfo]])}var Be={name:"editTab",setup(){const e=(0,D.qj)({sourceInfo:""});return(0,r.m0)((()=>{let t=le.state.editTabSourceInfo;Object.keys(t).length>0?(t.lastUpdateTime=(new Date).getTime(),e.sourceInfo=JSON.stringify(t,null,4)):e.sourceInfo=""})),{...(0,D.BK)(e)}}};const Ae=(0,c.Z)(Be,[["render",Te],["__scopeId","data-v-4301c68c"]]);var He=Ae;function Le(e,t,n,i,a,l){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i.isBookSource?(0,r.wy)(((0,r.wg)(),(0,r.iD)("input",{key:0,type:"text",style:{"text-align":"center",border:"1px solid #dddddd","border-radius":"4px"},placeholder:"输入搜索关键字,默认搜「我的」","onUpdate:modelValue":t[0]||(t[0]=t=>e.searchKey=t),onInput:t[1]||(t[1]=t=>i.changeSearch(e.searchKey)),onKeydown:t[2]||(t[2]=(0,o.D2)(((...e)=>i.startSearch&&i.startSearch(...e)),["enter"])),title:"输入关键词 enter(回车键)快捷搜索"},null,544)),[[o.nr,e.searchKey]]):(0,r.kq)("",!0),(0,r.wy)((0,r._)("textarea",{placeholder:"这里用于输出调试信息","onUpdate:modelValue":t[3]||(t[3]=t=>e.printDebug=t),ref:"textareaDom",id:"debug_text"},null,512),[[o.nr,e.printDebug]])],64)}var Re={name:"editDebug",setup(){const e=(0,D.iH)(""),t=(0,D.qj)({printDebug:le.state.deBugMsg,searchKey:""}),n=e=>{le.commit("changeSearchKey",e)};(0,r.m0)((()=>{t.printDebug=le.state.deBugMsg}));const o=()=>{document.querySelectorAll(".menu>button")[6].click()},i=(0,r.Fl)((()=>/bookSource/.test(window.location.href)));return{...(0,D.BK)(t),textareaDom:e,changeSearch:n,startSearch:o,isBookSource:i}}};const Ee=(0,c.Z)(Re,[["render",Le],["__scopeId","data-v-28b882dd"]]);var Ne=Ee;const Oe={style:{display:"flex","flex-flow":"column"}},qe={class:"tool"},Je={class:"source_list"},We=["value"],Ze={class:"book_index"},Pe=["onClick"],$e={class:"book_info"},Me={key:0};function Ye(e,t,n,i,a,l){return(0,r.wg)(),(0,r.iD)("div",Oe,[(0,r.wy)((0,r._)("input",{class:"search",type:"text",placeholder:"输入筛选关键词(源名称、源URL或源分组)输入自动筛选源","onUpdate:modelValue":t[0]||(t[0]=t=>e.searchKey=t),onFocus:t[1]||(t[1]=t=>e.delArr=[])},null,544),[[o.nr,e.searchKey]]),(0,r._)("div",null,[(0,r._)("div",qe,[(0,r._)("button",{onClick:t[2]||(t[2]=(...e)=>i.upFile&&i.upFile(...e))},"导入书源文件"),(0,r._)("button",{onClick:t[3]||(t[3]=(...e)=>i.outExport&&i.outExport(...e))},"导出书源文件"),(0,r._)("button",{onClick:t[4]||(t[4]=(...e)=>i.deleteActiveSource&&i.deleteActiveSource(...e))},"删除选中源"),(0,r._)("button",{onClick:t[5]||(t[5]=(...e)=>i.clearAllSources&&i.clearAllSources(...e))},"清空列表")]),(0,r._)("div",Je,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.filtedSources,((n,a)=>((0,r.wg)(),(0,r.iD)("div",{key:n.bookSourceUrl||n.sourceUrl,class:(0,h.C_)(["book_item",a===i.currentActive?"book_active":""])},[(0,r.wy)((0,r._)("input",{type:"checkbox",value:a,"onUpdate:modelValue":t[6]||(t[6]=t=>e.delArr=t)},null,8,We),[[o.e8,e.delArr]]),(0,r._)("div",Ze,(0,h.zw)(a+1),1),(0,r._)("div",{style:{"margin-left":"10px",flex:"1"},onClick:e=>i.handleItemClick(a)},[(0,r._)("div",$e,[(0,r._)("span",null,(0,h.zw)(n.bookSourceName||n.sourceName),1),i.isBookSource?((0,r.wg)(),(0,r.iD)("span",Me,"最后修改:"+(0,h.zw)(i.formatTime(n.lastUpdateTime)),1)):(0,r.kq)("",!0),(0,r._)("span",null,"分组:"+(0,h.zw)(n.bookSourceGroup||n.sourceGroup||"无分组"),1)]),(0,r._)("div",null,(0,h.zw)(n.bookSourceUrl||n.sourceUrl),1)],8,Pe)],2)))),128))])])])}var Ve={name:"editList",setup(){let e=(0,D.qj)({searchKey:"",delArr:[],sources:[],filtedSources:[]}),t=(0,D.iH)(null);const n=n=>{t.value=n,le.commit("clearEdit"),le.commit("changeCurrentSource",e.filtedSources[n])},o=()=>{le.commit("clearAllSource")},i=e=>{if(!e)return null;const t=new Date(e),n=t.getFullYear();let o=t.getMonth()+1;o=o<10?"0"+o:o;let r=t.getDate();r=r<10?"0"+r:r;let i=t.getHours();i=i<10?"0"+i:i;let a=t.getMinutes();a=a<10?"0"+a:a;let l=t.getSeconds();return l=l<10?"0"+l:l,n+"-"+o+"-"+r+" "+i+":"+a+":"+l},a=(t,n)=>{if(""===n)return e.sources;let o=/bookSource/.test(location.href);return o?t.filter((e=>e.bookSourceName.toUpperCase().includes(n.toUpperCase())||(e.bookSourceGroup||"").toUpperCase().includes(n.toUpperCase())||e.bookSourceUrl.toUpperCase().includes(n.toUpperCase()))):t.filter((e=>e.sourceName.toUpperCase().includes(n.toUpperCase())||(e.sourceGroup||"").toUpperCase().includes(n.toUpperCase())||e.sourceUrl.toUpperCase().includes(n.toUpperCase())))};(0,r.m0)((()=>{const t=/bookSource/.test(location.href),n=t?le.state.bookSources:le.state.rssSources;e.sources=n})),(0,r.m0)((()=>{e.filtedSources=a(e.sources,e.searchKey)}));const l=(0,r.Fl)((()=>/bookSource/.test(window.location.href))),c=()=>{if(0===e.delArr.length)return console.log("没有选中的书源"),!1;const t=[];e.delArr.forEach((n=>{t.push(e.filtedSources[n])})),ie(t).then((t=>{t.isSuccess?(console.log("删除成功"),e.delArr.forEach((t=>{let[n]=e.filtedSources.splice(t,1);e.sources=e.sources.filter((e=>e!=n))})),e.delArr=[]):console.log("错误",t)}))},s=()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.addEventListener("change",(e=>{const t=e.target.files[0];var n=new FileReader;n.readAsText(t),n.onload=()=>{const e=JSON.parse(n.result);le.commit("saveSources",e)}})),e.click()},u=()=>{const e=document.createElement("a");let t=/bookSource/.test(location.href),n=t?le.state.bookSources:le.state.rssSources,o=t?"BookSource":"RssSource";e.download=`${o}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let r=new Blob([JSON.stringify(n,null,4)],{type:"application/json"});e.href=window.URL.createObjectURL(r),e.click()};return{currentActive:t,isBookSource:l,deleteActiveSource:c,handleItemClick:n,...(0,D.BK)(e),formatTime:i,clearAllSources:o,upFile:s,outExport:u}}};const ze=(0,c.Z)(Ve,[["render",Ye],["__scopeId","data-v-3db6355f"]]);var Fe=ze;const Ge=(0,r.uE)('书源制作教程xpath基础教程xpath高级教程正则表达式教程正则表达式在线验证工具
^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
(?s) 前缀表示跨行解析
(?m) 前缀表示逐行匹配
(?i) 前缀表示忽略大小写
',6);function Qe(e,t,n,o,r,i){return Ge}var Xe={name:"editHelp"};const et=(0,c.Z)(Xe,[["render",Qe],["__scopeId","data-v-7ac1e65e"]]);var tt=et,nt={name:"editOut",components:{editDebug:Ne,editTab:He,editList:Fe,editHelp:tt},setup(){const e=(0,D.qj)({url:localStorage.getItem("url")||"",current_tab:le.state.currentTab||"editTab"}),t=e=>{le.commit("changeTabName",e)},n=e=>{le.commit("changeUrl",e)};(0,r.m0)((()=>{e.current_tab=le.state.currentTab}));const o=()=>{document.querySelectorAll(".menu>button")[1].click()};return{...(0,D.BK)(e),handleSetActive:t,changInput:n,pullSource:o}}};const ot=(0,c.Z)(nt,[["render",je]]);var rt=ot,it={components:{editMenu:xe,editOut:rt},setup(){const e=(0,D.qj)({});return(0,r.bv)((()=>{})),{...(0,D.BK)(e)}}};const at=(0,c.Z)(it,[["render",y],["__scopeId","data-v-0fc56f5e"]]);var lt=at;const ct={class:"main"};function st(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",ct,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}const ut=e=>((0,r.dD)("data-v-2ede5ef6"),e=e(),(0,r.Cn)(),e),dt={class:"edit_input"},ht=ut((()=>(0,r._)("i",null,":",-1))),pt=["id","placeholder","rows","value"];function gt(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",dt,[(0,r._)("span",null,[(0,r.Uk)((0,h.zw)(n.title),1),ht]),(0,r._)("textarea",{id:n.type,placeholder:n.hint,rows:n.rows,value:n.content,ref:"attr",onInput:t[0]||(t[0]=(...e)=>o.change&&o.change(...e)),onBlur:t[1]||(t[1]=(...e)=>o.changeHistory&&o.changeHistory(...e)),onFocus:t[2]||(t[2]=(...e)=>o.changeHeight&&o.changeHeight(...e))},null,40,pt)])}var wt={props:{title:{type:String,default:""},rows:{type:Number,default:1},hint:{type:String,default:""},type:{type:String,default:""},content:{type:[String,Number,Boolean],default:""}},emits:["changeContent"],setup(e,{emit:t}){const n=(0,D.iH)(""),o=()=>{t("changeContent",{value:n.value.value,type:n.value.getAttribute("id")})},i=()=>{localStorage.getItem("history")||localStorage.setItem("history",JSON.stringify({new:[],old:[]}));const e=JSON.parse(localStorage.getItem("history")),t=e.new;if(t.length){const e=n.value.getAttribute("id");if(e.includes("_")||t[t.length-1][e]===le.state.currentSource[e]){if(e.includes("_")){let n=e.split("_")[0],o=e.split("_")[1];t[t.length-1][n][o]!==le.state.currentSource[n][o]&&le.commit("editHistory",le.state.currentSource)}}else le.commit("editHistory",le.state.currentSource)}else le.commit("editHistory",le.state.currentSource)},a=()=>{(0,r.Y3)((()=>{let e=n.value;const t=e.scrollHeight,o=e.offsetHeight;o<=t&&(e.style.height="auto",e.style.height=e.scrollHeight+"px")}))};return{changeHistory:i,change:o,attr:n,changeHeight:a}}};const vt=(0,c.Z)(wt,[["render",gt],["__scopeId","data-v-2ede5ef6"]]);var mt=vt,St={base:[{title:"源域名",rows:1,id:"bookSourceUrl",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"源类型",rows:1,id:"bookSourceType",hint:"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)"},{title:"源名称",rows:1,id:"bookSourceName",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"bookSourceGroup",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"bookSourceComment",hint:"<选填>描述源作者和状态"},{title:"书源变量说明",rows:1,id:"variableComment",hint:"<选填>书源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",hint:"<选填>登录检测js"},{title:"并发率",rows:1,id:"concurrentRate",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",hint:"<选填>客户端标识"},{title:"链接验证",rows:1,id:"bookUrlPattern",hint:"<选填>当详情页URL与源URL的域名不一致时有效,用于添加网址"}],search:[{title:"搜索地址",rows:1,id:"searchUrl",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",rows:1,id:"ruleSearch_checkKeyWord",hint:"校验关键字"},{title:"列表规则",rows:1,id:"ruleSearch_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleSearch_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleSearch_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleSearch_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleSearch_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleSearch_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleSearch_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleSearch_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleSearch_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],find:[{title:"发现地址",rows:6,id:"exploreUrl",hint:"内容能显示在发现菜单\n每行一条发现分类(网址域名可省略),例:\n名称1::网址(Url)1\n名称2::网址(Url)2\n..."},{title:"列表规则",rows:1,id:"ruleExplore_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleExplore_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleExplore_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleExplore_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleExplore_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleExplore_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleExplore_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleExplore_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleExplore_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],detail:[{title:"预处理",rows:3,id:"ruleBookInfo_init",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",rows:1,id:"ruleBookInfo_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleBookInfo_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleBookInfo_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleBookInfo_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleBookInfo_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleBookInfo_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleBookInfo_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",rows:1,id:"ruleBookInfo_tocUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",rows:1,id:"ruleBookInfo_downloadUrls",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"允许修改书名作者",rows:1,id:"ruleBookInfo_canReName",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}],directory:[{title:"更新前JS",rows:3,id:"ruleToc_preUpdateJs",hint:"动态更新书籍目录链接"},{title:"列表规则",rows:3,id:"ruleToc_chapterList",hint:"选择目录列表的章节节点 (规则结果为List)"},{title:"章节名称",rows:1,id:"ruleToc_chapterName",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",rows:1,id:"ruleToc_chapterUrl",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",rows:1,id:"ruleToc_isVolume",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",rows:1,id:"ruleToc_isVip",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",rows:1,id:"ruleToc_isPay",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",rows:1,id:"ruleToc_updateTime",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleToc_nextTocUrl",hint:"选择目录下一页链接 (规则结果为List或String)"}],content:[{title:"脚本注入",rows:3,id:"ruleContent_webJs",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",rows:1,id:"ruleContent_content",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleContent_nextContentUrl",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",rows:1,id:"ruleContent_sourceRegex",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",rows:1,id:"ruleContent_replaceRegex",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",rows:1,id:"ruleContent_imageStyle",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",rows:1,id:"ruleContent_payAction",hint:"填写JavaScript 返回购买链接或者调用购买接口"},{title:"图片解密",rows:1,id:"ruleContent_imageDecode",hint:"填写JavaScript 返回解密图片的bytes "}],review:[{title:"段评URL",rows:1,id:"ruleReview_reviewUrl",hint:"段评URL"},{title:"段评发布者头像",rows:1,id:"ruleReview_avatarRule",hint:"段评发布者头像"},{title:"段评内容",rows:1,id:"ruleReview_contentRule",hint:"段评内容"},{title:"段评发布时间",rows:1,id:"ruleReview_postTimeRule",hint:"段评发布时间"},{title:"获取段评回复URL",rows:1,id:"ruleReview_reviewQuoteUrl",hint:"获取段评回复URL"},{title:"点赞URL",rows:1,id:"ruleReview_voteUpUrl",hint:"点赞URL"},{title:"点踩URL",rows:1,id:"ruleReview_voteDownUrl",hint:"点踩URL"},{title:"发送回复URL",rows:1,id:"ruleReview_postReviewUrl",hint:"发送回复URL"},{title:"发送回复段评URL",rows:1,id:"ruleReview_postQuoteUrl",hint:"发送回复段评URL"},{title:"删除段评URL",rows:1,id:"ruleReview_deleteUrl",hint:"删除段评URL"}],other:[{title:"启用搜索",rows:1,id:"enabled",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用发现",rows:1,id:"enabledExplore",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用段评",rows:1,id:"enabledReview",hint:"启用: true 关闭: false (可选,默认false)"},{title:"启用CookieJar",rows:1,id:"enabledCookieJar",hint:"启用: true 关闭: false (可选,默认false)"},{title:"搜索权重",rows:1,id:"weight",hint:"整数: 0~N (可选,默认0) | 数字越大越靠前"},{title:"排序编号",rows:1,id:"customOrder",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]};function ft(){const e=(0,D.qj)({currentSource:le.state.currentSource}),t=e=>{le.commit("changeCurrentSourceValue",e)},n=t=>{try{if(t.includes("_")){let n=t.split("_")[0],o=t.split("_")[1],r=e.currentSource[n];return r?r[o]:null}return e.currentSource[t]}catch(n){console.log("导入错误",n.TypeError),le.commit("clearEdit")}};return(0,r.m0)((()=>{e.currentSource=le.state.currentSource})),{...(0,D.BK)(e),upData:t,getContent:n}}var _t={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.base});return{...(0,D.BK)(n),upData:e,getContent:t}}};const bt=(0,c.Z)(_t,[["render",st]]);var Ct=bt;const kt={class:"main"};function yt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",kt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Dt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.search});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Ut=(0,c.Z)(Dt,[["render",yt]]);var It=Ut;const xt={class:"main"};function Kt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",xt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var jt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.directory});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Tt=(0,c.Z)(jt,[["render",Kt]]);var Bt=Tt;const At={class:"main"};function Ht(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",At,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Lt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.content});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Rt=(0,c.Z)(Lt,[["render",Ht]]);var Et=Rt;const Nt={class:"main"};function Ot(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Nt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var qt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.detail});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Jt=(0,c.Z)(qt,[["render",Ot]]);var Wt=Jt;const Zt={class:"main"};function Pt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Zt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var $t={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.other});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Mt=(0,c.Z)($t,[["render",Pt]]);var Yt=Mt;const Vt={class:"main"};function zt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Vt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ft={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.find});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Gt=(0,c.Z)(Ft,[["render",zt]]);var Qt=Gt;const Xt={class:"main"};function en(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Xt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var tn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.review});return{...(0,D.BK)(n),upData:e,getContent:t}}};const nn=(0,c.Z)(tn,[["render",en]]);var on=nn;const rn=e=>((0,r.dD)("data-v-63af33ef"),e=e(),(0,r.Cn)(),e),an={class:"left"},ln=rn((()=>(0,r._)("div",null,[(0,r._)("a",{href:"/"},"←主页"),(0,r._)("b",null,"订阅源")],-1))),cn=["onClick"],sn=["onClick"],un=["onClick"],dn=["onClick"];function hn(e,t,n,o,i,a){const l=(0,r.up)("router-link"),c=(0,r.up)("router-view"),s=(0,r.up)("edit-menu"),u=(0,r.up)("edit-out");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",an,[(0,r._)("div",null,[ln,(0,r._)("ul",null,[(0,r.Wm)(l,{to:{name:"rss-base"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 基础 ",10,cn)])),_:1}),(0,r.Wm)(l,{to:{name:"rss-list"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 列表 ",10,sn)])),_:1}),(0,r.Wm)(l,{to:{name:"rss-webView"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," WebView ",10,un)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"rss-other"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 其他 ",10,dn)])),_:1})])]),(0,r.Wm)(c,null,{default:(0,r.w5)((({Component:e})=>[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e)))],1024))])),_:1})]),(0,r.Wm)(s),(0,r.Wm)(u)],64)}var pn={components:{editMenu:xe,editOut:rt},setup(){const e=(0,D.qj)({});return(0,r.bv)((()=>{})),{...(0,D.BK)(e)}}};const gn=(0,c.Z)(pn,[["render",hn],["__scopeId","data-v-63af33ef"]]);var wn=gn;const vn={class:"main"};function mn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",vn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Sn={base:[{title:"源域名",rows:1,id:"sourceUrl",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"图标",rows:1,id:"sourceIcon",hint:"<选填>填写图片网络链接"},{title:"源名称",rows:1,id:"sourceName",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"sourceGroup",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"sourceComment",hint:"<选填>描述源作者和状态"},{title:"源变量说明",rows:1,id:"variableComment",hint:"<选填>源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",hint:"<选填>登录检测js"},{title:"并发率",rows:1,id:"concurrentRate",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",hint:"<选填>客户端标识"},{title:"分类地址",rows:3,id:"sortUrl",hint:"<选填>名称1::链接1\n名称2::链接2"}],list:[{title:"列表样式",rows:1,id:"articleStyle",hint:"<选填>0,1,2 (默认0)"},{title:"列表规则",rows:1,id:"ruleArticles",hint:"规则结果为List"},{title:"翻页规则",rows:1,id:"ruleNextPage",hint:"下一页链接 规则结果为List或String"},{title:"标题规则",rows:1,id:"ruleTitle",hint:"文章标题 规则结果为String"},{title:"时间规则",rows:1,id:"rulePubDate",hint:"文章发布时间 规则结果为String"},{title:"描述规则",rows:1,id:"ruleDescription",hint:"文章简要描述 规则结果为String"},{title:"图片规则",rows:1,id:"ruleImage",hint:"文章图片链接 规则结果为String"},{title:"链接规则",rows:1,id:"ruleLink",hint:"文章链接 规则结果为String"}],webView:[{title:"启用JS",rows:1,id:"enableJs",hint:"启用: true 关闭: false (可选,默认true)"},{title:"加载地址",rows:1,id:"loadWithBaseUrl",hint:"启用: true 关闭: false (可选,默认true)"},{title:"内容规则",rows:1,id:"ruleContent",hint:"文章正文"},{title:"样式规则",rows:3,id:"style",hint:"文章正文样式 填写css"}],other:[{title:"启用",rows:1,id:"enabled",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用CookieJar",rows:1,id:"enabledCookieJar",hint:"启用: true 关闭: false (可选,默认false)"},{title:"单URL",rows:1,id:"singleUrl",hint:"启用: true 关闭: false (可选,默认false)"},{title:"排序编号",rows:1,id:"customOrder",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]},fn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.base});return{...(0,D.BK)(n),upData:e,getContent:t}}};const _n=(0,c.Z)(fn,[["render",mn]]);var bn=_n;const Cn={class:"main"};function kn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Cn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var yn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.list});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Dn=(0,c.Z)(yn,[["render",kn]]);var Un=Dn;const In={class:"main"};function xn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",In,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Kn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.webView});return{...(0,D.BK)(n),upData:e,getContent:t}}};const jn=(0,c.Z)(Kn,[["render",xn]]);var Tn=jn;const Bn={class:"main"};function An(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Bn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Hn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.other});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Ln=(0,c.Z)(Hn,[["render",An]]);var Rn=Ln;const En=[{path:"/bookSource",name:"book-home",component:lt,redirect:{name:"book-base"},children:[{path:"/bookSource/base",name:"book-base",component:Ct},{path:"/bookSource/search",name:"book-search",component:It},{path:"/bookSource/find",name:"book-find",component:Qt},{path:"/bookSource/detail",name:"book-detail",component:Wt},{path:"/bookSource/directory",name:"book-directory",component:Bt},{path:"/bookSource/content",name:"book-content",component:Et},{path:"/bookSource/review",name:"book-review",component:on},{path:"/bookSource/other",name:"book-other",component:Yt}]},{path:"/rssSource",name:"rss-home",component:wn,redirect:{name:"rss-base"},children:[{path:"/rssSource/base",name:"rss-base",component:bn},{path:"/rssSource/list",name:"rss-list",component:Un},{path:"/rssSource/webView",name:"rss-webView",component:Tn},{path:"/rssSource/other",name:"rss-other",component:Rn}]}],Nn=(0,d.p7)({history:(0,d.r5)(),routes:En});var On=Nn;(0,o.ri)(u).use(le).use(On).mount("#app")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,o,r,i){if(!o){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](o[c])}))?o.splice(c--,1):(l=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[o,r,i]}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={143:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,i,a=o[0],l=o[1],c=o[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(c)var u=c(n)}for(t&&t(o);s((0,r.dD)("data-v-0fc56f5e"),e=e(),(0,r.Cn)(),e),g={class:"left"},w=p((()=>(0,r._)("div",null,[(0,r._)("a",{href:"/"},"←主页"),(0,r._)("b",null,"书源")],-1))),v=["onClick"],m=["onClick"],S=["onClick"],f=["onClick"],_=["onClick"],C=["onClick"],b=["onClick"],k=["onClick"];function y(e,t,n,o,i,a){const l=(0,r.up)("router-link"),c=(0,r.up)("router-view"),s=(0,r.up)("edit-menu"),u=(0,r.up)("edit-out");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",g,[(0,r._)("div",null,[w,(0,r._)("ul",null,[(0,r.Wm)(l,{to:{name:"book-base"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 基础 ",10,v)])),_:1}),(0,r.Wm)(l,{to:{name:"book-search"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 搜索 ",10,m)])),_:1}),(0,r.Wm)(l,{to:{name:"book-find"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 发现 ",10,S)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-detail"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 详情 ",10,f)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-directory"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 目录 ",10,_)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-content"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 正文 ",10,C)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-review"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 段评 ",10,b)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"book-other"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 其他 ",10,k)])),_:1})])]),(0,r.Wm)(c,null,{default:(0,r.w5)((({Component:e})=>[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e)))],1024))])),_:1})]),(0,r.Wm)(s),(0,r.Wm)(u)],64)}var D=n(2262);n(7658);const U=e=>((0,r.dD)("data-v-0cc5d4a4"),e=e(),(0,r.Cn)(),e),I={class:"menu"},x=(0,r.Uk)("⇈推送源 "),K=U((()=>(0,r._)("span",null,"Ctrl+P",-1))),j=[x,K],T=(0,r.Uk)("⇊拉取源 "),B=U((()=>(0,r._)("span",null,"Shift+P",-1))),A=[T,B],L=(0,r.Uk)("⋙生成源"),H=U((()=>(0,r._)("span",null,"Ctrl+E",-1))),R=[L,H],E=(0,r.Uk)(" ✗清空表单"),N=U((()=>(0,r._)("span",null,"Shift+C",-1))),O=[E,N],q=(0,r.Uk)("↶撤销操作"),J=U((()=>(0,r._)("span",null,"Ctrl+Z",-1))),W=[q,J],Z=(0,r.Uk)("↷重做操作"),P=U((()=>(0,r._)("span",null,"Shift+R",-1))),$=[Z,P],M=(0,r.Uk)(" ⇏调试源 "),Y=U((()=>(0,r._)("span",null,"Ctrl+Enter",-1))),V=[M,Y],z=(0,r.Uk)(" ✓保存源"),F=U((()=>(0,r._)("span",null,"Ctrl+S",-1))),G=[z,F];function Q(e,t,n,o,i,a){const l=(0,r.up)("edit-loading"),c=(0,r.up)("edit-warn"),s=(0,r.up)("edit-success");return(0,r.wg)(),(0,r.iD)("div",I,[(0,r._)("div",null,[o.showLoading?((0,r.wg)(),(0,r.j4)(l,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(c,{text:o.warnText,"is-show":o.warnShow,onChangeShow:o.changeShow},null,8,["text","is-show","onChangeShow"]),o.successShow?((0,r.wg)(),(0,r.j4)(s,{key:1,isShow:o.successShow,onChangeShow:o.changeSuccessShow,text:o.successText},null,8,["isShow","onChangeShow","text"])):(0,r.kq)("",!0)]),(0,r._)("button",{onClick:t[0]||(t[0]=(...e)=>o.push&&o.push(...e)),title:"Ctrl+P"},j),(0,r._)("button",{onClick:t[1]||(t[1]=(...e)=>o.pull&&o.pull(...e)),title:"Shift+P"},A),(0,r._)("button",{onClick:t[2]||(t[2]=(...e)=>o.conver&&o.conver(...e)),title:"Ctrl+E"},R),(0,r._)("button",{onClick:t[3]||(t[3]=(...e)=>o.clearEdit&&o.clearEdit(...e)),title:"Shift+C"},O),(0,r._)("button",{onClick:t[4]||(t[4]=(...e)=>o.undo&&o.undo(...e)),title:"Ctrl+Z"},W),(0,r._)("button",{onClick:t[5]||(t[5]=(...e)=>o.redo&&o.redo(...e)),title:"Shift+R"},$),(0,r._)("button",{onClick:t[6]||(t[6]=(...e)=>o.debug&&o.debug(...e)),title:"Ctrl+Enter"},V),(0,r._)("button",{onClick:t[7]||(t[7]=(...e)=>o.saveSource&&o.saveSource(...e)),title:"Ctrl+S"},G)])}function X(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json()))}function ee(e){return fetch(e).then((e=>e.json()))}function te(e,t=!0){let n=/bookSource/.test(location.href),o=`http://${localStorage.getItem("url")||location.host}/`,r=n?"BookSource":"RssSource";return`${o}${e}${r}${t?"s":""}`}function ne(){return ee(te("get"))}function oe(e){return X(te("save"),e)}function re(e){return X(te("save",!1),e)}function ie(e){return X(te("delete"),e)}var ae=n(3907),le=(0,ae.MT)({state:{url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSourceInfo:{},deBugMsg:"",searchKey:""},getters:{},mutations:{changeSearchKey(e,t){e.searchKey=t},saveSources(e,t){/bookSource/.test(location.href)?e.bookSources=t:e.rssSources=t},changeCurrentSource(e,t){const n=JSON.stringify(t);e.currentSource=JSON.parse(n)},changeCurrentSourceValue(e,t){let n={true:!0,false:!1},o=n[t.value]||t.value;if(/\d+/.test(o)&&(o=parseInt(o)),t.type.includes("_")){let n=t.type.split("_")[0],r=t.type.split("_")[1],i={};i[r]=o,e.currentSource[n]=Object.assign(e.currentSource[n]||{},i)}else e.currentSource[t.type]=o;e.currentSource.lastUpdateTime=(new Date).getTime()},changeTabName(e,t){e.currentTab=t,localStorage.setItem("tabName",t),console.log(t)},changeEidtTabSourceInfo(e){e.editTabSourceInfo=e.currentSource},editHistory(e,t){let n;if(localStorage.getItem("history"))n=JSON.parse(localStorage.getItem("history")),n.new.push(t),n.new.length>50&&n.new.shift(),n.old.length>50&&n.old.shift(),localStorage.setItem("history",JSON.stringify(n));else{const e={new:[t],old:[]};localStorage.setItem("history",JSON.stringify(e))}},editHistoryUndo(e){if(localStorage.getItem("history")){let t=JSON.parse(localStorage.getItem("history"));t.old.push(e.currentSource),t.new.length&&(e.currentSource=t.new.pop()),localStorage.setItem("history",JSON.stringify(t))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(e){e.editTabSourceInfo={},e.currentSource={}},appendDeBugMsg(e,t){let n=document.querySelector("#debug_text");n.scrollTop=n.scrollHeight,e.deBugMsg+=t+"\n"},clearDeBugMsg(e){e.deBugMsg=""},clearAllSource(e){e.bookSources=[],e.rssSources=[]}},actions:{},modules:{}});const ce=e=>((0,r.dD)("data-v-ab8a8a34"),e=e(),(0,r.Cn)(),e),se={class:"fixed"},ue=ce((()=>(0,r._)("div",{class:"half-circle-spinner"},[(0,r._)("div",{class:"circle circle-1"}),(0,r._)("div",{class:"circle circle-2"})],-1))),de=[ue];function he(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",se,de)}var pe={name:"editLoading"};const ge=(0,c.Z)(pe,[["render",he],["__scopeId","data-v-ab8a8a34"]]);var we=ge;const ve={key:0,class:"warm"};function me(e,t,n,o,i,a){return n.isShow?((0,r.wg)(),(0,r.iD)("div",ve,[(0,r._)("p",null,(0,h.zw)(n.text),1),(0,r._)("div",null,[(0,r._)("button",{onClick:t[0]||(t[0]=(...e)=>o.changeShow&&o.changeShow(...e))},"关闭")])])):(0,r.kq)("",!0)}var Se={name:"editWarm",props:{isShow:{default:!1,type:Boolean},text:{type:String,default:""}},setup(e,{emit:t}){const n=()=>{t("changeShow",!e.isShow)};return{changeShow:n}}};const fe=(0,c.Z)(Se,[["render",me],["__scopeId","data-v-27eae50d"]]);var _e=fe;const Ce={class:"success"};function be(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",Ce,[(0,r._)("p",null,(0,h.zw)(n.text),1)])}var ke={props:{text:{type:String,default:""},isShow:{type:Boolean,default:!1}},emits:["changeShow"],setup(e,{emit:t}){return setTimeout((()=>{t("changeShow",!e.isShow)}),3e3),{}}};const ye=(0,c.Z)(ke,[["render",be],["__scopeId","data-v-bef92f74"]]);var De=ye,Ue={components:{editLoading:we,editWarn:_e,editSuccess:De},setup(){const e=(0,D.iH)(!1),t=(0,D.iH)(!1),n=(0,D.iH)(""),o=(0,D.iH)(!1),i=(0,D.iH)(""),a=e=>{t.value=e},l=e=>{console.log(e),o.value=e},c=()=>{e.value=!0,ne().then((r=>{e.value=!1,r.isSuccess?(le.commit("changeTabName","editList"),le.commit("saveSources",r.data),n.value=`成功拉取${r.data.length}条源`,o.value=!0):(i.value=r.errorMsg,t.value=!0)})).catch((n=>{console.log(n),e.value=!1,i.value=" 请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务",t.value=!0}))},s=()=>{n.value="正在推送中",o.value=!0,e.value=!0;let r=/bookSource/.test(location.href)?le.state.bookSources:le.state.rssSources;oe(r).then((a=>{if(a.isSuccess){let e=a.data;if(Array.isArray(e)){let t="";r.length>e.length&&(r.forEach((t=>{e.find((e=>e.bookSourceUrl===t.bookSourceUrl))||console.log(t.bookSourceUrl)})),t="\n推送失败的源将用红色字体标注!"),n.value=`批量推送源到「阅读3.0APP」\n共计: ${r.length} 条\n成功: ${e.length} 条\n失败: ${r.length-e.length} 条${t}`,o.value=!0}else n.value=`批量推送源到「阅读3.0APP」成功!\n共计: ${r.length} 条`,o.value=!0}else i.value=`批量推送源失败!\nErrorMsg: ${a.errorMsg}`,t.value=!0;e.value=!1})).catch((n=>{console.log(n),e.value=!1,t.value=!0,i.value="请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务"}))},u=()=>{le.commit("changeEidtTabSourceInfo"),le.commit("changeTabName","editTab")},d=()=>{le.commit("editHistoryUndo")},h=()=>{le.commit("clearEdit"),console.log("已清除"),n.value="已清除",o.value=!0},p=()=>{le.commit("clearEdit"),le.commit("clearAllHistory"),n.value="已清除所有历史记录",o.value=!0},g=()=>{let e=/bookSource/.test(location.href),r=le.state.currentSource;e&&""!==r.bookSourceUrl&&""!==r.bookSourceType&&""!==r.bookSourceName||!e&&""!==r.sourceUrl&&""!==r.sourceName?re(r).then((a=>{a.isSuccess?(n.value=`源《${e?r.bookSourceName:r.sourceName}》已成功保存到「阅读3.0APP」`,o.value=!0):(i.value=`源《${e?r.bookSourceName:r.sourceName}》保存失败!\nErrorMsg: ${a.errorMsg}`,t.value=!0)})):(i.value="请检查<必填>项是否全部填写",t.value=!0)},w=()=>{e.value=!0,le.commit("clearDeBugMsg"),le.commit("changeTabName","editDebug");let t=/bookSource/.test(location.href),r=le.state.currentSource;re(r).then((i=>{console.log(i);let a="ws://"+(localStorage.getItem("url")||location.host).replace(/\d+$/,(e=>parseInt(e)+1))+"/"+(t?"bookSourceDebug":"rssSourceDebug");console.log(a);const l=new WebSocket(a);let c="",s=t?r.bookSourceUrl:r.sourceUrl;t&&(c=r.ruleSearch.checkKeyWord?r.ruleSearch.checkKeyWord:le.state.searchKey?le.state.searchKey:"我的"),l.onopen=()=>{l.send(`{"tag":"${s}", "key":"${c}"}`)},l.onmessage=e=>{le.commit("appendDeBugMsg",e.data)},l.onclose=()=>{e.value=!1,n.value="调试已关闭!",o.value=!0,le.commit("appendDeBugMsg","调试已关闭!")}}))};return(0,r.bv)((()=>{document.onkeydown=e=>{(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&w(),(e.ctrlKey||e.metaKey)&&"s"===e.key&&(g(),e.preventDefault()),e.shiftKey&&"R"===e.key&&p(),e.shiftKey&&"C"===e.key&&h(),e.ctrlKey&&"e"===e.key&&(u(),e.preventDefault()),e.shiftKey&&"P"===e.key&&c(),e.ctrlKey&&"p"===e.key&&(s(),e.preventDefault())}})),{debug:w,push:s,pull:c,clearEdit:h,showLoading:e,changeShow:a,warnShow:t,successText:n,changeSuccessShow:l,successShow:o,undo:d,redo:p,conver:u,warnText:i,saveSource:g}}};const Ie=(0,c.Z)(Ue,[["render",Q],["__scopeId","data-v-0cc5d4a4"]]);var xe=Ie;const Ke={class:"out"};function je(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",Ke,[(0,r._)("ul",null,[(0,r._)("li",{class:(0,h.C_)("editTab"===e.current_tab?"active":""),onClick:t[0]||(t[0]=e=>o.handleSetActive("editTab"))}," 编辑源 ",2),(0,r._)("li",{class:(0,h.C_)("editDebug"===e.current_tab?"active":""),onClick:t[1]||(t[1]=e=>o.handleSetActive("editDebug"))}," 调试源 ",2),(0,r._)("li",{class:(0,h.C_)("editList"===e.current_tab?"active":""),onClick:t[2]||(t[2]=e=>o.handleSetActive("editList"))}," 源列表 ",2),(0,r._)("li",{class:(0,h.C_)("editHelp"===e.current_tab?"active":""),onClick:t[3]||(t[3]=e=>o.handleSetActive("editHelp"))}," 帮助信息 ",2)]),((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.current_tab)))],1024))])}function Te(e,t,n,i,a,l){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("textarea",{placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP","onUpdate:modelValue":t[0]||(t[0]=t=>e.sourceInfo=t)},null,512)),[[o.nr,e.sourceInfo]])}var Be={name:"editTab",setup(){const e=(0,D.qj)({sourceInfo:""});return(0,r.m0)((()=>{let t=le.state.editTabSourceInfo;Object.keys(t).length>0?(t.lastUpdateTime=(new Date).getTime(),e.sourceInfo=JSON.stringify(t,null,4)):e.sourceInfo=""})),{...(0,D.BK)(e)}}};const Ae=(0,c.Z)(Be,[["render",Te],["__scopeId","data-v-4301c68c"]]);var Le=Ae;function He(e,t,n,i,a,l){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i.isBookSource?(0,r.wy)(((0,r.wg)(),(0,r.iD)("input",{key:0,type:"text",style:{"text-align":"center",border:"1px solid #dddddd","border-radius":"4px"},placeholder:"输入搜索关键字,默认搜「我的」","onUpdate:modelValue":t[0]||(t[0]=t=>e.searchKey=t),onInput:t[1]||(t[1]=t=>i.changeSearch(e.searchKey)),onKeydown:t[2]||(t[2]=(0,o.D2)(((...e)=>i.startSearch&&i.startSearch(...e)),["enter"])),title:"输入关键词 enter(回车键)快捷搜索"},null,544)),[[o.nr,e.searchKey]]):(0,r.kq)("",!0),(0,r.wy)((0,r._)("textarea",{placeholder:"这里用于输出调试信息","onUpdate:modelValue":t[3]||(t[3]=t=>e.printDebug=t),ref:"textareaDom",id:"debug_text"},null,512),[[o.nr,e.printDebug]])],64)}var Re={name:"editDebug",setup(){const e=(0,D.iH)(""),t=(0,D.qj)({printDebug:le.state.deBugMsg,searchKey:""}),n=e=>{le.commit("changeSearchKey",e)};(0,r.m0)((()=>{t.printDebug=le.state.deBugMsg}));const o=()=>{document.querySelectorAll(".menu>button")[6].click()},i=(0,r.Fl)((()=>/bookSource/.test(window.location.href)));return{...(0,D.BK)(t),textareaDom:e,changeSearch:n,startSearch:o,isBookSource:i}}};const Ee=(0,c.Z)(Re,[["render",He],["__scopeId","data-v-28b882dd"]]);var Ne=Ee;const Oe={style:{display:"flex","flex-flow":"column"}},qe={class:"tool"},Je={class:"source_list"},We=["value"],Ze={class:"book_index"},Pe=["onClick"],$e={class:"book_info"},Me={key:0};function Ye(e,t,n,i,a,l){return(0,r.wg)(),(0,r.iD)("div",Oe,[(0,r.wy)((0,r._)("input",{class:"search",type:"text",placeholder:"输入筛选关键词(源名称、源URL或源分组)输入自动筛选源","onUpdate:modelValue":t[0]||(t[0]=t=>e.searchKey=t),onFocus:t[1]||(t[1]=t=>e.delArr=[])},null,544),[[o.nr,e.searchKey]]),(0,r._)("div",null,[(0,r._)("div",qe,[(0,r._)("button",{onClick:t[2]||(t[2]=(...e)=>i.upFile&&i.upFile(...e))},"导入书源文件"),(0,r._)("button",{onClick:t[3]||(t[3]=(...e)=>i.outExport&&i.outExport(...e))},"导出书源文件"),(0,r._)("button",{onClick:t[4]||(t[4]=(...e)=>i.deleteActiveSource&&i.deleteActiveSource(...e))},"删除选中源"),(0,r._)("button",{onClick:t[5]||(t[5]=(...e)=>i.clearAllSources&&i.clearAllSources(...e))},"清空列表")]),(0,r._)("div",Je,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.filtedSources,((n,a)=>((0,r.wg)(),(0,r.iD)("div",{key:n.bookSourceUrl||n.sourceUrl,class:(0,h.C_)(["book_item",a===i.currentActive?"book_active":""])},[(0,r.wy)((0,r._)("input",{type:"checkbox",value:a,"onUpdate:modelValue":t[6]||(t[6]=t=>e.delArr=t)},null,8,We),[[o.e8,e.delArr]]),(0,r._)("div",Ze,(0,h.zw)(a+1),1),(0,r._)("div",{style:{"margin-left":"10px",flex:"1"},onClick:e=>i.handleItemClick(a)},[(0,r._)("div",$e,[(0,r._)("span",null,(0,h.zw)(n.bookSourceName||n.sourceName),1),i.isBookSource?((0,r.wg)(),(0,r.iD)("span",Me,"最后修改:"+(0,h.zw)(i.formatTime(n.lastUpdateTime)),1)):(0,r.kq)("",!0),(0,r._)("span",null,"分组:"+(0,h.zw)(n.bookSourceGroup||n.sourceGroup||"无分组"),1)]),(0,r._)("div",null,(0,h.zw)(n.bookSourceUrl||n.sourceUrl),1)],8,Pe)],2)))),128))])])])}var Ve={name:"editList",setup(){let e=(0,D.qj)({searchKey:"",delArr:[],sources:[],filtedSources:[]}),t=(0,D.iH)(null);const n=n=>{t.value=n,le.commit("clearEdit"),le.commit("changeCurrentSource",e.filtedSources[n])},o=()=>{le.commit("clearAllSource")},i=e=>{if(!e)return null;const t=new Date(e),n=t.getFullYear();let o=t.getMonth()+1;o=o<10?"0"+o:o;let r=t.getDate();r=r<10?"0"+r:r;let i=t.getHours();i=i<10?"0"+i:i;let a=t.getMinutes();a=a<10?"0"+a:a;let l=t.getSeconds();return l=l<10?"0"+l:l,n+"-"+o+"-"+r+" "+i+":"+a+":"+l},a=(t,n)=>{if(""===n)return e.sources;let o=/bookSource/.test(location.href);return o?t.filter((e=>e.bookSourceName.toUpperCase().includes(n.toUpperCase())||(e.bookSourceGroup||"").toUpperCase().includes(n.toUpperCase())||e.bookSourceUrl.toUpperCase().includes(n.toUpperCase()))):t.filter((e=>e.sourceName.toUpperCase().includes(n.toUpperCase())||(e.sourceGroup||"").toUpperCase().includes(n.toUpperCase())||e.sourceUrl.toUpperCase().includes(n.toUpperCase())))};(0,r.m0)((()=>{const t=/bookSource/.test(location.href),n=t?le.state.bookSources:le.state.rssSources;e.sources=n})),(0,r.m0)((()=>{e.filtedSources=a(e.sources,e.searchKey)}));const l=(0,r.Fl)((()=>/bookSource/.test(window.location.href))),c=()=>{if(0===e.delArr.length)return console.log("没有选中的书源"),!1;const t=[];e.delArr.forEach((n=>{t.push(e.filtedSources[n])})),ie(t).then((t=>{t.isSuccess?(console.log("删除成功"),e.delArr.forEach((t=>{let[n]=e.filtedSources.splice(t,1);e.sources=e.sources.filter((e=>e!=n))})),e.delArr=[]):console.log("错误",t)}))},s=()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.addEventListener("change",(e=>{const t=e.target.files[0];var n=new FileReader;n.readAsText(t),n.onload=()=>{const e=JSON.parse(n.result);le.commit("saveSources",e)}})),e.click()},u=()=>{const e=document.createElement("a");let t=/bookSource/.test(location.href),n=t?le.state.bookSources:le.state.rssSources,o=t?"BookSource":"RssSource";e.download=`${o}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let r=new Blob([JSON.stringify(n,null,4)],{type:"application/json"});e.href=window.URL.createObjectURL(r),e.click()};return{currentActive:t,isBookSource:l,deleteActiveSource:c,handleItemClick:n,...(0,D.BK)(e),formatTime:i,clearAllSources:o,upFile:s,outExport:u}}};const ze=(0,c.Z)(Ve,[["render",Ye],["__scopeId","data-v-6c074651"]]);var Fe=ze;const Ge=(0,r.uE)('书源制作教程xpath基础教程xpath高级教程正则表达式教程正则表达式在线验证工具
^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
(?s) 前缀表示跨行解析
(?m) 前缀表示逐行匹配
(?i) 前缀表示忽略大小写
',6);function Qe(e,t,n,o,r,i){return Ge}var Xe={name:"editHelp"};const et=(0,c.Z)(Xe,[["render",Qe],["__scopeId","data-v-7ac1e65e"]]);var tt=et,nt={name:"editOut",components:{editDebug:Ne,editTab:Le,editList:Fe,editHelp:tt},setup(){const e=(0,D.qj)({url:localStorage.getItem("url")||"",current_tab:le.state.currentTab||"editTab"}),t=e=>{le.commit("changeTabName",e)},n=e=>{le.commit("changeUrl",e)};(0,r.m0)((()=>{e.current_tab=le.state.currentTab}));const o=()=>{document.querySelectorAll(".menu>button")[1].click()};return{...(0,D.BK)(e),handleSetActive:t,changInput:n,pullSource:o}}};const ot=(0,c.Z)(nt,[["render",je]]);var rt=ot,it={components:{editMenu:xe,editOut:rt},setup(){const e=(0,D.qj)({});return(0,r.bv)((()=>{})),{...(0,D.BK)(e)}}};const at=(0,c.Z)(it,[["render",y],["__scopeId","data-v-0fc56f5e"]]);var lt=at;const ct={class:"main"};function st(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",ct,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}const ut=e=>((0,r.dD)("data-v-2ede5ef6"),e=e(),(0,r.Cn)(),e),dt={class:"edit_input"},ht=ut((()=>(0,r._)("i",null,":",-1))),pt=["id","placeholder","rows","value"];function gt(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("div",dt,[(0,r._)("span",null,[(0,r.Uk)((0,h.zw)(n.title),1),ht]),(0,r._)("textarea",{id:n.type,placeholder:n.hint,rows:n.rows,value:n.content,ref:"attr",onInput:t[0]||(t[0]=(...e)=>o.change&&o.change(...e)),onBlur:t[1]||(t[1]=(...e)=>o.changeHistory&&o.changeHistory(...e)),onFocus:t[2]||(t[2]=(...e)=>o.changeHeight&&o.changeHeight(...e))},null,40,pt)])}var wt={props:{title:{type:String,default:""},rows:{type:Number,default:1},hint:{type:String,default:""},type:{type:String,default:""},content:{type:[String,Number,Boolean],default:""}},emits:["changeContent"],setup(e,{emit:t}){const n=(0,D.iH)(""),o=()=>{t("changeContent",{value:n.value.value,type:n.value.getAttribute("id")})},i=()=>{localStorage.getItem("history")||localStorage.setItem("history",JSON.stringify({new:[],old:[]}));const e=JSON.parse(localStorage.getItem("history")),t=e.new;if(t.length){const e=n.value.getAttribute("id");if(e.includes("_")||t[t.length-1][e]===le.state.currentSource[e]){if(e.includes("_")){let n=e.split("_")[0],o=e.split("_")[1];t[t.length-1][n][o]!==le.state.currentSource[n][o]&&le.commit("editHistory",le.state.currentSource)}}else le.commit("editHistory",le.state.currentSource)}else le.commit("editHistory",le.state.currentSource)},a=()=>{(0,r.Y3)((()=>{let e=n.value;const t=e.scrollHeight,o=e.offsetHeight;o<=t&&(e.style.height="auto",e.style.height=e.scrollHeight+"px")}))};return{changeHistory:i,change:o,attr:n,changeHeight:a}}};const vt=(0,c.Z)(wt,[["render",gt],["__scopeId","data-v-2ede5ef6"]]);var mt=vt,St={base:[{title:"源域名",rows:1,id:"bookSourceUrl",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"源类型",rows:1,id:"bookSourceType",hint:"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)"},{title:"源名称",rows:1,id:"bookSourceName",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"bookSourceGroup",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"bookSourceComment",hint:"<选填>描述源作者和状态"},{title:"书源变量说明",rows:1,id:"variableComment",hint:"<选填>书源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",hint:"<选填>登录检测js"},{title:"并发率",rows:1,id:"concurrentRate",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",hint:"<选填>客户端标识"},{title:"链接验证",rows:1,id:"bookUrlPattern",hint:"<选填>当详情页URL与源URL的域名不一致时有效,用于添加网址"}],search:[{title:"搜索地址",rows:1,id:"searchUrl",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",rows:1,id:"ruleSearch_checkKeyWord",hint:"校验关键字"},{title:"列表规则",rows:1,id:"ruleSearch_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleSearch_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleSearch_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleSearch_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleSearch_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleSearch_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleSearch_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleSearch_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleSearch_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],find:[{title:"发现地址",rows:6,id:"exploreUrl",hint:"内容能显示在发现菜单\n每行一条发现分类(网址域名可省略),例:\n名称1::网址(Url)1\n名称2::网址(Url)2\n..."},{title:"列表规则",rows:1,id:"ruleExplore_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleExplore_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleExplore_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleExplore_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleExplore_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleExplore_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleExplore_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleExplore_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleExplore_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],detail:[{title:"预处理",rows:3,id:"ruleBookInfo_init",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",rows:1,id:"ruleBookInfo_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleBookInfo_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleBookInfo_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleBookInfo_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleBookInfo_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleBookInfo_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleBookInfo_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",rows:1,id:"ruleBookInfo_tocUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",rows:1,id:"ruleBookInfo_downloadUrls",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"允许修改书名作者",rows:1,id:"ruleBookInfo_canReName",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}],directory:[{title:"更新前JS",rows:3,id:"ruleToc_preUpdateJs",hint:"动态更新书籍目录链接"},{title:"列表规则",rows:3,id:"ruleToc_chapterList",hint:"选择目录列表的章节节点 (规则结果为List)"},{title:"章节名称",rows:1,id:"ruleToc_chapterName",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",rows:1,id:"ruleToc_chapterUrl",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",rows:1,id:"ruleToc_isVolume",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",rows:1,id:"ruleToc_isVip",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",rows:1,id:"ruleToc_isPay",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",rows:1,id:"ruleToc_updateTime",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleToc_nextTocUrl",hint:"选择目录下一页链接 (规则结果为List或String)"}],content:[{title:"脚本注入",rows:3,id:"ruleContent_webJs",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",rows:1,id:"ruleContent_content",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleContent_nextContentUrl",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",rows:1,id:"ruleContent_sourceRegex",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",rows:1,id:"ruleContent_replaceRegex",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",rows:1,id:"ruleContent_imageStyle",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",rows:1,id:"ruleContent_payAction",hint:"填写JavaScript 返回购买链接或者调用购买接口"},{title:"图片解密",rows:1,id:"ruleContent_imageDecode",hint:"填写JavaScript 返回解密图片的bytes "}],review:[{title:"段评URL",rows:1,id:"ruleReview_reviewUrl",hint:"段评URL"},{title:"段评发布者头像",rows:1,id:"ruleReview_avatarRule",hint:"段评发布者头像"},{title:"段评内容",rows:1,id:"ruleReview_contentRule",hint:"段评内容"},{title:"段评发布时间",rows:1,id:"ruleReview_postTimeRule",hint:"段评发布时间"},{title:"获取段评回复URL",rows:1,id:"ruleReview_reviewQuoteUrl",hint:"获取段评回复URL"},{title:"点赞URL",rows:1,id:"ruleReview_voteUpUrl",hint:"点赞URL"},{title:"点踩URL",rows:1,id:"ruleReview_voteDownUrl",hint:"点踩URL"},{title:"发送回复URL",rows:1,id:"ruleReview_postReviewUrl",hint:"发送回复URL"},{title:"发送回复段评URL",rows:1,id:"ruleReview_postQuoteUrl",hint:"发送回复段评URL"},{title:"删除段评URL",rows:1,id:"ruleReview_deleteUrl",hint:"删除段评URL"}],other:[{title:"启用搜索",rows:1,id:"enabled",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用发现",rows:1,id:"enabledExplore",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用段评",rows:1,id:"enabledReview",hint:"启用: true 关闭: false (可选,默认false)"},{title:"启用CookieJar",rows:1,id:"enabledCookieJar",hint:"启用: true 关闭: false (可选,默认false)"},{title:"搜索权重",rows:1,id:"weight",hint:"整数: 0~N (可选,默认0) | 数字越大越靠前"},{title:"排序编号",rows:1,id:"customOrder",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]};function ft(){const e=(0,D.qj)({currentSource:le.state.currentSource}),t=e=>{le.commit("changeCurrentSourceValue",e)},n=t=>{try{if(t.includes("_")){let n=t.split("_")[0],o=t.split("_")[1],r=e.currentSource[n];return r?r[o]:null}return e.currentSource[t]}catch(n){console.log("导入错误",n.TypeError),le.commit("clearEdit")}};return(0,r.m0)((()=>{e.currentSource=le.state.currentSource})),{...(0,D.BK)(e),upData:t,getContent:n}}var _t={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.base});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Ct=(0,c.Z)(_t,[["render",st]]);var bt=Ct;const kt={class:"main"};function yt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",kt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Dt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.search});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Ut=(0,c.Z)(Dt,[["render",yt]]);var It=Ut;const xt={class:"main"};function Kt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",xt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var jt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.directory});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Tt=(0,c.Z)(jt,[["render",Kt]]);var Bt=Tt;const At={class:"main"};function Lt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",At,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ht={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.content});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Rt=(0,c.Z)(Ht,[["render",Lt]]);var Et=Rt;const Nt={class:"main"};function Ot(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Nt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var qt={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.detail});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Jt=(0,c.Z)(qt,[["render",Ot]]);var Wt=Jt;const Zt={class:"main"};function Pt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Zt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var $t={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.other});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Mt=(0,c.Z)($t,[["render",Pt]]);var Yt=Mt;const Vt={class:"main"};function zt(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Vt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ft={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.find});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Gt=(0,c.Z)(Ft,[["render",zt]]);var Qt=Gt;const Xt={class:"main"};function en(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Xt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var tn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:St.review});return{...(0,D.BK)(n),upData:e,getContent:t}}};const nn=(0,c.Z)(tn,[["render",en]]);var on=nn;const rn=e=>((0,r.dD)("data-v-63af33ef"),e=e(),(0,r.Cn)(),e),an={class:"left"},ln=rn((()=>(0,r._)("div",null,[(0,r._)("a",{href:"/"},"←主页"),(0,r._)("b",null,"订阅源")],-1))),cn=["onClick"],sn=["onClick"],un=["onClick"],dn=["onClick"];function hn(e,t,n,o,i,a){const l=(0,r.up)("router-link"),c=(0,r.up)("router-view"),s=(0,r.up)("edit-menu"),u=(0,r.up)("edit-out");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",an,[(0,r._)("div",null,[ln,(0,r._)("ul",null,[(0,r.Wm)(l,{to:{name:"rss-base"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 基础 ",10,cn)])),_:1}),(0,r.Wm)(l,{to:{name:"rss-list"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 列表 ",10,sn)])),_:1}),(0,r.Wm)(l,{to:{name:"rss-webView"},custom:""},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," WebView ",10,un)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"rss-other"}},{default:(0,r.w5)((({navigate:e,isActive:t})=>[(0,r._)("li",{onClick:e,class:(0,h.C_)({active:t?"active":""})}," 其他 ",10,dn)])),_:1})])]),(0,r.Wm)(c,null,{default:(0,r.w5)((({Component:e})=>[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(e)))],1024))])),_:1})]),(0,r.Wm)(s),(0,r.Wm)(u)],64)}var pn={components:{editMenu:xe,editOut:rt},setup(){const e=(0,D.qj)({});return(0,r.bv)((()=>{})),{...(0,D.BK)(e)}}};const gn=(0,c.Z)(pn,[["render",hn],["__scopeId","data-v-63af33ef"]]);var wn=gn;const vn={class:"main"};function mn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",vn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Sn={base:[{title:"源域名",rows:1,id:"sourceUrl",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"图标",rows:1,id:"sourceIcon",hint:"<选填>填写图片网络链接"},{title:"源名称",rows:1,id:"sourceName",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"sourceGroup",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"sourceComment",hint:"<选填>描述源作者和状态"},{title:"源变量说明",rows:1,id:"variableComment",hint:"<选填>源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",hint:"<选填>登录检测js"},{title:"并发率",rows:1,id:"concurrentRate",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",hint:"<选填>客户端标识"},{title:"分类地址",rows:3,id:"sortUrl",hint:"<选填>名称1::链接1\n名称2::链接2"}],list:[{title:"列表样式",rows:1,id:"articleStyle",hint:"<选填>0,1,2 (默认0)"},{title:"列表规则",rows:1,id:"ruleArticles",hint:"规则结果为List"},{title:"翻页规则",rows:1,id:"ruleNextPage",hint:"下一页链接 规则结果为List或String"},{title:"标题规则",rows:1,id:"ruleTitle",hint:"文章标题 规则结果为String"},{title:"时间规则",rows:1,id:"rulePubDate",hint:"文章发布时间 规则结果为String"},{title:"描述规则",rows:1,id:"ruleDescription",hint:"文章简要描述 规则结果为String"},{title:"图片规则",rows:1,id:"ruleImage",hint:"文章图片链接 规则结果为String"},{title:"链接规则",rows:1,id:"ruleLink",hint:"文章链接 规则结果为String"}],webView:[{title:"启用JS",rows:1,id:"enableJs",hint:"启用: true 关闭: false (可选,默认true)"},{title:"加载地址",rows:1,id:"loadWithBaseUrl",hint:"启用: true 关闭: false (可选,默认true)"},{title:"内容规则",rows:1,id:"ruleContent",hint:"文章正文"},{title:"样式规则",rows:3,id:"style",hint:"文章正文样式 填写css"}],other:[{title:"启用",rows:1,id:"enabled",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用CookieJar",rows:1,id:"enabledCookieJar",hint:"启用: true 关闭: false (可选,默认false)"},{title:"单URL",rows:1,id:"singleUrl",hint:"启用: true 关闭: false (可选,默认false)"},{title:"排序编号",rows:1,id:"customOrder",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]},fn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.base});return{...(0,D.BK)(n),upData:e,getContent:t}}};const _n=(0,c.Z)(fn,[["render",mn]]);var Cn=_n;const bn={class:"main"};function kn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",bn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var yn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.list});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Dn=(0,c.Z)(yn,[["render",kn]]);var Un=Dn;const In={class:"main"};function xn(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",In,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Kn={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.webView});return{...(0,D.BK)(n),upData:e,getContent:t}}};const jn=(0,c.Z)(Kn,[["render",xn]]);var Tn=jn;const Bn={class:"main"};function An(e,t,n,o,i,a){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Bn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.j4)(l,{key:t,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:o.getContent(e.id),onChangeContent:o.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ln={components:{editInput:mt},setup(){const{upData:e,getContent:t}=ft(),n=(0,D.qj)({data:Sn.other});return{...(0,D.BK)(n),upData:e,getContent:t}}};const Hn=(0,c.Z)(Ln,[["render",An]]);var Rn=Hn;const En=[{path:"/bookSource",name:"book-home",component:lt,redirect:{name:"book-base"},children:[{path:"/bookSource/base",name:"book-base",component:bt},{path:"/bookSource/search",name:"book-search",component:It},{path:"/bookSource/find",name:"book-find",component:Qt},{path:"/bookSource/detail",name:"book-detail",component:Wt},{path:"/bookSource/directory",name:"book-directory",component:Bt},{path:"/bookSource/content",name:"book-content",component:Et},{path:"/bookSource/review",name:"book-review",component:on},{path:"/bookSource/other",name:"book-other",component:Yt}]},{path:"/rssSource",name:"rss-home",component:wn,redirect:{name:"rss-base"},children:[{path:"/rssSource/base",name:"rss-base",component:Cn},{path:"/rssSource/list",name:"rss-list",component:Un},{path:"/rssSource/webView",name:"rss-webView",component:Tn},{path:"/rssSource/other",name:"rss-other",component:Rn}]}],Nn=(0,d.p7)({history:(0,d.r5)(),routes:En});var On=Nn;(0,o.ri)(u).use(le).use(On).mount("#app")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,o,r,i){if(!o){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](o[c])}))?o.splice(c--,1):(l=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[o,r,i]}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={143:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,i,a=o[0],l=o[1],c=o[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(c)var u=c(n)}for(t&&t(o);s