dudu-converter-cli 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/release/cli.js +7 -7
- package/web/dist/assets/{index-DpoSYrss.css → index-D0N1_kqG.css} +1 -1
- package/web/dist/assets/index-crdoK3FU.js +32 -0
- package/web/dist/index.html +2 -2
- package/web/dist/install.ps1 +43 -28
- package/web/dist/install.sh +6 -4
- package/web/dist/assets/index-oCuv6aWs.js +0 -32
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var Sl=Object.defineProperty;var xl=(e,t,s)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Wt=(e,t,s)=>xl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=s(o);fetch(o.href,i)}})();/**
|
|
2
|
-
* @vue/shared v3.5.44
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function co(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const me={},Xt=[],yt=()=>{},Li=()=>!1,an=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cn=e=>e.startsWith("onUpdate:"),Ie=Object.assign,uo=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Cl=Object.prototype.hasOwnProperty,ae=(e,t)=>Cl.call(e,t),K=Array.isArray,Ht=e=>Ds(e)==="[object Map]",$t=e=>Ds(e)==="[object Set]",Fo=e=>Ds(e)==="[object Date]",Z=e=>typeof e=="function",be=e=>typeof e=="string",Je=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",Hi=e=>(ue(e)||Z(e))&&Z(e.then)&&Z(e.catch),ji=Object.prototype.toString,Ds=e=>ji.call(e),kl=e=>Ds(e).slice(8,-1),Ui=e=>Ds(e)==="[object Object]",un=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bs=co(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fn=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},El=/-\w/g,tt=fn(e=>e.replace(El,t=>t.slice(1).toUpperCase())),Al=/\B([A-Z])/g,Kt=fn(e=>e.replace(Al,"-$1").toLowerCase()),Bi=fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),En=fn(e=>e?`on${Bi(e)}`:""),vt=(e,t)=>!Object.is(e,t),qs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},zi=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},dn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vo;const hn=()=>Vo||(Vo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(K(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=be(n)?Pl(n):pn(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(be(e)||ue(e))return e}const Rl=/;(?![^(]*\))/g,Tl=/:([^]+)/,Ol=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Pl(e){const t={};return e.replace(Ol,s=>s.startsWith("/*")?"":s).split(Rl).forEach(s=>{if(s){const n=s.split(Tl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(be(e))t=e;else if(K(e))for(let s=0;s<e.length;s++){const n=ye(e[s]);n&&(t+=n+" ")}else if(ue(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Il="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",$l=co(Il);function Ki(e){return!!e||e===""}function Ml(e,t,s){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ot(e[o],t[o],s);return n}function Lo(e,t,s){if(e.size!==t.size)return!1;const n=Array.from(t),o=new Uint8Array(n.length);for(const i of e){let r=-1;for(let l=0;l<n.length;l++)if(!o[l]&&ot(i,n[l],s)){r=l;break}if(r<0)return!1;o[r]=1}return!0}function Nl(e,t,s){let n=Ht(e),o=Ht(t);if(n||o||(n=$t(e),o=$t(t),n||o))return n&&o?Lo(e,t,s):!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const l in e){const a=e.hasOwnProperty(l),d=t.hasOwnProperty(l);if(a&&!d||!a&&d||!ot(e[l],t[l],s))return!1}return String(e)===String(t)}function Ho(e,t,s,n){s||(s=[new Map,new Map]);const[o,i]=s;if(o.has(e)||i.has(t))return o.get(e)===t&&i.get(t)===e;o.set(e,t),i.set(t,e);const r=n(e,t,s);return o.delete(e),i.delete(t),r}function ot(e,t,s){if(e===t)return!0;let n=Fo(e),o=Fo(t);return n||o?n&&o?e.getTime()===t.getTime():!1:(n=Je(e),o=Je(t),n||o?e===t:(n=K(e),o=K(t),n||o?n&&o?Ho(e,t,s,Ml):!1:(n=ue(e),o=ue(t),n||o?!n||!o?!1:Ho(e,t,s,Nl):String(e)===String(t))))}function fo(e,t){return e.findIndex(s=>ot(s,t))}const Wi=e=>!!(e&&e.__v_isRef===!0),S=e=>be(e)?e:e==null?"":K(e)||ue(e)&&(e.toString===ji||!Z(e.toString))?Wi(e)?S(e.value):JSON.stringify(e,Gi,2):String(e),Gi=(e,t)=>Wi(t)?Gi(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],i)=>(s[An(n,i)+" =>"]=o,s),{})}:$t(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>An(s))}:Je(t)?An(t):ue(t)&&!K(t)&&!Ui(t)?String(t):t,An=(e,t="")=>{var s;return Je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.44
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Re;class qi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Re&&(Re.active?(this.parent=Re,this.index=(Re.scopes||(Re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const o=this.scopes.slice();for(t=0,s=o.length;t<s;t++)o[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=Re;try{return Re=this,t()}finally{Re=s}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){if(this._on>0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let t=Re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(s=0,n=o.length;s<n;s++)o[s].stop(!0);this.scopes.length=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}}}function Ji(e){return new qi(e)}function Yi(){return Re}function Dl(e,t=!1){Re&&Re.cleanups.push(e)}let ve;const Rn=new WeakSet;class Qi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Re&&(Re.active?Re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rn.has(this)&&(Rn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,jo(this),er(this);const t=ve,s=st;ve=this,st=!0;try{return this.fn()}finally{tr(this),ve=t,st=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)go(t);this.deps=this.depsTail=void 0,jo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zn(this)&&this.run()}get dirty(){return zn(this)}}let Xi=0,ws,Ss;function Zi(e,t=!1){if(e.flags|=8,t){e.next=Ss,Ss=e;return}e.next=ws,ws=e}function ho(){Xi++}function po(){if(--Xi>0)return;if(Ss){let t=Ss;for(Ss=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ws;){let t=ws;for(ws=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function er(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tr(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),go(n),Fl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(sr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function sr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rs)||(e.globalVersion=Rs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zn(e))))return;e.flags|=2;const t=e.dep,s=ve,n=st;ve=e,st=!0;try{er(e);const o=e.fn(e._value);(t.version===0||vt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=s,st=n,tr(e),e.flags&=-3}}function go(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)go(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let st=!0;const nr=[];function wt(){nr.push(st),st=!1}function St(){const e=nr.pop();st=e===void 0?!0:e}function jo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ve;ve=void 0;try{t()}finally{ve=s}}}let Rs=0;class Vl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!st||ve===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ve)s=this.activeLink=new Vl(ve,this),ve.deps?(s.prevDep=ve.depsTail,ve.depsTail.nextDep=s,ve.depsTail=s):ve.deps=ve.depsTail=s,or(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ve.depsTail,s.nextDep=void 0,ve.depsTail.nextDep=s,ve.depsTail=s,ve.deps===s&&(ve.deps=n)}return s}trigger(t){this.version++,Rs++,this.notify(t)}notify(t){ho();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{po()}}}function or(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)or(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Qs=new WeakMap,es=Symbol(""),Kn=Symbol(""),Ts=Symbol("");function Ne(e,t,s){if(st&&ve){let n=Qs.get(e);n||Qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new mo),o.map=n,o.key=s),o.track()}}function Tt(e,t,s,n,o,i){const r=Qs.get(e);if(!r){Rs++;return}const l=a=>{a&&a.trigger()};if(ho(),t==="clear")r.forEach(l);else{const a=K(e),d=a&&un(s);if(a&&s==="length"){const c=Number(n);r.forEach((m,w)=>{(w==="length"||w===Ts||!Je(w)&&w>=c)&&l(m)})}else switch((s!==void 0||r.has(void 0))&&l(r.get(s)),d&&l(r.get(Ts)),t){case"add":a?d&&l(r.get("length")):(l(r.get(es)),Ht(e)&&l(r.get(Kn)));break;case"delete":a||(l(r.get(es)),Ht(e)&&l(r.get(Kn)));break;case"set":Ht(e)&&l(r.get(es));break}}po()}function Ll(e,t){const s=Qs.get(e);return s&&s.get(t)}function os(e){const t=le(e);return t===e||(Ne(t,"iterate",Ts),We(e))?t:xt(e)?_t(e)?t.map(s=>Bt(Ye(s))):t.map(Bt):t.map(Ye)}function gn(e){return Ne(e=le(e),"iterate",Ts),e}function pt(e,t){return xt(e)?Bt(_t(e)?Ye(t):t):Ye(t)}const Hl={__proto__:null,[Symbol.iterator](){return Tn(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return os(this).concat(...e.map(t=>K(t)?os(t):t))},entries(){return Tn(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,s=>s.map(n=>pt(this,n)),arguments)},find(e,t){return kt(this,"find",e,t,s=>pt(this,s),arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,s=>pt(this,s),arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return On(this,"includes",e)},indexOf(...e){return On(this,"indexOf",e)},join(e){return os(this).join(e)},lastIndexOf(...e){return On(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return gs(this,"pop")},push(...e){return gs(this,"push",e)},reduce(e,...t){return Bo(this,"reduce",e,t)},reduceRight(e,...t){return Bo(this,"reduceRight",e,t)},shift(){return gs(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return gs(this,"splice",e)},toReversed(){return os(this).toReversed()},toSorted(e){return os(this).toSorted(e)},toSpliced(...e){return os(this).toSpliced(...e)},unshift(...e){return gs(this,"unshift",e)},values(){return Tn(this,"values",e=>pt(this,e))}};function Tn(e,t,s){const n=gn(e),o=n[t],i=o.call(n);if(n!==e&&!We(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const r=Object.create(Object.getPrototypeOf(i));return r.next=()=>Uo(i.next(),s),o!==ir[t]&&Object.defineProperties(r,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),r}i._next=i.next,i.next=()=>Uo(i._next(),s)}return i}function Uo(e,t){return e.done||(e.value=t(e.value)),e}const ir=Array.prototype;function kt(e,t,s,n,o,i){const r=gn(e),l=r!==e&&!We(e),a=r[t];if(a!==ir[t]){const m=a.apply(e,i);return l?Ye(m):m}let d=s;r!==e&&(l?d=function(m,w){return s.call(this,pt(e,m),w,e)}:s.length>2&&(d=function(m,w){return s.call(this,m,w,e)}));const c=a.call(r,d,n);return l&&o?o(c):c}function Bo(e,t,s,n){const o=gn(e),i=o!==e&&!We(e);let r=s,l=!1;o!==e&&(i?(l=n.length===0,r=function(d,c,m){return l&&(l=!1,d=pt(e,d)),s.call(this,d,pt(e,c),m,e)}):s.length>3&&(r=function(d,c,m){return s.call(this,d,c,m,e)}));const a=o[t](r,...n);return l?pt(e,a):a}function On(e,t,s){const n=le(e);Ne(n,"iterate",Ts);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=le(s[0]),n[t](...s)):o}function gs(e,t,s=[]){wt(),ho();const n=le(e)[t].apply(e,s);return po(),St(),n}const jl=co("__proto__,__v_isRef,__isVue"),rr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Ul(e){Je(e)||(e=String(e));const t=le(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class lr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(o?i?Xl:fr:i?ur:cr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=K(t);if(!o){let a;if(r&&(a=Hl[s]))return a;if(s==="hasOwnProperty")return Ul}const l=Reflect.get(t,s,we(t)?t:n);if((Je(s)?rr.has(s):jl(s))||(o||Ne(t,"get",s),i))return l;if(we(l)){const a=r&&un(s)?l:l.value;return o&&ue(a)?Gn(a):a}return ue(l)?o?Gn(l):ns(l):l}}class ar extends lr{constructor(t=!1){super(!1,t)}set(t,s,n,o){let i=t[s];const r=K(t)&&un(s);if(!this._isShallow){const d=xt(i);if(!We(n)&&!xt(n)&&(i=le(i),n=le(n)),!r&&we(i)&&!we(n))return d||(i.value=n),!0}const l=r?Number(s)<t.length:ae(t,s),a=Reflect.set(t,s,n,we(t)?t:o);return t===le(o)&&a&&(l?vt(n,i)&&Tt(t,"set",s,n):Tt(t,"add",s,n)),a}deleteProperty(t,s){const n=ae(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Tt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!rr.has(s))&&Ne(t,"has",s),n}ownKeys(t){return Ne(t,"iterate",K(t)?"length":es),Reflect.ownKeys(t)}}class Bl extends lr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const zl=new ar,Kl=new Bl,Wl=new ar(!0);const Wn=e=>e,Us=e=>Reflect.getPrototypeOf(e);function Gl(e,t,s){return function(...n){const o=this.__v_raw,i=le(o),r=Ht(i),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=o[e](...n),c=s?Wn:t?Bt:Ye;return!t&&Ne(i,"iterate",a?Kn:es),Ie(Object.create(d),{next(){const{value:m,done:w}=d.next();return w?{value:m,done:w}:{value:l?[c(m[0]),c(m[1])]:c(m),done:w}}})}}function Bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ql(e,t){const s={get(o){const i=this.__v_raw,r=le(i),l=le(o);e||(vt(o,l)&&Ne(r,"get",o),Ne(r,"get",l));const{has:a}=Us(r),d=t?Wn:e?Bt:Ye;if(a.call(r,o))return d(i.get(o));if(a.call(r,l))return d(i.get(l));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Ne(le(o),"iterate",es),o.size},has(o){const i=this.__v_raw,r=le(i),l=le(o);return e||(vt(o,l)&&Ne(r,"has",o),Ne(r,"has",l)),o===l?i.has(o):i.has(o)||i.has(l)},forEach(o,i){const r=this,l=r.__v_raw,a=le(l),d=t?Wn:e?Bt:Ye;return!e&&Ne(a,"iterate",es),l.forEach((c,m)=>o.call(i,d(c),d(m),r))}};return Ie(s,e?{add:Bs("add"),set:Bs("set"),delete:Bs("delete"),clear:Bs("clear")}:{add(o){const i=le(this),r=Us(i),l=le(o),a=!t&&!We(o)&&!xt(o)?l:o;return r.has.call(i,a)||vt(o,a)&&r.has.call(i,o)||vt(l,a)&&r.has.call(i,l)||(i.add(a),Tt(i,"add",a,a)),this},set(o,i){!t&&!We(i)&&!xt(i)&&(i=le(i));const r=le(this),{has:l,get:a}=Us(r);let d=l.call(r,o);d||(o=le(o),d=l.call(r,o));const c=a.call(r,o);return r.set(o,i),d?vt(i,c)&&Tt(r,"set",o,i):Tt(r,"add",o,i),this},delete(o){const i=le(this),{has:r,get:l}=Us(i);let a=r.call(i,o);a||(o=le(o),a=r.call(i,o)),l&&l.call(i,o);const d=i.delete(o);return a&&Tt(i,"delete",o,void 0),d},clear(){const o=le(this),i=o.size!==0,r=o.clear();return i&&Tt(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Gl(o,e,t)}),s}function vo(e,t){const s=ql(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?n:Reflect.get(ae(s,o)&&o in n?s:n,o,i)}const Jl={get:vo(!1,!1)},Yl={get:vo(!1,!0)},Ql={get:vo(!0,!1)};const cr=new WeakMap,ur=new WeakMap,fr=new WeakMap,Xl=new WeakMap;function Zl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ns(e){return xt(e)?e:yo(e,!1,zl,Jl,cr)}function dr(e){return yo(e,!1,Wl,Yl,ur)}function Gn(e){return yo(e,!0,Kl,Ql,fr)}function yo(e,t,s,n,o){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=Zl(kl(e));if(r===0)return e;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function _t(e){return xt(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function xt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function _o(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&zi(e,"__v_skip",!0),e}const Ye=e=>ue(e)?ns(e):e,Bt=e=>ue(e)?Gn(e):e;function we(e){return e?e.__v_isRef===!0:!1}function se(e){return hr(e,!1)}function ea(e){return hr(e,!0)}function hr(e,t){return we(e)?e:new ta(e,t)}class ta{constructor(t,s){this.dep=new mo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:le(t),this._value=s?t:Ye(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||We(t)||xt(t);t=n?t:le(t),vt(t,s)&&(this._rawValue=t,this._value=n?t:Ye(t),this.dep.trigger())}}function y(e){return we(e)?e.value:e}const sa={get:(e,t,s)=>t==="__v_raw"?e:y(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return we(o)&&!we(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function pr(e){return _t(e)?e:new Proxy(e,sa)}function na(e){const t=K(e)?new Array(e.length):{};for(const s in e)t[s]=ia(e,s);return t}class oa{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Je(s)?s:String(s),this._raw=le(t);let o=!0,i=t;if(!K(t)||Je(this._key)||!un(this._key))do o=!mn(i)||We(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=y(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const s=this._object[this._key];if(we(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return Ll(this._raw,this._key)}}function ia(e,t,s){return new oa(e,t,s)}class ra{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Rs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Zi(this,!0),!0}get value(){const t=this.dep.track();return sr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function la(e,t,s=!1){let n,o;return Z(e)?n=e:(n=e.get,o=e.set),new ra(n,o,s)}const zs={},Xs=new WeakMap;let Jt;function aa(e,t=!1,s=Jt){if(s){let n=Xs.get(s);n||Xs.set(s,n=[]),n.push(e)}}function ca(e,t,s=me){const{immediate:n,deep:o,once:i,scheduler:r,augmentJob:l,call:a}=s,d=L=>o?L:We(L)||o===!1||o===0?Ot(L,1):Ot(L);let c,m,w,_,$=!1,M=!1;if(we(e)?(m=()=>e.value,$=We(e)):_t(e)?(m=()=>d(e),$=!0):K(e)?(M=!0,$=e.some(L=>_t(L)||We(L)),m=()=>e.map(L=>{if(we(L))return L.value;if(_t(L))return d(L);if(Z(L))return a?a(L,2):L()})):Z(e)?t?m=a?()=>a(e,2):e:m=()=>{if(w){wt();try{w()}finally{St()}}const L=Jt;Jt=c;try{return a?a(e,3,[_]):e(_)}finally{Jt=L}}:m=yt,t&&o){const L=m,H=o===!0?1/0:o;m=()=>Ot(L(),H)}const V=Yi(),R=()=>{c.stop(),V&&V.active&&uo(V.effects,c)};if(i&&t){const L=t;t=(...H)=>{try{return L(...H)}finally{R()}}}let T=M?new Array(e.length).fill(zs):zs;const N=L=>{if(!(!(c.flags&1)||!c.dirty&&!L))if(t){const H=c.run();if(L||o||$||(M?H.some((he,te)=>vt(he,T[te])):vt(H,T))){const he=Jt;wt();try{w&&w(),Jt=c;const te=[H,T===zs?void 0:M&&T[0]===zs?[]:T,_];T=H,a?a(t,3,te):t(...te)}finally{Jt=he,St()}}}else c.run()};return l&&l(N),c=new Qi(m),c.scheduler=r?()=>r(N,!1):N,_=L=>aa(L,!1,c),w=c.onStop=()=>{const L=Xs.get(c);if(L){if(a)a(L,4);else for(const H of L)H();Xs.delete(c)}},t?n?N(!0):T=c.run():r?r(N.bind(null,!0),!0):c.run(),R.pause=c.pause.bind(c),R.resume=c.resume.bind(c),R.stop=R,R}function Ot(e,t=1/0,s){if(t<=0||!ue(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,we(e))Ot(e.value,t,s);else if(K(e))for(let n=0;n<e.length;n++)Ot(e[n],t,s);else if($t(e)||Ht(e))e.forEach(n=>{Ot(n,t,s)});else if(Ui(e)){for(const n in e)Ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ot(e[n],t,s)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.44
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Fs(e,t,s,n){try{return n?e(...n):e()}catch(o){vn(o,t,s)}}function it(e,t,s,n){if(Z(e)){const o=Fs(e,t,s,n);return o&&Hi(o)&&o.catch(i=>{vn(i,t,s)}),o}if(K(e)){const o=[];for(let i=0;i<e.length;i++)o.push(it(e[i],t,s,n));return o}}function vn(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||me;if(t){let l=t.parent;const a=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const c=l.ec;if(c){for(let m=0;m<c.length;m++)if(c[m](e,a,d)===!1)return}l=l.parent}if(i){wt(),Fs(i,null,10,[e,a,d]),St();return}}ua(e,s,o,n,r)}function ua(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const Ve=[];let et=-1;const gt=[];let Vt=null,ls=0;const gr=Promise.resolve();let Zs=null;function Vs(e){const t=Zs||gr;return e?t.then(this?e.bind(this):e):t}function fa(e){let t=et+1,s=Ve.length;for(;t<s;){const n=t+s>>>1,o=Ve[n],i=Os(o);i<e||i===e&&o.flags&2?t=n+1:s=n}return t}function bo(e){if(!(e.flags&1)){const t=Os(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=Os(s)?Ve.push(e):Ve.splice(fa(t),0,e),e.flags|=1,mr()}}function mr(){Zs||(Zs=gr.then(_r))}function da(e){if(!K(e))Vt&&e.id===-1?Vt.splice(ls+1,0,e):e.flags&1||(gt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)gt.push(e[t]);mr()}function vr(e,t,s,n=et+1){for(;n<Ve.length;n++){const o=Ve[n];if(o&&o.flags&2){if(e&&o.id!==e.uid||t!==void 0&&!(o.id>=t))continue;Ve.splice(n,1),n=e?n-1:et,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function yr(e,t,s=0){if(gt.length){let n=gt,o=0;if(t){n=[];for(let r=0;r<gt.length;r++){const l=gt[r];(l.i!==void 0?!l.i||l.i.uid<s:t.has(l))?gt[o++]=l:n.push(l)}}const i=[...new Set(n)].sort((r,l)=>Os(r)-Os(l));if(gt.length=o,Vt){for(let r=0;r<i.length;r++)Vt.push(i[r]);return}for(Vt=i,ls=0;ls<Vt.length;ls++){const r=Vt[ls];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Vt=null,ls=0}}let Pn=!1;function ha(e,t){if(Pn){e();return}const s=t===void 0?void 0:new Set(gt);e(),Pn=!0;try{vr(void 0,t),yr(void 0,s,t)}finally{Pn=!1}}const Os=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _r(e){try{for(et=0;et<Ve.length;et++){const t=Ve[et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;et<Ve.length;et++){const t=Ve[et];t&&(t.flags&=-2)}et=-1,Ve.length=0,yr(),Zs=null,(Ve.length||gt.length)&&_r()}}let qe=null,br=null;function en(e){const t=qe;return qe=e,br=e&&e.type.__scopeId||null,t}function Yt(e,t=qe,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&on(-1);const i=en(t),r=ss.length;let l;try{l=e(...o)}finally{for(let a=ss.length;a>r;a--)zr();en(i),n._d&&on(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Pt(e,t){if(qe===null)return e;const s=xn(qe),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,l,a=me]=t[o];i&&(Z(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(r),n.push({dir:i,instance:s,value:r,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,s,n){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const l=o[r];i&&(l.oldValue=i[r].value);let a=l.dir[n];a&&(wt(),it(a,s,8,[e.el,l,e,t]),St())}}function Js(e,t){if(Le){let s=Le.provides;const n=Le.parent&&Le.parent.provides;n===s&&(s=Le.provides=Object.create(n)),s[e]=t}}function bt(e,t,s=!1){const n=qr();if(n||ts){let o=ts?ts._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&Z(t)?t.call(n&&n.proxy):t}}function pa(){return!!(qr()||ts)}const ga=Symbol.for("v-scx"),ma=()=>bt(ga);function jt(e,t,s){return wr(e,t,s)}function wr(e,t,s=me){const{immediate:n,deep:o,flush:i,once:r}=s,l=Ie({},s),a=t&&n||!t&&i!=="post";let d;if(Ms){if(i==="sync"){const _=ma();d=_.__watcherHandles||(_.__watcherHandles=[])}else if(!a){const _=()=>{};return _.stop=yt,_.resume=yt,_.pause=yt,_}}const c=Le;l.call=(_,$,M)=>it(_,c,$,M);let m=!1;i==="post"?l.scheduler=_=>{_.i=c,Ue(_,c&&c.suspense)}:i!=="sync"&&(m=!0,l.scheduler=(_,$)=>{$?_():bo(_)}),l.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,c&&(_.id=c.uid,_.i=c))};const w=ca(e,t,l);return Ms&&(d?d.push(w):a&&w()),w}function va(e,t,s){const n=this.proxy,o=be(e)?e.includes(".")?Sr(n,e):()=>n[e]:e.bind(n,n);let i;Z(t)?i=t:(i=t.handler,s=t);const r=Ls(this),l=wr(o,i.bind(n),s);return r(),l}function Sr(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const ya=Symbol("_vte"),yn=e=>e.__isTeleport,In=Symbol("_leaveCb");function _a(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==rt){t=s;break}}return t}function xr(e){if(!wo(e))return yn(e.type)&&e.children?_a(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Z(s.default))return s.default()}}function tn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;tn(yn(s.type)&&xr(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===ne&&K(e.children)){const s=Pr(e.children,!1);s&&tn(s,t)}}function qn(e){if(e.component)return qn(e.component.subTree);if(e.type===ne){const t=K(e.children)&&Pr(e.children,!1);return t?qn(t):void 0}if(e.type!==rt)return e}function He(e,t){return Z(e)?Ie({name:e.name},t,{setup:e}):e}function Cr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function zo(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const sn=new WeakMap;function xs(e,t,s,n,o=!1){if(K(e)){e.forEach((M,V)=>xs(M,t&&(K(t)?t[V]:t),s,n,o));return}if(Cs(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&xs(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?xn(n.component):n.el,r=o?null:i,{i:l,r:a}=e,d=t&&t.r,c=l.refs===me?l.refs={}:l.refs,m=l.setupState,w=le(m),_=m===me?Li:M=>zo(c,M)?!1:ae(w,M),$=(M,V)=>!(V&&zo(c,V));if(d!=null&&d!==a){if(Ko(t),be(d))c[d]=null,_(d)&&(m[d]=null);else if(we(d)){const M=t;$(d,M.k)&&(d.value=null),M.k&&(c[M.k]=null)}}if(Z(a))Fs(a,l,12,[r,c]);else{const M=be(a),V=we(a);if(M||V){const R=()=>{if(e.f){const T=M?_(a)?m[a]:c[a]:$()||!e.k?a.value:c[e.k];if(o)K(T)&&uo(T,i);else if(K(T))T.includes(i)||T.push(i);else if(M)c[a]=[i],_(a)&&(m[a]=c[a]);else{const N=[i];$(a,e.k)&&(a.value=N),e.k&&(c[e.k]=N)}}else M?(c[a]=r,_(a)&&(m[a]=r)):V&&($(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const T=()=>{R(),sn.delete(e)};T.id=-1,sn.set(e,T),Ue(T,s)}else Ko(e),R()}}}function Ko(e){const t=sn.get(e);t&&(t.flags|=8,sn.delete(e))}hn().requestIdleCallback;hn().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,wo=e=>e.type.__isKeepAlive;function ba(e,t){kr(e,"a",t)}function wa(e,t){kr(e,"da",t)}function kr(e,t,s=Le){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(_n(t,n,s),s){let o=s.parent;for(;o&&o.parent;)wo(o.parent.vnode)&&Sa(n,t,s,o),o=o.parent}}function Sa(e,t,s,n){const o=_n(t,e,n,!0);Er(()=>{uo(n[t],o)},s)}function _n(e,t,s=Le,n=!1){if(s){const o=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...r)=>{wt();const l=Ls(s),a=it(t,s,e,r);return l(),St(),a});return n?o.unshift(i):o.push(i),i}}const Mt=e=>(t,s=Le)=>{(!Ms||e==="sp")&&_n(e,(...n)=>t(...n),s)},xa=Mt("bm"),hs=Mt("m"),Ca=Mt("bu"),ka=Mt("u"),bn=Mt("bum"),Er=Mt("um"),Ea=Mt("sp"),Aa=Mt("rtg"),Ra=Mt("rtc");function Ta(e,t=Le){_n("ec",e,t)}const Oa=Symbol.for("v-ndc");function ke(e,t,s,n){let o;const i=s,r=K(e);if(r||be(e)){const l=r&&_t(e);let a=!1,d=!1;l&&(a=!We(e),d=xt(e),e=gn(e)),o=new Array(e.length);for(let c=0,m=e.length;c<m;c++)o[c]=t(a?d?Bt(Ye(e[c])):Ye(e[c]):e[c],c,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)o=[];else{o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i)}else if(ue(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,d=l.length;a<d;a++){const c=l[a];o[a]=t(e[c],c,a,i)}}else o=[];return o}const Jn=e=>e?Jr(e)?xn(e):Jn(e.parent):null,ks=Ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jn(e.parent),$root:e=>Jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rr(e),$forceUpdate:e=>e.f||(e.f=()=>{bo(e.update)}),$nextTick:e=>e.n||(e.n=Vs.bind(e.proxy)),$watch:e=>va.bind(e)}),$n=(e,t)=>e!==me&&!e.__isScriptSetup&&ae(e,t),Pa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:i,accessCache:r,type:l,appContext:a}=e;if(t[0]!=="$"){const w=r[t];if(w!==void 0)switch(w){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return i[t]}else{if($n(n,t))return r[t]=1,n[t];if(o!==me&&ae(o,t))return r[t]=2,o[t];if(ae(i,t))return r[t]=3,i[t];if(s!==me&&ae(s,t))return r[t]=4,s[t];Yn&&(r[t]=0)}}const d=ks[t];let c,m;if(d)return t==="$attrs"&&Ne(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(s!==me&&ae(s,t))return r[t]=4,s[t];if(m=a.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:i}=e;return $n(o,t)?(o[t]=s,!0):n!==me&&ae(n,t)?(n[t]=s,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:i,type:r}},l){let a;return!!(s[l]||e!==me&&l[0]!=="$"&&ae(e,l)||$n(t,l)||ae(i,l)||ae(n,l)||ae(ks,l)||ae(o.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ae(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Wo(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Yn=!0;function Ia(e){const t=Rr(e),s=e.proxy,n=e.ctx;Yn=!1,t.beforeCreate&&Go(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:a,inject:d,created:c,beforeMount:m,mounted:w,beforeUpdate:_,updated:$,activated:M,deactivated:V,beforeDestroy:R,beforeUnmount:T,destroyed:N,unmounted:L,render:H,renderTracked:he,renderTriggered:te,errorCaptured:Q,serverPrefetch:q,expose:fe,inheritAttrs:xe,components:Oe,directives:$e,filters:Ct}=t;if(d&&$a(d,n,null),r)for(const X in r){const re=r[X];Z(re)&&(n[X]=re.bind(s))}if(o){const X=o.call(s,s);ue(X)&&(e.data=ns(X))}if(Yn=!0,i)for(const X in i){const re=i[X],Xe=Z(re)?re.bind(s,s):Z(re.get)?re.get.bind(s,s):yt,at=!Z(re)&&Z(re.set)?re.set.bind(s):yt,Me=oe({get:Xe,set:at});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Ee=>Me.value=Ee})}if(l)for(const X in l)Ar(l[X],n,s,X);if(a){const X=Z(a)?a.call(s):a;Reflect.ownKeys(X).forEach(re=>{Js(re,X[re])})}c&&Go(c,e,"c");function pe(X,re){K(re)?re.forEach(Xe=>X(Xe.bind(s))):re&&X(re.bind(s))}if(pe(xa,m),pe(hs,w),pe(Ca,_),pe(ka,$),pe(ba,M),pe(wa,V),pe(Ta,Q),pe(Ra,he),pe(Aa,te),pe(bn,T),pe(Er,L),pe(Ea,q),K(fe))if(fe.length){const X=e.exposed||(e.exposed={});fe.forEach(re=>{Object.defineProperty(X,re,{get:()=>s[re],set:Xe=>s[re]=Xe,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===yt&&(e.render=H),xe!=null&&(e.inheritAttrs=xe),Oe&&(e.components=Oe),$e&&(e.directives=$e),q&&Cr(e)}function $a(e,t,s=yt){K(e)&&(e=Qn(e));for(const n in e){const o=e[n];let i;ue(o)?"default"in o?i=bt(o.from||n,o.default,!0):i=bt(o.from||n):i=bt(o),we(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[n]=i}}function Go(e,t,s){it(K(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ar(e,t,s,n){let o=n.includes(".")?Sr(s,n):()=>s[n];if(be(e)){const i=t[e];Z(i)&&jt(o,i)}else if(Z(e))jt(o,e.bind(s));else if(ue(e))if(K(e))e.forEach(i=>Ar(i,t,s,n));else{const i=Z(e.handler)?e.handler.bind(s):t[e.handler];Z(i)&&jt(o,i,e)}}function Rr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!s&&!n?a=t:(a={},o.length&&o.forEach(d=>nn(a,d,r,!0)),nn(a,t,r)),ue(t)&&i.set(t,a),a}function nn(e,t,s,n=!1){const{mixins:o,extends:i}=t;i&&nn(e,i,s,!0),o&&o.forEach(r=>nn(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const l=Ma[r]||s&&s[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Ma={data:qo,props:Jo,emits:Jo,methods:ys,computed:ys,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:ys,directives:ys,watch:Da,provide:qo,inject:Na};function qo(e,t){return t?e?function(){return Ie(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Na(e,t){return ys(Qn(e),Qn(t))}function Qn(e){if(K(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function ys(e,t){return e?Ie(Object.create(null),e,t):t}function Jo(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Ie(Object.create(null),Wo(e),Wo(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const s=Ie(Object.create(null),e);for(const n in t)s[n]=De(e[n],t[n]);return s}function Tr(){return{app:null,config:{isNativeTag:Li,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Fa=0;function Va(e,t){return function(n,o=null){Z(n)||(n=Ie({},n)),o!=null&&!ue(o)&&(o=null);const i=Tr(),r=new WeakSet,l=[];let a=!1;const d=i.app={_uid:Fa++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:pc,get config(){return i.config},set config(c){},use(c,...m){return r.has(c)||(c&&Z(c.install)?(r.add(c),c.install(d,...m)):Z(c)&&(r.add(c),c(d,...m))),d},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),d},component(c,m){return m?(i.components[c]=m,d):i.components[c]},directive(c,m){return m?(i.directives[c]=m,d):i.directives[c]},mount(c,m,w){if(!a){const _=d._ceVNode||B(n,o);return _.appContext=i,w===!0?w="svg":w===!1&&(w=void 0),e(_,c,w),a=!0,d._container=c,c.__vue_app__=d,xn(_.component)}},onUnmount(c){l.push(c)},unmount(){a&&(it(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,m){return i.provides[c]=m,d},runWithContext(c){const m=ts;ts=d;try{return c()}finally{ts=m}}};return d}}let ts=null;const La=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function Ha(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||me;let o=s;const i=t.startsWith("update:"),r=i&&La(n,t.slice(7));r&&(r.trim&&(o=s.map(c=>be(c)?c.trim():c)),r.number&&(o=o.map(dn)));let l,a=n[l=En(t)]||n[l=En(tt(t))];!a&&i&&(a=n[l=En(Kt(t))]),a&&it(a,e,6,o);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,it(d,e,6,o)}}const ja=new WeakMap;function Or(e,t,s=!1){const n=s?ja:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!Z(e)){const a=d=>{const c=Or(d,t,!0);c&&(l=!0,Ie(r,c))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ue(e)&&n.set(e,null),null):(K(i)?i.forEach(a=>r[a]=null):Ie(r,i),ue(e)&&n.set(e,r),r)}function wn(e,t){return!e||!an(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Kt(t))||ae(e,t))}function Yo(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:a,render:d,renderCache:c,props:m,data:w,setupState:_,ctx:$,inheritAttrs:M}=e,V=en(e);let R,T;try{if(s.shapeFlag&4){const L=o||n,H=L;R=mt(d.call(H,L,c,m,_,w,$)),T=l}else{const L=t;R=mt(L.length>1?L(m,{attrs:l,slots:r,emit:a}):L(m,null)),T=t.props?l:Ua(l)}}catch(L){ss.length=0,vn(L,e,1),R=B(rt)}let N=R;if(T&&M!==!1){const L=Object.keys(T),{shapeFlag:H}=N;L.length&&H&7&&(i&&L.some(cn)&&(T=Ba(T,i)),N=cs(N,T,!1,!0))}if(s.dirs&&(N=cs(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(s.dirs):s.dirs),s.transition){const L=yn(N.type)&&xr(N)||N;tn(L,s.transition)}return R=N,en(V),R}function Pr(e,t=!0){let s;for(let n=0;n<e.length;n++){const o=e[n];if(Is(o)){if(o.type!==rt||o.children==="v-if"){if(s)return;s=o}}else return}return s}const Ua=e=>{let t;for(const s in e)(s==="class"||s==="style"||an(s))&&((t||(t={}))[s]=e[s]);return t},Ba=(e,t)=>{const s={};for(const n in e)(!cn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function za(e,t,s){const{props:n,children:o,component:i}=e,{props:r,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Qo(n,r,d):!!r;if(a&8){const c=t.dynamicProps;for(let m=0;m<c.length;m++){const w=c[m];if(Ir(r,n,w)&&!wn(d,w))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===r?!1:n?r?Qo(n,r,d):!0:!!r;return!1}function Qo(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(!ae(e,i)||Ir(t,e,i)&&!wn(s,i))return!0}return!1}function Ir(e,t,s){const n=e[s],o=t[s];return s==="style"&&ue(n)&&ue(o)?!ot(n,o):n!==o}function Ka({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const $r={},Mr=()=>Object.create($r),Nr=e=>Object.getPrototypeOf(e)===$r;function Wa(e,t,s,n=!1){const o={},i=Mr();e.propsDefaults=Object.create(null),Dr(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);s?e.props=n?o:dr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Ga(e,t,s,n){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=le(o),[a]=e.propsOptions;let d=!1;if((n||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let m=0;m<c.length;m++){let w=c[m];if(wn(e.emitsOptions,w))continue;const _=t[w];if(a)if(ae(i,w))_!==i[w]&&(i[w]=_,d=!0);else{const $=tt(w);o[$]=Xn(a,l,$,_,e,!1)}else _!==i[w]&&(i[w]=_,d=!0)}}}else{Dr(e,t,o,i)&&(d=!0);let c;for(const m in l)(!t||!ae(t,m)&&((c=Kt(m))===m||!ae(t,c)))&&(a?s&&(s[m]!==void 0||s[c]!==void 0)&&(o[m]=Xn(a,l,m,void 0,e,!0)):delete o[m]);if(i!==l)for(const m in i)(!t||!ae(t,m))&&(delete i[m],d=!0)}d&&Tt(e.attrs,"set","")}function Dr(e,t,s,n){const[o,i]=e.propsOptions;let r=!1,l;if(t)for(let a in t){if(bs(a))continue;const d=t[a];let c;o&&ae(o,c=tt(a))?!i||!i.includes(c)?s[c]=d:(l||(l={}))[c]=d:wn(e.emitsOptions,a)||(!(a in n)||d!==n[a])&&(n[a]=d,r=!0)}if(i){const a=le(s),d=l||me;for(let c=0;c<i.length;c++){const m=i[c];s[m]=Xn(o,a,m,d[m],e,!ae(d,m))}}return r}function Xn(e,t,s,n,o,i){const r=e[s];if(r!=null){const l=ae(r,"default");if(l&&n===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&Z(a)){const{propsDefaults:d}=o;if(s in d)n=d[s];else{const c=Ls(o);n=d[s]=a.call(null,t),c()}}else n=a;o.ce&&o.ce._setProp(s,n)}r[0]&&(i&&!l?n=!1:r[1]&&(n===""||n===Kt(s))&&(n=!0))}return n}const qa=new WeakMap;function Fr(e,t,s=!1){const n=s?qa:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,r={},l=[];let a=!1;if(!Z(e)){const c=m=>{a=!0;const[w,_]=Fr(m,t,!0);Ie(r,w),_&&l.push(..._)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return ue(e)&&n.set(e,Xt),Xt;if(K(i))for(let c=0;c<i.length;c++){const m=tt(i[c]);Xo(m)&&(r[m]=me)}else if(i)for(const c in i){const m=tt(c);if(Xo(m)){const w=i[c],_=r[m]=K(w)||Z(w)?{type:w}:Ie({},w),$=_.type;let M=!1,V=!0;if(K($))for(let R=0;R<$.length;++R){const T=$[R],N=Z(T)&&T.name;if(N==="Boolean"){M=!0;break}else N==="String"&&(V=!1)}else M=Z($)&&$.name==="Boolean";_[0]=M,_[1]=V,(M||ae(_,"default"))&&l.push(m)}}const d=[r,l];return ue(e)&&n.set(e,d),d}function Xo(e){return e[0]!=="$"&&!bs(e)}const So=e=>e==="_"||e==="_ctx"||e==="$stable",xo=e=>K(e)?e.map(mt):[mt(e)],Ja=(e,t,s)=>{if(t._n)return t;const n=Yt((...o)=>xo(t(...o)),s);return n._c=!1,n},Vr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(So(o))continue;const i=e[o];if(Z(i))t[o]=Ja(o,i,n);else if(i!=null){const r=xo(i);t[o]=()=>r}}},Lr=(e,t)=>{const s=xo(t);e.slots.default=()=>s},Hr=(e,t,s)=>{for(const n in t)(s||!So(n))&&(e[n]=t[n])},Ya=(e,t,s)=>{const n=e.slots=Mr();if(e.vnode.shapeFlag&32){const o=t._;o?(Hr(n,t,s),s&&zi(n,"_",o,!0)):Vr(t,n)}else t&&Lr(e,t)},Qa=(e,t,s)=>{const{vnode:n,slots:o}=e;let i=!0,r=me;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Hr(o,t,s):(i=!t.$stable,Vr(t,o)),r=t}else t&&(Lr(e,t),r={default:1});if(i)for(const l in o)!So(l)&&r[l]==null&&delete o[l]},Ue=sc;function Xa(e){return Za(e)}function Za(e,t){const s=hn();s.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:r,createText:l,createComment:a,setText:d,setElementText:c,parentNode:m,nextSibling:w,setScopeId:_=yt,insertStaticContent:$}=e,M=(f,g,b,x=null,h=null,v=null,p=void 0,C=null,P=!!g.dynamicChildren)=>{if(f===g)return;f&&!ms(f,g)&&(x=O(f),Ee(f,h,v,!0),f=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null),g.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(g.dynamicChildren===Xt&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:E,ref:z,shapeFlag:D}=g;switch(E){case Sn:V(f,g,b,x);break;case rt:R(f,g,b,x);break;case Nn:f==null&&T(g,b,x,p);break;case ne:Oe(f,g,b,x,h,v,p,C,P);break;default:D&1?H(f,g,b,x,h,v,p,C,P):D&6?$e(f,g,b,x,h,v,p,C,P):(D&64||D&128)&&E.process(f,g,b,x,h,v,p,C,P,F)}z!=null&&h?xs(z,f&&f.ref,v,g||f,!g):z==null&&f&&f.ref!=null&&xs(f.ref,null,v,f,!0)},V=(f,g,b,x)=>{if(f==null)n(g.el=l(g.children),b,x);else{const h=g.el=f.el;g.children!==f.children&&d(h,g.children)}},R=(f,g,b,x)=>{f==null?n(g.el=a(g.children||""),b,x):g.el=f.el},T=(f,g,b,x)=>{[f.el,f.anchor]=$(f.children,g,b,x,f.el,f.anchor)},N=({el:f,anchor:g},b,x)=>{let h;for(;f&&f!==g;)h=w(f),n(f,b,x),f=h;n(g,b,x)},L=({el:f,anchor:g})=>{let b;for(;f&&f!==g;)b=w(f),o(f),f=b;o(g)},H=(f,g,b,x,h,v,p,C,P)=>{if(g.type==="svg"?p="svg":g.type==="math"&&(p="mathml"),f==null)he(g,b,x,h,v,p,C,P);else{const E=f.el&&f.el._isVueCE?f.el:null;try{E&&E._beginPatch(),q(f,g,h,v,p,C,P)}finally{E&&E._endPatch()}}},he=(f,g,b,x,h,v,p,C)=>{let P,E;const{props:z,shapeFlag:D,transition:W,dirs:Y}=f;if(P=f.el=r(f.type,v,z&&z.is,z),D&8?c(P,f.children):D&16&&Q(f.children,P,null,x,h,Mn(f,v),p,C),Y&&Gt(f,null,x,"created"),te(P,f,f.scopeId,p,x),z){for(const ge in z)ge!=="value"&&!bs(ge)&&i(P,ge,null,z[ge],v,x);"value"in z&&i(P,"value",null,z.value,v),(E=z.onVnodeBeforeMount)&&ht(E,x,f)}Y&&Gt(f,null,x,"beforeMount");const ie=ec(h,W);ie&&W.beforeEnter(P),n(P,g,b),((E=z&&z.onVnodeMounted)||ie||Y)&&Ue(()=>{try{E&&ht(E,x,f),ie&&W.enter(P),Y&&Gt(f,null,x,"mounted")}finally{}},h)},te=(f,g,b,x,h)=>{if(b&&_(f,b),x)for(let v=0;v<x.length;v++)_(f,x[v]);if(h){let v=h.subTree;if(g===v||Br(v.type)&&(v.ssContent===g||v.ssFallback===g)){const p=h.vnode;te(f,p,p.scopeId,p.slotScopeIds,h.parent)}}},Q=(f,g,b,x,h,v,p,C,P=0)=>{for(let E=P;E<f.length;E++){const z=f[E]=C?Rt(f[E]):mt(f[E]);M(null,z,g,b,x,h,v,p,C)}},q=(f,g,b,x,h,v,p)=>{const C=g.el=f.el;let{patchFlag:P,dynamicChildren:E,dirs:z}=g;P|=f.patchFlag&16;const D=f.props||me,W=g.props||me;let Y;if(b&&qt(b,!1),(Y=W.onVnodeBeforeUpdate)&&ht(Y,b,g,f),z&&Gt(g,f,b,"beforeUpdate"),b&&qt(b,!0),E&&(!f.dynamicChildren||f.dynamicChildren.length!==E.length)&&(P=0,p=!1,E=null),(D.innerHTML&&W.innerHTML==null||D.textContent&&W.textContent==null)&&c(C,""),E?fe(f.dynamicChildren,E,C,b,x,Mn(g,h),v):p||re(f,g,C,null,b,x,Mn(g,h),v,!1),P>0){if(P&16)xe(C,D,W,b,h);else if(P&2&&D.class!==W.class&&i(C,"class",null,W.class,h),P&4&&i(C,"style",D.style,W.style,h),P&8){const ie=g.dynamicProps;for(let ge=0;ge<ie.length;ge++){const de=ie[ge],Ce=D[de],Pe=W[de];(Pe!==Ce||de==="value")&&i(C,de,Ce,Pe,h,b)}}P&1&&f.children!==g.children&&c(C,g.children)}else!p&&E==null&&xe(C,D,W,b,h);((Y=W.onVnodeUpdated)||z)&&Ue(()=>{Y&&ht(Y,b,g,f),z&&Gt(g,f,b,"updated")},x)},fe=(f,g,b,x,h,v,p)=>{for(let C=0;C<g.length;C++){const P=f[C],E=g[C],z=P.el||Zn(P),D=z&&(P.type===ne||!ms(P,E)||P.shapeFlag&198)?m(z):b;M(P,E,D,null,x,h,v,p,!0)}},xe=(f,g,b,x,h)=>{if(g!==b){if(g!==me)for(const v in g)!bs(v)&&!(v in b)&&i(f,v,g[v],null,h,x);for(const v in b){if(bs(v))continue;const p=b[v],C=g[v];p!==C&&v!=="value"&&i(f,v,C,p,h,x)}"value"in b&&i(f,"value",g.value,b.value,h)}},Oe=(f,g,b,x,h,v,p,C,P)=>{const E=g.el=f?f.el:l(""),z=g.anchor=f?f.anchor:l("");let{patchFlag:D,dynamicChildren:W,slotScopeIds:Y}=g;Y&&(C=C?C.concat(Y):Y),f==null?(n(E,b,x),n(z,b,x),Q(g.children||[],b,z,h,v,p,C,P)):D>0&&D&64&&W&&f.dynamicChildren&&f.dynamicChildren.length===W.length?(fe(f.dynamicChildren,W,b,h,v,p,C),(g.key!=null||h&&g===h.subTree)&&jr(f,g,!0)):re(f,g,b,z,h,v,p,C,P)},$e=(f,g,b,x,h,v,p,C,P)=>{g.slotScopeIds=C,f==null?g.shapeFlag&512?h.ctx.activate(g,b,x,p,P):Ct(g,b,x,h,v,p,P):Ge(f,g,P)},Ct=(f,g,b,x,h,v,p)=>{const C=f.component=ac(f,x,h);if(wo(f)&&(C.ctx.renderer=F),cc(C,!1,p),C.asyncDep){if(h&&h.registerDep(C,pe,p,v),!f.el){const P=C.subTree=B(rt);R(null,P,g,b),f.placeholder=P.el}}else pe(C,f,g,b,h,v,p)},Ge=(f,g,b)=>{const x=g.component=f.component;if(za(f,g,b))if(x.asyncDep&&!x.asyncResolved){g.el=f.el,g.placeholder=f.placeholder,X(x,g,b);return}else x.next=g,x.update();else g.el=f.el,g.placeholder=f.placeholder,x.vnode=g},pe=(f,g,b,x,h,v,p)=>{const C=()=>{if(f.isMounted){let{next:D,bu:W,u:Y,parent:ie,vnode:ge}=f;{const ft=Ur(f);if(ft){D&&(D.el=ge.el,X(f,D,p)),ft.asyncDep.then(()=>{Ue(()=>{f.isUnmounted||E()},h)});return}}let de=D,Ce;qt(f,!1),D?(D.el=ge.el,X(f,D,p)):D=ge,W&&qs(W),(Ce=D.props&&D.props.onVnodeBeforeUpdate)&&ht(Ce,ie,D,ge),qt(f,!0);const Pe=Yo(f),ut=f.subTree;f.subTree=Pe,M(ut,Pe,m(ut.el),O(ut),f,h,v),D.el=Pe.el,de===null&&Ka(f,Pe.el),Y&&Ue(Y,h),(Ce=D.props&&D.props.onVnodeUpdated)&&Ue(()=>ht(Ce,ie,D,ge),h)}else{let D;const{el:W,props:Y}=g,{bm:ie,m:ge,parent:de,root:Ce,type:Pe}=f,ut=Cs(g);qt(f,!1),ie&&qs(ie),!ut&&(D=Y&&Y.onVnodeBeforeMount)&&ht(D,de,g),qt(f,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Pe,f.parent?f.parent.type:void 0);const ft=f.subTree=Yo(f);M(null,ft,b,x,f,h,v),g.el=ft.el}if(ge&&Ue(ge,h),!ut&&(D=Y&&Y.onVnodeMounted)){const ft=g;Ue(()=>ht(D,de,ft),h)}(g.shapeFlag&256||de&&Cs(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&Ue(f.a,h),f.isMounted=!0,g=b=x=null}};f.scope.on();const P=f.effect=new Qi(C);f.scope.off();const E=f.update=P.run.bind(P),z=f.job=P.runIfDirty.bind(P);z.i=f,z.id=f.uid,P.scheduler=()=>bo(z),qt(f,!0),E()},X=(f,g,b)=>{g.component=f;const x=f.vnode.props;f.vnode=g,f.next=null,Ga(f,g.props,x,b),Qa(f,g.children,b),wt(),vr(f),St()},re=(f,g,b,x,h,v,p,C,P=!1)=>{const E=f&&f.children,z=f?f.shapeFlag:0,D=g.children,{patchFlag:W,shapeFlag:Y}=g;if(W>0){if(W&128){at(E,D,b,x,h,v,p,C,P);return}else if(W&256){Xe(E,D,b,x,h,v,p,C,P);return}}Y&8?(z&16&&je(E,h,v),D!==E&&c(b,D)):z&16?Y&16?at(E,D,b,x,h,v,p,C,P):je(E,h,v,!0):(z&8&&c(b,""),Y&16&&Q(D,b,x,h,v,p,C,P))},Xe=(f,g,b,x,h,v,p,C,P)=>{f=f||Xt,g=g||Xt;const E=f.length,z=g.length,D=Math.min(E,z);let W;for(W=0;W<D;W++){const Y=g[W]=P?Rt(g[W]):mt(g[W]);M(f[W],Y,b,null,h,v,p,C,P)}E>z?je(f,h,v,!0,!1,D):Q(g,b,x,h,v,p,C,P,D)},at=(f,g,b,x,h,v,p,C,P)=>{let E=0;const z=g.length;let D=f.length-1,W=z-1;for(;E<=D&&E<=W;){const Y=f[E],ie=g[E]=P?Rt(g[E]):mt(g[E]);if(ms(Y,ie))M(Y,ie,b,null,h,v,p,C,P);else break;E++}for(;E<=D&&E<=W;){const Y=f[D],ie=g[W]=P?Rt(g[W]):mt(g[W]);if(ms(Y,ie))M(Y,ie,b,null,h,v,p,C,P);else break;D--,W--}if(E>D){if(E<=W){const Y=W+1,ie=Y<z?g[Y].el:x;for(;E<=W;)M(null,g[E]=P?Rt(g[E]):mt(g[E]),b,ie,h,v,p,C,P),E++}}else if(E>W)for(;E<=D;)Ee(f[E],h,v,!0),E++;else{const Y=E,ie=E,ge=new Map;for(E=ie;E<=W;E++){const Be=g[E]=P?Rt(g[E]):mt(g[E]);Be.key!=null&&ge.set(Be.key,E)}let de,Ce=0;const Pe=W-ie+1;let ut=!1,ft=0;const ps=new Array(Pe);for(E=0;E<Pe;E++)ps[E]=0;for(E=Y;E<=D;E++){const Be=f[E];if(Ce>=Pe){Ee(Be,h,v,!0);continue}let dt;if(Be.key!=null)dt=ge.get(Be.key);else for(de=ie;de<=W;de++)if(ps[de-ie]===0&&ms(Be,g[de])){dt=de;break}dt===void 0?Ee(Be,h,v,!0):(ps[dt-ie]=E+1,dt>=ft?ft=dt:ut=!0,M(Be,g[dt],b,null,h,v,p,C,P),Ce++)}const Mo=ut?tc(ps):Xt;for(de=Mo.length-1,E=Pe-1;E>=0;E--){const Be=ie+E,dt=g[Be],No=g[Be+1],Do=Be+1<z?No.el||Zn(No):x;ps[E]===0?M(null,dt,b,Do,h,v,p,C,P):ut&&(de<0||E!==Mo[de]?Me(dt,b,Do,2):de--)}}},Me=(f,g,b,x,h=null)=>{const{el:v,type:p,transition:C,children:P,shapeFlag:E}=f;if(E&6){Me(f.component.subTree,g,b,x);return}if(E&128){f.suspense.move(g,b,x);return}if(E&64){p.move(f,g,b,F);return}if(p===ne){n(v,g,b);for(let D=0;D<P.length;D++)Me(P[D],g,b,x);n(f.anchor,g,b);return}if(p===Nn){N(f,g,b);return}if(x!==2&&E&1&&C)if(x===0)C.persisted&&!v[In]?n(v,g,b):(C.beforeEnter(v),n(v,g,b),Ue(()=>C.enter(v),h));else{const{leave:D,delayLeave:W,afterLeave:Y}=C,ie=()=>{f.ctx.isUnmounted?o(v):n(v,g,b)},ge=()=>{const de=v._isLeaving||!!v[In];v._isLeaving&&v[In](!0),C.persisted&&!de?ie():D(v,()=>{ie(),Y&&Y()})};W?W(v,ie,ge):ge()}else n(v,g,b)},Ee=(f,g,b,x=!1,h=!1)=>{const{type:v,props:p,ref:C,children:P,dynamicChildren:E,shapeFlag:z,patchFlag:D,dirs:W,cacheIndex:Y,memo:ie}=f;if((D===-2||E&&E.hasOnce)&&(h=!1),C!=null&&(wt(),xs(C,null,b,f,!0),St()),Y!=null&&(!f.ctx||f.ctx===g)&&(g.renderCache[Y]=void 0),z&256){g.ctx.deactivate(f);return}const ge=z&1&&W,de=!Cs(f);let Ce;if(de&&(Ce=p&&p.onVnodeBeforeUnmount)&&ht(Ce,g,f),z&6)Ze(f.component,b,x);else{if(z&128){f.suspense.unmount(b,x);return}ge&&Gt(f,null,g,"beforeUnmount"),z&64?f.type.remove(f,g,b,F,x):E&&!E.hasOnce&&(v!==ne||D>0&&D&64)?je(E,g,b,!1,!0):(v===ne&&D&384||!h&&z&16)&&je(P,g,b),x&&Nt(f)}const Pe=ie!=null&&Y==null;(de&&(Ce=p&&p.onVnodeUnmounted)||ge||Pe)&&Ue(()=>{Ce&&ht(Ce,g,f),ge&&Gt(f,null,g,"unmounted"),Pe&&(f.el=null)},b)},Nt=f=>{const{type:g,el:b,anchor:x,transition:h}=f,v=g===ne;if(v&&!h){ct(b,x);return}if(g===Nn){L(f),h&&!h.persisted&&h.afterLeave&&h.afterLeave();return}const p=v?qn(f):f,C=()=>{v?m(b)&&ct(b,x):o(b),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(p&&p.shapeFlag&1&&h&&!h.persisted){const{leave:P,delayLeave:E}=h,z=p.el,D=()=>P(z,C);E?E(z,C,D):D()}else C()},ct=(f,g)=>{let b;for(;f!==g;)b=w(f),o(f),f=b;o(g)},Ze=(f,g,b)=>{const{bum:x,scope:h,job:v,subTree:p,um:C,m:P,a:E}=f;Zo(P),Zo(E),x&&qs(x),h.stop(),v?(v.flags|=8,Ee(p,f,g,b)):f.vnode.el&&p&&(p.transition=f.vnode.transition,Ee(p,f,g,b)),C&&Ue(C,g),Ue(()=>{f.isUnmounted=!0},g)},je=(f,g,b,x=!1,h=!1,v=0)=>{for(let p=v;p<f.length;p++)Ee(f[p],g,b,x,h)},O=f=>{if(f.shapeFlag&6)return O(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=w(f.anchor||f.el),b=g&&g[ya];return b?w(b):g},U=(f,g,b)=>{const x=f&&g._vnode?void 0:f&&f.component?f.component.uid:lc();ha(()=>{f==null?g._vnode&&Ee(g._vnode,null,null,!0):M(g._vnode||null,f,g,null,null,null,b),g._vnode=f},x)},F={p:M,um:Ee,m:Me,r:Nt,mt:Ct,mc:Q,pc:re,pbc:fe,n:O,o:e};return{render:U,hydrate:void 0,createApp:Va(U)}}function Mn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jr(e,t,s=!1){const n=e.children,o=t.children;if(K(n)&&K(o))for(let i=0;i<n.length;i++){const r=n[i];let l=o[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[i]=Rt(o[i]),l.el=r.el),!s&&l.patchFlag!==-2&&jr(r,l)),l.type===Sn&&(l.patchFlag===-1&&(l=o[i]=Rt(l)),l.el=r.el),l.type===rt&&!l.el&&(l.el=r.el)}}function tc(e){const t=e.slice(),s=[0];let n,o,i,r,l;const a=e.length;for(n=0;n<a;n++){const d=e[n];if(d!==0){if(o=s[s.length-1],e[o]<d){t[n]=o,s.push(n);continue}for(i=0,r=s.length-1;i<r;)l=i+r>>1,e[s[l]]<d?i=l+1:r=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,r=s[i-1];i-- >0;)s[i]=r,r=t[r];return s}function Ur(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ur(t)}function Zo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Zn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Zn(t.subTree):null}const Br=e=>e.__isSuspense;function sc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):da(e)}const ne=Symbol.for("v-fgt"),Sn=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),Nn=Symbol.for("v-stc"),ss=[];let ze=null;function A(e=!1){ss.push(ze=e?null:[])}function zr(){ss.pop(),ze=ss[ss.length-1]||null}let Ps=1;function on(e,t=!1){Ps+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function Kr(e){return e.dynamicChildren=Ps>0?ze||Xt:null,zr(),Ps>0&&ze&&ze.push(e),e}function I(e,t,s,n,o,i){return Kr(u(e,t,s,n,o,i,!0))}function nt(e,t,s,n,o){return Kr(B(e,t,s,n,o,!0))}function Is(e){return e?e.__v_isVNode===!0:!1}function ms(e,t){return e.type===t.type&&e.key===t.key}const Wr=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||Z(e)?{i:qe,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,o=null,i=e===ne?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wr(t),ref:t&&Ys(t),scopeId:br,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:qe};return l?(rn(a,s),i&128&&e.normalize(a)):s&&(a.shapeFlag|=be(s)?8:16),Ps>0&&!r&&ze&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ze.push(a),a}const B=nc;function nc(e,t=null,s=null,n=0,o=null,i=!1){if((!e||e===Oa)&&(e=rt),Is(e)){const l=cs(e,t,!0);return s&&rn(l,s),Ps>0&&!i&&ze&&(l.shapeFlag&6?ze[ze.indexOf(e)]=l:ze.push(l)),l.patchFlag=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=ye(l)),ue(a)&&(mn(a)&&!K(a)&&(a=Ie({},a)),t.style=pn(a))}const r=be(e)?1:Br(e)?128:yn(e)?64:ue(e)?4:Z(e)?2:0;return u(e,t,s,n,o,r,i,!0)}function oc(e){return e?mn(e)||Nr(e)?Ie({},e):e:null}function cs(e,t,s=!1,n=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:a}=e,d=t?ic(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Wr(d),ref:t&&t.ref?s&&i?K(i)?i.concat(Ys(t)):[i,Ys(t)]:Ys(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cs(e.ssContent),ssFallback:e.ssFallback&&cs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&n&&tn(c,a.clone(c)),c}function j(e=" ",t=0){return B(Sn,null,e,t)}function ee(e="",t=!1){return t?(A(),nt(rt,null,e)):B(rt,null,e)}function mt(e){return e==null||typeof e=="boolean"?B(rt):K(e)?B(ne,null,e.slice()):Is(e)?Rt(e):B(Sn,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cs(e)}function rn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),rn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Nr(t)?t._ctx=qe:o===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Z(t)){if(n&65){rn(e,{default:t});return}t={default:t,_ctx:qe},s=32}else t=String(t),n&64?(s=16,t=[j(t)]):s=8;e.children=t,e.shapeFlag|=s}function ic(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(o==="style")t.style=pn([t.style,n.style]);else if(an(o)){const i=t[o],r=n[o];r&&i!==r&&!(K(i)&&i.includes(r))?t[o]=i?[].concat(i,r):r:r==null&&i==null&&!cn(o)&&(t[o]=r)}else o!==""&&(t[o]=n[o])}return t}function ht(e,t,s,n=null){it(e,t,7,[s,n])}const rc=Tr();let Gr=0;function lc(){return Gr}function ac(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||rc,i={uid:Gr++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fr(n,o),emitsOptions:Or(n,o),emit:null,emitted:null,propsDefaults:me,inheritAttrs:n.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ha.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const qr=()=>Le||qe;let ln,$s;{const e=hn(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>Le=s),$s=t("__VUE_SSR_SETTERS__",s=>Ms=s)}const Ls=e=>{const t=Le;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},ei=()=>{Le&&Le.scope.off(),ln(null)};function Jr(e){return e.vnode.shapeFlag&4}let Ms=!1;function cc(e,t=!1,s=!1){t&&$s(t);const{props:n,children:o}=e.vnode,i=Jr(e);Wa(e,n,i,t),Ya(e,o,s||t);const r=i?uc(e,t):void 0;return t&&$s(!1),r}function uc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pa);const{setup:n}=s;if(n){wt();const o=e.setupContext=n.length>1?dc(e):null,i=Ls(e),r=Fs(n,e,0,[e.props,o]),l=Hi(r);if(St(),i(),(l||e.sp)&&!Cs(e)&&Cr(e),l){if(r.then(ei,ei),t)return r.then(a=>{$s(!0);try{ti(e,a,t)}finally{$s(!1)}}).catch(a=>{vn(a,e,0)});e.asyncDep=r}else ti(e,r)}else Yr(e)}function ti(e,t,s){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=pr(t)),Yr(e)}function Yr(e,t,s){const n=e.type;e.render||(e.render=n.render||yt);{const o=Ls(e);wt();try{Ia(e)}finally{St(),o()}}}const fc={get(e,t){return Ne(e,"get",""),e[t]}};function dc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,fc),slots:e.slots,emit:e.emit,expose:t}}function xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pr(_o(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in ks)return ks[s](e)},has(t,s){return s in t||s in ks}})):e.proxy}function hc(e){return Z(e)&&"__vccOpts"in e}const oe=(e,t)=>la(e,t,Ms);function Qr(e,t,s){try{on(-1);const n=arguments.length;return n===2?ue(t)&&!K(t)?Is(t)?B(e,null,[t]):B(e,t):B(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Is(s)&&(s=[s]),B(e,t,s))}finally{on(1)}}const pc="3.5.44";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.44
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let eo;const si=typeof window<"u"&&window.trustedTypes;if(si)try{eo=si.createPolicy("vue",{createHTML:e=>e})}catch{}const Xr=eo?e=>eo.createHTML(e):e=>e,gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ni=At&&At.createElement("template"),vc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?At.createElementNS(gc,e):t==="mathml"?At.createElementNS(mc,e):s?At.createElement(e,{is:s}):At.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,i){const r=s?s.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===i||!(o=o.nextSibling)););else{ni.innerHTML=Xr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ni.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},yc=Symbol("_vtc");function _c(e,t,s){const n=e[yc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),bc=Symbol("_vsh"),wc=Symbol(""),Sc=/(?:^|;)\s*display\s*:/;function xc(e,t,s){const n=e.style,o=be(s);let i=!1;if(s&&!o){if(t)if(be(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();s[l]==null&&_s(n,l,"")}else for(const r in t)s[r]==null&&_s(n,r,"");for(const r in s){r==="display"&&(i=!0);const l=s[r];l!=null?kc(e,r,!be(t)&&t?t[r]:void 0,l)||_s(n,r,l):_s(n,r,"")}}else if(o){if(t!==s){const r=n[wc];r&&(s+=";"+r),n.cssText=s,i=Sc.test(s)}}else t&&e.removeAttribute("style");oi in e&&((!o||t!==s)&&(e[oi]=i?n.display:""),e[bc]&&(n.display="none"))}const Ks=/\s*!important$/;function _s(e,t,s){if(K(s))s.forEach(n=>_s(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))Ks.test(s)?e.setProperty(t,s.replace(Ks,""),"important"):e.setProperty(t,s);else{const n=Cc(e,t);Ks.test(s)?e.setProperty(Kt(n),s.replace(Ks,""),"important"):e[n]=s}}const ii=["Webkit","Moz","ms"],Dn={};function Cc(e,t){const s=Dn[t];if(s)return s;let n=tt(t);if(n!=="filter"&&n in e)return Dn[t]=n;n=Bi(n);for(let o=0;o<ii.length;o++){const i=ii[o]+n;if(i in e)return Dn[t]=i}return t}function kc(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(n)&&s===n}const ri="http://www.w3.org/1999/xlink";function li(e,t,s,n,o,i=$l(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ri,t.slice(6,t.length)):e.setAttributeNS(ri,t,s):s==null||i&&!Ki(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(s)?String(s):s)}function ai(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Xr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Ki(s):s==null&&l==="string"?(s="",r=!0):l==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(o||t)}function It(e,t,s,n){e.addEventListener(t,s,n)}function Ec(e,t,s,n){e.removeEventListener(t,s,n)}const ci=Symbol("_vei");function Ac(e,t,s,n,o=null){const i=e[ci]||(e[ci]={}),r=i[t];if(n&&r)r.value=n;else{const[l,a]=Oc(t);if(n){const d=i[t]=$c(n,o);It(e,l,d,a)}else r&&(Ec(e,l,r,a),i[t]=void 0)}}const Rc=/(Once|Passive|Capture)$/,Tc=/^on:?(?:Once|Passive|Capture)$/;function Oc(e){let t,s;for(;(s=e.match(Rc))&&!Tc.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let Fn=0;const Pc=Promise.resolve(),Ic=()=>Fn||(Pc.then(()=>Fn=0),Fn=Date.now());function $c(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const o=s.value;if(K(o)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const r=o.slice(),l=[n];for(let a=0;a<r.length&&!n._stopped;a++){const d=r[a];d&&it(d,t,5,l)}}else it(o,t,5,[n])};return s.value=e,s.attached=Ic(),s}const ui=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Mc=(e,t,s,n,o,i)=>{const r=o==="svg";t==="class"?_c(e,n,r):t==="style"?xc(e,s,n):an(t)?cn(t)||Ac(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nc(e,t,n,r))?(ai(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&li(e,t,n,r,i,t!=="value")):e._isVueCE&&(Dc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(n)))?ai(e,tt(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),li(e,t,n,r))};function Nc(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ui(t)&&Z(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ui(t)&&be(s)?!1:t in e}function Dc(e,t){const s=e._def.props;if(!s)return!1;const n=tt(t);return Array.isArray(s)?s.some(o=>tt(o)===n):Object.keys(s).some(o=>tt(o)===n)}const zt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?s=>qs(t,s):t};function Fc(e){e.target.composing=!0}function fi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign"),Ws=Symbol("_initialValue");function Vn(e,t,s){return t&&(e=e.trim()),s&&(e=dn(e)),e}const Ut={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e.parentNode&&(e.type==="text"?e[Ws]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ws]=e.defaultValue.replace(/\r\n?/g,`
|
|
18
|
-
`))),e[Ke]=zt(o);const i=n||o.props&&o.props.type==="number";It(e,t?"change":"input",r=>{r.target.composing||e[Ke](Vn(e.value,s,i))}),(s||i)&&It(e,"change",()=>{e.value=Vn(e.value,s,i)}),t||(It(e,"compositionstart",Fc),It(e,"compositionend",fi),It(e,"change",fi))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const o=t??"",i=e[Ws];delete e[Ws],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ke](Vn(e.value,s,n)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:i}},r){if(e[Ke]=zt(r),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?dn(e.value):e.value,a=t??"";if(l===a)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},Vc={deep:!0,created(e,t,s){e[Ke]=zt(s),It(e,"change",()=>{const n=e._modelValue,o=us(e),i=e.checked,r=e[Ke];if(K(n)){const l=fo(n,o),a=l!==-1;if(i&&!a)r(n.concat(o));else if(!i&&a){const d=[...n];d.splice(l,1),r(d)}}else if($t(n)){const l=new Set(n);i?l.add(o):l.delete(o),r(l)}else r(Zr(e,i))})},mounted:di,beforeUpdate(e,t,s){e[Ke]=zt(s),di(e,t,s)}};function di(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(K(t))o=fo(t,n.props.value)>-1;else if($t(t))o=t.has(n.props.value);else{if(t===s)return;o=ot(t,Zr(e,!0))}e.checked!==o&&(e.checked=o)}const Lc={created(e,{value:t},s){e.checked=ot(t,s.props.value),e[Ke]=zt(s),It(e,"change",()=>{e[Ke](us(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Ke]=zt(n),t!==s&&(e.checked=ot(t,n.props.value))}},Co={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,It(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>s?dn(us(a)):us(a)),i=e.multiple,r=i?$t(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[i,i?K(r)?o.slice():o:r];try{e[Ke](r)}finally{Vs(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Ke]=zt(n)},mounted(e,{value:t}){hi(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Ke]=zt(s)},updated(e,{value:t}){const s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Hc(t,s[1],s[0]))&&hi(e,t)}};function Hc(e,t,s){if(!s||K(e))return ot(e,t);if($t(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}function hi(e,t){const s=e.multiple,n=K(t);if(!(s&&!n&&!$t(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],l=us(r);if(s)if(n){const a=typeof l;a==="string"||a==="number"?r.selected=t.some(d=>String(d)===String(l)):r.selected=fo(t,l)>-1}else r.selected=t.has(l);else if(ot(us(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function us(e){return"_value"in e?e._value:e.value}function Zr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jc={created(e,t,s){Gs(e,t,s,null,"created")},mounted(e,t,s){Gs(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Gs(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Gs(e,t,s,n,"updated")}};function Uc(e,t){switch(e){case"SELECT":return Co;case"TEXTAREA":return Ut;default:switch(t){case"checkbox":return Vc;case"radio":return Lc;default:return Ut}}}function Gs(e,t,s,n,o){const r=Uc(e.tagName,s.props&&s.props.type)[o];r&&r(e,t,s,n)}const Bc=["ctrl","shift","alt","meta"],zc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bc.some(s=>e[`${s}Key`]&&!t.includes(s))},to=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(o,...i)=>{for(let r=0;r<t.length;r++){const l=zc[t[r]];if(l&&l(o,t))return}return e(o,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wc=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=o=>{if(!("key"in o))return;const i=Kt(o.key);if(t.some(r=>r===i||Kc[r]===i))return e(o)})},Gc=Ie({patchProp:Mc},vc);let pi;function qc(){return pi||(pi=Xa(Gc))}const Jc=(...e)=>{const t=qc().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Qc(n);if(!o)return;const i=t._component;!Z(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=s(o,!1,Yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return be(e)?document.querySelector(e):e}/*!
|
|
19
|
-
* pinia v2.3.1
|
|
20
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/let el;const Cn=e=>el=e,tl=Symbol();function so(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Es;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Es||(Es={}));function Xc(){const e=Ji(!0),t=e.run(()=>se({}));let s=[],n=[];const o=_o({install(i){Cn(o),o._a=i,i.provide(tl,o),i.config.globalProperties.$pinia=o,n.forEach(r=>s.push(r)),n=[]},use(i){return this._a?s.push(i):n.push(i),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return o}const sl=()=>{};function gi(e,t,s,n=sl){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!s&&Yi()&&Dl(o),o}function is(e,...t){e.slice().forEach(s=>{s(...t)})}const Zc=e=>e(),mi=Symbol(),Ln=Symbol();function no(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],o=e[s];so(o)&&so(n)&&e.hasOwnProperty(s)&&!we(n)&&!_t(n)?e[s]=no(o,n):e[s]=n}return e}const eu=Symbol();function tu(e){return!so(e)||!e.hasOwnProperty(eu)}const{assign:Ft}=Object;function su(e){return!!(we(e)&&e.effect)}function nu(e,t,s,n){const{state:o,actions:i,getters:r}=t,l=s.state.value[e];let a;function d(){l||(s.state.value[e]=o?o():{});const c=na(s.state.value[e]);return Ft(c,i,Object.keys(r||{}).reduce((m,w)=>(m[w]=_o(oe(()=>{Cn(s);const _=s._s.get(e);return r[w].call(_,_)})),m),{}))}return a=nl(e,d,t,s,n,!0),a}function nl(e,t,s={},n,o,i){let r;const l=Ft({actions:{}},s),a={deep:!0};let d,c,m=[],w=[],_;const $=n.state.value[e];!i&&!$&&(n.state.value[e]={});let M;function V(Q){let q;d=c=!1,typeof Q=="function"?(Q(n.state.value[e]),q={type:Es.patchFunction,storeId:e,events:_}):(no(n.state.value[e],Q),q={type:Es.patchObject,payload:Q,storeId:e,events:_});const fe=M=Symbol();Vs().then(()=>{M===fe&&(d=!0)}),c=!0,is(m,q,n.state.value[e])}const R=i?function(){const{state:q}=s,fe=q?q():{};this.$patch(xe=>{Ft(xe,fe)})}:sl;function T(){r.stop(),m=[],w=[],n._s.delete(e)}const N=(Q,q="")=>{if(mi in Q)return Q[Ln]=q,Q;const fe=function(){Cn(n);const xe=Array.from(arguments),Oe=[],$e=[];function Ct(X){Oe.push(X)}function Ge(X){$e.push(X)}is(w,{args:xe,name:fe[Ln],store:H,after:Ct,onError:Ge});let pe;try{pe=Q.apply(this&&this.$id===e?this:H,xe)}catch(X){throw is($e,X),X}return pe instanceof Promise?pe.then(X=>(is(Oe,X),X)).catch(X=>(is($e,X),Promise.reject(X))):(is(Oe,pe),pe)};return fe[mi]=!0,fe[Ln]=q,fe},L={_p:n,$id:e,$onAction:gi.bind(null,w),$patch:V,$reset:R,$subscribe(Q,q={}){const fe=gi(m,Q,q.detached,()=>xe()),xe=r.run(()=>jt(()=>n.state.value[e],Oe=>{(q.flush==="sync"?c:d)&&Q({storeId:e,type:Es.direct,events:_},Oe)},Ft({},a,q)));return fe},$dispose:T},H=ns(L);n._s.set(e,H);const te=(n._a&&n._a.runWithContext||Zc)(()=>n._e.run(()=>(r=Ji()).run(()=>t({action:N}))));for(const Q in te){const q=te[Q];if(we(q)&&!su(q)||_t(q))i||($&&tu(q)&&(we(q)?q.value=$[Q]:no(q,$[Q])),n.state.value[e][Q]=q);else if(typeof q=="function"){const fe=N(q,Q);te[Q]=fe,l.actions[Q]=q}}return Ft(H,te),Ft(le(H),te),Object.defineProperty(H,"$state",{get:()=>n.state.value[e],set:Q=>{V(q=>{Ft(q,Q)})}}),n._p.forEach(Q=>{Ft(H,r.run(()=>Q({store:H,app:n._a,pinia:n,options:l})))}),$&&i&&s.hydrate&&s.hydrate(H.$state,$),d=!0,c=!0,H}/*! #__NO_SIDE_EFFECTS__ */function Hs(e,t,s){let n,o;const i=typeof t=="function";typeof e=="string"?(n=e,o=i?s:t):(o=e,n=e.id);function r(l,a){const d=pa();return l=l||(d?bt(tl,null):null),l&&Cn(l),l=el,l._s.has(n)||(i?nl(n,t,o,l):nu(n,o,l)),l._s.get(n)}return r.$id=n,r}/*!
|
|
23
|
-
* vue-router v4.6.4
|
|
24
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
-
* @license MIT
|
|
26
|
-
*/const as=typeof document<"u";function ol(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ou(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ol(e.default)}const ce=Object.assign;function Hn(e,t){const s={};for(const n in t){const o=t[n];s[n]=lt(o)?o.map(e):e(o)}return s}const As=()=>{},lt=Array.isArray;function vi(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const il=/#/g,iu=/&/g,ru=/\//g,lu=/=/g,au=/\?/g,rl=/\+/g,cu=/%5B/g,uu=/%5D/g,ll=/%5E/g,fu=/%60/g,al=/%7B/g,du=/%7C/g,cl=/%7D/g,hu=/%20/g;function ko(e){return e==null?"":encodeURI(""+e).replace(du,"|").replace(cu,"[").replace(uu,"]")}function pu(e){return ko(e).replace(al,"{").replace(cl,"}").replace(ll,"^")}function oo(e){return ko(e).replace(rl,"%2B").replace(hu,"+").replace(il,"%23").replace(iu,"%26").replace(fu,"`").replace(al,"{").replace(cl,"}").replace(ll,"^")}function gu(e){return oo(e).replace(lu,"%3D")}function mu(e){return ko(e).replace(il,"%23").replace(au,"%3F")}function vu(e){return mu(e).replace(ru,"%2F")}function Ns(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const yu=/\/$/,_u=e=>e.replace(yu,"");function jn(e,t,s="/"){let n,o={},i="",r="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(n=t.slice(0,a),i=t.slice(a,l>0?l:t.length),o=e(i.slice(1))),l>=0&&(n=n||t.slice(0,l),r=t.slice(l,t.length)),n=xu(n??t,s),{fullPath:n+i+r,path:n,query:o,hash:Ns(r)}}function bu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function yi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wu(e,t,s){const n=t.matched.length-1,o=s.matched.length-1;return n>-1&&n===o&&fs(t.matched[n],s.matched[o])&&ul(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function fs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ul(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Su(e[s],t[s]))return!1;return!0}function Su(e,t){return lt(e)?_i(e,t):lt(t)?_i(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function _i(e,t){return lt(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function xu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=s.length-1,r,l;for(r=0;r<n.length;r++)if(l=n[r],l!==".")if(l==="..")i>1&&i--;else break;return s.slice(0,i).join("/")+"/"+n.slice(r).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let io=function(e){return e.pop="pop",e.push="push",e}({}),Un=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Cu(e){if(!e)if(as){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_u(e)}const ku=/^[^#]+#/;function Eu(e,t){return e.replace(ku,"#")+t}function Au(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const kn=()=>({left:window.scrollX,top:window.scrollY});function Ru(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=Au(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function bi(e,t){return(history.state?history.state.position-t:-1)+e}const ro=new Map;function Tu(e,t){ro.set(e,t)}function Ou(e){const t=ro.get(e);return ro.delete(e),t}function Pu(e){return typeof e=="string"||e&&typeof e=="object"}function fl(e){return typeof e=="string"||typeof e=="symbol"}let _e=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const dl=Symbol("");_e.MATCHER_NOT_FOUND+"",_e.NAVIGATION_GUARD_REDIRECT+"",_e.NAVIGATION_ABORTED+"",_e.NAVIGATION_CANCELLED+"",_e.NAVIGATION_DUPLICATED+"";function ds(e,t){return ce(new Error,{type:e,[dl]:!0},t)}function Et(e,t){return e instanceof Error&&dl in e&&(t==null||!!(e.type&t))}const Iu=["params","query","hash"];function $u(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of Iu)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Mu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const o=s[n].replace(rl," "),i=o.indexOf("="),r=Ns(i<0?o:o.slice(0,i)),l=i<0?null:Ns(o.slice(i+1));if(r in t){let a=t[r];lt(a)||(a=t[r]=[a]),a.push(l)}else t[r]=l}return t}function wi(e){let t="";for(let s in e){const n=e[s];if(s=gu(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(lt(n)?n.map(o=>o&&oo(o)):[n&&oo(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=lt(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const Du=Symbol(""),Si=Symbol(""),Eo=Symbol(""),hl=Symbol(""),lo=Symbol("");function vs(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Lt(e,t,s,n,o,i=r=>r()){const r=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const d=w=>{w===!1?a(ds(_e.NAVIGATION_ABORTED,{from:s,to:t})):w instanceof Error?a(w):Pu(w)?a(ds(_e.NAVIGATION_GUARD_REDIRECT,{from:t,to:w})):(r&&n.enterCallbacks[o]===r&&typeof w=="function"&&r.push(w),l())},c=i(()=>e.call(n&&n.instances[o],t,s,d));let m=Promise.resolve(c);e.length<3&&(m=m.then(d)),m.catch(w=>a(w))})}function Bn(e,t,s,n,o=i=>i()){const i=[];for(const r of e)for(const l in r.components){let a=r.components[l];if(!(t!=="beforeRouteEnter"&&!r.instances[l]))if(ol(a)){const d=(a.__vccOpts||a)[t];d&&i.push(Lt(d,s,n,r,l,o))}else{let d=a();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${r.path}"`);const m=ou(c)?c.default:c;r.mods[l]=c,r.components[l]=m;const w=(m.__vccOpts||m)[t];return w&&Lt(w,s,n,r,l,o)()}))}}return i}function Fu(e,t){const s=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;r<i;r++){const l=t.matched[r];l&&(e.matched.find(d=>fs(d,l))?n.push(l):s.push(l));const a=e.matched[r];a&&(t.matched.find(d=>fs(d,a))||o.push(a))}return[s,n,o]}/*!
|
|
27
|
-
* vue-router v4.6.4
|
|
28
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
29
|
-
* @license MIT
|
|
30
|
-
*/let Vu=()=>location.protocol+"//"+location.host;function pl(e,t){const{pathname:s,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(r);return l[0]!=="/"&&(l="/"+l),yi(l,"")}return yi(s,e)+n+o}function Lu(e,t,s,n){let o=[],i=[],r=null;const l=({state:w})=>{const _=pl(e,location),$=s.value,M=t.value;let V=0;if(w){if(s.value=_,t.value=w,r&&r===$){r=null;return}V=M?w.position-M.position:0}else n(_);o.forEach(R=>{R(s.value,$,{delta:V,type:io.pop,direction:V?V>0?Un.forward:Un.back:Un.unknown})})};function a(){r=s.value}function d(w){o.push(w);const _=()=>{const $=o.indexOf(w);$>-1&&o.splice($,1)};return i.push(_),_}function c(){if(document.visibilityState==="hidden"){const{history:w}=window;if(!w.state)return;w.replaceState(ce({},w.state,{scroll:kn()}),"")}}function m(){for(const w of i)w();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:d,destroy:m}}function xi(e,t,s,n=!1,o=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:o?kn():null}}function Hu(e){const{history:t,location:s}=window,n={value:pl(e,s)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,d,c){const m=e.indexOf("#"),w=m>-1?(s.host&&document.querySelector("base")?e:e.slice(m))+a:Vu()+e+a;try{t[c?"replaceState":"pushState"](d,"",w),o.value=d}catch(_){console.error(_),s[c?"replace":"assign"](w)}}function r(a,d){i(a,ce({},t.state,xi(o.value.back,a,o.value.forward,!0),d,{position:o.value.position}),!0),n.value=a}function l(a,d){const c=ce({},o.value,t.state,{forward:a,scroll:kn()});i(c.current,c,!0),i(a,ce({},xi(n.value,a,null),{position:c.position+1},d),!1),n.value=a}return{location:n,state:o,push:l,replace:r}}function ju(e){e=Cu(e);const t=Hu(e),s=Lu(e,t.state,t.location,t.replace);function n(i,r=!0){r||s.pauseListeners(),history.go(i)}const o=ce({location:"",base:e,go:n,createHref:Eu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Uu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ju(e)}let Zt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ae=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ae||{});const Bu={type:Zt.Static,value:""},zu=/[a-zA-Z0-9_]/;function Ku(e){if(!e)return[[]];if(e==="/")return[[Bu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${s})/"${d}": ${_}`)}let s=Ae.Static,n=s;const o=[];let i;function r(){i&&o.push(i),i=[]}let l=0,a,d="",c="";function m(){d&&(s===Ae.Static?i.push({type:Zt.Static,value:d}):s===Ae.Param||s===Ae.ParamRegExp||s===Ae.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Zt.Param,value:d,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function w(){d+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&s!==Ae.ParamRegExp){n=s,s=Ae.EscapeNext;continue}switch(s){case Ae.Static:a==="/"?(d&&m(),r()):a===":"?(m(),s=Ae.Param):w();break;case Ae.EscapeNext:w(),s=n;break;case Ae.Param:a==="("?s=Ae.ParamRegExp:zu.test(a)?w():(m(),s=Ae.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Ae.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:s=Ae.ParamRegExpEnd:c+=a;break;case Ae.ParamRegExpEnd:m(),s=Ae.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return s===Ae.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),m(),r(),o}const Ci="[^/]+?",Wu={sensitive:!1,strict:!1,start:!0,end:!0};var Fe=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Fe||{});const Gu=/[.+*?^${}()[\]/\\]/g;function qu(e,t){const s=ce({},Wu,t),n=[];let o=s.start?"^":"";const i=[];for(const d of e){const c=d.length?[]:[Fe.Root];s.strict&&!d.length&&(o+="/");for(let m=0;m<d.length;m++){const w=d[m];let _=Fe.Segment+(s.sensitive?Fe.BonusCaseSensitive:0);if(w.type===Zt.Static)m||(o+="/"),o+=w.value.replace(Gu,"\\$&"),_+=Fe.Static;else if(w.type===Zt.Param){const{value:$,repeatable:M,optional:V,regexp:R}=w;i.push({name:$,repeatable:M,optional:V});const T=R||Ci;if(T!==Ci){_+=Fe.BonusCustomRegExp;try{`${T}`}catch(L){throw new Error(`Invalid custom RegExp for param "${$}" (${T}): `+L.message)}}let N=M?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;m||(N=V&&d.length<2?`(?:/${N})`:"/"+N),V&&(N+="?"),o+=N,_+=Fe.Dynamic,V&&(_+=Fe.BonusOptional),M&&(_+=Fe.BonusRepeatable),T===".*"&&(_+=Fe.BonusWildcard)}c.push(_)}n.push(c)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=Fe.BonusStrict}s.strict||(o+="/?"),s.end?o+="$":s.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,s.sensitive?"":"i");function l(d){const c=d.match(r),m={};if(!c)return null;for(let w=1;w<c.length;w++){const _=c[w]||"",$=i[w-1];m[$.name]=_&&$.repeatable?_.split("/"):_}return m}function a(d){let c="",m=!1;for(const w of e){(!m||!c.endsWith("/"))&&(c+="/"),m=!1;for(const _ of w)if(_.type===Zt.Static)c+=_.value;else if(_.type===Zt.Param){const{value:$,repeatable:M,optional:V}=_,R=$ in d?d[$]:"";if(lt(R)&&!M)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const T=lt(R)?R.join("/"):R;if(!T)if(V)w.length<2&&(c.endsWith("/")?c=c.slice(0,-1):m=!0);else throw new Error(`Missing required param "${$}"`);c+=T}}return c||"/"}return{re:r,score:n,keys:i,parse:l,stringify:a}}function Ju(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===Fe.Static+Fe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Fe.Static+Fe.Segment?1:-1:0}function gl(e,t){let s=0;const n=e.score,o=t.score;for(;s<n.length&&s<o.length;){const i=Ju(n[s],o[s]);if(i)return i;s++}if(Math.abs(o.length-n.length)===1){if(ki(n))return 1;if(ki(o))return-1}return o.length-n.length}function ki(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yu={strict:!1,end:!0,sensitive:!1};function Qu(e,t,s){const n=qu(Ku(e.path),s),o=ce(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Xu(e,t){const s=[],n=new Map;t=vi(Yu,t);function o(m){return n.get(m)}function i(m,w,_){const $=!_,M=Ai(m);M.aliasOf=_&&_.record;const V=vi(t,m),R=[M];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const H of L)R.push(Ai(ce({},M,{components:_?_.record.components:M.components,path:H,aliasOf:_?_.record:M})))}let T,N;for(const L of R){const{path:H}=L;if(w&&H[0]!=="/"){const he=w.record.path,te=he[he.length-1]==="/"?"":"/";L.path=w.record.path+(H&&te+H)}if(T=Qu(L,w,V),_?_.alias.push(T):(N=N||T,N!==T&&N.alias.push(T),$&&m.name&&!Ri(T)&&r(m.name)),ml(T)&&a(T),M.children){const he=M.children;for(let te=0;te<he.length;te++)i(he[te],T,_&&_.children[te])}_=_||T}return N?()=>{r(N)}:As}function r(m){if(fl(m)){const w=n.get(m);w&&(n.delete(m),s.splice(s.indexOf(w),1),w.children.forEach(r),w.alias.forEach(r))}else{const w=s.indexOf(m);w>-1&&(s.splice(w,1),m.record.name&&n.delete(m.record.name),m.children.forEach(r),m.alias.forEach(r))}}function l(){return s}function a(m){const w=tf(m,s);s.splice(w,0,m),m.record.name&&!Ri(m)&&n.set(m.record.name,m)}function d(m,w){let _,$={},M,V;if("name"in m&&m.name){if(_=n.get(m.name),!_)throw ds(_e.MATCHER_NOT_FOUND,{location:m});V=_.record.name,$=ce(Ei(w.params,_.keys.filter(N=>!N.optional).concat(_.parent?_.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),m.params&&Ei(m.params,_.keys.map(N=>N.name))),M=_.stringify($)}else if(m.path!=null)M=m.path,_=s.find(N=>N.re.test(M)),_&&($=_.parse(M),V=_.record.name);else{if(_=w.name?n.get(w.name):s.find(N=>N.re.test(w.path)),!_)throw ds(_e.MATCHER_NOT_FOUND,{location:m,currentLocation:w});V=_.record.name,$=ce({},w.params,m.params),M=_.stringify($)}const R=[];let T=_;for(;T;)R.unshift(T.record),T=T.parent;return{name:V,path:M,params:$,matched:R,meta:ef(R)}}e.forEach(m=>i(m));function c(){s.length=0,n.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:c,getRoutes:l,getRecordMatcher:o}}function Ei(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Ai(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Zu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Ri(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ef(e){return e.reduce((t,s)=>ce(t,s.meta),{})}function tf(e,t){let s=0,n=t.length;for(;s!==n;){const i=s+n>>1;gl(e,t[i])<0?n=i:s=i+1}const o=sf(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function sf(e){let t=e;for(;t=t.parent;)if(ml(t)&&gl(e,t)===0)return t}function ml({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ti(e){const t=bt(Eo),s=bt(hl),n=oe(()=>{const a=y(e.to);return t.resolve(a)}),o=oe(()=>{const{matched:a}=n.value,{length:d}=a,c=a[d-1],m=s.matched;if(!c||!m.length)return-1;const w=m.findIndex(fs.bind(null,c));if(w>-1)return w;const _=Oi(a[d-2]);return d>1&&Oi(c)===_&&m[m.length-1].path!==_?m.findIndex(fs.bind(null,a[d-2])):w}),i=oe(()=>o.value>-1&&lf(s.params,n.value.params)),r=oe(()=>o.value>-1&&o.value===s.matched.length-1&&ul(s.params,n.value.params));function l(a={}){if(rf(a)){const d=t[y(e.replace)?"replace":"push"](y(e.to)).catch(As);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:oe(()=>n.value.href),isActive:i,isExactActive:r,navigate:l}}function nf(e){return e.length===1?e[0]:e}const of=He({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ti,setup(e,{slots:t}){const s=ns(Ti(e)),{options:n}=bt(Eo),o=oe(()=>({[Pi(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Pi(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const i=t.default&&nf(t.default(s));return e.custom?i:Qr("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},i)}}}),Qt=of;function rf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lf(e,t){for(const s in t){const n=t[s],o=e[s];if(typeof n=="string"){if(n!==o)return!1}else if(!lt(o)||o.length!==n.length||n.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Oi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pi=(e,t,s)=>e??t??s,af=He({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=bt(lo),o=oe(()=>e.route||n.value),i=bt(Si,0),r=oe(()=>{let d=y(i);const{matched:c}=o.value;let m;for(;(m=c[d])&&!m.components;)d++;return d}),l=oe(()=>o.value.matched[r.value]);Js(Si,oe(()=>r.value+1)),Js(Du,l),Js(lo,o);const a=se();return jt(()=>[a.value,l.value,e.name],([d,c,m],[w,_,$])=>{c&&(c.instances[m]=d,_&&_!==c&&d&&d===w&&(c.leaveGuards.size||(c.leaveGuards=_.leaveGuards),c.updateGuards.size||(c.updateGuards=_.updateGuards))),d&&c&&(!_||!fs(c,_)||!w)&&(c.enterCallbacks[m]||[]).forEach(M=>M(d))},{flush:"post"}),()=>{const d=o.value,c=e.name,m=l.value,w=m&&m.components[c];if(!w)return Ii(s.default,{Component:w,route:d});const _=m.props[c],$=_?_===!0?d.params:typeof _=="function"?_(d):_:null,V=Qr(w,ce({},$,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(m.instances[c]=null)},ref:a}));return Ii(s.default,{Component:V,route:d})||V}}});function Ii(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const vl=af;function cf(e){const t=Xu(e.routes,e),s=e.parseQuery||Mu,n=e.stringifyQuery||wi,o=e.history,i=vs(),r=vs(),l=vs(),a=ea(Dt);let d=Dt;as&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Hn.bind(null,O=>""+O),m=Hn.bind(null,vu),w=Hn.bind(null,Ns);function _(O,U){let F,G;return fl(O)?(F=t.getRecordMatcher(O),G=U):G=O,t.addRoute(G,F)}function $(O){const U=t.getRecordMatcher(O);U&&t.removeRoute(U)}function M(){return t.getRoutes().map(O=>O.record)}function V(O){return!!t.getRecordMatcher(O)}function R(O,U){if(U=ce({},U||a.value),typeof O=="string"){const x=jn(s,O,U.path),h=t.resolve({path:x.path},U),v=o.createHref(x.fullPath);return ce(x,h,{params:w(h.params),hash:Ns(x.hash),redirectedFrom:void 0,href:v})}let F;if(O.path!=null)F=ce({},O,{path:jn(s,O.path,U.path).path});else{const x=ce({},O.params);for(const h in x)x[h]==null&&delete x[h];F=ce({},O,{params:m(x)}),U.params=m(U.params)}const G=t.resolve(F,U),f=O.hash||"";G.params=c(w(G.params));const g=bu(n,ce({},O,{hash:pu(f),path:G.path})),b=o.createHref(g);return ce({fullPath:g,hash:f,query:n===wi?Nu(O.query):O.query||{}},G,{redirectedFrom:void 0,href:b})}function T(O){return typeof O=="string"?jn(s,O,a.value.path):ce({},O)}function N(O,U){if(d!==O)return ds(_e.NAVIGATION_CANCELLED,{from:U,to:O})}function L(O){return te(O)}function H(O){return L(ce(T(O),{replace:!0}))}function he(O,U){const F=O.matched[O.matched.length-1];if(F&&F.redirect){const{redirect:G}=F;let f=typeof G=="function"?G(O,U):G;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=T(f):{path:f},f.params={}),ce({query:O.query,hash:O.hash,params:f.path!=null?{}:O.params},f)}}function te(O,U){const F=d=R(O),G=a.value,f=O.state,g=O.force,b=O.replace===!0,x=he(F,G);if(x)return te(ce(T(x),{state:typeof x=="object"?ce({},f,x.state):f,force:g,replace:b}),U||F);const h=F;h.redirectedFrom=U;let v;return!g&&wu(n,G,F)&&(v=ds(_e.NAVIGATION_DUPLICATED,{to:h,from:G}),Me(G,G,!0,!1)),(v?Promise.resolve(v):fe(h,G)).catch(p=>Et(p)?Et(p,_e.NAVIGATION_GUARD_REDIRECT)?p:at(p):re(p,h,G)).then(p=>{if(p){if(Et(p,_e.NAVIGATION_GUARD_REDIRECT))return te(ce({replace:b},T(p.to),{state:typeof p.to=="object"?ce({},f,p.to.state):f,force:g}),U||h)}else p=Oe(h,G,!0,b,f);return xe(h,G,p),p})}function Q(O,U){const F=N(O,U);return F?Promise.reject(F):Promise.resolve()}function q(O){const U=ct.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(O):O()}function fe(O,U){let F;const[G,f,g]=Fu(O,U);F=Bn(G.reverse(),"beforeRouteLeave",O,U);for(const x of G)x.leaveGuards.forEach(h=>{F.push(Lt(h,O,U))});const b=Q.bind(null,O,U);return F.push(b),je(F).then(()=>{F=[];for(const x of i.list())F.push(Lt(x,O,U));return F.push(b),je(F)}).then(()=>{F=Bn(f,"beforeRouteUpdate",O,U);for(const x of f)x.updateGuards.forEach(h=>{F.push(Lt(h,O,U))});return F.push(b),je(F)}).then(()=>{F=[];for(const x of g)if(x.beforeEnter)if(lt(x.beforeEnter))for(const h of x.beforeEnter)F.push(Lt(h,O,U));else F.push(Lt(x.beforeEnter,O,U));return F.push(b),je(F)}).then(()=>(O.matched.forEach(x=>x.enterCallbacks={}),F=Bn(g,"beforeRouteEnter",O,U,q),F.push(b),je(F))).then(()=>{F=[];for(const x of r.list())F.push(Lt(x,O,U));return F.push(b),je(F)}).catch(x=>Et(x,_e.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function xe(O,U,F){l.list().forEach(G=>q(()=>G(O,U,F)))}function Oe(O,U,F,G,f){const g=N(O,U);if(g)return g;const b=U===Dt,x=as?history.state:{};F&&(G||b?o.replace(O.fullPath,ce({scroll:b&&x&&x.scroll},f)):o.push(O.fullPath,f)),a.value=O,Me(O,U,F,b),at()}let $e;function Ct(){$e||($e=o.listen((O,U,F)=>{if(!Ze.listening)return;const G=R(O),f=he(G,Ze.currentRoute.value);if(f){te(ce(f,{replace:!0,force:!0}),G).catch(As);return}d=G;const g=a.value;as&&Tu(bi(g.fullPath,F.delta),kn()),fe(G,g).catch(b=>Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_CANCELLED)?b:Et(b,_e.NAVIGATION_GUARD_REDIRECT)?(te(ce(T(b.to),{force:!0}),G).then(x=>{Et(x,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===io.pop&&o.go(-1,!1)}).catch(As),Promise.reject()):(F.delta&&o.go(-F.delta,!1),re(b,G,g))).then(b=>{b=b||Oe(G,g,!1),b&&(F.delta&&!Et(b,_e.NAVIGATION_CANCELLED)?o.go(-F.delta,!1):F.type===io.pop&&Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),xe(G,g,b)}).catch(As)}))}let Ge=vs(),pe=vs(),X;function re(O,U,F){at(O);const G=pe.list();return G.length?G.forEach(f=>f(O,U,F)):console.error(O),Promise.reject(O)}function Xe(){return X&&a.value!==Dt?Promise.resolve():new Promise((O,U)=>{Ge.add([O,U])})}function at(O){return X||(X=!O,Ct(),Ge.list().forEach(([U,F])=>O?F(O):U()),Ge.reset()),O}function Me(O,U,F,G){const{scrollBehavior:f}=e;if(!as||!f)return Promise.resolve();const g=!F&&Ou(bi(O.fullPath,0))||(G||!F)&&history.state&&history.state.scroll||null;return Vs().then(()=>f(O,U,g)).then(b=>b&&Ru(b)).catch(b=>re(b,O,U))}const Ee=O=>o.go(O);let Nt;const ct=new Set,Ze={currentRoute:a,listening:!0,addRoute:_,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:V,getRoutes:M,resolve:R,options:e,push:L,replace:H,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:i.add,beforeResolve:r.add,afterEach:l.add,onError:pe.add,isReady:Xe,install(O){O.component("RouterLink",Qt),O.component("RouterView",vl),O.config.globalProperties.$router=Ze,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),as&&!Nt&&a.value===Dt&&(Nt=!0,L(o.location).catch(G=>{}));const U={};for(const G in Dt)Object.defineProperty(U,G,{get:()=>a.value[G],enumerable:!0});O.provide(Eo,Ze),O.provide(hl,dr(U)),O.provide(lo,a);const F=O.unmount;ct.add(O),O.unmount=function(){ct.delete(O),ct.size<1&&(d=Dt,$e&&$e(),$e=null,a.value=Dt,Nt=!1,X=!1),F()}}};function je(O){return O.reduce((U,F)=>U.then(()=>q(F)),Promise.resolve())}return Ze}class uf{constructor(t=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws`){Wt(this,"socket");Wt(this,"attempts",0);Wt(this,"timer");Wt(this,"handlers",new Set);Wt(this,"stateHandlers",new Set);Wt(this,"reconnectAfterResync");this.url=t}onMessage(t){return this.handlers.add(t),()=>this.handlers.delete(t)}onConnectionChange(t){return this.stateHandlers.add(t),()=>this.stateHandlers.delete(t)}onResync(t){this.reconnectAfterResync=()=>void t()}connect(){var s;clearTimeout(this.timer),(s=this.socket)==null||s.close();const t=new WebSocket(this.url);this.socket=t,t.onopen=()=>{var n;this.attempts=0,this.stateHandlers.forEach(o=>o(!0)),(n=this.reconnectAfterResync)==null||n.call(this)},t.onmessage=n=>{try{const o=JSON.parse(n.data);this.handlers.forEach(i=>i(o))}catch{}},t.onclose=()=>{this.stateHandlers.forEach(o=>o(!1)),this.attempts+=1;const n=Math.min(15e3,1e3*2**(this.attempts-1));this.timer=window.setTimeout(()=>this.connect(),n)},t.onerror=()=>t.close()}}let $i;function Ao(){return $i??($i=new uf),$i}class Ro extends Error{constructor(t,s,n,o){super(n),this.status=t,this.code=s,this.details=o,this.name="ApiError"}}async function Te(e,t){const s=await fetch(e,{...t,headers:{"content-type":"application/json",...(t==null?void 0:t.headers)??{}}}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Ro(s.status,o.code??"UNKNOWN_ERROR",o.message??"请求失败",o.details)}return n}async function Mi(e){const t=new URLSearchParams({filename:e.name}),s=await fetch(`/api/uploads?${t}`,{method:"POST",headers:{"content-type":"application/octet-stream"},body:e}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"上传响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Ro(s.status,o.code??"UNKNOWN_ERROR",o.message??"文件上传失败",o.details)}return n}const Se={doctor:()=>Te("/api/doctor"),recheckDoctor:()=>Te("/api/doctor/recheck",{method:"POST"}),install:e=>Te(`/api/doctor/install/${e}`,{method:"POST"}),uninstall:e=>Te(`/api/doctor/uninstall/${e}`,{method:"POST"}),features:()=>Te("/api/features"),tasks:()=>Te("/api/tasks"),revealTask:e=>Te(`/api/tasks/${e}/reveal`,{method:"POST"}),revealPath:e=>Te("/api/reveal",{method:"POST",body:JSON.stringify({path:e})}),wxStatus:()=>Te("/api/wx/status"),version:()=>Te("/api/version"),wxActivate:e=>Te("/api/wx/activate",{method:"POST",body:JSON.stringify({token:e})}),deleteHistory:e=>Te(`/api/history/${e}`,{method:"DELETE"}),clearHistory:()=>Te("/api/history/clear",{method:"POST"}),serviceStop:()=>Te("/api/service/stop",{method:"POST"}),settings:()=>Te("/api/settings"),selectOutputDir:()=>Te("/api/settings/select-output-dir",{method:"POST"}),saveSettings:e=>Te("/api/settings",{method:"POST",body:JSON.stringify(e)}),convert:e=>Te("/api/convert",{method:"POST",body:JSON.stringify(e)})},To=Hs("doctor",{state:()=>({statuses:[],loading:!1,connected:!0,error:"",installSession:{state:"idle",logs:[]}}),getters:{readyCount:e=>e.statuses.filter(t=>t.installed&&t.versionOk).length,usableFeatures:e=>e.statuses.reduce((t,s)=>t+s.features.length,0)},actions:{async load(){this.loading=!0;try{this.statuses=await Se.doctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},async recheck(){this.loading=!0;try{this.statuses=await Se.recheckDoctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},startInstall(e,t){this.startOperation(e,t,"install")},startUninstall(e,t){this.startOperation(e,t,"uninstall")},startOperation(e,t,s){if(this.installSession.state==="progress")throw new Ro(409,"OPERATION_IN_PROGRESS","已有依赖操作进行中");this.installSession={depId:e,state:"progress",logs:[t]},(s==="install"?Se.install(e):Se.uninstall(e)).catch(n=>{this.installSession={depId:e,state:"failed",logs:[t,`操作未启动:${n.message}`],error:{depId:e,exitCode:1,stderrTail:n.message}}})},applyProgress(e){this.installSession.depId===e.depId&&("line"in e&&this.installSession.logs.push(e.line),this.installSession.logs.length>1e3&&this.installSession.logs.shift())},applyDone(e){this.statuses=e,this.installSession.state="done"},applyFailure(e){if(this.installSession.depId&&this.installSession.depId!==e.depId)return;const t=e.stderrTail.split(/\r?\n/).filter(s=>s.trim());this.installSession={depId:e.depId,state:"failed",logs:[`操作失败(退出码 ${e.exitCode})`,...t],error:e}}}}),Oo=Hs("features",{state:()=>({features:[],loading:!1,error:""}),getters:{available:e=>e.features.filter(t=>t.available),byKey:e=>new Map(e.features.map(t=>[t.key,t]))},actions:{async load(){this.loading=!0;try{this.features=await Se.features(),this.error=""}finally{this.loading=!1}}}}),Po=Hs("tasks",{state:()=>({tasks:[],loading:!1,error:""}),getters:{active:e=>e.tasks.filter(t=>t.status==="queued"||t.status==="running"),history:e=>e.tasks.filter(t=>t.status==="success"||t.status==="failed").slice(0,200)},actions:{async load(){this.loading=!0;try{this.tasks=await Se.tasks(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},upsert(e){const t=this.tasks.findIndex(s=>s.taskId===e.taskId);t<0?this.tasks.unshift(e):this.tasks[t]=e}}}),yl=Hs("settings",{state:()=>({settings:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},form:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},loading:!1,saving:!1,error:""}),actions:{async load(){this.loading=!0;try{this.settings=await Se.settings(),this.form={...this.settings},this.error=""}finally{this.loading=!1}},async save(){const e={...this.form};this.saving=!0;try{this.settings=await Se.saveSettings(this.form),this.form={...this.settings},this.error=""}catch(t){throw this.form=e,this.error=t instanceof Error?t.message:String(t),t}finally{this.saving=!1}}}}),ff=3456,ao=`http://127.0.0.1:${ff}`,df="https://duduer.com";function js(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function Io(){return/Windows|Win32|Win64/i.test(navigator.userAgent)?"windows":"macos"}async function hf(e=1500){const t=new AbortController,s=setTimeout(()=>t.abort(),e);try{return await fetch(`${ao}/api/doctor`,{mode:"no-cors",cache:"no-store",signal:t.signal}),!0}catch{return!1}finally{clearTimeout(s)}}function pf(){return js()?df:location.origin}function $o(e){const t=pf();return e==="macos"?`curl -fsSL ${t}/install.sh | sh`:`irm ${t}/install.ps1 | iex`}function gf(){const e=To(),t=Oo(),s=Po(),n=yl(),o=Ao();async function i(){await Promise.all([e.load(),t.load(),s.load()])}async function r(){await t.load()}function l(a){a.type==="doctor:status"?(e.statuses=a.data,r()):a.type==="task:update"?s.upsert(a.data):a.type==="install:start"||a.type==="install:progress"||a.type==="uninstall:start"||a.type==="uninstall:progress"?e.applyProgress(a.data):a.type==="install:done"||a.type==="uninstall:done"?(e.applyDone(a.data.status),r()):(a.type==="install:fail"||a.type==="uninstall:fail")&&e.applyFailure(a.data)}hs(async()=>{js()&&(o.onMessage(l),o.onConnectionChange(a=>{e.connected=a}),o.onResync(i),o.connect(),await Promise.all([i(),n.load()]))}),bn(()=>{})}const k={appName:"嘟嘟转换器",nav:{home:"首页",workbench:"功能页",history:"转换历史",settings:"设置"},connection:{connected:"已连接本地服务",disconnected:"连接已断开,正在自动重连"},doctor:{title:"依赖与环境",recheck:"重新检测",install:"一键安装",uninstall:"一键卸载",copy:"复制命令",manual:"手动下载",logs:"操作日志",ready:"可用",outdated:"版本过旧",missingRequired:"必需缺失",missingOptional:"可选缺失",sessionRunning:"执行中,请耐心等待…",sessionDone:"✅ 操作完成",sessionFailed:"❌ 操作失败,详情见下方日志"},workbench:{title:"转换工作台",subtitle:"按类型分栏管理,文件入表后逐个或批量转换",dropTitle:"把{tab}文件拖到这里",dropHint:"支持 {exts} 等格式",dropCompact:"继续添加{tab}文件",pastePlaceholder:"粘贴文件绝对路径,回车添加",wrongTab:"{name} 不属于{tab},请切换到对应标签页添加",fileDuplicate:"已在列表中,无需重复添加",addFile:"选择文件",addPath:"添加",convertTo:"批量转换为",noCommonTargets:"当前文件没有共同的转换目标,请清理后分批转换",noTools:"该类别依赖的工具尚未安装,请到「环境检测」页安装后重试",tableFile:"文件名",tablePath:"路径",tableSize:"大小",tableStatus:"状态",tableActions:"操作",statusPending:"待转换",statusRunning:"转换中",statusSuccess:"转换成功",statusFailed:"转换失败",convert:"转换",retry:"重试",openFolder:"打开目录",download:"下载",remove:"移除",clearDone:"清除已完成",batchConvert:"开始批量转换",batchConvertN:"开始批量转换({n} 个)",batchDone:"本次批量转换已完成",paramsTitle:"高级参数",advanced:"高级设置",chooseFile:"选择文件"},history:{title:"转换历史",subtitle:"所有转换任务按时间倒序排列,可随时下载或打开产物",filterAll:"全部",statTotal:"累计任务",statSuccess:"成功",statFailed:"失败",searchPlaceholder:"搜索文件名…",empty:"还没有转换记录,去工作台开始第一次转换吧",today:"今天",yesterday:"昨天",openFolder:"打开目录",download:"下载",remove:"删除",clear:"清空历史"},landing:{heroBadge:"本地转换 · 零上传 · 不限文件大小",heroTitle:"你的文件,",heroAccent:"不必上传",heroTagline:"嘟嘟本地万能转换器:视频、音频、图片、文档在本机一步完成 —— 没有大小限制,没有隐私顾虑,没有漫长等待。",cta:"立即开始转换",ctaInstall:"查看安装指南",localRunning:"转换器已在本机运行,可直接进入功能页",stats:[{value:"22",label:"转换能力"},{value:"40+",label:"支持格式"},{value:"0",label:"文件上传"},{value:"100%",label:"本机运行"}],painTitle:"你是不是也有这些顾虑?",painSub:"嘟嘟把这些通通变成过去。",pains:[{icon:"shield",title:"文件传上去,心里不踏实",text:"合同、证件、家庭影像……一旦上传到陌生服务器,隐私就不再由你掌控。"},{icon:"globe",title:"在线工具处处受限",text:"大小限制、格式缺失、会员付费、广告弹窗,简单转个文件总要妥协。"},{icon:"clock",title:"传上去再下载,来回折腾",text:"大文件先上传一小时,转换完再下载一小时,网速决定了心情。"}],valueTitle:"换一种方式转换文件",valueSub:"本机运行带来的三个直接好处",values:[{icon:"shield-check",title:"文件不出你的电脑",text:"所有解析与转换都在本机完成,不经任何服务器,隐私天然无忧。"},{icon:"package-plus",title:"缺什么,一键装什么",text:"首次使用自动体检环境,FFmpeg 等引擎在页面里点一下即可安装。"},{icon:"zap",title:"装完即用,秒级开始",text:"一条命令安装,浏览器自动打开操作界面,拖入文件立刻出结果。"}],scenesTitle:"这些瞬间,嘟嘟都帮得上忙",scenesSub:"来自日常使用的高频场景",scenes:[{icon:"video",title:"网课录屏瘦身",text:"几个 G 的课程录像压成几百 MB,备份分享都不再犯难"},{icon:"image",title:"聊天图片压缩",text:"手机原图一张 8MB,压完不到 1MB,清晰度几乎不变"},{icon:"pdf",title:"发票合并归档",text:"几十张发票 PDF 按顺序合并成一个文件,报销不再手忙脚乱"},{icon:"sparkles",title:"表情包制作",text:"精彩片段一键做成 GIF 动图,斗图弹药永远充足"},{icon:"markdown",title:"简历笔记定稿",text:"Markdown 写完一键转 Word / PDF,排版不乱直接发"},{icon:"shield",title:"证件照脱敏外发",text:"身份证扫描件加水印或加密,发给陌生方也更安心"}],featuresTitle:"覆盖你日常的每一类文件",featuresSub:"22 类能力 · 40+ 种格式,全部本机完成",compareTitle:"和在线转换工具比一比",compareSub:"同样的转换,不同的体验",compare:[{item:"文件隐私",online:"上传到陌生服务器",local:"全程留在你的电脑里"},{item:"文件大小",online:"免费版普遍限制 100MB",local:"无任何限制"},{item:"转换速度",online:"上传 + 下载双倍耗时",local:"直接读写本地磁盘"},{item:"批量处理",online:"多数按次收费",local:"免费,支持批量队列"},{item:"网络依赖",online:"必须联网上传",local:"断网也能正常转换"}],faqTitle:"常见问题",faqSub:"关于嘟嘟的几个高频疑问",faq:[{q:"我的文件会被上传吗?",a:"不会。嘟嘟完全运行在你自己的电脑上,转换过程不经过任何服务器,即使断网也能正常转换。"},{q:"需要付费吗?",a:"免费使用:无功能限制、无水印、无次数限制,也不需要注册账号。"},{q:"转换用的引擎需要自己装吗?",a:"不用自己找教程。首次使用某类能力时,应用会自动检测缺失的引擎,在「设置 → 依赖与环境」里点一下即可安装,全程图形化操作。"},{q:"支持 Windows 吗?",a:"支持。macOS 12+ 与 Windows 10/11 均可使用,安装命令在首页首屏即可一键复制。"},{q:"大文件会很慢或卡住吗?",a:"转换在本地队列并发执行(1–4 个可调),大文件只是耗时更长,不会占用云端额度,也不影响电脑其他操作。"}],footer:"嘟嘟转换器 · 本地优先的文件转换工具 · 文件永不上传"},install:{title:"安装转换器",step1:"打开终端",step2:"粘贴以下命令并回车",step3:"等待安装完成,浏览器会自动打开转换器",macos:"macOS",windows:"Windows",copy:"复制",copied:"已复制",macosTerminal:"按 ⌘+空格 打开聚焦搜索,输入「终端」或「Terminal」,回车打开",windowsTerminal:"点击开始菜单,输入「PowerShell」,回车打开",alreadyInstalled:"已经安装过?再次执行此命令会自动升级到新版本",manualTitle:"自动安装失败?手动安装",manualSteps:[{title:"安装 Node.js",text:"打开 nodejs.org 下载 Node.js 18 或更高版本,双击安装(保持默认选项)"},{title:"安装嘟嘟转换器",text:"打开终端(macOS:终端;Windows:PowerShell),执行 npm install -g dudu-converter-cli"},{title:"启动服务",text:"执行 converter start,浏览器访问 http://127.0.0.1:3456"}],startHint:"如果已经安装但未运行:在终端执行 converter start 启动后,回到此页重新检测"},gate:{checking:"正在检测本地转换器…",online:"已检测到本地转换器正在运行",open:"打开本地转换器",offline:"未检测到本地转换器",installedTitle:"转换器已安装,但服务未运行",manualTitle:"手动启动(一行命令)",manualHint:"复制命令 → 打开终端粘贴回车;若已开启开机自启,重启电脑也会自动运行",retry:"重新检测",notInstalledTitle:"尚未安装?查看安装步骤"},settings:{title:"设置",preferences:"应用设置",autostart:"开机自动启动",outputDir:"输出目录",chooseDir:"选择文件夹",concurrency:"并发数",language:"界面语言",save:"保存设置",saved:"设置已保存",service:"服务管理",serviceRunning:"转换服务运行中",stopService:"停止服务",stopConfirm:`确定停止转换服务吗?
|
|
31
|
-
停止后转换功能不可用;已开启的开机自启会在下次重启电脑时自动运行服务。`,serviceStopped:"转换服务已停止",stoppedGuide:"重新启动:在终端执行下方命令;若已开启开机自启,重启电脑后服务也会自动运行。",startCommand:"converter start"},update:{banner:"发现新版本 v{latest}(当前 v{current}),建议升级获得最新功能与修复",copy:"复制升级命令",copied:"已复制,打开终端粘贴即可",how:"如何升级",dismiss:"暂不提醒",steps:["点击「复制升级命令」,打开终端粘贴并回车(macOS 用终端,Windows 用 PowerShell)","升级完成后执行 converter start 重新启动服务(若服务正在运行,先执行 converter stop)","刷新浏览器页面即可"]},common:{retry:"重试",close:"关闭",loading:"加载中…",save:"保存",cancel:"取消"}},mf={video:["M3 5.5A2.5 2.5 0 0 1 5.5 3h13A2.5 2.5 0 0 1 21 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18.5z","M7 3v18","M17 3v18","M3 12h18"],music:["M9 18V5l12-2v13","M3 18a3 3 0 1 0 6 0 3 3 0 1 0-6 0","M15 16a3 3 0 1 0 6 0 3 3 0 1 0-6 0"],image:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z","M7 9a2 2 0 1 0 4 0 2 2 0 1 0-4 0","m21 15-4.6-4.6a2 2 0 0 0-2.8 0L4 20"],archive:["M3 3h18v5H3z","M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8","M10 12h4"],office:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5","M9 13h6","M9 17h6","M9 9h1"],pdf:["M12 7v14","M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"],markdown:["M12 20h9","M16.4 3.6a1.4 1.4 0 0 1 2 2L7.5 16.5a2 2 0 0 1-.9.5l-2.8.8a.5.5 0 0 1-.6-.6l.8-2.8a2 2 0 0 1 .5-.9z"],shield:["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"],"shield-check":["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z","m9 12 2 2 4-4"],"package-plus":["M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z","M3.3 7 12 12l8.7-5","M12 22V12","M19 13v6","M16 16h6"],zap:["M4 14a1 1 0 0 1-.8-1.6l9.9-10.2a.5.5 0 0 1 .9.5l-1.9 6a1 1 0 0 0 1 1.3h7a1 1 0 0 1 .7 1.6l-9.9 10.2a.5.5 0 0 1-.9-.5l1.9-6a1 1 0 0 0-.9-1.3z"],globe:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M2 12h20","M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10 15 15 0 0 1 4-10z"],clock:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 6v6l4 2"],"check-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m9 12 2 2 4-4"],"x-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m15 9-6 6","m9 9 6 6"],"minus-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M8 12h8"],"alert-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 8v4","M12 16h.01"],copy:["M10 8h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],"external-link":["M15 3h6v6","M10 14 21 3","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],refresh:["M3 12a9 9 0 0 1 15.7-6","M21 3v5h-5","M21 12a9 9 0 0 1-15.7 6","M3 21v-5h5"],upload:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 8 5-5 5 5","M12 3v12"],download:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 10 5 5 5-5","M12 15V3"],plus:["M5 12h14","M12 5v14"],x:["M18 6 6 18","m6 6 12 12"],settings:["M4 6h6","M14 6h6","M4 12h10","M18 12h2","M4 18h4","M12 18h8","M10 4v4","M14 10v4","M8 16v4"],terminal:["m4 17 6-6-6-6","M12 19h8"],"arrow-right":["M5 12h14","m12 5 7 7-7 7"],"chevron-down":["m6 9 6 6 6-6"],file:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5"],folder:["M11 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7l-2-2z"],sparkles:["M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z","M19 17v4","M21 19h-4","M5 3v2","M4 4h2"],repeat:["m17 2 4 4-4 4","M3 11v-1a4 4 0 0 1 4-4h14","m7 22-4-4 4-4","M21 13v1a4 4 0 0 1-4 4H3"]},_l={video:"video",audio:"music",image:"image",archive:"archive",office:"office",pdf:"pdf",markdown:"markdown"},vf=["width","height"],yf=["d"],_f=He({__name:"AppIcon",props:{name:{},size:{default:20}},setup(e){const t=e;return(s,n)=>(A(),I("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",class:"app-icon"},[(A(!0),I(ne,null,ke(y(mf)[t.name],(o,i)=>(A(),I("path",{key:i,d:o},null,8,yf))),128))],8,vf))}}),Qe=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s},J=Qe(_f,[["__scopeId","data-v-84fb32bd"]]),bl=Hs("version",{state:()=>({status:{current:"",latest:"",updateAvailable:!1},dismissed:!1,loaded:!1}),getters:{visible:e=>e.status.updateAvailable&&!e.dismissed},actions:{async load(){try{this.status=await Se.version()}catch{}finally{this.loaded=!0}},listenWs(){Ao().onMessage(e=>{e.type==="update:available"&&(this.status=e.data,this.dismissed=!1)})},dismiss(){this.dismissed=!0}}}),bf={key:0,class:"update-banner","data-testid":"update-banner"},wf={class:"banner-text"},Sf=["title"],xf={key:0,class:"banner-detail"},Cf=He({__name:"UpdateBanner",setup(e){const t=bl(),s=se(Io()),n=se(!1),o=se(!1),i=se($o(s.value));async function r(){try{await navigator.clipboard.writeText(i.value),n.value=!0,setTimeout(()=>{n.value=!1},2500)}catch{}}return(l,a)=>y(t).visible?(A(),I("div",bf,[B(J,{name:"sparkles",size:15}),u("span",wf,S(y(k).update.banner.replace("{latest}",y(t).status.latest).replace("{current}",y(t).status.current)),1),u("button",{class:ye(["copy",{ok:n.value}]),type:"button",onClick:r},[B(J,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),j(" "+S(n.value?y(k).update.copied:y(k).update.copy),1)],2),u("button",{class:"how",type:"button",onClick:a[0]||(a[0]=d=>o.value=!o.value)},[j(S(y(k).update.how),1),B(J,{name:"chevron-down",size:13,class:ye({open:o.value})},null,8,["class"])]),u("button",{class:"close",type:"button",title:y(k).update.dismiss,onClick:a[1]||(a[1]=d=>y(t).dismiss())},[B(J,{name:"x",size:13})],8,Sf),o.value?(A(),I("div",xf,[u("ol",null,[(A(!0),I(ne,null,ke(y(k).update.steps,(d,c)=>(A(),I("li",{key:d},S(c+1)+". "+S(d),1))),128))])])):ee("",!0)])):ee("",!0)}}),kf=Qe(Cf,[["__scopeId","data-v-69c975e5"]]),Ef={class:"app-shell"},Af={class:"app-header"},Rf=He({__name:"App",setup(e){gf();const t=To(),s=js(),n=bl();return s&&(n.listenWs(),n.load()),(o,i)=>(A(),I("div",Ef,[u("header",Af,[B(y(Qt),{to:"/",class:"brand"},{default:Yt(()=>[i[0]||(i[0]=u("span",{class:"logo"},"嘟",-1)),u("strong",null,S(y(k).appName),1)]),_:1}),u("nav",null,[B(y(Qt),{to:"/"},{default:Yt(()=>[j(S(y(k).nav.home),1)]),_:1}),B(y(Qt),{to:"/workbench"},{default:Yt(()=>[j(S(y(k).nav.workbench),1)]),_:1}),y(s)?(A(),nt(y(Qt),{key:0,to:"/history"},{default:Yt(()=>[j(S(y(k).nav.history),1)]),_:1})):ee("",!0),y(s)?(A(),nt(y(Qt),{key:1,to:"/settings"},{default:Yt(()=>[j(S(y(k).nav.settings),1)]),_:1})):ee("",!0)]),y(s)?(A(),I("span",{key:0,class:ye(["connection",{offline:!y(t).connected}])},[i[1]||(i[1]=u("i",{class:"dot"},null,-1)),j(S(y(t).connected?y(k).connection.connected:y(k).connection.disconnected),1)],2)):ee("",!0)]),u("main",null,[y(s)?(A(),nt(kf,{key:0})):ee("",!0),B(y(vl))])]))}}),Tf=Qe(Rf,[["__scopeId","data-v-e736b31c"]]),Of={class:"history","data-testid":"history"},Pf={class:"page-title"},If={class:"page-subtitle"},$f={class:"toolbar"},Mf={class:"filters"},Nf=["onClick"],Df={class:"toolbar-right"},Ff={class:"search"},Vf=["placeholder"],Lf={key:0,class:"hint-alert"},Hf={key:1,class:"panel empty"},jf={class:"day-head"},Uf={class:"panel day-list"},Bf={class:"item-main"},zf={class:"item-title"},Kf=["title"],Wf={class:"arrow"},Gf={class:"target"},qf={class:"item-meta"},Jf={class:"error-text"},Yf={key:0,class:"spinner tiny"},Qf={class:"item-actions"},Xf=["onClick"],Zf=["title","onClick"],ed=He({__name:"HistoryView",setup(e){const t=Po(),s=Oo(),n=se("all"),o=se("");hs(()=>{t.load(),s.load()});const i=oe(()=>({total:t.tasks.length,success:t.tasks.filter(R=>R.status==="success").length,failed:t.tasks.filter(R=>R.status==="failed").length})),r=oe(()=>t.tasks.filter(R=>!(n.value!=="all"&&R.status!==n.value||o.value.trim()&&!R.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort((R,T)=>T.startedAt.localeCompare(R.startedAt))),l=se("");async function a(R){l.value="";try{await Se.revealTask(R.taskId)}catch(T){l.value=T instanceof Error?T.message:"打开目录失败"}}async function d(R){l.value="";try{await Se.deleteHistory(R),await t.load()}catch(T){t.error=T instanceof Error?T.message:"删除失败"}}async function c(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await Se.clearHistory(),await t.load()}catch(R){t.error=R instanceof Error?R.message:"清空失败"}}function m(R){const T=new Date(R);if(Number.isNaN(T.getTime()))return"";const N=new Date,L=te=>new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime(),H=Math.round((L(N)-L(T))/864e5);return H<=0?k.history.today:H===1?k.history.yesterday:T.getFullYear()===N.getFullYear()?`${T.getMonth()+1} 月 ${T.getDate()} 日`:`${T.getFullYear()} 年 ${T.getMonth()+1} 月 ${T.getDate()} 日`}const w=oe(()=>{const R=new Map;for(const T of r.value){const N=m(T.startedAt),L=R.get(N);L?L.push(T):R.set(N,[T])}return[...R.entries()]});function _(R){const T=new Date(R);return Number.isNaN(T.getTime())?"":`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`}function $(R){return R.split(/[\\/]/).pop()??R}function M(R){var N;const T=(N=s.byKey.get(R.conversionKey))==null?void 0:N.category;return _l[T??"file"]??"file"}function V(R){var T;return((T=s.byKey.get(R.conversionKey))==null?void 0:T.label)??R.conversionKey}return(R,T)=>(A(),I("section",Of,[u("h1",Pf,S(y(k).history.title),1),u("p",If,S(y(k).history.subtitle),1),u("div",$f,[u("div",Mf,[(A(!0),I(ne,null,ke([{key:"all",label:y(k).history.filterAll,count:i.value.total},{key:"success",label:y(k).history.statSuccess,count:i.value.success},{key:"failed",label:y(k).history.statFailed,count:i.value.failed}],N=>(A(),I("button",{key:N.key,type:"button",class:ye(["filter-chip",{active:n.value===N.key}]),onClick:L=>n.value=N.key},[j(S(N.label)+" ",1),u("em",null,S(N.count),1)],10,Nf))),128))]),u("div",Df,[u("div",Ff,[B(J,{name:"file",size:14}),Pt(u("input",{"onUpdate:modelValue":T[0]||(T[0]=N=>o.value=N),type:"text",placeholder:y(k).history.searchPlaceholder},null,8,Vf),[[Ut,o.value]])]),y(t).tasks.length?(A(),I("button",{key:0,class:"ghost danger",type:"button",onClick:c},[B(J,{name:"x",size:13}),j(S(y(k).history.clear),1)])):ee("",!0)])]),l.value?(A(),I("p",Lf,[B(J,{name:"alert-circle",size:15}),j(S(l.value),1)])):ee("",!0),r.value.length?ee("",!0):(A(),I("div",Hf,[B(J,{name:"folder",size:36}),u("span",null,S(y(k).history.empty),1)])),(A(!0),I(ne,null,ke(w.value,([N,L])=>(A(),I("div",{key:N,class:"day-group"},[u("div",jf,[j(S(N),1),u("em",null,S(L.length)+" 条",1)]),u("div",Uf,[(A(!0),I(ne,null,ke(L,H=>(A(),I("article",{key:H.taskId,class:"history-item"},[u("span",{class:ye(["item-icon",H.status])},[B(J,{name:M(H),size:18},null,8,["name"])],2),u("div",Bf,[u("div",zf,[u("strong",{title:H.input},S($(H.input)),9,Kf),u("span",Wf,[B(J,{name:"arrow-right",size:13})]),u("span",Gf,S(H.targetFormat.toUpperCase()),1)]),u("div",qf,[j(S(V(H))+" · "+S(_(H.startedAt))+S(H.durationMs?` · ${H.durationMs} ms`:"")+" ",1),H.error?(A(),I(ne,{key:0},[T[1]||(T[1]=j(" · ",-1)),u("span",Jf,S(H.error.message),1)],64)):ee("",!0)])]),u("span",{class:ye(["badge row-badge",H.status])},[H.status==="running"?(A(),I("span",Yf)):ee("",!0),j(" "+S(H.status==="success"?y(k).workbench.statusSuccess:H.status==="failed"?y(k).workbench.statusFailed:H.status==="running"?y(k).workbench.statusRunning:y(k).workbench.statusPending),1)],2),u("div",Qf,[H.status==="success"?(A(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:he=>a(H)},[B(J,{name:"folder",size:13}),j(S(y(k).history.openFolder),1)],8,Xf)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(k).history.remove,onClick:he=>d(H.taskId)},[B(J,{name:"x",size:14})],8,Zf)])]))),128))])]))),128))]))}}),td=Qe(ed,[["__scopeId","data-v-b299457c"]]),sd={class:"landing","data-testid":"landing"},nd={class:"hero"},od={class:"hero-grid"},id={class:"hero-copy"},rd={class:"hero-badge"},ld={class:"tagline"},ad={class:"cta-row"},cd={key:0,class:"local-badge"},ud={class:"terminal-card","data-testid":"install-guide"},fd={class:"term-head"},dd={class:"term-pills"},hd={class:"term-body"},pd={class:"command-row"},gd={"data-testid":"install-command"},md={class:"stats"},vd={class:"section"},yd={class:"section-sub"},_d={class:"pain-grid"},bd={class:"icon pain"},wd={class:"section"},Sd={class:"section-sub"},xd={class:"value-grid"},Cd={class:"icon value"},kd={class:"section"},Ed={class:"section-sub"},Ad={class:"scene-grid"},Rd={class:"icon scene"},Td={id:"features",class:"section"},Od={class:"section-sub"},Pd={class:"category-grid"},Id={class:"icon cat"},$d={class:"cat-body"},Md={class:"section"},Nd={class:"section-sub"},Dd={class:"table-wrap"},Fd={class:"compare-table"},Vd={class:"c-item"},Ld={class:"c-online"},Hd={class:"c-local"},jd={class:"section"},Ud={class:"section-sub"},Bd={class:"faq"},zd={class:"landing-footer muted"},Kd=He({__name:"LandingView",setup(e){const t=js(),s=se(Io()),n=oe(()=>$o(s.value)),o=se(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}function r(){var a;(a=document.getElementById("features"))==null||a.scrollIntoView({behavior:"smooth",block:"start"})}const l=[{icon:"video",title:"视频",lines:["格式转换 · 压缩 · 延迟摄影","MP4 · AVI · MKV · MOV · WebM"]},{icon:"music",title:"音频",lines:["格式转换 · 提取 · 压缩","MP3 · AAC · WAV · FLAC"]},{icon:"image",title:"图片",lines:["格式 · 缩放 · 压缩 · 水印","JPG · PNG · WebP · HEIC · AVIF"]},{icon:"archive",title:"压缩包",lines:["文件压缩 · 解压","7z · Zip"]},{icon:"office",title:"Office 文档",lines:["转 PDF / HTML · 家族互转","Word · Excel · PowerPoint"]},{icon:"pdf",title:"PDF",lines:["转图片文本 · 合并拆分 · 规则拆分","全套 PDF 处理"]},{icon:"markdown",title:"Markdown",lines:["互转 Word / HTML / PDF","写作发布一步到位"]}];return(a,d)=>(A(),I("section",sd,[u("div",nd,[u("div",od,[u("div",id,[u("span",rd,[B(J,{name:"sparkles",size:14}),j(S(y(k).landing.heroBadge),1)]),u("h1",null,[j(S(y(k).landing.heroTitle),1),u("em",null,S(y(k).landing.heroAccent),1)]),u("p",ld,S(y(k).landing.heroTagline),1),u("div",ad,[B(y(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[j(S(y(k).landing.cta),1),B(J,{name:"arrow-right",size:16})]),_:1}),u("button",{class:"btn ghost",type:"button",onClick:r},[d[2]||(d[2]=j("了解功能",-1)),B(J,{name:"chevron-down",size:15})])]),y(t)?(A(),I("p",cd,[B(J,{name:"check-circle",size:14}),j(S(y(k).landing.localRunning),1)])):ee("",!0)]),u("div",ud,[u("div",fd,[d[3]||(d[3]=u("span",{class:"dots","aria-hidden":"true"},[u("i"),u("i"),u("i")],-1)),d[4]||(d[4]=u("strong",null,"一键安装嘟嘟转换器 · 全程约 1 分钟",-1)),u("div",dd,[u("button",{type:"button",class:ye({active:s.value==="macos"}),onClick:d[0]||(d[0]=c=>s.value="macos")},"macOS",2),u("button",{type:"button",class:ye({active:s.value==="windows"}),onClick:d[1]||(d[1]=c=>s.value="windows")},"Windows",2)])]),u("div",hd,[u("div",pd,[u("code",gd,[d[5]||(d[5]=u("span",{class:"prompt"},"$",-1)),j(S(n.value),1)])]),u("button",{class:ye(["one-click",{ok:o.value}]),type:"button","data-testid":"install-copy",onClick:i},[B(J,{name:o.value?"check-circle":"copy",size:15},null,8,["name"]),j(" "+S(o.value?"已复制!打开终端粘贴回车即可":"一键复制安装命令"),1)],2),d[6]||(d[6]=u("ol",{class:"term-steps"},[u("li",null,[u("span",null,"1"),j("点击上方按钮复制安装命令")]),u("li",null,[u("span",null,"2"),j("打开终端粘贴并回车(macOS:⌘+空格 搜「终端」;Windows:开始菜单搜 PowerShell)")]),u("li",null,[u("span",null,"3"),j("安装全自动完成,浏览器自动打开转换器")])],-1))])])]),u("div",md,[(A(!0),I(ne,null,ke(y(k).landing.stats,c=>(A(),I("div",{key:c.label,class:"stat"},[u("strong",null,S(c.value),1),u("span",null,S(c.label),1)]))),128))])]),u("div",vd,[u("h2",null,S(y(k).landing.painTitle),1),u("p",yd,S(y(k).landing.painSub),1),u("div",_d,[(A(!0),I(ne,null,ke(y(k).landing.pains,c=>(A(),I("article",{key:c.title,class:"pain-card"},[u("span",bd,[B(J,{name:c.icon,size:21},null,8,["name"])]),u("div",null,[u("strong",null,S(c.title),1),u("p",null,S(c.text),1)])]))),128))])]),u("div",wd,[u("h2",null,S(y(k).landing.valueTitle),1),u("p",Sd,S(y(k).landing.valueSub),1),u("div",xd,[(A(!0),I(ne,null,ke(y(k).landing.values,c=>(A(),I("article",{key:c.title,class:"value-card"},[u("span",Cd,[B(J,{name:c.icon,size:23},null,8,["name"])]),u("strong",null,S(c.title),1),u("p",null,S(c.text),1)]))),128))])]),u("div",kd,[u("h2",null,S(y(k).landing.scenesTitle),1),u("p",Ed,S(y(k).landing.scenesSub),1),u("div",Ad,[(A(!0),I(ne,null,ke(y(k).landing.scenes,c=>(A(),I("article",{key:c.title,class:"scene-card"},[u("span",Rd,[B(J,{name:c.icon,size:20},null,8,["name"])]),u("div",null,[u("strong",null,S(c.title),1),u("p",null,S(c.text),1)])]))),128))])]),u("div",Td,[u("h2",null,S(y(k).landing.featuresTitle),1),u("p",Od,S(y(k).landing.featuresSub),1),u("div",Pd,[(A(),I(ne,null,ke(l,c=>u("article",{key:c.title,class:"category-card"},[u("span",Id,[B(J,{name:c.icon,size:21},null,8,["name"])]),u("div",$d,[u("strong",null,S(c.title),1),u("p",null,S(c.lines[0]),1),u("small",null,S(c.lines[1]),1)])])),64))])]),u("div",Md,[u("h2",null,S(y(k).landing.compareTitle),1),u("p",Nd,S(y(k).landing.compareSub),1),u("div",Dd,[u("table",Fd,[d[7]||(d[7]=u("thead",null,[u("tr",null,[u("th",null,"对比项"),u("th",null,"在线转换工具"),u("th",null,"嘟嘟转换器")])],-1)),u("tbody",null,[(A(!0),I(ne,null,ke(y(k).landing.compare,c=>(A(),I("tr",{key:c.item},[u("td",Vd,S(c.item),1),u("td",Ld,S(c.online),1),u("td",Hd,[B(J,{name:"check-circle",size:14}),j(S(c.local),1)])]))),128))])])])]),u("div",jd,[u("h2",null,S(y(k).landing.faqTitle),1),u("p",Ud,S(y(k).landing.faqSub),1),u("div",Bd,[(A(!0),I(ne,null,ke(y(k).landing.faq,c=>(A(),I("details",{key:c.q,class:"faq-item"},[u("summary",null,[j(S(c.q),1),B(J,{name:"chevron-down",size:15})]),u("p",null,S(c.a),1)]))),128))])]),u("footer",zd,S(y(k).landing.footer),1)]))}}),Wd=Qe(Kd,[["__scopeId","data-v-63ba655a"]]),Gd=He({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,s=oe(()=>k.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(n,o)=>(A(),I("span",{class:ye(["badge",e.state])},S(s.value),3))}}),qd={class:"tool-info"},Jd={class:"title"},Yd={key:0,class:"chip version"},Qd={class:"muted"},Xd={class:"actions"},Zd=["disabled"],eh=["disabled"],th=He({__name:"DependencyRow",props:{status:{},installing:{type:Boolean}},emits:["install","uninstall"],setup(e,{emit:t}){const s=e,n=t;let o;const i=se(!1);async function r(){s.status.installCommand&&(await navigator.clipboard.writeText(s.status.installCommand),i.value=!0,clearTimeout(o),o=window.setTimeout(()=>{i.value=!1},2e3))}return(l,a)=>(A(),I("article",{class:ye(["dependency-row",`is-${e.status.state}`])},[u("div",qd,[u("div",Jd,[u("strong",null,S(e.status.name),1),B(Gd,{state:e.status.state},null,8,["state"]),e.status.version?(A(),I("span",Yd,S(e.status.version),1)):ee("",!0)]),u("p",Qd,S(e.status.description),1)]),u("div",Xd,[e.status.installCommand&&(!e.status.installed||e.status.state==="outdated")?(A(),I("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>n("install",e.status))},S(y(k).doctor.install),9,Zd)):ee("",!0),e.status.installCommand?(A(),I("button",{key:1,class:"ghost",onClick:r},S(i.value?y(k).install.copied:y(k).doctor.copy),1)):ee("",!0),e.status.installed&&e.status.uninstallCommand?(A(),I("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>n("uninstall",e.status))},S(y(k).doctor.uninstall),9,eh)):ee("",!0)])],2))}}),sh=Qe(th,[["__scopeId","data-v-4d63d8a6"]]),nh=He({__name:"LogStream",props:{logs:{}},setup(e){const t=e,s=se(),n=se(!0);jt(()=>[...t.logs],async()=>{n.value&&(await Vs(),s.value&&(s.value.scrollTop=s.value.scrollHeight))});function o(){const i=s.value;i&&(n.value=i.scrollHeight-i.scrollTop-i.clientHeight<24)}return(i,r)=>(A(),I("div",{ref_key:"container",ref:s,class:"log-stream",onScroll:o},[(A(!0),I(ne,null,ke(e.logs,(l,a)=>(A(),I("p",{key:`${a}-${l}`},S(l),1))),128))],544))}}),oh=Qe(nh,[["__scopeId","data-v-a4d9e36c"]]),ih={class:"settings","data-testid":"settings"},rh={class:"page-title"},lh={class:"panel"},ah={class:"section-head"},ch={key:0,class:"chip running-chip"},uh={key:0,class:"stop-row"},fh=["disabled"],dh={key:0,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},hh={key:1,class:"stopped-card"},ph={class:"muted"},gh={class:"command-row"},mh={class:"panel"},vh={class:"section-head"},yh=["disabled"],_h={key:1,class:"spinner",style:{width:"14px",height:"14px"}},bh={class:"summary-card"},wh={class:"summary-text"},Sh={class:"summary-bar bar"},xh={key:0,class:"alert"},Ch={class:"dep-list"},kh={key:1,class:"install-session"},Eh={key:0,class:"spinner",style:{width:"13px",height:"13px"}},Ah={class:"section-head"},Rh={class:"field"},Th={class:"directory-editor"},Oh=["disabled"],Ph={key:1,class:"spinner",style:{width:"13px",height:"13px"}},Ih={class:"field"},$h={class:"concurrency"},Mh={class:"field"},Nh={key:0,class:"error"},Dh={key:1,class:"saved"},Fh={class:"actions"},Vh=["disabled"],Lh={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},Hh=He({__name:"SettingsView",setup(e){const t=To(),s=yl(),n=se(!1),o=se(!1),i=se(!1),r=se(!1),l=se(!1);async function a(){try{await navigator.clipboard.writeText(k.settings.startCommand),l.value=!0,setTimeout(()=>{l.value=!1},2e3)}catch{}}async function d(){if(window.confirm(k.settings.stopConfirm)){r.value=!0;try{await Se.serviceStop(),i.value=!0,t.connected=!1}catch(V){s.error=V instanceof Error?V.message:"停止服务失败"}finally{r.value=!1}}}const c=oe(()=>t.installSession.state==="progress"),m=oe(()=>t.statuses.length?Math.round(t.readyCount/t.statuses.length*100):0);function w(V){c.value||!V.installCommand||V.state==="outdated"&&!window.confirm(`${V.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(V.id,V.installCommand)}function _(V){if(c.value||!V.uninstallCommand)return;const R=`确定要卸载 ${V.name} 吗?
|
|
32
|
-
卸载后相关转换功能将不可用。`;window.confirm(R)&&t.startUninstall(V.id,V.uninstallCommand)}async function $(){n.value=!0;try{const V=await Se.selectOutputDir();V.selected&&V.path&&(s.form.outputDir=V.path)}catch(V){s.error=V instanceof Error?V.message:"无法打开目录选择器"}finally{n.value=!1}}async function M(){try{await s.save(),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(V,R)=>(A(),I("section",ih,[u("h1",rh,S(y(k).settings.title),1),R[13]||(R[13]=u("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),u("div",lh,[u("div",ah,[u("div",null,[u("h2",null,S(y(k).settings.service),1),R[5]||(R[5]=u("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),i.value?ee("",!0):(A(),I("span",ch,[R[6]||(R[6]=u("span",{class:"dot"},null,-1)),j(S(y(k).settings.serviceRunning),1)]))]),i.value?(A(),I("div",hh,[u("p",null,[B(J,{name:"check-circle",size:15}),u("strong",null,S(y(k).settings.serviceStopped),1)]),u("p",ph,S(y(k).settings.stoppedGuide),1),u("div",gh,[u("code",null,[R[8]||(R[8]=u("span",{class:"prompt"},"$",-1)),j(S(y(k).settings.startCommand),1)]),u("button",{class:"ghost",type:"button",onClick:a},S(l.value?"已复制":"复制"),1)])])):(A(),I("div",uh,[R[7]||(R[7]=u("p",{class:"muted stop-desc"},[j("停止后转换功能不可用。已开启的开机自启会在下次重启电脑时自动运行服务;重新启动请在终端执行 "),u("code",null,"converter start"),j("。")],-1)),u("button",{class:"ghost danger stop-btn",type:"button","data-testid":"stop-service",disabled:r.value,onClick:d},[r.value?(A(),I("span",dh)):ee("",!0),j(" "+S(r.value?"停止中…":y(k).settings.stopService),1)],8,fh)]))]),u("div",mh,[u("div",vh,[u("div",null,[u("h2",null,S(y(k).doctor.title),1),R[9]||(R[9]=u("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),u("button",{class:"ghost recheck",disabled:y(t).loading,onClick:R[0]||(R[0]=T=>y(t).recheck())},[y(t).loading?(A(),I("span",_h)):(A(),nt(J,{key:0,name:"refresh",size:15})),j(" "+S(y(k).doctor.recheck),1)],8,yh)]),u("div",bh,[u("div",wh,[u("strong",null,S(y(t).readyCount)+" / "+S(y(t).statuses.length),1),R[10]||(R[10]=u("span",null,"个引擎可用",-1))]),u("div",Sh,[u("i",{style:pn({width:`${m.value}%`})},null,4)])]),y(t).error?(A(),I("p",xh,S(y(t).error),1)):ee("",!0),u("div",Ch,[(A(!0),I(ne,null,ke(y(t).statuses,T=>(A(),nt(sh,{key:T.id,status:T,installing:c.value,onInstall:w,onUninstall:_},null,8,["status","installing"]))),128))]),y(t).installSession.state!=="idle"?(A(),I("div",kh,[u("h3",null,S(y(k).doctor.logs),1),u("p",{class:ye(["session-state",y(t).installSession.state])},[y(t).installSession.state==="progress"?(A(),I("span",Eh)):ee("",!0),j(" "+S(y(t).installSession.state==="progress"?y(k).doctor.sessionRunning:y(t).installSession.state==="done"?y(k).doctor.sessionDone:y(k).doctor.sessionFailed),1)],2),B(oh,{logs:y(t).installSession.logs},null,8,["logs"])])):ee("",!0)]),u("form",{class:"panel",onSubmit:to(M,["prevent"])},[u("div",Ah,[u("h2",null,S(y(k).settings.preferences),1)]),u("label",Rh,[u("span",null,S(y(k).settings.outputDir),1),u("div",Th,[Pt(u("input",{"onUpdate:modelValue":R[1]||(R[1]=T=>y(s).form.outputDir=T),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,y(s).form.outputDir]]),u("button",{class:"ghost",type:"button",disabled:n.value,onClick:$},[n.value?(A(),I("span",Ph)):(A(),nt(J,{key:0,name:"folder",size:14})),j(" "+S(n.value?"打开中…":y(k).settings.chooseDir),1)],8,Oh)])]),u("label",Ih,[u("span",null,S(y(k).settings.concurrency),1),u("div",$h,[Pt(u("input",{"onUpdate:modelValue":R[2]||(R[2]=T=>y(s).form.concurrency=T),type:"number",min:"1",max:"4"},null,512),[[Ut,y(s).form.concurrency,void 0,{number:!0}]]),R[11]||(R[11]=u("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),u("label",Mh,[u("span",null,S(y(k).settings.language),1),Pt(u("select",{"onUpdate:modelValue":R[3]||(R[3]=T=>y(s).form.language=T),disabled:""},[...R[12]||(R[12]=[u("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Co,y(s).form.language]])]),y(s).error?(A(),I("p",Nh,S(y(s).error),1)):o.value?(A(),I("p",Dh,[B(J,{name:"check-circle",size:14}),j(S(y(k).settings.saved),1)])):ee("",!0),u("div",Fh,[u("button",{class:"ghost",type:"button",onClick:R[4]||(R[4]=T=>y(s).load())},S(y(k).common.cancel),1),u("button",{class:"primary",disabled:y(s).saving,type:"submit"},[y(s).saving?(A(),I("span",Lh)):ee("",!0),j(" "+S(y(s).saving?"保存中…":y(k).settings.save),1)],8,Vh)])],32)]))}}),jh=Qe(Hh,[["__scopeId","data-v-39356b7e"]]),rs=[{key:"image",label:"图片",icon:"image",categories:["image"]},{key:"video",label:"视频",icon:"video",categories:["video"]},{key:"audio",label:"音频",icon:"music",categories:["audio"]},{key:"office",label:"文档",icon:"office",categories:["office","markdown"]},{key:"pdf",label:"PDF",icon:"pdf",categories:["pdf"]},{key:"archive",label:"压缩包",icon:"archive",categories:["archive"]}];function wl(e,t){return e.filter(s=>t.categories.includes(s.category))}function Ni(e,t){const s=new Set;for(const n of wl(e,t))for(const o of n.fromFormats)s.add(o);return s}const Uh={"image-resize":"缩放","image-compress":"压缩","image-watermark":"加水印","video-compress":"压缩","video-timelapse":"延迟摄影","media-compress":"压缩","pdf-merge":"合并","pdf-split":"拆分","pdf-protect":"加密/解密","archive-extract":"解压"};function Bh(e){return Uh[e]}const Di={jpg:"jpg",jpeg:"jpg"};function zh(e,t){return(Di[e]??e)===(Di[t]??t)}function Kh(e){const t=e.split(/[\\/]/).pop()??"",s=t.lastIndexOf(".");return s>0?t.slice(s+1).toLowerCase():""}function Wh(e,t){if(!t.length)return[];const s=[...new Set(t.map(i=>i.toLowerCase()))],n=[],o=new Set;for(const i of e){if(!i.available||!s.every(l=>i.fromFormats.includes(l)))continue;const r=Bh(i.key);if(r){const l=`op:${i.key}`;if(o.has(l))continue;o.add(l),n.push({conversionKey:i.key,format:"",label:r,capability:i.label,category:i.category,kind:"operate"});continue}for(const l of i.toFormats){if(s.every(d=>zh(d,l)))continue;const a=`${i.key}:${l}`;o.has(a)||(o.add(a),n.push({conversionKey:i.key,format:l,label:l==="folder"?"解压为文件夹":l.toUpperCase(),capability:i.label,category:i.category,kind:"convert"}))}}return n}function Gh(e,t){return t?[...e].sort((s,n)=>+(n.category===t)-+(s.category===t)):[...e]}function Fi(e,t){var n;const s=t.toLowerCase();return(n=e.find(o=>o.fromFormats.includes(s)))==null?void 0:n.category}function Vi(e,t){return e.some(n=>n!==t&&n.label===t.label)?`${t.label} · ${t.capability}`:t.label}function qh(e){return e===void 0?"":e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(0)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}const Jh={class:"install-guide","data-testid":"install-guide"},Yh={class:"platform-switch",role:"tablist"},Qh=["aria-selected"],Xh=["aria-selected"],Zh={class:"steps"},ep={class:"muted"},tp={class:"command-block"},sp={class:"command-row"},np={"data-testid":"install-command"},op={class:"muted hint"},ip={class:"manual-block"},rp={key:0,class:"manual-steps"},lp={class:"step-no"},ap=He({__name:"InstallGuide",setup(e){const t=se(Io()),s=se(!1),n=oe(()=>$o(t.value)),o=se(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(r,l)=>(A(),I("div",Jh,[u("div",Yh,[u("button",{type:"button",class:ye({active:t.value==="macos"}),role:"tab","aria-selected":t.value==="macos",onClick:l[0]||(l[0]=a=>t.value="macos")},S(y(k).install.macos),11,Qh),u("button",{type:"button",class:ye({active:t.value==="windows"}),role:"tab","aria-selected":t.value==="windows",onClick:l[1]||(l[1]=a=>t.value="windows")},S(y(k).install.windows),11,Xh)]),u("ol",Zh,[u("li",null,[l[3]||(l[3]=u("span",{class:"step-no"},"1",-1)),u("div",null,[u("strong",null,S(y(k).install.step1),1),u("p",ep,S(t.value==="macos"?y(k).install.macosTerminal:y(k).install.windowsTerminal),1)])]),u("li",null,[l[5]||(l[5]=u("span",{class:"step-no"},"2",-1)),u("div",tp,[u("strong",null,S(y(k).install.step2),1),u("div",sp,[u("code",np,[l[4]||(l[4]=u("span",{class:"prompt"},"$",-1)),j(S(n.value),1)]),u("button",{class:"ghost copy",type:"button",onClick:i},[B(J,{name:o.value?"check-circle":"copy",size:14},null,8,["name"]),j(" "+S(o.value?y(k).install.copied:y(k).install.copy),1)])])])]),u("li",null,[l[6]||(l[6]=u("span",{class:"step-no"},"3",-1)),u("div",null,[u("strong",null,S(y(k).install.step3),1),u("p",op,S(y(k).install.alreadyInstalled),1)])])]),u("div",ip,[u("button",{class:"manual-toggle",type:"button",onClick:l[2]||(l[2]=a=>s.value=!s.value)},[j(S(y(k).install.manualTitle),1),B(J,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(A(),I("ol",rp,[(A(!0),I(ne,null,ke(y(k).install.manualSteps,(a,d)=>(A(),I("li",{key:a.title},[u("span",lp,S(d+1),1),u("div",null,[u("strong",null,S(a.title),1),u("p",null,S(a.text),1)])]))),128))])):ee("",!0)])]))}}),cp=Qe(ap,[["__scopeId","data-v-56162934"]]),up={class:"daemon-gate","data-testid":"daemon-gate"},fp={key:0,class:"gate-state checking"},dp={key:1,class:"gate-state online","data-testid":"gate-online"},hp={class:"gate-icon ok"},pp={class:"actions"},gp=["href"],mp={key:2,class:"gate-state offline","data-testid":"gate-offline"},vp={class:"gate-icon off"},yp={class:"start-block"},_p={class:"manual"},bp={class:"manual-label"},wp={class:"manual-row"},Sp={class:"manual-hint"},xp={class:"actions"},Cp=["href"],kp={class:"install-collapsed"},Ep=He({__name:"DaemonGate",setup(e){const t=se("checking"),s=se(!1),n=se(!1);async function o(){try{await navigator.clipboard.writeText("converter start"),n.value=!0,setTimeout(()=>{n.value=!1},2e3)}catch{}}async function i(){t.value="checking",t.value=await hf()?"online":"offline"}return hs(()=>{i()}),(r,l)=>(A(),I("div",up,[t.value==="checking"?(A(),I("div",fp,[l[1]||(l[1]=u("span",{class:"spinner big","aria-hidden":"true"},null,-1)),u("p",null,S(y(k).gate.checking),1)])):t.value==="online"?(A(),I("div",dp,[u("div",hp,[B(J,{name:"check-circle",size:26})]),u("p",null,S(y(k).gate.online),1),l[2]||(l[2]=u("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),u("div",pp,[u("a",{class:"btn primary",href:y(ao),target:"_blank",rel:"noopener"},[j(S(y(k).gate.open),1),B(J,{name:"arrow-right",size:15})],8,gp),u("button",{class:"ghost",type:"button",onClick:i},[B(J,{name:"refresh",size:14}),j(S(y(k).gate.retry),1)])])])):(A(),I("div",mp,[u("div",vp,[B(J,{name:"alert-circle",size:26})]),u("p",null,S(y(k).gate.offline),1),u("div",yp,[u("div",_p,[u("span",bp,S(y(k).gate.manualTitle),1),u("div",wp,[l[3]||(l[3]=u("code",null,[u("span",{class:"prompt"},"$"),j("converter start")],-1)),u("button",{class:"copy",type:"button",onClick:o},[B(J,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),j(S(n.value?"已复制":"复制"),1)])]),u("p",Sp,S(y(k).gate.manualHint),1)]),u("div",xp,[u("button",{class:"ghost",type:"button",onClick:i},[B(J,{name:"refresh",size:14}),j(S(y(k).gate.retry),1)]),u("a",{class:"ghost direct-link",href:y(ao),target:"_blank",rel:"noopener"},S(y(k).gate.open),9,Cp)])]),u("div",kp,[u("button",{class:"install-toggle",type:"button",onClick:l[0]||(l[0]=a=>s.value=!s.value)},[j(S(y(k).gate.notInstalledTitle),1),B(J,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(A(),nt(cp,{key:0})):ee("",!0)])]))]))}}),Ap=Qe(Ep,[["__scopeId","data-v-0f39bf4c"]]),Rp="/gh-qrcode.png",Tp={class:"follow-gate","data-testid":"follow-gate"},Op={class:"gate-right"},Pp={class:"code-row"},Ip={"data-testid":"pair-code"},$p={key:0,class:"gate-error"},Mp=He({__name:"FollowGate",props:{pairCode:{}},emits:["activated"],setup(e,{emit:t}){const s=e,n=t,o=oe(()=>s.pairCode??""),i=se(!1),r=se("");let l;async function a(){try{await navigator.clipboard.writeText(o.value),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}async function d(){const w=s.pairCode;if(w)try{const _=await fetch(`https://duduer.com/api/wx/activate/${encodeURIComponent(w)}`);if(!_.ok)return;const $=await _.json();$.status==="active"&&$.token?(m(),await Se.wxActivate($.token),n("activated",$.token)):$.subscribed===!1?r.value="检测到关注已取消,重新关注即可恢复使用":r.value=""}catch{}}function c(){l=window.setInterval(()=>{d()},5e3)}function m(){l!==void 0&&(clearInterval(l),l=void 0)}return hs(()=>{c()}),bn(()=>{m()}),(w,_)=>(A(),I("div",Tp,[_[5]||(_[5]=u("div",{class:"gate-left"},[u("img",{class:"gh-qrcode",src:Rp,alt:"公众号二维码"}),u("p",{class:"qr-hint"},"微信扫码,关注公众号")],-1)),u("div",Op,[_[1]||(_[1]=u("h2",null,"免费解锁全部功能",-1)),_[2]||(_[2]=u("p",{class:"gate-desc"},[j("关注公众号并回复你的绑定码,即可"),u("strong",null,"永久免费"),j("使用全部转换功能")],-1)),u("div",Pp,[_[0]||(_[0]=u("span",{class:"code-label"},"你的绑定码",-1)),u("code",Ip,S(o.value),1),u("button",{class:"copy",type:"button",onClick:a},[B(J,{name:i.value?"check-circle":"copy",size:13},null,8,["name"]),j(S(i.value?"已复制":"复制"),1)])]),_[3]||(_[3]=u("ol",{class:"gate-steps"},[u("li",null,[u("span",null,"1"),j("微信扫描左侧二维码,关注公众号")]),u("li",null,[u("span",null,"2"),j("在公众号里发送你的绑定码(点击上方「复制」)")]),u("li",null,[u("span",null,"3"),j("收到「绑定成功」回复后,本页自动解锁")])],-1)),r.value?(A(),I("p",$p,[B(J,{name:"alert-circle",size:14}),j(S(r.value),1)])):ee("",!0),_[4]||(_[4]=u("p",{class:"waiting"},[u("span",{class:"spinner tiny"}),j("正在等待绑定完成,每 5 秒自动检测…")],-1))])]))}}),Np=Qe(Mp,[["__scopeId","data-v-0fe4c6f1"]]),Dp={class:"workbench","data-testid":"workbench"},Fp={class:"page-title"},Vp={class:"page-subtitle"},Lp={key:2,class:"tabbed"},Hp={class:"tab-rail"},jp=["data-testid","onClick"],Up={class:"tab-label"},Bp={key:0,class:"tab-count"},zp={class:"tab-panel panel"},Kp={class:"drop-icon"},Wp={class:"drop-title"},Gp={class:"muted drop-hint"},qp={class:"drop-compact-text"},Jp={class:"drop-actions"},Yp=["placeholder"],Qp=["disabled"],Xp=["disabled"],Zp={key:1,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},eg=["accept"],tg={key:0,class:"hint-alert"},sg={class:"target-bar"},ng={class:"section-title"},og={key:0,class:"target-chips"},ig=["onClick"],rg={key:1,class:"hint-alert"},lg={key:2,class:"hint-alert"},ag={class:"table-wrap"},cg={class:"file-table","data-testid":"file-table"},ug={class:"cell-file"},fg={class:"cell-path"},dg={class:"cell-size"},hg={class:"cell-status"},pg={class:"cell-actions"},gg={class:"cell-file"},mg={class:"file-icon"},vg=["title"],yg={class:"chip ext"},_g={class:"cell-path"},bg=["title","onClick"],wg={class:"cell-size muted"},Sg={class:"cell-status"},xg=["title"],Cg={key:0,class:"spinner tiny"},kg={key:1},Eg={key:2,class:"row-error"},Ag={class:"cell-actions"},Rg=["onClick"],Tg=["onClick"],Og=["onClick"],Pg=["title","onClick"],Ig={key:0,class:"params"},$g={class:"section-title"},Mg={class:"params-grid"},Ng={class:"param-label"},Dg={key:1,class:"required"},Fg=["onUpdate:modelValue","data-testid"],Vg=["value"],Lg=["onUpdate:modelValue","min","max","data-testid"],Hg={key:2,class:"watermark-editor"},jg=["onUpdate:modelValue","data-testid"],Ug=["disabled"],Bg=["onUpdate:modelValue","type","data-testid"],zg={key:4,class:"param-description"},Kg={class:"summary"},Wg={class:"batch-actions"},Gg=["disabled"],qg={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},Jg=He({__name:"WorkbenchView",setup(e){const t=js(),s=Oo(),n=ns({checking:t,activated:!0}),o=Po(),i=se(rs[0].key),r=ns(Object.fromEntries(rs.map(h=>[h.key,{rows:[],selected:null,paramValues:{}}]))),l=se(""),a=h=>{Se.wxActivate(h).then(()=>{n.activated=!0}).catch(()=>{})},d=oe(()=>rs.find(h=>h.key===i.value)),c=oe(()=>r[i.value]),m=oe(()=>wl(s.features,d.value)),w=oe(()=>Ni(s.features,d.value)),_=oe(()=>{const h=Wh(m.value,c.value.rows.map(p=>p.ext)),v=c.value.rows[0]?Fi(s.features,c.value.rows[0].ext):void 0;return Gh(h,v)}),$=oe(()=>{var h;return c.value.selected?((h=s.byKey.get(c.value.selected.conversionKey))==null?void 0:h.params)??[]:[]}),M=oe(()=>$.value.filter(h=>h.required&&String(c.value.paramValues[h.key]??"").trim()==="")),V=oe(()=>{var h;return((h=c.value.selected)==null?void 0:h.conversionKey)==="pdf-merge"});jt(()=>[i.value,_.value.map(h=>`${h.conversionKey}:${h.format}`).join("|")],()=>{const h=c.value.selected,v=h!==null&&_.value.some(p=>p.conversionKey===h.conversionKey&&p.format===h.format);c.value.selected=v?h:_.value[0]??null,R()});function R(){var v;const h={};for(const p of $.value)p.defaultValue!==void 0?h[p.key]=p.defaultValue:p.control==="preset"&&((v=p.presets)!=null&&v.length)&&(h[p.key]=p.presets[0].value);c.value.paramValues=h}function T(h){const v=c.value.selected;return(v==null?void 0:v.conversionKey)===h.conversionKey&&(v==null?void 0:v.format)===h.format}function N(h){c.value.selected=h,R()}function L(){const h={};for(const v of $.value){const p=c.value.paramValues[v.key];v.control==="preset"||v.control==="number"?typeof p=="number"&&Number.isFinite(p)&&(h[v.key]=p):typeof p=="string"&&p.trim()&&(h[v.key]=p.trim())}return h}function H(h,v){var C;if(h.kind!=="operate")return h.format;const p=((C=s.byKey.get(h.conversionKey))==null?void 0:C.toFormats)??[];return p.includes(v.ext)?v.ext:p[0]??v.ext}const he=se(""),te=se(!1),Q=se(!1),q=se(""),fe=se(),xe=se();function Oe(h){return h.split(/[\\/]/).pop()??h}function $e(h){return _l[Fi(s.features,h)??"file"]??"file"}function Ct(h){const v=rs.find(p=>Ni(s.features,p).has(h));return(v==null?void 0:v.label)??"其他"}function Ge(h,v,p){const C=h.trim();if(!C)return;const P=Kh(C);if(!w.value.has(P)){q.value=k.workbench.wrongTab.replace("{name}",Oe(C)).replace("{tab}",`「${d.value.label}」`).replace("对应标签页",`「${Ct(P)}」标签页`);return}const E=p??Oe(C);if(c.value.rows.some(D=>D.path===C||v!==void 0&&D.name===E&&D.size===v)){q.value=`${E} ${k.workbench.fileDuplicate}`;return}q.value="",c.value.rows.push({path:C,ext:P,name:E,status:"pending",...v!==void 0?{size:v}:{}})}function pe(){Ge(he.value),he.value=""}async function X(h){if(h.length){Q.value=!0,q.value="";try{for(const v of h){const p=v.path;if(p){Ge(p,v.size,v.name);continue}if(c.value.rows.some(P=>P.name===v.name&&P.size===v.size)){q.value=`${v.name} ${k.workbench.fileDuplicate}`;continue}const C=await Mi(v);Ge(C.inputPath,C.size,C.originalName)}}catch(v){q.value=v instanceof Error?v.message:"文件导入失败"}finally{Q.value=!1,fe.value&&(fe.value.value="")}}}function re(h){X(Array.from(h.target.files??[]))}function Xe(h){var v;te.value=!1,X(Array.from(((v=h.dataTransfer)==null?void 0:v.files)??[]))}async function at(h){const v=Array.from(h.target.files??[])[0],p=$.value.find(C=>C.control==="file");if(!(!v||!p)){Q.value=!0;try{const C=v.path;if(C)c.value.paramValues[p.key]=C;else{const P=await Mi(v);c.value.paramValues[p.key]=P.inputPath}}catch(C){q.value=C instanceof Error?C.message:"水印图片选择失败"}finally{Q.value=!1,xe.value&&(xe.value.value="")}}}const Me=se(!1),Ee=oe(()=>c.value.rows.filter(h=>h.status==="pending").length),Nt=oe(()=>c.value.rows.some(h=>h.status==="success"||h.status==="failed")),ct=oe(()=>Ee.value>0&&c.value.selected!==null&&M.value.length===0&&!Me.value);async function Ze(h){const v=c.value.selected;if(!(!v||V.value)){h.status="converting",h.targetFormat=H(v,h),h.progress=0,h.error=void 0,h.output=void 0;try{const p=await Se.convert({inputPath:h.path,targetFormat:h.targetFormat,conversionKey:v.conversionKey,options:L()});h.taskId=p.taskId}catch(p){h.status="failed",h.error=p instanceof Error?p.message:"提交失败"}}}async function je(){const h=c.value.selected,v=c.value.rows.filter(p=>p.status==="pending");if(!(!h||!v.length||M.value.length)){if(Me.value=!0,h.conversionKey==="pdf-merge"){const p=v.map(C=>C.path);for(const C of v)C.status="converting",C.targetFormat=H(h,C),C.error=void 0;try{const C=await Se.convert({inputPath:p[0],targetFormat:H(h,v[0]),conversionKey:h.conversionKey,options:{...L(),inputs:p}});for(const P of v)P.taskId=C.taskId}catch(C){const P=C instanceof Error?C.message:"提交失败";for(const E of v)E.status="failed",E.error=P}}else for(const p of v)await Ze(p);Me.value=!1}}jt(()=>o.tasks,h=>{var p;const v=new Map(h.map(C=>[C.taskId,C]));for(const C of rs)for(const P of r[C.key].rows){if(!P.taskId)continue;const E=v.get(P.taskId);E&&(E.status==="success"?(P.status="success",P.output=E.output,P.progress=100):E.status==="failed"?(P.status="failed",P.error=((p=E.error)==null?void 0:p.message)??"转换失败"):(P.status="converting",P.progress=E.progress??P.progress))}},{deep:!0});function O(h){c.value.rows.splice(h,1)}function U(){c.value.rows=c.value.rows.filter(h=>h.status==="pending"||h.status==="converting")}async function F(h){try{await Se.revealPath(h.path)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}async function G(h){if(h.taskId)try{await Se.revealTask(h.taskId)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}function f(h){return h==="pending"?k.workbench.statusPending:h==="converting"?k.workbench.statusRunning:h==="success"?k.workbench.statusSuccess:k.workbench.statusFailed}const g=oe(()=>[...w.value].slice(0,10).map(h=>h.toUpperCase()).join(" / ")),b=oe(()=>[...w.value].map(h=>`.${h}`).join(","));let x;return hs(()=>{t&&(x=Ao().onMessage(h=>{h.type==="activation:revoked"&&(n.activated=!1,n.checking=!1)}),Se.wxStatus().then(h=>{n.activated=h.activated,l.value=h.pairCode,n.checking=!1}).catch(()=>{n.checking=!1}))}),bn(()=>{x==null||x()}),(h,v)=>(A(),I("section",Dp,[u("h1",Fp,S(y(k).workbench.title),1),u("p",Vp,S(y(k).workbench.subtitle),1),y(t)?n.activated?(A(),I("div",Lp,[u("aside",Hp,[(A(!0),I(ne,null,ke(y(rs),p=>(A(),I("button",{key:p.key,type:"button",class:ye(["tab-btn",{active:i.value===p.key}]),"data-testid":`tab-${p.key}`,onClick:C=>{i.value=p.key,q.value=""}},[B(J,{name:p.icon,size:17},null,8,["name"]),u("span",Up,S(p.label),1),r[p.key].rows.length?(A(),I("span",Bp,S(r[p.key].rows.length),1)):ee("",!0)],10,jp))),128))]),u("div",zp,[u("div",{class:ye(["dropzone",{dragging:te.value,compact:c.value.rows.length>0}]),"data-testid":"dropzone",onDragover:v[2]||(v[2]=to(p=>te.value=!0,["prevent"])),onDragleave:v[3]||(v[3]=p=>te.value=!1),onDrop:to(Xe,["prevent"])},[c.value.rows.length?(A(),I(ne,{key:1},[B(J,{name:"upload",size:15}),u("span",qp,S(y(k).workbench.dropCompact.replace("{tab}",d.value.label)),1)],64)):(A(),I(ne,{key:0},[u("span",Kp,[B(J,{name:d.value.icon,size:30},null,8,["name"])]),u("strong",Wp,S(y(k).workbench.dropTitle.replace("{tab}",d.value.label)),1),u("p",Gp,S(y(k).workbench.dropHint.replace("{exts}",g.value)),1)],64)),u("div",Jp,[Pt(u("input",{"onUpdate:modelValue":v[0]||(v[0]=p=>he.value=p),type:"text",placeholder:y(k).workbench.pastePlaceholder,onKeydown:Wc(pe,["enter"])},null,40,Yp),[[Ut,he.value]]),u("button",{class:"ghost",type:"button",disabled:!he.value.trim(),onClick:pe},[B(J,{name:"plus",size:14}),j(S(y(k).workbench.addPath),1)],8,Qp),u("button",{class:"primary",type:"button",disabled:Q.value,onClick:v[1]||(v[1]=p=>{var C;return(C=fe.value)==null?void 0:C.click()})},[Q.value?(A(),I("span",Zp)):(A(),nt(J,{key:0,name:"file",size:14})),j(" "+S(Q.value?"导入中…":y(k).workbench.addFile),1)],8,Xp)]),u("input",{ref_key:"fileInput",ref:fe,type:"file",multiple:"",hidden:"",accept:b.value,onChange:re},null,40,eg)],34),q.value?(A(),I("p",tg,[B(J,{name:"alert-circle",size:15}),j(S(q.value),1)])):ee("",!0),c.value.rows.length?(A(),I(ne,{key:1},[u("div",sg,[u("span",ng,S(y(k).workbench.convertTo),1),_.value.length?(A(),I("div",og,[(A(!0),I(ne,null,ke(_.value,p=>(A(),I("button",{key:`${p.conversionKey}:${p.format}`,type:"button",class:ye(["target-chip",{active:T(p)}]),"data-testid":"target-chip",onClick:C=>N(p)},S(y(Vi)(_.value,p)),11,ig))),128))])):m.value.some(p=>p.available)?(A(),I("p",rg,[B(J,{name:"alert-circle",size:15}),j(S(y(k).workbench.noCommonTargets),1)])):(A(),I("p",lg,[B(J,{name:"alert-circle",size:15}),j(S(y(k).workbench.noTools),1)]))]),u("div",ag,[u("table",cg,[u("thead",null,[u("tr",null,[u("th",ug,S(y(k).workbench.tableFile),1),u("th",fg,S(y(k).workbench.tablePath),1),u("th",dg,S(y(k).workbench.tableSize),1),u("th",hg,S(y(k).workbench.tableStatus),1),u("th",pg,S(y(k).workbench.tableActions),1)])]),u("tbody",null,[(A(!0),I(ne,null,ke(c.value.rows,(p,C)=>(A(),I("tr",{key:p.path,"data-testid":"file-row"},[u("td",gg,[u("span",mg,[B(J,{name:$e(p.ext),size:16},null,8,["name"])]),u("span",{class:"file-name",title:p.path},S(p.name??Oe(p.path)),9,vg),u("span",yg,S(p.ext?p.ext.toUpperCase():"?"),1)]),u("td",_g,[u("button",{class:"path-link",type:"button","data-testid":"row-path",title:p.path,onClick:P=>F(p)},S(p.path),9,bg)]),u("td",wg,S(p.size!==void 0?y(qh)(p.size):"—"),1),u("td",Sg,[u("span",{class:ye(["row-status",p.status]),title:p.error??""},[p.status==="converting"?(A(),I("span",Cg)):ee("",!0),j(" "+S(f(p.status))+" ",1),p.status==="converting"&&p.progress!==void 0?(A(),I("em",kg,S(p.progress)+"%",1)):ee("",!0),p.status==="failed"&&p.error?(A(),I("em",Eg,S(p.error),1)):ee("",!0)],10,xg)]),u("td",Ag,[p.status==="pending"&&!V.value?(A(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:P=>Ze(p)},S(y(k).workbench.convert),9,Rg)):ee("",!0),p.status==="failed"&&!V.value?(A(),I("button",{key:1,class:"ghost tiny",type:"button",onClick:P=>Ze(p)},S(y(k).workbench.retry),9,Tg)):ee("",!0),p.status==="success"?(A(),I("button",{key:2,class:"ghost tiny",type:"button",onClick:P=>G(p)},S(y(k).workbench.openFolder),9,Og)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(k).workbench.remove,onClick:P=>O(C)},[B(J,{name:"x",size:14})],8,Pg)])]))),128))])])]),$.value.length?(A(),I("div",Ig,[u("div",$g,S(y(k).workbench.paramsTitle),1),u("div",Mg,[(A(!0),I(ne,null,ke($.value,p=>(A(),I("label",{key:p.key,class:ye(["param-field",{wide:p.control==="file"}])},[u("span",Ng,[j(S(p.label),1),p.unit?(A(),I(ne,{key:0},[j("("+S(p.unit)+")",1)],64)):ee("",!0),p.required?(A(),I("i",Dg,"*")):ee("",!0)]),p.control==="preset"?Pt((A(),I("select",{key:0,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,"data-testid":`param-${p.key}`},[(A(!0),I(ne,null,ke(p.presets??[],C=>(A(),I("option",{key:C.value,value:C.value},S(C.label),9,Vg))),128))],8,Fg)),[[Co,c.value.paramValues[p.key]]]):p.control==="number"?Pt((A(),I("input",{key:1,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:"number",min:p.min,max:p.max,placeholder:"不调整","data-testid":`param-${p.key}`},null,8,Lg)),[[Ut,c.value.paramValues[p.key],void 0,{number:!0}]]):p.control==="file"?(A(),I("div",Hg,[Pt(u("input",{"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${p.key}`},null,8,jg),[[Ut,c.value.paramValues[p.key],void 0,{trim:!0}]]),u("button",{class:"ghost",type:"button",disabled:Q.value,onClick:v[4]||(v[4]=C=>{var P;return(P=xe.value)==null?void 0:P.click()})},S(y(k).workbench.chooseFile),9,Ug),u("input",{ref_for:!0,ref_key:"watermarkInput",ref:xe,type:"file",hidden:"",accept:"image/*",onChange:at},null,544)])):Pt((A(),I("input",{key:3,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:p.control==="password"?"password":"text","data-testid":`param-${p.key}`},null,8,Bg)),[[jc,c.value.paramValues[p.key],void 0,{trim:!0}]]),p.description?(A(),I("small",zg,S(p.description),1)):ee("",!0)],2))),128))])])):ee("",!0),u("div",{class:ye(["batch-bar",{disabled:!ct.value}])},[u("span",Kg,[v[5]||(v[5]=j(" 待转换 ",-1)),u("strong",null,S(Ee.value),1),j(" 个 → "+S(c.value.selected?y(Vi)(_.value,c.value.selected):"—"),1)]),u("div",Wg,[Nt.value?(A(),I("button",{key:0,class:"ghost",type:"button",onClick:U},"清除已完成")):ee("",!0),u("button",{class:"primary batch",type:"button","data-testid":"batch-convert",disabled:!ct.value,onClick:je},[Me.value?(A(),I("span",qg)):ee("",!0),j(" "+S(Me.value?"转换中…":y(k).workbench.batchConvertN.replace("{n}",String(Ee.value))),1)],8,Gg)])],2)],64)):ee("",!0)])])):(A(),nt(Np,{key:1,"pair-code":l.value,"data-testid":"follow-gate",onActivated:a},null,8,["pair-code"])):(A(),nt(Ap,{key:0}))]))}}),Yg=Qe(Jg,[["__scopeId","data-v-42a844e6"]]),Qg=cf({history:Uu(),routes:[{path:"/",name:"landing",component:Wd},{path:"/workbench",name:"workbench",component:Yg},{path:"/history",name:"history",component:td},{path:"/settings",name:"settings",component:jh},{path:"/:pathMatch(.*)*",redirect:"/"}]});Jc(Tf).use(Xc()).use(Qg).mount("#app");
|