build
This commit is contained in:
1 parent
c7e3a6aa8f
commit
110ab44a2d
19 files changed
+52
-52
No files matched your search
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";.title[data-v-b16ecb88]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-b16ecb88]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--65b266c2) * 1em);line-height:calc(1 + var(--75882ce0));margin:calc(var(--89939d5c) * 1em) 0}p[data-v-b16ecb88] img{height:1em}.full[data-v-b16ecb88]{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);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.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-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-ed0bb531] .iconfont,[data-v-ed0bb531] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-ed0bb531]{-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-ed0bb531]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-ed0bb531]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-ed0bb531]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-ed0bb531]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-ed0bb531]{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-ed0bb531]{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-ed0bb531]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-ed0bb531]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-ed0bb531]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-ed0bb531],.settings-wrapper .setting-list ul .infinite-loading[data-v-ed0bb531]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-ed0bb531],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-ed0bb531],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-ed0bb531],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-ed0bb531]{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-edLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{a2 as Ne,n as r,z as w,T as be,a5 as Ve,o as p,d as f,g as e,t as H,F as te,P as ae,u as o,a6 as q,a7 as Re,a8 as He,v as _,e as J,w as W,a9 as We,A as ue,aa as Je,f as j,M as Ae,ab as Te,x as qe,ac as Me,p as ke,i as Be,s as Fe,ad as Ge,V as Ze,K as Ye,a4 as Xe,O as De,k as O,c as je}from"./vendor-b9134af1.js";import{i as $e,g as _e,u as et}from"./loading-db04d821.js";import{_ as ie,u as Se,A as de}from"./index-0af0d34a.js";const tt=(s,a,d,u)=>(s/=u/2,s<1?d/2*s*s+a:(s--,-d/2*(s*(s-2)-1)+a)),ot=()=>{let s,a,d,u,n,U,m,E,h,y,i,I,A;function b(){let v=s.scrollTop||s.scrollY||s.pageYOffset;return v=typeof v>"u"?0:v,v}function c(v){const B=v.getBoundingClientRect().top,G=s.getBoundingClientRect?s.getBoundingClientRect().top:0;return B-G+d}function k(v){s.scrollTo?s.scrollTo(0,v):s.scrollTop=v}function L(v){y||(y=v),i=v-y,I=U(i,d,E,h),k(I),i<h?requestAnimationFrame(L):F()}function F(){k(d+E),a&&m&&(a.setAttribute("tabindex","-1"),a.focus()),typeof A=="function"&&A(),y=!1}function oe(v,B={}){switch(h=B.duration||1e3,n=B.offset||0,A=B.callback,U=B.easing||tt,m=B.a11y||!1,typeof B.container){case"object":s=B.container;break;case"string":s=document.querySelector(B.container);break;default:s=window}switch(d=b(),typeof v){case"number":a=void 0,m=!1,u=d+v;break;case"object":a=v,u=c(a);break;case"string":a=document.querySelector(v),u=c(a);break}switch(E=u-d+n,typeof B.duration){case"number":h=B.duration;break;case"function":h=B.duration(E);break}requestAnimationFrame(L)}return oe},$=ot();const nt=["data-chapterpos"],st=["src"],at=["innerHTML"],it={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(s,{expose:a,emit:d}){const u=s;Ne(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const n=A=>{const b=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,c=A.match(b)[1];return $e(c)?_e(c):c},U=A=>{A.target.src=_e(A.target.src)},m=A=>{const b=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,c=" ";return A.replaceAll(b,c).length},E=r(()=>{let A=-1;return Array.from(u.contents,b=>(A+=m(b)+1,A))}),h=w(),y=w();a({scrollToReadedLength:A=>{if(A===0)return;let b=E.value.findIndex(c=>c>=A);b!==-1&&Re(()=>{$(y.value[b],{duration:0})})}});let I=null;return be(()=>{I=new IntersectionObserver(A=>{for(let{target:b,isIntersecting:c}of A)c&&d("readedLengthChange",u.chapterIndex,parseInt(b.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),y.value.forEach(A=>{I.observe(A)})}),Ve(()=>{I==null||I.disconnect(),I=null}),(A,b)=>(p(),f(te,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},H(s.title),513),(p(!0),f(te,null,ae(s.contents,(c,k)=>(p(),f("div",{key:k,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":o(E)[k]},[/^\s*<img[^>]*src[^>]+>$/.test(c)?(p(),f("img",{key:0,class:"full",src:n(c),onErrorOnce:U,loading:"lazy"},null,40,st)):(p(),f("p",{key:1,style:q({fontFamily:s.fontFamily,fontSize:s.fontSize}),innerHTML:c},null,12,at))],8,nt))),128))],64))}},ct=ie(it,[["__scopeId","data-v-b16ecb88"]]);const lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";.title[data-v-b16ecb88]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-b16ecb88]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--65b266c2) * 1em);line-height:calc(1 + var(--75882ce0));margin:calc(var(--89939d5c) * 1em) 0}p[data-v-b16ecb88] img{height:1em}.full[data-v-b16ecb88]{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);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.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-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-7fd4ed2e] .iconfont,[data-v-7fd4ed2e] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-7fd4ed2e]{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-7fd4ed2e]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-7fd4ed2e]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-7fd4ed2e]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-7fd4ed2e]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-7fd4ed2e]{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-7fd4ed2e]{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-7fd4ed2e]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-7fd4ed2e]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-7fd4ed2e]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-7fd4ed2e],.settings-wrapper .setting-list ul .infinite-loading[data-v-7fd4ed2e]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7fd4ed2e],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7fd4ed2e],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7fd4ed2e],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7fd4ed2e]{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-7fd4ed2e],.settings-wrapperLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{a2 as We,n as r,z as w,T as Se,a5 as Le,o as p,d as f,g as e,t as O,F as te,P as ce,u as o,a6 as G,a7 as Fe,a8 as Je,v as V,e as T,w as J,a9 as Te,A as he,aa as qe,f as Z,M as ge,ab as Ge,x as Ze,ac as Ke,p as we,i as _e,s as ze,ad as Ye,V as je,K as Xe,a4 as $e,O as Me,k as z,c as et}from"./vendor-260e64da.js";import{i as tt,g as Pe,u as ot}from"./loading-6856b75b.js";import{_ as le,u as Ee,A as pe}from"./index-6758c83f.js";const nt=(a,s,d,u)=>(a/=u/2,a<1?d/2*a*a+s:(a--,-d/2*(a*(a-2)-1)+s)),st=()=>{let a,s,d,u,n,x,m,_,h,C,i,I,A;function b(){let v=a.scrollTop||a.scrollY||a.pageYOffset;return v=typeof v>"u"?0:v,v}function l(v){const B=v.getBoundingClientRect().top,Y=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return B-Y+d}function k(v){a.scrollTo?a.scrollTo(0,v):a.scrollTop=v}function L(v){C||(C=v),i=v-C,I=x(i,d,_,h),k(I),i<h?requestAnimationFrame(L):M()}function M(){k(d+_),s&&m&&(s.setAttribute("tabindex","-1"),s.focus()),typeof A=="function"&&A(),C=!1}function oe(v,B={}){switch(h=B.duration||1e3,n=B.offset||0,A=B.callback,x=B.easing||nt,m=B.a11y||!1,typeof B.container){case"object":a=B.container;break;case"string":a=document.querySelector(B.container);break;default:a=window}switch(d=b(),typeof v){case"number":s=void 0,m=!1,u=d+v;break;case"object":s=v,u=l(s);break;case"string":s=document.querySelector(v),u=l(s);break}switch(_=u-d+n,typeof B.duration){case"number":h=B.duration;break;case"function":h=B.duration(_);break}requestAnimationFrame(L)}return oe},$=st();const at=["data-chapterpos"],it=["src"],ct=["innerHTML"],lt={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(a,{expose:s,emit:d}){const u=a;We(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const n=A=>{const b=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,l=A.match(b)[1];return tt(l)?Pe(l):l},x=A=>{A.target.src=Pe(A.target.src)},m=A=>{const b=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,l=" ";return A.replaceAll(b,l).length},_=r(()=>{let A=-1;return Array.from(u.contents,b=>(A+=m(b)+1,A))}),h=w(),C=w();s({scrollToReadedLength:A=>{if(A===0)return;let b=_.value.findIndex(l=>l>=A);b!==-1&&Fe(()=>{$(C.value[b],{duration:0})})}});let I=null;return Se(()=>{I=new IntersectionObserver(A=>{for(let{target:b,isIntersecting:l}of A)l&&d("readedLengthChange",u.chapterIndex,parseInt(b.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),C.value.forEach(A=>{I.observe(A)})}),Le(()=>{I==null||I.disconnect(),I=null}),(A,b)=>(p(),f(te,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},O(a.title),513),(p(!0),f(te,null,ce(a.contents,(l,k)=>(p(),f("div",{key:k,ref_for:!0,ref_key:"paragraphRef",ref:C,"data-chapterpos":o(_)[k]},[/^\s*<img[^>]*src[^>]+>$/.test(l)?(p(),f("img",{key:0,class:"full",src:n(l),onErrorOnce:x,loading:"lazy"},null,40,it)):(p(),f("p",{key:1,style:G({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:l},null,12,ct))],8,at))),128))],64))}},rt=le(lt,[["__scopeId","data-v-b16ecb88"]]);const At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";.books-wrapper[data-v-79a0da0d]{overflow:auto}.books-wrapper .wrapper[data-v-79a0da0d]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-79a0da0d]{-webkit-user-select:none;user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-79a0da0d],.books-wrapper .wrapper .book .cover-img .cover[data-v-79a0da0d]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-79a0da0d]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-79a0da0d]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-79a0da0d]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--d0aaf530);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-79a0da0d] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-79a0da0d]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-79a0da0d]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-79a0da0d],.books-wrapper .wrapper .book .info .dur-chapter[data-v-79a0da0d],.books-wrapper .wrapper .book .info .last-chapter[data-v-79a0da0d]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-79a0da0d]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-79a0da0d]:last-child{margin-right:auto}.books-wrapper[data-v-79a0da0d]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-79a0da0d]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-79a0da0d]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-6702555c]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-6702555c]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-6702555c]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-6702555c]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-6702555c]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-6702555c] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-6702555c]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-6702555c]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-6702555c]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-6702555c]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-6702555c]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-6702555c]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-6702555c]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-6702555c]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-6702555c]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-6702555c]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-6702555c]{padding:48px;width:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}@media screen and (max-width: 750px){.index-wrapper[data-v-6702555c]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-6702555c]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-6702555c]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-6702555c]{flex-direction:row}.index-wrapper .navigation-wrapper .bottom-wrapper>*[data-v-6702555c]{flex-grow:1;margin-top:18px}.index-wrapper .navigation-wrapper .bottom-wrapper>* .reading-recent[data-v-6702555c],.index-wrapper .navigatioLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";.books-wrapper[data-v-79a0da0d]{overflow:auto}.books-wrapper .wrapper[data-v-79a0da0d]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-79a0da0d]{user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-79a0da0d],.books-wrapper .wrapper .book .cover-img .cover[data-v-79a0da0d]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-79a0da0d]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-79a0da0d]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-79a0da0d]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--d0aaf530);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-79a0da0d] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-79a0da0d]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-79a0da0d]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-79a0da0d],.books-wrapper .wrapper .book .info .dur-chapter[data-v-79a0da0d],.books-wrapper .wrapper .book .info .last-chapter[data-v-79a0da0d]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-79a0da0d]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-79a0da0d]:last-child{margin-right:auto}.books-wrapper[data-v-79a0da0d]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-79a0da0d]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-79a0da0d]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-6702555c]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-6702555c]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-6702555c]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-6702555c]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-6702555c]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-6702555c] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-6702555c]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-6702555c]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-6702555c]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-6702555c]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-6702555c]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-6702555c]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-6702555c]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-6702555c]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-6702555c]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-6702555c]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-6702555c]{padding:48px;width:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}@media screen and (max-width: 750px){.index-wrapper[data-v-6702555c]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-6702555c]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-6702555c]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-6702555c]{flex-direction:row}.index-wrapper .navigation-wrapper .bottom-wrapper>*[data-v-6702555c]{flex-grow:1;margin-top:18px}.index-wrapper .navigation-wrapper .bottom-wrapper>* .reading-recent[data-v-6702555c],.index-wrapper .navigation-wrapper .bottom-wrapperLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{a2 as $,n as T,o as i,d as l,g as e,F as b,P as J,t as d,c as G,w as V,f as P,M as B,u as s,a3 as D,p as W,i as O,s as X,z as f,O as j,a4 as ee,T as te,k as y,e as S,A as se,L as ae,v as z,I as oe,B as ne}from"./vendor-b9134af1.js";import{d as ce,u as re}from"./loading-db04d821.js";import{_ as Z,u as ie,A as M}from"./index-0af0d34a.js";const H=o=>(W("data-v-79a0da0d"),o=o(),O(),o),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={key:0,class:"tags"},we={key:1,class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},ke=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"date"},ye={key:0,class:"intro"},Se={key:1,class:"dur-chapter"},xe={class:"last-chapter"},Ce={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(o,{emit:n}){const x=o;$(u=>({d0aaf530:s(w)}));const C=u=>n("bookClick",u),R=u=>/^data:/.test(u)?u:location.origin+"/cover?path="+encodeURIComponent(u),w=T(()=>x.isSearch?"space-between":"flex-start");return(u,E)=>{const c=D;return i(),l("div",le,[e("div",de,[(i(!0),l(b,null,J(o.books,r=>{var A;return i(),l("div",{class:"book",key:r.bookUrl,onClick:m=>C(r)},[e("div",he,[(i(),l("img",{class:"cover",src:R(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,d(r.name),1),e("div",ge,[e("div",me,d(r.author),1),o.isSearch?(i(),l("div",fe,[(i(!0),l(b,null,J((A=r.kind)==null?void 0:A.split(",").slice(0,2),m=>(i(),G(c,{key:m},{default:V(()=>[P(d(m),1)]),_:2},1024))),128))])):B("",!0),o.isSearch?B("",!0):(i(),l("div",we,[Ae,e("div",Ie,"共"+d(r.totalChapterNum)+"章",1),ke,e("div",Be,d(s(ce)(r.lastCheckTime)),1)]))]),o.isSearch?(i(),l("div",ye,d(r.intro),1)):B("",!0),o.isSearch?B("",!0):(i(),l("div",Se," 已读:"+d(r.durChapterTitle),1)),e("div",xe,"最新:"+d(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},Re=Z(Ce,[["__scopeId","data-v-79a0da0d"]]);const Ee="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==";const L=o=>(W("data-v-6702555c"),o=o(),O(),o),ze={class:"navigation-wrapper"},Me=L(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},Ve={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Le=L(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Ne={class:"reading-recent"},be={class:"setting-wrapper"},Je=L(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},We={class:"bottom-icons"},Oe={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ze={class:"bottom-icon"},He=["src"],Fe={__name:"BookShelf",setup(o){const n=ie(),{connectStatus:x,connectType:C,newConnect:R,shelf:w}=X(n),u=T(()=>n.config.theme),E=T(()=>u.value==6),c=f({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),r=f(null),{showLoading:A,closeLoading:m,loadingWrapper:F}=re(r,"正在获取书籍信息"),g=f([]),h=f(""),I=f(!1);j(()=>{if(!(I.value&&h.value!="")){if(I.value=!1,g.value=[],h.value==""){g.value=w.value;return}g.value=w.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const K=()=>{h.value!=""&&(g.value=[],n.clearSearchBooks(),A(),I.value=!0,M.search(h.value,t=>{try{n.setSearchBooks(JSON.parse(t)),n.searchBooks.forEach(a=>g.value.push(a))}catch(a){throw y.error("后端数据错误"),a}},()=>{m(),g.value.length==0&&y.info("搜索结果为空")}))},Y=()=>{},U=ee(),Q=async t=>{const{boLine truncated
|
||||
import{a2 as $,n as T,o as i,d as l,g as e,F as b,P as J,t as d,c as G,w as V,f as P,M as B,u as s,a3 as D,p as W,i as O,s as X,z as f,O as j,a4 as ee,T as te,k as y,e as S,A as se,L as ae,v as z,I as oe,B as ne}from"./vendor-260e64da.js";import{d as ce,u as re}from"./loading-6856b75b.js";import{_ as Z,u as ie,A as M}from"./index-6758c83f.js";const H=o=>(W("data-v-79a0da0d"),o=o(),O(),o),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={key:0,class:"tags"},we={key:1,class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},ke=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"date"},ye={key:0,class:"intro"},Se={key:1,class:"dur-chapter"},xe={class:"last-chapter"},Ce={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(o,{emit:n}){const x=o;$(u=>({d0aaf530:s(w)}));const C=u=>n("bookClick",u),R=u=>/^data:/.test(u)?u:location.origin+"/cover?path="+encodeURIComponent(u),w=T(()=>x.isSearch?"space-between":"flex-start");return(u,E)=>{const c=D;return i(),l("div",le,[e("div",de,[(i(!0),l(b,null,J(o.books,r=>{var A;return i(),l("div",{class:"book",key:r.bookUrl,onClick:m=>C(r)},[e("div",he,[(i(),l("img",{class:"cover",src:R(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,d(r.name),1),e("div",ge,[e("div",me,d(r.author),1),o.isSearch?(i(),l("div",fe,[(i(!0),l(b,null,J((A=r.kind)==null?void 0:A.split(",").slice(0,2),m=>(i(),G(c,{key:m},{default:V(()=>[P(d(m),1)]),_:2},1024))),128))])):B("",!0),o.isSearch?B("",!0):(i(),l("div",we,[Ae,e("div",Ie,"共"+d(r.totalChapterNum)+"章",1),ke,e("div",Be,d(s(ce)(r.lastCheckTime)),1)]))]),o.isSearch?(i(),l("div",ye,d(r.intro),1)):B("",!0),o.isSearch?B("",!0):(i(),l("div",Se," 已读:"+d(r.durChapterTitle),1)),e("div",xe,"最新:"+d(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},Re=Z(Ce,[["__scopeId","data-v-79a0da0d"]]);const Ee="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==";const L=o=>(W("data-v-6702555c"),o=o(),O(),o),ze={class:"navigation-wrapper"},Me=L(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},Ve={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Le=L(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Ne={class:"reading-recent"},be={class:"setting-wrapper"},Je=L(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},We={class:"bottom-icons"},Oe={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ze={class:"bottom-icon"},He=["src"],Fe={__name:"BookShelf",setup(o){const n=ie(),{connectStatus:x,connectType:C,newConnect:R,shelf:w}=X(n),u=T(()=>n.config.theme),E=T(()=>u.value==6),c=f({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),r=f(null),{showLoading:A,closeLoading:m,loadingWrapper:F}=re(r,"正在获取书籍信息"),g=f([]),h=f(""),I=f(!1);j(()=>{if(!(I.value&&h.value!="")){if(I.value=!1,g.value=[],h.value==""){g.value=w.value;return}g.value=w.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const K=()=>{h.value!=""&&(g.value=[],n.clearSearchBooks(),A(),I.value=!0,M.search(h.value,t=>{try{n.setSearchBooks(JSON.parse(t)),n.searchBooks.forEach(a=>g.value.push(a))}catch(a){throw y.error("后端数据错误"),a}},()=>{m(),g.value.length==0&&y.info("搜索结果为空")}))},Y=()=>{},U=ee(),Q=async t=>{const{boLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{A as f,u as i}from"./index-0af0d34a.js";import"./vendor-b9134af1.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
|
||||
@@ -0,0 +1 @@
|
||||
import{A as f,u as i}from"./index-6758c83f.js";import"./vendor-260e64da.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
|
||||
@@ -1,9 +0,0 @@
|
||||
import{r as Ee,o as l,c as C,a as se,b as ie,d as U,e as g,w as p,f as b,u as i,l as z,g as _,F as R,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as P,A as K,B as Se,C as Le,D as Oe,G as ce,V as Re,H as Pe,I as Z,J as Je,K as ye,L as De,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-b9134af1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ze(r,s),r in ue)return;ue[r]=!0;const a=r.endsWith(".css"),k=a?'[rel="stylesheet"]':"";if(!!s)for(let w=n.length-1;w>=0;w--){const v=n[w];if(v.href===r&&(!a||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${k}`))return;const S=document.createElement("link");if(S.rel=a?"stylesheet":Ye,a||(S.as="script",S.crossOrigin=""),S.href=r,document.head.appendChild(S),a)return new Promise((w,v)=>{S.addEventListener("load",w),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},J=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},et={};function tt(e,t){const o=Ee("router-view");return l(),C(o)}const ot=J(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-4dd1510d.js"),["./BookShelf-4dd1510d.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-db04d821.js","./loading-c009631e.css","./BookShelf-803cc512.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-9bb53da5.js"),["./BookChapter-9bb53da5.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-db04d821.js","./loading-c009631e.css","./BookChapter-cf3fdac5.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,n=he;return l(),U(R,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(n,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(n,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(n,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(n,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=J(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,E=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:Ce}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};E.interceptors.response.use(e=>e,kt);const vt=()=>E.get("/getReadConfig"),Ct=e=>E.post("/saveReadConfig",e),wt=e=>E.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>E.get("/getBookshelf"),Ut=e=>E.get("/getChapterList?url="+encodeURIComponent(e)),Et=(e,t)=>E.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),Vt=(e,t,o)=>{coLine truncated
|
||||
`},r=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},a=G(()=>/bookSource/.test(window.location.href));return(k,m)=>{const S=Z;return l(),U(R,null,[i(a)?(l(),C(S,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":m[0]||(m[0]=w=>K(s)?s.value=w:null),placeholder:"搜索书名、作者","prefix-icon":i(Se),style:{"padding-bottom":"4px"},onKeydown:De(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):$("",!0),g(S,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":m[1]||(m[1]=w=>K(o)?o.value=w:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},zt=J(qt,[["__scopeId","data-v-f7a4e94b"]]),yo=ge("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:"",spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var a;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:n}=e.readingBook;let r=(a=e.catalog[t])==null?void 0:a.title;if(r)return{name:s,author:n,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:r}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){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(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProgress(this.bookProgress):Promise.resolve()}}}),Wt=Ae();const Gt={__name:"SourceJson",setup(e){const t=M(),o=P(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{B({message:"粘贴的源格式错误",type:"error"})}};return je(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const a=Z;return l(),C(a,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=k=>K(o)?o.value=k:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Qt=J(Gt,[["__scopeId","data-v-7e91a802"]]);const Xt={__name:"SourceTabTools",setup(e){const t=M(),{currentTab:o}=Y(t),s=P([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const a=Qt,k=zt,m=Ft,S=yt,w=fe,v=be;return l(),C(v,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=x=>K(o)?o.value=x:null)},{default:p(()=>[(l(!0),U(R,null,A(i(s),(x,c)=>(l(),C(w,{key:x[0],name:x[0],label:x[1]},{default:p(()=>[c==0?(l(),C(a,{key:0})):$("",!0),c==1?(l(),C(k,{key:1})):$("",!0),c==2?(l(),C(m,{key:2})):$("",!0),c==3?(l(),C(S,{key:3})):$("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Yt=J(Xt,[["__scopeId","data-v-dcce2457"]]);const Zt={class:"menu flex-column-center"},eo={class:"hotkeys-header flex-space-between"},to=["id"],oo={key:0},no={class:"hotkeys-settings flex-column-center"},ro={class:"title"},so={class:"hotkeys-item__content"},io={key:0},lo={key:0},ao={__name:"ToolBar",setup(e){const t=M(),o=()=>{const d=B({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:h})=>{h.isSuccess?(t.changeTabName("editList"),t.saveSources(h.data),B({message:`成功拉取${h.data.length}条源`,type:"success"})):B({message:h.errorMsg??"后端错误",type:"error"})}).finally(()=>d.close())},s=()=>{let d=t.sources;if(t.changeTabName("editList"),d.length===0)return B({message:"空空如也",type:"info"});B({message:"正在推送中",type:"info"}),j.saveSources(d).then(({data:h})=>{if(h.isSuccess){let u=h.data;if(Array.isArray(u)){let D="";d.length>u.length&&(D=`
|
||||
推送失败的源将用红色字体标注!`,t.setPushReturnSources(u)),B({message:`批量推送源到「阅读3.0APP」
|
||||
共计: ${d.length} 条
|
||||
成功: ${u.length} 条
|
||||
失败: ${d.length-u.length} 条${D}`,type:"success"})}}else B({message:`批量推送源失败!
|
||||
ErrorMsg: ${h.errorMsg}`,type:"error"})})},n=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},r=()=>{t.changeCurrentSource(t.editTabSource)},a=()=>{t.editHistoryUndo()},k=()=>{t.clearEdit(),B({message:"已清除",type:"success"})},m=()=>{t.clearEdit(),t.clearAllHistory(),B({message:"已清除所有历史记录",type:"success"})},S=()=>{let d=/bookSource/.test(location.href),h=t.currentSource;Pt(h)?j.saveSource(h).then(({data:u})=>{u.isSuccess?(B({message:`源《${d?h.bookSourceName:h.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):B({message:`源《${d?h.bookSourceName:h.sourceName}》保存失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})}):B({message:"请检查<必填>项是否全部填写",type:"error"})},w=()=>{t.startDebug()},v=P(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:n},{name:"⋘编辑源",hotKeys:[],action:r},{name:"✗清空表单",hotKeys:[],action:k},{name:"↶撤销操作",hotKeys:[],action:a},{name:"↷重做操作",hotKeys:[],action:m},{name:"⇏调试源",hotKeys:[],action:w},{name:"✓保存源",hotKeys:[],action:S})),x=P(!0),c=P(!1),y=P(-1),V=()=>{c.value||(x.value=!1),c.value=!1};ye(x,d=>{if(!d){H.unbind("*"),q(),T();return}q(),H.unbind(),H("*",h=>{h.preventDefault();let u=H.getPressedKeyString();u.length==1&&u[0]=="esc"||c.value&&y.value>-1&&(v.value[y.value].hotKeys=u)})},{immediate:!0});const f=d=>{c.value=!0,B({message:"按ESC键或者点击空白处结束录入",type:"info"}),v.value[d].hotKeys=[],y.value=d},N=()=>{const d=[];v.value.forEach(({hotKeys:h})=>{d.push(h)}),O(d),x.value=!1},T=()=>{H.filter=()=>!0,v.value.forEach(({hotKeys:d,action:h})=>{d.length!=0&&H(d.join("+"),u=>{u.preventDefault(),h.call(null)})})},O=d=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(d))};function q(){try{const d=JSON.parse(localStorage.getItem("legado_web_hotkeys"));return!Array.isArray(d)||d.length==0?!1:(v.value.forEach((h,u)=>h.hotKeys=d[u]),!0)}catch{B({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Ke(()=>{q()&&(x.value=!1)}),(d,h)=>{const u=le,D=he,Be=He;return l(),U(R,null,[_("div",Zt,[(l(!0),U(R,null,A(i(v),I=>(l(),C(u,{size:"large",key:I.name,onClick:I.action},{default:p(()=>[b(X(I.name),1)]),_:2},1032,["onClick"]))),128)),g(u,{size:"large",onClick:h[0]||(h[0]=()=>x.value=!0)},{default:p(()=>[b("快捷键")]),_:1})]),g(Be,{modelValue:i(x),"onUpdate:modelValue":h[1]||(h[1]=I=>K(x)?x.value=I:null),"show-close":!1,"before-close":V},{header:p(({titleClass:I,titleId:te})=>[_("div",eo,[_("div",{id:te,class:me(I)},[b(" 快捷键设置 "),i(c)?(l(),U("span",oo,[g(D,null,{default:p(()=>[b(" / 录入中 ")]),_:1})])):$("",!0)],10,to),g(u,{disabled:i(c),onClick:N,icon:i(Me)},{default:p(()=>[b("保存")]),_:1},8,["disabled","icon"])])]),default:p(()=>[_("div",no,[(l(!0),U(R,null,A(i(v),(I,te)=>(l(),U("div",{key:I.name,class:"hotkeys-item flex-space-between"},[_("span",ro,[g(D,null,{default:p(()=>[b(X(I.name),1)]),_:2},1024)]),_("div",so,[(l(!0),U(R,null,A(I.hotKeys,(oe,Ue)=>(l(),U("div",{key:oe},[_("kbd",null,X(oe),1),Ue+1<I.hotKeys.length?(l(),U("span",io,[g(D,null,{default:p(()=>[b("+")]),_:1})])):$("",!0)]))),128)),I.hotKeys.length==0?(l(),U("span",lo,"未设置")):$("",!0)]),g(u,{disabled:i(c),text:"",icon:i(_e),onClick:oe=>f(te)},{default:p(()=>[b("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},co=J(ao,[["__scopeId","data-v-9fd45dad"]]);const uo={__name:"SourceTabForm",props:["config"],setup(e){const t=M(),{currentSource:o}=Y(t);return(s,n)=>{const r=Z,a=Fe,k=qe,m=ze,S=We,w=Ge,v=Qe,x=fe,c=be;return l(),C(c,{id:"source-edit"},{default:p(()=>[(l(!0),U(R,null,A(Object.values(e.config),({name:y,children:V})=>(l(),C(x,{label:y,key:y},{default:p(()=>[g(v,{"label-position":"right","label-width":"5em"},{default:p(()=>[(l(!0),U(R,null,A(V,({type:f,title:N,namespace:T,id:O,array:q,hint:d,required:h})=>(l(),C(w,{label:N,key:N,required:h},{default:p(()=>[f=="String"&&typeof T>"u"?(l(),C(r,{key:0,type:"textarea",modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="String"&&typeof T<"u"?(l(),C(r,{key:1,type:"textarea",modelValue:i(o)[T][O],"onUpdate:modelValue":u=>i(o)[T][O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="Boolean"?(l(),C(a,{key:2,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Number"?(l(),C(k,{key:3,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,min:0},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Array"?(l(),C(S,{key:4,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},{default:p(()=>[(l(!0),U(R,null,A(q,(u,D)=>(l(),C(m,{value:D,key:u,label:u},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):$("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},po=J(uo,[["__scopeId","data-v-2cfb5302"]]),ho={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const n=po,r=co,a=Yt;return l(),U("div",_o,[g(n,{class:"left",config:i(t)},null,8,["config"]),g(r),g(a,{class:"right"})])}}},pe=J(mo,[["__scopeId","data-v-5fe2b79d"]]),we=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:we});const xe=se({history:ie(),routes:ke.concat(we)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-56304acd.js"),["./config-56304acd.js","./vendor-b9134af1.js","./vendor-5578283d.css","./config-811f2a0b.css"],import.meta.url);export{j as A,J as _,yo as u};
|
||||
@@ -0,0 +1,9 @@
|
||||
import{r as Ue,o as a,c as w,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,l as z,g as _,F as R,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as P,A as K,B as Se,C as Le,D as Oe,G as ce,V as Re,H as Pe,I as Z,J as De,K as ye,L as Je,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-260e64da.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=Ze(n,s),n in ue)return;ue[n]=!0;const l=n.endsWith(".css"),k=l?'[rel="stylesheet"]':"";if(!!s)for(let C=r.length-1;C>=0;C--){const v=r[C];if(v.href===n&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${k}`))return;const S=document.createElement("link");if(S.rel=l?"stylesheet":Ye,l||(S.as="script",S.crossOrigin=""),S.href=n,document.head.appendChild(S),l)return new Promise((C,v)=>{S.addEventListener("load",C),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t()).catch(n=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=n,window.dispatchEvent(l),!l.defaultPrevented)throw n})},D=(e,t)=>{const o=e.__vccOpts||e;for(const[s,r]of t)o[s]=r;return o},et={};function tt(e,t){const o=Ue("router-view");return a(),w(o)}const ot=D(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-f6baeae9.js"),["./BookShelf-f6baeae9.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./loading-6856b75b.js","./loading-c009631e.css","./BookShelf-6af38855.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-f8cd870c.js"),["./BookChapter-f8cd870c.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./loading-6856b75b.js","./loading-c009631e.css","./BookChapter-1fe439a7.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,r=he;return a(),E(R,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(r,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(r,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(r,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(r,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=D(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,U=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:we}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};U.interceptors.response.use(e=>e,kt);const vt=()=>U.get("/getReadConfig"),wt=e=>U.post("/saveReadConfig",e),Ct=e=>U.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>U.get("/getBookshelf"),Et=e=>U.get("Line truncated
|
||||
`},n=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,r,t.debugFinish)},l=G(()=>/bookSource/.test(window.location.href));return(k,m)=>{const S=Z;return a(),E(R,null,[i(l)?(a(),w(S,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":m[0]||(m[0]=C=>K(s)?s.value=C:null),placeholder:"搜索书名、作者","prefix-icon":i(Se),style:{"padding-bottom":"4px"},onKeydown:Je(n,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):$("",!0),g(S,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":m[1]||(m[1]=C=>K(o)?o.value=C:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},zt=D(qt,[["__scopeId","data-v-f7a4e94b"]]),yo=ge("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:t,chapterPos:o,bookName:s,bookAuthor:r}=e.readingBook;let n=(l=e.catalog[t])==null?void 0:l.title;if(n)return{name:s,author:r,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:n}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){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(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProgress(this.bookProgress):Promise.resolve()}}}),Wt=Ae();const Gt={__name:"SourceJson",setup(e){const t=M(),o=P(""),s=async r=>{try{t.changeEditTabSource(JSON.parse(r))}catch{B({message:"粘贴的源格式错误",type:"error"})}};return je(async()=>{let r=t.editTabSource;Object.keys(r).length>0?o.value=JSON.stringify(r,null,4):o.value=""}),(r,n)=>{const l=Z;return a(),w(l,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=k=>K(o)?o.value=k:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Qt=D(Gt,[["__scopeId","data-v-7e91a802"]]);const Xt={__name:"SourceTabTools",setup(e){const t=M(),{currentTab:o}=Y(t),s=P([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(r,n)=>{const l=Qt,k=zt,m=Ft,S=yt,C=fe,v=be;return a(),w(v,{modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=x=>K(o)?o.value=x:null)},{default:p(()=>[(a(!0),E(R,null,A(i(s),(x,c)=>(a(),w(C,{key:x[0],name:x[0],label:x[1]},{default:p(()=>[c==0?(a(),w(l,{key:0})):$("",!0),c==1?(a(),w(k,{key:1})):$("",!0),c==2?(a(),w(m,{key:2})):$("",!0),c==3?(a(),w(S,{key:3})):$("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Yt=D(Xt,[["__scopeId","data-v-dcce2457"]]);const Zt={class:"menu flex-column-center"},eo={class:"hotkeys-header flex-space-between"},to=["id"],oo={key:0},no={class:"hotkeys-settings flex-column-center"},ro={class:"title"},so={class:"hotkeys-item__content"},io={key:0},lo={key:0},ao={__name:"ToolBar",setup(e){const t=M(),o=()=>{const d=B({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:h})=>{h.isSuccess?(t.changeTabName("editList"),t.saveSources(h.data),B({message:`成功拉取${h.data.length}条源`,type:"success"})):B({message:h.errorMsg??"后端错误",type:"error"})}).finally(()=>d.close())},s=()=>{let d=t.sources;if(t.changeTabName("editList"),d.length===0)return B({message:"空空如也",type:"info"});B({message:"正在推送中",type:"info"}),j.saveSources(d).then(({data:h})=>{if(h.isSuccess){let u=h.data;if(Array.isArray(u)){let J="";d.length>u.length&&(J=`
|
||||
推送失败的源将用红色字体标注!`,t.setPushReturnSources(u)),B({message:`批量推送源到「阅读3.0APP」
|
||||
共计: ${d.length} 条
|
||||
成功: ${u.length} 条
|
||||
失败: ${d.length-u.length} 条${J}`,type:"success"})}}else B({message:`批量推送源失败!
|
||||
ErrorMsg: ${h.errorMsg}`,type:"error"})})},r=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},n=()=>{t.changeCurrentSource(t.editTabSource)},l=()=>{t.editHistoryUndo()},k=()=>{t.clearEdit(),B({message:"已清除",type:"success"})},m=()=>{t.clearEdit(),t.clearAllHistory(),B({message:"已清除所有历史记录",type:"success"})},S=()=>{let d=/bookSource/.test(location.href),h=t.currentSource;Pt(h)?j.saveSource(h).then(({data:u})=>{u.isSuccess?(B({message:`源《${d?h.bookSourceName:h.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):B({message:`源《${d?h.bookSourceName:h.sourceName}》保存失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})}):B({message:"请检查<必填>项是否全部填写",type:"error"})},C=()=>{t.startDebug()},v=P(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:r},{name:"⋘编辑源",hotKeys:[],action:n},{name:"✗清空表单",hotKeys:[],action:k},{name:"↶撤销操作",hotKeys:[],action:l},{name:"↷重做操作",hotKeys:[],action:m},{name:"⇏调试源",hotKeys:[],action:C},{name:"✓保存源",hotKeys:[],action:S})),x=P(!0),c=P(!1),y=P(-1),V=()=>{c.value||(x.value=!1),c.value=!1};ye(x,d=>{if(!d){H.unbind("*"),q(),T();return}q(),H.unbind(),H("*",h=>{h.preventDefault();let u=H.getPressedKeyString();u.length==1&&u[0]=="esc"||c.value&&y.value>-1&&(v.value[y.value].hotKeys=u)})},{immediate:!0});const f=d=>{c.value=!0,B({message:"按ESC键或者点击空白处结束录入",type:"info"}),v.value[d].hotKeys=[],y.value=d},N=()=>{const d=[];v.value.forEach(({hotKeys:h})=>{d.push(h)}),O(d),x.value=!1},T=()=>{H.filter=()=>!0,v.value.forEach(({hotKeys:d,action:h})=>{d.length!=0&&H(d.join("+"),u=>{u.preventDefault(),h.call(null)})})},O=d=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(d))};function q(){try{const d=JSON.parse(localStorage.getItem("legado_web_hotkeys"));return!Array.isArray(d)||d.length==0?!1:(v.value.forEach((h,u)=>h.hotKeys=d[u]),!0)}catch{B({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Ke(()=>{q()&&(x.value=!1)}),(d,h)=>{const u=le,J=he,Be=He;return a(),E(R,null,[_("div",Zt,[(a(!0),E(R,null,A(i(v),I=>(a(),w(u,{size:"large",key:I.name,onClick:I.action},{default:p(()=>[b(X(I.name),1)]),_:2},1032,["onClick"]))),128)),g(u,{size:"large",onClick:h[0]||(h[0]=()=>x.value=!0)},{default:p(()=>[b("快捷键")]),_:1})]),g(Be,{modelValue:i(x),"onUpdate:modelValue":h[1]||(h[1]=I=>K(x)?x.value=I:null),"show-close":!1,"before-close":V},{header:p(({titleClass:I,titleId:te})=>[_("div",eo,[_("div",{id:te,class:me(I)},[b(" 快捷键设置 "),i(c)?(a(),E("span",oo,[g(J,null,{default:p(()=>[b(" / 录入中 ")]),_:1})])):$("",!0)],10,to),g(u,{disabled:i(c),onClick:N,icon:i(Me)},{default:p(()=>[b("保存")]),_:1},8,["disabled","icon"])])]),default:p(()=>[_("div",no,[(a(!0),E(R,null,A(i(v),(I,te)=>(a(),E("div",{key:I.name,class:"hotkeys-item flex-space-between"},[_("span",ro,[g(J,null,{default:p(()=>[b(X(I.name),1)]),_:2},1024)]),_("div",so,[(a(!0),E(R,null,A(I.hotKeys,(oe,Ee)=>(a(),E("div",{key:oe},[_("kbd",null,X(oe),1),Ee+1<I.hotKeys.length?(a(),E("span",io,[g(J,null,{default:p(()=>[b("+")]),_:1})])):$("",!0)]))),128)),I.hotKeys.length==0?(a(),E("span",lo,"未设置")):$("",!0)]),g(u,{disabled:i(c),text:"",icon:i(_e),onClick:oe=>f(te)},{default:p(()=>[b("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},co=D(ao,[["__scopeId","data-v-9fd45dad"]]);const uo={__name:"SourceTabForm",props:["config"],setup(e){const t=M(),{currentSource:o}=Y(t);return(s,r)=>{const n=Z,l=Fe,k=qe,m=ze,S=We,C=Ge,v=Qe,x=fe,c=be;return a(),w(c,{id:"source-edit"},{default:p(()=>[(a(!0),E(R,null,A(Object.values(e.config),({name:y,children:V})=>(a(),w(x,{label:y,key:y},{default:p(()=>[g(v,{"label-position":"right","label-width":"5em"},{default:p(()=>[(a(!0),E(R,null,A(V,({type:f,title:N,namespace:T,id:O,array:q,hint:d,required:h})=>(a(),w(C,{label:N,key:N,required:h},{default:p(()=>[f=="String"&&typeof T>"u"?(a(),w(n,{key:0,type:"textarea",modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="String"&&typeof T<"u"?(a(),w(n,{key:1,type:"textarea",modelValue:i(o)[T][O],"onUpdate:modelValue":u=>i(o)[T][O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="Boolean"?(a(),w(l,{key:2,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Number"?(a(),w(k,{key:3,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,min:0},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Array"?(a(),w(S,{key:4,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},{default:p(()=>[(a(!0),E(R,null,A(q,(u,J)=>(a(),w(m,{value:J,key:u,label:u},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):$("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},po=D(uo,[["__scopeId","data-v-2cfb5302"]]),ho={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const r=po,n=co,l=Yt;return a(),E("div",_o,[g(r,{class:"left",config:i(t)},null,8,["config"]),g(n),g(l,{class:"right"})])}}},pe=D(mo,[["__scopeId","data-v-5fe2b79d"]]),Ce=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:Ce});const xe=se({history:ie(),routes:ke.concat(Ce)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-ccc7fe24.js"),["./config-ccc7fe24.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./config-811f2a0b.css"],import.meta.url);export{j as A,D as _,yo as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}[data-v-830cee5a] .el-checkbox__label{flex:1;display:flex;justify-content:space-between;align-items:center}.error[data-v-830cee5a]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.edit[data-v-830cee5a]{border-color:var(--el-color-dark)!important}.tool[data-v-cd1572ca]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-cd1572ca]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-cd1572ca] .el-checkbox{margin-bottom:4px;width:100%}[data-v-f7a4e94b] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-9fd45dad]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-9fd45dad]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-9fd45dad]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-9fd45dad]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-9fd45dad]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-9fd45dad]{margin-bottom:1em}.hotkeys-item__content span[data-v-9fd45dad]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0px;z-index:2;background-color:#fff}.editor[data-v-5fe2b79d]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-5fe2b79d]{flex:1;margin-left:20px}.editor .right[data-v-5fe2b79d]{flex:1;width:360px;margin-right:20px}
|
||||
.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}[data-v-830cee5a] .el-checkbox__label{flex:1;display:flex;justify-content:space-between;align-items:center}.error[data-v-830cee5a]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.edit[data-v-830cee5a]{border-color:var(--el-color-dark)!important}.tool[data-v-cd1572ca]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-cd1572ca]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-cd1572ca] .el-checkbox{margin-bottom:4px;width:100%}[data-v-f7a4e94b] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-9fd45dad]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-9fd45dad]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-9fd45dad]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-9fd45dad]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-9fd45dad]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-9fd45dad]{margin-bottom:1em}.hotkeys-item__content span[data-v-9fd45dad]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0;z-index:2;background-color:#fff}.editor[data-v-5fe2b79d]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-5fe2b79d]{flex:1;margin-left:20px}.editor .right[data-v-5fe2b79d]{flex:1;width:360px;margin-right:20px}
|
||||
@@ -0,0 +1 @@
|
||||
import{u as L}from"./index-6758c83f.js";import{z as p,K as w,a5 as D,ae as v,u as Y}from"./vendor-260e64da.js";const y=/\[([^\]]+)]|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 z(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function $(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),M=t.getMilliseconds(),S=t.getDay(),c=(a=e.customMeridiem)!=null?a:z,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${M}`.padStart(3,"0"),d:()=>S,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(y,(u,m)=>{var f,h;return(h=m??((f=d[u])==null?void 0:f.call(d)))!=null?h:u})}const A=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function W(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+L().config.readWidth}const U=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=$(new Date(t),"YYYY-MM-DD"),a},b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const x=(t,i,e=b)=>{const a=p(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;w(a,r=>{if(!r)return o==null?void 0:o.close();o=v.service({target:Y(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return D(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{U as d,W as g,A as i,x as u};
|
||||
@@ -1 +0,0 @@
|
||||
import{u as S}from"./index-0af0d34a.js";import{z as L,K as p,a5 as w,ae as D,u as v}from"./vendor-b9134af1.js";const Y=/\[([^\]]+)]|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 y(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function z(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),f=t.getMilliseconds(),h=t.getDay(),c=(a=e.customMeridiem)!=null?a:y,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${f}`.padStart(3,"0"),d:()=>h,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(Y,(m,M)=>{var u;return M||((u=d[m])==null?void 0:u.call(d))||m})}const b=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function A(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+S().config.readWidth}const W=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=z(new Date(t),"YYYY-MM-DD"),a},$='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const U=(t,i,e=$)=>{const a=L(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;p(a,r=>{if(!r)return o==null?void 0:o.close();o=D.service({target:v(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return w(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{W as d,A as g,b as i,U as u};
|
||||
@@ -0,0 +1,31 @@
|
||||
function ru(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const nt={},uo=[],mt=()=>{},eg=()=>!1,tg=/^on[^a-z]/,Hi=e=>tg.test(e),ou=e=>e.startsWith("onUpdate:"),ft=Object.assign,su=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ng=Object.prototype.hasOwnProperty,De=(e,t)=>ng.call(e,t),me=Array.isArray,co=e=>Rs(e)==="[object Map]",Vi=e=>Rs(e)==="[object Set]",pc=e=>Rs(e)==="[object Date]",ye=e=>typeof e=="function",xe=e=>typeof e=="string",as=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Ci=e=>ke(e)&&ye(e.then)&&ye(e.catch),gp=Object.prototype.toString,Rs=e=>gp.call(e),ci=e=>Rs(e).slice(8,-1),yp=e=>Rs(e)==="[object Object]",iu=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fi=ru(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ki=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rg=/-(\w)/g,dn=Ki(e=>e.replace(rg,(t,n)=>n?n.toUpperCase():"")),og=/\B([A-Z])/g,yr=Ki(e=>e.replace(og,"-$1").toLowerCase()),ks=Ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ia=Ki(e=>e?`on${ks(e)}`:""),ls=(e,t)=>!Object.is(e,t),di=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Oi=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},cl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sg=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let hc;const fl=()=>hc||(hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ze(e){if(me(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=xe(r)?ug(r):Ze(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(xe(e))return e;if(ke(e))return e}}const ig=/;(?![^(]*\))/g,ag=/:([^]+)/,lg=/\/\*[^]*?\*\//g;function ug(e){const t={};return e.replace(lg,"").split(ig).forEach(n=>{if(n){const r=n.split(ag);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Y(e){let t="";if(xe(e))t=e;else if(me(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(ke(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const cg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fg=ru(cg);function bp(e){return!!e||e===""}function dg(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=qi(e[r],t[r]);return n}function qi(e,t){if(e===t)return!0;let n=pc(e),r=pc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=as(e),r=as(t),n||r)return e===t;if(n=me(e),r=me(t),n||r)return n&&r?dg(e,t):!1;if(n=ke(e),r=ke(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!qi(e[i],t[i]))return!1}}return String(e)===String(t)}function wp(e,t){return e.findIndex(n=>qi(n,t))}const rt=e=>xe(e)?e:e==null?"":me(e)||ke(e)&&(e.toString===gp||!ye(e.toString))?JSON.stringify(e,_p,2):String(e),_p=(e,t)=>t&&t.__v_isRef?_p(e,t.value):co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Vi(t)?{[`Set(${t.size})`]:[...t.values()]}:ke(t)&&!me(t)&&!yp(t)?String(t):t;let Dt;class Sp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Dt;try{return Dt=this,t()}finally{Dt=n}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Ep(e){return new Sp(e)}function pg(e,t=Dt){t&&t.active&&t.effects.push(e)}function au(){return Dt}function lu(e){Dt&&Dt.cleanups.push(e)}const uu=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Cp=e=>(e.w&mr)>0,Op=e=>(e.n&mr)>0,hg=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=mr},vg=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Cp(o)&&!Op(o)?o.delete(e):t[n++]=o,o.w&=~mr,o.n&=~mr}t.length=n}},Ti=new WeakMap;let qo=0,mr=1;const dl=30;let rn;const Br=Symbol(""),pl=Symbol("");class cu{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,pg(this,r)}run(){if(!this.active)return this.fn();let t=rn,n=hr;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=rn,rn=this,hr=!0,mr=1<<++qo,qo<=dl?hg(this):vc(this),this.fn()}finally{qo<=dl&&vg(this),mr=1<<--qo,rn=this.parent,hr=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){rn===this?this.deferStop=!0:this.active&&(vc(this),this.onStop&&this.onStop(),this.active=!1)}}function vc(e){const{deps:t}=e;if(t.length){for(let n=0;n<tLine truncated
|
||||
* vue-router v4.2.5
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const oo=typeof window<"u";function Ry(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function za(e,t){const n={};for(const r in t){const o=t[r];n[r]=hn(o)?o.map(e):e(o)}return n}const Qo=()=>{},hn=Array.isArray,ky=/\/$/,Ny=e=>e.replace(ky,"");function Da(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=By(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Ly(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ef(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&vo(t.matched[r],n.matched[o])&&Th(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Th(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return hn(e)?tf(e,t):hn(t)?tf(t,e):e===t}function tf(e,t){return hn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function By(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var gs;(function(e){e.pop="pop",e.push="push"})(gs||(gs={}));var Zo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zo||(Zo={}));function zy(e){if(!e)if(oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ny(e)}const Dy=/^[^#]+#/;function jy(e,t){return e.replace(Dy,"#")+t}function Hy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const na=()=>({left:window.pageXOffset,top:window.pageYOffset});function Vy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Hy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function nf(e,t){return(history.state?history.state.position-t:-1)+e}const Ol=new Map;function Ky(e,t){Ol.set(e,t)}function qy(e){const t=Ol.get(e);return Ol.delete(e),t}let Uy=()=>location.protocol+"//"+location.host;function xh(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),ef(l,"")}return ef(n,e)+r+o}function Wy(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const v=xh(e,location),m=n.value,d=t.value;let y=0;if(p){if(n.value=v,t.value=p,i&&i===m){i=null;return}y=d?p.position-d.position:0}else r(v);o.forEach(g=>{g(n.value,m,{delta:y,type:gs.pop,direction:y?y>0?Zo.forward:Zo.back:Zo.unknown})})};function l(){i=n.value}function u(p){o.push(p);const v=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return s.push(v),v}function c(){const{history:p}=window;p.state&&p.replaceState(Ue({},p.state,{scroll:na()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function rf(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?na():null}}function Gy(e){const{history:t,location:n}=window,r={value:xh(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Uy()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(v){console.error(v),n[c?"replace":"assign"](p)}}function i(l,u){const c=Ue({},t.state,rf(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Ue({},o.value,t.state,{forward:l,scroll:na()});s(c.current,c,!0);const f=Ue({},rf(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Yy(e){e=zy(e);const t=Gy(e),n=Wy(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ue({location:"",base:e,go:r,createHref:jy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
|
||||
(?:
|
||||
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||||
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||||
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||||
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||||
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||||
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||||
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||||
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(O){return O&&O.exact?s:new RegExp("(?:"+t(O)+n+t(O)+")|(?:"+t(O)+o+t(O)+")","g")};l.v4=function(E){return E&&E.exact?i:new RegExp(""+t(E)+n+t(E),"g")},l.v6=function(E){return E&&E.exact?a:new RegExp(""+t(E)+o+t(E),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,p=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+p+"|"+v+m+d+")"+y+g;return ti=new RegExp("(?:^"+w+"$)","i"),ti},Ad={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wo={integer:function(t){return Wo.number(t)&&parseInt(t,10)===t},float:function(t){return Wo.number(t)&&!Wo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ad.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ex())},hex:function(t){return typeof t=="string"&&!!t.match(Ad.hex)}},Cx=function(t,n,r,o,s){if(t.required&&n===void 0){Uv(t,n,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?Wo[a](n)||o.push(Ht(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&o.push(Ht(s.messages.types[a],t.fullField,t.type))},Ox=function(t,n,r,o,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(p?f="number":v?f="string":m&&(f="array"),!f)return!1;m&&(c=n.length),v&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(Ht(s.messages[f].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(Ht(s.messages[f].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(Ht(s.messages[f].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(Ht(s.messages[f].range,t.fullField,t.min,t.max))},eo="enum",Tx=function(t,n,r,o,s){t[eo]=Array.isArray(t[eo])?t[eo]:[],t[eo].indexOf(n)===-1&&o.push(Ht(s.messages[eo],t.fullField,t[eo].join(", ")))},xx=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Be={required:Uv,whitespace:Sx,type:Cx,range:Ox,enum:Tx,pattern:xx},Ax=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n,"string")&&!t.required)return r();Be.required(t,n,o,i,s,"string"),gt(n,"string")||(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s),Be.pattern(t,n,o,i,s),t.whitespace===!0&&Be.whitespace(t,n,o,i,s))}r(i)},Px=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},$x=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Ix=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},Rx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),gt(n)||Be.type(t,n,o,i,s)}r(i)},kx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Nx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Lx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Be.required(t,n,o,i,s,"array"),n!=null&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Mx=function(t,n,r,o,s){var
Line truncated
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
${a1()?"":"overflow:hidden !important;"}
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
`,Jx=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Xx(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Jx.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function $d(e,t=1,n){var r;tn||(tn=document.createElement("textarea"),document.body.appendChild(tn));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=Xx(e);tn.setAttribute("style",`${a};${Yx}`),tn.value=e.value||e.placeholder||"";let l=tn.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),tn.value="";const c=tn.scrollHeight-o;if(He(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(He(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=tn.parentNode)==null||r.removeChild(tn),tn=void 0,u}const Qx=Fe({id:{type:String,default:void 0},size:zs,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Lt},prefixIcon:{type:Lt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ce([Object,Array,String]),default:()=>ha({})},autofocus:{type:Boolean,default:!1}}),Zx={[Je]:e=>xe(e),input:e=>xe(e),change:e=>xe(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},e3=["role"],t3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],n3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],r3=ie({name:"ElInput",inheritAttrs:!1}),o3=ie({...r3,props:Qx,emits:Zx,setup(e,{expose:t,emit:n}){const r=e,o=y0(),s=Wr(),i=C(()=>{const z={};return r.containerRole==="combobox"&&(z["aria-haspopup"]=o["aria-haspopup"],z["aria-owns"]=o["aria-owns"],z["aria-expanded"]=o["aria-expanded"]),z}),a=C(()=>[r.type==="textarea"?y.b():d.b(),d.m(v.value),d.is("disabled",m.value),d.is("exceed",ze.value),{[d.b("group")]:s.prepend||s.append,[d.bm("group","append")]:s.append,[d.bm("group","prepend")]:s.prepend,[d.m("prefix")]:s.prefix||r.prefixIcon,[d.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:Ne.value&&Oe.value},o.class]),l=C(()=>[d.e("wrapper"),d.is("focus",F.value)]),u=CT({excludeKeys:C(()=>Object.keys(i.value))}),{form:c,formItem:f}=Er(),{inputId:p}=ya(r,{formItemContext:f}),v=mn(),m=No(),d=Re("input"),y=Re("textarea"),g=On(),w=On(),E=H(!1),O=H(!1),I=H(!1),R=H(),T=On(r.inputStyle),_=C(()=>g.value||w.value),{wrapperRef:k,isFocused:F,handleFocus:j,handleBlur:M}=J4(_,{afterBlur(){var z;r.validateEvent&&((z=f==null?void 0:f.validate)==null||z.call(f,"blur").catch(re=>void 0))}}),x=C(()=>{var z;return(z=c==null?void 0:c.statusIcon)!=null?z:!1}),$=C(()=>(f==null?void 0:f.validateState)||""),V=C(()=>$.value&&bv[$.value]),W=C(()=>I.value?lT:wO),B=C(()=>[o.style,r.inputStyle]),se=C(()=>[r.inputStyle,T.value,{resize:r.resize}]),we=C(()=>jn(r.modelValue)?"":String(r.modelValue)),Ne=C(()=>r.clearable&&!m.value&&!r.readonly&&!!we.value&&(F.value||E.value)),Oe=C(()=>r.showPassword&&!m.value&&!r.readonly&&!!we.value&&(!!we.value||F.value)),Ae=C(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),Ke=C(()=>we.value.length),ze=C(()=>!!Ae.value&&Ke.value>Number(u.value.maxlength)),Ge=C(()=>!!s.suffix||!!r.suffixIcon||Ne.value||r.showPassword||Ae.value||!!$.value&&x.value),[$e,A]=U4(g);wr(w,z=>{if(te(),!Ae.value||r.resize!=="both")return;const re=z[0],{width:_e}=re.contentRect;R.value={right:`calc(100% - ${_e+15+6}px)`}});const q=()=>{const{type:z,autosize:re}=r;if(!(!st||z!=="textarea"||!w.value))if(re){const _e=ke(re)?re.minRows:void 0,Ie=ke(re)?re.maxRows:void 0,qe=$d(w.value,_e,Ie);T.value={overflowY:"hidden",...qe},Le(()=
Line truncated
|
||||
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&EI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},op=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function _i(e){return e===!1||e==null?e:U.isArray(e)?e.map(_i):String(e)}function OI(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const TI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nl(e,t,n,r,o){if(U.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function xI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AI(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class Ta{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ko(l);if(!c)throw new Error("header name must be a non-empty string");const f=U.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=_i(a))}const i=(a,l)=>U.forEach(a,(u,c)=>s(u,c,l));return U.isPlainObject(t)||t instanceof this.constructor?i(t,n):U.isString(t)&&(t=t.trim())&&!TI(t)?i(CI(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return OI(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ko(i),i){const a=U.findKey(r,i);a&&(!n||nl(r,r[a],a,n))&&(delete r[a],o=!0)}}return U.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||nl(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return U.forEach(this,(o,s)=>{const i=U.findKey(r,s);if(i){n[i]=_i(o),delete n[s];return}const a=t?xI(s):String(s).trim();a!==s&&delete n[s],n[a]=_i(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[op]=this[op]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ko(i);r[a]||(AI(o,i),r[a]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});U.freezeMethods(Ta);const Hn=Ta;function rl(e,t){const n=this||cc,r=t||n,o=Hn.from(r.headers);let s=r.data;return U.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function zm(e){return!!(e&&e.__CANCEL__)}function Hs(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Hs,je,{__CANCEL__:!0});function PI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $I=ln.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),U.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),U.isString(s)&&l.push("path="+s),U.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function II(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RI(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Dm(e,t){return e&&!II(t)?RI(e,t):t}const kI=ln.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=U.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function NI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(p*1e3/v):void 0}}function sp(e,t){let n=0;const r=LI(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const MI=typeof XMLHttpRequest<"u",FI=MI&&function(e){return new Promise(function(n,r){let o=e.data;const s=Hn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}U.isFormData(o)&&(ln.isStandardBrowserEnv||ln.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+m))}const c=Dm(e.baseURL,e.url);u.open(e.method.toUpperCase(),Mm(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const v=Hn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};PI(function(g){n(g),l()},function(g){r(g),l()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new je("Request aborted",je.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Fm;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new je(m,d.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,u)),u=null},ln.isStandardBrowserEnv){const v=(e.withCredentials||kI(c))&&e.xsrfCookieName&&$I.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}o===void 0&&s.setContentType(null),"setRequest
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var no={FRONT:"FRONT",BEHIND:"BEHIND"},Pr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},fp=2,XI=function(){function e(t,n){VI(this,e),this.init(t,n)}return KI(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Pr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===no.BEHIND}},{key:"isFront",value:function(){return this.direction===no.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===Pr.INIT?(this.fixedSizeValue=r,this.calcType=Pr.FIXED):this.calcType===Pr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Pr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Pr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=UI(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-fp:this.isBehind()&&(n=n+fp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?no.FRONT:no.BEHIND,this.offset=n,this.param&&(this.direction===no.FRONT?this.handleFront():this.direction===no.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===Pr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),QI={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default:
Line truncated
|
||||
* pinia v2.1.6
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let qm;const xa=e=>qm=e,Um=Symbol();function eu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var is;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(is||(is={}));function eR(){const e=Ep(!0),t=e.run(()=>H({}));let n=[],r=[];const o=Wi({install(s){xa(o),o._a=s,s.provide(Um,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!n6?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Wm=()=>{};function pp(e,t,n,r=Wm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&au()&&lu(o),o}function ro(e,...t){e.slice().forEach(n=>{n(...t)})}const r6=e=>e();function tu(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];eu(o)&&eu(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!Dn(r)?e[n]=tu(o,r):e[n]=r}return e}const o6=Symbol();function s6(e){return!eu(e)||!e.hasOwnProperty(o6)}const{assign:ar}=Object;function i6(e){return!!(Ve(e)&&e.effect)}function a6(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=br(n.state.value[e]);return ar(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=Wi(C(()=>{xa(n);const v=n._s.get(e);return i[p].call(v,v)})),f),{}))}return l=Gm(e,u,t,n,r,!0),l}function Gm(e,t,n={},r,o,s){let i;const a=ar({actions:{}},n),l={deep:!0};let u,c,f=[],p=[],v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),H({});let d;function y(_){let k;u=c=!1,typeof _=="function"?(_(r.state.value[e]),k={type:is.patchFunction,storeId:e,events:v}):(tu(r.state.value[e],_),k={type:is.patchObject,payload:_,storeId:e,events:v});const F=d=Symbol();Le().then(()=>{d===F&&(u=!0)}),c=!0,ro(f,k,r.state.value[e])}const g=s?function(){const{state:k}=n,F=k?k():{};this.$patch(j=>{ar(j,F)})}:Wm;function w(){i.stop(),f=[],p=[],r._s.delete(e)}function E(_,k){return function(){xa(r);const F=Array.from(arguments),j=[],M=[];function x(W){j.push(W)}function $(W){M.push(W)}ro(p,{args:F,name:_,store:I,after:x,onError:$});let V;try{V=k.apply(this&&this.$id===e?this:I,F)}catch(W){throw ro(M,W),W}return V instanceof Promise?V.then(W=>(ro(j,W),W)).catch(W=>(ro(M,W),Promise.reject(W))):(ro(j,V),V)}}const O={_p:r,$id:e,$onAction:pp.bind(null,p),$patch:y,$reset:g,$subscribe(_,k={}){const F=pp(f,_,k.detached,()=>j()),j=i.run(()=>ue(()=>r.state.value[e],M=>{(k.flush==="sync"?c:u)&&_({storeId:e,type:is.direct,events:v},M)},ar({},l,k)));return F},$dispose:w},I=xt(O);r._s.set(e,I);const R=r._a&&r._a.runWithContext||r6,T=r._e.run(()=>(i=Ep(),R(()=>i.run(t))));for(const _ in T){const k=T[_];if(Ve(k)&&!i6(k)||Dn(k))s||(m&&s6(k)&&(Ve(k)?k.value=m[_]:tu(k,m[_])),r.state.value[e][_]=k);else if(typeof k=="function"){const F=E(_,k);T[_]=F,a.actions[_]=k}}return ar(I,T),ar(Pe(I),T),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:_=>{y(k=>{ar(k,_)})}}),r._p.forEach(_=>{ar(I,i.run(()=>_({store:I,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(I.$state,m),u=!0,c=!0,I}function tR(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=T0();return a=a||(u?Ee(Um,null):null),a&&xa(a),a=qm,a._s.has(r)||(s?Gm(r,t,o,a):a6(r,o,a)),a._s.get(r)}return i.$id=r,i}function nR(e){{e=Pe(e);const t={};for(const n in e){const r=e[n];(Ve(r)||Dn(r))&&(t[n]=Ut(e,n))}return t}}var sl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function il(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ym(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Jm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function l6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}var $s={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sl?173:189,"=":sl?61:187,";":sl?59:186,"'":222,"[":219,"]":221,"\\":220},$n={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},nu={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},wt={16:!1,18:!1,17:!1,91:!1},at={};for(var ui=1;ui<20;ui++)$s["f".concat(ui)]=111+ui;var Qe=[],hLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-Line truncated
|
||||
@@ -1,31 +0,0 @@
|
||||
function Yl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const Ze={},ao=[],pt=()=>{},jm=()=>!1,Hm=/^on[^a-z]/,Bi=e=>Hm.test(e),Jl=e=>e.startsWith("onUpdate:"),lt=Object.assign,Xl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vm=Object.prototype.hasOwnProperty,De=(e,t)=>Vm.call(e,t),he=Array.isArray,lo=e=>As(e)==="[object Map]",zi=e=>As(e)==="[object Set]",rc=e=>As(e)==="[object Date]",me=e=>typeof e=="function",Ce=e=>typeof e=="string",os=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",yi=e=>Re(e)&&me(e.then)&&me(e.catch),ap=Object.prototype.toString,As=e=>ap.call(e),oi=e=>As(e).slice(8,-1),lp=e=>As(e)==="[object Object]",Ql=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,si=Yl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Di=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Km=/-(\w)/g,un=Di(e=>e.replace(Km,(t,n)=>n?n.toUpperCase():"")),qm=/\B([A-Z])/g,mr=Di(e=>e.replace(qm,"-$1").toLowerCase()),Ps=Di(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ca=Di(e=>e?`on${Ps(e)}`:""),ss=(e,t)=>!Object.is(e,t),ii=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},bi=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},rl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Um=e=>{const t=Ce(e)?Number(e):NaN;return isNaN(t)?e:t};let oc;const ol=()=>oc||(oc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tt(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ce(r)?Jm(r):tt(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Ce(e))return e;if(Re(e))return e}}const Wm=/;(?![^(]*\))/g,Gm=/:([^]+)/,Ym=new RegExp("\\/\\*.*?\\*\\/","gs");function Jm(e){const t={};return e.replace(Ym,"").split(Wm).forEach(n=>{if(n){const r=n.split(Gm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Y(e){let t="";if(Ce(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(Re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Xm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Qm=Yl(Xm);function up(e){return!!e||e===""}function Zm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ji(e[r],t[r]);return n}function ji(e,t){if(e===t)return!0;let n=rc(e),r=rc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=os(e),r=os(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?Zm(e,t):!1;if(n=Re(e),r=Re(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!ji(e[i],t[i]))return!1}}return String(e)===String(t)}function cp(e,t){return e.findIndex(n=>ji(n,t))}const et=e=>Ce(e)?e:e==null?"":he(e)||Re(e)&&(e.toString===ap||!me(e.toString))?JSON.stringify(e,fp,2):String(e),fp=(e,t)=>t&&t.__v_isRef?fp(e,t.value):lo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:zi(t)?{[`Set(${t.size})`]:[...t.values()]}:Re(t)&&!he(t)&&!lp(t)?String(t):t;let Bt;class dp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Bt,!t&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Bt;try{return Bt=this,t()}finally{Bt=n}}}on(){Bt=this}off(){Bt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function pp(e){return new dp(e)}function eg(e,t=Bt){t&&t.active&&t.effects.push(e)}function Zl(){return Bt}function eu(e){Bt&&Bt.cleanups.push(e)}const tu=e=>{const t=new Set(e);return t.w=0,t.n=0,t},hp=e=>(e.w&hr)>0,vp=e=>(e.n&hr)>0,tg=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=hr},ng=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];hp(o)&&!vp(o)?o.delete(e):t[n++]=o,o.w&=~hr,o.n&=~hr}t.length=n}},wi=new WeakMap;let Vo=0,hr=1;const sl=30;let rn;const Lr=Symbol(""),il=Symbol("");class nu{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,eg(this,r)}run(){if(!this.active)return this.fn();let t=rn,n=dr;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=rn,rn=this,dr=!0,hr=1<<++Vo,Vo<=sl?tg(this):sc(this),this.fn()}finally{Vo<=sl&&ng(this),hr=1<<--Vo,rn=this.parent,dr=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){rn===this?this.deferStop=!0:this.active&&(sc(this),this.onStop&&this.onStop(),this.active=!1)}}function sc(e){const{deps:t}=e;if(t.lengtLine truncated
|
||||
* vue-router v4.2.0
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const no=typeof window<"u";function y0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const qe=Object.assign;function Ra(e,t){const n={};for(const r in t){const o=t[r];n[r]=fn(o)?o.map(e):e(o)}return n}const Jo=()=>{},fn=Array.isArray,b0=/\/$/,w0=e=>e.replace(b0,"");function ka(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=C0(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function _0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function S0(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ho(t.matched[r],n.matched[o])&&gh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ho(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!E0(e[n],t[n]))return!1;return!0}function E0(e,t){return fn(e)?qc(e,t):fn(t)?qc(t,e):e===t}function qc(e,t){return fn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function C0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var ps;(function(e){e.pop="pop",e.push="push"})(ps||(ps={}));var Xo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xo||(Xo={}));function O0(e){if(!e)if(no){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),w0(e)}const T0=/^[^#]+#/;function x0(e,t){return e.replace(T0,"#")+t}function A0(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Xi=()=>({left:window.pageXOffset,top:window.pageYOffset});function P0(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=A0(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Uc(e,t){return(history.state?history.state.position-t:-1)+e}const yl=new Map;function $0(e,t){yl.set(e,t)}function I0(e){const t=yl.get(e);return yl.delete(e),t}let R0=()=>location.protocol+"//"+location.host;function yh(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Kc(l,"")}return Kc(n,e)+r+o}function k0(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const h=yh(e,location),m=n.value,d=t.value;let y=0;if(p){if(n.value=h,t.value=p,i&&i===m){i=null;return}y=d?p.position-d.position:0}else r(h);o.forEach(g=>{g(n.value,m,{delta:y,type:ps.pop,direction:y?y>0?Xo.forward:Xo.back:Xo.unknown})})};function l(){i=n.value}function u(p){o.push(p);const h=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return s.push(h),h}function c(){const{history:p}=window;p.state&&p.replaceState(qe({},p.state,{scroll:Xi()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Wc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Xi():null}}function N0(e){const{history:t,location:n}=window,r={value:yh(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:R0()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](p)}}function i(l,u){const c=qe({},t.state,Wc(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=qe({},o.value,t.state,{forward:l,scroll:Xi()});s(c.current,c,!0);const f=qe({},Wc(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function M0(e){e=O0(e);const t=N0(e),n=k0(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=qe({location:"",base:e,go:r,createHref:x0.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
|
||||
(?:
|
||||
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||||
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||||
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||||
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||||
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||||
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||||
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||||
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(S){return S&&S.exact?s:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+o+t(S)+")","g")};l.v4=function(T){return T&&T.exact?i:new RegExp(""+t(T)+n+t(T),"g")},l.v6=function(T){return T&&T.exact?a:new RegExp(""+t(T)+o+t(T),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,p=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+p+"|"+h+m+d+")"+y+g;return Ys=new RegExp("(?:^"+w+"$)","i"),Ys},yd={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},qo={integer:function(t){return qo.number(t)&&parseInt(t,10)===t},float:function(t){return qo.number(t)&&!qo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!qo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yd.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Y4())},hex:function(t){return typeof t=="string"&&!!t.match(yd.hex)}},J4=function(t,n,r,o,s){if(t.required&&n===void 0){Nv(t,n,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?qo[a](n)||o.push(jt(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&o.push(jt(s.messages.types[a],t.fullField,t.type))},X4=function(t,n,r,o,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(p?f="number":h?f="string":m&&(f="array"),!f)return!1;m&&(c=n.length),h&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(jt(s.messages[f].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(jt(s.messages[f].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(jt(s.messages[f].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(jt(s.messages[f].range,t.fullField,t.min,t.max))},Qr="enum",Q4=function(t,n,r,o,s){t[Qr]=Array.isArray(t[Qr])?t[Qr]:[],t[Qr].indexOf(n)===-1&&o.push(jt(s.messages[Qr],t.fullField,t[Qr].join(", ")))},Z4=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(jt(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(jt(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Be={required:Nv,whitespace:G4,type:J4,range:X4,enum:Q4,pattern:Z4},e3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n,"string")&&!t.required)return r();Be.required(t,n,o,i,s,"string"),ht(n,"string")||(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s),Be.pattern(t,n,o,i,s),t.whitespace===!0&&Be.whitespace(t,n,o,i,s))}r(i)},t3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},n3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},r3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},o3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),ht(n)||Be.type(t,n,o,i,s)}r(i)},s3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},i3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(ht(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},a3=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Be.required(t,n,o,i,s,"array"),n!=null&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},l3=function(t,n,r,o,s){var
Line truncated
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
${Gb()?"":"overflow:hidden !important;"}
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
`,S3=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function E3(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:S3.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function wd(e,t=1,n){var r;tn||(tn=document.createElement("textarea"),document.body.appendChild(tn));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=E3(e);tn.setAttribute("style",`${a};${_3}`),tn.value=e.value||e.placeholder||"";let l=tn.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),tn.value="";const c=tn.scrollHeight-o;if(Ve(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ve(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=tn.parentNode)==null||r.removeChild(tn),tn=void 0,u}const C3=Le({id:{type:String,default:void 0},size:Ns,disabled:Boolean,modelValue:{type:Ee([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ee([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Xt},prefixIcon:{type:Xt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ee([Object,Array,String]),default:()=>aa({})}}),O3={[Ge]:e=>Ce(e),input:e=>Ce(e),change:e=>Ce(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},T3=["role"],x3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],A3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],P3=se({name:"ElInput",inheritAttrs:!1}),$3=se({...P3,props:C3,emits:O3,setup(e,{expose:t,emit:n}){const r=e,o=sy(),s=qr(),i=O(()=>{const L={};return r.containerRole==="combobox"&&(L["aria-haspopup"]=o["aria-haspopup"],L["aria-owns"]=o["aria-owns"],L["aria-expanded"]=o["aria-expanded"]),L}),a=O(()=>[r.type==="textarea"?y.b():d.b(),d.m(h.value),d.is("disabled",m.value),d.is("exceed",Oe.value),{[d.b("group")]:s.prepend||s.append,[d.bm("group","append")]:s.append,[d.bm("group","prepend")]:s.prepend,[d.m("prefix")]:s.prefix||r.prefixIcon,[d.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:M.value&&le.value},o.class]),l=O(()=>[d.e("wrapper"),d.is("focus",T.value)]),u=JO({excludeKeys:O(()=>Object.keys(i.value))}),{form:c,formItem:f}=wr(),{inputId:p}=fa(r,{formItemContext:f}),h=pn(),m=ko(),d=Pe("input"),y=Pe("textarea"),g=zn(),w=zn(),T=H(!1),S=H(!1),C=H(!1),P=H(!1),E=H(),A=zn(r.inputStyle),B=O(()=>g.value||w.value),N=O(()=>{var L;return(L=c==null?void 0:c.statusIcon)!=null?L:!1}),j=O(()=>(f==null?void 0:f.validateState)||""),z=O(()=>j.value&&HO[j.value]),x=O(()=>P.value?kO:qC),R=O(()=>[o.style,r.inputStyle]),K=O(()=>[r.inputStyle,A.value,{resize:r.resize}]),W=O(()=>jn(r.modelValue)?"":String(r.modelValue)),M=O(()=>r.clearable&&!m.value&&!r.readonly&&!!W.value&&(T.value||S.value)),le=O(()=>r.showPassword&&!m.value&&!r.readonly&&!!W.value&&(!!W.value||T.value)),_e=O(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),ke=O(()=>W.value.length),Oe=O(()=>!!_e.value&&ke.value>Number(u.value.maxlength)),Fe=O(()=>!!s.suffix||!!r.suffixIcon||M.value||r.showPassword||_e.value||!!j.value&&N.value),[Ye,ze]=b4(g);yr(w,L=>{if($(),!_e.value||r.resize!=="both")return;const oe=L[0],{width:ge}=oe.contentRect;E.value={right:`calc(100% - ${ge+15+6}px)`}});const He=()=>{const{type:L,autosize:oe}=r;if(!(!ot||L!=="textarea"||!w.value))if(oe){const ge=Re(oe)?oe.minRows:void 0,Ne=Re(oe)?oe.maxRows:void 0,$e=wd(w.value,ge,Ne);A.value={overflowY:"hidden",...$e},Ie(()=>{w.value.offsetHeight,A.value=$e})}else A.value={minHeight:wd(w.value).minHeight}},$=(L=>{let oe=!1;return()=>{var ge;if(oe||!r.autosize)return;((ge=w.value)==null?void 0:ge.offsetParent)===null||(L(),oe=!0)}})(He),V=()=>{const L=B
Line truncated
|
||||
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Y8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Gd=Symbol("internals");function Ho(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:q.isArray(e)?e.map(vi):String(e)}function X8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Q8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function Z8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function e6(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class wa{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ho(l);if(!c)throw new Error("header name must be a non-empty string");const f=q.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=vi(a))}const i=(a,l)=>q.forEach(a,(u,c)=>s(u,c,l));return q.isPlainObject(t)||t instanceof this.constructor?i(t,n):q.isString(t)&&(t=t.trim())&&!Q8(t)?i(J8(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ho(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return X8(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ho(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ya(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ho(i),i){const a=q.findKey(r,i);a&&(!n||Ya(r,r[a],a,n))&&(delete r[a],o=!0)}}return q.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Ya(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,s)=>{const i=q.findKey(r,s);if(i){n[i]=vi(o),delete n[s];return}const a=t?Z8(s):String(s).trim();a!==s&&delete n[s],n[a]=vi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Gd]=this[Gd]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ho(i);r[a]||(e6(o,i),r[a]=!0)}return q.isArray(t)?t.forEach(s):s(t),this}}wa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.freezeMethods(wa.prototype);q.freezeMethods(wa);const Hn=wa;function Ja(e,t){const n=this||ec,r=t||n,o=Hn.from(r.headers);let s=r.data;return q.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function xm(e){return!!(e&&e.__CANCEL__)}function Fs(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Fs,je,{__CANCEL__:!0});function t6(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const n6=Sn.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),q.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),q.isString(s)&&l.push("path="+s),q.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function r6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function o6(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Am(e,t){return e&&!r6(t)?o6(e,t):t}const s6=Sn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=q.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function i6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function Yd(e,t){let n=0;const r=a6(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const l6=typeof XMLHttpRequest<"u",u6=l6&&function(e){return new Promise(function(n,r){let o=e.data;const s=Hn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}q.isFormData(o)&&(Sn.isStandardBrowserEnv||Sn.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+m))}const c=Am(e.baseURL,e.url);u.open(e.method.toUpperCase(),Cm(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=Hn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};t6(function(g){n(g),l()},function(g){r(g),l()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new je("Request aborted",je.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Om;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new je(m,d.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,u)),u=null},Sn.isStandardBrowserEnv){const h=(e.withCredentials||s6(c))&&e.xsrfCookieName&&n6.read(e.xsrfCookieName);h&&s.set(e.xsrfHeaderName,h)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&q.forEach(s.toJSON(),function(m,d){u.setRequestHeader(d,m)}),q.isUndefined(e.wit
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var eo={FRONT:"FRONT",BEHIND:"BEHIND"},xr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},tp=2,C6=function(){function e(t,n){m6(this,e),this.init(t,n)}return g6(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=xr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===eo.BEHIND}},{key:"isFront",value:function(){return this.direction===eo.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===xr.INIT?(this.fixedSizeValue=r,this.calcType=xr.FIXED):this.calcType===xr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=xr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==xr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=b6(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-tp:this.isBehind()&&(n=n+tp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?eo.FRONT:eo.BEHIND,this.offset=n,this.param&&(this.direction===eo.FRONT?this.handleFront():this.direction===eo.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===xr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),O6={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default:
Line truncated
|
||||
* pinia v2.0.36
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let Rm;const _a=e=>Rm=e,km=Symbol();function Ul(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rs||(rs={}));function CI(){const e=pp(!0),t=e.run(()=>H({}));let n=[],r=[];const o=fo({install(s){_a(o),o._a=s,s.provide(km,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!wb?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Nm=()=>{};function rp(e,t,n,r=Nm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Zl()&&eu(o),o}function to(e,...t){e.slice().forEach(n=>{n(...t)})}function Wl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ul(o)&&Ul(r)&&e.hasOwnProperty(n)&&!Ke(r)&&!Bn(r)?e[n]=Wl(o,r):e[n]=r}return e}const P6=Symbol();function $6(e){return!Ul(e)||!e.hasOwnProperty(P6)}const{assign:sr}=Object;function I6(e){return!!(Ke(e)&&e.effect)}function R6(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=gr(n.state.value[e]);return sr(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=fo(O(()=>{_a(n);const h=n._s.get(e);return i[p].call(h,h)})),f),{}))}return l=Mm(e,u,t,n,r,!0),l}function Mm(e,t,n={},r,o,s){let i;const a=sr({actions:{}},n),l={deep:!0};let u,c,f=fo([]),p=fo([]),h;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),H({});let d;function y(E){let A;u=c=!1,typeof E=="function"?(E(r.state.value[e]),A={type:rs.patchFunction,storeId:e,events:h}):(Wl(r.state.value[e],E),A={type:rs.patchObject,payload:E,storeId:e,events:h});const B=d=Symbol();Ie().then(()=>{d===B&&(u=!0)}),c=!0,to(f,A,r.state.value[e])}const g=s?function(){const{state:A}=n,B=A?A():{};this.$patch(N=>{sr(N,B)})}:Nm;function w(){i.stop(),f=[],p=[],r._s.delete(e)}function T(E,A){return function(){_a(r);const B=Array.from(arguments),N=[],j=[];function z(K){N.push(K)}function x(K){j.push(K)}to(p,{args:B,name:E,store:C,after:z,onError:x});let R;try{R=A.apply(this&&this.$id===e?this:C,B)}catch(K){throw to(j,K),K}return R instanceof Promise?R.then(K=>(to(N,K),K)).catch(K=>(to(j,K),Promise.reject(K))):(to(N,R),R)}}const S={_p:r,$id:e,$onAction:rp.bind(null,p),$patch:y,$reset:g,$subscribe(E,A={}){const B=rp(f,E,A.detached,()=>N()),N=i.run(()=>ue(()=>r.state.value[e],j=>{(A.flush==="sync"?c:u)&&E({storeId:e,type:rs.direct,events:h},j)},sr({},l,A)));return B},$dispose:w},C=Et(S);r._s.set(e,C);const P=r._e.run(()=>(i=pp(),i.run(()=>t())));for(const E in P){const A=P[E];if(Ke(A)&&!I6(A)||Bn(A))s||(m&&$6(A)&&(Ke(A)?A.value=m[E]:Wl(A,m[E])),r.state.value[e][E]=A);else if(typeof A=="function"){const B=T(E,A);P[E]=B,a.actions[E]=A}}return sr(C,P),sr(Te(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:E=>{y(A=>{sr(A,E)})}}),r._p.forEach(E=>{sr(C,i.run(()=>E({store:C,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(C.$state,m),u=!0,c=!0,C}function OI(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=st();return a=a||u&&Se(km,null),a&&_a(a),a=Rm,a._s.has(r)||(s?Mm(r,t,o,a):R6(r,o,a)),a._s.get(r)}return i.$id=r,i}function TI(e){{e=Te(e);const t={};for(const n in e){const r=e[n];(Ke(r)||Bn(r))&&(t[n]=Ut(e,n))}return t}}var Qa=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Za(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Lm(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Fm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function k6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}var Ts={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Qa?173:189,"=":Qa?61:187,";":Qa?59:186,"'":222,"[":219,"]":221,"\\":220},An={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Gl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},bt={16:!1,18:!1,17:!1,91:!1},ut={};for(var ri=1;ri<20;ri++)Ts["f".concat(ri)]=111+ri;var Xe=[],op=!1,Bm="all",zm=[],Sa=function(t){return Ts[tLine truncated
|
||||
@@ -4,10 +4,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<script type="module" crossorigin src="./assets/index-0af0d34a.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-b9134af1.js">
|
||||
<link rel="stylesheet" href="./assets/vendor-5578283d.css">
|
||||
<link rel="stylesheet" href="./assets/index-bd50a38f.css">
|
||||
<script type="module" crossorigin src="./assets/index-6758c83f.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-260e64da.js">
|
||||
<link rel="stylesheet" href="./assets/vendor-31f92e7c.css">
|
||||
<link rel="stylesheet" href="./assets/index-a2df5179.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user