dudu-converter-cli 1.0.1 → 1.0.2
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 +2 -2
- package/release/cli.js +7 -7
- package/web/dist/assets/index-BvzR1CnI.js +32 -0
- package/web/dist/assets/{index-Dfgupgrt.css → index-GlrxWhv_.css} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/install.ps1 +28 -14
- package/web/dist/install.sh +16 -6
- package/web/dist/assets/index-UZF3gS9o.js +0 -32
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var bl=Object.defineProperty;var wl=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>wl(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(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"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(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 s(o){if(o.ep)return;o.ep=!0;const i=n(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 ao(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const me={},Xt=[],vt=()=>{},Di=()=>!1,ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),Ie=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Sl=Object.prototype.hasOwnProperty,ae=(e,t)=>Sl.call(e,t),z=Array.isArray,Ht=e=>Fn(e)==="[object Map]",$t=e=>Fn(e)==="[object Set]",Mo=e=>Fn(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",Fi=e=>(ue(e)||Z(e))&&Z(e.then)&&Z(e.catch),Vi=Object.prototype.toString,Fn=e=>Vi.call(e),xl=e=>Fn(e).slice(8,-1),Li=e=>Fn(e)==="[object Object]",cs=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=ao(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Cl=/-\w/g,et=us(e=>e.replace(Cl,t=>t.slice(1).toUpperCase())),kl=/\B([A-Z])/g,zt=us(e=>e.replace(kl,"-$1").toLowerCase()),Hi=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=us(e=>e?`on${Hi(e)}`:""),mt=(e,t)=>!Object.is(e,t),qn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ji=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},fs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let No;const ds=()=>No||(No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hs(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=be(s)?Tl(s):hs(s);if(o)for(const i in o)t[i]=o[i]}return t}else if(be(e)||ue(e))return e}const El=/;(?![^(]*\))/g,Al=/:([^]+)/,Rl=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Tl(e){const t={};return e.replace(Rl,n=>n.startsWith("/*")?"":n).split(El).forEach(n=>{if(n){const s=n.split(Al);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ye(e){let t="";if(be(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=ye(e[n]);s&&(t+=s+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ol="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Pl=ao(Ol);function Ui(e){return!!e||e===""}function Il(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let o=0;s&&o<e.length;o++)s=nt(e[o],t[o],n);return s}function Do(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),o=new Uint8Array(s.length);for(const i of e){let r=-1;for(let l=0;l<s.length;l++)if(!o[l]&&nt(i,s[l],n)){r=l;break}if(r<0)return!1;o[r]=1}return!0}function $l(e,t,n){let s=Ht(e),o=Ht(t);if(s||o||(s=$t(e),o=$t(t),s||o))return s&&o?Do(e,t,n):!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||!nt(e[l],t[l],n))return!1}return String(e)===String(t)}function Fo(e,t,n,s){n||(n=[new Map,new Map]);const[o,i]=n;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=s(e,t,n);return o.delete(e),i.delete(t),r}function nt(e,t,n){if(e===t)return!0;let s=Mo(e),o=Mo(t);return s||o?s&&o?e.getTime()===t.getTime():!1:(s=Je(e),o=Je(t),s||o?e===t:(s=z(e),o=z(t),s||o?s&&o?Fo(e,t,n,Il):!1:(s=ue(e),o=ue(t),s||o?!s||!o?!1:Fo(e,t,n,$l):String(e)===String(t))))}function uo(e,t){return e.findIndex(n=>nt(n,t))}const Bi=e=>!!(e&&e.__v_isRef===!0),S=e=>be(e)?e:e==null?"":z(e)||ue(e)&&(e.toString===Vi||!Z(e.toString))?Bi(e)?S(e.value):JSON.stringify(e,Ki,2):String(e),Ki=(e,t)=>Bi(t)?Ki(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[Es(s,i)+" =>"]=o,n),{})}:$t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Es(n))}:Je(t)?Es(t):ue(t)&&!z(t)&&!Li(t)?String(t):t,Es=(e,t="")=>{var n;return Je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.44
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Ae;class zi{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&&Ae&&(Ae.active?(this.parent=Ae,this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){++this._on===1&&(this.prevScope=Ae,Ae=this)}off(){if(this._on>0&&--this._on===0){if(Ae===this)Ae=this.prevScope;else{let t=Ae;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 n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[n].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 Wi(e){return new zi(e)}function Gi(){return Ae}function Ml(e,t=!1){Ae&&Ae.cleanups.push(e)}let ve;const As=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,Ae&&(Ae.active?Ae.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,As.has(this)&&(As.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vo(this),Qi(this);const t=ve,n=tt;ve=this,tt=!0;try{return this.fn()}finally{Xi(this),ve=t,tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)po(t);this.deps=this.depsTail=void 0,Vo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?As.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let Ji=0,Sn,xn;function Yi(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=Sn,Sn=e}function fo(){Ji++}function ho(){if(--Ji>0)return;if(xn){let t=xn;for(xn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Sn;){let t=Sn;for(Sn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Qi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xi(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),po(s),Nl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Tn)||(e.globalVersion=Tn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bs(e))))return;e.flags|=2;const t=e.dep,n=ve,s=tt;ve=e,tt=!0;try{Qi(e);const o=e.fn(e._value);(t.version===0||mt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=n,tt=s,Xi(e),e.flags&=-3}}function po(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)po(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Nl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let tt=!0;const er=[];function wt(){er.push(tt),tt=!1}function St(){const e=er.pop();tt=e===void 0?!0:e}function Vo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let Tn=0;class Dl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class go{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||!tt||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new Dl(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,tr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=s)}return n}trigger(t){this.version++,Tn++,this.notify(t)}notify(t){fo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ho()}}}function tr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)tr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Qn=new WeakMap,en=Symbol(""),Ks=Symbol(""),On=Symbol("");function Ne(e,t,n){if(tt&&ve){let s=Qn.get(e);s||Qn.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new go),o.map=s,o.key=n),o.track()}}function Tt(e,t,n,s,o,i){const r=Qn.get(e);if(!r){Tn++;return}const l=a=>{a&&a.trigger()};if(fo(),t==="clear")r.forEach(l);else{const a=z(e),d=a&&cs(n);if(a&&n==="length"){const c=Number(s);r.forEach((m,w)=>{(w==="length"||w===On||!Je(w)&&w>=c)&&l(m)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),d&&l(r.get(On)),t){case"add":a?d&&l(r.get("length")):(l(r.get(en)),Ht(e)&&l(r.get(Ks)));break;case"delete":a||(l(r.get(en)),Ht(e)&&l(r.get(Ks)));break;case"set":Ht(e)&&l(r.get(en));break}}ho()}function Fl(e,t){const n=Qn.get(e);return n&&n.get(t)}function on(e){const t=re(e);return t===e||(Ne(t,"iterate",On),We(e))?t:xt(e)?yt(e)?t.map(n=>Bt(Ye(n))):t.map(Bt):t.map(Ye)}function ps(e){return Ne(e=re(e),"iterate",On),e}function ht(e,t){return xt(e)?Bt(yt(e)?Ye(t):t):Ye(t)}const Vl={__proto__:null,[Symbol.iterator](){return Rs(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return on(this).concat(...e.map(t=>z(t)?on(t):t))},entries(){return Rs(this,"entries",e=>(e[1]=ht(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,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return kt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,n=>ht(this,n),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 Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return on(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return mn(this,"pop")},push(...e){return mn(this,"push",e)},reduce(e,...t){return Ho(this,"reduce",e,t)},reduceRight(e,...t){return Ho(this,"reduceRight",e,t)},shift(){return mn(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return mn(this,"splice",e)},toReversed(){return on(this).toReversed()},toSorted(e){return on(this).toSorted(e)},toSpliced(...e){return on(this).toSpliced(...e)},unshift(...e){return mn(this,"unshift",e)},values(){return Rs(this,"values",e=>ht(this,e))}};function Rs(e,t,n){const s=ps(e),o=s[t],i=o.call(s);if(s!==e&&!We(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const r=Object.create(Object.getPrototypeOf(i));return r.next=()=>Lo(i.next(),n),o!==nr[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=()=>Lo(i._next(),n)}return i}function Lo(e,t){return e.done||(e.value=t(e.value)),e}const nr=Array.prototype;function kt(e,t,n,s,o,i){const r=ps(e),l=r!==e&&!We(e),a=r[t];if(a!==nr[t]){const m=a.apply(e,i);return l?Ye(m):m}let d=n;r!==e&&(l?d=function(m,w){return n.call(this,ht(e,m),w,e)}:n.length>2&&(d=function(m,w){return n.call(this,m,w,e)}));const c=a.call(r,d,s);return l&&o?o(c):c}function Ho(e,t,n,s){const o=ps(e),i=o!==e&&!We(e);let r=n,l=!1;o!==e&&(i?(l=s.length===0,r=function(d,c,m){return l&&(l=!1,d=ht(e,d)),n.call(this,d,ht(e,c),m,e)}):n.length>3&&(r=function(d,c,m){return n.call(this,d,c,m,e)}));const a=o[t](r,...s);return l?ht(e,a):a}function Ts(e,t,n){const s=re(e);Ne(s,"iterate",On);const o=s[t](...n);return(o===-1||o===!1)&&gs(n[0])?(n[0]=re(n[0]),s[t](...n)):o}function mn(e,t,n=[]){wt(),fo();const s=re(e)[t].apply(e,n);return ho(),St(),s}const Ll=ao("__proto__,__v_isRef,__isVue"),sr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Hl(e){Je(e)||(e=String(e));const t=re(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class or{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?Yl:ar:i?lr:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=z(t);if(!o){let a;if(r&&(a=Vl[n]))return a;if(n==="hasOwnProperty")return Hl}const l=Reflect.get(t,n,we(t)?t:s);if((Je(n)?sr.has(n):Ll(n))||(o||Ne(t,"get",n),i))return l;if(we(l)){const a=r&&cs(n)?l:l.value;return o&&ue(a)?Ws(a):a}return ue(l)?o?Ws(l):sn(l):l}}class ir extends or{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const r=z(t)&&cs(n);if(!this._isShallow){const d=xt(i);if(!We(s)&&!xt(s)&&(i=re(i),s=re(s)),!r&&we(i)&&!we(s))return d||(i.value=s),!0}const l=r?Number(n)<t.length:ae(t,n),a=Reflect.set(t,n,s,we(t)?t:o);return t===re(o)&&a&&(l?mt(s,i)&&Tt(t,"set",n,s):Tt(t,"add",n,s)),a}deleteProperty(t,n){const s=ae(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Tt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Je(n)||!sr.has(n))&&Ne(t,"has",n),s}ownKeys(t){return Ne(t,"iterate",z(t)?"length":en),Reflect.ownKeys(t)}}class jl extends or{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ul=new ir,Bl=new jl,Kl=new ir(!0);const zs=e=>e,Un=e=>Reflect.getPrototypeOf(e);function zl(e,t,n){return function(...s){const o=this.__v_raw,i=re(o),r=Ht(i),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=o[e](...s),c=n?zs:t?Bt:Ye;return!t&&Ne(i,"iterate",a?Ks:en),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 Bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wl(e,t){const n={get(o){const i=this.__v_raw,r=re(i),l=re(o);e||(mt(o,l)&&Ne(r,"get",o),Ne(r,"get",l));const{has:a}=Un(r),d=t?zs: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(re(o),"iterate",en),o.size},has(o){const i=this.__v_raw,r=re(i),l=re(o);return e||(mt(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=re(l),d=t?zs:e?Bt:Ye;return!e&&Ne(a,"iterate",en),l.forEach((c,m)=>o.call(i,d(c),d(m),r))}};return Ie(n,e?{add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear")}:{add(o){const i=re(this),r=Un(i),l=re(o),a=!t&&!We(o)&&!xt(o)?l:o;return r.has.call(i,a)||mt(o,a)&&r.has.call(i,o)||mt(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=re(i));const r=re(this),{has:l,get:a}=Un(r);let d=l.call(r,o);d||(o=re(o),d=l.call(r,o));const c=a.call(r,o);return r.set(o,i),d?mt(i,c)&&Tt(r,"set",o,i):Tt(r,"add",o,i),this},delete(o){const i=re(this),{has:r,get:l}=Un(i);let a=r.call(i,o);a||(o=re(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=re(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=>{n[o]=zl(o,e,t)}),n}function mo(e,t){const n=Wl(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?s:Reflect.get(ae(n,o)&&o in s?n:s,o,i)}const Gl={get:mo(!1,!1)},ql={get:mo(!1,!0)},Jl={get:mo(!0,!1)};const rr=new WeakMap,lr=new WeakMap,ar=new WeakMap,Yl=new WeakMap;function Ql(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sn(e){return xt(e)?e:vo(e,!1,Ul,Gl,rr)}function cr(e){return vo(e,!1,Kl,ql,lr)}function Ws(e){return vo(e,!0,Bl,Jl,ar)}function vo(e,t,n,s,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=Ql(xl(e));if(r===0)return e;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function yt(e){return xt(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function xt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function gs(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function yo(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&ji(e,"__v_skip",!0),e}const Ye=e=>ue(e)?sn(e):e,Bt=e=>ue(e)?Ws(e):e;function we(e){return e?e.__v_isRef===!0:!1}function le(e){return ur(e,!1)}function Xl(e){return ur(e,!0)}function ur(e,t){return we(e)?e:new Zl(e,t)}class Zl{constructor(t,n){this.dep=new go,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:re(t),this._value=n?t:Ye(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||We(t)||xt(t);t=s?t:re(t),mt(t,n)&&(this._rawValue=t,this._value=s?t:Ye(t),this.dep.trigger())}}function y(e){return we(e)?e.value:e}const ea={get:(e,t,n)=>t==="__v_raw"?e:y(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return we(o)&&!we(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function fr(e){return yt(e)?e:new Proxy(e,ea)}function ta(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=sa(e,n);return t}class na{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Je(n)?n:String(n),this._raw=re(t);let o=!0,i=t;if(!z(t)||Je(this._key)||!cs(this._key))do o=!gs(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 n=this._object[this._key];if(we(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Fl(this._raw,this._key)}}function sa(e,t,n){return new na(e,t,n)}class oa{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new go(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Tn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Yi(this,!0),!0}get value(){const t=this.dep.track();return Zi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ia(e,t,n=!1){let s,o;return Z(e)?s=e:(s=e.get,o=e.set),new oa(s,o,n)}const Kn={},Xn=new WeakMap;let Jt;function ra(e,t=!1,n=Jt){if(n){let s=Xn.get(n);s||Xn.set(n,s=[]),s.push(e)}}function la(e,t,n=me){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:l,call:a}=n,d=V=>o?V:We(V)||o===!1||o===0?Ot(V,1):Ot(V);let c,m,w,_,$=!1,M=!1;if(we(e)?(m=()=>e.value,$=We(e)):yt(e)?(m=()=>d(e),$=!0):z(e)?(M=!0,$=e.some(V=>yt(V)||We(V)),m=()=>e.map(V=>{if(we(V))return V.value;if(yt(V))return d(V);if(Z(V))return a?a(V,2):V()})):Z(e)?t?m=a?()=>a(e,2):e:m=()=>{if(w){wt();try{w()}finally{St()}}const V=Jt;Jt=c;try{return a?a(e,3,[_]):e(_)}finally{Jt=V}}:m=vt,t&&o){const V=m,H=o===!0?1/0:o;m=()=>Ot(V(),H)}const F=Gi(),k=()=>{c.stop(),F&&F.active&&co(F.effects,c)};if(i&&t){const V=t;t=(...H)=>{try{return V(...H)}finally{k()}}}let E=M?new Array(e.length).fill(Kn):Kn;const N=V=>{if(!(!(c.flags&1)||!c.dirty&&!V))if(t){const H=c.run();if(V||o||$||(M?H.some((he,te)=>mt(he,E[te])):mt(H,E))){const he=Jt;wt();try{w&&w(),Jt=c;const te=[H,E===Kn?void 0:M&&E[0]===Kn?[]:E,_];E=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,_=V=>ra(V,!1,c),w=c.onStop=()=>{const V=Xn.get(c);if(V){if(a)a(V,4);else for(const H of V)H();Xn.delete(c)}},t?s?N(!0):E=c.run():r?r(N.bind(null,!0),!0):c.run(),k.pause=c.pause.bind(c),k.resume=c.resume.bind(c),k.stop=k,k}function Ot(e,t=1/0,n){if(t<=0||!ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))Ot(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if($t(e)||Ht(e))e.forEach(s=>{Ot(s,t,n)});else if(Li(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.44
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Vn(e,t,n,s){try{return s?e(...s):e()}catch(o){ms(o,t,n)}}function st(e,t,n,s){if(Z(e)){const o=Vn(e,t,n,s);return o&&Fi(o)&&o.catch(i=>{ms(i,t,n)}),o}if(z(e)){const o=[];for(let i=0;i<e.length;i++)o.push(st(e[i],t,n,s));return o}}function ms(e,t,n,s=!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-${n}`;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(),Vn(i,null,10,[e,a,d]),St();return}}aa(e,n,o,s,r)}function aa(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ve=[];let Ze=-1;const pt=[];let Vt=null,an=0;const dr=Promise.resolve();let Zn=null;function Ln(e){const t=Zn||dr;return e?t.then(this?e.bind(this):e):t}function ca(e){let t=Ze+1,n=Ve.length;for(;t<n;){const s=t+n>>>1,o=Ve[s],i=Pn(o);i<e||i===e&&o.flags&2?t=s+1:n=s}return t}function _o(e){if(!(e.flags&1)){const t=Pn(e),n=Ve[Ve.length-1];!n||!(e.flags&2)&&t>=Pn(n)?Ve.push(e):Ve.splice(ca(t),0,e),e.flags|=1,hr()}}function hr(){Zn||(Zn=dr.then(mr))}function ua(e){if(!z(e))Vt&&e.id===-1?Vt.splice(an+1,0,e):e.flags&1||(pt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)pt.push(e[t]);hr()}function pr(e,t,n,s=Ze+1){for(;s<Ve.length;s++){const o=Ve[s];if(o&&o.flags&2){if(e&&o.id!==e.uid||t!==void 0&&!(o.id>=t))continue;Ve.splice(s,1),s=e?s-1:Ze,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function gr(e,t,n=0){if(pt.length){let s=pt,o=0;if(t){s=[];for(let r=0;r<pt.length;r++){const l=pt[r];(l.i!==void 0?!l.i||l.i.uid<n:t.has(l))?pt[o++]=l:s.push(l)}}const i=[...new Set(s)].sort((r,l)=>Pn(r)-Pn(l));if(pt.length=o,Vt){for(let r=0;r<i.length;r++)Vt.push(i[r]);return}for(Vt=i,an=0;an<Vt.length;an++){const r=Vt[an];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Vt=null,an=0}}let Os=!1;function fa(e,t){if(Os){e();return}const n=t===void 0?void 0:new Set(pt);e(),Os=!0;try{pr(void 0,t),gr(void 0,n,t)}finally{Os=!1}}const Pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mr(e){try{for(Ze=0;Ze<Ve.length;Ze++){const t=Ve[Ze];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ze<Ve.length;Ze++){const t=Ve[Ze];t&&(t.flags&=-2)}Ze=-1,Ve.length=0,gr(),Zn=null,(Ve.length||pt.length)&&mr()}}let qe=null,vr=null;function es(e){const t=qe;return qe=e,vr=e&&e.type.__scopeId||null,t}function Yt(e,t=qe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&os(-1);const i=es(t),r=nn.length;let l;try{l=e(...o)}finally{for(let a=nn.length;a>r;a--)jr();es(i),s._d&&os(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Pt(e,t){if(qe===null)return e;const n=ws(qe),s=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),s.push({dir:i,instance:n,value:r,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,n,s){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[s];a&&(wt(),st(a,n,8,[e.el,l,e,t]),St())}}function Jn(e,t){if(Le){let n=Le.provides;const s=Le.parent&&Le.parent.provides;s===n&&(n=Le.provides=Object.create(s)),n[e]=t}}function _t(e,t,n=!1){const s=zr();if(s||tn){let o=tn?tn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Z(t)?t.call(s&&s.proxy):t}}function da(){return!!(zr()||tn)}const ha=Symbol.for("v-scx"),pa=()=>_t(ha);function jt(e,t,n){return yr(e,t,n)}function yr(e,t,n=me){const{immediate:s,deep:o,flush:i,once:r}=n,l=Ie({},n),a=t&&s||!t&&i!=="post";let d;if(Nn){if(i==="sync"){const _=pa();d=_.__watcherHandles||(_.__watcherHandles=[])}else if(!a){const _=()=>{};return _.stop=vt,_.resume=vt,_.pause=vt,_}}const c=Le;l.call=(_,$,M)=>st(_,c,$,M);let m=!1;i==="post"?l.scheduler=_=>{_.i=c,je(_,c&&c.suspense)}:i!=="sync"&&(m=!0,l.scheduler=(_,$)=>{$?_():_o(_)}),l.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,c&&(_.id=c.uid,_.i=c))};const w=la(e,t,l);return Nn&&(d?d.push(w):a&&w()),w}function ga(e,t,n){const s=this.proxy,o=be(e)?e.includes(".")?_r(s,e):()=>s[e]:e.bind(s,s);let i;Z(t)?i=t:(i=t.handler,n=t);const r=Hn(this),l=yr(o,i.bind(s),n);return r(),l}function _r(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const ma=Symbol("_vte"),vs=e=>e.__isTeleport,Ps=Symbol("_leaveCb");function va(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ot){t=n;break}}return t}function br(e){if(!bo(e))return vs(e.type)&&e.children?va(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Z(n.default))return n.default()}}function ts(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ts(vs(n.type)&&br(n)||n,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&&z(e.children)){const n=Rr(e.children,!1);n&&ts(n,t)}}function Gs(e){if(e.component)return Gs(e.component.subTree);if(e.type===ne){const t=z(e.children)&&Rr(e.children,!1);return t?Gs(t):void 0}if(e.type!==ot)return e}function Ue(e,t){return Z(e)?Ie({name:e.name},t,{setup:e}):e}function wr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function jo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ns=new WeakMap;function Cn(e,t,n,s,o=!1){if(z(e)){e.forEach((M,F)=>Cn(M,t&&(z(t)?t[F]:t),n,s,o));return}if(kn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Cn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ws(s.component):s.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=re(m),_=m===me?Di:M=>jo(c,M)?!1:ae(w,M),$=(M,F)=>!(F&&jo(c,F));if(d!=null&&d!==a){if(Uo(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))Vn(a,l,12,[r,c]);else{const M=be(a),F=we(a);if(M||F){const k=()=>{if(e.f){const E=M?_(a)?m[a]:c[a]:$()||!e.k?a.value:c[e.k];if(o)z(E)&&co(E,i);else if(z(E))E.includes(i)||E.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)):F&&($(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const E=()=>{k(),ns.delete(e)};E.id=-1,ns.set(e,E),je(E,n)}else Uo(e),k()}}}function Uo(e){const t=ns.get(e);t&&(t.flags|=8,ns.delete(e))}ds().requestIdleCallback;ds().cancelIdleCallback;const kn=e=>!!e.type.__asyncLoader,bo=e=>e.type.__isKeepAlive;function ya(e,t){Sr(e,"a",t)}function _a(e,t){Sr(e,"da",t)}function Sr(e,t,n=Le){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ys(t,s,n),n){let o=n.parent;for(;o&&o.parent;)bo(o.parent.vnode)&&ba(s,t,n,o),o=o.parent}}function ba(e,t,n,s){const o=ys(t,e,s,!0);xr(()=>{co(s[t],o)},n)}function ys(e,t,n=Le,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{wt();const l=Hn(n),a=st(t,n,e,r);return l(),St(),a});return s?o.unshift(i):o.push(i),i}}const Mt=e=>(t,n=Le)=>{(!Nn||e==="sp")&&ys(e,(...s)=>t(...s),n)},wa=Mt("bm"),pn=Mt("m"),Sa=Mt("bu"),xa=Mt("u"),wo=Mt("bum"),xr=Mt("um"),Ca=Mt("sp"),ka=Mt("rtg"),Ea=Mt("rtc");function Aa(e,t=Le){ys("ec",e,t)}const Ra=Symbol.for("v-ndc");function Re(e,t,n,s){let o;const i=n,r=z(e);if(r||be(e)){const l=r&&yt(e);let a=!1,d=!1;l&&(a=!We(e),d=xt(e),e=ps(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 qs=e=>e?Wr(e)?ws(e):qs(e.parent):null,En=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=>qs(e.parent),$root:e=>qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>kr(e),$forceUpdate:e=>e.f||(e.f=()=>{_o(e.update)}),$nextTick:e=>e.n||(e.n=Ln.bind(e.proxy)),$watch:e=>ga.bind(e)}),Is=(e,t)=>e!==me&&!e.__isScriptSetup&&ae(e,t),Ta={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,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 s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Is(s,t))return r[t]=1,s[t];if(o!==me&&ae(o,t))return r[t]=2,o[t];if(ae(i,t))return r[t]=3,i[t];if(n!==me&&ae(n,t))return r[t]=4,n[t];Js&&(r[t]=0)}}const d=En[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(n!==me&&ae(n,t))return r[t]=4,n[t];if(m=a.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Is(o,t)?(o[t]=n,!0):s!==me&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:r}},l){let a;return!!(n[l]||e!==me&&l[0]!=="$"&&ae(e,l)||Is(t,l)||ae(i,l)||ae(s,l)||ae(En,l)||ae(o.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bo(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Js=!0;function Oa(e){const t=kr(e),n=e.proxy,s=e.ctx;Js=!1,t.beforeCreate&&Ko(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:F,beforeDestroy:k,beforeUnmount:E,destroyed:N,unmounted:V,render:H,renderTracked:he,renderTriggered:te,errorCaptured:Y,serverPrefetch:q,expose:fe,inheritAttrs:Se,components:Te,directives:$e,filters:Ct}=t;if(d&&Pa(d,s,null),r)for(const Q in r){const ie=r[Q];Z(ie)&&(s[Q]=ie.bind(n))}if(o){const Q=o.call(n,n);ue(Q)&&(e.data=sn(Q))}if(Js=!0,i)for(const Q in i){const ie=i[Q],Qe=Z(ie)?ie.bind(n,n):Z(ie.get)?ie.get.bind(n,n):vt,lt=!Z(ie)&&Z(ie.set)?ie.set.bind(n):vt,Me=se({get:Qe,set:lt});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>Me.value,set:ke=>Me.value=ke})}if(l)for(const Q in l)Cr(l[Q],s,n,Q);if(a){const Q=Z(a)?a.call(n):a;Reflect.ownKeys(Q).forEach(ie=>{Jn(ie,Q[ie])})}c&&Ko(c,e,"c");function pe(Q,ie){z(ie)?ie.forEach(Qe=>Q(Qe.bind(n))):ie&&Q(ie.bind(n))}if(pe(wa,m),pe(pn,w),pe(Sa,_),pe(xa,$),pe(ya,M),pe(_a,F),pe(Aa,Y),pe(Ea,he),pe(ka,te),pe(wo,E),pe(xr,V),pe(Ca,q),z(fe))if(fe.length){const Q=e.exposed||(e.exposed={});fe.forEach(ie=>{Object.defineProperty(Q,ie,{get:()=>n[ie],set:Qe=>n[ie]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===vt&&(e.render=H),Se!=null&&(e.inheritAttrs=Se),Te&&(e.components=Te),$e&&(e.directives=$e),q&&wr(e)}function Pa(e,t,n=vt){z(e)&&(e=Ys(e));for(const s in e){const o=e[s];let i;ue(o)?"default"in o?i=_t(o.from||s,o.default,!0):i=_t(o.from||s):i=_t(o),we(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function Ko(e,t,n){st(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cr(e,t,n,s){let o=s.includes(".")?_r(n,s):()=>n[s];if(be(e)){const i=t[e];Z(i)&&jt(o,i)}else if(Z(e))jt(o,e.bind(n));else if(ue(e))if(z(e))e.forEach(i=>Cr(i,t,n,s));else{const i=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(i)&&jt(o,i,e)}}function kr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(d=>ss(a,d,r,!0)),ss(a,t,r)),ue(t)&&i.set(t,a),a}function ss(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ss(e,i,n,!0),o&&o.forEach(r=>ss(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=Ia[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Ia={data:zo,props:Wo,emits:Wo,methods:_n,computed:_n,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:_n,directives:_n,watch:Ma,provide:zo,inject:$a};function zo(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 $a(e,t){return _n(Ys(e),Ys(t))}function Ys(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?Ie(Object.create(null),e,t):t}function Wo(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ie(Object.create(null),Bo(e),Bo(t??{})):t}function Ma(e,t){if(!e)return t;if(!t)return e;const n=Ie(Object.create(null),e);for(const s in t)n[s]=De(e[s],t[s]);return n}function Er(){return{app:null,config:{isNativeTag:Di,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 Na=0;function Da(e,t){return function(s,o=null){Z(s)||(s=Ie({},s)),o!=null&&!ue(o)&&(o=null);const i=Er(),r=new WeakSet,l=[];let a=!1;const d=i.app={_uid:Na++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:dc,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(s,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,ws(_.component)}},onUnmount(c){l.push(c)},unmount(){a&&(st(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=tn;tn=d;try{return c()}finally{tn=m}}};return d}}let tn=null;const Fa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${zt(t)}Modifiers`];function Va(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||me;let o=n;const i=t.startsWith("update:"),r=i&&Fa(s,t.slice(7));r&&(r.trim&&(o=n.map(c=>be(c)?c.trim():c)),r.number&&(o=o.map(fs)));let l,a=s[l=ks(t)]||s[l=ks(et(t))];!a&&i&&(a=s[l=ks(zt(t))]),a&&st(a,e,6,o);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(d,e,6,o)}}const La=new WeakMap;function Ar(e,t,n=!1){const s=n?La:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!Z(e)){const a=d=>{const c=Ar(d,t,!0);c&&(l=!0,Ie(r,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ue(e)&&s.set(e,null),null):(z(i)?i.forEach(a=>r[a]=null):Ie(r,i),ue(e)&&s.set(e,r),r)}function _s(e,t){return!e||!ls(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,zt(t))||ae(e,t))}function Go(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:a,render:d,renderCache:c,props:m,data:w,setupState:_,ctx:$,inheritAttrs:M}=e,F=es(e);let k,E;try{if(n.shapeFlag&4){const V=o||s,H=V;k=gt(d.call(H,V,c,m,_,w,$)),E=l}else{const V=t;k=gt(V.length>1?V(m,{attrs:l,slots:r,emit:a}):V(m,null)),E=t.props?l:Ha(l)}}catch(V){nn.length=0,ms(V,e,1),k=B(ot)}let N=k;if(E&&M!==!1){const V=Object.keys(E),{shapeFlag:H}=N;V.length&&H&7&&(i&&V.some(as)&&(E=ja(E,i)),N=un(N,E,!1,!0))}if(n.dirs&&(N=un(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition){const V=vs(N.type)&&br(N)||N;ts(V,n.transition)}return k=N,es(F),k}function Rr(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if($n(o)){if(o.type!==ot||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Ha=e=>{let t;for(const n in e)(n==="class"||n==="style"||ls(n))&&((t||(t={}))[n]=e[n]);return t},ja=(e,t)=>{const n={};for(const s in e)(!as(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ua(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?qo(s,r,d):!!r;if(a&8){const c=t.dynamicProps;for(let m=0;m<c.length;m++){const w=c[m];if(Tr(r,s,w)&&!_s(d,w))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===r?!1:s?r?qo(s,r,d):!0:!!r;return!1}function qo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const i=s[o];if(!ae(e,i)||Tr(t,e,i)&&!_s(n,i))return!0}return!1}function Tr(e,t,n){const s=e[n],o=t[n];return n==="style"&&ue(s)&&ue(o)?!nt(s,o):s!==o}function Ba({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Or={},Pr=()=>Object.create(Or),Ir=e=>Object.getPrototypeOf(e)===Or;function Ka(e,t,n,s=!1){const o={},i=Pr();e.propsDefaults=Object.create(null),$r(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:cr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function za(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=re(o),[a]=e.propsOptions;let d=!1;if((s||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(_s(e.emitsOptions,w))continue;const _=t[w];if(a)if(ae(i,w))_!==i[w]&&(i[w]=_,d=!0);else{const $=et(w);o[$]=Qs(a,l,$,_,e,!1)}else _!==i[w]&&(i[w]=_,d=!0)}}}else{$r(e,t,o,i)&&(d=!0);let c;for(const m in l)(!t||!ae(t,m)&&((c=zt(m))===m||!ae(t,c)))&&(a?n&&(n[m]!==void 0||n[c]!==void 0)&&(o[m]=Qs(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 $r(e,t,n,s){const[o,i]=e.propsOptions;let r=!1,l;if(t)for(let a in t){if(wn(a))continue;const d=t[a];let c;o&&ae(o,c=et(a))?!i||!i.includes(c)?n[c]=d:(l||(l={}))[c]=d:_s(e.emitsOptions,a)||(!(a in s)||d!==s[a])&&(s[a]=d,r=!0)}if(i){const a=re(n),d=l||me;for(let c=0;c<i.length;c++){const m=i[c];n[m]=Qs(o,a,m,d[m],e,!ae(d,m))}}return r}function Qs(e,t,n,s,o,i){const r=e[n];if(r!=null){const l=ae(r,"default");if(l&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&Z(a)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const c=Hn(o);s=d[n]=a.call(null,t),c()}}else s=a;o.ce&&o.ce._setProp(n,s)}r[0]&&(i&&!l?s=!1:r[1]&&(s===""||s===zt(n))&&(s=!0))}return s}const Wa=new WeakMap;function Mr(e,t,n=!1){const s=n?Wa:t.propsCache,o=s.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,_]=Mr(m,t,!0);Ie(r,w),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return ue(e)&&s.set(e,Xt),Xt;if(z(i))for(let c=0;c<i.length;c++){const m=et(i[c]);Jo(m)&&(r[m]=me)}else if(i)for(const c in i){const m=et(c);if(Jo(m)){const w=i[c],_=r[m]=z(w)||Z(w)?{type:w}:Ie({},w),$=_.type;let M=!1,F=!0;if(z($))for(let k=0;k<$.length;++k){const E=$[k],N=Z(E)&&E.name;if(N==="Boolean"){M=!0;break}else N==="String"&&(F=!1)}else M=Z($)&&$.name==="Boolean";_[0]=M,_[1]=F,(M||ae(_,"default"))&&l.push(m)}}const d=[r,l];return ue(e)&&s.set(e,d),d}function Jo(e){return e[0]!=="$"&&!wn(e)}const So=e=>e==="_"||e==="_ctx"||e==="$stable",xo=e=>z(e)?e.map(gt):[gt(e)],Ga=(e,t,n)=>{if(t._n)return t;const s=Yt((...o)=>xo(t(...o)),n);return s._c=!1,s},Nr=(e,t,n)=>{const s=e._ctx;for(const o in e){if(So(o))continue;const i=e[o];if(Z(i))t[o]=Ga(o,i,s);else if(i!=null){const r=xo(i);t[o]=()=>r}}},Dr=(e,t)=>{const n=xo(t);e.slots.default=()=>n},Fr=(e,t,n)=>{for(const s in t)(n||!So(s))&&(e[s]=t[s])},qa=(e,t,n)=>{const s=e.slots=Pr();if(e.vnode.shapeFlag&32){const o=t._;o?(Fr(s,t,n),n&&ji(s,"_",o,!0)):Nr(t,s)}else t&&Dr(e,t)},Ja=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=me;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Fr(o,t,n):(i=!t.$stable,Nr(t,o)),r=t}else t&&(Dr(e,t),r={default:1});if(i)for(const l in o)!So(l)&&r[l]==null&&delete o[l]},je=ec;function Ya(e){return Qa(e)}function Qa(e,t){const n=ds();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:l,createComment:a,setText:d,setElementText:c,parentNode:m,nextSibling:w,setScopeId:_=vt,insertStaticContent:$}=e,M=(f,g,b,h=null,v=null,p=null,x=void 0,T=null,I=!!g.dynamicChildren)=>{if(f===g)return;f&&!vn(f,g)&&(h=A(f),ke(f,v,p,!0),f=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null),g.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(g.dynamicChildren===Xt&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:O,ref:K,shapeFlag:L}=g;switch(O){case bs:F(f,g,b,h);break;case ot:k(f,g,b,h);break;case Ms:f==null&&E(g,b,h,x);break;case ne:Te(f,g,b,h,v,p,x,T,I);break;default:L&1?H(f,g,b,h,v,p,x,T,I):L&6?$e(f,g,b,h,v,p,x,T,I):(L&64||L&128)&&O.process(f,g,b,h,v,p,x,T,I,D)}K!=null&&v?Cn(K,f&&f.ref,p,g||f,!g):K==null&&f&&f.ref!=null&&Cn(f.ref,null,p,f,!0)},F=(f,g,b,h)=>{if(f==null)s(g.el=l(g.children),b,h);else{const v=g.el=f.el;g.children!==f.children&&d(v,g.children)}},k=(f,g,b,h)=>{f==null?s(g.el=a(g.children||""),b,h):g.el=f.el},E=(f,g,b,h)=>{[f.el,f.anchor]=$(f.children,g,b,h,f.el,f.anchor)},N=({el:f,anchor:g},b,h)=>{let v;for(;f&&f!==g;)v=w(f),s(f,b,h),f=v;s(g,b,h)},V=({el:f,anchor:g})=>{let b;for(;f&&f!==g;)b=w(f),o(f),f=b;o(g)},H=(f,g,b,h,v,p,x,T,I)=>{if(g.type==="svg"?x="svg":g.type==="math"&&(x="mathml"),f==null)he(g,b,h,v,p,x,T,I);else{const O=f.el&&f.el._isVueCE?f.el:null;try{O&&O._beginPatch(),q(f,g,v,p,x,T,I)}finally{O&&O._endPatch()}}},he=(f,g,b,h,v,p,x,T)=>{let I,O;const{props:K,shapeFlag:L,transition:W,dirs:J}=f;if(I=f.el=r(f.type,p,K&&K.is,K),L&8?c(I,f.children):L&16&&Y(f.children,I,null,h,v,$s(f,p),x,T),J&&Gt(f,null,h,"created"),te(I,f,f.scopeId,x,h),K){for(const ge in K)ge!=="value"&&!wn(ge)&&i(I,ge,null,K[ge],p,h);"value"in K&&i(I,"value",null,K.value,p),(O=K.onVnodeBeforeMount)&&dt(O,h,f)}J&&Gt(f,null,h,"beforeMount");const oe=Xa(v,W);oe&&W.beforeEnter(I),s(I,g,b),((O=K&&K.onVnodeMounted)||oe||J)&&je(()=>{try{O&&dt(O,h,f),oe&&W.enter(I),J&&Gt(f,null,h,"mounted")}finally{}},v)},te=(f,g,b,h,v)=>{if(b&&_(f,b),h)for(let p=0;p<h.length;p++)_(f,h[p]);if(v){let p=v.subTree;if(g===p||Hr(p.type)&&(p.ssContent===g||p.ssFallback===g)){const x=v.vnode;te(f,x,x.scopeId,x.slotScopeIds,v.parent)}}},Y=(f,g,b,h,v,p,x,T,I=0)=>{for(let O=I;O<f.length;O++){const K=f[O]=T?Rt(f[O]):gt(f[O]);M(null,K,g,b,h,v,p,x,T)}},q=(f,g,b,h,v,p,x)=>{const T=g.el=f.el;let{patchFlag:I,dynamicChildren:O,dirs:K}=g;I|=f.patchFlag&16;const L=f.props||me,W=g.props||me;let J;if(b&&qt(b,!1),(J=W.onVnodeBeforeUpdate)&&dt(J,b,g,f),K&&Gt(g,f,b,"beforeUpdate"),b&&qt(b,!0),O&&(!f.dynamicChildren||f.dynamicChildren.length!==O.length)&&(I=0,x=!1,O=null),(L.innerHTML&&W.innerHTML==null||L.textContent&&W.textContent==null)&&c(T,""),O?fe(f.dynamicChildren,O,T,b,h,$s(g,v),p):x||ie(f,g,T,null,b,h,$s(g,v),p,!1),I>0){if(I&16)Se(T,L,W,b,v);else if(I&2&&L.class!==W.class&&i(T,"class",null,W.class,v),I&4&&i(T,"style",L.style,W.style,v),I&8){const oe=g.dynamicProps;for(let ge=0;ge<oe.length;ge++){const de=oe[ge],xe=L[de],Oe=W[de];(Oe!==xe||de==="value")&&i(T,de,xe,Oe,v,b)}}I&1&&f.children!==g.children&&c(T,g.children)}else!x&&O==null&&Se(T,L,W,b,v);((J=W.onVnodeUpdated)||K)&&je(()=>{J&&dt(J,b,g,f),K&&Gt(g,f,b,"updated")},h)},fe=(f,g,b,h,v,p,x)=>{for(let T=0;T<g.length;T++){const I=f[T],O=g[T],K=I.el||Xs(I),L=K&&(I.type===ne||!vn(I,O)||I.shapeFlag&198)?m(K):b;M(I,O,L,null,h,v,p,x,!0)}},Se=(f,g,b,h,v)=>{if(g!==b){if(g!==me)for(const p in g)!wn(p)&&!(p in b)&&i(f,p,g[p],null,v,h);for(const p in b){if(wn(p))continue;const x=b[p],T=g[p];x!==T&&p!=="value"&&i(f,p,T,x,v,h)}"value"in b&&i(f,"value",g.value,b.value,v)}},Te=(f,g,b,h,v,p,x,T,I)=>{const O=g.el=f?f.el:l(""),K=g.anchor=f?f.anchor:l("");let{patchFlag:L,dynamicChildren:W,slotScopeIds:J}=g;J&&(T=T?T.concat(J):J),f==null?(s(O,b,h),s(K,b,h),Y(g.children||[],b,K,v,p,x,T,I)):L>0&&L&64&&W&&f.dynamicChildren&&f.dynamicChildren.length===W.length?(fe(f.dynamicChildren,W,b,v,p,x,T),(g.key!=null||v&&g===v.subTree)&&Vr(f,g,!0)):ie(f,g,b,K,v,p,x,T,I)},$e=(f,g,b,h,v,p,x,T,I)=>{g.slotScopeIds=T,f==null?g.shapeFlag&512?v.ctx.activate(g,b,h,x,I):Ct(g,b,h,v,p,x,I):Ge(f,g,I)},Ct=(f,g,b,h,v,p,x)=>{const T=f.component=rc(f,h,v);if(bo(f)&&(T.ctx.renderer=D),lc(T,!1,x),T.asyncDep){if(v&&v.registerDep(T,pe,x,p),!f.el){const I=T.subTree=B(ot);k(null,I,g,b),f.placeholder=I.el}}else pe(T,f,g,b,v,p,x)},Ge=(f,g,b)=>{const h=g.component=f.component;if(Ua(f,g,b))if(h.asyncDep&&!h.asyncResolved){g.el=f.el,g.placeholder=f.placeholder,Q(h,g,b);return}else h.next=g,h.update();else g.el=f.el,g.placeholder=f.placeholder,h.vnode=g},pe=(f,g,b,h,v,p,x)=>{const T=()=>{if(f.isMounted){let{next:L,bu:W,u:J,parent:oe,vnode:ge}=f;{const ut=Lr(f);if(ut){L&&(L.el=ge.el,Q(f,L,x)),ut.asyncDep.then(()=>{je(()=>{f.isUnmounted||O()},v)});return}}let de=L,xe;qt(f,!1),L?(L.el=ge.el,Q(f,L,x)):L=ge,W&&qn(W),(xe=L.props&&L.props.onVnodeBeforeUpdate)&&dt(xe,oe,L,ge),qt(f,!0);const Oe=Go(f),ct=f.subTree;f.subTree=Oe,M(ct,Oe,m(ct.el),A(ct),f,v,p),L.el=Oe.el,de===null&&Ba(f,Oe.el),J&&je(J,v),(xe=L.props&&L.props.onVnodeUpdated)&&je(()=>dt(xe,oe,L,ge),v)}else{let L;const{el:W,props:J}=g,{bm:oe,m:ge,parent:de,root:xe,type:Oe}=f,ct=kn(g);qt(f,!1),oe&&qn(oe),!ct&&(L=J&&J.onVnodeBeforeMount)&&dt(L,de,g),qt(f,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(Oe,f.parent?f.parent.type:void 0);const ut=f.subTree=Go(f);M(null,ut,b,h,f,v,p),g.el=ut.el}if(ge&&je(ge,v),!ct&&(L=J&&J.onVnodeMounted)){const ut=g;je(()=>dt(L,de,ut),v)}(g.shapeFlag&256||de&&kn(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&je(f.a,v),f.isMounted=!0,g=b=h=null}};f.scope.on();const I=f.effect=new qi(T);f.scope.off();const O=f.update=I.run.bind(I),K=f.job=I.runIfDirty.bind(I);K.i=f,K.id=f.uid,I.scheduler=()=>_o(K),qt(f,!0),O()},Q=(f,g,b)=>{g.component=f;const h=f.vnode.props;f.vnode=g,f.next=null,za(f,g.props,h,b),Ja(f,g.children,b),wt(),pr(f),St()},ie=(f,g,b,h,v,p,x,T,I=!1)=>{const O=f&&f.children,K=f?f.shapeFlag:0,L=g.children,{patchFlag:W,shapeFlag:J}=g;if(W>0){if(W&128){lt(O,L,b,h,v,p,x,T,I);return}else if(W&256){Qe(O,L,b,h,v,p,x,T,I);return}}J&8?(K&16&&He(O,v,p),L!==O&&c(b,L)):K&16?J&16?lt(O,L,b,h,v,p,x,T,I):He(O,v,p,!0):(K&8&&c(b,""),J&16&&Y(L,b,h,v,p,x,T,I))},Qe=(f,g,b,h,v,p,x,T,I)=>{f=f||Xt,g=g||Xt;const O=f.length,K=g.length,L=Math.min(O,K);let W;for(W=0;W<L;W++){const J=g[W]=I?Rt(g[W]):gt(g[W]);M(f[W],J,b,null,v,p,x,T,I)}O>K?He(f,v,p,!0,!1,L):Y(g,b,h,v,p,x,T,I,L)},lt=(f,g,b,h,v,p,x,T,I)=>{let O=0;const K=g.length;let L=f.length-1,W=K-1;for(;O<=L&&O<=W;){const J=f[O],oe=g[O]=I?Rt(g[O]):gt(g[O]);if(vn(J,oe))M(J,oe,b,null,v,p,x,T,I);else break;O++}for(;O<=L&&O<=W;){const J=f[L],oe=g[W]=I?Rt(g[W]):gt(g[W]);if(vn(J,oe))M(J,oe,b,null,v,p,x,T,I);else break;L--,W--}if(O>L){if(O<=W){const J=W+1,oe=J<K?g[J].el:h;for(;O<=W;)M(null,g[O]=I?Rt(g[O]):gt(g[O]),b,oe,v,p,x,T,I),O++}}else if(O>W)for(;O<=L;)ke(f[O],v,p,!0),O++;else{const J=O,oe=O,ge=new Map;for(O=oe;O<=W;O++){const Be=g[O]=I?Rt(g[O]):gt(g[O]);Be.key!=null&&ge.set(Be.key,O)}let de,xe=0;const Oe=W-oe+1;let ct=!1,ut=0;const gn=new Array(Oe);for(O=0;O<Oe;O++)gn[O]=0;for(O=J;O<=L;O++){const Be=f[O];if(xe>=Oe){ke(Be,v,p,!0);continue}let ft;if(Be.key!=null)ft=ge.get(Be.key);else for(de=oe;de<=W;de++)if(gn[de-oe]===0&&vn(Be,g[de])){ft=de;break}ft===void 0?ke(Be,v,p,!0):(gn[ft-oe]=O+1,ft>=ut?ut=ft:ct=!0,M(Be,g[ft],b,null,v,p,x,T,I),xe++)}const Po=ct?Za(gn):Xt;for(de=Po.length-1,O=Oe-1;O>=0;O--){const Be=oe+O,ft=g[Be],Io=g[Be+1],$o=Be+1<K?Io.el||Xs(Io):h;gn[O]===0?M(null,ft,b,$o,v,p,x,T,I):ct&&(de<0||O!==Po[de]?Me(ft,b,$o,2):de--)}}},Me=(f,g,b,h,v=null)=>{const{el:p,type:x,transition:T,children:I,shapeFlag:O}=f;if(O&6){Me(f.component.subTree,g,b,h);return}if(O&128){f.suspense.move(g,b,h);return}if(O&64){x.move(f,g,b,D);return}if(x===ne){s(p,g,b);for(let L=0;L<I.length;L++)Me(I[L],g,b,h);s(f.anchor,g,b);return}if(x===Ms){N(f,g,b);return}if(h!==2&&O&1&&T)if(h===0)T.persisted&&!p[Ps]?s(p,g,b):(T.beforeEnter(p),s(p,g,b),je(()=>T.enter(p),v));else{const{leave:L,delayLeave:W,afterLeave:J}=T,oe=()=>{f.ctx.isUnmounted?o(p):s(p,g,b)},ge=()=>{const de=p._isLeaving||!!p[Ps];p._isLeaving&&p[Ps](!0),T.persisted&&!de?oe():L(p,()=>{oe(),J&&J()})};W?W(p,oe,ge):ge()}else s(p,g,b)},ke=(f,g,b,h=!1,v=!1)=>{const{type:p,props:x,ref:T,children:I,dynamicChildren:O,shapeFlag:K,patchFlag:L,dirs:W,cacheIndex:J,memo:oe}=f;if((L===-2||O&&O.hasOnce)&&(v=!1),T!=null&&(wt(),Cn(T,null,b,f,!0),St()),J!=null&&(!f.ctx||f.ctx===g)&&(g.renderCache[J]=void 0),K&256){g.ctx.deactivate(f);return}const ge=K&1&&W,de=!kn(f);let xe;if(de&&(xe=x&&x.onVnodeBeforeUnmount)&&dt(xe,g,f),K&6)Xe(f.component,b,h);else{if(K&128){f.suspense.unmount(b,h);return}ge&&Gt(f,null,g,"beforeUnmount"),K&64?f.type.remove(f,g,b,D,h):O&&!O.hasOnce&&(p!==ne||L>0&&L&64)?He(O,g,b,!1,!0):(p===ne&&L&384||!v&&K&16)&&He(I,g,b),h&&Nt(f)}const Oe=oe!=null&&J==null;(de&&(xe=x&&x.onVnodeUnmounted)||ge||Oe)&&je(()=>{xe&&dt(xe,g,f),ge&&Gt(f,null,g,"unmounted"),Oe&&(f.el=null)},b)},Nt=f=>{const{type:g,el:b,anchor:h,transition:v}=f,p=g===ne;if(p&&!v){at(b,h);return}if(g===Ms){V(f),v&&!v.persisted&&v.afterLeave&&v.afterLeave();return}const x=p?Gs(f):f,T=()=>{p?m(b)&&at(b,h):o(b),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(x&&x.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:O}=v,K=x.el,L=()=>I(K,T);O?O(K,T,L):L()}else T()},at=(f,g)=>{let b;for(;f!==g;)b=w(f),o(f),f=b;o(g)},Xe=(f,g,b)=>{const{bum:h,scope:v,job:p,subTree:x,um:T,m:I,a:O}=f;Yo(I),Yo(O),h&&qn(h),v.stop(),p?(p.flags|=8,ke(x,f,g,b)):f.vnode.el&&x&&(x.transition=f.vnode.transition,ke(x,f,g,b)),T&&je(T,g),je(()=>{f.isUnmounted=!0},g)},He=(f,g,b,h=!1,v=!1,p=0)=>{for(let x=p;x<f.length;x++)ke(f[x],g,b,h,v)},A=f=>{if(f.shapeFlag&6)return A(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=w(f.anchor||f.el),b=g&&g[ma];return b?w(b):g},j=(f,g,b)=>{const h=f&&g._vnode?void 0:f&&f.component?f.component.uid:ic();fa(()=>{f==null?g._vnode&&ke(g._vnode,null,null,!0):M(g._vnode||null,f,g,null,null,null,b),g._vnode=f},h)},D={p:M,um:ke,m:Me,r:Nt,mt:Ct,mc:Y,pc:ie,pbc:fe,n:A,o:e};return{render:j,hydrate:void 0,createApp:Da(j)}}function $s({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function qt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vr(e,t,n=!1){const s=e.children,o=t.children;if(z(s)&&z(o))for(let i=0;i<s.length;i++){const r=s[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),!n&&l.patchFlag!==-2&&Vr(r,l)),l.type===bs&&(l.patchFlag===-1&&(l=o[i]=Rt(l)),l.el=r.el),l.type===ot&&!l.el&&(l.el=r.el)}}function Za(e){const t=e.slice(),n=[0];let s,o,i,r,l;const a=e.length;for(s=0;s<a;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(i=0,r=n.length-1;i<r;)l=i+r>>1,e[n[l]]<d?i=l+1:r=l;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Lr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lr(t)}function Yo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xs(t.subTree):null}const Hr=e=>e.__isSuspense;function ec(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):ua(e)}const ne=Symbol.for("v-fgt"),bs=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc"),nn=[];let Ke=null;function R(e=!1){nn.push(Ke=e?null:[])}function jr(){nn.pop(),Ke=nn[nn.length-1]||null}let In=1;function os(e,t=!1){In+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Ur(e){return e.dynamicChildren=In>0?Ke||Xt:null,jr(),In>0&&Ke&&Ke.push(e),e}function P(e,t,n,s,o,i){return Ur(u(e,t,n,s,o,i,!0))}function bt(e,t,n,s,o){return Ur(B(e,t,n,s,o,!0))}function $n(e){return e?e.__v_isVNode===!0:!1}function vn(e,t){return e.type===t.type&&e.key===t.key}const Br=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||Z(e)?{i:qe,r:e,k:t,f:!!n}:e:null);function u(e,t=null,n=null,s=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&&Br(t),ref:t&&Yn(t),scopeId:vr,slotScopeIds:null,children:n,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:qe};return l?(is(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),In>0&&!r&&Ke&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Ke.push(a),a}const B=tc;function tc(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Ra)&&(e=ot),$n(e)){const l=un(e,t,!0);return n&&is(l,n),In>0&&!i&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(fc(e)&&(e=e.__vccOpts),t){t=nc(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=ye(l)),ue(a)&&(gs(a)&&!z(a)&&(a=Ie({},a)),t.style=hs(a))}const r=be(e)?1:Hr(e)?128:vs(e)?64:ue(e)?4:Z(e)?2:0;return u(e,t,n,s,o,r,i,!0)}function nc(e){return e?gs(e)||Ir(e)?Ie({},e):e:null}function un(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:a}=e,d=t?sc(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Br(d),ref:t&&t.ref?n&&i?z(i)?i.concat(Yn(t)):[i,Yn(t)]:Yn(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&&un(e.ssContent),ssFallback:e.ssFallback&&un(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&s&&ts(c,a.clone(c)),c}function U(e=" ",t=0){return B(bs,null,e,t)}function ee(e="",t=!1){return t?(R(),bt(ot,null,e)):B(ot,null,e)}function gt(e){return e==null||typeof e=="boolean"?B(ot):z(e)?B(ne,null,e.slice()):$n(e)?Rt(e):B(bs,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:un(e)}function is(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),is(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ir(t)?t._ctx=qe:o===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Z(t)){if(s&65){is(e,{default:t});return}t={default:t,_ctx:qe},n=32}else t=String(t),s&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function sc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=ye([t.class,s.class]));else if(o==="style")t.style=hs([t.style,s.style]);else if(ls(o)){const i=t[o],r=s[o];r&&i!==r&&!(z(i)&&i.includes(r))?t[o]=i?[].concat(i,r):r:r==null&&i==null&&!as(o)&&(t[o]=r)}else o!==""&&(t[o]=s[o])}return t}function dt(e,t,n,s=null){st(e,t,7,[n,s])}const oc=Er();let Kr=0;function ic(){return Kr}function rc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||oc,i={uid:Kr++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zi(!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:Mr(s,o),emitsOptions:Ar(s,o),emit:null,emitted:null,propsDefaults:me,inheritAttrs:s.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,suspense:n,suspenseId:n?n.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=Va.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const zr=()=>Le||qe;let rs,Mn;{const e=ds(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};rs=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),Mn=t("__VUE_SSR_SETTERS__",n=>Nn=n)}const Hn=e=>{const t=Le;return rs(e),e.scope.on(),()=>{e.scope.off(),rs(t)}},Qo=()=>{Le&&Le.scope.off(),rs(null)};function Wr(e){return e.vnode.shapeFlag&4}let Nn=!1;function lc(e,t=!1,n=!1){t&&Mn(t);const{props:s,children:o}=e.vnode,i=Wr(e);Ka(e,s,i,t),qa(e,o,n||t);const r=i?ac(e,t):void 0;return t&&Mn(!1),r}function ac(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ta);const{setup:s}=n;if(s){wt();const o=e.setupContext=s.length>1?uc(e):null,i=Hn(e),r=Vn(s,e,0,[e.props,o]),l=Fi(r);if(St(),i(),(l||e.sp)&&!kn(e)&&wr(e),l){if(r.then(Qo,Qo),t)return r.then(a=>{Mn(!0);try{Xo(e,a,t)}finally{Mn(!1)}}).catch(a=>{ms(a,e,0)});e.asyncDep=r}else Xo(e,r)}else Gr(e)}function Xo(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=fr(t)),Gr(e)}function Gr(e,t,n){const s=e.type;e.render||(e.render=s.render||vt);{const o=Hn(e);wt();try{Oa(e)}finally{St(),o()}}}const cc={get(e,t){return Ne(e,"get",""),e[t]}};function uc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cc),slots:e.slots,emit:e.emit,expose:t}}function ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fr(yo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in En)return En[n](e)},has(t,n){return n in t||n in En}})):e.proxy}function fc(e){return Z(e)&&"__vccOpts"in e}const se=(e,t)=>ia(e,t,Nn);function qr(e,t,n){try{os(-1);const s=arguments.length;return s===2?ue(t)&&!z(t)?$n(t)?B(e,null,[t]):B(e,t):B(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&$n(n)&&(n=[n]),B(e,t,n))}finally{os(1)}}const dc="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 Zs;const Zo=typeof window<"u"&&window.trustedTypes;if(Zo)try{Zs=Zo.createPolicy("vue",{createHTML:e=>e})}catch{}const Jr=Zs?e=>Zs.createHTML(e):e=>e,hc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ei=At&&At.createElement("template"),gc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?At.createElementNS(hc,e):t==="mathml"?At.createElementNS(pc,e):n?At.createElement(e,{is:n}):At.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.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,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{ei.innerHTML=Jr(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=ei.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mc=Symbol("_vtc");function vc(e,t,n){const s=e[mc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),yc=Symbol("_vsh"),_c=Symbol(""),bc=/(?:^|;)\s*display\s*:/;function wc(e,t,n){const s=e.style,o=be(n);let i=!1;if(n&&!o){if(t)if(be(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&bn(s,l,"")}else for(const r in t)n[r]==null&&bn(s,r,"");for(const r in n){r==="display"&&(i=!0);const l=n[r];l!=null?xc(e,r,!be(t)&&t?t[r]:void 0,l)||bn(s,r,l):bn(s,r,"")}}else if(o){if(t!==n){const r=s[_c];r&&(n+=";"+r),s.cssText=n,i=bc.test(n)}}else t&&e.removeAttribute("style");ti in e&&((!o||t!==n)&&(e[ti]=i?s.display:""),e[yc]&&(s.display="none"))}const zn=/\s*!important$/;function bn(e,t,n){if(z(n))n.forEach(s=>bn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))zn.test(n)?e.setProperty(t,n.replace(zn,""),"important"):e.setProperty(t,n);else{const s=Sc(e,t);zn.test(n)?e.setProperty(zt(s),n.replace(zn,""),"important"):e[s]=n}}const ni=["Webkit","Moz","ms"],Ns={};function Sc(e,t){const n=Ns[t];if(n)return n;let s=et(t);if(s!=="filter"&&s in e)return Ns[t]=s;s=Hi(s);for(let o=0;o<ni.length;o++){const i=ni[o]+s;if(i in e)return Ns[t]=i}return t}function xc(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(s)&&n===s}const si="http://www.w3.org/1999/xlink";function oi(e,t,n,s,o,i=Pl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(si,t.slice(6,t.length)):e.setAttributeNS(si,t,n):n==null||i&&!Ui(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(n)?String(n):n)}function ii(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Jr(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ui(n):n==null&&l==="string"?(n="",r=!0):l==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(o||t)}function It(e,t,n,s){e.addEventListener(t,n,s)}function Cc(e,t,n,s){e.removeEventListener(t,n,s)}const ri=Symbol("_vei");function kc(e,t,n,s,o=null){const i=e[ri]||(e[ri]={}),r=i[t];if(s&&r)r.value=s;else{const[l,a]=Rc(t);if(s){const d=i[t]=Pc(s,o);It(e,l,d,a)}else r&&(Cc(e,l,r,a),i[t]=void 0)}}const Ec=/(Once|Passive|Capture)$/,Ac=/^on:?(?:Once|Passive|Capture)$/;function Rc(e){let t,n;for(;(n=e.match(Ec))&&!Ac.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):zt(e.slice(2)),t]}let Ds=0;const Tc=Promise.resolve(),Oc=()=>Ds||(Tc.then(()=>Ds=0),Ds=Date.now());function Pc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(z(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=o.slice(),l=[s];for(let a=0;a<r.length&&!s._stopped;a++){const d=r[a];d&&st(d,t,5,l)}}else st(o,t,5,[s])};return n.value=e,n.attached=Oc(),n}const li=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ic=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?vc(e,s,r):t==="style"?wc(e,n,s):ls(t)?as(t)||kc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$c(e,t,s,r))?(ii(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oi(e,t,s,r,i,t!=="value")):e._isVueCE&&(Mc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(s)))?ii(e,et(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),oi(e,t,s,r))};function $c(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&li(t)&&Z(n));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 li(t)&&be(n)?!1:t in e}function Mc(e,t){const n=e._def.props;if(!n)return!1;const s=et(t);return Array.isArray(n)?n.some(o=>et(o)===s):Object.keys(n).some(o=>et(o)===s)}const Kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>qn(t,n):t};function Nc(e){e.target.composing=!0}function ai(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze=Symbol("_assign"),Wn=Symbol("_initialValue");function Fs(e,t,n){return t&&(e=e.trim()),n&&(e=fs(e)),e}const Ut={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e.parentNode&&(e.type==="text"?e[Wn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Wn]=e.defaultValue.replace(/\r\n?/g,`
|
|
18
|
+
`))),e[ze]=Kt(o);const i=s||o.props&&o.props.type==="number";It(e,t?"change":"input",r=>{r.target.composing||e[ze](Fs(e.value,n,i))}),(n||i)&&It(e,"change",()=>{e.value=Fs(e.value,n,i)}),t||(It(e,"compositionstart",Nc),It(e,"compositionend",ai),It(e,"change",ai))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const o=t??"",i=e[Wn];delete e[Wn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[ze](Fs(e.value,n,s)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:i}},r){if(e[ze]=Kt(r),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?fs(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"&&(s&&t===n||o&&e.value.trim()===a)||(e.value=a)}},Dc={deep:!0,created(e,t,n){e[ze]=Kt(n),It(e,"change",()=>{const s=e._modelValue,o=fn(e),i=e.checked,r=e[ze];if(z(s)){const l=uo(s,o),a=l!==-1;if(i&&!a)r(s.concat(o));else if(!i&&a){const d=[...s];d.splice(l,1),r(d)}}else if($t(s)){const l=new Set(s);i?l.add(o):l.delete(o),r(l)}else r(Yr(e,i))})},mounted:ci,beforeUpdate(e,t,n){e[ze]=Kt(n),ci(e,t,n)}};function ci(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(z(t))o=uo(t,s.props.value)>-1;else if($t(t))o=t.has(s.props.value);else{if(t===n)return;o=nt(t,Yr(e,!0))}e.checked!==o&&(e.checked=o)}const Fc={created(e,{value:t},n){e.checked=nt(t,n.props.value),e[ze]=Kt(n),It(e,"change",()=>{e[ze](fn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[ze]=Kt(s),t!==n&&(e.checked=nt(t,s.props.value))}},Co={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,It(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?fs(fn(a)):fn(a)),i=e.multiple,r=i?$t(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[i,i?z(r)?o.slice():o:r];try{e[ze](r)}finally{Ln(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[ze]=Kt(s)},mounted(e,{value:t}){ui(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[ze]=Kt(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Vc(t,n[1],n[0]))&&ui(e,t)}};function Vc(e,t,n){if(!n||z(e))return nt(e,t);if($t(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function ui(e,t){const n=e.multiple,s=z(t);if(!(n&&!s&&!$t(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],l=fn(r);if(n)if(s){const a=typeof l;a==="string"||a==="number"?r.selected=t.some(d=>String(d)===String(l)):r.selected=uo(t,l)>-1}else r.selected=t.has(l);else if(nt(fn(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fn(e){return"_value"in e?e._value:e.value}function Yr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Lc={created(e,t,n){Gn(e,t,n,null,"created")},mounted(e,t,n){Gn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Gn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Gn(e,t,n,s,"updated")}};function Hc(e,t){switch(e){case"SELECT":return Co;case"TEXTAREA":return Ut;default:switch(t){case"checkbox":return Dc;case"radio":return Fc;default:return Ut}}}function Gn(e,t,n,s,o){const r=Hc(e.tagName,n.props&&n.props.type)[o];r&&r(e,t,n,s)}const jc=["ctrl","shift","alt","meta"],Uc={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)=>jc.some(n=>e[`${n}Key`]&&!t.includes(n))},eo=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r<t.length;r++){const l=Uc[t[r]];if(l&&l(o,t))return}return e(o,...i)})},Bc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Kc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=zt(o.key);if(t.some(r=>r===i||Bc[r]===i))return e(o)})},zc=Ie({patchProp:Ic},gc);let fi;function Wc(){return fi||(fi=Ya(zc))}const Gc=(...e)=>{const t=Wc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Jc(s);if(!o)return;const i=t._component;!Z(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,qc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function qc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jc(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 Qr;const Ss=e=>Qr=e,Xr=Symbol();function to(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var An;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(An||(An={}));function Yc(){const e=Wi(!0),t=e.run(()=>le({}));let n=[],s=[];const o=yo({install(i){Ss(o),o._a=i,i.provide(Xr,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Zr=()=>{};function di(e,t,n,s=Zr){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Gi()&&Ml(o),o}function rn(e,...t){e.slice().forEach(n=>{n(...t)})}const Qc=e=>e(),hi=Symbol(),Vs=Symbol();function no(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];to(o)&&to(s)&&e.hasOwnProperty(n)&&!we(s)&&!yt(s)?e[n]=no(o,s):e[n]=s}return e}const Xc=Symbol();function Zc(e){return!to(e)||!e.hasOwnProperty(Xc)}const{assign:Ft}=Object;function eu(e){return!!(we(e)&&e.effect)}function tu(e,t,n,s){const{state:o,actions:i,getters:r}=t,l=n.state.value[e];let a;function d(){l||(n.state.value[e]=o?o():{});const c=ta(n.state.value[e]);return Ft(c,i,Object.keys(r||{}).reduce((m,w)=>(m[w]=yo(se(()=>{Ss(n);const _=n._s.get(e);return r[w].call(_,_)})),m),{}))}return a=el(e,d,t,n,s,!0),a}function el(e,t,n={},s,o,i){let r;const l=Ft({actions:{}},n),a={deep:!0};let d,c,m=[],w=[],_;const $=s.state.value[e];!i&&!$&&(s.state.value[e]={});let M;function F(Y){let q;d=c=!1,typeof Y=="function"?(Y(s.state.value[e]),q={type:An.patchFunction,storeId:e,events:_}):(no(s.state.value[e],Y),q={type:An.patchObject,payload:Y,storeId:e,events:_});const fe=M=Symbol();Ln().then(()=>{M===fe&&(d=!0)}),c=!0,rn(m,q,s.state.value[e])}const k=i?function(){const{state:q}=n,fe=q?q():{};this.$patch(Se=>{Ft(Se,fe)})}:Zr;function E(){r.stop(),m=[],w=[],s._s.delete(e)}const N=(Y,q="")=>{if(hi in Y)return Y[Vs]=q,Y;const fe=function(){Ss(s);const Se=Array.from(arguments),Te=[],$e=[];function Ct(Q){Te.push(Q)}function Ge(Q){$e.push(Q)}rn(w,{args:Se,name:fe[Vs],store:H,after:Ct,onError:Ge});let pe;try{pe=Y.apply(this&&this.$id===e?this:H,Se)}catch(Q){throw rn($e,Q),Q}return pe instanceof Promise?pe.then(Q=>(rn(Te,Q),Q)).catch(Q=>(rn($e,Q),Promise.reject(Q))):(rn(Te,pe),pe)};return fe[hi]=!0,fe[Vs]=q,fe},V={_p:s,$id:e,$onAction:di.bind(null,w),$patch:F,$reset:k,$subscribe(Y,q={}){const fe=di(m,Y,q.detached,()=>Se()),Se=r.run(()=>jt(()=>s.state.value[e],Te=>{(q.flush==="sync"?c:d)&&Y({storeId:e,type:An.direct,events:_},Te)},Ft({},a,q)));return fe},$dispose:E},H=sn(V);s._s.set(e,H);const te=(s._a&&s._a.runWithContext||Qc)(()=>s._e.run(()=>(r=Wi()).run(()=>t({action:N}))));for(const Y in te){const q=te[Y];if(we(q)&&!eu(q)||yt(q))i||($&&Zc(q)&&(we(q)?q.value=$[Y]:no(q,$[Y])),s.state.value[e][Y]=q);else if(typeof q=="function"){const fe=N(q,Y);te[Y]=fe,l.actions[Y]=q}}return Ft(H,te),Ft(re(H),te),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:Y=>{F(q=>{Ft(q,Y)})}}),s._p.forEach(Y=>{Ft(H,r.run(()=>Y({store:H,app:s._a,pinia:s,options:l})))}),$&&i&&n.hydrate&&n.hydrate(H.$state,$),d=!0,c=!0,H}/*! #__NO_SIDE_EFFECTS__ */function xs(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(l,a){const d=da();return l=l||(d?_t(Xr,null):null),l&&Ss(l),l=Qr,l._s.has(s)||(i?el(s,t,o,l):tu(s,o,l)),l._s.get(s)}return r.$id=s,r}/*!
|
|
23
|
+
* vue-router v4.6.4
|
|
24
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/const cn=typeof document<"u";function tl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tl(e.default)}const ce=Object.assign;function Ls(e,t){const n={};for(const s in t){const o=t[s];n[s]=it(o)?o.map(e):e(o)}return n}const Rn=()=>{},it=Array.isArray;function pi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const nl=/#/g,su=/&/g,ou=/\//g,iu=/=/g,ru=/\?/g,sl=/\+/g,lu=/%5B/g,au=/%5D/g,ol=/%5E/g,cu=/%60/g,il=/%7B/g,uu=/%7C/g,rl=/%7D/g,fu=/%20/g;function ko(e){return e==null?"":encodeURI(""+e).replace(uu,"|").replace(lu,"[").replace(au,"]")}function du(e){return ko(e).replace(il,"{").replace(rl,"}").replace(ol,"^")}function so(e){return ko(e).replace(sl,"%2B").replace(fu,"+").replace(nl,"%23").replace(su,"%26").replace(cu,"`").replace(il,"{").replace(rl,"}").replace(ol,"^")}function hu(e){return so(e).replace(iu,"%3D")}function pu(e){return ko(e).replace(nl,"%23").replace(ru,"%3F")}function gu(e){return pu(e).replace(ou,"%2F")}function Dn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mu=/\/$/,vu=e=>e.replace(mu,"");function Hs(e,t,n="/"){let s,o={},i="",r="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),i=t.slice(a,l>0?l:t.length),o=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),r=t.slice(l,t.length)),s=wu(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:Dn(r)}}function yu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _u(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&dn(t.matched[s],n.matched[o])&&ll(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function dn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ll(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bu(e[n],t[n]))return!1;return!0}function bu(e,t){return it(e)?mi(e,t):it(t)?mi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function mi(e,t){return it(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function wu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,r,l;for(r=0;r<s.length;r++)if(l=s[r],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(r).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let oo=function(e){return e.pop="pop",e.push="push",e}({}),js=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Su(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vu(e)}const xu=/^[^#]+#/;function Cu(e,t){return e.replace(xu,"#")+t}function ku(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cs=()=>({left:window.scrollX,top:window.scrollY});function Eu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ku(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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const io=new Map;function Au(e,t){io.set(e,t)}function Ru(e){const t=io.get(e);return io.delete(e),t}function Tu(e){return typeof e=="string"||e&&typeof e=="object"}function al(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 cl=Symbol("");_e.MATCHER_NOT_FOUND+"",_e.NAVIGATION_GUARD_REDIRECT+"",_e.NAVIGATION_ABORTED+"",_e.NAVIGATION_CANCELLED+"",_e.NAVIGATION_DUPLICATED+"";function hn(e,t){return ce(new Error,{type:e,[cl]:!0},t)}function Et(e,t){return e instanceof Error&&cl in e&&(t==null||!!(e.type&t))}const Ou=["params","query","hash"];function Pu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ou)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Iu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(sl," "),i=o.indexOf("="),r=Dn(i<0?o:o.slice(0,i)),l=i<0?null:Dn(o.slice(i+1));if(r in t){let a=t[r];it(a)||(a=t[r]=[a]),a.push(l)}else t[r]=l}return t}function yi(e){let t="";for(let n in e){const s=e[n];if(n=hu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(it(s)?s.map(o=>o&&so(o)):[s&&so(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function $u(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=it(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Mu=Symbol(""),_i=Symbol(""),Eo=Symbol(""),ul=Symbol(""),ro=Symbol("");function yn(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,s,o,i=r=>r()){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const d=w=>{w===!1?a(hn(_e.NAVIGATION_ABORTED,{from:n,to:t})):w instanceof Error?a(w):Tu(w)?a(hn(_e.NAVIGATION_GUARD_REDIRECT,{from:t,to:w})):(r&&s.enterCallbacks[o]===r&&typeof w=="function"&&r.push(w),l())},c=i(()=>e.call(s&&s.instances[o],t,n,d));let m=Promise.resolve(c);e.length<3&&(m=m.then(d)),m.catch(w=>a(w))})}function Us(e,t,n,s,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(tl(a)){const d=(a.__vccOpts||a)[t];d&&i.push(Lt(d,n,s,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=nu(c)?c.default:c;r.mods[l]=c,r.components[l]=m;const w=(m.__vccOpts||m)[t];return w&&Lt(w,n,s,r,l,o)()}))}}return i}function Nu(e,t){const n=[],s=[],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=>dn(d,l))?s.push(l):n.push(l));const a=e.matched[r];a&&(t.matched.find(d=>dn(d,a))||o.push(a))}return[n,s,o]}/*!
|
|
27
|
+
* vue-router v4.6.4
|
|
28
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/let Du=()=>location.protocol+"//"+location.host;function fl(e,t){const{pathname:n,search:s,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),gi(l,"")}return gi(n,e)+s+o}function Fu(e,t,n,s){let o=[],i=[],r=null;const l=({state:w})=>{const _=fl(e,location),$=n.value,M=t.value;let F=0;if(w){if(n.value=_,t.value=w,r&&r===$){r=null;return}F=M?w.position-M.position:0}else s(_);o.forEach(k=>{k(n.value,$,{delta:F,type:oo.pop,direction:F?F>0?js.forward:js.back:js.unknown})})};function a(){r=n.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:Cs()}),"")}}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 bi(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Cs():null}}function Vu(e){const{history:t,location:n}=window,s={value:fl(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,d,c){const m=e.indexOf("#"),w=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+a:Du()+e+a;try{t[c?"replaceState":"pushState"](d,"",w),o.value=d}catch(_){console.error(_),n[c?"replace":"assign"](w)}}function r(a,d){i(a,ce({},t.state,bi(o.value.back,a,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=a}function l(a,d){const c=ce({},o.value,t.state,{forward:a,scroll:Cs()});i(c.current,c,!0),i(a,ce({},bi(s.value,a,null),{position:c.position+1},d),!1),s.value=a}return{location:s,state:o,push:l,replace:r}}function Lu(e){e=Su(e);const t=Vu(e),n=Fu(e,t.state,t.location,t.replace);function s(i,r=!0){r||n.pauseListeners(),history.go(i)}const o=ce({location:"",base:e,go:s,createHref:Cu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Hu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Lu(e)}let Zt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ee=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}(Ee||{});const ju={type:Zt.Static,value:""},Uu=/[a-zA-Z0-9_]/;function Bu(e){if(!e)return[[]];if(e==="/")return[[ju]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${n})/"${d}": ${_}`)}let n=Ee.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let l=0,a,d="",c="";function m(){d&&(n===Ee.Static?i.push({type:Zt.Static,value:d}):n===Ee.Param||n===Ee.ParamRegExp||n===Ee.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==="\\"&&n!==Ee.ParamRegExp){s=n,n=Ee.EscapeNext;continue}switch(n){case Ee.Static:a==="/"?(d&&m(),r()):a===":"?(m(),n=Ee.Param):w();break;case Ee.EscapeNext:w(),n=s;break;case Ee.Param:a==="("?n=Ee.ParamRegExp:Uu.test(a)?w():(m(),n=Ee.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Ee.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=Ee.ParamRegExpEnd:c+=a;break;case Ee.ParamRegExpEnd:m(),n=Ee.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===Ee.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),m(),r(),o}const wi="[^/]+?",Ku={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 zu=/[.+*?^${}()[\]/\\]/g;function Wu(e,t){const n=ce({},Ku,t),s=[];let o=n.start?"^":"";const i=[];for(const d of e){const c=d.length?[]:[Fe.Root];n.strict&&!d.length&&(o+="/");for(let m=0;m<d.length;m++){const w=d[m];let _=Fe.Segment+(n.sensitive?Fe.BonusCaseSensitive:0);if(w.type===Zt.Static)m||(o+="/"),o+=w.value.replace(zu,"\\$&"),_+=Fe.Static;else if(w.type===Zt.Param){const{value:$,repeatable:M,optional:F,regexp:k}=w;i.push({name:$,repeatable:M,optional:F});const E=k||wi;if(E!==wi){_+=Fe.BonusCustomRegExp;try{`${E}`}catch(V){throw new Error(`Invalid custom RegExp for param "${$}" (${E}): `+V.message)}}let N=M?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;m||(N=F&&d.length<2?`(?:/${N})`:"/"+N),F&&(N+="?"),o+=N,_+=Fe.Dynamic,F&&(_+=Fe.BonusOptional),M&&(_+=Fe.BonusRepeatable),E===".*"&&(_+=Fe.BonusWildcard)}c.push(_)}s.push(c)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=Fe.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,n.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:F}=_,k=$ in d?d[$]:"";if(it(k)&&!M)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const E=it(k)?k.join("/"):k;if(!E)if(F)w.length<2&&(c.endsWith("/")?c=c.slice(0,-1):m=!0);else throw new Error(`Missing required param "${$}"`);c+=E}}return c||"/"}return{re:r,score:s,keys:i,parse:l,stringify:a}}function Gu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}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 dl(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const i=Gu(s[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-s.length)===1){if(Si(s))return 1;if(Si(o))return-1}return o.length-s.length}function Si(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qu={strict:!1,end:!0,sensitive:!1};function Ju(e,t,n){const s=Wu(Bu(e.path),n),o=ce(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Yu(e,t){const n=[],s=new Map;t=pi(qu,t);function o(m){return s.get(m)}function i(m,w,_){const $=!_,M=Ci(m);M.aliasOf=_&&_.record;const F=pi(t,m),k=[M];if("alias"in m){const V=typeof m.alias=="string"?[m.alias]:m.alias;for(const H of V)k.push(Ci(ce({},M,{components:_?_.record.components:M.components,path:H,aliasOf:_?_.record:M})))}let E,N;for(const V of k){const{path:H}=V;if(w&&H[0]!=="/"){const he=w.record.path,te=he[he.length-1]==="/"?"":"/";V.path=w.record.path+(H&&te+H)}if(E=Ju(V,w,F),_?_.alias.push(E):(N=N||E,N!==E&&N.alias.push(E),$&&m.name&&!ki(E)&&r(m.name)),hl(E)&&a(E),M.children){const he=M.children;for(let te=0;te<he.length;te++)i(he[te],E,_&&_.children[te])}_=_||E}return N?()=>{r(N)}:Rn}function r(m){if(al(m)){const w=s.get(m);w&&(s.delete(m),n.splice(n.indexOf(w),1),w.children.forEach(r),w.alias.forEach(r))}else{const w=n.indexOf(m);w>-1&&(n.splice(w,1),m.record.name&&s.delete(m.record.name),m.children.forEach(r),m.alias.forEach(r))}}function l(){return n}function a(m){const w=Zu(m,n);n.splice(w,0,m),m.record.name&&!ki(m)&&s.set(m.record.name,m)}function d(m,w){let _,$={},M,F;if("name"in m&&m.name){if(_=s.get(m.name),!_)throw hn(_e.MATCHER_NOT_FOUND,{location:m});F=_.record.name,$=ce(xi(w.params,_.keys.filter(N=>!N.optional).concat(_.parent?_.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),m.params&&xi(m.params,_.keys.map(N=>N.name))),M=_.stringify($)}else if(m.path!=null)M=m.path,_=n.find(N=>N.re.test(M)),_&&($=_.parse(M),F=_.record.name);else{if(_=w.name?s.get(w.name):n.find(N=>N.re.test(w.path)),!_)throw hn(_e.MATCHER_NOT_FOUND,{location:m,currentLocation:w});F=_.record.name,$=ce({},w.params,m.params),M=_.stringify($)}const k=[];let E=_;for(;E;)k.unshift(E.record),E=E.parent;return{name:F,path:M,params:$,matched:k,meta:Xu(k)}}e.forEach(m=>i(m));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:c,getRoutes:l,getRecordMatcher:o}}function xi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Ci(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qu(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 Qu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ki(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xu(e){return e.reduce((t,n)=>ce(t,n.meta),{})}function Zu(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;dl(e,t[i])<0?s=i:n=i+1}const o=ef(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function ef(e){let t=e;for(;t=t.parent;)if(hl(t)&&dl(e,t)===0)return t}function hl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ei(e){const t=_t(Eo),n=_t(ul),s=se(()=>{const a=y(e.to);return t.resolve(a)}),o=se(()=>{const{matched:a}=s.value,{length:d}=a,c=a[d-1],m=n.matched;if(!c||!m.length)return-1;const w=m.findIndex(dn.bind(null,c));if(w>-1)return w;const _=Ai(a[d-2]);return d>1&&Ai(c)===_&&m[m.length-1].path!==_?m.findIndex(dn.bind(null,a[d-2])):w}),i=se(()=>o.value>-1&&of(n.params,s.value.params)),r=se(()=>o.value>-1&&o.value===n.matched.length-1&&ll(n.params,s.value.params));function l(a={}){if(sf(a)){const d=t[y(e.replace)?"replace":"push"](y(e.to)).catch(Rn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:se(()=>s.value.href),isActive:i,isExactActive:r,navigate:l}}function tf(e){return e.length===1?e[0]:e}const nf=Ue({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:Ei,setup(e,{slots:t}){const n=sn(Ei(e)),{options:s}=_t(Eo),o=se(()=>({[Ri(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ri(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&tf(t.default(n));return e.custom?i:qr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Qt=nf;function sf(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 of(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!it(o)||o.length!==s.length||s.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Ai(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ri=(e,t,n)=>e??t??n,rf=Ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=_t(ro),o=se(()=>e.route||s.value),i=_t(_i,0),r=se(()=>{let d=y(i);const{matched:c}=o.value;let m;for(;(m=c[d])&&!m.components;)d++;return d}),l=se(()=>o.value.matched[r.value]);Jn(_i,se(()=>r.value+1)),Jn(Mu,l),Jn(ro,o);const a=le();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&&(!_||!dn(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 Ti(n.default,{Component:w,route:d});const _=m.props[c],$=_?_===!0?d.params:typeof _=="function"?_(d):_:null,F=qr(w,ce({},$,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(m.instances[c]=null)},ref:a}));return Ti(n.default,{Component:F,route:d})||F}}});function Ti(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pl=rf;function lf(e){const t=Yu(e.routes,e),n=e.parseQuery||Iu,s=e.stringifyQuery||yi,o=e.history,i=yn(),r=yn(),l=yn(),a=Xl(Dt);let d=Dt;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ls.bind(null,A=>""+A),m=Ls.bind(null,gu),w=Ls.bind(null,Dn);function _(A,j){let D,G;return al(A)?(D=t.getRecordMatcher(A),G=j):G=A,t.addRoute(G,D)}function $(A){const j=t.getRecordMatcher(A);j&&t.removeRoute(j)}function M(){return t.getRoutes().map(A=>A.record)}function F(A){return!!t.getRecordMatcher(A)}function k(A,j){if(j=ce({},j||a.value),typeof A=="string"){const h=Hs(n,A,j.path),v=t.resolve({path:h.path},j),p=o.createHref(h.fullPath);return ce(h,v,{params:w(v.params),hash:Dn(h.hash),redirectedFrom:void 0,href:p})}let D;if(A.path!=null)D=ce({},A,{path:Hs(n,A.path,j.path).path});else{const h=ce({},A.params);for(const v in h)h[v]==null&&delete h[v];D=ce({},A,{params:m(h)}),j.params=m(j.params)}const G=t.resolve(D,j),f=A.hash||"";G.params=c(w(G.params));const g=yu(s,ce({},A,{hash:du(f),path:G.path})),b=o.createHref(g);return ce({fullPath:g,hash:f,query:s===yi?$u(A.query):A.query||{}},G,{redirectedFrom:void 0,href:b})}function E(A){return typeof A=="string"?Hs(n,A,a.value.path):ce({},A)}function N(A,j){if(d!==A)return hn(_e.NAVIGATION_CANCELLED,{from:j,to:A})}function V(A){return te(A)}function H(A){return V(ce(E(A),{replace:!0}))}function he(A,j){const D=A.matched[A.matched.length-1];if(D&&D.redirect){const{redirect:G}=D;let f=typeof G=="function"?G(A,j):G;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=E(f):{path:f},f.params={}),ce({query:A.query,hash:A.hash,params:f.path!=null?{}:A.params},f)}}function te(A,j){const D=d=k(A),G=a.value,f=A.state,g=A.force,b=A.replace===!0,h=he(D,G);if(h)return te(ce(E(h),{state:typeof h=="object"?ce({},f,h.state):f,force:g,replace:b}),j||D);const v=D;v.redirectedFrom=j;let p;return!g&&_u(s,G,D)&&(p=hn(_e.NAVIGATION_DUPLICATED,{to:v,from:G}),Me(G,G,!0,!1)),(p?Promise.resolve(p):fe(v,G)).catch(x=>Et(x)?Et(x,_e.NAVIGATION_GUARD_REDIRECT)?x:lt(x):ie(x,v,G)).then(x=>{if(x){if(Et(x,_e.NAVIGATION_GUARD_REDIRECT))return te(ce({replace:b},E(x.to),{state:typeof x.to=="object"?ce({},f,x.to.state):f,force:g}),j||v)}else x=Te(v,G,!0,b,f);return Se(v,G,x),x})}function Y(A,j){const D=N(A,j);return D?Promise.reject(D):Promise.resolve()}function q(A){const j=at.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(A):A()}function fe(A,j){let D;const[G,f,g]=Nu(A,j);D=Us(G.reverse(),"beforeRouteLeave",A,j);for(const h of G)h.leaveGuards.forEach(v=>{D.push(Lt(v,A,j))});const b=Y.bind(null,A,j);return D.push(b),He(D).then(()=>{D=[];for(const h of i.list())D.push(Lt(h,A,j));return D.push(b),He(D)}).then(()=>{D=Us(f,"beforeRouteUpdate",A,j);for(const h of f)h.updateGuards.forEach(v=>{D.push(Lt(v,A,j))});return D.push(b),He(D)}).then(()=>{D=[];for(const h of g)if(h.beforeEnter)if(it(h.beforeEnter))for(const v of h.beforeEnter)D.push(Lt(v,A,j));else D.push(Lt(h.beforeEnter,A,j));return D.push(b),He(D)}).then(()=>(A.matched.forEach(h=>h.enterCallbacks={}),D=Us(g,"beforeRouteEnter",A,j,q),D.push(b),He(D))).then(()=>{D=[];for(const h of r.list())D.push(Lt(h,A,j));return D.push(b),He(D)}).catch(h=>Et(h,_e.NAVIGATION_CANCELLED)?h:Promise.reject(h))}function Se(A,j,D){l.list().forEach(G=>q(()=>G(A,j,D)))}function Te(A,j,D,G,f){const g=N(A,j);if(g)return g;const b=j===Dt,h=cn?history.state:{};D&&(G||b?o.replace(A.fullPath,ce({scroll:b&&h&&h.scroll},f)):o.push(A.fullPath,f)),a.value=A,Me(A,j,D,b),lt()}let $e;function Ct(){$e||($e=o.listen((A,j,D)=>{if(!Xe.listening)return;const G=k(A),f=he(G,Xe.currentRoute.value);if(f){te(ce(f,{replace:!0,force:!0}),G).catch(Rn);return}d=G;const g=a.value;cn&&Au(vi(g.fullPath,D.delta),Cs()),fe(G,g).catch(b=>Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_CANCELLED)?b:Et(b,_e.NAVIGATION_GUARD_REDIRECT)?(te(ce(E(b.to),{force:!0}),G).then(h=>{Et(h,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&!D.delta&&D.type===oo.pop&&o.go(-1,!1)}).catch(Rn),Promise.reject()):(D.delta&&o.go(-D.delta,!1),ie(b,G,g))).then(b=>{b=b||Te(G,g,!1),b&&(D.delta&&!Et(b,_e.NAVIGATION_CANCELLED)?o.go(-D.delta,!1):D.type===oo.pop&&Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Se(G,g,b)}).catch(Rn)}))}let Ge=yn(),pe=yn(),Q;function ie(A,j,D){lt(A);const G=pe.list();return G.length?G.forEach(f=>f(A,j,D)):console.error(A),Promise.reject(A)}function Qe(){return Q&&a.value!==Dt?Promise.resolve():new Promise((A,j)=>{Ge.add([A,j])})}function lt(A){return Q||(Q=!A,Ct(),Ge.list().forEach(([j,D])=>A?D(A):j()),Ge.reset()),A}function Me(A,j,D,G){const{scrollBehavior:f}=e;if(!cn||!f)return Promise.resolve();const g=!D&&Ru(vi(A.fullPath,0))||(G||!D)&&history.state&&history.state.scroll||null;return Ln().then(()=>f(A,j,g)).then(b=>b&&Eu(b)).catch(b=>ie(b,A,j))}const ke=A=>o.go(A);let Nt;const at=new Set,Xe={currentRoute:a,listening:!0,addRoute:_,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:F,getRoutes:M,resolve:k,options:e,push:V,replace:H,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:r.add,afterEach:l.add,onError:pe.add,isReady:Qe,install(A){A.component("RouterLink",Qt),A.component("RouterView",pl),A.config.globalProperties.$router=Xe,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),cn&&!Nt&&a.value===Dt&&(Nt=!0,V(o.location).catch(G=>{}));const j={};for(const G in Dt)Object.defineProperty(j,G,{get:()=>a.value[G],enumerable:!0});A.provide(Eo,Xe),A.provide(ul,cr(j)),A.provide(ro,a);const D=A.unmount;at.add(A),A.unmount=function(){at.delete(A),at.size<1&&(d=Dt,$e&&$e(),$e=null,a.value=Dt,Nt=!1,Q=!1),D()}}};function He(A){return A.reduce((j,D)=>j.then(()=>q(D)),Promise.resolve())}return Xe}class af{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 n;clearTimeout(this.timer),(n=this.socket)==null||n.close();const t=new WebSocket(this.url);this.socket=t,t.onopen=()=>{var s;this.attempts=0,this.stateHandlers.forEach(o=>o(!0)),(s=this.reconnectAfterResync)==null||s.call(this)},t.onmessage=s=>{try{const o=JSON.parse(s.data);this.handlers.forEach(i=>i(o))}catch{}},t.onclose=()=>{this.stateHandlers.forEach(o=>o(!1)),this.attempts+=1;const s=Math.min(15e3,1e3*2**(this.attempts-1));this.timer=window.setTimeout(()=>this.connect(),s)},t.onerror=()=>t.close()}}let Oi;function cf(){return Oi??(Oi=new af),Oi}class Ao extends Error{constructor(t,n,s,o){super(s),this.status=t,this.code=n,this.details=o,this.name="ApiError"}}async function Pe(e,t){const n=await fetch(e,{...t,headers:{"content-type":"application/json",...(t==null?void 0:t.headers)??{}}}),s=await n.json().catch(()=>({code:"INVALID_RESPONSE",message:"响应不是合法 JSON"}));if(!n.ok){const o=s;throw new Ao(n.status,o.code??"UNKNOWN_ERROR",o.message??"请求失败",o.details)}return s}async function Pi(e){const t=new URLSearchParams({filename:e.name}),n=await fetch(`/api/uploads?${t}`,{method:"POST",headers:{"content-type":"application/octet-stream"},body:e}),s=await n.json().catch(()=>({code:"INVALID_RESPONSE",message:"上传响应不是合法 JSON"}));if(!n.ok){const o=s;throw new Ao(n.status,o.code??"UNKNOWN_ERROR",o.message??"文件上传失败",o.details)}return s}const Ce={doctor:()=>Pe("/api/doctor"),recheckDoctor:()=>Pe("/api/doctor/recheck",{method:"POST"}),install:e=>Pe(`/api/doctor/install/${e}`,{method:"POST"}),uninstall:e=>Pe(`/api/doctor/uninstall/${e}`,{method:"POST"}),features:()=>Pe("/api/features"),tasks:()=>Pe("/api/tasks"),revealTask:e=>Pe(`/api/tasks/${e}/reveal`,{method:"POST"}),revealPath:e=>Pe("/api/reveal",{method:"POST",body:JSON.stringify({path:e})}),wxStatus:()=>Pe("/api/wx/status"),wxActivate:e=>Pe("/api/wx/activate",{method:"POST",body:JSON.stringify({token:e})}),deleteHistory:e=>Pe(`/api/history/${e}`,{method:"DELETE"}),clearHistory:()=>Pe("/api/history/clear",{method:"POST"}),serviceStop:()=>Pe("/api/service/stop",{method:"POST"}),settings:()=>Pe("/api/settings"),selectOutputDir:()=>Pe("/api/settings/select-output-dir",{method:"POST"}),saveSettings:e=>Pe("/api/settings",{method:"POST",body:JSON.stringify(e)}),convert:e=>Pe("/api/convert",{method:"POST",body:JSON.stringify(e)})},Ro=xs("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,n)=>t+n.features.length,0)},actions:{async load(){this.loading=!0;try{this.statuses=await Ce.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 Ce.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,n){if(this.installSession.state==="progress")throw new Ao(409,"OPERATION_IN_PROGRESS","已有依赖操作进行中");this.installSession={depId:e,state:"progress",logs:[t]},(n==="install"?Ce.install(e):Ce.uninstall(e)).catch(s=>{this.installSession={depId:e,state:"failed",logs:[t,`操作未启动:${s.message}`],error:{depId:e,exitCode:1,stderrTail:s.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(n=>n.trim());this.installSession={depId:e.depId,state:"failed",logs:[`操作失败(退出码 ${e.exitCode})`,...t],error:e}}}}),To=xs("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 Ce.features(),this.error=""}finally{this.loading=!1}}}}),Oo=xs("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 Ce.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(n=>n.taskId===e.taskId);t<0?this.tasks.unshift(e):this.tasks[t]=e}}}),gl=xs("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 Ce.settings(),this.form={...this.settings},this.error=""}finally{this.loading=!1}},async save(){const e={...this.form};this.saving=!0;try{this.settings=await Ce.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}}}}),uf=3456,lo=`http://127.0.0.1:${uf}`,ff="https://duduer.com";function jn(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function ml(){return/Windows|Win32|Win64/i.test(navigator.userAgent)?"windows":"macos"}async function df(e=1500){const t=new AbortController,n=setTimeout(()=>t.abort(),e);try{return await fetch(`${lo}/api/doctor`,{mode:"no-cors",cache:"no-store",signal:t.signal}),!0}catch{return!1}finally{clearTimeout(n)}}function hf(){return jn()?ff:location.origin}function vl(e){const t=hf();return e==="macos"?`curl -fsSL ${t}/install.sh | sh`:`irm ${t}/install.ps1 | iex`}function pf(){const e=Ro(),t=To(),n=Oo(),s=gl(),o=cf();async function i(){await Promise.all([e.load(),t.load(),n.load()])}async function r(){await t.load()}function l(a){a.type==="doctor:status"?(e.statuses=a.data,r()):a.type==="task:update"?n.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)}pn(async()=>{jn()&&(o.onMessage(l),o.onConnectionChange(a=>{e.connected=a}),o.onResync(i),o.connect(),await Promise.all([i(),s.load()]))}),wo(()=>{})}const C={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"},common:{retry:"重试",close:"关闭",loading:"加载中…",save:"保存",cancel:"取消"}},gf={class:"app-shell"},mf={class:"app-header"},vf=Ue({__name:"App",setup(e){pf();const t=Ro(),n=jn();return(s,o)=>(R(),P("div",gf,[u("header",mf,[B(y(Qt),{to:"/",class:"brand"},{default:Yt(()=>[o[0]||(o[0]=u("span",{class:"logo"},"嘟",-1)),u("strong",null,S(y(C).appName),1)]),_:1}),u("nav",null,[B(y(Qt),{to:"/"},{default:Yt(()=>[U(S(y(C).nav.home),1)]),_:1}),B(y(Qt),{to:"/workbench"},{default:Yt(()=>[U(S(y(C).nav.workbench),1)]),_:1}),y(n)?(R(),bt(y(Qt),{key:0,to:"/history"},{default:Yt(()=>[U(S(y(C).nav.history),1)]),_:1})):ee("",!0),y(n)?(R(),bt(y(Qt),{key:1,to:"/settings"},{default:Yt(()=>[U(S(y(C).nav.settings),1)]),_:1})):ee("",!0)]),y(n)?(R(),P("span",{key:0,class:ye(["connection",{offline:!y(t).connected}])},[o[1]||(o[1]=u("i",{class:"dot"},null,-1)),U(S(y(t).connected?y(C).connection.connected:y(C).connection.disconnected),1)],2)):ee("",!0)]),u("main",null,[B(y(pl))])]))}}),rt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},yf=rt(vf,[["__scopeId","data-v-d515a3c6"]]),_f={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"]},yl={video:"video",audio:"music",image:"image",archive:"archive",office:"office",pdf:"pdf",markdown:"markdown"},bf=["width","height"],wf=["d"],Sf=Ue({__name:"AppIcon",props:{name:{},size:{default:20}},setup(e){const t=e;return(n,s)=>(R(),P("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"},[(R(!0),P(ne,null,Re(y(_f)[t.name],(o,i)=>(R(),P("path",{key:i,d:o},null,8,wf))),128))],8,bf))}}),X=rt(Sf,[["__scopeId","data-v-84fb32bd"]]),xf={class:"history","data-testid":"history"},Cf={class:"page-title"},kf={class:"page-subtitle"},Ef={class:"toolbar"},Af={class:"filters"},Rf=["onClick"],Tf={class:"toolbar-right"},Of={class:"search"},Pf=["placeholder"],If={key:0,class:"hint-alert"},$f={key:1,class:"panel empty"},Mf={class:"day-head"},Nf={class:"panel day-list"},Df={class:"item-main"},Ff={class:"item-title"},Vf=["title"],Lf={class:"arrow"},Hf={class:"target"},jf={class:"item-meta"},Uf={class:"error-text"},Bf={key:0,class:"spinner tiny"},Kf={class:"item-actions"},zf=["onClick"],Wf=["title","onClick"],Gf=Ue({__name:"HistoryView",setup(e){const t=Oo(),n=To(),s=le("all"),o=le("");pn(()=>{t.load(),n.load()});const i=se(()=>({total:t.tasks.length,success:t.tasks.filter(k=>k.status==="success").length,failed:t.tasks.filter(k=>k.status==="failed").length})),r=se(()=>t.tasks.filter(k=>!(s.value!=="all"&&k.status!==s.value||o.value.trim()&&!k.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort((k,E)=>E.startedAt.localeCompare(k.startedAt))),l=le("");async function a(k){l.value="";try{await Ce.revealTask(k.taskId)}catch(E){l.value=E instanceof Error?E.message:"打开目录失败"}}async function d(k){l.value="";try{await Ce.deleteHistory(k),await t.load()}catch(E){t.error=E instanceof Error?E.message:"删除失败"}}async function c(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await Ce.clearHistory(),await t.load()}catch(k){t.error=k instanceof Error?k.message:"清空失败"}}function m(k){const E=new Date(k);if(Number.isNaN(E.getTime()))return"";const N=new Date,V=te=>new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime(),H=Math.round((V(N)-V(E))/864e5);return H<=0?C.history.today:H===1?C.history.yesterday:E.getFullYear()===N.getFullYear()?`${E.getMonth()+1} 月 ${E.getDate()} 日`:`${E.getFullYear()} 年 ${E.getMonth()+1} 月 ${E.getDate()} 日`}const w=se(()=>{const k=new Map;for(const E of r.value){const N=m(E.startedAt),V=k.get(N);V?V.push(E):k.set(N,[E])}return[...k.entries()]});function _(k){const E=new Date(k);return Number.isNaN(E.getTime())?"":`${String(E.getHours()).padStart(2,"0")}:${String(E.getMinutes()).padStart(2,"0")}`}function $(k){return k.split(/[\\/]/).pop()??k}function M(k){var N;const E=(N=n.byKey.get(k.conversionKey))==null?void 0:N.category;return yl[E??"file"]??"file"}function F(k){var E;return((E=n.byKey.get(k.conversionKey))==null?void 0:E.label)??k.conversionKey}return(k,E)=>(R(),P("section",xf,[u("h1",Cf,S(y(C).history.title),1),u("p",kf,S(y(C).history.subtitle),1),u("div",Ef,[u("div",Af,[(R(!0),P(ne,null,Re([{key:"all",label:y(C).history.filterAll,count:i.value.total},{key:"success",label:y(C).history.statSuccess,count:i.value.success},{key:"failed",label:y(C).history.statFailed,count:i.value.failed}],N=>(R(),P("button",{key:N.key,type:"button",class:ye(["filter-chip",{active:s.value===N.key}]),onClick:V=>s.value=N.key},[U(S(N.label)+" ",1),u("em",null,S(N.count),1)],10,Rf))),128))]),u("div",Tf,[u("div",Of,[B(X,{name:"file",size:14}),Pt(u("input",{"onUpdate:modelValue":E[0]||(E[0]=N=>o.value=N),type:"text",placeholder:y(C).history.searchPlaceholder},null,8,Pf),[[Ut,o.value]])]),y(t).tasks.length?(R(),P("button",{key:0,class:"ghost danger",type:"button",onClick:c},[B(X,{name:"x",size:13}),U(S(y(C).history.clear),1)])):ee("",!0)])]),l.value?(R(),P("p",If,[B(X,{name:"alert-circle",size:15}),U(S(l.value),1)])):ee("",!0),r.value.length?ee("",!0):(R(),P("div",$f,[B(X,{name:"folder",size:36}),u("span",null,S(y(C).history.empty),1)])),(R(!0),P(ne,null,Re(w.value,([N,V])=>(R(),P("div",{key:N,class:"day-group"},[u("div",Mf,[U(S(N),1),u("em",null,S(V.length)+" 条",1)]),u("div",Nf,[(R(!0),P(ne,null,Re(V,H=>(R(),P("article",{key:H.taskId,class:"history-item"},[u("span",{class:ye(["item-icon",H.status])},[B(X,{name:M(H),size:18},null,8,["name"])],2),u("div",Df,[u("div",Ff,[u("strong",{title:H.input},S($(H.input)),9,Vf),u("span",Lf,[B(X,{name:"arrow-right",size:13})]),u("span",Hf,S(H.targetFormat.toUpperCase()),1)]),u("div",jf,[U(S(F(H))+" · "+S(_(H.startedAt))+S(H.durationMs?` · ${H.durationMs} ms`:"")+" ",1),H.error?(R(),P(ne,{key:0},[E[1]||(E[1]=U(" · ",-1)),u("span",Uf,S(H.error.message),1)],64)):ee("",!0)])]),u("span",{class:ye(["badge row-badge",H.status])},[H.status==="running"?(R(),P("span",Bf)):ee("",!0),U(" "+S(H.status==="success"?y(C).workbench.statusSuccess:H.status==="failed"?y(C).workbench.statusFailed:H.status==="running"?y(C).workbench.statusRunning:y(C).workbench.statusPending),1)],2),u("div",Kf,[H.status==="success"?(R(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:he=>a(H)},[B(X,{name:"folder",size:13}),U(S(y(C).history.openFolder),1)],8,zf)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(C).history.remove,onClick:he=>d(H.taskId)},[B(X,{name:"x",size:14})],8,Wf)])]))),128))])]))),128))]))}}),qf=rt(Gf,[["__scopeId","data-v-b299457c"]]),Jf={class:"landing","data-testid":"landing"},Yf={class:"hero"},Qf={class:"hero-grid"},Xf={class:"hero-copy"},Zf={class:"hero-badge"},ed={class:"tagline"},td={class:"cta-row"},nd={key:0,class:"local-badge"},sd={class:"terminal-card","data-testid":"install-guide"},od={class:"term-head"},id={class:"term-pills"},rd={class:"term-body"},ld={class:"command-row"},ad={"data-testid":"install-command"},cd={class:"stats"},ud={class:"section"},fd={class:"section-sub"},dd={class:"pain-grid"},hd={class:"icon pain"},pd={class:"section"},gd={class:"section-sub"},md={class:"value-grid"},vd={class:"icon value"},yd={class:"section"},_d={class:"section-sub"},bd={class:"scene-grid"},wd={class:"icon scene"},Sd={id:"features",class:"section"},xd={class:"section-sub"},Cd={class:"category-grid"},kd={class:"icon cat"},Ed={class:"cat-body"},Ad={class:"section"},Rd={class:"section-sub"},Td={class:"table-wrap"},Od={class:"compare-table"},Pd={class:"c-item"},Id={class:"c-online"},$d={class:"c-local"},Md={class:"section"},Nd={class:"section-sub"},Dd={class:"faq"},Fd={class:"landing-footer muted"},Vd=Ue({__name:"LandingView",setup(e){const t=jn(),n=le(ml()),s=se(()=>vl(n.value)),o=le(!1);async function i(){try{await navigator.clipboard.writeText(s.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)=>(R(),P("section",Jf,[u("div",Yf,[u("div",Qf,[u("div",Xf,[u("span",Zf,[B(X,{name:"sparkles",size:14}),U(S(y(C).landing.heroBadge),1)]),u("h1",null,[U(S(y(C).landing.heroTitle),1),u("em",null,S(y(C).landing.heroAccent),1)]),u("p",ed,S(y(C).landing.heroTagline),1),u("div",td,[B(y(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[U(S(y(C).landing.cta),1),B(X,{name:"arrow-right",size:16})]),_:1}),u("button",{class:"btn ghost",type:"button",onClick:r},[d[2]||(d[2]=U("了解功能",-1)),B(X,{name:"chevron-down",size:15})])]),y(t)?(R(),P("p",nd,[B(X,{name:"check-circle",size:14}),U(S(y(C).landing.localRunning),1)])):ee("",!0)]),u("div",sd,[u("div",od,[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",id,[u("button",{type:"button",class:ye({active:n.value==="macos"}),onClick:d[0]||(d[0]=c=>n.value="macos")},"macOS",2),u("button",{type:"button",class:ye({active:n.value==="windows"}),onClick:d[1]||(d[1]=c=>n.value="windows")},"Windows",2)])]),u("div",rd,[u("div",ld,[u("code",ad,[d[5]||(d[5]=u("span",{class:"prompt"},"$",-1)),U(S(s.value),1)])]),u("button",{class:ye(["one-click",{ok:o.value}]),type:"button","data-testid":"install-copy",onClick:i},[B(X,{name:o.value?"check-circle":"copy",size:15},null,8,["name"]),U(" "+S(o.value?"已复制!打开终端粘贴回车即可":"一键复制安装命令"),1)],2),d[6]||(d[6]=u("ol",{class:"term-steps"},[u("li",null,[u("span",null,"1"),U("点击上方按钮复制安装命令")]),u("li",null,[u("span",null,"2"),U("打开终端粘贴并回车(macOS:⌘+空格 搜「终端」;Windows:开始菜单搜 PowerShell)")]),u("li",null,[u("span",null,"3"),U("安装全自动完成,浏览器自动打开转换器")])],-1))])])]),u("div",cd,[(R(!0),P(ne,null,Re(y(C).landing.stats,c=>(R(),P("div",{key:c.label,class:"stat"},[u("strong",null,S(c.value),1),u("span",null,S(c.label),1)]))),128))])]),u("div",ud,[u("h2",null,S(y(C).landing.painTitle),1),u("p",fd,S(y(C).landing.painSub),1),u("div",dd,[(R(!0),P(ne,null,Re(y(C).landing.pains,c=>(R(),P("article",{key:c.title,class:"pain-card"},[u("span",hd,[B(X,{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",pd,[u("h2",null,S(y(C).landing.valueTitle),1),u("p",gd,S(y(C).landing.valueSub),1),u("div",md,[(R(!0),P(ne,null,Re(y(C).landing.values,c=>(R(),P("article",{key:c.title,class:"value-card"},[u("span",vd,[B(X,{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",yd,[u("h2",null,S(y(C).landing.scenesTitle),1),u("p",_d,S(y(C).landing.scenesSub),1),u("div",bd,[(R(!0),P(ne,null,Re(y(C).landing.scenes,c=>(R(),P("article",{key:c.title,class:"scene-card"},[u("span",wd,[B(X,{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",Sd,[u("h2",null,S(y(C).landing.featuresTitle),1),u("p",xd,S(y(C).landing.featuresSub),1),u("div",Cd,[(R(),P(ne,null,Re(l,c=>u("article",{key:c.title,class:"category-card"},[u("span",kd,[B(X,{name:c.icon,size:21},null,8,["name"])]),u("div",Ed,[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",Ad,[u("h2",null,S(y(C).landing.compareTitle),1),u("p",Rd,S(y(C).landing.compareSub),1),u("div",Td,[u("table",Od,[d[7]||(d[7]=u("thead",null,[u("tr",null,[u("th",null,"对比项"),u("th",null,"在线转换工具"),u("th",null,"嘟嘟转换器")])],-1)),u("tbody",null,[(R(!0),P(ne,null,Re(y(C).landing.compare,c=>(R(),P("tr",{key:c.item},[u("td",Pd,S(c.item),1),u("td",Id,S(c.online),1),u("td",$d,[B(X,{name:"check-circle",size:14}),U(S(c.local),1)])]))),128))])])])]),u("div",Md,[u("h2",null,S(y(C).landing.faqTitle),1),u("p",Nd,S(y(C).landing.faqSub),1),u("div",Dd,[(R(!0),P(ne,null,Re(y(C).landing.faq,c=>(R(),P("details",{key:c.q,class:"faq-item"},[u("summary",null,[U(S(c.q),1),B(X,{name:"chevron-down",size:15})]),u("p",null,S(c.a),1)]))),128))])]),u("footer",Fd,S(y(C).landing.footer),1)]))}}),Ld=rt(Vd,[["__scopeId","data-v-63ba655a"]]),Hd=Ue({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,n=se(()=>C.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(s,o)=>(R(),P("span",{class:ye(["badge",e.state])},S(n.value),3))}}),jd={class:"tool-info"},Ud={class:"title"},Bd={key:0,class:"chip version"},Kd={class:"muted"},zd={class:"actions"},Wd=["disabled"],Gd=["disabled"],qd=Ue({__name:"DependencyRow",props:{status:{},installing:{type:Boolean}},emits:["install","uninstall"],setup(e,{emit:t}){const n=e,s=t;let o;const i=le(!1);async function r(){n.status.installCommand&&(await navigator.clipboard.writeText(n.status.installCommand),i.value=!0,clearTimeout(o),o=window.setTimeout(()=>{i.value=!1},2e3))}return(l,a)=>(R(),P("article",{class:ye(["dependency-row",`is-${e.status.state}`])},[u("div",jd,[u("div",Ud,[u("strong",null,S(e.status.name),1),B(Hd,{state:e.status.state},null,8,["state"]),e.status.version?(R(),P("span",Bd,S(e.status.version),1)):ee("",!0)]),u("p",Kd,S(e.status.description),1)]),u("div",zd,[e.status.installCommand&&(!e.status.installed||e.status.state==="outdated")?(R(),P("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>s("install",e.status))},S(y(C).doctor.install),9,Wd)):ee("",!0),e.status.installCommand?(R(),P("button",{key:1,class:"ghost",onClick:r},S(i.value?y(C).install.copied:y(C).doctor.copy),1)):ee("",!0),e.status.installed&&e.status.uninstallCommand?(R(),P("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>s("uninstall",e.status))},S(y(C).doctor.uninstall),9,Gd)):ee("",!0)])],2))}}),Jd=rt(qd,[["__scopeId","data-v-4d63d8a6"]]),Yd=Ue({__name:"LogStream",props:{logs:{}},setup(e){const t=e,n=le(),s=le(!0);jt(()=>[...t.logs],async()=>{s.value&&(await Ln(),n.value&&(n.value.scrollTop=n.value.scrollHeight))});function o(){const i=n.value;i&&(s.value=i.scrollHeight-i.scrollTop-i.clientHeight<24)}return(i,r)=>(R(),P("div",{ref_key:"container",ref:n,class:"log-stream",onScroll:o},[(R(!0),P(ne,null,Re(e.logs,(l,a)=>(R(),P("p",{key:`${a}-${l}`},S(l),1))),128))],544))}}),Qd=rt(Yd,[["__scopeId","data-v-a4d9e36c"]]),Xd={class:"settings","data-testid":"settings"},Zd={class:"page-title"},eh={class:"panel"},th={class:"section-head"},nh={key:0,class:"chip running-chip"},sh={key:0,class:"stop-row"},oh=["disabled"],ih={key:0,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},rh={key:1,class:"stopped-card"},lh={class:"muted"},ah={class:"command-row"},ch={class:"panel"},uh={class:"section-head"},fh=["disabled"],dh={key:1,class:"spinner",style:{width:"14px",height:"14px"}},hh={class:"summary-card"},ph={class:"summary-text"},gh={class:"summary-bar bar"},mh={key:0,class:"alert"},vh={class:"dep-list"},yh={key:1,class:"install-session"},_h={key:0,class:"spinner",style:{width:"13px",height:"13px"}},bh={class:"section-head"},wh={class:"field"},Sh={class:"directory-editor"},xh=["disabled"],Ch={key:1,class:"spinner",style:{width:"13px",height:"13px"}},kh={class:"field"},Eh={class:"concurrency"},Ah={class:"field"},Rh={key:0,class:"error"},Th={key:1,class:"saved"},Oh={class:"actions"},Ph=["disabled"],Ih={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},$h=Ue({__name:"SettingsView",setup(e){const t=Ro(),n=gl(),s=le(!1),o=le(!1),i=le(!1),r=le(!1),l=le(!1);async function a(){try{await navigator.clipboard.writeText(C.settings.startCommand),l.value=!0,setTimeout(()=>{l.value=!1},2e3)}catch{}}async function d(){if(window.confirm(C.settings.stopConfirm)){r.value=!0;try{await Ce.serviceStop(),i.value=!0,t.connected=!1}catch(F){n.error=F instanceof Error?F.message:"停止服务失败"}finally{r.value=!1}}}const c=se(()=>t.installSession.state==="progress"),m=se(()=>t.statuses.length?Math.round(t.readyCount/t.statuses.length*100):0);function w(F){c.value||!F.installCommand||F.state==="outdated"&&!window.confirm(`${F.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(F.id,F.installCommand)}function _(F){if(c.value||!F.uninstallCommand)return;const k=`确定要卸载 ${F.name} 吗?
|
|
32
|
+
卸载后相关转换功能将不可用。`;window.confirm(k)&&t.startUninstall(F.id,F.uninstallCommand)}async function $(){s.value=!0;try{const F=await Ce.selectOutputDir();F.selected&&F.path&&(n.form.outputDir=F.path)}catch(F){n.error=F instanceof Error?F.message:"无法打开目录选择器"}finally{s.value=!1}}async function M(){try{await n.save(),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(F,k)=>(R(),P("section",Xd,[u("h1",Zd,S(y(C).settings.title),1),k[13]||(k[13]=u("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),u("div",eh,[u("div",th,[u("div",null,[u("h2",null,S(y(C).settings.service),1),k[5]||(k[5]=u("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),i.value?ee("",!0):(R(),P("span",nh,[k[6]||(k[6]=u("span",{class:"dot"},null,-1)),U(S(y(C).settings.serviceRunning),1)]))]),i.value?(R(),P("div",rh,[u("p",null,[B(X,{name:"check-circle",size:15}),u("strong",null,S(y(C).settings.serviceStopped),1)]),u("p",lh,S(y(C).settings.stoppedGuide),1),u("div",ah,[u("code",null,[k[8]||(k[8]=u("span",{class:"prompt"},"$",-1)),U(S(y(C).settings.startCommand),1)]),u("button",{class:"ghost",type:"button",onClick:a},S(l.value?"已复制":"复制"),1)])])):(R(),P("div",sh,[k[7]||(k[7]=u("p",{class:"muted stop-desc"},[U("停止后转换功能不可用。已开启的开机自启会在下次重启电脑时自动运行服务;重新启动请在终端执行 "),u("code",null,"converter start"),U("。")],-1)),u("button",{class:"ghost danger stop-btn",type:"button","data-testid":"stop-service",disabled:r.value,onClick:d},[r.value?(R(),P("span",ih)):ee("",!0),U(" "+S(r.value?"停止中…":y(C).settings.stopService),1)],8,oh)]))]),u("div",ch,[u("div",uh,[u("div",null,[u("h2",null,S(y(C).doctor.title),1),k[9]||(k[9]=u("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),u("button",{class:"ghost recheck",disabled:y(t).loading,onClick:k[0]||(k[0]=E=>y(t).recheck())},[y(t).loading?(R(),P("span",dh)):(R(),bt(X,{key:0,name:"refresh",size:15})),U(" "+S(y(C).doctor.recheck),1)],8,fh)]),u("div",hh,[u("div",ph,[u("strong",null,S(y(t).readyCount)+" / "+S(y(t).statuses.length),1),k[10]||(k[10]=u("span",null,"个引擎可用",-1))]),u("div",gh,[u("i",{style:hs({width:`${m.value}%`})},null,4)])]),y(t).error?(R(),P("p",mh,S(y(t).error),1)):ee("",!0),u("div",vh,[(R(!0),P(ne,null,Re(y(t).statuses,E=>(R(),bt(Jd,{key:E.id,status:E,installing:c.value,onInstall:w,onUninstall:_},null,8,["status","installing"]))),128))]),y(t).installSession.state!=="idle"?(R(),P("div",yh,[u("h3",null,S(y(C).doctor.logs),1),u("p",{class:ye(["session-state",y(t).installSession.state])},[y(t).installSession.state==="progress"?(R(),P("span",_h)):ee("",!0),U(" "+S(y(t).installSession.state==="progress"?y(C).doctor.sessionRunning:y(t).installSession.state==="done"?y(C).doctor.sessionDone:y(C).doctor.sessionFailed),1)],2),B(Qd,{logs:y(t).installSession.logs},null,8,["logs"])])):ee("",!0)]),u("form",{class:"panel",onSubmit:eo(M,["prevent"])},[u("div",bh,[u("h2",null,S(y(C).settings.preferences),1)]),u("label",wh,[u("span",null,S(y(C).settings.outputDir),1),u("div",Sh,[Pt(u("input",{"onUpdate:modelValue":k[1]||(k[1]=E=>y(n).form.outputDir=E),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,y(n).form.outputDir]]),u("button",{class:"ghost",type:"button",disabled:s.value,onClick:$},[s.value?(R(),P("span",Ch)):(R(),bt(X,{key:0,name:"folder",size:14})),U(" "+S(s.value?"打开中…":y(C).settings.chooseDir),1)],8,xh)])]),u("label",kh,[u("span",null,S(y(C).settings.concurrency),1),u("div",Eh,[Pt(u("input",{"onUpdate:modelValue":k[2]||(k[2]=E=>y(n).form.concurrency=E),type:"number",min:"1",max:"4"},null,512),[[Ut,y(n).form.concurrency,void 0,{number:!0}]]),k[11]||(k[11]=u("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),u("label",Ah,[u("span",null,S(y(C).settings.language),1),Pt(u("select",{"onUpdate:modelValue":k[3]||(k[3]=E=>y(n).form.language=E),disabled:""},[...k[12]||(k[12]=[u("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Co,y(n).form.language]])]),y(n).error?(R(),P("p",Rh,S(y(n).error),1)):o.value?(R(),P("p",Th,[B(X,{name:"check-circle",size:14}),U(S(y(C).settings.saved),1)])):ee("",!0),u("div",Oh,[u("button",{class:"ghost",type:"button",onClick:k[4]||(k[4]=E=>y(n).load())},S(y(C).common.cancel),1),u("button",{class:"primary",disabled:y(n).saving,type:"submit"},[y(n).saving?(R(),P("span",Ih)):ee("",!0),U(" "+S(y(n).saving?"保存中…":y(C).settings.save),1)],8,Ph)])],32)]))}}),Mh=rt($h,[["__scopeId","data-v-39356b7e"]]),ln=[{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 _l(e,t){return e.filter(n=>t.categories.includes(n.category))}function Ii(e,t){const n=new Set;for(const s of _l(e,t))for(const o of s.fromFormats)n.add(o);return n}const Nh={"image-resize":"缩放","image-compress":"压缩","image-watermark":"加水印","video-compress":"压缩","video-timelapse":"延迟摄影","media-compress":"压缩","pdf-merge":"合并","pdf-split":"拆分","pdf-protect":"加密/解密","archive-extract":"解压"};function Dh(e){return Nh[e]}const $i={jpg:"jpg",jpeg:"jpg"};function Fh(e,t){return($i[e]??e)===($i[t]??t)}function Vh(e){const t=e.split(/[\\/]/).pop()??"",n=t.lastIndexOf(".");return n>0?t.slice(n+1).toLowerCase():""}function Lh(e,t){if(!t.length)return[];const n=[...new Set(t.map(i=>i.toLowerCase()))],s=[],o=new Set;for(const i of e){if(!i.available||!n.every(l=>i.fromFormats.includes(l)))continue;const r=Dh(i.key);if(r){const l=`op:${i.key}`;if(o.has(l))continue;o.add(l),s.push({conversionKey:i.key,format:"",label:r,capability:i.label,category:i.category,kind:"operate"});continue}for(const l of i.toFormats){if(n.every(d=>Fh(d,l)))continue;const a=`${i.key}:${l}`;o.has(a)||(o.add(a),s.push({conversionKey:i.key,format:l,label:l==="folder"?"解压为文件夹":l.toUpperCase(),capability:i.label,category:i.category,kind:"convert"}))}}return s}function Hh(e,t){return t?[...e].sort((n,s)=>+(s.category===t)-+(n.category===t)):[...e]}function Mi(e,t){var s;const n=t.toLowerCase();return(s=e.find(o=>o.fromFormats.includes(n)))==null?void 0:s.category}function Ni(e,t){return e.some(s=>s!==t&&s.label===t.label)?`${t.label} · ${t.capability}`:t.label}function jh(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 Uh={class:"install-guide","data-testid":"install-guide"},Bh={class:"platform-switch",role:"tablist"},Kh=["aria-selected"],zh=["aria-selected"],Wh={class:"steps"},Gh={class:"muted"},qh={class:"command-block"},Jh={class:"command-row"},Yh={"data-testid":"install-command"},Qh={class:"muted hint"},Xh={class:"manual-block"},Zh={key:0,class:"manual-steps"},ep={class:"step-no"},tp=Ue({__name:"InstallGuide",setup(e){const t=le(ml()),n=le(!1),s=se(()=>vl(t.value)),o=le(!1);async function i(){try{await navigator.clipboard.writeText(s.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(r,l)=>(R(),P("div",Uh,[u("div",Bh,[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(C).install.macos),11,Kh),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(C).install.windows),11,zh)]),u("ol",Wh,[u("li",null,[l[3]||(l[3]=u("span",{class:"step-no"},"1",-1)),u("div",null,[u("strong",null,S(y(C).install.step1),1),u("p",Gh,S(t.value==="macos"?y(C).install.macosTerminal:y(C).install.windowsTerminal),1)])]),u("li",null,[l[5]||(l[5]=u("span",{class:"step-no"},"2",-1)),u("div",qh,[u("strong",null,S(y(C).install.step2),1),u("div",Jh,[u("code",Yh,[l[4]||(l[4]=u("span",{class:"prompt"},"$",-1)),U(S(s.value),1)]),u("button",{class:"ghost copy",type:"button",onClick:i},[B(X,{name:o.value?"check-circle":"copy",size:14},null,8,["name"]),U(" "+S(o.value?y(C).install.copied:y(C).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(C).install.step3),1),u("p",Qh,S(y(C).install.alreadyInstalled),1)])])]),u("div",Xh,[u("button",{class:"manual-toggle",type:"button",onClick:l[2]||(l[2]=a=>n.value=!n.value)},[U(S(y(C).install.manualTitle),1),B(X,{name:"chevron-down",size:14,class:ye({open:n.value})},null,8,["class"])]),n.value?(R(),P("ol",Zh,[(R(!0),P(ne,null,Re(y(C).install.manualSteps,(a,d)=>(R(),P("li",{key:a.title},[u("span",ep,S(d+1),1),u("div",null,[u("strong",null,S(a.title),1),u("p",null,S(a.text),1)])]))),128))])):ee("",!0)])]))}}),np=rt(tp,[["__scopeId","data-v-56162934"]]),sp={class:"daemon-gate","data-testid":"daemon-gate"},op={key:0,class:"gate-state checking"},ip={key:1,class:"gate-state online","data-testid":"gate-online"},rp={class:"gate-icon ok"},lp={class:"actions"},ap=["href"],cp={key:2,class:"gate-state offline","data-testid":"gate-offline"},up={class:"gate-icon off"},fp={class:"start-block"},dp={class:"manual"},hp={class:"manual-label"},pp={class:"manual-row"},gp={class:"manual-hint"},mp={class:"actions"},vp=["href"],yp={class:"install-collapsed"},_p=Ue({__name:"DaemonGate",setup(e){const t=le("checking"),n=le(!1),s=le(!1);async function o(){try{await navigator.clipboard.writeText("converter start"),s.value=!0,setTimeout(()=>{s.value=!1},2e3)}catch{}}async function i(){t.value="checking",t.value=await df()?"online":"offline"}return pn(()=>{i()}),(r,l)=>(R(),P("div",sp,[t.value==="checking"?(R(),P("div",op,[l[1]||(l[1]=u("span",{class:"spinner big","aria-hidden":"true"},null,-1)),u("p",null,S(y(C).gate.checking),1)])):t.value==="online"?(R(),P("div",ip,[u("div",rp,[B(X,{name:"check-circle",size:26})]),u("p",null,S(y(C).gate.online),1),l[2]||(l[2]=u("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),u("div",lp,[u("a",{class:"btn primary",href:y(lo),target:"_blank",rel:"noopener"},[U(S(y(C).gate.open),1),B(X,{name:"arrow-right",size:15})],8,ap),u("button",{class:"ghost",type:"button",onClick:i},[B(X,{name:"refresh",size:14}),U(S(y(C).gate.retry),1)])])])):(R(),P("div",cp,[u("div",up,[B(X,{name:"alert-circle",size:26})]),u("p",null,S(y(C).gate.offline),1),u("div",fp,[u("div",dp,[u("span",hp,S(y(C).gate.manualTitle),1),u("div",pp,[l[3]||(l[3]=u("code",null,[u("span",{class:"prompt"},"$"),U("converter start")],-1)),u("button",{class:"copy",type:"button",onClick:o},[B(X,{name:s.value?"check-circle":"copy",size:13},null,8,["name"]),U(S(s.value?"已复制":"复制"),1)])]),u("p",gp,S(y(C).gate.manualHint),1)]),u("div",mp,[u("button",{class:"ghost",type:"button",onClick:i},[B(X,{name:"refresh",size:14}),U(S(y(C).gate.retry),1)]),u("a",{class:"ghost direct-link",href:y(lo),target:"_blank",rel:"noopener"},S(y(C).gate.open),9,vp)])]),u("div",yp,[u("button",{class:"install-toggle",type:"button",onClick:l[0]||(l[0]=a=>n.value=!n.value)},[U(S(y(C).gate.notInstalledTitle),1),B(X,{name:"chevron-down",size:14,class:ye({open:n.value})},null,8,["class"])]),n.value?(R(),bt(np,{key:0})):ee("",!0)])]))]))}}),bp=rt(_p,[["__scopeId","data-v-0f39bf4c"]]),wp="/gh-qrcode.png",Sp={class:"follow-gate","data-testid":"follow-gate"},xp={class:"gate-right"},Cp={class:"code-row"},kp={"data-testid":"pair-code"},Ep={key:0,class:"gate-error"},Ap=Ue({__name:"FollowGate",props:{pairCode:{}},emits:["activated"],setup(e,{emit:t}){const n=e,s=t,o=se(()=>n.pairCode??""),i=le(!1),r=le("");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=n.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 Ce.wxActivate($.token),s("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 pn(()=>{c()}),wo(()=>{m()}),(w,_)=>(R(),P("div",Sp,[_[5]||(_[5]=u("div",{class:"gate-left"},[u("img",{class:"gh-qrcode",src:wp,alt:"公众号二维码"}),u("p",{class:"qr-hint"},"微信扫码,关注公众号")],-1)),u("div",xp,[_[1]||(_[1]=u("h2",null,"免费解锁全部功能",-1)),_[2]||(_[2]=u("p",{class:"gate-desc"},[U("关注公众号并回复你的绑定码,即可"),u("strong",null,"永久免费"),U("使用全部转换功能")],-1)),u("div",Cp,[_[0]||(_[0]=u("span",{class:"code-label"},"你的绑定码",-1)),u("code",kp,S(o.value),1),u("button",{class:"copy",type:"button",onClick:a},[B(X,{name:i.value?"check-circle":"copy",size:13},null,8,["name"]),U(S(i.value?"已复制":"复制"),1)])]),_[3]||(_[3]=u("ol",{class:"gate-steps"},[u("li",null,[u("span",null,"1"),U("微信扫描左侧二维码,关注公众号")]),u("li",null,[u("span",null,"2"),U("在公众号里发送你的绑定码(点击上方「复制」)")]),u("li",null,[u("span",null,"3"),U("收到「绑定成功」回复后,本页自动解锁")])],-1)),r.value?(R(),P("p",Ep,[B(X,{name:"alert-circle",size:14}),U(S(r.value),1)])):ee("",!0),_[4]||(_[4]=u("p",{class:"waiting"},[u("span",{class:"spinner tiny"}),U("正在等待绑定完成,每 5 秒自动检测…")],-1))])]))}}),Rp=rt(Ap,[["__scopeId","data-v-0fe4c6f1"]]),Tp={class:"workbench","data-testid":"workbench"},Op={class:"page-title"},Pp={class:"page-subtitle"},Ip={key:2,class:"tabbed"},$p={class:"tab-rail"},Mp=["data-testid","onClick"],Np={class:"tab-label"},Dp={key:0,class:"tab-count"},Fp={class:"tab-panel panel"},Vp={class:"drop-icon"},Lp={class:"drop-title"},Hp={class:"muted drop-hint"},jp={class:"drop-compact-text"},Up={class:"drop-actions"},Bp=["placeholder"],Kp=["disabled"],zp=["disabled"],Wp={key:1,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},Gp=["accept"],qp={key:0,class:"hint-alert"},Jp={class:"target-bar"},Yp={class:"section-title"},Qp={key:0,class:"target-chips"},Xp=["onClick"],Zp={key:1,class:"hint-alert"},eg={key:2,class:"hint-alert"},tg={class:"table-wrap"},ng={class:"file-table","data-testid":"file-table"},sg={class:"cell-file"},og={class:"cell-path"},ig={class:"cell-size"},rg={class:"cell-status"},lg={class:"cell-actions"},ag={class:"cell-file"},cg={class:"file-icon"},ug=["title"],fg={class:"chip ext"},dg={class:"cell-path"},hg=["title","onClick"],pg={class:"cell-size muted"},gg={class:"cell-status"},mg=["title"],vg={key:0,class:"spinner tiny"},yg={key:1},_g={key:2,class:"row-error"},bg={class:"cell-actions"},wg=["onClick"],Sg=["onClick"],xg=["onClick"],Cg=["title","onClick"],kg={key:0,class:"params"},Eg={class:"section-title"},Ag={class:"params-grid"},Rg={class:"param-label"},Tg={key:1,class:"required"},Og=["onUpdate:modelValue","data-testid"],Pg=["value"],Ig=["onUpdate:modelValue","min","max","data-testid"],$g={key:2,class:"watermark-editor"},Mg=["onUpdate:modelValue","data-testid"],Ng=["disabled"],Dg=["onUpdate:modelValue","type","data-testid"],Fg={key:4,class:"param-description"},Vg={class:"summary"},Lg={class:"batch-actions"},Hg=["disabled"],jg={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},Ug=Ue({__name:"WorkbenchView",setup(e){const t=jn(),n=To(),s=sn({checking:t,activated:!0}),o=Oo(),i=le(ln[0].key),r=sn(Object.fromEntries(ln.map(h=>[h.key,{rows:[],selected:null,paramValues:{}}]))),l=le(""),a=h=>{Ce.wxActivate(h).then(()=>{s.activated=!0}).catch(()=>{})},d=se(()=>ln.find(h=>h.key===i.value)),c=se(()=>r[i.value]),m=se(()=>_l(n.features,d.value)),w=se(()=>Ii(n.features,d.value)),_=se(()=>{const h=Lh(m.value,c.value.rows.map(p=>p.ext)),v=c.value.rows[0]?Mi(n.features,c.value.rows[0].ext):void 0;return Hh(h,v)}),$=se(()=>{var h;return c.value.selected?((h=n.byKey.get(c.value.selected.conversionKey))==null?void 0:h.params)??[]:[]}),M=se(()=>$.value.filter(h=>h.required&&String(c.value.paramValues[h.key]??"").trim()==="")),F=se(()=>{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,k()});function k(){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 E(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,k()}function V(){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 x;if(h.kind!=="operate")return h.format;const p=((x=n.byKey.get(h.conversionKey))==null?void 0:x.toFormats)??[];return p.includes(v.ext)?v.ext:p[0]??v.ext}const he=le(""),te=le(!1),Y=le(!1),q=le(""),fe=le(),Se=le();function Te(h){return h.split(/[\\/]/).pop()??h}function $e(h){return yl[Mi(n.features,h)??"file"]??"file"}function Ct(h){const v=ln.find(p=>Ii(n.features,p).has(h));return(v==null?void 0:v.label)??"其他"}function Ge(h,v,p){const x=h.trim();if(!x)return;const T=Vh(x);if(!w.value.has(T)){q.value=C.workbench.wrongTab.replace("{name}",Te(x)).replace("{tab}",`「${d.value.label}」`).replace("对应标签页",`「${Ct(T)}」标签页`);return}const I=p??Te(x);if(c.value.rows.some(K=>K.path===x||v!==void 0&&K.name===I&&K.size===v)){q.value=`${I} ${C.workbench.fileDuplicate}`;return}q.value="",c.value.rows.push({path:x,ext:T,name:I,status:"pending",...v!==void 0?{size:v}:{}})}function pe(){Ge(he.value),he.value=""}async function Q(h){if(h.length){Y.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(T=>T.name===v.name&&T.size===v.size)){q.value=`${v.name} ${C.workbench.fileDuplicate}`;continue}const x=await Pi(v);Ge(x.inputPath,x.size,x.originalName)}}catch(v){q.value=v instanceof Error?v.message:"文件导入失败"}finally{Y.value=!1,fe.value&&(fe.value.value="")}}}function ie(h){Q(Array.from(h.target.files??[]))}function Qe(h){var v;te.value=!1,Q(Array.from(((v=h.dataTransfer)==null?void 0:v.files)??[]))}async function lt(h){const v=Array.from(h.target.files??[])[0],p=$.value.find(x=>x.control==="file");if(!(!v||!p)){Y.value=!0;try{const x=v.path;if(x)c.value.paramValues[p.key]=x;else{const T=await Pi(v);c.value.paramValues[p.key]=T.inputPath}}catch(x){q.value=x instanceof Error?x.message:"水印图片选择失败"}finally{Y.value=!1,Se.value&&(Se.value.value="")}}}const Me=le(!1),ke=se(()=>c.value.rows.filter(h=>h.status==="pending").length),Nt=se(()=>c.value.rows.some(h=>h.status==="success"||h.status==="failed")),at=se(()=>ke.value>0&&c.value.selected!==null&&M.value.length===0&&!Me.value);async function Xe(h){const v=c.value.selected;if(!(!v||F.value)){h.status="converting",h.targetFormat=H(v,h),h.progress=0,h.error=void 0,h.output=void 0;try{const p=await Ce.convert({inputPath:h.path,targetFormat:h.targetFormat,conversionKey:v.conversionKey,options:V()});h.taskId=p.taskId}catch(p){h.status="failed",h.error=p instanceof Error?p.message:"提交失败"}}}async function He(){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(x=>x.path);for(const x of v)x.status="converting",x.targetFormat=H(h,x),x.error=void 0;try{const x=await Ce.convert({inputPath:p[0],targetFormat:H(h,v[0]),conversionKey:h.conversionKey,options:{...V(),inputs:p}});for(const T of v)T.taskId=x.taskId}catch(x){const T=x instanceof Error?x.message:"提交失败";for(const I of v)I.status="failed",I.error=T}}else for(const p of v)await Xe(p);Me.value=!1}}jt(()=>o.tasks,h=>{var p;const v=new Map(h.map(x=>[x.taskId,x]));for(const x of ln)for(const T of r[x.key].rows){if(!T.taskId)continue;const I=v.get(T.taskId);I&&(I.status==="success"?(T.status="success",T.output=I.output,T.progress=100):I.status==="failed"?(T.status="failed",T.error=((p=I.error)==null?void 0:p.message)??"转换失败"):(T.status="converting",T.progress=I.progress??T.progress))}},{deep:!0});function A(h){c.value.rows.splice(h,1)}function j(){c.value.rows=c.value.rows.filter(h=>h.status==="pending"||h.status==="converting")}async function D(h){try{await Ce.revealPath(h.path)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}async function G(h){if(h.taskId)try{await Ce.revealTask(h.taskId)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}function f(h){return h==="pending"?C.workbench.statusPending:h==="converting"?C.workbench.statusRunning:h==="success"?C.workbench.statusSuccess:C.workbench.statusFailed}const g=se(()=>[...w.value].slice(0,10).map(h=>h.toUpperCase()).join(" / ")),b=se(()=>[...w.value].map(h=>`.${h}`).join(","));return pn(()=>{t&&Ce.wxStatus().then(h=>{s.activated=h.activated,l.value=h.pairCode,s.checking=!1}).catch(()=>{s.checking=!1})}),(h,v)=>(R(),P("section",Tp,[u("h1",Op,S(y(C).workbench.title),1),u("p",Pp,S(y(C).workbench.subtitle),1),y(t)?s.activated?(R(),P("div",Ip,[u("aside",$p,[(R(!0),P(ne,null,Re(y(ln),p=>(R(),P("button",{key:p.key,type:"button",class:ye(["tab-btn",{active:i.value===p.key}]),"data-testid":`tab-${p.key}`,onClick:x=>{i.value=p.key,q.value=""}},[B(X,{name:p.icon,size:17},null,8,["name"]),u("span",Np,S(p.label),1),r[p.key].rows.length?(R(),P("span",Dp,S(r[p.key].rows.length),1)):ee("",!0)],10,Mp))),128))]),u("div",Fp,[u("div",{class:ye(["dropzone",{dragging:te.value,compact:c.value.rows.length>0}]),"data-testid":"dropzone",onDragover:v[2]||(v[2]=eo(p=>te.value=!0,["prevent"])),onDragleave:v[3]||(v[3]=p=>te.value=!1),onDrop:eo(Qe,["prevent"])},[c.value.rows.length?(R(),P(ne,{key:1},[B(X,{name:"upload",size:15}),u("span",jp,S(y(C).workbench.dropCompact.replace("{tab}",d.value.label)),1)],64)):(R(),P(ne,{key:0},[u("span",Vp,[B(X,{name:d.value.icon,size:30},null,8,["name"])]),u("strong",Lp,S(y(C).workbench.dropTitle.replace("{tab}",d.value.label)),1),u("p",Hp,S(y(C).workbench.dropHint.replace("{exts}",g.value)),1)],64)),u("div",Up,[Pt(u("input",{"onUpdate:modelValue":v[0]||(v[0]=p=>he.value=p),type:"text",placeholder:y(C).workbench.pastePlaceholder,onKeydown:Kc(pe,["enter"])},null,40,Bp),[[Ut,he.value]]),u("button",{class:"ghost",type:"button",disabled:!he.value.trim(),onClick:pe},[B(X,{name:"plus",size:14}),U(S(y(C).workbench.addPath),1)],8,Kp),u("button",{class:"primary",type:"button",disabled:Y.value,onClick:v[1]||(v[1]=p=>{var x;return(x=fe.value)==null?void 0:x.click()})},[Y.value?(R(),P("span",Wp)):(R(),bt(X,{key:0,name:"file",size:14})),U(" "+S(Y.value?"导入中…":y(C).workbench.addFile),1)],8,zp)]),u("input",{ref_key:"fileInput",ref:fe,type:"file",multiple:"",hidden:"",accept:b.value,onChange:ie},null,40,Gp)],34),q.value?(R(),P("p",qp,[B(X,{name:"alert-circle",size:15}),U(S(q.value),1)])):ee("",!0),c.value.rows.length?(R(),P(ne,{key:1},[u("div",Jp,[u("span",Yp,S(y(C).workbench.convertTo),1),_.value.length?(R(),P("div",Qp,[(R(!0),P(ne,null,Re(_.value,p=>(R(),P("button",{key:`${p.conversionKey}:${p.format}`,type:"button",class:ye(["target-chip",{active:E(p)}]),"data-testid":"target-chip",onClick:x=>N(p)},S(y(Ni)(_.value,p)),11,Xp))),128))])):m.value.some(p=>p.available)?(R(),P("p",Zp,[B(X,{name:"alert-circle",size:15}),U(S(y(C).workbench.noCommonTargets),1)])):(R(),P("p",eg,[B(X,{name:"alert-circle",size:15}),U(S(y(C).workbench.noTools),1)]))]),u("div",tg,[u("table",ng,[u("thead",null,[u("tr",null,[u("th",sg,S(y(C).workbench.tableFile),1),u("th",og,S(y(C).workbench.tablePath),1),u("th",ig,S(y(C).workbench.tableSize),1),u("th",rg,S(y(C).workbench.tableStatus),1),u("th",lg,S(y(C).workbench.tableActions),1)])]),u("tbody",null,[(R(!0),P(ne,null,Re(c.value.rows,(p,x)=>(R(),P("tr",{key:p.path,"data-testid":"file-row"},[u("td",ag,[u("span",cg,[B(X,{name:$e(p.ext),size:16},null,8,["name"])]),u("span",{class:"file-name",title:p.path},S(p.name??Te(p.path)),9,ug),u("span",fg,S(p.ext?p.ext.toUpperCase():"?"),1)]),u("td",dg,[u("button",{class:"path-link",type:"button","data-testid":"row-path",title:p.path,onClick:T=>D(p)},S(p.path),9,hg)]),u("td",pg,S(p.size!==void 0?y(jh)(p.size):"—"),1),u("td",gg,[u("span",{class:ye(["row-status",p.status]),title:p.error??""},[p.status==="converting"?(R(),P("span",vg)):ee("",!0),U(" "+S(f(p.status))+" ",1),p.status==="converting"&&p.progress!==void 0?(R(),P("em",yg,S(p.progress)+"%",1)):ee("",!0),p.status==="failed"&&p.error?(R(),P("em",_g,S(p.error),1)):ee("",!0)],10,mg)]),u("td",bg,[p.status==="pending"&&!F.value?(R(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:T=>Xe(p)},S(y(C).workbench.convert),9,wg)):ee("",!0),p.status==="failed"&&!F.value?(R(),P("button",{key:1,class:"ghost tiny",type:"button",onClick:T=>Xe(p)},S(y(C).workbench.retry),9,Sg)):ee("",!0),p.status==="success"?(R(),P("button",{key:2,class:"ghost tiny",type:"button",onClick:T=>G(p)},S(y(C).workbench.openFolder),9,xg)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(C).workbench.remove,onClick:T=>A(x)},[B(X,{name:"x",size:14})],8,Cg)])]))),128))])])]),$.value.length?(R(),P("div",kg,[u("div",Eg,S(y(C).workbench.paramsTitle),1),u("div",Ag,[(R(!0),P(ne,null,Re($.value,p=>(R(),P("label",{key:p.key,class:ye(["param-field",{wide:p.control==="file"}])},[u("span",Rg,[U(S(p.label),1),p.unit?(R(),P(ne,{key:0},[U("("+S(p.unit)+")",1)],64)):ee("",!0),p.required?(R(),P("i",Tg,"*")):ee("",!0)]),p.control==="preset"?Pt((R(),P("select",{key:0,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,"data-testid":`param-${p.key}`},[(R(!0),P(ne,null,Re(p.presets??[],x=>(R(),P("option",{key:x.value,value:x.value},S(x.label),9,Pg))),128))],8,Og)),[[Co,c.value.paramValues[p.key]]]):p.control==="number"?Pt((R(),P("input",{key:1,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:"number",min:p.min,max:p.max,placeholder:"不调整","data-testid":`param-${p.key}`},null,8,Ig)),[[Ut,c.value.paramValues[p.key],void 0,{number:!0}]]):p.control==="file"?(R(),P("div",$g,[Pt(u("input",{"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${p.key}`},null,8,Mg),[[Ut,c.value.paramValues[p.key],void 0,{trim:!0}]]),u("button",{class:"ghost",type:"button",disabled:Y.value,onClick:v[4]||(v[4]=x=>{var T;return(T=Se.value)==null?void 0:T.click()})},S(y(C).workbench.chooseFile),9,Ng),u("input",{ref_for:!0,ref_key:"watermarkInput",ref:Se,type:"file",hidden:"",accept:"image/*",onChange:lt},null,544)])):Pt((R(),P("input",{key:3,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:p.control==="password"?"password":"text","data-testid":`param-${p.key}`},null,8,Dg)),[[Lc,c.value.paramValues[p.key],void 0,{trim:!0}]]),p.description?(R(),P("small",Fg,S(p.description),1)):ee("",!0)],2))),128))])])):ee("",!0),u("div",{class:ye(["batch-bar",{disabled:!at.value}])},[u("span",Vg,[v[5]||(v[5]=U(" 待转换 ",-1)),u("strong",null,S(ke.value),1),U(" 个 → "+S(c.value.selected?y(Ni)(_.value,c.value.selected):"—"),1)]),u("div",Lg,[Nt.value?(R(),P("button",{key:0,class:"ghost",type:"button",onClick:j},"清除已完成")):ee("",!0),u("button",{class:"primary batch",type:"button","data-testid":"batch-convert",disabled:!at.value,onClick:He},[Me.value?(R(),P("span",jg)):ee("",!0),U(" "+S(Me.value?"转换中…":y(C).workbench.batchConvertN.replace("{n}",String(ke.value))),1)],8,Hg)])],2)],64)):ee("",!0)])])):(R(),bt(Rp,{key:1,"pair-code":l.value,"data-testid":"follow-gate",onActivated:a},null,8,["pair-code"])):(R(),bt(bp,{key:0}))]))}}),Bg=rt(Ug,[["__scopeId","data-v-49f4174d"]]),Kg=lf({history:Hu(),routes:[{path:"/",name:"landing",component:Ld},{path:"/workbench",name:"workbench",component:Bg},{path:"/history",name:"history",component:qf},{path:"/settings",name:"settings",component:Mh},{path:"/:pathMatch(.*)*",redirect:"/"}]});Gc(yf).use(Yc()).use(Kg).mount("#app");
|