dudu-converter-cli 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/release/cli.js +7 -7
- package/web/dist/assets/index-DHhDe2lo.js +32 -0
- package/web/dist/assets/index-Dtm93uHj.css +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/install.ps1 +4 -3
- package/web/dist/assets/index-DLhpGmqi.css +0 -1
- package/web/dist/assets/index-DYFnV3zl.js +0 -32
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var wl=Object.defineProperty;var Sl=(e,t,n)=>t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>Sl(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 co(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,uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xl=Object.prototype.hasOwnProperty,ae=(e,t)=>xl.call(e,t),z=Array.isArray,Ht=e=>Fn(e)==="[object Map]",Mt=e=>Fn(e)==="[object Set]",$o=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),Cl=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=co(",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))},kl=/-\w/g,et=us(e=>e.replace(kl,t=>t.slice(1).toUpperCase())),El=/\B([A-Z])/g,zt=us(e=>e.replace(El,"-$1").toLowerCase()),Hi=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=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)?Ol(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 Al=/;(?![^(]*\))/g,Rl=/:([^]+)/,Tl=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Ol(e){const t={};return e.replace(Tl,n=>n.startsWith("/*")?"":n).split(Al).forEach(n=>{if(n){const s=n.split(Rl);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 Pl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Il=co(Pl);function Ui(e){return!!e||e===""}function Ml(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=Mt(e),o=Mt(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=$o(e),o=$o(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,Ml):!1:(s=ue(e),o=ue(t),s||o?!s||!o?!1:Fo(e,t,n,$l):String(e)===String(t))))}function fo(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[As(s,i)+" =>"]=o,n),{})}:Mt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>As(n))}:Je(t)?As(t):ue(t)&&!z(t)&&!Li(t)?String(t):t,As=(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 Nl(e,t=!1){Ae&&Ae.cleanups.push(e)}let ve;const Rs=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,Rs.has(this)&&(Rs.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)go(t);this.deps=this.depsTail=void 0,Vo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ks(this)&&this.run()}get dirty(){return Ks(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 ho(){Ji++}function po(){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),go(s),Dl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Ks(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||!Ks(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 go(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)go(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Dl(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 Fl{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 mo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!tt||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new Fl(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){ho();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{po()}}}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(""),zs=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 mo),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(ho(),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(zs)));break;case"delete":a||(l(r.get(en)),Ht(e)&&l(r.get(zs)));break;case"set":Ht(e)&&l(r.get(en));break}}po()}function Vl(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 Ll={__proto__:null,[Symbol.iterator](){return Ts(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return on(this).concat(...e.map(t=>z(t)?on(t):t))},entries(){return Ts(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 Os(this,"includes",e)},indexOf(...e){return Os(this,"indexOf",e)},join(e){return on(this).join(e)},lastIndexOf(...e){return Os(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 Ts(this,"values",e=>ht(this,e))}};function Ts(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 Os(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(),ho();const s=re(e)[t].apply(e,n);return po(),St(),s}const Hl=co("__proto__,__v_isRef,__isVue"),sr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function jl(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?Ql: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=Ll[n]))return a;if(n==="hasOwnProperty")return jl}const l=Reflect.get(t,n,we(t)?t:s);if((Je(n)?sr.has(n):Hl(n))||(o||Ne(t,"get",n),i))return l;if(we(l)){const a=r&&cs(n)?l:l.value;return o&&ue(a)?Gs(a):a}return ue(l)?o?Gs(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 Ul extends or{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Bl=new ir,Kl=new Ul,zl=new ir(!0);const Ws=e=>e,Un=e=>Reflect.getPrototypeOf(e);function Wl(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?Ws:t?Bt:Ye;return!t&&Ne(i,"iterate",a?zs: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 Gl(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?Ws: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?Ws: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]=Wl(o,e,t)}),n}function vo(e,t){const n=Gl(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 ql={get:vo(!1,!1)},Jl={get:vo(!1,!0)},Yl={get:vo(!0,!1)};const rr=new WeakMap,lr=new WeakMap,ar=new WeakMap,Ql=new WeakMap;function Xl(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:yo(e,!1,Bl,ql,rr)}function cr(e){return yo(e,!1,zl,Jl,lr)}function Gs(e){return yo(e,!0,Kl,Yl,ar)}function yo(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=Xl(Cl(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 _o(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)?Gs(e):e;function we(e){return e?e.__v_isRef===!0:!1}function le(e){return ur(e,!1)}function Zl(e){return ur(e,!0)}function ur(e,t){return we(e)?e:new ea(e,t)}class ea{constructor(t,n){this.dep=new mo,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 ta={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,ta)}function na(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=oa(e,n);return t}class sa{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 Vl(this._raw,this._key)}}function oa(e,t,n){return new sa(e,t,n)}class ia{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=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 ra(e,t,n=!1){let s,o;return Z(e)?s=e:(s=e.get,o=e.set),new ia(s,o,n)}const Kn={},Xn=new WeakMap;let Jt;function la(e,t=!1,n=Jt){if(n){let s=Xn.get(n);s||Xn.set(n,s=[]),s.push(e)}}function aa(e,t,n=me){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:l,call:a}=n,d=L=>o?L:We(L)||o===!1||o===0?Ot(L,1):Ot(L);let c,m,w,_,M=!1,$=!1;if(we(e)?(m=()=>e.value,M=We(e)):yt(e)?(m=()=>d(e),M=!0):z(e)?($=!0,M=e.some(L=>yt(L)||We(L)),m=()=>e.map(L=>{if(we(L))return L.value;if(yt(L))return d(L);if(Z(L))return a?a(L,2):L()})):Z(e)?t?m=a?()=>a(e,2):e:m=()=>{if(w){wt();try{w()}finally{St()}}const L=Jt;Jt=c;try{return a?a(e,3,[_]):e(_)}finally{Jt=L}}:m=vt,t&&o){const L=m,H=o===!0?1/0:o;m=()=>Ot(L(),H)}const V=Gi(),A=()=>{c.stop(),V&&V.active&&uo(V.effects,c)};if(i&&t){const L=t;t=(...H)=>{try{return L(...H)}finally{A()}}}let R=$?new Array(e.length).fill(Kn):Kn;const N=L=>{if(!(!(c.flags&1)||!c.dirty&&!L))if(t){const H=c.run();if(L||o||M||($?H.some((he,te)=>mt(he,R[te])):mt(H,R))){const he=Jt;wt();try{w&&w(),Jt=c;const te=[H,R===Kn?void 0:$&&R[0]===Kn?[]:R,_];R=H,a?a(t,3,te):t(...te)}finally{Jt=he,St()}}}else c.run()};return l&&l(N),c=new qi(m),c.scheduler=r?()=>r(N,!1):N,_=L=>la(L,!1,c),w=c.onStop=()=>{const L=Xn.get(c);if(L){if(a)a(L,4);else for(const H of L)H();Xn.delete(c)}},t?s?N(!0):R=c.run():r?r(N.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}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(Mt(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}}ca(e,n,o,s,r)}function ca(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 ua(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 bo(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(ua(t),0,e),e.flags|=1,hr()}}function hr(){Zn||(Zn=dr.then(mr))}function fa(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 Ps=!1;function da(e,t){if(Ps){e();return}const n=t===void 0?void 0:new Set(pt);e(),Ps=!0;try{pr(void 0,t),gr(void 0,n,t)}finally{Ps=!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=Ss(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 ha(){return!!(zr()||tn)}const pa=Symbol.for("v-scx"),ga=()=>_t(pa);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 _=ga();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=(_,M)=>{M?_():bo(_)}),l.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,c&&(_.id=c.uid,_.i=c))};const w=aa(e,t,l);return Nn&&(d?d.push(w):a&&w()),w}function ma(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 va=Symbol("_vte"),vs=e=>e.__isTeleport,Is=Symbol("_leaveCb");function ya(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(!wo(e))return vs(e.type)&&e.children?ya(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 qs(e){if(e.component)return qs(e.component.subTree);if(e.type===ne){const t=z(e.children)&&Rr(e.children,!1);return t?qs(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(($,V)=>Cn($,t&&(z(t)?t[V]: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?Ss(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:$=>jo(c,$)?!1:ae(w,$),M=($,V)=>!(V&&jo(c,V));if(d!=null&&d!==a){if(Uo(t),be(d))c[d]=null,_(d)&&(m[d]=null);else if(we(d)){const $=t;M(d,$.k)&&(d.value=null),$.k&&(c[$.k]=null)}}if(Z(a))Vn(a,l,12,[r,c]);else{const $=be(a),V=we(a);if($||V){const A=()=>{if(e.f){const R=$?_(a)?m[a]:c[a]:M()||!e.k?a.value:c[e.k];if(o)z(R)&&uo(R,i);else if(z(R))R.includes(i)||R.push(i);else if($)c[a]=[i],_(a)&&(m[a]=c[a]);else{const N=[i];M(a,e.k)&&(a.value=N),e.k&&(c[e.k]=N)}}else $?(c[a]=r,_(a)&&(m[a]=r)):V&&(M(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const R=()=>{A(),ns.delete(e)};R.id=-1,ns.set(e,R),je(R,n)}else Uo(e),A()}}}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,wo=e=>e.type.__isKeepAlive;function _a(e,t){Sr(e,"a",t)}function ba(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;)wo(o.parent.vnode)&&wa(s,t,n,o),o=o.parent}}function wa(e,t,n,s){const o=ys(t,e,s,!0);xr(()=>{uo(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 $t=e=>(t,n=Le)=>{(!Nn||e==="sp")&&ys(e,(...s)=>t(...s),n)},Sa=$t("bm"),pn=$t("m"),xa=$t("bu"),Ca=$t("u"),_s=$t("bum"),xr=$t("um"),ka=$t("sp"),Ea=$t("rtg"),Aa=$t("rtc");function Ra(e,t=Le){ys("ec",e,t)}const Ta=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 Js=e=>e?Wr(e)?Ss(e):Js(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=>Js(e.parent),$root:e=>Js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>kr(e),$forceUpdate:e=>e.f||(e.f=()=>{bo(e.update)}),$nextTick:e=>e.n||(e.n=Ln.bind(e.proxy)),$watch:e=>ma.bind(e)}),Ms=(e,t)=>e!==me&&!e.__isScriptSetup&&ae(e,t),Oa={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(Ms(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];Ys&&(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 Ms(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)||Ms(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 Ys=!0;function Pa(e){const t=kr(e),n=e.proxy,s=e.ctx;Ys=!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:M,activated:$,deactivated:V,beforeDestroy:A,beforeUnmount:R,destroyed:N,unmounted:L,render:H,renderTracked:he,renderTriggered:te,errorCaptured:Y,serverPrefetch:q,expose:fe,inheritAttrs:Se,components:Te,directives:Me,filters:Ct}=t;if(d&&Ia(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(Ys=!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,$e=se({get:Qe,set:lt});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>$e.value,set:ke=>$e.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(Sa,m),pe(pn,w),pe(xa,_),pe(Ca,M),pe(_a,$),pe(ba,V),pe(Ra,Y),pe(Aa,he),pe(Ea,te),pe(_s,R),pe(xr,L),pe(ka,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),Me&&(e.directives=Me),q&&wr(e)}function Ia(e,t,n=vt){z(e)&&(e=Qs(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=Ma[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Ma={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:Na,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(Qs(e),Qs(t))}function Qs(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 Na(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 Da=0;function Fa(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:Da++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:hc,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,Ss(_.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 Va=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${zt(t)}Modifiers`];function La(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||me;let o=n;const i=t.startsWith("update:"),r=i&&Va(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=Es(t)]||s[l=Es(et(t))];!a&&i&&(a=s[l=Es(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 Ha=new WeakMap;function Ar(e,t,n=!1){const s=n?Ha: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 bs(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:M,inheritAttrs:$}=e,V=es(e);let A,R;try{if(n.shapeFlag&4){const L=o||s,H=L;A=gt(d.call(H,L,c,m,_,w,M)),R=l}else{const L=t;A=gt(L.length>1?L(m,{attrs:l,slots:r,emit:a}):L(m,null)),R=t.props?l:ja(l)}}catch(L){nn.length=0,ms(L,e,1),A=B(ot)}let N=A;if(R&&$!==!1){const L=Object.keys(R),{shapeFlag:H}=N;L.length&&H&7&&(i&&L.some(as)&&(R=Ua(R,i)),N=un(N,R,!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 L=vs(N.type)&&br(N)||N;ts(L,n.transition)}return A=N,es(V),A}function Rr(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(Mn(o)){if(o.type!==ot||o.children==="v-if"){if(n)return;n=o}}else return}return n}const ja=e=>{let t;for(const n in e)(n==="class"||n==="style"||ls(n))&&((t||(t={}))[n]=e[n]);return t},Ua=(e,t)=>{const n={};for(const s in e)(!as(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ba(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)&&!bs(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)&&!bs(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 Ka({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 za(e,t,n,s=!1){const o={},i=Pr();e.propsDefaults=Object.create(null),Mr(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 Wa(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(bs(e.emitsOptions,w))continue;const _=t[w];if(a)if(ae(i,w))_!==i[w]&&(i[w]=_,d=!0);else{const M=et(w);o[M]=Xs(a,l,M,_,e,!1)}else _!==i[w]&&(i[w]=_,d=!0)}}}else{Mr(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]=Xs(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 Mr(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:bs(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]=Xs(o,a,m,d[m],e,!ae(d,m))}}return r}function Xs(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 Ga=new WeakMap;function $r(e,t,n=!1){const s=n?Ga: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,_]=$r(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),M=_.type;let $=!1,V=!0;if(z(M))for(let A=0;A<M.length;++A){const R=M[A],N=Z(R)&&R.name;if(N==="Boolean"){$=!0;break}else N==="String"&&(V=!1)}else $=Z(M)&&M.name==="Boolean";_[0]=$,_[1]=V,($||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)],qa=(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]=qa(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])},Ja=(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)},Ya=(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=tc;function Qa(e){return Xa(e)}function Xa(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:M}=e,$=(f,g,b,x=null,h=null,v=null,p=void 0,C=null,O=!!g.dynamicChildren)=>{if(f===g)return;f&&!vn(f,g)&&(x=T(f),ke(f,h,v,!0),f=null),g.patchFlag===-2&&(O=!1,g.dynamicChildren=null),g.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(g.dynamicChildren===Xt&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:E,ref:K,shapeFlag:D}=g;switch(E){case ws:V(f,g,b,x);break;case ot:A(f,g,b,x);break;case Ns:f==null&&R(g,b,x,p);break;case ne:Te(f,g,b,x,h,v,p,C,O);break;default:D&1?H(f,g,b,x,h,v,p,C,O):D&6?Me(f,g,b,x,h,v,p,C,O):(D&64||D&128)&&E.process(f,g,b,x,h,v,p,C,O,F)}K!=null&&h?Cn(K,f&&f.ref,v,g||f,!g):K==null&&f&&f.ref!=null&&Cn(f.ref,null,v,f,!0)},V=(f,g,b,x)=>{if(f==null)s(g.el=l(g.children),b,x);else{const h=g.el=f.el;g.children!==f.children&&d(h,g.children)}},A=(f,g,b,x)=>{f==null?s(g.el=a(g.children||""),b,x):g.el=f.el},R=(f,g,b,x)=>{[f.el,f.anchor]=M(f.children,g,b,x,f.el,f.anchor)},N=({el:f,anchor:g},b,x)=>{let h;for(;f&&f!==g;)h=w(f),s(f,b,x),f=h;s(g,b,x)},L=({el:f,anchor:g})=>{let b;for(;f&&f!==g;)b=w(f),o(f),f=b;o(g)},H=(f,g,b,x,h,v,p,C,O)=>{if(g.type==="svg"?p="svg":g.type==="math"&&(p="mathml"),f==null)he(g,b,x,h,v,p,C,O);else{const E=f.el&&f.el._isVueCE?f.el:null;try{E&&E._beginPatch(),q(f,g,h,v,p,C,O)}finally{E&&E._endPatch()}}},he=(f,g,b,x,h,v,p,C)=>{let O,E;const{props:K,shapeFlag:D,transition:W,dirs:J}=f;if(O=f.el=r(f.type,v,K&&K.is,K),D&8?c(O,f.children):D&16&&Y(f.children,O,null,x,h,$s(f,v),p,C),J&&Gt(f,null,x,"created"),te(O,f,f.scopeId,p,x),K){for(const ge in K)ge!=="value"&&!wn(ge)&&i(O,ge,null,K[ge],v,x);"value"in K&&i(O,"value",null,K.value,v),(E=K.onVnodeBeforeMount)&&dt(E,x,f)}J&&Gt(f,null,x,"beforeMount");const oe=Za(h,W);oe&&W.beforeEnter(O),s(O,g,b),((E=K&&K.onVnodeMounted)||oe||J)&&je(()=>{try{E&&dt(E,x,f),oe&&W.enter(O),J&&Gt(f,null,x,"mounted")}finally{}},h)},te=(f,g,b,x,h)=>{if(b&&_(f,b),x)for(let v=0;v<x.length;v++)_(f,x[v]);if(h){let v=h.subTree;if(g===v||Hr(v.type)&&(v.ssContent===g||v.ssFallback===g)){const p=h.vnode;te(f,p,p.scopeId,p.slotScopeIds,h.parent)}}},Y=(f,g,b,x,h,v,p,C,O=0)=>{for(let E=O;E<f.length;E++){const K=f[E]=C?Rt(f[E]):gt(f[E]);$(null,K,g,b,x,h,v,p,C)}},q=(f,g,b,x,h,v,p)=>{const C=g.el=f.el;let{patchFlag:O,dynamicChildren:E,dirs:K}=g;O|=f.patchFlag&16;const D=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),E&&(!f.dynamicChildren||f.dynamicChildren.length!==E.length)&&(O=0,p=!1,E=null),(D.innerHTML&&W.innerHTML==null||D.textContent&&W.textContent==null)&&c(C,""),E?fe(f.dynamicChildren,E,C,b,x,$s(g,h),v):p||ie(f,g,C,null,b,x,$s(g,h),v,!1),O>0){if(O&16)Se(C,D,W,b,h);else if(O&2&&D.class!==W.class&&i(C,"class",null,W.class,h),O&4&&i(C,"style",D.style,W.style,h),O&8){const oe=g.dynamicProps;for(let ge=0;ge<oe.length;ge++){const de=oe[ge],xe=D[de],Oe=W[de];(Oe!==xe||de==="value")&&i(C,de,xe,Oe,h,b)}}O&1&&f.children!==g.children&&c(C,g.children)}else!p&&E==null&&Se(C,D,W,b,h);((J=W.onVnodeUpdated)||K)&&je(()=>{J&&dt(J,b,g,f),K&&Gt(g,f,b,"updated")},x)},fe=(f,g,b,x,h,v,p)=>{for(let C=0;C<g.length;C++){const O=f[C],E=g[C],K=O.el||Zs(O),D=K&&(O.type===ne||!vn(O,E)||O.shapeFlag&198)?m(K):b;$(O,E,D,null,x,h,v,p,!0)}},Se=(f,g,b,x,h)=>{if(g!==b){if(g!==me)for(const v in g)!wn(v)&&!(v in b)&&i(f,v,g[v],null,h,x);for(const v in b){if(wn(v))continue;const p=b[v],C=g[v];p!==C&&v!=="value"&&i(f,v,C,p,h,x)}"value"in b&&i(f,"value",g.value,b.value,h)}},Te=(f,g,b,x,h,v,p,C,O)=>{const E=g.el=f?f.el:l(""),K=g.anchor=f?f.anchor:l("");let{patchFlag:D,dynamicChildren:W,slotScopeIds:J}=g;J&&(C=C?C.concat(J):J),f==null?(s(E,b,x),s(K,b,x),Y(g.children||[],b,K,h,v,p,C,O)):D>0&&D&64&&W&&f.dynamicChildren&&f.dynamicChildren.length===W.length?(fe(f.dynamicChildren,W,b,h,v,p,C),(g.key!=null||h&&g===h.subTree)&&Vr(f,g,!0)):ie(f,g,b,K,h,v,p,C,O)},Me=(f,g,b,x,h,v,p,C,O)=>{g.slotScopeIds=C,f==null?g.shapeFlag&512?h.ctx.activate(g,b,x,p,O):Ct(g,b,x,h,v,p,O):Ge(f,g,O)},Ct=(f,g,b,x,h,v,p)=>{const C=f.component=lc(f,x,h);if(wo(f)&&(C.ctx.renderer=F),ac(C,!1,p),C.asyncDep){if(h&&h.registerDep(C,pe,p,v),!f.el){const O=C.subTree=B(ot);A(null,O,g,b),f.placeholder=O.el}}else pe(C,f,g,b,h,v,p)},Ge=(f,g,b)=>{const x=g.component=f.component;if(Ba(f,g,b))if(x.asyncDep&&!x.asyncResolved){g.el=f.el,g.placeholder=f.placeholder,Q(x,g,b);return}else x.next=g,x.update();else g.el=f.el,g.placeholder=f.placeholder,x.vnode=g},pe=(f,g,b,x,h,v,p)=>{const C=()=>{if(f.isMounted){let{next:D,bu:W,u:J,parent:oe,vnode:ge}=f;{const ut=Lr(f);if(ut){D&&(D.el=ge.el,Q(f,D,p)),ut.asyncDep.then(()=>{je(()=>{f.isUnmounted||E()},h)});return}}let de=D,xe;qt(f,!1),D?(D.el=ge.el,Q(f,D,p)):D=ge,W&&qn(W),(xe=D.props&&D.props.onVnodeBeforeUpdate)&&dt(xe,oe,D,ge),qt(f,!0);const Oe=Go(f),ct=f.subTree;f.subTree=Oe,$(ct,Oe,m(ct.el),T(ct),f,h,v),D.el=Oe.el,de===null&&Ka(f,Oe.el),J&&je(J,h),(xe=D.props&&D.props.onVnodeUpdated)&&je(()=>dt(xe,oe,D,ge),h)}else{let D;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&&(D=J&&J.onVnodeBeforeMount)&&dt(D,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);$(null,ut,b,x,f,h,v),g.el=ut.el}if(ge&&je(ge,h),!ct&&(D=J&&J.onVnodeMounted)){const ut=g;je(()=>dt(D,de,ut),h)}(g.shapeFlag&256||de&&kn(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&je(f.a,h),f.isMounted=!0,g=b=x=null}};f.scope.on();const O=f.effect=new qi(C);f.scope.off();const E=f.update=O.run.bind(O),K=f.job=O.runIfDirty.bind(O);K.i=f,K.id=f.uid,O.scheduler=()=>bo(K),qt(f,!0),E()},Q=(f,g,b)=>{g.component=f;const x=f.vnode.props;f.vnode=g,f.next=null,Wa(f,g.props,x,b),Ya(f,g.children,b),wt(),pr(f),St()},ie=(f,g,b,x,h,v,p,C,O=!1)=>{const E=f&&f.children,K=f?f.shapeFlag:0,D=g.children,{patchFlag:W,shapeFlag:J}=g;if(W>0){if(W&128){lt(E,D,b,x,h,v,p,C,O);return}else if(W&256){Qe(E,D,b,x,h,v,p,C,O);return}}J&8?(K&16&&He(E,h,v),D!==E&&c(b,D)):K&16?J&16?lt(E,D,b,x,h,v,p,C,O):He(E,h,v,!0):(K&8&&c(b,""),J&16&&Y(D,b,x,h,v,p,C,O))},Qe=(f,g,b,x,h,v,p,C,O)=>{f=f||Xt,g=g||Xt;const E=f.length,K=g.length,D=Math.min(E,K);let W;for(W=0;W<D;W++){const J=g[W]=O?Rt(g[W]):gt(g[W]);$(f[W],J,b,null,h,v,p,C,O)}E>K?He(f,h,v,!0,!1,D):Y(g,b,x,h,v,p,C,O,D)},lt=(f,g,b,x,h,v,p,C,O)=>{let E=0;const K=g.length;let D=f.length-1,W=K-1;for(;E<=D&&E<=W;){const J=f[E],oe=g[E]=O?Rt(g[E]):gt(g[E]);if(vn(J,oe))$(J,oe,b,null,h,v,p,C,O);else break;E++}for(;E<=D&&E<=W;){const J=f[D],oe=g[W]=O?Rt(g[W]):gt(g[W]);if(vn(J,oe))$(J,oe,b,null,h,v,p,C,O);else break;D--,W--}if(E>D){if(E<=W){const J=W+1,oe=J<K?g[J].el:x;for(;E<=W;)$(null,g[E]=O?Rt(g[E]):gt(g[E]),b,oe,h,v,p,C,O),E++}}else if(E>W)for(;E<=D;)ke(f[E],h,v,!0),E++;else{const J=E,oe=E,ge=new Map;for(E=oe;E<=W;E++){const Be=g[E]=O?Rt(g[E]):gt(g[E]);Be.key!=null&&ge.set(Be.key,E)}let de,xe=0;const Oe=W-oe+1;let ct=!1,ut=0;const gn=new Array(Oe);for(E=0;E<Oe;E++)gn[E]=0;for(E=J;E<=D;E++){const Be=f[E];if(xe>=Oe){ke(Be,h,v,!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,h,v,!0):(gn[ft-oe]=E+1,ft>=ut?ut=ft:ct=!0,$(Be,g[ft],b,null,h,v,p,C,O),xe++)}const Po=ct?ec(gn):Xt;for(de=Po.length-1,E=Oe-1;E>=0;E--){const Be=oe+E,ft=g[Be],Io=g[Be+1],Mo=Be+1<K?Io.el||Zs(Io):x;gn[E]===0?$(null,ft,b,Mo,h,v,p,C,O):ct&&(de<0||E!==Po[de]?$e(ft,b,Mo,2):de--)}}},$e=(f,g,b,x,h=null)=>{const{el:v,type:p,transition:C,children:O,shapeFlag:E}=f;if(E&6){$e(f.component.subTree,g,b,x);return}if(E&128){f.suspense.move(g,b,x);return}if(E&64){p.move(f,g,b,F);return}if(p===ne){s(v,g,b);for(let D=0;D<O.length;D++)$e(O[D],g,b,x);s(f.anchor,g,b);return}if(p===Ns){N(f,g,b);return}if(x!==2&&E&1&&C)if(x===0)C.persisted&&!v[Is]?s(v,g,b):(C.beforeEnter(v),s(v,g,b),je(()=>C.enter(v),h));else{const{leave:D,delayLeave:W,afterLeave:J}=C,oe=()=>{f.ctx.isUnmounted?o(v):s(v,g,b)},ge=()=>{const de=v._isLeaving||!!v[Is];v._isLeaving&&v[Is](!0),C.persisted&&!de?oe():D(v,()=>{oe(),J&&J()})};W?W(v,oe,ge):ge()}else s(v,g,b)},ke=(f,g,b,x=!1,h=!1)=>{const{type:v,props:p,ref:C,children:O,dynamicChildren:E,shapeFlag:K,patchFlag:D,dirs:W,cacheIndex:J,memo:oe}=f;if((D===-2||E&&E.hasOnce)&&(h=!1),C!=null&&(wt(),Cn(C,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=p&&p.onVnodeBeforeUnmount)&&dt(xe,g,f),K&6)Xe(f.component,b,x);else{if(K&128){f.suspense.unmount(b,x);return}ge&&Gt(f,null,g,"beforeUnmount"),K&64?f.type.remove(f,g,b,F,x):E&&!E.hasOnce&&(v!==ne||D>0&&D&64)?He(E,g,b,!1,!0):(v===ne&&D&384||!h&&K&16)&&He(O,g,b),x&&Nt(f)}const Oe=oe!=null&&J==null;(de&&(xe=p&&p.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:x,transition:h}=f,v=g===ne;if(v&&!h){at(b,x);return}if(g===Ns){L(f),h&&!h.persisted&&h.afterLeave&&h.afterLeave();return}const p=v?qs(f):f,C=()=>{v?m(b)&&at(b,x):o(b),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(p&&p.shapeFlag&1&&h&&!h.persisted){const{leave:O,delayLeave:E}=h,K=p.el,D=()=>O(K,C);E?E(K,C,D):D()}else C()},at=(f,g)=>{let b;for(;f!==g;)b=w(f),o(f),f=b;o(g)},Xe=(f,g,b)=>{const{bum:x,scope:h,job:v,subTree:p,um:C,m:O,a:E}=f;Yo(O),Yo(E),x&&qn(x),h.stop(),v?(v.flags|=8,ke(p,f,g,b)):f.vnode.el&&p&&(p.transition=f.vnode.transition,ke(p,f,g,b)),C&&je(C,g),je(()=>{f.isUnmounted=!0},g)},He=(f,g,b,x=!1,h=!1,v=0)=>{for(let p=v;p<f.length;p++)ke(f[p],g,b,x,h)},T=f=>{if(f.shapeFlag&6)return T(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=w(f.anchor||f.el),b=g&&g[va];return b?w(b):g},j=(f,g,b)=>{const x=f&&g._vnode?void 0:f&&f.component?f.component.uid:rc();da(()=>{f==null?g._vnode&&ke(g._vnode,null,null,!0):$(g._vnode||null,f,g,null,null,null,b),g._vnode=f},x)},F={p:$,um:ke,m:$e,r:Nt,mt:Ct,mc:Y,pc:ie,pbc:fe,n:T,o:e};return{render:j,hydrate:void 0,createApp:Fa(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 Za(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===ws&&(l.patchFlag===-1&&(l=o[i]=Rt(l)),l.el=r.el),l.type===ot&&!l.el&&(l.el=r.el)}}function ec(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 Zs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Zs(t.subTree):null}const Hr=e=>e.__isSuspense;function tc(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):fa(e)}const ne=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),nn=[];let Ke=null;function P(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 I(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 Mn(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=nc;function nc(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Ta)&&(e=ot),Mn(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(dc(e)&&(e=e.__vccOpts),t){t=sc(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 sc(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?oc(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(ws,null,e,t)}function ee(e="",t=!1){return t?(P(),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()):Mn(e)?Rt(e):B(ws,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 oc(...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 ic=Er();let Kr=0;function rc(){return Kr}function lc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||ic,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:$r(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=La.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const zr=()=>Le||qe;let rs,$n;{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),$n=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 ac(e,t=!1,n=!1){t&&$n(t);const{props:s,children:o}=e.vnode,i=Wr(e);za(e,s,i,t),Ja(e,o,n||t);const r=i?cc(e,t):void 0;return t&&$n(!1),r}function cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oa);const{setup:s}=n;if(s){wt();const o=e.setupContext=s.length>1?fc(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=>{$n(!0);try{Xo(e,a,t)}finally{$n(!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{Pa(e)}finally{St(),o()}}}const uc={get(e,t){return Ne(e,"get",""),e[t]}};function fc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,uc),slots:e.slots,emit:e.emit,expose:t}}function Ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fr(_o(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 dc(e){return Z(e)&&"__vccOpts"in e}const se=(e,t)=>ra(e,t,Nn);function qr(e,t,n){try{os(-1);const s=arguments.length;return s===2?ue(t)&&!z(t)?Mn(t)?B(e,null,[t]):B(e,t):B(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mn(n)&&(n=[n]),B(e,t,n))}finally{os(1)}}const hc="3.5.44";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.44
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let eo;const Zo=typeof window<"u"&&window.trustedTypes;if(Zo)try{eo=Zo.createPolicy("vue",{createHTML:e=>e})}catch{}const Jr=eo?e=>eo.createHTML(e):e=>e,pc="http://www.w3.org/2000/svg",gc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ei=At&&At.createElement("template"),mc={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(pc,e):t==="mathml"?At.createElementNS(gc,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]}},vc=Symbol("_vtc");function yc(e,t,n){const s=e[vc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),_c=Symbol("_vsh"),bc=Symbol(""),wc=/(?:^|;)\s*display\s*:/;function Sc(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?Cc(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[bc];r&&(n+=";"+r),s.cssText=n,i=wc.test(n)}}else t&&e.removeAttribute("style");ti in e&&((!o||t!==n)&&(e[ti]=i?s.display:""),e[_c]&&(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=xc(e,t);zn.test(n)?e.setProperty(zt(s),n.replace(zn,""),"important"):e[s]=n}}const ni=["Webkit","Moz","ms"],Ds={};function xc(e,t){const n=Ds[t];if(n)return n;let s=et(t);if(s!=="filter"&&s in e)return Ds[t]=s;s=Hi(s);for(let o=0;o<ni.length;o++){const i=ni[o]+s;if(i in e)return Ds[t]=i}return t}function Cc(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=Il(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 kc(e,t,n,s){e.removeEventListener(t,n,s)}const ri=Symbol("_vei");function Ec(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]=Tc(t);if(s){const d=i[t]=Ic(s,o);It(e,l,d,a)}else r&&(kc(e,l,r,a),i[t]=void 0)}}const Ac=/(Once|Passive|Capture)$/,Rc=/^on:?(?:Once|Passive|Capture)$/;function Tc(e){let t,n;for(;(n=e.match(Ac))&&!Rc.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 Fs=0;const Oc=Promise.resolve(),Pc=()=>Fs||(Oc.then(()=>Fs=0),Fs=Date.now());function Ic(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=Pc(),n}const li=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Mc=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?yc(e,s,r):t==="style"?Sc(e,n,s):ls(t)?as(t)||Ec(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&&(Nc(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 Nc(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 Dc(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 Vs(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](Vs(e.value,n,i))}),(n||i)&&It(e,"change",()=>{e.value=Vs(e.value,n,i)}),t||(It(e,"compositionstart",Dc),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](Vs(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)}},Fc={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=fo(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(Mt(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=fo(t,s.props.value)>-1;else if(Mt(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 Vc={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?Mt(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||!Lc(t,n[1],n[0]))&&ui(e,t)}};function Lc(e,t,n){if(!n||z(e))return nt(e,t);if(Mt(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&&!Mt(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=fo(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 Hc={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 jc(e,t){switch(e){case"SELECT":return Co;case"TEXTAREA":return Ut;default:switch(t){case"checkbox":return Fc;case"radio":return Vc;default:return Ut}}}function Gn(e,t,n,s,o){const r=jc(e.tagName,n.props&&n.props.type)[o];r&&r(e,t,n,s)}const Uc=["ctrl","shift","alt","meta"],Bc={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)=>Uc.some(n=>e[`${n}Key`]&&!t.includes(n))},to=(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=Bc[t[r]];if(l&&l(o,t))return}return e(o,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zc=(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||Kc[r]===i))return e(o)})},Wc=Ie({patchProp:Mc},mc);let fi;function Gc(){return fi||(fi=Qa(Wc))}const qc=(...e)=>{const t=Gc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Yc(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,Jc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function Jc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yc(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 xs=e=>Qr=e,Xr=Symbol();function no(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 Qc(){const e=Wi(!0),t=e.run(()=>le({}));let n=[],s=[];const o=_o({install(i){xs(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()&&Nl(o),o}function rn(e,...t){e.slice().forEach(n=>{n(...t)})}const Xc=e=>e(),hi=Symbol(),Ls=Symbol();function so(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];no(o)&&no(s)&&e.hasOwnProperty(n)&&!we(s)&&!yt(s)?e[n]=so(o,s):e[n]=s}return e}const Zc=Symbol();function eu(e){return!no(e)||!e.hasOwnProperty(Zc)}const{assign:Ft}=Object;function tu(e){return!!(we(e)&&e.effect)}function nu(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=na(n.state.value[e]);return Ft(c,i,Object.keys(r||{}).reduce((m,w)=>(m[w]=_o(se(()=>{xs(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 M=s.state.value[e];!i&&!M&&(s.state.value[e]={});let $;function V(Y){let q;d=c=!1,typeof Y=="function"?(Y(s.state.value[e]),q={type:An.patchFunction,storeId:e,events:_}):(so(s.state.value[e],Y),q={type:An.patchObject,payload:Y,storeId:e,events:_});const fe=$=Symbol();Ln().then(()=>{$===fe&&(d=!0)}),c=!0,rn(m,q,s.state.value[e])}const A=i?function(){const{state:q}=n,fe=q?q():{};this.$patch(Se=>{Ft(Se,fe)})}:Zr;function R(){r.stop(),m=[],w=[],s._s.delete(e)}const N=(Y,q="")=>{if(hi in Y)return Y[Ls]=q,Y;const fe=function(){xs(s);const Se=Array.from(arguments),Te=[],Me=[];function Ct(Q){Te.push(Q)}function Ge(Q){Me.push(Q)}rn(w,{args:Se,name:fe[Ls],store:H,after:Ct,onError:Ge});let pe;try{pe=Y.apply(this&&this.$id===e?this:H,Se)}catch(Q){throw rn(Me,Q),Q}return pe instanceof Promise?pe.then(Q=>(rn(Te,Q),Q)).catch(Q=>(rn(Me,Q),Promise.reject(Q))):(rn(Te,pe),pe)};return fe[hi]=!0,fe[Ls]=q,fe},L={_p:s,$id:e,$onAction:di.bind(null,w),$patch:V,$reset:A,$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:R},H=sn(L);s._s.set(e,H);const te=(s._a&&s._a.runWithContext||Xc)(()=>s._e.run(()=>(r=Wi()).run(()=>t({action:N}))));for(const Y in te){const q=te[Y];if(we(q)&&!tu(q)||yt(q))i||(M&&eu(q)&&(we(q)?q.value=M[Y]:so(q,M[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=>{V(q=>{Ft(q,Y)})}}),s._p.forEach(Y=>{Ft(H,r.run(()=>Y({store:H,app:s._a,pinia:s,options:l})))}),M&&i&&n.hydrate&&n.hydrate(H.$state,M),d=!0,c=!0,H}/*! #__NO_SIDE_EFFECTS__ */function Cs(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=ha();return l=l||(d?_t(Xr,null):null),l&&xs(l),l=Qr,l._s.has(s)||(i?el(s,t,o,l):nu(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 su(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tl(e.default)}const ce=Object.assign;function Hs(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,ou=/&/g,iu=/\//g,ru=/=/g,lu=/\?/g,sl=/\+/g,au=/%5B/g,cu=/%5D/g,ol=/%5E/g,uu=/%60/g,il=/%7B/g,fu=/%7C/g,rl=/%7D/g,du=/%20/g;function ko(e){return e==null?"":encodeURI(""+e).replace(fu,"|").replace(au,"[").replace(cu,"]")}function hu(e){return ko(e).replace(il,"{").replace(rl,"}").replace(ol,"^")}function oo(e){return ko(e).replace(sl,"%2B").replace(du,"+").replace(nl,"%23").replace(ou,"%26").replace(uu,"`").replace(il,"{").replace(rl,"}").replace(ol,"^")}function pu(e){return oo(e).replace(ru,"%3D")}function gu(e){return ko(e).replace(nl,"%23").replace(lu,"%3F")}function mu(e){return gu(e).replace(iu,"%2F")}function Dn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const vu=/\/$/,yu=e=>e.replace(vu,"");function js(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=Su(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:Dn(r)}}function _u(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 bu(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(!wu(e[n],t[n]))return!1;return!0}function wu(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 Su(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 io=function(e){return e.pop="pop",e.push="push",e}({}),Us=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function xu(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),yu(e)}const Cu=/^[^#]+#/;function ku(e,t){return e.replace(Cu,"#")+t}function Eu(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 ks=()=>({left:window.scrollX,top:window.scrollY});function Au(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=Eu(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 ro=new Map;function Ru(e,t){ro.set(e,t)}function Tu(e){const t=ro.get(e);return ro.delete(e),t}function Ou(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 Pu=["params","query","hash"];function Iu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Pu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Mu(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=pu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(it(s)?s.map(o=>o&&oo(o)):[s&&oo(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 Nu=Symbol(""),_i=Symbol(""),Eo=Symbol(""),ul=Symbol(""),lo=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):Ou(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 Bs(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=su(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 Du(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 Fu=()=>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 Vu(e,t,n,s){let o=[],i=[],r=null;const l=({state:w})=>{const _=fl(e,location),M=n.value,$=t.value;let V=0;if(w){if(n.value=_,t.value=w,r&&r===M){r=null;return}V=$?w.position-$.position:0}else s(_);o.forEach(A=>{A(n.value,M,{delta:V,type:io.pop,direction:V?V>0?Us.forward:Us.back:Us.unknown})})};function a(){r=n.value}function d(w){o.push(w);const _=()=>{const M=o.indexOf(w);M>-1&&o.splice(M,1)};return i.push(_),_}function c(){if(document.visibilityState==="hidden"){const{history:w}=window;if(!w.state)return;w.replaceState(ce({},w.state,{scroll:ks()}),"")}}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?ks():null}}function Lu(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:Fu()+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:ks()});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 Hu(e){e=xu(e);const t=Lu(e),n=Vu(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:ku.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 ju(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Hu(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 Uu={type:Zt.Static,value:""},Bu=/[a-zA-Z0-9_]/;function Ku(e){if(!e)return[[]];if(e==="/")return[[Uu]];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:Bu.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="[^/]+?",zu={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 Wu=/[.+*?^${}()[\]/\\]/g;function Gu(e,t){const n=ce({},zu,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(Wu,"\\$&"),_+=Fe.Static;else if(w.type===Zt.Param){const{value:M,repeatable:$,optional:V,regexp:A}=w;i.push({name:M,repeatable:$,optional:V});const R=A||wi;if(R!==wi){_+=Fe.BonusCustomRegExp;try{`${R}`}catch(L){throw new Error(`Invalid custom RegExp for param "${M}" (${R}): `+L.message)}}let N=$?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;m||(N=V&&d.length<2?`(?:/${N})`:"/"+N),V&&(N+="?"),o+=N,_+=Fe.Dynamic,V&&(_+=Fe.BonusOptional),$&&(_+=Fe.BonusRepeatable),R===".*"&&(_+=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]||"",M=i[w-1];m[M.name]=_&&M.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:M,repeatable:$,optional:V}=_,A=M in d?d[M]:"";if(it(A)&&!$)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const R=it(A)?A.join("/"):A;if(!R)if(V)w.length<2&&(c.endsWith("/")?c=c.slice(0,-1):m=!0);else throw new Error(`Missing required param "${M}"`);c+=R}}return c||"/"}return{re:r,score:s,keys:i,parse:l,stringify:a}}function qu(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=qu(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 Ju={strict:!1,end:!0,sensitive:!1};function Yu(e,t,n){const s=Gu(Ku(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 Qu(e,t){const n=[],s=new Map;t=pi(Ju,t);function o(m){return s.get(m)}function i(m,w,_){const M=!_,$=Ci(m);$.aliasOf=_&&_.record;const V=pi(t,m),A=[$];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const H of L)A.push(Ci(ce({},$,{components:_?_.record.components:$.components,path:H,aliasOf:_?_.record:$})))}let R,N;for(const L of A){const{path:H}=L;if(w&&H[0]!=="/"){const he=w.record.path,te=he[he.length-1]==="/"?"":"/";L.path=w.record.path+(H&&te+H)}if(R=Yu(L,w,V),_?_.alias.push(R):(N=N||R,N!==R&&N.alias.push(R),M&&m.name&&!ki(R)&&r(m.name)),hl(R)&&a(R),$.children){const he=$.children;for(let te=0;te<he.length;te++)i(he[te],R,_&&_.children[te])}_=_||R}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=ef(m,n);n.splice(w,0,m),m.record.name&&!ki(m)&&s.set(m.record.name,m)}function d(m,w){let _,M={},$,V;if("name"in m&&m.name){if(_=s.get(m.name),!_)throw hn(_e.MATCHER_NOT_FOUND,{location:m});V=_.record.name,M=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))),$=_.stringify(M)}else if(m.path!=null)$=m.path,_=n.find(N=>N.re.test($)),_&&(M=_.parse($),V=_.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});V=_.record.name,M=ce({},w.params,m.params),$=_.stringify(M)}const A=[];let R=_;for(;R;)A.unshift(R.record),R=R.parent;return{name:V,path:$,params:M,matched:A,meta:Zu(A)}}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:Xu(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 Xu(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 Zu(e){return e.reduce((t,n)=>ce(t,n.meta),{})}function ef(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=tf(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function tf(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&&rf(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(of(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 nf(e){return e.length===1?e[0]:e}const sf=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&&nf(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=sf;function of(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 rf(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,lf=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(lo),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(Nu,l),Jn(lo,o);const a=le();return jt(()=>[a.value,l.value,e.name],([d,c,m],[w,_,M])=>{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($=>$(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],M=_?_===!0?d.params:typeof _=="function"?_(d):_:null,V=qr(w,ce({},M,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[c]=null)},ref:a}));return Ti(n.default,{Component:V,route:d})||V}}});function Ti(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pl=lf;function af(e){const t=Qu(e.routes,e),n=e.parseQuery||Mu,s=e.stringifyQuery||yi,o=e.history,i=yn(),r=yn(),l=yn(),a=Zl(Dt);let d=Dt;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Hs.bind(null,T=>""+T),m=Hs.bind(null,mu),w=Hs.bind(null,Dn);function _(T,j){let F,G;return al(T)?(F=t.getRecordMatcher(T),G=j):G=T,t.addRoute(G,F)}function M(T){const j=t.getRecordMatcher(T);j&&t.removeRoute(j)}function $(){return t.getRoutes().map(T=>T.record)}function V(T){return!!t.getRecordMatcher(T)}function A(T,j){if(j=ce({},j||a.value),typeof T=="string"){const x=js(n,T,j.path),h=t.resolve({path:x.path},j),v=o.createHref(x.fullPath);return ce(x,h,{params:w(h.params),hash:Dn(x.hash),redirectedFrom:void 0,href:v})}let F;if(T.path!=null)F=ce({},T,{path:js(n,T.path,j.path).path});else{const x=ce({},T.params);for(const h in x)x[h]==null&&delete x[h];F=ce({},T,{params:m(x)}),j.params=m(j.params)}const G=t.resolve(F,j),f=T.hash||"";G.params=c(w(G.params));const g=_u(s,ce({},T,{hash:hu(f),path:G.path})),b=o.createHref(g);return ce({fullPath:g,hash:f,query:s===yi?$u(T.query):T.query||{}},G,{redirectedFrom:void 0,href:b})}function R(T){return typeof T=="string"?js(n,T,a.value.path):ce({},T)}function N(T,j){if(d!==T)return hn(_e.NAVIGATION_CANCELLED,{from:j,to:T})}function L(T){return te(T)}function H(T){return L(ce(R(T),{replace:!0}))}function he(T,j){const F=T.matched[T.matched.length-1];if(F&&F.redirect){const{redirect:G}=F;let f=typeof G=="function"?G(T,j):G;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=R(f):{path:f},f.params={}),ce({query:T.query,hash:T.hash,params:f.path!=null?{}:T.params},f)}}function te(T,j){const F=d=A(T),G=a.value,f=T.state,g=T.force,b=T.replace===!0,x=he(F,G);if(x)return te(ce(R(x),{state:typeof x=="object"?ce({},f,x.state):f,force:g,replace:b}),j||F);const h=F;h.redirectedFrom=j;let v;return!g&&bu(s,G,F)&&(v=hn(_e.NAVIGATION_DUPLICATED,{to:h,from:G}),$e(G,G,!0,!1)),(v?Promise.resolve(v):fe(h,G)).catch(p=>Et(p)?Et(p,_e.NAVIGATION_GUARD_REDIRECT)?p:lt(p):ie(p,h,G)).then(p=>{if(p){if(Et(p,_e.NAVIGATION_GUARD_REDIRECT))return te(ce({replace:b},R(p.to),{state:typeof p.to=="object"?ce({},f,p.to.state):f,force:g}),j||h)}else p=Te(h,G,!0,b,f);return Se(h,G,p),p})}function Y(T,j){const F=N(T,j);return F?Promise.reject(F):Promise.resolve()}function q(T){const j=at.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(T):T()}function fe(T,j){let F;const[G,f,g]=Du(T,j);F=Bs(G.reverse(),"beforeRouteLeave",T,j);for(const x of G)x.leaveGuards.forEach(h=>{F.push(Lt(h,T,j))});const b=Y.bind(null,T,j);return F.push(b),He(F).then(()=>{F=[];for(const x of i.list())F.push(Lt(x,T,j));return F.push(b),He(F)}).then(()=>{F=Bs(f,"beforeRouteUpdate",T,j);for(const x of f)x.updateGuards.forEach(h=>{F.push(Lt(h,T,j))});return F.push(b),He(F)}).then(()=>{F=[];for(const x of g)if(x.beforeEnter)if(it(x.beforeEnter))for(const h of x.beforeEnter)F.push(Lt(h,T,j));else F.push(Lt(x.beforeEnter,T,j));return F.push(b),He(F)}).then(()=>(T.matched.forEach(x=>x.enterCallbacks={}),F=Bs(g,"beforeRouteEnter",T,j,q),F.push(b),He(F))).then(()=>{F=[];for(const x of r.list())F.push(Lt(x,T,j));return F.push(b),He(F)}).catch(x=>Et(x,_e.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function Se(T,j,F){l.list().forEach(G=>q(()=>G(T,j,F)))}function Te(T,j,F,G,f){const g=N(T,j);if(g)return g;const b=j===Dt,x=cn?history.state:{};F&&(G||b?o.replace(T.fullPath,ce({scroll:b&&x&&x.scroll},f)):o.push(T.fullPath,f)),a.value=T,$e(T,j,F,b),lt()}let Me;function Ct(){Me||(Me=o.listen((T,j,F)=>{if(!Xe.listening)return;const G=A(T),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&&Ru(vi(g.fullPath,F.delta),ks()),fe(G,g).catch(b=>Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_CANCELLED)?b:Et(b,_e.NAVIGATION_GUARD_REDIRECT)?(te(ce(R(b.to),{force:!0}),G).then(x=>{Et(x,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===io.pop&&o.go(-1,!1)}).catch(Rn),Promise.reject()):(F.delta&&o.go(-F.delta,!1),ie(b,G,g))).then(b=>{b=b||Te(G,g,!1),b&&(F.delta&&!Et(b,_e.NAVIGATION_CANCELLED)?o.go(-F.delta,!1):F.type===io.pop&&Et(b,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Se(G,g,b)}).catch(Rn)}))}let Ge=yn(),pe=yn(),Q;function ie(T,j,F){lt(T);const G=pe.list();return G.length?G.forEach(f=>f(T,j,F)):console.error(T),Promise.reject(T)}function Qe(){return Q&&a.value!==Dt?Promise.resolve():new Promise((T,j)=>{Ge.add([T,j])})}function lt(T){return Q||(Q=!T,Ct(),Ge.list().forEach(([j,F])=>T?F(T):j()),Ge.reset()),T}function $e(T,j,F,G){const{scrollBehavior:f}=e;if(!cn||!f)return Promise.resolve();const g=!F&&Tu(vi(T.fullPath,0))||(G||!F)&&history.state&&history.state.scroll||null;return Ln().then(()=>f(T,j,g)).then(b=>b&&Au(b)).catch(b=>ie(b,T,j))}const ke=T=>o.go(T);let Nt;const at=new Set,Xe={currentRoute:a,listening:!0,addRoute:_,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:V,getRoutes:$,resolve:A,options:e,push:L,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(T){T.component("RouterLink",Qt),T.component("RouterView",pl),T.config.globalProperties.$router=Xe,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),cn&&!Nt&&a.value===Dt&&(Nt=!0,L(o.location).catch(G=>{}));const j={};for(const G in Dt)Object.defineProperty(j,G,{get:()=>a.value[G],enumerable:!0});T.provide(Eo,Xe),T.provide(ul,cr(j)),T.provide(lo,a);const F=T.unmount;at.add(T),T.unmount=function(){at.delete(T),at.size<1&&(d=Dt,Me&&Me(),Me=null,a.value=Dt,Nt=!1,Q=!1),F()}}};function He(T){return T.reduce((j,F)=>j.then(()=>q(F)),Promise.resolve())}return Xe}class cf{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 gl(){return Oi??(Oi=new cf),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=Cs("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=Cs("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=Cs("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}}}),ml=Cs("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,ao=`http://127.0.0.1:${uf}`,ff="https://duduer.com";function jn(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function vl(){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(`${ao}/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 yl(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=ml(),o=gl();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()]))}),_s(()=>{})}const k={appName:"嘟嘟转换器",nav:{home:"首页",workbench:"功能页",history:"转换历史",settings:"设置"},connection:{connected:"已连接本地服务",disconnected:"连接已断开,正在自动重连"},doctor:{title:"依赖与环境",recheck:"重新检测",install:"一键安装",uninstall:"一键卸载",copy:"复制命令",manual:"手动下载",logs:"操作日志",ready:"可用",outdated:"版本过旧",missingRequired:"必需缺失",missingOptional:"可选缺失",sessionRunning:"执行中,请耐心等待…",sessionDone:"✅ 操作完成",sessionFailed:"❌ 操作失败,详情见下方日志"},workbench:{title:"转换工作台",subtitle:"按类型分栏管理,文件入表后逐个或批量转换",dropTitle:"把{tab}文件拖到这里",dropHint:"支持 {exts} 等格式",dropCompact:"继续添加{tab}文件",pastePlaceholder:"粘贴文件绝对路径,回车添加",wrongTab:"{name} 不属于{tab},请切换到对应标签页添加",fileDuplicate:"已在列表中,无需重复添加",addFile:"选择文件",addPath:"添加",convertTo:"批量转换为",noCommonTargets:"当前文件没有共同的转换目标,请清理后分批转换",noTools:"该类别依赖的工具尚未安装,请到「环境检测」页安装后重试",tableFile:"文件名",tablePath:"路径",tableSize:"大小",tableStatus:"状态",tableActions:"操作",statusPending:"待转换",statusRunning:"转换中",statusSuccess:"转换成功",statusFailed:"转换失败",convert:"转换",retry:"重试",openFolder:"打开目录",download:"下载",remove:"移除",clearDone:"清除已完成",batchConvert:"开始批量转换",batchConvertN:"开始批量转换({n} 个)",batchDone:"本次批量转换已完成",paramsTitle:"高级参数",advanced:"高级设置",chooseFile:"选择文件"},history:{title:"转换历史",subtitle:"所有转换任务按时间倒序排列,可随时下载或打开产物",filterAll:"全部",statTotal:"累计任务",statSuccess:"成功",statFailed:"失败",searchPlaceholder:"搜索文件名…",empty:"还没有转换记录,去工作台开始第一次转换吧",today:"今天",yesterday:"昨天",openFolder:"打开目录",download:"下载",remove:"删除",clear:"清空历史"},landing:{heroBadge:"本地转换 · 零上传 · 不限文件大小",heroTitle:"你的文件,",heroAccent:"不必上传",heroTagline:"嘟嘟本地万能转换器:视频、音频、图片、文档在本机一步完成 —— 没有大小限制,没有隐私顾虑,没有漫长等待。",cta:"立即开始转换",ctaInstall:"查看安装指南",localRunning:"转换器已在本机运行,可直接进入功能页",stats:[{value:"22",label:"转换能力"},{value:"40+",label:"支持格式"},{value:"0",label:"文件上传"},{value:"100%",label:"本机运行"}],painTitle:"你是不是也有这些顾虑?",painSub:"嘟嘟把这些通通变成过去。",pains:[{icon:"shield",title:"文件传上去,心里不踏实",text:"合同、证件、家庭影像……一旦上传到陌生服务器,隐私就不再由你掌控。"},{icon:"globe",title:"在线工具处处受限",text:"大小限制、格式缺失、会员付费、广告弹窗,简单转个文件总要妥协。"},{icon:"clock",title:"传上去再下载,来回折腾",text:"大文件先上传一小时,转换完再下载一小时,网速决定了心情。"}],valueTitle:"换一种方式转换文件",valueSub:"本机运行带来的三个直接好处",values:[{icon:"shield-check",title:"文件不出你的电脑",text:"所有解析与转换都在本机完成,不经任何服务器,隐私天然无忧。"},{icon:"package-plus",title:"缺什么,一键装什么",text:"首次使用自动体检环境,FFmpeg 等引擎在页面里点一下即可安装。"},{icon:"zap",title:"装完即用,秒级开始",text:"一条命令安装,浏览器自动打开操作界面,拖入文件立刻出结果。"}],scenesTitle:"这些瞬间,嘟嘟都帮得上忙",scenesSub:"来自日常使用的高频场景",scenes:[{icon:"video",title:"网课录屏瘦身",text:"几个 G 的课程录像压成几百 MB,备份分享都不再犯难"},{icon:"image",title:"聊天图片压缩",text:"手机原图一张 8MB,压完不到 1MB,清晰度几乎不变"},{icon:"pdf",title:"发票合并归档",text:"几十张发票 PDF 按顺序合并成一个文件,报销不再手忙脚乱"},{icon:"sparkles",title:"表情包制作",text:"精彩片段一键做成 GIF 动图,斗图弹药永远充足"},{icon:"markdown",title:"简历笔记定稿",text:"Markdown 写完一键转 Word / PDF,排版不乱直接发"},{icon:"shield",title:"证件照脱敏外发",text:"身份证扫描件加水印或加密,发给陌生方也更安心"}],featuresTitle:"覆盖你日常的每一类文件",featuresSub:"22 类能力 · 40+ 种格式,全部本机完成",compareTitle:"和在线转换工具比一比",compareSub:"同样的转换,不同的体验",compare:[{item:"文件隐私",online:"上传到陌生服务器",local:"全程留在你的电脑里"},{item:"文件大小",online:"免费版普遍限制 100MB",local:"无任何限制"},{item:"转换速度",online:"上传 + 下载双倍耗时",local:"直接读写本地磁盘"},{item:"批量处理",online:"多数按次收费",local:"免费,支持批量队列"},{item:"网络依赖",online:"必须联网上传",local:"断网也能正常转换"}],faqTitle:"常见问题",faqSub:"关于嘟嘟的几个高频疑问",faq:[{q:"我的文件会被上传吗?",a:"不会。嘟嘟完全运行在你自己的电脑上,转换过程不经过任何服务器,即使断网也能正常转换。"},{q:"需要付费吗?",a:"免费使用:无功能限制、无水印、无次数限制,也不需要注册账号。"},{q:"转换用的引擎需要自己装吗?",a:"不用自己找教程。首次使用某类能力时,应用会自动检测缺失的引擎,在「设置 → 依赖与环境」里点一下即可安装,全程图形化操作。"},{q:"支持 Windows 吗?",a:"支持。macOS 12+ 与 Windows 10/11 均可使用,安装命令在首页首屏即可一键复制。"},{q:"大文件会很慢或卡住吗?",a:"转换在本地队列并发执行(1–4 个可调),大文件只是耗时更长,不会占用云端额度,也不影响电脑其他操作。"}],footer:"嘟嘟转换器 · 本地优先的文件转换工具 · 文件永不上传"},install:{title:"安装转换器",step1:"打开终端",step2:"粘贴以下命令并回车",step3:"等待安装完成,浏览器会自动打开转换器",macos:"macOS",windows:"Windows",copy:"复制",copied:"已复制",macosTerminal:"按 ⌘+空格 打开聚焦搜索,输入「终端」或「Terminal」,回车打开",windowsTerminal:"点击开始菜单,输入「PowerShell」,回车打开",alreadyInstalled:"已经安装过?再次执行此命令会自动升级到新版本",manualTitle:"自动安装失败?手动安装",manualSteps:[{title:"安装 Node.js",text:"打开 nodejs.org 下载 Node.js 18 或更高版本,双击安装(保持默认选项)"},{title:"安装嘟嘟转换器",text:"打开终端(macOS:终端;Windows:PowerShell),执行 npm install -g dudu-converter-cli"},{title:"启动服务",text:"执行 converter start,浏览器访问 http://127.0.0.1:3456"}],startHint:"如果已经安装但未运行:在终端执行 converter start 启动后,回到此页重新检测"},gate:{checking:"正在检测本地转换器…",online:"已检测到本地转换器正在运行",open:"打开本地转换器",offline:"未检测到本地转换器",installedTitle:"转换器已安装,但服务未运行",manualTitle:"手动启动(一行命令)",manualHint:"复制命令 → 打开终端粘贴回车;若已开启开机自启,重启电脑也会自动运行",retry:"重新检测",notInstalledTitle:"尚未安装?查看安装步骤"},settings:{title:"设置",preferences:"应用设置",autostart:"开机自动启动",outputDir:"输出目录",chooseDir:"选择文件夹",concurrency:"并发数",language:"界面语言",save:"保存设置",saved:"设置已保存",service:"服务管理",serviceRunning:"转换服务运行中",stopService:"停止服务",stopConfirm:`确定停止转换服务吗?
|
|
31
|
-
停止后转换功能不可用;已开启的开机自启会在下次重启电脑时自动运行服务。`,serviceStopped:"转换服务已停止",stoppedGuide:"重新启动:在终端执行下方命令;若已开启开机自启,重启电脑后服务也会自动运行。",startCommand:"converter start"},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)=>(P(),I("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(k).appName),1)]),_:1}),u("nav",null,[B(y(Qt),{to:"/"},{default:Yt(()=>[U(S(y(k).nav.home),1)]),_:1}),B(y(Qt),{to:"/workbench"},{default:Yt(()=>[U(S(y(k).nav.workbench),1)]),_:1}),y(n)?(P(),bt(y(Qt),{key:0,to:"/history"},{default:Yt(()=>[U(S(y(k).nav.history),1)]),_:1})):ee("",!0),y(n)?(P(),bt(y(Qt),{key:1,to:"/settings"},{default:Yt(()=>[U(S(y(k).nav.settings),1)]),_:1})):ee("",!0)]),y(n)?(P(),I("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(k).connection.connected:y(k).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"]},_l={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)=>(P(),I("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",class:"app-icon"},[(P(!0),I(ne,null,Re(y(_f)[t.name],(o,i)=>(P(),I("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"},Mf={key:1,class:"panel empty"},$f={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(A=>A.status==="success").length,failed:t.tasks.filter(A=>A.status==="failed").length})),r=se(()=>t.tasks.filter(A=>!(s.value!=="all"&&A.status!==s.value||o.value.trim()&&!A.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort((A,R)=>R.startedAt.localeCompare(A.startedAt))),l=le("");async function a(A){l.value="";try{await Ce.revealTask(A.taskId)}catch(R){l.value=R instanceof Error?R.message:"打开目录失败"}}async function d(A){l.value="";try{await Ce.deleteHistory(A),await t.load()}catch(R){t.error=R instanceof Error?R.message:"删除失败"}}async function c(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await Ce.clearHistory(),await t.load()}catch(A){t.error=A instanceof Error?A.message:"清空失败"}}function m(A){const R=new Date(A);if(Number.isNaN(R.getTime()))return"";const N=new Date,L=te=>new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime(),H=Math.round((L(N)-L(R))/864e5);return H<=0?k.history.today:H===1?k.history.yesterday:R.getFullYear()===N.getFullYear()?`${R.getMonth()+1} 月 ${R.getDate()} 日`:`${R.getFullYear()} 年 ${R.getMonth()+1} 月 ${R.getDate()} 日`}const w=se(()=>{const A=new Map;for(const R of r.value){const N=m(R.startedAt),L=A.get(N);L?L.push(R):A.set(N,[R])}return[...A.entries()]});function _(A){const R=new Date(A);return Number.isNaN(R.getTime())?"":`${String(R.getHours()).padStart(2,"0")}:${String(R.getMinutes()).padStart(2,"0")}`}function M(A){return A.split(/[\\/]/).pop()??A}function $(A){var N;const R=(N=n.byKey.get(A.conversionKey))==null?void 0:N.category;return _l[R??"file"]??"file"}function V(A){var R;return((R=n.byKey.get(A.conversionKey))==null?void 0:R.label)??A.conversionKey}return(A,R)=>(P(),I("section",xf,[u("h1",Cf,S(y(k).history.title),1),u("p",kf,S(y(k).history.subtitle),1),u("div",Ef,[u("div",Af,[(P(!0),I(ne,null,Re([{key:"all",label:y(k).history.filterAll,count:i.value.total},{key:"success",label:y(k).history.statSuccess,count:i.value.success},{key:"failed",label:y(k).history.statFailed,count:i.value.failed}],N=>(P(),I("button",{key:N.key,type:"button",class:ye(["filter-chip",{active:s.value===N.key}]),onClick:L=>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":R[0]||(R[0]=N=>o.value=N),type:"text",placeholder:y(k).history.searchPlaceholder},null,8,Pf),[[Ut,o.value]])]),y(t).tasks.length?(P(),I("button",{key:0,class:"ghost danger",type:"button",onClick:c},[B(X,{name:"x",size:13}),U(S(y(k).history.clear),1)])):ee("",!0)])]),l.value?(P(),I("p",If,[B(X,{name:"alert-circle",size:15}),U(S(l.value),1)])):ee("",!0),r.value.length?ee("",!0):(P(),I("div",Mf,[B(X,{name:"folder",size:36}),u("span",null,S(y(k).history.empty),1)])),(P(!0),I(ne,null,Re(w.value,([N,L])=>(P(),I("div",{key:N,class:"day-group"},[u("div",$f,[U(S(N),1),u("em",null,S(L.length)+" 条",1)]),u("div",Nf,[(P(!0),I(ne,null,Re(L,H=>(P(),I("article",{key:H.taskId,class:"history-item"},[u("span",{class:ye(["item-icon",H.status])},[B(X,{name:$(H),size:18},null,8,["name"])],2),u("div",Df,[u("div",Ff,[u("strong",{title:H.input},S(M(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(V(H))+" · "+S(_(H.startedAt))+S(H.durationMs?` · ${H.durationMs} ms`:"")+" ",1),H.error?(P(),I(ne,{key:0},[R[1]||(R[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"?(P(),I("span",Bf)):ee("",!0),U(" "+S(H.status==="success"?y(k).workbench.statusSuccess:H.status==="failed"?y(k).workbench.statusFailed:H.status==="running"?y(k).workbench.statusRunning:y(k).workbench.statusPending),1)],2),u("div",Kf,[H.status==="success"?(P(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:he=>a(H)},[B(X,{name:"folder",size:13}),U(S(y(k).history.openFolder),1)],8,zf)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(k).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"},Md={class:"c-local"},$d={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(vl()),s=se(()=>yl(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)=>(P(),I("section",Jf,[u("div",Yf,[u("div",Qf,[u("div",Xf,[u("span",Zf,[B(X,{name:"sparkles",size:14}),U(S(y(k).landing.heroBadge),1)]),u("h1",null,[U(S(y(k).landing.heroTitle),1),u("em",null,S(y(k).landing.heroAccent),1)]),u("p",ed,S(y(k).landing.heroTagline),1),u("div",td,[B(y(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[U(S(y(k).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)?(P(),I("p",nd,[B(X,{name:"check-circle",size:14}),U(S(y(k).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,[(P(!0),I(ne,null,Re(y(k).landing.stats,c=>(P(),I("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(k).landing.painTitle),1),u("p",fd,S(y(k).landing.painSub),1),u("div",dd,[(P(!0),I(ne,null,Re(y(k).landing.pains,c=>(P(),I("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(k).landing.valueTitle),1),u("p",gd,S(y(k).landing.valueSub),1),u("div",md,[(P(!0),I(ne,null,Re(y(k).landing.values,c=>(P(),I("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(k).landing.scenesTitle),1),u("p",_d,S(y(k).landing.scenesSub),1),u("div",bd,[(P(!0),I(ne,null,Re(y(k).landing.scenes,c=>(P(),I("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(k).landing.featuresTitle),1),u("p",xd,S(y(k).landing.featuresSub),1),u("div",Cd,[(P(),I(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(k).landing.compareTitle),1),u("p",Rd,S(y(k).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,[(P(!0),I(ne,null,Re(y(k).landing.compare,c=>(P(),I("tr",{key:c.item},[u("td",Pd,S(c.item),1),u("td",Id,S(c.online),1),u("td",Md,[B(X,{name:"check-circle",size:14}),U(S(c.local),1)])]))),128))])])])]),u("div",$d,[u("h2",null,S(y(k).landing.faqTitle),1),u("p",Nd,S(y(k).landing.faqSub),1),u("div",Dd,[(P(!0),I(ne,null,Re(y(k).landing.faq,c=>(P(),I("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(k).landing.footer),1)]))}}),Ld=rt(Vd,[["__scopeId","data-v-63ba655a"]]),Hd=Ue({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,n=se(()=>k.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(s,o)=>(P(),I("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)=>(P(),I("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?(P(),I("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")?(P(),I("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>s("install",e.status))},S(y(k).doctor.install),9,Wd)):ee("",!0),e.status.installCommand?(P(),I("button",{key:1,class:"ghost",onClick:r},S(i.value?y(k).install.copied:y(k).doctor.copy),1)):ee("",!0),e.status.installed&&e.status.uninstallCommand?(P(),I("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>s("uninstall",e.status))},S(y(k).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)=>(P(),I("div",{ref_key:"container",ref:n,class:"log-stream",onScroll:o},[(P(!0),I(ne,null,Re(e.logs,(l,a)=>(P(),I("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"}},Mh=Ue({__name:"SettingsView",setup(e){const t=Ro(),n=ml(),s=le(!1),o=le(!1),i=le(!1),r=le(!1),l=le(!1);async function a(){try{await navigator.clipboard.writeText(k.settings.startCommand),l.value=!0,setTimeout(()=>{l.value=!1},2e3)}catch{}}async function d(){if(window.confirm(k.settings.stopConfirm)){r.value=!0;try{await Ce.serviceStop(),i.value=!0,t.connected=!1}catch(V){n.error=V instanceof Error?V.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(V){c.value||!V.installCommand||V.state==="outdated"&&!window.confirm(`${V.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(V.id,V.installCommand)}function _(V){if(c.value||!V.uninstallCommand)return;const A=`确定要卸载 ${V.name} 吗?
|
|
32
|
-
卸载后相关转换功能将不可用。`;window.confirm(A)&&t.startUninstall(V.id,V.uninstallCommand)}async function M(){s.value=!0;try{const V=await Ce.selectOutputDir();V.selected&&V.path&&(n.form.outputDir=V.path)}catch(V){n.error=V instanceof Error?V.message:"无法打开目录选择器"}finally{s.value=!1}}async function $(){try{await n.save(),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(V,A)=>(P(),I("section",Xd,[u("h1",Zd,S(y(k).settings.title),1),A[13]||(A[13]=u("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),u("div",eh,[u("div",th,[u("div",null,[u("h2",null,S(y(k).settings.service),1),A[5]||(A[5]=u("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),i.value?ee("",!0):(P(),I("span",nh,[A[6]||(A[6]=u("span",{class:"dot"},null,-1)),U(S(y(k).settings.serviceRunning),1)]))]),i.value?(P(),I("div",rh,[u("p",null,[B(X,{name:"check-circle",size:15}),u("strong",null,S(y(k).settings.serviceStopped),1)]),u("p",lh,S(y(k).settings.stoppedGuide),1),u("div",ah,[u("code",null,[A[8]||(A[8]=u("span",{class:"prompt"},"$",-1)),U(S(y(k).settings.startCommand),1)]),u("button",{class:"ghost",type:"button",onClick:a},S(l.value?"已复制":"复制"),1)])])):(P(),I("div",sh,[A[7]||(A[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?(P(),I("span",ih)):ee("",!0),U(" "+S(r.value?"停止中…":y(k).settings.stopService),1)],8,oh)]))]),u("div",ch,[u("div",uh,[u("div",null,[u("h2",null,S(y(k).doctor.title),1),A[9]||(A[9]=u("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),u("button",{class:"ghost recheck",disabled:y(t).loading,onClick:A[0]||(A[0]=R=>y(t).recheck())},[y(t).loading?(P(),I("span",dh)):(P(),bt(X,{key:0,name:"refresh",size:15})),U(" "+S(y(k).doctor.recheck),1)],8,fh)]),u("div",hh,[u("div",ph,[u("strong",null,S(y(t).readyCount)+" / "+S(y(t).statuses.length),1),A[10]||(A[10]=u("span",null,"个引擎可用",-1))]),u("div",gh,[u("i",{style:hs({width:`${m.value}%`})},null,4)])]),y(t).error?(P(),I("p",mh,S(y(t).error),1)):ee("",!0),u("div",vh,[(P(!0),I(ne,null,Re(y(t).statuses,R=>(P(),bt(Jd,{key:R.id,status:R,installing:c.value,onInstall:w,onUninstall:_},null,8,["status","installing"]))),128))]),y(t).installSession.state!=="idle"?(P(),I("div",yh,[u("h3",null,S(y(k).doctor.logs),1),u("p",{class:ye(["session-state",y(t).installSession.state])},[y(t).installSession.state==="progress"?(P(),I("span",_h)):ee("",!0),U(" "+S(y(t).installSession.state==="progress"?y(k).doctor.sessionRunning:y(t).installSession.state==="done"?y(k).doctor.sessionDone:y(k).doctor.sessionFailed),1)],2),B(Qd,{logs:y(t).installSession.logs},null,8,["logs"])])):ee("",!0)]),u("form",{class:"panel",onSubmit:to($,["prevent"])},[u("div",bh,[u("h2",null,S(y(k).settings.preferences),1)]),u("label",wh,[u("span",null,S(y(k).settings.outputDir),1),u("div",Sh,[Pt(u("input",{"onUpdate:modelValue":A[1]||(A[1]=R=>y(n).form.outputDir=R),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,y(n).form.outputDir]]),u("button",{class:"ghost",type:"button",disabled:s.value,onClick:M},[s.value?(P(),I("span",Ch)):(P(),bt(X,{key:0,name:"folder",size:14})),U(" "+S(s.value?"打开中…":y(k).settings.chooseDir),1)],8,xh)])]),u("label",kh,[u("span",null,S(y(k).settings.concurrency),1),u("div",Eh,[Pt(u("input",{"onUpdate:modelValue":A[2]||(A[2]=R=>y(n).form.concurrency=R),type:"number",min:"1",max:"4"},null,512),[[Ut,y(n).form.concurrency,void 0,{number:!0}]]),A[11]||(A[11]=u("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),u("label",Ah,[u("span",null,S(y(k).settings.language),1),Pt(u("select",{"onUpdate:modelValue":A[3]||(A[3]=R=>y(n).form.language=R),disabled:""},[...A[12]||(A[12]=[u("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Co,y(n).form.language]])]),y(n).error?(P(),I("p",Rh,S(y(n).error),1)):o.value?(P(),I("p",Th,[B(X,{name:"check-circle",size:14}),U(S(y(k).settings.saved),1)])):ee("",!0),u("div",Oh,[u("button",{class:"ghost",type:"button",onClick:A[4]||(A[4]=R=>y(n).load())},S(y(k).common.cancel),1),u("button",{class:"primary",disabled:y(n).saving,type:"submit"},[y(n).saving?(P(),I("span",Ih)):ee("",!0),U(" "+S(y(n).saving?"保存中…":y(k).settings.save),1)],8,Ph)])],32)]))}}),$h=rt(Mh,[["__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 bl(e,t){return e.filter(n=>t.categories.includes(n.category))}function Ii(e,t){const n=new Set;for(const s of bl(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 Mi={jpg:"jpg",jpeg:"jpg"};function Fh(e,t){return(Mi[e]??e)===(Mi[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 $i(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(vl()),n=le(!1),s=se(()=>yl(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)=>(P(),I("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(k).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(k).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(k).install.step1),1),u("p",Gh,S(t.value==="macos"?y(k).install.macosTerminal:y(k).install.windowsTerminal),1)])]),u("li",null,[l[5]||(l[5]=u("span",{class:"step-no"},"2",-1)),u("div",qh,[u("strong",null,S(y(k).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(k).install.copied:y(k).install.copy),1)])])])]),u("li",null,[l[6]||(l[6]=u("span",{class:"step-no"},"3",-1)),u("div",null,[u("strong",null,S(y(k).install.step3),1),u("p",Qh,S(y(k).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(k).install.manualTitle),1),B(X,{name:"chevron-down",size:14,class:ye({open:n.value})},null,8,["class"])]),n.value?(P(),I("ol",Zh,[(P(!0),I(ne,null,Re(y(k).install.manualSteps,(a,d)=>(P(),I("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)=>(P(),I("div",sp,[t.value==="checking"?(P(),I("div",op,[l[1]||(l[1]=u("span",{class:"spinner big","aria-hidden":"true"},null,-1)),u("p",null,S(y(k).gate.checking),1)])):t.value==="online"?(P(),I("div",ip,[u("div",rp,[B(X,{name:"check-circle",size:26})]),u("p",null,S(y(k).gate.online),1),l[2]||(l[2]=u("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),u("div",lp,[u("a",{class:"btn primary",href:y(ao),target:"_blank",rel:"noopener"},[U(S(y(k).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(k).gate.retry),1)])])])):(P(),I("div",cp,[u("div",up,[B(X,{name:"alert-circle",size:26})]),u("p",null,S(y(k).gate.offline),1),u("div",fp,[u("div",dp,[u("span",hp,S(y(k).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(k).gate.manualHint),1)]),u("div",mp,[u("button",{class:"ghost",type:"button",onClick:i},[B(X,{name:"refresh",size:14}),U(S(y(k).gate.retry),1)]),u("a",{class:"ghost direct-link",href:y(ao),target:"_blank",rel:"noopener"},S(y(k).gate.open),9,vp)])]),u("div",yp,[u("button",{class:"install-toggle",type:"button",onClick:l[0]||(l[0]=a=>n.value=!n.value)},[U(S(y(k).gate.notInstalledTitle),1),B(X,{name:"chevron-down",size:14,class:ye({open:n.value})},null,8,["class"])]),n.value?(P(),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 M=await _.json();M.status==="active"&&M.token?(m(),await Ce.wxActivate(M.token),s("activated",M.token)):M.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()}),_s(()=>{m()}),(w,_)=>(P(),I("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?(P(),I("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"},Mp={class:"tab-rail"},$p=["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"],Mg={key:2,class:"watermark-editor"},$g=["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(()=>bl(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]?$i(n.features,c.value.rows[0].ext):void 0;return Hh(h,v)}),M=se(()=>{var h;return c.value.selected?((h=n.byKey.get(c.value.selected.conversionKey))==null?void 0:h.params)??[]:[]}),$=se(()=>M.value.filter(h=>h.required&&String(c.value.paramValues[h.key]??"").trim()==="")),V=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,A()});function A(){var v;const h={};for(const p of M.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 R(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,A()}function L(){const h={};for(const v of M.value){const p=c.value.paramValues[v.key];v.control==="preset"||v.control==="number"?typeof p=="number"&&Number.isFinite(p)&&(h[v.key]=p):typeof p=="string"&&p.trim()&&(h[v.key]=p.trim())}return h}function H(h,v){var C;if(h.kind!=="operate")return h.format;const p=((C=n.byKey.get(h.conversionKey))==null?void 0:C.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 Me(h){return _l[$i(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 C=h.trim();if(!C)return;const O=Vh(C);if(!w.value.has(O)){q.value=k.workbench.wrongTab.replace("{name}",Te(C)).replace("{tab}",`「${d.value.label}」`).replace("对应标签页",`「${Ct(O)}」标签页`);return}const E=p??Te(C);if(c.value.rows.some(D=>D.path===C||v!==void 0&&D.name===E&&D.size===v)){q.value=`${E} ${k.workbench.fileDuplicate}`;return}q.value="",c.value.rows.push({path:C,ext:O,name:E,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(O=>O.name===v.name&&O.size===v.size)){q.value=`${v.name} ${k.workbench.fileDuplicate}`;continue}const C=await Pi(v);Ge(C.inputPath,C.size,C.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=M.value.find(C=>C.control==="file");if(!(!v||!p)){Y.value=!0;try{const C=v.path;if(C)c.value.paramValues[p.key]=C;else{const O=await Pi(v);c.value.paramValues[p.key]=O.inputPath}}catch(C){q.value=C instanceof Error?C.message:"水印图片选择失败"}finally{Y.value=!1,Se.value&&(Se.value.value="")}}}const $e=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&&$.value.length===0&&!$e.value);async function Xe(h){const v=c.value.selected;if(!(!v||V.value)){h.status="converting",h.targetFormat=H(v,h),h.progress=0,h.error=void 0,h.output=void 0;try{const p=await Ce.convert({inputPath:h.path,targetFormat:h.targetFormat,conversionKey:v.conversionKey,options:L()});h.taskId=p.taskId}catch(p){h.status="failed",h.error=p instanceof Error?p.message:"提交失败"}}}async function He(){const h=c.value.selected,v=c.value.rows.filter(p=>p.status==="pending");if(!(!h||!v.length||$.value.length)){if($e.value=!0,h.conversionKey==="pdf-merge"){const p=v.map(C=>C.path);for(const C of v)C.status="converting",C.targetFormat=H(h,C),C.error=void 0;try{const C=await Ce.convert({inputPath:p[0],targetFormat:H(h,v[0]),conversionKey:h.conversionKey,options:{...L(),inputs:p}});for(const O of v)O.taskId=C.taskId}catch(C){const O=C instanceof Error?C.message:"提交失败";for(const E of v)E.status="failed",E.error=O}}else for(const p of v)await Xe(p);$e.value=!1}}jt(()=>o.tasks,h=>{var p;const v=new Map(h.map(C=>[C.taskId,C]));for(const C of ln)for(const O of r[C.key].rows){if(!O.taskId)continue;const E=v.get(O.taskId);E&&(E.status==="success"?(O.status="success",O.output=E.output,O.progress=100):E.status==="failed"?(O.status="failed",O.error=((p=E.error)==null?void 0:p.message)??"转换失败"):(O.status="converting",O.progress=E.progress??O.progress))}},{deep:!0});function T(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 F(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"?k.workbench.statusPending:h==="converting"?k.workbench.statusRunning:h==="success"?k.workbench.statusSuccess:k.workbench.statusFailed}const g=se(()=>[...w.value].slice(0,10).map(h=>h.toUpperCase()).join(" / ")),b=se(()=>[...w.value].map(h=>`.${h}`).join(","));let x;return pn(()=>{t&&(x=gl().onMessage(h=>{h.type==="activation:revoked"&&(s.activated=!1,s.checking=!1)}),Ce.wxStatus().then(h=>{s.activated=h.activated,l.value=h.pairCode,s.checking=!1}).catch(()=>{s.checking=!1}))}),_s(()=>{x==null||x()}),(h,v)=>(P(),I("section",Tp,[u("h1",Op,S(y(k).workbench.title),1),u("p",Pp,S(y(k).workbench.subtitle),1),y(t)?s.activated?(P(),I("div",Ip,[u("aside",Mp,[(P(!0),I(ne,null,Re(y(ln),p=>(P(),I("button",{key:p.key,type:"button",class:ye(["tab-btn",{active:i.value===p.key}]),"data-testid":`tab-${p.key}`,onClick:C=>{i.value=p.key,q.value=""}},[B(X,{name:p.icon,size:17},null,8,["name"]),u("span",Np,S(p.label),1),r[p.key].rows.length?(P(),I("span",Dp,S(r[p.key].rows.length),1)):ee("",!0)],10,$p))),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]=to(p=>te.value=!0,["prevent"])),onDragleave:v[3]||(v[3]=p=>te.value=!1),onDrop:to(Qe,["prevent"])},[c.value.rows.length?(P(),I(ne,{key:1},[B(X,{name:"upload",size:15}),u("span",jp,S(y(k).workbench.dropCompact.replace("{tab}",d.value.label)),1)],64)):(P(),I(ne,{key:0},[u("span",Vp,[B(X,{name:d.value.icon,size:30},null,8,["name"])]),u("strong",Lp,S(y(k).workbench.dropTitle.replace("{tab}",d.value.label)),1),u("p",Hp,S(y(k).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(k).workbench.pastePlaceholder,onKeydown:zc(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(k).workbench.addPath),1)],8,Kp),u("button",{class:"primary",type:"button",disabled:Y.value,onClick:v[1]||(v[1]=p=>{var C;return(C=fe.value)==null?void 0:C.click()})},[Y.value?(P(),I("span",Wp)):(P(),bt(X,{key:0,name:"file",size:14})),U(" "+S(Y.value?"导入中…":y(k).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?(P(),I("p",qp,[B(X,{name:"alert-circle",size:15}),U(S(q.value),1)])):ee("",!0),c.value.rows.length?(P(),I(ne,{key:1},[u("div",Jp,[u("span",Yp,S(y(k).workbench.convertTo),1),_.value.length?(P(),I("div",Qp,[(P(!0),I(ne,null,Re(_.value,p=>(P(),I("button",{key:`${p.conversionKey}:${p.format}`,type:"button",class:ye(["target-chip",{active:R(p)}]),"data-testid":"target-chip",onClick:C=>N(p)},S(y(Ni)(_.value,p)),11,Xp))),128))])):m.value.some(p=>p.available)?(P(),I("p",Zp,[B(X,{name:"alert-circle",size:15}),U(S(y(k).workbench.noCommonTargets),1)])):(P(),I("p",eg,[B(X,{name:"alert-circle",size:15}),U(S(y(k).workbench.noTools),1)]))]),u("div",tg,[u("table",ng,[u("thead",null,[u("tr",null,[u("th",sg,S(y(k).workbench.tableFile),1),u("th",og,S(y(k).workbench.tablePath),1),u("th",ig,S(y(k).workbench.tableSize),1),u("th",rg,S(y(k).workbench.tableStatus),1),u("th",lg,S(y(k).workbench.tableActions),1)])]),u("tbody",null,[(P(!0),I(ne,null,Re(c.value.rows,(p,C)=>(P(),I("tr",{key:p.path,"data-testid":"file-row"},[u("td",ag,[u("span",cg,[B(X,{name:Me(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:O=>F(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"?(P(),I("span",vg)):ee("",!0),U(" "+S(f(p.status))+" ",1),p.status==="converting"&&p.progress!==void 0?(P(),I("em",yg,S(p.progress)+"%",1)):ee("",!0),p.status==="failed"&&p.error?(P(),I("em",_g,S(p.error),1)):ee("",!0)],10,mg)]),u("td",bg,[p.status==="pending"&&!V.value?(P(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:O=>Xe(p)},S(y(k).workbench.convert),9,wg)):ee("",!0),p.status==="failed"&&!V.value?(P(),I("button",{key:1,class:"ghost tiny",type:"button",onClick:O=>Xe(p)},S(y(k).workbench.retry),9,Sg)):ee("",!0),p.status==="success"?(P(),I("button",{key:2,class:"ghost tiny",type:"button",onClick:O=>G(p)},S(y(k).workbench.openFolder),9,xg)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:y(k).workbench.remove,onClick:O=>T(C)},[B(X,{name:"x",size:14})],8,Cg)])]))),128))])])]),M.value.length?(P(),I("div",kg,[u("div",Eg,S(y(k).workbench.paramsTitle),1),u("div",Ag,[(P(!0),I(ne,null,Re(M.value,p=>(P(),I("label",{key:p.key,class:ye(["param-field",{wide:p.control==="file"}])},[u("span",Rg,[U(S(p.label),1),p.unit?(P(),I(ne,{key:0},[U("("+S(p.unit)+")",1)],64)):ee("",!0),p.required?(P(),I("i",Tg,"*")):ee("",!0)]),p.control==="preset"?Pt((P(),I("select",{key:0,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,"data-testid":`param-${p.key}`},[(P(!0),I(ne,null,Re(p.presets??[],C=>(P(),I("option",{key:C.value,value:C.value},S(C.label),9,Pg))),128))],8,Og)),[[Co,c.value.paramValues[p.key]]]):p.control==="number"?Pt((P(),I("input",{key:1,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:"number",min:p.min,max:p.max,placeholder:"不调整","data-testid":`param-${p.key}`},null,8,Ig)),[[Ut,c.value.paramValues[p.key],void 0,{number:!0}]]):p.control==="file"?(P(),I("div",Mg,[Pt(u("input",{"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${p.key}`},null,8,$g),[[Ut,c.value.paramValues[p.key],void 0,{trim:!0}]]),u("button",{class:"ghost",type:"button",disabled:Y.value,onClick:v[4]||(v[4]=C=>{var O;return(O=Se.value)==null?void 0:O.click()})},S(y(k).workbench.chooseFile),9,Ng),u("input",{ref_for:!0,ref_key:"watermarkInput",ref:Se,type:"file",hidden:"",accept:"image/*",onChange:lt},null,544)])):Pt((P(),I("input",{key:3,"onUpdate:modelValue":C=>c.value.paramValues[p.key]=C,type:p.control==="password"?"password":"text","data-testid":`param-${p.key}`},null,8,Dg)),[[Hc,c.value.paramValues[p.key],void 0,{trim:!0}]]),p.description?(P(),I("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?(P(),I("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},[$e.value?(P(),I("span",jg)):ee("",!0),U(" "+S($e.value?"转换中…":y(k).workbench.batchConvertN.replace("{n}",String(ke.value))),1)],8,Hg)])],2)],64)):ee("",!0)])])):(P(),bt(Rp,{key:1,"pair-code":l.value,"data-testid":"follow-gate",onActivated:a},null,8,["pair-code"])):(P(),bt(bp,{key:0}))]))}}),Bg=rt(Ug,[["__scopeId","data-v-42a844e6"]]),Kg=af({history:ju(),routes:[{path:"/",name:"landing",component:Ld},{path:"/workbench",name:"workbench",component:Bg},{path:"/history",name:"history",component:qf},{path:"/settings",name:"settings",component:$h},{path:"/:pathMatch(.*)*",redirect:"/"}]});qc(yf).use(Qc()).use(Kg).mount("#app");
|