From 3963fd8fadec3e02ce6013cdf9337d5fce0ee470 Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Wed, 14 Jun 2023 22:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/index.js | 8 +- util/download.js | 6 +- util/markdir.js | 52 +++++++++ util/utils.js | 2 +- view/dist/assets/index-07bbb742.js | 3 + view/dist/assets/index-54b3342f.js | 107 ------------------ ...{index-711c0355.css => index-6ef103ac.css} | 2 +- view/dist/assets/index-cb834fa7.js | 1 - view/dist/assets/index-ed416134.js | 54 +++++++++ view/dist/index.html | 4 +- view/src/page/index.vue | 54 ++++++--- 11 files changed, 160 insertions(+), 133 deletions(-) create mode 100644 util/markdir.js create mode 100644 view/dist/assets/index-07bbb742.js delete mode 100644 view/dist/assets/index-54b3342f.js rename view/dist/assets/{index-711c0355.css => index-6ef103ac.css} (99%) delete mode 100644 view/dist/assets/index-cb834fa7.js create mode 100644 view/dist/assets/index-ed416134.js diff --git a/router/index.js b/router/index.js index 8a06b40..c075efa 100644 --- a/router/index.js +++ b/router/index.js @@ -15,8 +15,9 @@ router.get("/getQqList",async (ctx)=>{ router.get("/startDown",async (ctx)=>{ let title = ctx.query.title let url = ctx.query.url + let save = ctx.query.save dowloadlist.push({ - title,url + title,url,save }) // startDown() ctx.body={ @@ -37,11 +38,11 @@ router.get('/msg', KoaSSEStream(SSE_CONF), ctx => { }) let start = false function startDown(){ - + start = true dowload(dowloadlist[0],(data,isok)=>{ let name = dowloadlist[0].title clientList.forEach((i)=>{ - i.send(isok ? `${title}下载完成` : data ) + i.send(isok ? `${name}下载完成` : data ) if(isok){ dowloadlist.shift() start = false @@ -51,7 +52,6 @@ function startDown(){ } setInterval(()=>{ if(dowloadlist.length != 0 && !start){ - start = true startDown() }else if(dowloadlist.length == 0){ start = false diff --git a/util/download.js b/util/download.js index a1687bd..6df12bf 100644 --- a/util/download.js +++ b/util/download.js @@ -1,6 +1,7 @@ const path = require('path') const { getListData } = require(path.join(__dirname,'/getList/qq.js')); -const {dow} = require("./utils.js") +const {dow} = require("./utils.js"); +const { mkdirRecursions } = require('./markdir.js'); // async function getlist (url) { // let list = await getListData(url) @@ -14,7 +15,8 @@ const {dow} = require("./utils.js") function dowload(info,callback){ - console.log("开始") + mkdirRecursions(info.save) + console.log("开始",JSON.stringify(info)) dow(info,callback) } diff --git a/util/markdir.js b/util/markdir.js new file mode 100644 index 0000000..8678623 --- /dev/null +++ b/util/markdir.js @@ -0,0 +1,52 @@ +const fs= require("fs") +const path = require("path") +/** + * 读取路径信息 + * @param {string} path 路径 + */ +function getStat(dir) { + try { + const stat = fs.statSync(dir); + return stat; + } catch (error) { + return false; + } +} + +/** + * 创建路径 + * @param {string} dir 路径 + */ +function mkdir(dir) { + return fs.mkdirSync(dir) +} + +/** + * 路径是否存在,不存在则创建 + * @param {string} dir 路径 + */ +function mkdirRecursions(dir) { + let isExists = getStat(dir); + console.log(isExists) + //如果该路径且不是文件,返回true + if (isExists && isExists.isDirectory()) { + return true; + } + else if(isExists){ + return false; + } + //如果该路径不存在,拿到上级路径 + let tempDir = path.parse(dir).dir; + //递归判断,如果上级目录也不存在,则会代码会在此处继续循环执行,直到目录存在 + let status = mkdirRecursions(tempDir); + let mkdirStatus; + if (status) { + mkdirStatus = mkdir(dir); + } + return mkdirStatus; +} + + +module.exports = { + mkdirRecursions +} \ No newline at end of file diff --git a/util/utils.js b/util/utils.js index 1884b58..a9f432f 100644 --- a/util/utils.js +++ b/util/utils.js @@ -10,7 +10,7 @@ function seep(time){ } function dow(info,callback){ - const lux = spawn("./bin/yt-dlp.exe", ['--cookies-from-browser', 'edge', '-P', 'D:/dl', '-o', info.title + '.mp4', info.url]) + const lux = spawn("./bin/yt-dlp.exe", ['--cookies-from-browser', 'edge', '-P', info.save, '-o', info.title + '.mp4', info.url]) lux.stdout.on('data', (data) => { console.log(String(data)) callback(String(data),false) diff --git a/view/dist/assets/index-07bbb742.js b/view/dist/assets/index-07bbb742.js new file mode 100644 index 0000000..f2425e4 --- /dev/null +++ b/view/dist/assets/index-07bbb742.js @@ -0,0 +1,3 @@ +import{_ as ze,r as D,a as P,o as Q,c as Y,b,w as x,d as v,e as I,F as Je,f as $e,E as Z,t as We}from"./index-ed416134.js";function Ae(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ke}=Object.prototype,{getPrototypeOf:le}=Object,J=(e=>t=>{const n=Ke.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_=e=>(e=e.toLowerCase(),t=>J(t)===e),$=e=>t=>typeof t===e,{isArray:B}=Array,L=$("undefined");function Ge(e){return e!==null&&!L(e)&&e.constructor!==null&&!L(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _e=_("ArrayBuffer");function Xe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_e(e.buffer),t}const Qe=$("string"),g=$("function"),xe=$("number"),W=e=>e!==null&&typeof e=="object",Ye=e=>e===!0||e===!1,H=e=>{if(J(e)!=="object")return!1;const t=le(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ze=_("Date"),et=_("File"),tt=_("Blob"),nt=_("FileList"),rt=e=>W(e)&&g(e.pipe),st=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||g(e.append)&&((t=J(e))==="formdata"||t==="object"&&g(e.toString)&&e.toString()==="[object FormData]"))},ot=_("URLSearchParams"),it=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function k(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ne=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ce=e=>!L(e)&&e!==Ne;function se(){const{caseless:e}=Ce(this)&&this||{},t={},n=(r,s)=>{const o=e&&Te(t,s)||s;H(t[o])&&H(r)?t[o]=se(t[o],r):H(r)?t[o]=se({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(k(t,(s,o)=>{n&&g(s)?e[o]=Ae(s,n):e[o]=s},{allOwnKeys:r}),e),lt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ct=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ut=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&le(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ft=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},dt=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!xe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&le(Uint8Array)),ht=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},mt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yt=_("HTMLFormElement"),wt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Et=_("RegExp"),Pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},bt=e=>{Pe(e,(t,n)=>{if(g(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(g(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},St=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},Rt=()=>{},Ot=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ee="abcdefghijklmnopqrstuvwxyz",he="0123456789",Fe={DIGIT:he,ALPHA:ee,ALPHA_DIGIT:ee+ee.toUpperCase()+he},gt=(e=16,t=Fe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function At(e){return!!(e&&g(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _t=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return k(r,(i,l)=>{const p=n(i,s+1);!L(p)&&(o[l]=p)}),t[s]=void 0,o}}return r};return n(e,0)},xt=_("AsyncFunction"),Tt=e=>e&&(W(e)||g(e))&&g(e.then)&&g(e.catch),a={isArray:B,isArrayBuffer:_e,isBuffer:Ge,isFormData:st,isArrayBufferView:Xe,isString:Qe,isNumber:xe,isBoolean:Ye,isObject:W,isPlainObject:H,isUndefined:L,isDate:Ze,isFile:et,isBlob:tt,isRegExp:Et,isFunction:g,isStream:rt,isURLSearchParams:ot,isTypedArray:pt,isFileList:nt,forEach:k,merge:se,extend:at,trim:it,stripBOM:lt,inherits:ct,toFlatObject:ut,kindOf:J,kindOfTest:_,endsWith:ft,toArray:dt,forEachEntry:ht,matchAll:mt,isHTMLForm:yt,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:Pe,freezeMethods:bt,toObjectSet:St,toCamelCase:wt,noop:Rt,toFiniteNumber:Ot,findKey:Te,global:Ne,isContextDefined:Ce,ALPHABET:Fe,generateString:gt,isSpecCompliantForm:At,toJSONObject:_t,isAsyncFn:xt,isThenable:Tt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Be=m.prototype,De={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{De[e]={value:e}});Object.defineProperties(m,De);Object.defineProperty(Be,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Be);return a.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Nt=null;function oe(e){return a.isPlainObject(e)||a.isArray(e)}function Ue(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ue(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ct(e){return a.isArray(e)&&!e.some(oe)}const Pt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function K(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,R){return!a.isUndefined(R[h])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!p&&a.isBlob(u))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?p&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,h,R){let O=u;if(u&&!R&&typeof u=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Ct(u)||(a.isFileList(u)||a.endsWith(h,"[]"))&&(O=a.toArray(u)))return h=Ue(h),O.forEach(function(S,Ve){!(a.isUndefined(S)||S===null)&&t.append(i===!0?me([h],Ve,o):i===null?h:h+"[]",c(S))}),!1}return oe(u)?!0:(t.append(me(R,h,o),c(u)),!1)}const d=[],y=Object.assign(Pt,{defaultVisitor:f,convertValue:c,isVisitable:oe});function w(u,h){if(!a.isUndefined(u)){if(d.indexOf(u)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(u),a.forEach(u,function(O,N){(!(a.isUndefined(O)||O===null)&&s.call(t,O,a.isString(N)?N.trim():N,h,y))===!0&&w(O,h?h.concat(N):[N])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ce(e,t){this._pairs=[],e&&K(e,this,t)}const Le=ce.prototype;Le.append=function(t,n){this._pairs.push([t,n])};Le.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ft(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ke(e,t,n){if(!t)return e;const r=n&&n.encode||Ft,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const we=Bt,je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dt=typeof URLSearchParams<"u"?URLSearchParams:ce,Ut=typeof FormData<"u"?FormData:null,Lt=typeof Blob<"u"?Blob:null,kt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),jt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),A={isBrowser:!0,classes:{URLSearchParams:Dt,FormData:Ut,Blob:Lt},isStandardBrowserEnv:kt,isStandardBrowserWebWorkerEnv:jt,protocols:["http","https","file","blob","url","data"]};function vt(e,t){return K(e,new A.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return A.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function It(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ht(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Ht(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(It(r),s,n,0)}),n}return null}const qt={"Content-Type":void 0};function Mt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:je,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vt(t,this.formSerializer).toString();if((l=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return K(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Mt(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?m.from(l,m.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){G.headers[t]={}});a.forEach(["post","put","patch"],function(t){G.headers[t]=a.merge(qt)});const ue=G,Vt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zt=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Vt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ee=Symbol("internals");function U(e){return e&&String(e).trim().toLowerCase()}function q(e){return e===!1||e==null?e:a.isArray(e)?e.map(q):String(e)}function Jt(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 $t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function te(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Wt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class X{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,p,c){const f=U(p);if(!f)throw new Error("header name must be a non-empty string");const d=a.findKey(s,f);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||p]=q(l))}const i=(l,p)=>a.forEach(l,(c,f)=>o(c,f,p));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!$t(t)?i(zt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=U(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Jt(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=U(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||te(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=U(i),i){const l=a.findKey(r,i);l&&(!n||te(r,r[l],l,n))&&(delete r[l],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||te(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=q(s),delete n[o];return}const l=t?Wt(o):String(o).trim();l!==o&&delete n[o],n[l]=q(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.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(s=>r.set(s)),r}static accessor(t){const r=(this[Ee]=this[Ee]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=U(i);r[l]||(Kt(s,i),r[l]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}X.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.freezeMethods(X.prototype);a.freezeMethods(X);const T=X;function ne(e,t){const n=this||ue,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ie(e){return!!(e&&e.__CANCEL__)}function j(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(j,m,{__CANCEL__:!0});function Gt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xt=A.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),a.isString(o)&&p.push("path="+o),a.isString(i)&&p.push("domain="+i),l===!0&&p.push("secure"),document.cookie=p.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 Qt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function He(e,t){return e&&!Qt(t)?Yt(e,t):t}const Zt=A.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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=s(window.location.href),function(i){const l=a.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function en(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const c=Date.now(),f=r[o];i||(i=c),n[s]=p,r[s]=c;let d=o,y=0;for(;d!==s;)y+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,p=r(l),c=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:p||void 0,estimated:p&&i&&c?(i-o)/p:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const nn=typeof XMLHttpRequest<"u",rn=nn&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize(),i=e.responseType;let l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}a.isFormData(s)&&(A.isStandardBrowserEnv||A.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(w+":"+u))}const f=He(e.baseURL,e.url);c.open(e.method.toUpperCase(),ke(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const w=T.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:w,config:e,request:c};Gt(function(O){n(O),p()},function(O){r(O),p()},h),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new m("Request aborted",m.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||je;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),r(new m(u,h.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,c)),c=null},A.isStandardBrowserEnv){const w=(e.withCredentials||Zt(f))&&e.xsrfCookieName&&Xt.read(e.xsrfCookieName);w&&o.set(e.xsrfHeaderName,w)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&a.forEach(o.toJSON(),function(u,h){c.setRequestHeader(h,u)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",be(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",be(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=w=>{c&&(r(!w||w.type?new j(null,e,c):w),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=en(f);if(y&&A.protocols.indexOf(y)===-1){r(new m("Unsupported protocol "+y+":",m.ERR_BAD_REQUEST,e));return}c.send(s||null)})},M={http:Nt,xhr:rn};a.forEach(M,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sn={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof T?e.toJSON():e;function F(e,t){t=t||{};const n={};function r(c,f,d){return a.isPlainObject(c)&&a.isPlainObject(f)?a.merge.call({caseless:d},c,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function s(c,f,d){if(a.isUndefined(f)){if(!a.isUndefined(c))return r(void 0,c,d)}else return r(c,f,d)}function o(c,f){if(!a.isUndefined(f))return r(void 0,f)}function i(c,f){if(a.isUndefined(f)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function l(c,f,d){if(d in t)return r(c,f);if(d in e)return r(void 0,c)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,f)=>s(Re(c),Re(f),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(f){const d=p[f]||s,y=d(e[f],t[f],f);a.isUndefined(y)&&d!==l||(n[f]=y)}),n}const qe="1.4.0",fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Oe={};fe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+qe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Oe[i]&&(Oe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function on(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],p=l===void 0||i(l,o,e);if(p!==!0)throw new m("option "+o+" must be "+p,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const ie={assertOptions:on,validators:fe},C=ie.validators;class z{constructor(t){this.defaults=t,this.interceptors={request:new we,response:new we}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=F(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ie.assertOptions(r,{silentJSONParsing:C.transitional(C.boolean),forcedJSONParsing:C.transitional(C.boolean),clarifyTimeoutError:C.transitional(C.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ie.assertOptions(s,{encode:C.function,serialize:C.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&a.merge(o.common,o[n.method]),i&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=T.concat(i,o);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let f,d=0,y;if(!p){const u=[Se.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,c),y=u.length,f=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new j(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}const an=de;function ln(e){return function(n){return e.apply(null,n)}}function cn(e){return a.isObject(e)&&e.isAxiosError===!0}const ae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ae).forEach(([e,t])=>{ae[t]=e});const un=ae;function Me(e){const t=new V(e),n=Ae(V.prototype.request,t);return a.extend(n,V.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Me(F(e,s))},n}const E=Me(ue);E.Axios=V;E.CanceledError=j;E.CancelToken=an;E.isCancel=Ie;E.VERSION=qe;E.toFormData=K;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=ln;E.isAxiosError=cn;E.mergeConfig=F;E.AxiosHeaders=T;E.formToJSON=e=>ve(a.isHTMLForm(e)?new FormData(e):e);E.HttpStatusCode=un;E.default=E;const ge=E;const fn={class:"url"},dn={style:{display:"flex",width:"100%"}},pn={style:{display:"flex"}},hn={style:{display:"flex"}},mn={style:{width:"100%",height:"100%","overflow-y":"auto"}},yn={__name:"index",setup(e){const t=D(!1),n=D({name:"https://v.qq.com/x/cover/mzc002007vp35qj.html",start:1,save:localStorage.getItem("save")}),r=D([]),s=D();function o(){ge.get("http://127.0.0.1:3050/getQqList",{params:{url:n.value.name}}).then(d=>{r.value=d.data})}function i(){s.value.clearSelection();for(let d=n.value.start-1;d{l.value.length>200&&l.value.splice(200),l.value.unshift(d.data)};function f(){t.value=!0}return(d,y)=>{const w=P("el-input"),u=P("el-button"),h=P("el-form-item"),R=P("el-table-column"),O=P("el-table"),N=P("el-dialog");return Q(),Y("div",fn,[b(h,{label:"视频地址"},{default:x(()=>[v("div",dn,[b(w,{style:{width:"100%"},modelValue:n.value.name,"onUpdate:modelValue":y[0]||(y[0]=S=>n.value.name=S)},null,8,["modelValue"]),b(u,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:o,type:"primary"},{default:x(()=>[I("获取")]),_:1})])]),_:1}),b(h,{label:"第几集开始"},{default:x(()=>[v("div",pn,[b(w,{modelValue:n.value.start,"onUpdate:modelValue":y[1]||(y[1]=S=>n.value.start=S)},null,8,["modelValue"]),b(u,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:i,type:"primary"},{default:x(()=>[I("设置")]),_:1})])]),_:1}),b(h,{label:"下载保存地址"},{default:x(()=>[v("div",hn,[b(w,{modelValue:n.value.save,"onUpdate:modelValue":y[2]||(y[2]=S=>n.value.save=S)},null,8,["modelValue"]),b(u,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:p,type:"primary"},{default:x(()=>[I("下载")]),_:1}),b(u,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:f,type:"primary"},{default:x(()=>[I("查看进度")]),_:1})])]),_:1}),b(O,{ref_key:"table",ref:s,data:r.value,style:{width:"100%"}},{default:x(()=>[b(R,{type:"selection",width:"55"}),b(R,{label:"title",prop:"title"}),b(R,{label:"url",prop:"url"})]),_:1},8,["data"]),b(N,{fullscreen:!0,modelValue:t.value,"onUpdate:modelValue":y[3]||(y[3]=S=>t.value=S),title:"Tips",width:"30%"},{default:x(()=>[v("div",mn,[(Q(!0),Y(Je,null,$e(l.value,S=>(Q(),Y("div",null,We(S),1))),256))])]),_:1},8,["modelValue"])])}}},En=ze(yn,[["__scopeId","data-v-67546c87"]]);export{En as default}; diff --git a/view/dist/assets/index-54b3342f.js b/view/dist/assets/index-54b3342f.js deleted file mode 100644 index 3d621ea..0000000 --- a/view/dist/assets/index-54b3342f.js +++ /dev/null @@ -1,107 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const r of l)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const r={};return l.integrity&&(r.integrity=l.integrity),l.referrerPolicy&&(r.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?r.credentials="include":l.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(l){if(l.ep)return;l.ep=!0;const r=n(l);fetch(l.href,r)}})();function Rl(e,t){const n=Object.create(null),o=e.split(",");for(let l=0;l!!n[l.toLowerCase()]:l=>!!n[l]}function Ke(e){if(Le(e)){const t={};for(let n=0;n{if(n){const o=n.split(OS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function E(e){let t="";if(Ze(e))t=e;else if(Le(e))for(let n=0;nls(n,t))}const Oe=e=>Ze(e)?e:e==null?"":Le(e)||lt(e)&&(e.toString===By||!Ye(e.toString))?JSON.stringify(e,Ly,2):String(e),Ly=(e,t)=>t&&t.__v_isRef?Ly(e,t.value):ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,l])=>(n[`${o} =>`]=l,n),{})}:ju(t)?{[`Set(${t.size})`]:[...t.values()]}:lt(t)&&!Le(t)&&!Fy(t)?String(t):t,Vt=Object.freeze({}),Yr=Object.freeze([]),Tt=()=>{},Dy=()=>!1,BS=/^on[^a-z]/,ja=e=>BS.test(e),fu=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Gf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},FS=Object.prototype.hasOwnProperty,ht=(e,t)=>FS.call(e,t),Le=Array.isArray,ar=e=>Wa(e)==="[object Map]",ju=e=>Wa(e)==="[object Set]",yr=e=>Wa(e)==="[object Date]",Ye=e=>typeof e=="function",Ze=e=>typeof e=="string",ua=e=>typeof e=="symbol",lt=e=>e!==null&&typeof e=="object",rs=e=>lt(e)&&Ye(e.then)&&Ye(e.catch),By=Object.prototype.toString,Wa=e=>By.call(e),Gr=e=>Wa(e).slice(8,-1),Fy=e=>Wa(e)==="[object Object]",Xf=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ri=Rl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),VS=Rl("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Wu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zS=/-(\w)/g,Xn=Wu(e=>e.replace(zS,(t,n)=>n?n.toUpperCase():"")),HS=/\B([A-Z])/g,Io=Wu(e=>e.replace(HS,"-$1").toLowerCase()),El=Wu(e=>e.charAt(0).toUpperCase()+e.slice(1)),vl=Wu(e=>e?`on${El(e)}`:""),ca=(e,t)=>!Object.is(e,t),Dr=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},KS=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t};let Kh;const Vy=()=>Kh||(Kh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hu(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Fn;class zy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fn,!t&&Fn&&(this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fn;try{return Fn=this,t()}finally{Fn=n}}else hu("cannot run an inactive effect scope.")}on(){Fn=this}off(){Fn=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},jy=e=>(e.w&Tl)>0,Wy=e=>(e.n&Tl)>0,US=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{(d==="length"||d>=c)&&a.push(f)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Le(e)?Xf(n)&&a.push(s.get("length")):(a.push(s.get(ir)),ar(e)&&a.push(s.get(Cd)));break;case"delete":Le(e)||(a.push(s.get(ir)),ar(e)&&a.push(s.get(Cd)));break;case"set":ar(e)&&a.push(s.get(ir));break}const u={target:e,type:t,key:n,newValue:o,oldValue:l,oldTarget:r};if(a.length===1)a[0]&&Sd(a[0],u);else{const c=[];for(const f of a)f&&c.push(...f);Sd(Zf(c),u)}}function Sd(e,t){const n=Le(e)?e:[...e];for(const o of n)o.computed&&Wh(o,t);for(const o of n)o.computed||Wh(o,t)}function Wh(e,t){(e!==wn||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(Xt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function YS(e,t){var n;return(n=vu.get(e))===null||n===void 0?void 0:n.get(t)}const GS=Rl("__proto__,__v_isRef,__isVue"),Yy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ua)),XS=Uu(),ZS=Uu(!1,!0),JS=Uu(!0),QS=Uu(!0,!0),Uh=ek();function ek(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=bt(this);for(let r=0,s=this.length;r{e[t]=function(...n){_r();const o=bt(this)[t].apply(this,n);return $r(),o}}),e}function tk(e){const t=bt(this);return Ln(t,"has",e),t.hasOwnProperty(e)}function Uu(e=!1,t=!1){return function(o,l,r){if(l==="__v_isReactive")return!e;if(l==="__v_isReadonly")return e;if(l==="__v_isShallow")return t;if(l==="__v_raw"&&r===(e?t?nb:tb:t?eb:Qy).get(o))return o;const s=Le(o);if(!e){if(s&&ht(Uh,l))return Reflect.get(Uh,l,r);if(l==="hasOwnProperty")return tk}const a=Reflect.get(o,l,r);return(ua(l)?Yy.has(l):GS(l))||(e||Ln(o,"get",l),t)?a:Nt(a)?s&&Xf(l)?a:a.value:lt(a)?e?$s(a):$t(a):a}}const nk=Gy(),ok=Gy(!0);function Gy(e=!1){return function(n,o,l,r){let s=n[o];if(Ol(s)&&Nt(s)&&!Nt(l))return!1;if(!e&&(!mu(l)&&!Ol(l)&&(s=bt(s),l=bt(l)),!Le(n)&&Nt(s)&&!Nt(l)))return s.value=l,!0;const a=Le(n)&&Xf(o)?Number(o)e,qu=e=>Reflect.getPrototypeOf(e);function ci(e,t,n=!1,o=!1){e=e.__v_raw;const l=bt(e),r=bt(t);n||(t!==r&&Ln(l,"get",t),Ln(l,"get",r));const{has:s}=qu(l),a=o?Qf:n?ep:da;if(s.call(l,t))return a(e.get(t));if(s.call(l,r))return a(e.get(r));e!==l&&e.get(t)}function di(e,t=!1){const n=this.__v_raw,o=bt(n),l=bt(e);return t||(e!==l&&Ln(o,"has",e),Ln(o,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function fi(e,t=!1){return e=e.__v_raw,!t&&Ln(bt(e),"iterate",ir),Reflect.get(e,"size",e)}function qh(e){e=bt(e);const t=bt(this);return qu(t).has.call(t,e)||(t.add(e),Zo(t,"add",e,e)),this}function Yh(e,t){t=bt(t);const n=bt(this),{has:o,get:l}=qu(n);let r=o.call(n,e);r?Jy(n,o,e):(e=bt(e),r=o.call(n,e));const s=l.call(n,e);return n.set(e,t),r?ca(t,s)&&Zo(n,"set",e,t,s):Zo(n,"add",e,t),this}function Gh(e){const t=bt(this),{has:n,get:o}=qu(t);let l=n.call(t,e);l?Jy(t,n,e):(e=bt(e),l=n.call(t,e));const r=o?o.call(t,e):void 0,s=t.delete(e);return l&&Zo(t,"delete",e,void 0,r),s}function Xh(){const e=bt(this),t=e.size!==0,n=ar(e)?new Map(e):new Set(e),o=e.clear();return t&&Zo(e,"clear",void 0,void 0,n),o}function pi(e,t){return function(o,l){const r=this,s=r.__v_raw,a=bt(s),u=t?Qf:e?ep:da;return!e&&Ln(a,"iterate",ir),s.forEach((c,f)=>o.call(l,u(c),u(f),r))}}function hi(e,t,n){return function(...o){const l=this.__v_raw,r=bt(l),s=ar(r),a=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=l[e](...o),f=n?Qf:t?ep:da;return!t&&Ln(r,"iterate",u?Cd:ir),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:a?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function al(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${El(e)} operation ${n}failed: target is readonly.`,bt(this))}return e==="delete"?!1:this}}function uk(){const e={get(r){return ci(this,r)},get size(){return fi(this)},has:di,add:qh,set:Yh,delete:Gh,clear:Xh,forEach:pi(!1,!1)},t={get(r){return ci(this,r,!1,!0)},get size(){return fi(this)},has:di,add:qh,set:Yh,delete:Gh,clear:Xh,forEach:pi(!1,!0)},n={get(r){return ci(this,r,!0)},get size(){return fi(this,!0)},has(r){return di.call(this,r,!0)},add:al("add"),set:al("set"),delete:al("delete"),clear:al("clear"),forEach:pi(!0,!1)},o={get(r){return ci(this,r,!0,!0)},get size(){return fi(this,!0)},has(r){return di.call(this,r,!0)},add:al("add"),set:al("set"),delete:al("delete"),clear:al("clear"),forEach:pi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=hi(r,!1,!1),n[r]=hi(r,!0,!1),t[r]=hi(r,!1,!0),o[r]=hi(r,!0,!0)}),[e,n,t,o]}const[ck,dk,fk,pk]=uk();function Yu(e,t){const n=t?e?pk:fk:e?dk:ck;return(o,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?o:Reflect.get(ht(n,l)&&l in o?n:o,l,r)}const hk={get:Yu(!1,!1)},vk={get:Yu(!1,!0)},mk={get:Yu(!0,!1)},gk={get:Yu(!0,!0)};function Jy(e,t,n){const o=bt(n);if(o!==n&&t.call(e,o)){const l=Gr(e);console.warn(`Reactive ${l} contains both the raw and reactive versions of the same object${l==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Qy=new WeakMap,eb=new WeakMap,tb=new WeakMap,nb=new WeakMap;function yk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bk(e){return e.__v_skip||!Object.isExtensible(e)?0:yk(Gr(e))}function $t(e){return Ol(e)?e:Gu(e,!1,Xy,hk,Qy)}function ob(e){return Gu(e,!1,ak,vk,eb)}function $s(e){return Gu(e,!0,Zy,mk,tb)}function Kr(e){return Gu(e,!0,ik,gk,nb)}function Gu(e,t,n,o,l){if(!lt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=l.get(e);if(r)return r;const s=bk(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return l.set(e,a),a}function ur(e){return Ol(e)?ur(e.__v_raw):!!(e&&e.__v_isReactive)}function Ol(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function gu(e){return ur(e)||Ol(e)}function bt(e){const t=e&&e.__v_raw;return t?bt(t):e}function cr(e){return pu(e,"__v_skip",!0),e}const da=e=>lt(e)?$t(e):e,ep=e=>lt(e)?$s(e):e;function lb(e){kl&&wn&&(e=bt(e),qy(e.dep||(e.dep=Zf()),{target:e,type:"get",key:"value"}))}function tp(e,t){e=bt(e);const n=e.dep;n&&Sd(n,{target:e,type:"set",key:"value",newValue:t})}function Nt(e){return!!(e&&e.__v_isRef===!0)}function N(e){return rb(e,!1)}function Pt(e){return rb(e,!0)}function rb(e,t){return Nt(e)?e:new wk(e,t)}class wk{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:bt(t),this._value=n?t:da(t)}get value(){return lb(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||Ol(t);t=n?t:bt(t),ca(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:da(t),tp(this,t))}}function Ps(e){tp(e,e.value)}function i(e){return Nt(e)?e.value:e}const Ck={get:(e,t,n)=>i(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const l=e[t];return Nt(l)&&!Nt(n)?(l.value=n,!0):Reflect.set(e,t,n,o)}};function sb(e){return ur(e)?e:new Proxy(e,Ck)}function on(e){gu(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=Le(e)?new Array(e.length):{};for(const n in e)t[n]=Bt(e,n);return t}class Sk{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return YS(bt(this._object),this._key)}}function Bt(e,t,n){const o=e[t];return Nt(o)?o:new Sk(e,t,n)}var ab;class kk{constructor(t,n,o,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ab]=!1,this._dirty=!0,this.effect=new Jf(t,()=>{this._dirty||(this._dirty=!0,tp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=o}get value(){const t=bt(this);return lb(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ab="__v_isReadonly";function ib(e,t,n=!1){let o,l;const r=Ye(e);r?(o=e,l=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,l=e.set);const s=new kk(o,l,r||!l,n);return t&&!n&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}const dr=[];function Li(e){dr.push(e)}function Di(){dr.pop()}function je(e,...t){_r();const n=dr.length?dr[dr.length-1].component:null,o=n&&n.appContext.config.warnHandler,l=_k();if(o)Go(o,n,11,[e+t.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${lc(n,r.type)}>`).join(` -`),l]);else{const r=[`[Vue warn]: ${e}`,...t];l.length&&r.push(` -`,...$k(l)),console.warn(...r)}$r()}function _k(){let e=dr[dr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function $k(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[` -`],...Ek(n))}),t}function Ek({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,l=` at <${lc(e.component,e.type,o)}`,r=">"+n;return e.props?[l,...Tk(e.props),r]:[l+r]}function Tk(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ub(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ub(e,t,n){return Ze(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Nt(t)?(t=ub(e,bt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=bt(t),n?t:[`${e}=`,t])}function Ok(e,t){e!==void 0&&(typeof e!="number"?je(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&je(`${t} is NaN - the duration expression might be incorrect.`))}const np={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Go(e,t,n,o){let l;try{l=o?e(...o):e()}catch(r){Xu(r,t,n)}return l}function qn(e,t,n,o){if(Ye(e)){const r=Go(e,t,n,o);return r&&rs(r)&&r.catch(s=>{Xu(s,t,n)}),r}const l=[];for(let r=0;r>>1;pa(vn[o])_o&&vn.splice(t,1)}function fb(e){Le(e)?Xr.push(...e):(!ko||!ko.includes(e,e.allowRecurse?ml+1:ml))&&Xr.push(e),db()}function Zh(e,t=fa?_o+1:0){for(e=e||new Map;tpa(n)-pa(o)),ml=0;mle.id==null?1/0:e.id,xk=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function hb(e){kd=!1,fa=!0,e=e||new Map,vn.sort(xk);const t=n=>lp(e,n);try{for(_o=0;_oIk){const o=t.ownerInstance,l=o&&pp(o.type);return je(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let _l=!1;const Br=new Set;Vy().__VUE_HMR_RUNTIME__={createRecord:Ac(vb),rerender:Ac(Lk),reload:Ac(Dk)};const br=new Map;function Ak(e){const t=e.type.__hmrId;let n=br.get(t);n||(vb(t,e.type),n=br.get(t)),n.instances.add(e)}function Rk(e){br.get(e.type.__hmrId).instances.delete(e)}function vb(e,t){return br.has(e)?!1:(br.set(e,{initialDef:Ys(t),instances:new Set}),!0)}function Ys(e){return Gb(e)?e.__vccOpts:e}function Lk(e,t){const n=br.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,Ys(o.type).render=t),o.renderCache=[],_l=!0,o.update(),_l=!1}))}function Dk(e,t){const n=br.get(e);if(!n)return;t=Ys(t),Jh(n.initialDef,t);const o=[...n.instances];for(const l of o){const r=Ys(l.type);Br.has(r)||(r!==n.initialDef&&Jh(r,t),Br.add(r)),l.appContext.optionsCache.delete(l.type),l.ceReload?(Br.add(r),l.ceReload(t.styles),Br.delete(r)):l.parent?Zu(l.parent.update):l.appContext.reload?l.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}fb(()=>{for(const l of o)Br.delete(Ys(l.type))})}function Jh(e,t){Xt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ac(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let $o,Ws=[],_d=!1;function Ua(e,...t){$o?$o.emit(e,...t):_d||Ws.push({event:e,args:t})}function mb(e,t){var n,o;$o=e,$o?($o.enabled=!0,Ws.forEach(({event:l,args:r})=>$o.emit(l,...r)),Ws=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{mb(r,t)}),setTimeout(()=>{$o||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_d=!0,Ws=[])},3e3)):(_d=!0,Ws=[])}function Bk(e,t){Ua("app:init",e,t,{Fragment:He,Text:Er,Comment:Qt,Static:Bi})}function Fk(e){Ua("app:unmount",e)}const Vk=rp("component:added"),gb=rp("component:updated"),zk=rp("component:removed"),Hk=e=>{$o&&typeof $o.cleanupBuffer=="function"&&!$o.cleanupBuffer(e)&&zk(e)};function rp(e){return t=>{Ua(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Kk=yb("perf:start"),jk=yb("perf:end");function yb(e){return(t,n,o)=>{Ua(e,t.appContext.app,t.uid,t,n,o)}}function Wk(e,t,n){Ua("component:emit",e.appContext.app,e,t,n)}function Uk(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Vt;{const{emitsOptions:f,propsOptions:[d]}=e;if(f)if(!(t in f))(!d||!(vl(t)in d))&&je(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${vl(t)}" prop.`);else{const p=f[t];Ye(p)&&(p(...n)||je(`Invalid event arguments: event validation failed for event "${t}".`))}}let l=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[f]||Vt;p&&(l=n.map(h=>Ze(h)?h.trim():h)),d&&(l=n.map(bd))}Wk(e,t,l);{const f=t.toLowerCase();f!==t&&o[vl(f)]&&je(`Event "${f}" is emitted in component ${lc(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Io(t)}" instead of "${t}".`)}let a,u=o[a=vl(t)]||o[a=vl(Xn(t))];!u&&r&&(u=o[a=vl(Io(t))]),u&&qn(u,e,6,l);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qn(c,e,6,l)}}function bb(e,t,n=!1){const o=t.emitsCache,l=o.get(e);if(l!==void 0)return l;const r=e.emits;let s={},a=!1;if(!Ye(e)){const u=c=>{const f=bb(c,t,!0);f&&(a=!0,Xt(s,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(lt(e)&&o.set(e,null),null):(Le(r)?r.forEach(u=>s[u]=null):Xt(s,r),lt(e)&&o.set(e,s),s)}function Ju(e,t){return!e||!ja(t)?!1:(t=t.slice(2).replace(/Once$/,""),ht(e,t[0].toLowerCase()+t.slice(1))||ht(e,Io(t))||ht(e,t))}let rn=null,wb=null;function yu(e){const t=rn;return rn=e,wb=e&&e.type.__scopeId||null,t}function Q(e,t=rn,n){if(!t||e._n)return e;const o=(...l)=>{o._d&&dv(-1);const r=yu(t);let s;try{s=e(...l)}finally{yu(r),o._d&&dv(1)}return gb(t),s};return o._n=!0,o._c=!0,o._d=!0,o}let $d=!1;function bu(){$d=!0}function Rc(e){const{type:t,vnode:n,proxy:o,withProxy:l,props:r,propsOptions:[s],slots:a,attrs:u,emit:c,render:f,renderCache:d,data:p,setupState:h,ctx:m,inheritAttrs:v}=e;let g,y;const C=yu(e);$d=!1;try{if(n.shapeFlag&4){const $=l||o;g=ro(f.call($,$,d,r,h,p,m)),y=u}else{const $=t;u===r&&bu(),g=ro($.length>1?$(r,{get attrs(){return bu(),u},slots:a,emit:c}):$(r,null)),y=t.props?u:Yk(u)}}catch($){Zs.length=0,Xu($,e,1),g=U(Qt)}let b=g,w;if(g.patchFlag>0&&g.patchFlag&2048&&([b,w]=qk(g)),y&&v!==!1){const $=Object.keys(y),{shapeFlag:k}=b;if($.length){if(k&7)s&&$.some(fu)&&(y=Gk(y,s)),b=po(b,y);else if(!$d&&b.type!==Qt){const O=Object.keys(u),M=[],A=[];for(let x=0,L=O.length;x renders non-element root node that cannot be animated."),b.transition=n.transition),w?w(b):g=b,yu(C),g}const qk=e=>{const t=e.children,n=e.dynamicChildren,o=Cb(t);if(!o)return[e,void 0];const l=t.indexOf(o),r=n?n.indexOf(o):-1,s=a=>{t[l]=a,n&&(r>-1?n[r]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[ro(o),s]};function Cb(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||ja(n))&&((t||(t={}))[n]=e[n]);return t},Gk=(e,t)=>{const n={};for(const o in e)(!fu(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Qh=e=>e.shapeFlag&7||e.type===Qt;function Xk(e,t,n){const{props:o,children:l,component:r}=e,{props:s,children:a,patchFlag:u}=t,c=r.emitsOptions;if((l||a)&&_l||t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?ev(o,s,c):!!s;if(u&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function Qk(e,t){t&&t.pendingBranch?Le(e)?t.effects.push(...e):t.effects.push(e):fb(e)}function dt(e,t){if(!Jt)je("provide() can only be used inside setup().");else{let n=Jt.provides;const o=Jt.parent&&Jt.parent.provides;o===n&&(n=Jt.provides=Object.create(o)),n[e]=t}}function Be(e,t,n=!1){const o=Jt||rn;if(o){const l=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&Ye(t)?t.call(o.proxy):t;je(`injection "${String(e)}" not found.`)}else je("inject() can only be used inside setup() or functional components.")}function Nn(e,t){return sp(e,null,t)}const vi={};function ve(e,t,n){return Ye(t)||je("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),sp(e,t,n)}function sp(e,t,{immediate:n,deep:o,flush:l,onTrack:r,onTrigger:s}=Vt){t||(n!==void 0&&je('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&je('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=w=>{je("Invalid watch source: ",w,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Hy()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,f=!1,d=!1;if(Nt(e)?(c=()=>e.value,f=mu(e)):ur(e)?(c=()=>e,o=!0):Le(e)?(d=!0,f=e.some(w=>ur(w)||mu(w)),c=()=>e.map(w=>{if(Nt(w))return w.value;if(ur(w))return er(w);if(Ye(w))return Go(w,u,2);a(w)})):Ye(e)?t?c=()=>Go(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return p&&p(),qn(e,u,3,[h])}:(c=Tt,a(e)),t&&o){const w=c;c=()=>er(w())}let p,h=w=>{p=C.onStop=()=>{Go(w,u,4)}},m;if(ya)if(h=Tt,t?n&&qn(t,u,3,[c(),d?[]:void 0,h]):c(),l==="sync"){const w=J_();m=w.__watcherHandles||(w.__watcherHandles=[])}else return Tt;let v=d?new Array(e.length).fill(vi):vi;const g=()=>{if(C.active)if(t){const w=C.run();(o||f||(d?w.some(($,k)=>ca($,v[k])):ca(w,v)))&&(p&&p(),qn(t,u,3,[w,v===vi?void 0:d&&v[0]===vi?[]:v,h]),v=w)}else C.run()};g.allowRecurse=!!t;let y;l==="sync"?y=g:l==="post"?y=()=>In(g,u&&u.suspense):(g.pre=!0,u&&(g.id=u.uid),y=()=>Zu(g));const C=new Jf(c,y);C.onTrack=r,C.onTrigger=s,t?n?g():v=C.run():l==="post"?In(C.run.bind(C),u&&u.suspense):C.run();const b=()=>{C.stop(),u&&u.scope&&Gf(u.scope.effects,C)};return m&&m.push(b),b}function e_(e,t,n){const o=this.proxy,l=Ze(e)?e.includes(".")?Sb(o,e):()=>o[e]:e.bind(o,o);let r;Ye(t)?r=t:(r=t.handler,n=t);const s=Jt;ss(this);const a=sp(l,r.bind(o),n);return s?ss(s):pr(),a}function Sb(e,t){const n=t.split(".");return()=>{let o=e;for(let l=0;l{er(n,t)});else if(Fy(e))for(const n in e)er(e[n],t);return e}function kb(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return rt(()=>{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const Kn=[Function,Array],t_={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},setup(e,{slots:t}){const n=st(),o=kb();let l;return()=>{const r=t.default&&ap(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let v=!1;for(const g of r)if(g.type!==Qt){if(v){je(" can only be used on a single element or component. Use for lists.");break}s=g,v=!0}}const a=bt(e),{mode:u}=a;if(u&&u!=="in-out"&&u!=="out-in"&&u!=="default"&&je(`invalid mode: ${u}`),o.isLeaving)return Lc(s);const c=tv(s);if(!c)return Lc(s);const f=ha(c,a,o,n);va(c,f);const d=n.subTree,p=d&&tv(d);let h=!1;const{getTransitionKey:m}=c.type;if(m){const v=m();l===void 0?l=v:v!==l&&(l=v,h=!0)}if(p&&p.type!==Qt&&(!Xl(c,p)||h)){const v=ha(p,a,o,n);if(va(p,v),u==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Lc(s);u==="in-out"&&c.type!==Qt&&(v.delayLeave=(g,y,C)=>{const b=$b(o,p);b[String(p.key)]=p,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=C})}return s}}},_b=t_;function $b(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function ha(e,t,n,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:C}=t,b=String(e.key),w=$b(n,e),$=(M,A)=>{M&&qn(M,o,9,A)},k=(M,A)=>{const x=A[1];$(M,A),Le(M)?M.every(L=>L.length<=1)&&x():M.length<=1&&x()},O={mode:r,persisted:s,beforeEnter(M){let A=a;if(!n.isMounted)if(l)A=v||a;else return;M._leaveCb&&M._leaveCb(!0);const x=w[b];x&&Xl(e,x)&&x.el._leaveCb&&x.el._leaveCb(),$(A,[M])},enter(M){let A=u,x=c,L=f;if(!n.isMounted)if(l)A=g||u,x=y||c,L=C||f;else return;let R=!1;const P=M._enterCb=V=>{R||(R=!0,V?$(L,[M]):$(x,[M]),O.delayedLeave&&O.delayedLeave(),M._enterCb=void 0)};A?k(A,[M,P]):P()},leave(M,A){const x=String(e.key);if(M._enterCb&&M._enterCb(!0),n.isUnmounting)return A();$(d,[M]);let L=!1;const R=M._leaveCb=P=>{L||(L=!0,A(),P?$(m,[M]):$(h,[M]),M._leaveCb=void 0,w[x]===e&&delete w[x])};w[x]=e,p?k(p,[M,R]):R()},clone(M){return ha(M,t,n,o)}};return O}function Lc(e){if(qa(e))return e=po(e),e.children=null,e}function tv(e){return qa(e)?e.children?e.children[0]:void 0:e}function va(e,t){e.shapeFlag&6&&e.component?va(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ap(e,t=!1,n){let o=[],l=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,qa=e=>e.type.__isKeepAlive;function n_(e,t){Tb(e,"a",t)}function Eb(e,t){Tb(e,"da",t)}function Tb(e,t,n=Jt){const o=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Qu(t,o,n),n){let l=n.parent;for(;l&&l.parent;)qa(l.parent.vnode)&&o_(o,t,n,l),l=l.parent}}function o_(e,t,n,o){const l=Qu(t,e,o,!0);Ll(()=>{Gf(o[t],l)},n)}function Qu(e,t,n=Jt,o=!1){if(n){const l=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_r(),ss(n);const a=qn(t,n,e,s);return pr(),$r(),a});return o?l.unshift(r):l.push(r),r}else{const l=vl(np[e].replace(/ hook$/,""));je(`${l} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const tl=e=>(t,n=Jt)=>(!ya||e==="sp")&&Qu(e,(...o)=>t(...o),n),ec=tl("bm"),rt=tl("m"),Ob=tl("bu"),nl=tl("u"),Ft=tl("bum"),Ll=tl("um"),l_=tl("sp"),r_=tl("rtg"),s_=tl("rtc");function a_(e,t=Jt){Qu("ec",e,t)}function Mb(e){VS(e)&&je("Do not use built-in directive ids as custom directive id: "+e)}function ot(e,t){const n=rn;if(n===null)return je("withDirectives can only be used inside render functions."),e;const o=oc(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let r=0;rt(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);l=new Array(s.length);for(let a=0,u=s.length;a{const r=o.fn(...l);return r&&(r.key=o.key),r}:o.fn)}return e}function pe(e,t,n={},o,l){if(rn.isCE||rn.parent&&Gs(rn.parent)&&rn.parent.isCE)return t!=="default"&&(n.name=t),U("slot",n,o&&o());let r=e[t];r&&r.length>1&&(je("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),_();const s=r&&Nb(r(n)),a=ae(He,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!l&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Nb(e){return e.some(t=>Lt(t)?!(t.type===Qt||t.type===He&&!Nb(t.children)):!0)?e:null}function u_(e,t){const n={};if(!lt(e))return je("v-on with no argument expects an object value."),n;for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:vl(o)]=e[o];return n}const Ed=e=>e?Wb(e)?oc(e)||e.proxy:Ed(e.parent):null,fr=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Kr(e.props),$attrs:e=>Kr(e.attrs),$slots:e=>Kr(e.slots),$refs:e=>Kr(e.refs),$parent:e=>Ed(e.parent),$root:e=>Ed(e.root),$emit:e=>e.emit,$options:e=>cp(e),$forceUpdate:e=>e.f||(e.f=()=>Zu(e.update)),$nextTick:e=>e.n||(e.n=Fe.bind(e.proxy)),$watch:e=>e_.bind(e)}),up=e=>e==="_"||e==="$",Dc=(e,t)=>e!==Vt&&!e.__isScriptSetup&&ht(e,t),Pb={get({_:e},t){const{ctx:n,setupState:o,data:l,props:r,accessCache:s,type:a,appContext:u}=e;if(t==="__isVue")return!0;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return l[t];case 4:return n[t];case 3:return r[t]}else{if(Dc(o,t))return s[t]=1,o[t];if(l!==Vt&&ht(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&ht(c,t))return s[t]=3,r[t];if(n!==Vt&&ht(n,t))return s[t]=4,n[t];Td&&(s[t]=0)}}const f=fr[t];let d,p;if(f)return t==="$attrs"&&(Ln(e,"get",t),bu()),f(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Vt&&ht(n,t))return s[t]=4,n[t];if(p=u.config.globalProperties,ht(p,t))return p[t];rn&&(!Ze(t)||t.indexOf("__v")!==0)&&(l!==Vt&&up(t[0])&&ht(l,t)?je(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===rn&&je(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:l,ctx:r}=e;return Dc(l,t)?(l[t]=n,!0):l.__isScriptSetup&&ht(l,t)?(je(`Cannot mutate - + +
diff --git a/view/src/page/index.vue b/view/src/page/index.vue index b95dd88..f107d84 100644 --- a/view/src/page/index.vue +++ b/view/src/page/index.vue @@ -28,24 +28,24 @@ - +
{{ i }}
- +