dudu-converter-cli 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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=[],yt=()=>{},Vi=()=>!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]",No=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",Li=e=>(ue(e)||Z(e))&&Z(e.then)&&Z(e.catch),Hi=Object.prototype.toString,Fn=e=>Hi.call(e),Cl=e=>Fn(e).slice(8,-1),ji=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()),Ui=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=us(e=>e?`on${Ui(e)}`:""),vt=(e,t)=>!Object.is(e,t),qn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bi=(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 Do;const ds=()=>Do||(Do=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 _e(e){let t="";if(be(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=_e(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 Ki(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=st(e[o],t[o],n);return s}function Fo(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]&&st(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?Fo(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||!st(e[l],t[l],n))return!1}return String(e)===String(t)}function Vo(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 st(e,t,n){if(e===t)return!0;let s=No(e),o=No(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?Vo(e,t,n,Ml):!1:(s=ue(e),o=ue(t),s||o?!s||!o?!1:Vo(e,t,n,$l):String(e)===String(t))))}function fo(e,t){return e.findIndex(n=>st(n,t))}const zi=e=>!!(e&&e.__v_isRef===!0),S=e=>be(e)?e:e==null?"":z(e)||ue(e)&&(e.toString===Hi||!Z(e.toString))?zi(e)?S(e.value):JSON.stringify(e,Wi,2):String(e),Wi=(e,t)=>zi(t)?Wi(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)&&!ji(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 Gi{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 qi(e){return new Gi(e)}function Ji(){return Ae}function Nl(e,t=!1){Ae&&Ae.cleanups.push(e)}let ve;const Rs=new WeakSet;class Yi{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||Xi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Lo(this),Zi(this);const t=ve,n=tt;ve=this,tt=!0;try{return this.fn()}finally{er(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,Lo(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 Qi=0,Sn,xn;function Xi(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=Sn,Sn=e}function ho(){Qi++}function po(){if(--Qi>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 Zi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function er(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&&(tr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tr(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{Zi(e);const o=e.fn(e._value);(t.version===0||vt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=n,tt=s,er(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 nr=[];function wt(){nr.push(tt),tt=!1}function St(){const e=nr.pop();tt=e===void 0?!0:e}function Lo(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,sr(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 sr(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)sr(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((g,b)=>{(b==="length"||b===On||!Je(b)&&b>=c)&&l(g)})}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=le(e);return t===e||(Ne(t,"iterate",On),We(e))?t:xt(e)?_t(e)?t.map(n=>Bt(Ye(n))):t.map(Bt):t.map(Ye)}function ps(e){return Ne(e=le(e),"iterate",On),e}function pt(e,t){return xt(e)?Bt(_t(e)?Ye(t):t):Ye(t)}const Ll={__proto__:null,[Symbol.iterator](){return Ts(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return on(this).concat(...e.map(t=>z(t)?on(t):t))},entries(){return Ts(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(s=>pt(this,s)),arguments)},find(e,t){return kt(this,"find",e,t,n=>pt(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=>pt(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 jo(this,"reduce",e,t)},reduceRight(e,...t){return jo(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=>pt(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=()=>Ho(i.next(),n),o!==or[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=()=>Ho(i._next(),n)}return i}function Ho(e,t){return e.done||(e.value=t(e.value)),e}const or=Array.prototype;function kt(e,t,n,s,o,i){const r=ps(e),l=r!==e&&!We(e),a=r[t];if(a!==or[t]){const g=a.apply(e,i);return l?Ye(g):g}let d=n;r!==e&&(l?d=function(g,b){return n.call(this,pt(e,g),b,e)}:n.length>2&&(d=function(g,b){return n.call(this,g,b,e)}));const c=a.call(r,d,s);return l&&o?o(c):c}function jo(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,g){return l&&(l=!1,d=pt(e,d)),n.call(this,d,pt(e,c),g,e)}):n.length>3&&(r=function(d,c,g){return n.call(this,d,c,g,e)}));const a=o[t](r,...s);return l?pt(e,a):a}function Os(e,t,n){const s=le(e);Ne(s,"iterate",On);const o=s[t](...n);return(o===-1||o===!1)&&gs(n[0])?(n[0]=le(n[0]),s[t](...n)):o}function mn(e,t,n=[]){wt(),ho();const s=le(e)[t].apply(e,n);return po(),St(),s}const Hl=co("__proto__,__v_isRef,__isVue"),ir=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=le(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class rr{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:ur:i?cr:ar).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)?ir.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 lr extends rr{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=le(i),s=le(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===le(o)&&a&&(l?vt(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)||!ir.has(n))&&Ne(t,"has",n),s}ownKeys(t){return Ne(t,"iterate",z(t)?"length":en),Reflect.ownKeys(t)}}class Ul extends rr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Bl=new lr,Kl=new Ul,zl=new lr(!0);const Ws=e=>e,Un=e=>Reflect.getPrototypeOf(e);function Wl(e,t,n){return function(...s){const o=this.__v_raw,i=le(o),r=Ht(i),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=o[e](...s),c=n?Ws:t?Bt:Ye;return!t&&Ne(i,"iterate",a?zs:en),Ie(Object.create(d),{next(){const{value:g,done:b}=d.next();return b?{value:g,done:b}:{value:l?[c(g[0]),c(g[1])]:c(g),done:b}}})}}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=le(i),l=le(o);e||(vt(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(le(o),"iterate",en),o.size},has(o){const i=this.__v_raw,r=le(i),l=le(o);return e||(vt(o,l)&&Ne(r,"has",o),Ne(r,"has",l)),o===l?i.has(o):i.has(o)||i.has(l)},forEach(o,i){const r=this,l=r.__v_raw,a=le(l),d=t?Ws:e?Bt:Ye;return!e&&Ne(a,"iterate",en),l.forEach((c,g)=>o.call(i,d(c),d(g),r))}};return Ie(n,e?{add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear")}:{add(o){const i=le(this),r=Un(i),l=le(o),a=!t&&!We(o)&&!xt(o)?l:o;return r.has.call(i,a)||vt(o,a)&&r.has.call(i,o)||vt(l,a)&&r.has.call(i,l)||(i.add(a),Tt(i,"add",a,a)),this},set(o,i){!t&&!We(i)&&!xt(i)&&(i=le(i));const r=le(this),{has:l,get:a}=Un(r);let d=l.call(r,o);d||(o=le(o),d=l.call(r,o));const c=a.call(r,o);return r.set(o,i),d?vt(i,c)&&Tt(r,"set",o,i):Tt(r,"add",o,i),this},delete(o){const i=le(this),{has:r,get:l}=Un(i);let a=r.call(i,o);a||(o=le(o),a=r.call(i,o)),l&&l.call(i,o);const d=i.delete(o);return a&&Tt(i,"delete",o,void 0),d},clear(){const o=le(this),i=o.size!==0,r=o.clear();return i&&Tt(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{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 ar=new WeakMap,cr=new WeakMap,ur=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,ar)}function fr(e){return yo(e,!1,zl,Jl,cr)}function Gs(e){return yo(e,!0,Kl,Yl,ur)}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 _t(e){return xt(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function xt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function gs(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function _o(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&Bi(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 se(e){return dr(e,!1)}function Zl(e){return dr(e,!0)}function dr(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:le(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:le(t),vt(t,n)&&(this._rawValue=t,this._value=s?t:Ye(t),this.dep.trigger())}}function _(e){return we(e)?e.value:e}const ta={get:(e,t,n)=>t==="__v_raw"?e:_(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 hr(e){return _t(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=le(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=_(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 Xi(this,!0),!0}get value(){const t=this.dep.track();return tr(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=V=>o?V:We(V)||o===!1||o===0?Ot(V,1):Ot(V);let c,g,b,y,M=!1,$=!1;if(we(e)?(g=()=>e.value,M=We(e)):_t(e)?(g=()=>d(e),M=!0):z(e)?($=!0,M=e.some(V=>_t(V)||We(V)),g=()=>e.map(V=>{if(we(V))return V.value;if(_t(V))return d(V);if(Z(V))return a?a(V,2):V()})):Z(e)?t?g=a?()=>a(e,2):e:g=()=>{if(b){wt();try{b()}finally{St()}}const V=Jt;Jt=c;try{return a?a(e,3,[y]):e(y)}finally{Jt=V}}:g=yt,t&&o){const V=g,H=o===!0?1/0:o;g=()=>Ot(V(),H)}const F=Ji(),k=()=>{c.stop(),F&&F.active&&uo(F.effects,c)};if(i&&t){const V=t;t=(...H)=>{try{return V(...H)}finally{k()}}}let E=$?new Array(e.length).fill(Kn):Kn;const N=V=>{if(!(!(c.flags&1)||!c.dirty&&!V))if(t){const H=c.run();if(V||o||M||($?H.some((he,te)=>vt(he,E[te])):vt(H,E))){const he=Jt;wt();try{b&&b(),Jt=c;const te=[H,E===Kn?void 0:$&&E[0]===Kn?[]:E,y];E=H,a?a(t,3,te):t(...te)}finally{Jt=he,St()}}}else c.run()};return l&&l(N),c=new Yi(g),c.scheduler=r?()=>r(N,!1):N,y=V=>la(V,!1,c),b=c.onStop=()=>{const V=Xn.get(c);if(V){if(a)a(V,4);else for(const H of V)H();Xn.delete(c)}},t?s?N(!0):E=c.run():r?r(N.bind(null,!0),!0):c.run(),k.pause=c.pause.bind(c),k.resume=c.resume.bind(c),k.stop=k,k}function Ot(e,t=1/0,n){if(t<=0||!ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))Ot(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(Mt(e)||Ht(e))e.forEach(s=>{Ot(s,t,n)});else if(ji(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 ot(e,t,n,s){if(Z(e)){const o=Vn(e,t,n,s);return o&&Li(o)&&o.catch(i=>{ms(i,t,n)}),o}if(z(e)){const o=[];for(let i=0;i<e.length;i++)o.push(ot(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 g=0;g<c.length;g++)if(c[g](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 gt=[];let Vt=null,an=0;const pr=Promise.resolve();let Zn=null;function Ln(e){const t=Zn||pr;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,gr()}}function gr(){Zn||(Zn=pr.then(yr))}function fa(e){if(!z(e))Vt&&e.id===-1?Vt.splice(an+1,0,e):e.flags&1||(gt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)gt.push(e[t]);gr()}function mr(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 vr(e,t,n=0){if(gt.length){let s=gt,o=0;if(t){s=[];for(let r=0;r<gt.length;r++){const l=gt[r];(l.i!==void 0?!l.i||l.i.uid<n:t.has(l))?gt[o++]=l:s.push(l)}}const i=[...new Set(s)].sort((r,l)=>Pn(r)-Pn(l));if(gt.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(gt);e(),Ps=!0;try{mr(void 0,t),vr(void 0,n,t)}finally{Ps=!1}}const Pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yr(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,vr(),Zn=null,(Ve.length||gt.length)&&yr()}}let qe=null,_r=null;function es(e){const t=qe;return qe=e,_r=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--)Br();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(),ot(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 bt(e,t,n=!1){const s=Gr();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!!(Gr()||tn)}const pa=Symbol.for("v-scx"),ga=()=>bt(pa);function jt(e,t,n){return br(e,t,n)}function br(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 y=ga();d=y.__watcherHandles||(y.__watcherHandles=[])}else if(!a){const y=()=>{};return y.stop=yt,y.resume=yt,y.pause=yt,y}}const c=Le;l.call=(y,M,$)=>ot(y,c,M,$);let g=!1;i==="post"?l.scheduler=y=>{y.i=c,je(y,c&&c.suspense)}:i!=="sync"&&(g=!0,l.scheduler=(y,M)=>{M?y():bo(y)}),l.augmentJob=y=>{t&&(y.flags|=4),g&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const b=aa(e,t,l);return Nn&&(d?d.push(b):a&&b()),b}function ma(e,t,n){const s=this.proxy,o=be(e)?e.includes(".")?wr(s,e):()=>s[e]:e.bind(s,s);let i;Z(t)?i=t:(i=t.handler,n=t);const r=Hn(this),l=br(o,i.bind(s),n);return r(),l}function wr(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!==it){t=n;break}}return t}function Sr(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)&&Sr(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===oe&&z(e.children)){const n=Or(e.children,!1);n&&ts(n,t)}}function qs(e){if(e.component)return qs(e.component.subTree);if(e.type===oe){const t=z(e.children)&&Or(e.children,!1);return t?qs(t):void 0}if(e.type!==it)return e}function Ue(e,t){return Z(e)?Ie({name:e.name},t,{setup:e}):e}function xr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Uo(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(($,F)=>Cn($,t&&(z(t)?t[F]:t),n,s,o));return}if(kn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Cn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?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,g=l.setupState,b=le(g),y=g===me?Vi:$=>Uo(c,$)?!1:ae(b,$),M=($,F)=>!(F&&Uo(c,F));if(d!=null&&d!==a){if(Bo(t),be(d))c[d]=null,y(d)&&(g[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),F=we(a);if($||F){const k=()=>{if(e.f){const E=$?y(a)?g[a]:c[a]:M()||!e.k?a.value:c[e.k];if(o)z(E)&&uo(E,i);else if(z(E))E.includes(i)||E.push(i);else if($)c[a]=[i],y(a)&&(g[a]=c[a]);else{const N=[i];M(a,e.k)&&(a.value=N),e.k&&(c[e.k]=N)}}else $?(c[a]=r,y(a)&&(g[a]=r)):F&&(M(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const E=()=>{k(),ns.delete(e)};E.id=-1,ns.set(e,E),je(E,n)}else Bo(e),k()}}}function Bo(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){Cr(e,"a",t)}function ba(e,t){Cr(e,"da",t)}function Cr(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);kr(()=>{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=ot(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"),kr=$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&&_t(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,g=e.length;c<g;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?qr(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=>Ar(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 b=r[t];if(b!==void 0)switch(b){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,g;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(g=a.config.globalProperties,ae(g,t))return g[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 Ko(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ys=!0;function Pa(e){const t=Ar(e),n=e.proxy,s=e.ctx;Ys=!1,t.beforeCreate&&zo(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:a,inject:d,created:c,beforeMount:g,mounted:b,beforeUpdate:y,updated:M,activated:$,deactivated:F,beforeDestroy:k,beforeUnmount:E,destroyed:N,unmounted:V,render:H,renderTracked:he,renderTriggered:te,errorCaptured:Y,serverPrefetch:q,expose:fe,inheritAttrs:Se,components:Te,directives:Me,filters:Ct}=t;if(d&&Ia(d,s,null),r)for(const Q in r){const re=r[Q];Z(re)&&(s[Q]=re.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 re=i[Q],Qe=Z(re)?re.bind(n,n):Z(re.get)?re.get.bind(n,n):yt,at=!Z(re)&&Z(re.set)?re.set.bind(n):yt,$e=ne({get:Qe,set:at});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>$e.value,set:ke=>$e.value=ke})}if(l)for(const Q in l)Er(l[Q],s,n,Q);if(a){const Q=Z(a)?a.call(n):a;Reflect.ownKeys(Q).forEach(re=>{Jn(re,Q[re])})}c&&zo(c,e,"c");function pe(Q,re){z(re)?re.forEach(Qe=>Q(Qe.bind(n))):re&&Q(re.bind(n))}if(pe(Sa,g),pe(pn,b),pe(xa,y),pe(Ca,M),pe(_a,$),pe(ba,F),pe(Ra,Y),pe(Aa,he),pe(Ea,te),pe(_s,E),pe(kr,V),pe(ka,q),z(fe))if(fe.length){const Q=e.exposed||(e.exposed={});fe.forEach(re=>{Object.defineProperty(Q,re,{get:()=>n[re],set:Qe=>n[re]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===yt&&(e.render=H),Se!=null&&(e.inheritAttrs=Se),Te&&(e.components=Te),Me&&(e.directives=Me),q&&xr(e)}function Ia(e,t,n=yt){z(e)&&(e=Qs(e));for(const s in e){const o=e[s];let i;ue(o)?"default"in o?i=bt(o.from||s,o.default,!0):i=bt(o.from||s):i=bt(o),we(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function zo(e,t,n){ot(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Er(e,t,n,s){let o=s.includes(".")?wr(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=>Er(i,t,n,s));else{const i=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(i)&&jt(o,i,e)}}function Ar(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:Wo,props:Go,emits:Go,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:Wo,inject:$a};function Wo(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 Go(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ie(Object.create(null),Ko(e),Ko(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 Rr(){return{app:null,config:{isNativeTag:Vi,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=Rr(),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,...g){return r.has(c)||(c&&Z(c.install)?(r.add(c),c.install(d,...g)):Z(c)&&(r.add(c),c(d,...g))),d},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),d},component(c,g){return g?(i.components[c]=g,d):i.components[c]},directive(c,g){return g?(i.directives[c]=g,d):i.directives[c]},mount(c,g,b){if(!a){const y=d._ceVNode||B(s,o);return y.appContext=i,b===!0?b="svg":b===!1&&(b=void 0),e(y,c,b),a=!0,d._container=c,c.__vue_app__=d,Ss(y.component)}},onUnmount(c){l.push(c)},unmount(){a&&(ot(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,g){return i.provides[c]=g,d},runWithContext(c){const g=tn;tn=d;try{return c()}finally{tn=g}}};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&&ot(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,ot(d,e,6,o)}}const Ha=new WeakMap;function Tr(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=Tr(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 qo(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:a,render:d,renderCache:c,props:g,data:b,setupState:y,ctx:M,inheritAttrs:$}=e,F=es(e);let k,E;try{if(n.shapeFlag&4){const V=o||s,H=V;k=mt(d.call(H,V,c,g,y,b,M)),E=l}else{const V=t;k=mt(V.length>1?V(g,{attrs:l,slots:r,emit:a}):V(g,null)),E=t.props?l:ja(l)}}catch(V){nn.length=0,ms(V,e,1),k=B(it)}let N=k;if(E&&$!==!1){const V=Object.keys(E),{shapeFlag:H}=N;V.length&&H&7&&(i&&V.some(as)&&(E=Ua(E,i)),N=un(N,E,!1,!0))}if(n.dirs&&(N=un(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition){const V=vs(N.type)&&Sr(N)||N;ts(V,n.transition)}return k=N,es(F),k}function Or(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(Mn(o)){if(o.type!==it||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?Jo(s,r,d):!!r;if(a&8){const c=t.dynamicProps;for(let g=0;g<c.length;g++){const b=c[g];if(Pr(r,s,b)&&!bs(d,b))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===r?!1:s?r?Jo(s,r,d):!0:!!r;return!1}function Jo(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)||Pr(t,e,i)&&!bs(n,i))return!0}return!1}function Pr(e,t,n){const s=e[n],o=t[n];return n==="style"&&ue(s)&&ue(o)?!st(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 Ir={},Mr=()=>Object.create(Ir),$r=e=>Object.getPrototypeOf(e)===Ir;function za(e,t,n,s=!1){const o={},i=Mr();e.propsDefaults=Object.create(null),Nr(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:fr(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=le(o),[a]=e.propsOptions;let d=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let g=0;g<c.length;g++){let b=c[g];if(bs(e.emitsOptions,b))continue;const y=t[b];if(a)if(ae(i,b))y!==i[b]&&(i[b]=y,d=!0);else{const M=et(b);o[M]=Xs(a,l,M,y,e,!1)}else y!==i[b]&&(i[b]=y,d=!0)}}}else{Nr(e,t,o,i)&&(d=!0);let c;for(const g in l)(!t||!ae(t,g)&&((c=zt(g))===g||!ae(t,c)))&&(a?n&&(n[g]!==void 0||n[c]!==void 0)&&(o[g]=Xs(a,l,g,void 0,e,!0)):delete o[g]);if(i!==l)for(const g in i)(!t||!ae(t,g))&&(delete i[g],d=!0)}d&&Tt(e.attrs,"set","")}function Nr(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=le(n),d=l||me;for(let c=0;c<i.length;c++){const g=i[c];n[g]=Xs(o,a,g,d[g],e,!ae(d,g))}}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 Dr(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=g=>{a=!0;const[b,y]=Dr(g,t,!0);Ie(r,b),y&&l.push(...y)};!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 g=et(i[c]);Yo(g)&&(r[g]=me)}else if(i)for(const c in i){const g=et(c);if(Yo(g)){const b=i[c],y=r[g]=z(b)||Z(b)?{type:b}:Ie({},b),M=y.type;let $=!1,F=!0;if(z(M))for(let k=0;k<M.length;++k){const E=M[k],N=Z(E)&&E.name;if(N==="Boolean"){$=!0;break}else N==="String"&&(F=!1)}else $=Z(M)&&M.name==="Boolean";y[0]=$,y[1]=F,($||ae(y,"default"))&&l.push(g)}}const d=[r,l];return ue(e)&&s.set(e,d),d}function Yo(e){return e[0]!=="$"&&!wn(e)}const So=e=>e==="_"||e==="_ctx"||e==="$stable",xo=e=>z(e)?e.map(mt):[mt(e)],qa=(e,t,n)=>{if(t._n)return t;const s=Yt((...o)=>xo(t(...o)),n);return s._c=!1,s},Fr=(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}}},Vr=(e,t)=>{const n=xo(t);e.slots.default=()=>n},Lr=(e,t,n)=>{for(const s in t)(n||!So(s))&&(e[s]=t[s])},Ja=(e,t,n)=>{const s=e.slots=Mr();if(e.vnode.shapeFlag&32){const o=t._;o?(Lr(s,t,n),n&&Bi(s,"_",o,!0)):Fr(t,s)}else t&&Vr(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:Lr(o,t,n):(i=!t.$stable,Fr(t,o)),r=t}else t&&(Vr(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:g,nextSibling:b,setScopeId:y=yt,insertStaticContent:M}=e,$=(f,m,w,h=null,v=null,p=null,x=void 0,T=null,I=!!m.dynamicChildren)=>{if(f===m)return;f&&!vn(f,m)&&(h=A(f),ke(f,v,p,!0),f=null),m.patchFlag===-2&&(I=!1,m.dynamicChildren=null),m.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(m.dynamicChildren===Xt&&(m.dynamicChildren=[]),m.dynamicChildren.hasOnce=!0);const{type:O,ref:K,shapeFlag:L}=m;switch(O){case ws:F(f,m,w,h);break;case it:k(f,m,w,h);break;case Ns:f==null&&E(m,w,h,x);break;case oe:Te(f,m,w,h,v,p,x,T,I);break;default:L&1?H(f,m,w,h,v,p,x,T,I):L&6?Me(f,m,w,h,v,p,x,T,I):(L&64||L&128)&&O.process(f,m,w,h,v,p,x,T,I,D)}K!=null&&v?Cn(K,f&&f.ref,p,m||f,!m):K==null&&f&&f.ref!=null&&Cn(f.ref,null,p,f,!0)},F=(f,m,w,h)=>{if(f==null)s(m.el=l(m.children),w,h);else{const v=m.el=f.el;m.children!==f.children&&d(v,m.children)}},k=(f,m,w,h)=>{f==null?s(m.el=a(m.children||""),w,h):m.el=f.el},E=(f,m,w,h)=>{[f.el,f.anchor]=M(f.children,m,w,h,f.el,f.anchor)},N=({el:f,anchor:m},w,h)=>{let v;for(;f&&f!==m;)v=b(f),s(f,w,h),f=v;s(m,w,h)},V=({el:f,anchor:m})=>{let w;for(;f&&f!==m;)w=b(f),o(f),f=w;o(m)},H=(f,m,w,h,v,p,x,T,I)=>{if(m.type==="svg"?x="svg":m.type==="math"&&(x="mathml"),f==null)he(m,w,h,v,p,x,T,I);else{const O=f.el&&f.el._isVueCE?f.el:null;try{O&&O._beginPatch(),q(f,m,v,p,x,T,I)}finally{O&&O._endPatch()}}},he=(f,m,w,h,v,p,x,T)=>{let I,O;const{props:K,shapeFlag:L,transition:W,dirs:J}=f;if(I=f.el=r(f.type,p,K&&K.is,K),L&8?c(I,f.children):L&16&&Y(f.children,I,null,h,v,$s(f,p),x,T),J&&Gt(f,null,h,"created"),te(I,f,f.scopeId,x,h),K){for(const ge in K)ge!=="value"&&!wn(ge)&&i(I,ge,null,K[ge],p,h);"value"in K&&i(I,"value",null,K.value,p),(O=K.onVnodeBeforeMount)&&ht(O,h,f)}J&&Gt(f,null,h,"beforeMount");const ie=Za(v,W);ie&&W.beforeEnter(I),s(I,m,w),((O=K&&K.onVnodeMounted)||ie||J)&&je(()=>{try{O&&ht(O,h,f),ie&&W.enter(I),J&&Gt(f,null,h,"mounted")}finally{}},v)},te=(f,m,w,h,v)=>{if(w&&y(f,w),h)for(let p=0;p<h.length;p++)y(f,h[p]);if(v){let p=v.subTree;if(m===p||Ur(p.type)&&(p.ssContent===m||p.ssFallback===m)){const x=v.vnode;te(f,x,x.scopeId,x.slotScopeIds,v.parent)}}},Y=(f,m,w,h,v,p,x,T,I=0)=>{for(let O=I;O<f.length;O++){const K=f[O]=T?Rt(f[O]):mt(f[O]);$(null,K,m,w,h,v,p,x,T)}},q=(f,m,w,h,v,p,x)=>{const T=m.el=f.el;let{patchFlag:I,dynamicChildren:O,dirs:K}=m;I|=f.patchFlag&16;const L=f.props||me,W=m.props||me;let J;if(w&&qt(w,!1),(J=W.onVnodeBeforeUpdate)&&ht(J,w,m,f),K&&Gt(m,f,w,"beforeUpdate"),w&&qt(w,!0),O&&(!f.dynamicChildren||f.dynamicChildren.length!==O.length)&&(I=0,x=!1,O=null),(L.innerHTML&&W.innerHTML==null||L.textContent&&W.textContent==null)&&c(T,""),O?fe(f.dynamicChildren,O,T,w,h,$s(m,v),p):x||re(f,m,T,null,w,h,$s(m,v),p,!1),I>0){if(I&16)Se(T,L,W,w,v);else if(I&2&&L.class!==W.class&&i(T,"class",null,W.class,v),I&4&&i(T,"style",L.style,W.style,v),I&8){const ie=m.dynamicProps;for(let ge=0;ge<ie.length;ge++){const de=ie[ge],xe=L[de],Oe=W[de];(Oe!==xe||de==="value")&&i(T,de,xe,Oe,v,w)}}I&1&&f.children!==m.children&&c(T,m.children)}else!x&&O==null&&Se(T,L,W,w,v);((J=W.onVnodeUpdated)||K)&&je(()=>{J&&ht(J,w,m,f),K&&Gt(m,f,w,"updated")},h)},fe=(f,m,w,h,v,p,x)=>{for(let T=0;T<m.length;T++){const I=f[T],O=m[T],K=I.el||Zs(I),L=K&&(I.type===oe||!vn(I,O)||I.shapeFlag&198)?g(K):w;$(I,O,L,null,h,v,p,x,!0)}},Se=(f,m,w,h,v)=>{if(m!==w){if(m!==me)for(const p in m)!wn(p)&&!(p in w)&&i(f,p,m[p],null,v,h);for(const p in w){if(wn(p))continue;const x=w[p],T=m[p];x!==T&&p!=="value"&&i(f,p,T,x,v,h)}"value"in w&&i(f,"value",m.value,w.value,v)}},Te=(f,m,w,h,v,p,x,T,I)=>{const O=m.el=f?f.el:l(""),K=m.anchor=f?f.anchor:l("");let{patchFlag:L,dynamicChildren:W,slotScopeIds:J}=m;J&&(T=T?T.concat(J):J),f==null?(s(O,w,h),s(K,w,h),Y(m.children||[],w,K,v,p,x,T,I)):L>0&&L&64&&W&&f.dynamicChildren&&f.dynamicChildren.length===W.length?(fe(f.dynamicChildren,W,w,v,p,x,T),(m.key!=null||v&&m===v.subTree)&&Hr(f,m,!0)):re(f,m,w,K,v,p,x,T,I)},Me=(f,m,w,h,v,p,x,T,I)=>{m.slotScopeIds=T,f==null?m.shapeFlag&512?v.ctx.activate(m,w,h,x,I):Ct(m,w,h,v,p,x,I):Ge(f,m,I)},Ct=(f,m,w,h,v,p,x)=>{const T=f.component=lc(f,h,v);if(wo(f)&&(T.ctx.renderer=D),ac(T,!1,x),T.asyncDep){if(v&&v.registerDep(T,pe,x,p),!f.el){const I=T.subTree=B(it);k(null,I,m,w),f.placeholder=I.el}}else pe(T,f,m,w,v,p,x)},Ge=(f,m,w)=>{const h=m.component=f.component;if(Ba(f,m,w))if(h.asyncDep&&!h.asyncResolved){m.el=f.el,m.placeholder=f.placeholder,Q(h,m,w);return}else h.next=m,h.update();else m.el=f.el,m.placeholder=f.placeholder,h.vnode=m},pe=(f,m,w,h,v,p,x)=>{const T=()=>{if(f.isMounted){let{next:L,bu:W,u:J,parent:ie,vnode:ge}=f;{const ft=jr(f);if(ft){L&&(L.el=ge.el,Q(f,L,x)),ft.asyncDep.then(()=>{je(()=>{f.isUnmounted||O()},v)});return}}let de=L,xe;qt(f,!1),L?(L.el=ge.el,Q(f,L,x)):L=ge,W&&qn(W),(xe=L.props&&L.props.onVnodeBeforeUpdate)&&ht(xe,ie,L,ge),qt(f,!0);const Oe=qo(f),ut=f.subTree;f.subTree=Oe,$(ut,Oe,g(ut.el),A(ut),f,v,p),L.el=Oe.el,de===null&&Ka(f,Oe.el),J&&je(J,v),(xe=L.props&&L.props.onVnodeUpdated)&&je(()=>ht(xe,ie,L,ge),v)}else{let L;const{el:W,props:J}=m,{bm:ie,m:ge,parent:de,root:xe,type:Oe}=f,ut=kn(m);qt(f,!1),ie&&qn(ie),!ut&&(L=J&&J.onVnodeBeforeMount)&&ht(L,de,m),qt(f,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(Oe,f.parent?f.parent.type:void 0);const ft=f.subTree=qo(f);$(null,ft,w,h,f,v,p),m.el=ft.el}if(ge&&je(ge,v),!ut&&(L=J&&J.onVnodeMounted)){const ft=m;je(()=>ht(L,de,ft),v)}(m.shapeFlag&256||de&&kn(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&je(f.a,v),f.isMounted=!0,m=w=h=null}};f.scope.on();const I=f.effect=new Yi(T);f.scope.off();const O=f.update=I.run.bind(I),K=f.job=I.runIfDirty.bind(I);K.i=f,K.id=f.uid,I.scheduler=()=>bo(K),qt(f,!0),O()},Q=(f,m,w)=>{m.component=f;const h=f.vnode.props;f.vnode=m,f.next=null,Wa(f,m.props,h,w),Ya(f,m.children,w),wt(),mr(f),St()},re=(f,m,w,h,v,p,x,T,I=!1)=>{const O=f&&f.children,K=f?f.shapeFlag:0,L=m.children,{patchFlag:W,shapeFlag:J}=m;if(W>0){if(W&128){at(O,L,w,h,v,p,x,T,I);return}else if(W&256){Qe(O,L,w,h,v,p,x,T,I);return}}J&8?(K&16&&He(O,v,p),L!==O&&c(w,L)):K&16?J&16?at(O,L,w,h,v,p,x,T,I):He(O,v,p,!0):(K&8&&c(w,""),J&16&&Y(L,w,h,v,p,x,T,I))},Qe=(f,m,w,h,v,p,x,T,I)=>{f=f||Xt,m=m||Xt;const O=f.length,K=m.length,L=Math.min(O,K);let W;for(W=0;W<L;W++){const J=m[W]=I?Rt(m[W]):mt(m[W]);$(f[W],J,w,null,v,p,x,T,I)}O>K?He(f,v,p,!0,!1,L):Y(m,w,h,v,p,x,T,I,L)},at=(f,m,w,h,v,p,x,T,I)=>{let O=0;const K=m.length;let L=f.length-1,W=K-1;for(;O<=L&&O<=W;){const J=f[O],ie=m[O]=I?Rt(m[O]):mt(m[O]);if(vn(J,ie))$(J,ie,w,null,v,p,x,T,I);else break;O++}for(;O<=L&&O<=W;){const J=f[L],ie=m[W]=I?Rt(m[W]):mt(m[W]);if(vn(J,ie))$(J,ie,w,null,v,p,x,T,I);else break;L--,W--}if(O>L){if(O<=W){const J=W+1,ie=J<K?m[J].el:h;for(;O<=W;)$(null,m[O]=I?Rt(m[O]):mt(m[O]),w,ie,v,p,x,T,I),O++}}else if(O>W)for(;O<=L;)ke(f[O],v,p,!0),O++;else{const J=O,ie=O,ge=new Map;for(O=ie;O<=W;O++){const Be=m[O]=I?Rt(m[O]):mt(m[O]);Be.key!=null&&ge.set(Be.key,O)}let de,xe=0;const Oe=W-ie+1;let ut=!1,ft=0;const gn=new Array(Oe);for(O=0;O<Oe;O++)gn[O]=0;for(O=J;O<=L;O++){const Be=f[O];if(xe>=Oe){ke(Be,v,p,!0);continue}let dt;if(Be.key!=null)dt=ge.get(Be.key);else for(de=ie;de<=W;de++)if(gn[de-ie]===0&&vn(Be,m[de])){dt=de;break}dt===void 0?ke(Be,v,p,!0):(gn[dt-ie]=O+1,dt>=ft?ft=dt:ut=!0,$(Be,m[dt],w,null,v,p,x,T,I),xe++)}const Io=ut?ec(gn):Xt;for(de=Io.length-1,O=Oe-1;O>=0;O--){const Be=ie+O,dt=m[Be],Mo=m[Be+1],$o=Be+1<K?Mo.el||Zs(Mo):h;gn[O]===0?$(null,dt,w,$o,v,p,x,T,I):ut&&(de<0||O!==Io[de]?$e(dt,w,$o,2):de--)}}},$e=(f,m,w,h,v=null)=>{const{el:p,type:x,transition:T,children:I,shapeFlag:O}=f;if(O&6){$e(f.component.subTree,m,w,h);return}if(O&128){f.suspense.move(m,w,h);return}if(O&64){x.move(f,m,w,D);return}if(x===oe){s(p,m,w);for(let L=0;L<I.length;L++)$e(I[L],m,w,h);s(f.anchor,m,w);return}if(x===Ns){N(f,m,w);return}if(h!==2&&O&1&&T)if(h===0)T.persisted&&!p[Is]?s(p,m,w):(T.beforeEnter(p),s(p,m,w),je(()=>T.enter(p),v));else{const{leave:L,delayLeave:W,afterLeave:J}=T,ie=()=>{f.ctx.isUnmounted?o(p):s(p,m,w)},ge=()=>{const de=p._isLeaving||!!p[Is];p._isLeaving&&p[Is](!0),T.persisted&&!de?ie():L(p,()=>{ie(),J&&J()})};W?W(p,ie,ge):ge()}else s(p,m,w)},ke=(f,m,w,h=!1,v=!1)=>{const{type:p,props:x,ref:T,children:I,dynamicChildren:O,shapeFlag:K,patchFlag:L,dirs:W,cacheIndex:J,memo:ie}=f;if((L===-2||O&&O.hasOnce)&&(v=!1),T!=null&&(wt(),Cn(T,null,w,f,!0),St()),J!=null&&(!f.ctx||f.ctx===m)&&(m.renderCache[J]=void 0),K&256){m.ctx.deactivate(f);return}const ge=K&1&&W,de=!kn(f);let xe;if(de&&(xe=x&&x.onVnodeBeforeUnmount)&&ht(xe,m,f),K&6)Xe(f.component,w,h);else{if(K&128){f.suspense.unmount(w,h);return}ge&&Gt(f,null,m,"beforeUnmount"),K&64?f.type.remove(f,m,w,D,h):O&&!O.hasOnce&&(p!==oe||L>0&&L&64)?He(O,m,w,!1,!0):(p===oe&&L&384||!v&&K&16)&&He(I,m,w),h&&Nt(f)}const Oe=ie!=null&&J==null;(de&&(xe=x&&x.onVnodeUnmounted)||ge||Oe)&&je(()=>{xe&&ht(xe,m,f),ge&&Gt(f,null,m,"unmounted"),Oe&&(f.el=null)},w)},Nt=f=>{const{type:m,el:w,anchor:h,transition:v}=f,p=m===oe;if(p&&!v){ct(w,h);return}if(m===Ns){V(f),v&&!v.persisted&&v.afterLeave&&v.afterLeave();return}const x=p?qs(f):f,T=()=>{p?g(w)&&ct(w,h):o(w),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(x&&x.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:O}=v,K=x.el,L=()=>I(K,T);O?O(K,T,L):L()}else T()},ct=(f,m)=>{let w;for(;f!==m;)w=b(f),o(f),f=w;o(m)},Xe=(f,m,w)=>{const{bum:h,scope:v,job:p,subTree:x,um:T,m:I,a:O}=f;Qo(I),Qo(O),h&&qn(h),v.stop(),p?(p.flags|=8,ke(x,f,m,w)):f.vnode.el&&x&&(x.transition=f.vnode.transition,ke(x,f,m,w)),T&&je(T,m),je(()=>{f.isUnmounted=!0},m)},He=(f,m,w,h=!1,v=!1,p=0)=>{for(let x=p;x<f.length;x++)ke(f[x],m,w,h,v)},A=f=>{if(f.shapeFlag&6)return A(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=b(f.anchor||f.el),w=m&&m[va];return w?b(w):m},j=(f,m,w)=>{const h=f&&m._vnode?void 0:f&&f.component?f.component.uid:rc();da(()=>{f==null?m._vnode&&ke(m._vnode,null,null,!0):$(m._vnode||null,f,m,null,null,null,w),m._vnode=f},h)},D={p:$,um:ke,m:$e,r:Nt,mt:Ct,mc:Y,pc:re,pbc:fe,n:A,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 Hr(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&&Hr(r,l)),l.type===ws&&(l.patchFlag===-1&&(l=o[i]=Rt(l)),l.el=r.el),l.type===it&&!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 jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jr(t)}function Qo(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 Ur=e=>e.__isSuspense;function tc(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):fa(e)}const oe=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),it=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),nn=[];let Ke=null;function R(e=!1){nn.push(Ke=e?null:[])}function Br(){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 Kr(e){return e.dynamicChildren=In>0?Ke||Xt:null,Br(),In>0&&Ke&&Ke.push(e),e}function P(e,t,n,s,o,i){return Kr(u(e,t,n,s,o,i,!0))}function nt(e,t,n,s,o){return Kr(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 zr=({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===oe?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zr(t),ref:t&&Yn(t),scopeId:_r,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=it),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=_e(l)),ue(a)&&(gs(a)&&!z(a)&&(a=Ie({},a)),t.style=hs(a))}const r=be(e)?1:Ur(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)||$r(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&&zr(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!==oe?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?(R(),nt(it,null,e)):B(it,null,e)}function mt(e){return e==null||typeof e=="boolean"?B(it):z(e)?B(oe,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&&!$r(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=_e([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 ht(e,t,n,s=null){ot(e,t,7,[n,s])}const ic=Rr();let Wr=0;function rc(){return Wr}function lc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||ic,i={uid:Wr++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Gi(!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:Dr(s,o),emitsOptions:Tr(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 Gr=()=>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)}},Xo=()=>{Le&&Le.scope.off(),rs(null)};function qr(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=qr(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=Li(r);if(St(),i(),(l||e.sp)&&!kn(e)&&xr(e),l){if(r.then(Xo,Xo),t)return r.then(a=>{$n(!0);try{Zo(e,a,t)}finally{$n(!1)}}).catch(a=>{ms(a,e,0)});e.asyncDep=r}else Zo(e,r)}else Jr(e)}function Zo(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=hr(t)),Jr(e)}function Jr(e,t,n){const s=e.type;e.render||(e.render=s.render||yt);{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(hr(_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 ne=(e,t)=>ra(e,t,Nn);function Yr(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 ei=typeof window<"u"&&window.trustedTypes;if(ei)try{eo=ei.createPolicy("vue",{createHTML:e=>e})}catch{}const Qr=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,ti=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{ti.innerHTML=Qr(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=ti.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 ni=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");ni in e&&((!o||t!==n)&&(e[ni]=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 si=["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=Ui(s);for(let o=0;o<si.length;o++){const i=si[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 oi="http://www.w3.org/1999/xlink";function ii(e,t,n,s,o,i=Il(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(oi,t.slice(6,t.length)):e.setAttributeNS(oi,t,n):n==null||i&&!Ki(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(n)?String(n):n)}function ri(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Qr(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=Ki(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 li=Symbol("_vei");function Ec(e,t,n,s,o=null){const i=e[li]||(e[li]={}),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&&ot(d,t,5,l)}}else ot(o,t,5,[s])};return n.value=e,n.attached=Pc(),n}const ai=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))?(ri(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,s,r,i,t!=="value")):e._isVueCE&&(Nc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(s)))?ri(e,et(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ii(e,t,s,r))};function $c(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(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 ai(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 ci(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",ci),It(e,"change",ci))},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(Xr(e,i))})},mounted:ui,beforeUpdate(e,t,n){e[ze]=Kt(n),ui(e,t,n)}};function ui(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=st(t,Xr(e,!0))}e.checked!==o&&(e.checked=o)}const Vc={created(e,{value:t},n){e.checked=st(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=st(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}){fi(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]))&&fi(e,t)}};function Lc(e,t,n){if(!n||z(e))return st(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 fi(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(st(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 Xr(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 di;function Gc(){return di||(di=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 Zr;const xs=e=>Zr=e,el=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=qi(!0),t=e.run(()=>se({}));let n=[],s=[];const o=_o({install(i){xs(o),o._a=i,i.provide(el,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 tl=()=>{};function hi(e,t,n,s=tl){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ji()&&Nl(o),o}function rn(e,...t){e.slice().forEach(n=>{n(...t)})}const Xc=e=>e(),pi=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)&&!_t(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((g,b)=>(g[b]=_o(ne(()=>{xs(n);const y=n._s.get(e);return r[b].call(y,y)})),g),{}))}return a=nl(e,d,t,n,s,!0),a}function nl(e,t,n={},s,o,i){let r;const l=Ft({actions:{}},n),a={deep:!0};let d,c,g=[],b=[],y;const M=s.state.value[e];!i&&!M&&(s.state.value[e]={});let $;function F(Y){let q;d=c=!1,typeof Y=="function"?(Y(s.state.value[e]),q={type:An.patchFunction,storeId:e,events:y}):(so(s.state.value[e],Y),q={type:An.patchObject,payload:Y,storeId:e,events:y});const fe=$=Symbol();Ln().then(()=>{$===fe&&(d=!0)}),c=!0,rn(g,q,s.state.value[e])}const k=i?function(){const{state:q}=n,fe=q?q():{};this.$patch(Se=>{Ft(Se,fe)})}:tl;function E(){r.stop(),g=[],b=[],s._s.delete(e)}const N=(Y,q="")=>{if(pi 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(b,{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[pi]=!0,fe[Ls]=q,fe},V={_p:s,$id:e,$onAction:hi.bind(null,b),$patch:F,$reset:k,$subscribe(Y,q={}){const fe=hi(g,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:y},Te)},Ft({},a,q)));return fe},$dispose:E},H=sn(V);s._s.set(e,H);const te=(s._a&&s._a.runWithContext||Xc)(()=>s._e.run(()=>(r=qi()).run(()=>t({action:N}))));for(const Y in te){const q=te[Y];if(we(q)&&!tu(q)||_t(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(le(H),te),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:Y=>{F(q=>{Ft(q,Y)})}}),s._p.forEach(Y=>{Ft(H,r.run(()=>Y({store:H,app:s._a,pinia:s,options:l})))}),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?bt(el,null):null),l&&xs(l),l=Zr,l._s.has(s)||(i?nl(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 sl(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&&sl(e.default)}const ce=Object.assign;function Hs(e,t){const n={};for(const s in t){const o=t[s];n[s]=rt(o)?o.map(e):e(o)}return n}const Rn=()=>{},rt=Array.isArray;function gi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const ol=/#/g,ou=/&/g,iu=/\//g,ru=/=/g,lu=/\?/g,il=/\+/g,au=/%5B/g,cu=/%5D/g,rl=/%5E/g,uu=/%60/g,ll=/%7B/g,fu=/%7C/g,al=/%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(ll,"{").replace(al,"}").replace(rl,"^")}function oo(e){return ko(e).replace(il,"%2B").replace(du,"+").replace(ol,"%23").replace(ou,"%26").replace(uu,"`").replace(ll,"{").replace(al,"}").replace(rl,"^")}function pu(e){return oo(e).replace(ru,"%3D")}function gu(e){return ko(e).replace(ol,"%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 mi(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])&&cl(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 cl(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 rt(e)?vi(e,t):rt(t)?vi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function vi(e,t){return rt(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 yi(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 ul(e){return typeof e=="string"||typeof e=="symbol"}let ye=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 fl=Symbol("");ye.MATCHER_NOT_FOUND+"",ye.NAVIGATION_GUARD_REDIRECT+"",ye.NAVIGATION_ABORTED+"",ye.NAVIGATION_CANCELLED+"",ye.NAVIGATION_DUPLICATED+"";function hn(e,t){return ce(new Error,{type:e,[fl]:!0},t)}function Et(e,t){return e instanceof Error&&fl 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(il," "),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];rt(a)||(a=t[r]=[a]),a.push(l)}else t[r]=l}return t}function _i(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}(rt(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]=rt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Nu=Symbol(""),bi=Symbol(""),Eo=Symbol(""),dl=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=b=>{b===!1?a(hn(ye.NAVIGATION_ABORTED,{from:n,to:t})):b instanceof Error?a(b):Ou(b)?a(hn(ye.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(r&&s.enterCallbacks[o]===r&&typeof b=="function"&&r.push(b),l())},c=i(()=>e.call(s&&s.instances[o],t,n,d));let g=Promise.resolve(c);e.length<3&&(g=g.then(d)),g.catch(b=>a(b))})}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(sl(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 g=su(c)?c.default:c;r.mods[l]=c,r.components[l]=g;const b=(g.__vccOpts||g)[t];return b&&Lt(b,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 hl(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),mi(l,"")}return mi(n,e)+s+o}function Vu(e,t,n,s){let o=[],i=[],r=null;const l=({state:b})=>{const y=hl(e,location),M=n.value,$=t.value;let F=0;if(b){if(n.value=y,t.value=b,r&&r===M){r=null;return}F=$?b.position-$.position:0}else s(y);o.forEach(k=>{k(n.value,M,{delta:F,type:io.pop,direction:F?F>0?Us.forward:Us.back:Us.unknown})})};function a(){r=n.value}function d(b){o.push(b);const y=()=>{const M=o.indexOf(b);M>-1&&o.splice(M,1)};return i.push(y),y}function c(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(ce({},b.state,{scroll:ks()}),"")}}function g(){for(const b of i)b();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:g}}function wi(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:hl(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 g=e.indexOf("#"),b=g>-1?(n.host&&document.querySelector("base")?e:e.slice(g))+a:Fu()+e+a;try{t[c?"replaceState":"pushState"](d,"",b),o.value=d}catch(y){console.error(y),n[c?"replace":"assign"](b)}}function r(a,d){i(a,ce({},t.state,wi(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({},wi(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(y){throw new Error(`ERR (${n})/"${d}": ${y}`)}let n=Ee.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let l=0,a,d="",c="";function g(){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 b(){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&&g(),r()):a===":"?(g(),n=Ee.Param):b();break;case Ee.EscapeNext:b(),n=s;break;case Ee.Param:a==="("?n=Ee.ParamRegExp:Bu.test(a)?b():(g(),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:g(),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}"`),g(),r(),o}const Si="[^/]+?",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 g=0;g<d.length;g++){const b=d[g];let y=Fe.Segment+(n.sensitive?Fe.BonusCaseSensitive:0);if(b.type===Zt.Static)g||(o+="/"),o+=b.value.replace(Wu,"\\$&"),y+=Fe.Static;else if(b.type===Zt.Param){const{value:M,repeatable:$,optional:F,regexp:k}=b;i.push({name:M,repeatable:$,optional:F});const E=k||Si;if(E!==Si){y+=Fe.BonusCustomRegExp;try{`${E}`}catch(V){throw new Error(`Invalid custom RegExp for param "${M}" (${E}): `+V.message)}}let N=$?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;g||(N=F&&d.length<2?`(?:/${N})`:"/"+N),F&&(N+="?"),o+=N,y+=Fe.Dynamic,F&&(y+=Fe.BonusOptional),$&&(y+=Fe.BonusRepeatable),E===".*"&&(y+=Fe.BonusWildcard)}c.push(y)}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),g={};if(!c)return null;for(let b=1;b<c.length;b++){const y=c[b]||"",M=i[b-1];g[M.name]=y&&M.repeatable?y.split("/"):y}return g}function a(d){let c="",g=!1;for(const b of e){(!g||!c.endsWith("/"))&&(c+="/"),g=!1;for(const y of b)if(y.type===Zt.Static)c+=y.value;else if(y.type===Zt.Param){const{value:M,repeatable:$,optional:F}=y,k=M in d?d[M]:"";if(rt(k)&&!$)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const E=rt(k)?k.join("/"):k;if(!E)if(F)b.length<2&&(c.endsWith("/")?c=c.slice(0,-1):g=!0);else throw new Error(`Missing required param "${M}"`);c+=E}}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 pl(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(xi(s))return 1;if(xi(o))return-1}return o.length-s.length}function xi(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=gi(Ju,t);function o(g){return s.get(g)}function i(g,b,y){const M=!y,$=ki(g);$.aliasOf=y&&y.record;const F=gi(t,g),k=[$];if("alias"in g){const V=typeof g.alias=="string"?[g.alias]:g.alias;for(const H of V)k.push(ki(ce({},$,{components:y?y.record.components:$.components,path:H,aliasOf:y?y.record:$})))}let E,N;for(const V of k){const{path:H}=V;if(b&&H[0]!=="/"){const he=b.record.path,te=he[he.length-1]==="/"?"":"/";V.path=b.record.path+(H&&te+H)}if(E=Yu(V,b,F),y?y.alias.push(E):(N=N||E,N!==E&&N.alias.push(E),M&&g.name&&!Ei(E)&&r(g.name)),gl(E)&&a(E),$.children){const he=$.children;for(let te=0;te<he.length;te++)i(he[te],E,y&&y.children[te])}y=y||E}return N?()=>{r(N)}:Rn}function r(g){if(ul(g)){const b=s.get(g);b&&(s.delete(g),n.splice(n.indexOf(b),1),b.children.forEach(r),b.alias.forEach(r))}else{const b=n.indexOf(g);b>-1&&(n.splice(b,1),g.record.name&&s.delete(g.record.name),g.children.forEach(r),g.alias.forEach(r))}}function l(){return n}function a(g){const b=ef(g,n);n.splice(b,0,g),g.record.name&&!Ei(g)&&s.set(g.record.name,g)}function d(g,b){let y,M={},$,F;if("name"in g&&g.name){if(y=s.get(g.name),!y)throw hn(ye.MATCHER_NOT_FOUND,{location:g});F=y.record.name,M=ce(Ci(b.params,y.keys.filter(N=>!N.optional).concat(y.parent?y.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),g.params&&Ci(g.params,y.keys.map(N=>N.name))),$=y.stringify(M)}else if(g.path!=null)$=g.path,y=n.find(N=>N.re.test($)),y&&(M=y.parse($),F=y.record.name);else{if(y=b.name?s.get(b.name):n.find(N=>N.re.test(b.path)),!y)throw hn(ye.MATCHER_NOT_FOUND,{location:g,currentLocation:b});F=y.record.name,M=ce({},b.params,g.params),$=y.stringify(M)}const k=[];let E=y;for(;E;)k.unshift(E.record),E=E.parent;return{name:F,path:$,params:M,matched:k,meta:Zu(k)}}e.forEach(g=>i(g));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:c,getRoutes:l,getRecordMatcher:o}}function Ci(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ki(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 Ei(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;pl(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(gl(t)&&pl(e,t)===0)return t}function gl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ai(e){const t=bt(Eo),n=bt(dl),s=ne(()=>{const a=_(e.to);return t.resolve(a)}),o=ne(()=>{const{matched:a}=s.value,{length:d}=a,c=a[d-1],g=n.matched;if(!c||!g.length)return-1;const b=g.findIndex(dn.bind(null,c));if(b>-1)return b;const y=Ri(a[d-2]);return d>1&&Ri(c)===y&&g[g.length-1].path!==y?g.findIndex(dn.bind(null,a[d-2])):b}),i=ne(()=>o.value>-1&&rf(n.params,s.value.params)),r=ne(()=>o.value>-1&&o.value===n.matched.length-1&&cl(n.params,s.value.params));function l(a={}){if(of(a)){const d=t[_(e.replace)?"replace":"push"](_(e.to)).catch(Rn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:ne(()=>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:Ai,setup(e,{slots:t}){const n=sn(Ai(e)),{options:s}=bt(Eo),o=ne(()=>({[Ti(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ti(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&nf(t.default(n));return e.custom?i:Yr("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(!rt(o)||o.length!==s.length||s.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Ri(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ti=(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=bt(lo),o=ne(()=>e.route||s.value),i=bt(bi,0),r=ne(()=>{let d=_(i);const{matched:c}=o.value;let g;for(;(g=c[d])&&!g.components;)d++;return d}),l=ne(()=>o.value.matched[r.value]);Jn(bi,ne(()=>r.value+1)),Jn(Nu,l),Jn(lo,o);const a=se();return jt(()=>[a.value,l.value,e.name],([d,c,g],[b,y,M])=>{c&&(c.instances[g]=d,y&&y!==c&&d&&d===b&&(c.leaveGuards.size||(c.leaveGuards=y.leaveGuards),c.updateGuards.size||(c.updateGuards=y.updateGuards))),d&&c&&(!y||!dn(c,y)||!b)&&(c.enterCallbacks[g]||[]).forEach($=>$(d))},{flush:"post"}),()=>{const d=o.value,c=e.name,g=l.value,b=g&&g.components[c];if(!b)return Oi(n.default,{Component:b,route:d});const y=g.props[c],M=y?y===!0?d.params:typeof y=="function"?y(d):y:null,F=Yr(b,ce({},M,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(g.instances[c]=null)},ref:a}));return Oi(n.default,{Component:F,route:d})||F}}});function Oi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ml=lf;function af(e){const t=Qu(e.routes,e),n=e.parseQuery||Mu,s=e.stringifyQuery||_i,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,A=>""+A),g=Hs.bind(null,mu),b=Hs.bind(null,Dn);function y(A,j){let D,G;return ul(A)?(D=t.getRecordMatcher(A),G=j):G=A,t.addRoute(G,D)}function M(A){const j=t.getRecordMatcher(A);j&&t.removeRoute(j)}function $(){return t.getRoutes().map(A=>A.record)}function F(A){return!!t.getRecordMatcher(A)}function k(A,j){if(j=ce({},j||a.value),typeof A=="string"){const h=js(n,A,j.path),v=t.resolve({path:h.path},j),p=o.createHref(h.fullPath);return ce(h,v,{params:b(v.params),hash:Dn(h.hash),redirectedFrom:void 0,href:p})}let D;if(A.path!=null)D=ce({},A,{path:js(n,A.path,j.path).path});else{const h=ce({},A.params);for(const v in h)h[v]==null&&delete h[v];D=ce({},A,{params:g(h)}),j.params=g(j.params)}const G=t.resolve(D,j),f=A.hash||"";G.params=c(b(G.params));const m=_u(s,ce({},A,{hash:hu(f),path:G.path})),w=o.createHref(m);return ce({fullPath:m,hash:f,query:s===_i?$u(A.query):A.query||{}},G,{redirectedFrom:void 0,href:w})}function E(A){return typeof A=="string"?js(n,A,a.value.path):ce({},A)}function N(A,j){if(d!==A)return hn(ye.NAVIGATION_CANCELLED,{from:j,to:A})}function V(A){return te(A)}function H(A){return V(ce(E(A),{replace:!0}))}function he(A,j){const D=A.matched[A.matched.length-1];if(D&&D.redirect){const{redirect:G}=D;let f=typeof G=="function"?G(A,j):G;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=E(f):{path:f},f.params={}),ce({query:A.query,hash:A.hash,params:f.path!=null?{}:A.params},f)}}function te(A,j){const D=d=k(A),G=a.value,f=A.state,m=A.force,w=A.replace===!0,h=he(D,G);if(h)return te(ce(E(h),{state:typeof h=="object"?ce({},f,h.state):f,force:m,replace:w}),j||D);const v=D;v.redirectedFrom=j;let p;return!m&&bu(s,G,D)&&(p=hn(ye.NAVIGATION_DUPLICATED,{to:v,from:G}),$e(G,G,!0,!1)),(p?Promise.resolve(p):fe(v,G)).catch(x=>Et(x)?Et(x,ye.NAVIGATION_GUARD_REDIRECT)?x:at(x):re(x,v,G)).then(x=>{if(x){if(Et(x,ye.NAVIGATION_GUARD_REDIRECT))return te(ce({replace:w},E(x.to),{state:typeof x.to=="object"?ce({},f,x.to.state):f,force:m}),j||v)}else x=Te(v,G,!0,w,f);return Se(v,G,x),x})}function Y(A,j){const D=N(A,j);return D?Promise.reject(D):Promise.resolve()}function q(A){const j=ct.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(A):A()}function fe(A,j){let D;const[G,f,m]=Du(A,j);D=Bs(G.reverse(),"beforeRouteLeave",A,j);for(const h of G)h.leaveGuards.forEach(v=>{D.push(Lt(v,A,j))});const w=Y.bind(null,A,j);return D.push(w),He(D).then(()=>{D=[];for(const h of i.list())D.push(Lt(h,A,j));return D.push(w),He(D)}).then(()=>{D=Bs(f,"beforeRouteUpdate",A,j);for(const h of f)h.updateGuards.forEach(v=>{D.push(Lt(v,A,j))});return D.push(w),He(D)}).then(()=>{D=[];for(const h of m)if(h.beforeEnter)if(rt(h.beforeEnter))for(const v of h.beforeEnter)D.push(Lt(v,A,j));else D.push(Lt(h.beforeEnter,A,j));return D.push(w),He(D)}).then(()=>(A.matched.forEach(h=>h.enterCallbacks={}),D=Bs(m,"beforeRouteEnter",A,j,q),D.push(w),He(D))).then(()=>{D=[];for(const h of r.list())D.push(Lt(h,A,j));return D.push(w),He(D)}).catch(h=>Et(h,ye.NAVIGATION_CANCELLED)?h:Promise.reject(h))}function Se(A,j,D){l.list().forEach(G=>q(()=>G(A,j,D)))}function Te(A,j,D,G,f){const m=N(A,j);if(m)return m;const w=j===Dt,h=cn?history.state:{};D&&(G||w?o.replace(A.fullPath,ce({scroll:w&&h&&h.scroll},f)):o.push(A.fullPath,f)),a.value=A,$e(A,j,D,w),at()}let Me;function Ct(){Me||(Me=o.listen((A,j,D)=>{if(!Xe.listening)return;const G=k(A),f=he(G,Xe.currentRoute.value);if(f){te(ce(f,{replace:!0,force:!0}),G).catch(Rn);return}d=G;const m=a.value;cn&&Ru(yi(m.fullPath,D.delta),ks()),fe(G,m).catch(w=>Et(w,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?w:Et(w,ye.NAVIGATION_GUARD_REDIRECT)?(te(ce(E(w.to),{force:!0}),G).then(h=>{Et(h,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!D.delta&&D.type===io.pop&&o.go(-1,!1)}).catch(Rn),Promise.reject()):(D.delta&&o.go(-D.delta,!1),re(w,G,m))).then(w=>{w=w||Te(G,m,!1),w&&(D.delta&&!Et(w,ye.NAVIGATION_CANCELLED)?o.go(-D.delta,!1):D.type===io.pop&&Et(w,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Se(G,m,w)}).catch(Rn)}))}let Ge=yn(),pe=yn(),Q;function re(A,j,D){at(A);const G=pe.list();return G.length?G.forEach(f=>f(A,j,D)):console.error(A),Promise.reject(A)}function Qe(){return Q&&a.value!==Dt?Promise.resolve():new Promise((A,j)=>{Ge.add([A,j])})}function at(A){return Q||(Q=!A,Ct(),Ge.list().forEach(([j,D])=>A?D(A):j()),Ge.reset()),A}function $e(A,j,D,G){const{scrollBehavior:f}=e;if(!cn||!f)return Promise.resolve();const m=!D&&Tu(yi(A.fullPath,0))||(G||!D)&&history.state&&history.state.scroll||null;return Ln().then(()=>f(A,j,m)).then(w=>w&&Au(w)).catch(w=>re(w,A,j))}const ke=A=>o.go(A);let Nt;const ct=new Set,Xe={currentRoute:a,listening:!0,addRoute:y,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:F,getRoutes:$,resolve:k,options:e,push:V,replace:H,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:r.add,afterEach:l.add,onError:pe.add,isReady:Qe,install(A){A.component("RouterLink",Qt),A.component("RouterView",ml),A.config.globalProperties.$router=Xe,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>_(a)}),cn&&!Nt&&a.value===Dt&&(Nt=!0,V(o.location).catch(G=>{}));const j={};for(const G in Dt)Object.defineProperty(j,G,{get:()=>a.value[G],enumerable:!0});A.provide(Eo,Xe),A.provide(dl,fr(j)),A.provide(lo,a);const D=A.unmount;ct.add(A),A.unmount=function(){ct.delete(A),ct.size<1&&(d=Dt,Me&&Me(),Me=null,a.value=Dt,Nt=!1,Q=!1),D()}}};function He(A){return A.reduce((j,D)=>j.then(()=>q(D)),Promise.resolve())}return Xe}class 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 Pi;function uf(){return Pi??(Pi=new cf),Pi}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 Ii(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}}}),vl=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}}}}),ff=3456,ao=`http://127.0.0.1:${ff}`,df="https://duduer.com";function jn(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function Po(){return/Windows|Win32|Win64/i.test(navigator.userAgent)?"windows":"macos"}async function Mi(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()?df: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=vl(),o=uf();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 C={appName:"嘟嘟转换器",nav:{home:"首页",workbench:"功能页",history:"转换历史",settings:"设置"},connection:{connected:"已连接本地服务",disconnected:"连接已断开,正在自动重连"},doctor:{title:"依赖与环境",recheck:"重新检测",install:"一键安装",uninstall:"一键卸载",copy:"复制命令",manual:"手动下载",logs:"操作日志",ready:"可用",outdated:"版本过旧",missingRequired:"必需缺失",missingOptional:"可选缺失",sessionRunning:"执行中,请耐心等待…",sessionDone:"✅ 操作完成",sessionFailed:"❌ 操作失败,详情见下方日志"},workbench:{title:"转换工作台",subtitle:"按类型分栏管理,文件入表后逐个或批量转换",dropTitle:"把{tab}文件拖到这里",dropHint:"支持 {exts} 等格式",dropCompact:"继续添加{tab}文件",pastePlaceholder:"粘贴文件绝对路径,回车添加",wrongTab:"{name} 不属于{tab},请切换到对应标签页添加",fileDuplicate:"已在列表中,无需重复添加",addFile:"选择文件",addPath:"添加",convertTo:"批量转换为",noCommonTargets:"当前文件没有共同的转换目标,请清理后分批转换",noTools:"该类别依赖的工具尚未安装,请到「环境检测」页安装后重试",tableFile:"文件名",tablePath:"路径",tableSize:"大小",tableStatus:"状态",tableActions:"操作",statusPending:"待转换",statusRunning:"转换中",statusSuccess:"转换成功",statusFailed:"转换失败",convert:"转换",retry:"重试",openFolder:"打开目录",download:"下载",remove:"移除",clearDone:"清除已完成",batchConvert:"开始批量转换",batchConvertN:"开始批量转换({n} 个)",batchDone:"本次批量转换已完成",paramsTitle:"高级参数",advanced:"高级设置",chooseFile:"选择文件"},history:{title:"转换历史",subtitle:"所有转换任务按时间倒序排列,可随时下载或打开产物",filterAll:"全部",statTotal:"累计任务",statSuccess:"成功",statFailed:"失败",searchPlaceholder:"搜索文件名…",empty:"还没有转换记录,去工作台开始第一次转换吧",today:"今天",yesterday:"昨天",openFolder:"打开目录",download:"下载",remove:"删除",clear:"清空历史"},landing:{heroBadge:"本地转换 · 零上传 · 不限文件大小",heroTitle:"你的文件,",heroAccent:"不必上传",heroTagline:"嘟嘟本地万能转换器:视频、音频、图片、文档在本机一步完成 —— 没有大小限制,没有隐私顾虑,没有漫长等待。",cta:"立即开始转换",ctaInstall:"查看安装指南",localRunning:"转换器已在本机运行,可直接进入功能页",stats:[{value:"22",label:"转换能力"},{value:"40+",label:"支持格式"},{value:"0",label:"文件上传"},{value:"100%",label:"本机运行"}],painTitle:"你是不是也有这些顾虑?",painSub:"嘟嘟把这些通通变成过去。",pains:[{icon:"shield",title:"文件传上去,心里不踏实",text:"合同、证件、家庭影像……一旦上传到陌生服务器,隐私就不再由你掌控。"},{icon:"globe",title:"在线工具处处受限",text:"大小限制、格式缺失、会员付费、广告弹窗,简单转个文件总要妥协。"},{icon:"clock",title:"传上去再下载,来回折腾",text:"大文件先上传一小时,转换完再下载一小时,网速决定了心情。"}],valueTitle:"换一种方式转换文件",valueSub:"本机运行带来的三个直接好处",values:[{icon:"shield-check",title:"文件不出你的电脑",text:"所有解析与转换都在本机完成,不经任何服务器,隐私天然无忧。"},{icon:"package-plus",title:"缺什么,一键装什么",text:"首次使用自动体检环境,FFmpeg 等引擎在页面里点一下即可安装。"},{icon:"zap",title:"装完即用,秒级开始",text:"一条命令安装,浏览器自动打开操作界面,拖入文件立刻出结果。"}],scenesTitle:"这些瞬间,嘟嘟都帮得上忙",scenesSub:"来自日常使用的高频场景",scenes:[{icon:"video",title:"网课录屏瘦身",text:"几个 G 的课程录像压成几百 MB,备份分享都不再犯难"},{icon:"image",title:"聊天图片压缩",text:"手机原图一张 8MB,压完不到 1MB,清晰度几乎不变"},{icon:"pdf",title:"发票合并归档",text:"几十张发票 PDF 按顺序合并成一个文件,报销不再手忙脚乱"},{icon:"sparkles",title:"表情包制作",text:"精彩片段一键做成 GIF 动图,斗图弹药永远充足"},{icon:"markdown",title:"简历笔记定稿",text:"Markdown 写完一键转 Word / PDF,排版不乱直接发"},{icon:"shield",title:"证件照脱敏外发",text:"身份证扫描件加水印或加密,发给陌生方也更安心"}],featuresTitle:"覆盖你日常的每一类文件",featuresSub:"22 类能力 · 40+ 种格式,全部本机完成",compareTitle:"和在线转换工具比一比",compareSub:"同样的转换,不同的体验",compare:[{item:"文件隐私",online:"上传到陌生服务器",local:"全程留在你的电脑里"},{item:"文件大小",online:"免费版普遍限制 100MB",local:"无任何限制"},{item:"转换速度",online:"上传 + 下载双倍耗时",local:"直接读写本地磁盘"},{item:"批量处理",online:"多数按次收费",local:"免费,支持批量队列"},{item:"网络依赖",online:"必须联网上传",local:"断网也能正常转换"}],faqTitle:"常见问题",faqSub:"关于嘟嘟的几个高频疑问",faq:[{q:"我的文件会被上传吗?",a:"不会。嘟嘟完全运行在你自己的电脑上,转换过程不经过任何服务器,即使断网也能正常转换。"},{q:"需要付费吗?",a:"免费使用:无功能限制、无水印、无次数限制,也不需要注册账号。"},{q:"转换用的引擎需要自己装吗?",a:"不用自己找教程。首次使用某类能力时,应用会自动检测缺失的引擎,在「设置 → 依赖与环境」里点一下即可安装,全程图形化操作。"},{q:"支持 Windows 吗?",a:"支持。macOS 12+ 与 Windows 10/11 均可使用,安装命令在首页首屏即可一键复制。"},{q:"大文件会很慢或卡住吗?",a:"转换在本地队列并发执行(1–4 个可调),大文件只是耗时更长,不会占用云端额度,也不影响电脑其他操作。"}],footer:"嘟嘟转换器 · 本地优先的文件转换工具 · 文件永不上传"},install:{title:"安装转换器",step1:"打开终端",step2:"粘贴以下命令并回车",step3:"等待安装完成,浏览器会自动打开转换器",macos:"macOS",windows:"Windows",copy:"复制",copied:"已复制",macosTerminal:"按 ⌘+空格 打开聚焦搜索,输入「终端」或「Terminal」,回车打开",windowsTerminal:"点击开始菜单,输入「PowerShell」,回车打开",alreadyInstalled:"已经安装过?再次执行此命令会自动升级到新版本",startHint:"如果已经安装但未运行:在终端执行 converter start 启动后,回到此页重新检测"},gate:{checking:"正在检测本地转换器…",online:"已检测到本地转换器正在运行",open:"打开本地转换器",offline:"未检测到本地转换器",installedTitle:"转换器已安装,但服务未运行",oneClickStart:"一键启动服务",starting:"正在启动,请留意屏幕弹窗…",manualTitle:"手动启动(一行命令)",manualHint:"复制命令 → 打开终端粘贴回车;若已开启开机自启,重启电脑也会自动运行",retry:"重新检测",notInstalledTitle:"尚未安装?查看安装步骤"},settings:{title:"设置",preferences:"应用设置",autostart:"开机自动启动",outputDir:"输出目录",chooseDir:"选择文件夹",concurrency:"并发数",language:"界面语言",save:"保存设置",saved:"设置已保存",service:"服务管理",serviceRunning:"转换服务运行中",stopService:"停止服务",stopConfirm:`确定停止转换服务吗?
31
- 停止后转换功能不可用;已开启的开机自启会在下次重启电脑时自动运行服务。`,serviceStopped:"转换服务已停止",stoppedGuide:"重新启动:在终端执行下方命令;若已开启开机自启,重启电脑后服务也会自动运行。",startCommand:"converter start"},common:{retry:"重试",close:"关闭",loading:"加载中…",save:"保存",cancel:"取消"}},gf={class:"app-shell"},mf={class:"app-header"},vf=Ue({__name:"App",setup(e){pf();const t=Ro(),n=jn();return(s,o)=>(R(),P("div",gf,[u("header",mf,[B(_(Qt),{to:"/",class:"brand"},{default:Yt(()=>[o[0]||(o[0]=u("span",{class:"logo"},"嘟",-1)),u("strong",null,S(_(C).appName),1)]),_:1}),u("nav",null,[B(_(Qt),{to:"/"},{default:Yt(()=>[U(S(_(C).nav.home),1)]),_:1}),B(_(Qt),{to:"/workbench"},{default:Yt(()=>[U(S(_(C).nav.workbench),1)]),_:1}),_(n)?(R(),nt(_(Qt),{key:0,to:"/history"},{default:Yt(()=>[U(S(_(C).nav.history),1)]),_:1})):ee("",!0),_(n)?(R(),nt(_(Qt),{key:1,to:"/settings"},{default:Yt(()=>[U(S(_(C).nav.settings),1)]),_:1})):ee("",!0)]),_(n)?(R(),P("span",{key:0,class:_e(["connection",{offline:!_(t).connected}])},[o[1]||(o[1]=u("i",{class:"dot"},null,-1)),U(S(_(t).connected?_(C).connection.connected:_(C).connection.disconnected),1)],2)):ee("",!0)]),u("main",null,[B(_(ml))])]))}}),lt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},yf=lt(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)=>(R(),P("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",class:"app-icon"},[(R(!0),P(oe,null,Re(_(_f)[t.name],(o,i)=>(R(),P("path",{key:i,d:o},null,8,wf))),128))],8,bf))}}),X=lt(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=se("all"),o=se("");pn(()=>{t.load(),n.load()});const i=ne(()=>({total:t.tasks.length,success:t.tasks.filter(k=>k.status==="success").length,failed:t.tasks.filter(k=>k.status==="failed").length})),r=ne(()=>t.tasks.filter(k=>!(s.value!=="all"&&k.status!==s.value||o.value.trim()&&!k.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort((k,E)=>E.startedAt.localeCompare(k.startedAt))),l=se("");async function a(k){l.value="";try{await Ce.revealTask(k.taskId)}catch(E){l.value=E instanceof Error?E.message:"打开目录失败"}}async function d(k){l.value="";try{await Ce.deleteHistory(k),await t.load()}catch(E){t.error=E instanceof Error?E.message:"删除失败"}}async function c(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await Ce.clearHistory(),await t.load()}catch(k){t.error=k instanceof Error?k.message:"清空失败"}}function g(k){const E=new Date(k);if(Number.isNaN(E.getTime()))return"";const N=new Date,V=te=>new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime(),H=Math.round((V(N)-V(E))/864e5);return H<=0?C.history.today:H===1?C.history.yesterday:E.getFullYear()===N.getFullYear()?`${E.getMonth()+1} 月 ${E.getDate()} 日`:`${E.getFullYear()} 年 ${E.getMonth()+1} 月 ${E.getDate()} 日`}const b=ne(()=>{const k=new Map;for(const E of r.value){const N=g(E.startedAt),V=k.get(N);V?V.push(E):k.set(N,[E])}return[...k.entries()]});function y(k){const E=new Date(k);return Number.isNaN(E.getTime())?"":`${String(E.getHours()).padStart(2,"0")}:${String(E.getMinutes()).padStart(2,"0")}`}function M(k){return k.split(/[\\/]/).pop()??k}function $(k){var N;const E=(N=n.byKey.get(k.conversionKey))==null?void 0:N.category;return _l[E??"file"]??"file"}function F(k){var E;return((E=n.byKey.get(k.conversionKey))==null?void 0:E.label)??k.conversionKey}return(k,E)=>(R(),P("section",xf,[u("h1",Cf,S(_(C).history.title),1),u("p",kf,S(_(C).history.subtitle),1),u("div",Ef,[u("div",Af,[(R(!0),P(oe,null,Re([{key:"all",label:_(C).history.filterAll,count:i.value.total},{key:"success",label:_(C).history.statSuccess,count:i.value.success},{key:"failed",label:_(C).history.statFailed,count:i.value.failed}],N=>(R(),P("button",{key:N.key,type:"button",class:_e(["filter-chip",{active:s.value===N.key}]),onClick:V=>s.value=N.key},[U(S(N.label)+" ",1),u("em",null,S(N.count),1)],10,Rf))),128))]),u("div",Tf,[u("div",Of,[B(X,{name:"file",size:14}),Pt(u("input",{"onUpdate:modelValue":E[0]||(E[0]=N=>o.value=N),type:"text",placeholder:_(C).history.searchPlaceholder},null,8,Pf),[[Ut,o.value]])]),_(t).tasks.length?(R(),P("button",{key:0,class:"ghost danger",type:"button",onClick:c},[B(X,{name:"x",size:13}),U(S(_(C).history.clear),1)])):ee("",!0)])]),l.value?(R(),P("p",If,[B(X,{name:"alert-circle",size:15}),U(S(l.value),1)])):ee("",!0),r.value.length?ee("",!0):(R(),P("div",Mf,[B(X,{name:"folder",size:36}),u("span",null,S(_(C).history.empty),1)])),(R(!0),P(oe,null,Re(b.value,([N,V])=>(R(),P("div",{key:N,class:"day-group"},[u("div",$f,[U(S(N),1),u("em",null,S(V.length)+" 条",1)]),u("div",Nf,[(R(!0),P(oe,null,Re(V,H=>(R(),P("article",{key:H.taskId,class:"history-item"},[u("span",{class:_e(["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(F(H))+" · "+S(y(H.startedAt))+S(H.durationMs?` · ${H.durationMs} ms`:"")+" ",1),H.error?(R(),P(oe,{key:0},[E[1]||(E[1]=U(" · ",-1)),u("span",Uf,S(H.error.message),1)],64)):ee("",!0)])]),u("span",{class:_e(["badge row-badge",H.status])},[H.status==="running"?(R(),P("span",Bf)):ee("",!0),U(" "+S(H.status==="success"?_(C).workbench.statusSuccess:H.status==="failed"?_(C).workbench.statusFailed:H.status==="running"?_(C).workbench.statusRunning:_(C).workbench.statusPending),1)],2),u("div",Kf,[H.status==="success"?(R(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:he=>a(H)},[B(X,{name:"folder",size:13}),U(S(_(C).history.openFolder),1)],8,zf)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:_(C).history.remove,onClick:he=>d(H.taskId)},[B(X,{name:"x",size:14})],8,Wf)])]))),128))])]))),128))]))}}),qf=lt(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=se(Po()),s=ne(()=>yl(n.value)),o=se(!1);async function i(){try{await navigator.clipboard.writeText(s.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}function r(){var a;(a=document.getElementById("features"))==null||a.scrollIntoView({behavior:"smooth",block:"start"})}const l=[{icon:"video",title:"视频",lines:["格式转换 · 压缩 · 延迟摄影","MP4 · AVI · MKV · MOV · WebM"]},{icon:"music",title:"音频",lines:["格式转换 · 提取 · 压缩","MP3 · AAC · WAV · FLAC"]},{icon:"image",title:"图片",lines:["格式 · 缩放 · 压缩 · 水印","JPG · PNG · WebP · HEIC · AVIF"]},{icon:"archive",title:"压缩包",lines:["文件压缩 · 解压","7z · Zip"]},{icon:"office",title:"Office 文档",lines:["转 PDF / HTML · 家族互转","Word · Excel · PowerPoint"]},{icon:"pdf",title:"PDF",lines:["转图片文本 · 合并拆分 · 规则拆分","全套 PDF 处理"]},{icon:"markdown",title:"Markdown",lines:["互转 Word / HTML / PDF","写作发布一步到位"]}];return(a,d)=>(R(),P("section",Jf,[u("div",Yf,[u("div",Qf,[u("div",Xf,[u("span",Zf,[B(X,{name:"sparkles",size:14}),U(S(_(C).landing.heroBadge),1)]),u("h1",null,[U(S(_(C).landing.heroTitle),1),u("em",null,S(_(C).landing.heroAccent),1)]),u("p",ed,S(_(C).landing.heroTagline),1),u("div",td,[B(_(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[U(S(_(C).landing.cta),1),B(X,{name:"arrow-right",size:16})]),_:1}),u("button",{class:"btn ghost",type:"button",onClick:r},[d[2]||(d[2]=U("了解功能",-1)),B(X,{name:"chevron-down",size:15})])]),_(t)?(R(),P("p",nd,[B(X,{name:"check-circle",size:14}),U(S(_(C).landing.localRunning),1)])):ee("",!0)]),u("div",sd,[u("div",od,[d[3]||(d[3]=u("span",{class:"dots","aria-hidden":"true"},[u("i"),u("i"),u("i")],-1)),d[4]||(d[4]=u("strong",null,"一键安装嘟嘟转换器 · 全程约 1 分钟",-1)),u("div",id,[u("button",{type:"button",class:_e({active:n.value==="macos"}),onClick:d[0]||(d[0]=c=>n.value="macos")},"macOS",2),u("button",{type:"button",class:_e({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:_e(["one-click",{ok:o.value}]),type:"button","data-testid":"install-copy",onClick:i},[B(X,{name:o.value?"check-circle":"copy",size:15},null,8,["name"]),U(" "+S(o.value?"已复制!打开终端粘贴回车即可":"一键复制安装命令"),1)],2),d[6]||(d[6]=u("ol",{class:"term-steps"},[u("li",null,[u("span",null,"1"),U("点击上方按钮复制安装命令")]),u("li",null,[u("span",null,"2"),U("打开终端粘贴并回车(macOS:⌘+空格 搜「终端」;Windows:开始菜单搜 PowerShell)")]),u("li",null,[u("span",null,"3"),U("安装全自动完成,浏览器自动打开转换器")])],-1))])])]),u("div",cd,[(R(!0),P(oe,null,Re(_(C).landing.stats,c=>(R(),P("div",{key:c.label,class:"stat"},[u("strong",null,S(c.value),1),u("span",null,S(c.label),1)]))),128))])]),u("div",ud,[u("h2",null,S(_(C).landing.painTitle),1),u("p",fd,S(_(C).landing.painSub),1),u("div",dd,[(R(!0),P(oe,null,Re(_(C).landing.pains,c=>(R(),P("article",{key:c.title,class:"pain-card"},[u("span",hd,[B(X,{name:c.icon,size:21},null,8,["name"])]),u("div",null,[u("strong",null,S(c.title),1),u("p",null,S(c.text),1)])]))),128))])]),u("div",pd,[u("h2",null,S(_(C).landing.valueTitle),1),u("p",gd,S(_(C).landing.valueSub),1),u("div",md,[(R(!0),P(oe,null,Re(_(C).landing.values,c=>(R(),P("article",{key:c.title,class:"value-card"},[u("span",vd,[B(X,{name:c.icon,size:23},null,8,["name"])]),u("strong",null,S(c.title),1),u("p",null,S(c.text),1)]))),128))])]),u("div",yd,[u("h2",null,S(_(C).landing.scenesTitle),1),u("p",_d,S(_(C).landing.scenesSub),1),u("div",bd,[(R(!0),P(oe,null,Re(_(C).landing.scenes,c=>(R(),P("article",{key:c.title,class:"scene-card"},[u("span",wd,[B(X,{name:c.icon,size:20},null,8,["name"])]),u("div",null,[u("strong",null,S(c.title),1),u("p",null,S(c.text),1)])]))),128))])]),u("div",Sd,[u("h2",null,S(_(C).landing.featuresTitle),1),u("p",xd,S(_(C).landing.featuresSub),1),u("div",Cd,[(R(),P(oe,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(_(C).landing.compareTitle),1),u("p",Rd,S(_(C).landing.compareSub),1),u("div",Td,[u("table",Od,[d[7]||(d[7]=u("thead",null,[u("tr",null,[u("th",null,"对比项"),u("th",null,"在线转换工具"),u("th",null,"嘟嘟转换器")])],-1)),u("tbody",null,[(R(!0),P(oe,null,Re(_(C).landing.compare,c=>(R(),P("tr",{key:c.item},[u("td",Pd,S(c.item),1),u("td",Id,S(c.online),1),u("td",Md,[B(X,{name:"check-circle",size:14}),U(S(c.local),1)])]))),128))])])])]),u("div",$d,[u("h2",null,S(_(C).landing.faqTitle),1),u("p",Nd,S(_(C).landing.faqSub),1),u("div",Dd,[(R(!0),P(oe,null,Re(_(C).landing.faq,c=>(R(),P("details",{key:c.q,class:"faq-item"},[u("summary",null,[U(S(c.q),1),B(X,{name:"chevron-down",size:15})]),u("p",null,S(c.a),1)]))),128))])]),u("footer",Fd,S(_(C).landing.footer),1)]))}}),Ld=lt(Vd,[["__scopeId","data-v-63ba655a"]]),Hd=Ue({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,n=ne(()=>C.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(s,o)=>(R(),P("span",{class:_e(["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=se(!1);async function r(){n.status.installCommand&&(await navigator.clipboard.writeText(n.status.installCommand),i.value=!0,clearTimeout(o),o=window.setTimeout(()=>{i.value=!1},2e3))}return(l,a)=>(R(),P("article",{class:_e(["dependency-row",`is-${e.status.state}`])},[u("div",jd,[u("div",Ud,[u("strong",null,S(e.status.name),1),B(Hd,{state:e.status.state},null,8,["state"]),e.status.version?(R(),P("span",Bd,S(e.status.version),1)):ee("",!0)]),u("p",Kd,S(e.status.description),1)]),u("div",zd,[e.status.installCommand&&(!e.status.installed||e.status.state==="outdated")?(R(),P("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>s("install",e.status))},S(_(C).doctor.install),9,Wd)):ee("",!0),e.status.installCommand?(R(),P("button",{key:1,class:"ghost",onClick:r},S(i.value?_(C).install.copied:_(C).doctor.copy),1)):ee("",!0),e.status.installed&&e.status.uninstallCommand?(R(),P("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>s("uninstall",e.status))},S(_(C).doctor.uninstall),9,Gd)):ee("",!0)])],2))}}),Jd=lt(qd,[["__scopeId","data-v-4d63d8a6"]]),Yd=Ue({__name:"LogStream",props:{logs:{}},setup(e){const t=e,n=se(),s=se(!0);jt(()=>[...t.logs],async()=>{s.value&&(await Ln(),n.value&&(n.value.scrollTop=n.value.scrollHeight))});function o(){const i=n.value;i&&(s.value=i.scrollHeight-i.scrollTop-i.clientHeight<24)}return(i,r)=>(R(),P("div",{ref_key:"container",ref:n,class:"log-stream",onScroll:o},[(R(!0),P(oe,null,Re(e.logs,(l,a)=>(R(),P("p",{key:`${a}-${l}`},S(l),1))),128))],544))}}),Qd=lt(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=vl(),s=se(!1),o=se(!1),i=se(!1),r=se(!1),l=se(!1);async function a(){try{await navigator.clipboard.writeText(C.settings.startCommand),l.value=!0,setTimeout(()=>{l.value=!1},2e3)}catch{}}async function d(){if(window.confirm(C.settings.stopConfirm)){r.value=!0;try{await Ce.serviceStop(),i.value=!0,t.connected=!1}catch(F){n.error=F instanceof Error?F.message:"停止服务失败"}finally{r.value=!1}}}const c=ne(()=>t.installSession.state==="progress"),g=ne(()=>t.statuses.length?Math.round(t.readyCount/t.statuses.length*100):0);function b(F){c.value||!F.installCommand||F.state==="outdated"&&!window.confirm(`${F.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(F.id,F.installCommand)}function y(F){if(c.value||!F.uninstallCommand)return;const k=`确定要卸载 ${F.name} 吗?
32
- 卸载后相关转换功能将不可用。`;window.confirm(k)&&t.startUninstall(F.id,F.uninstallCommand)}async function M(){s.value=!0;try{const F=await Ce.selectOutputDir();F.selected&&F.path&&(n.form.outputDir=F.path)}catch(F){n.error=F instanceof Error?F.message:"无法打开目录选择器"}finally{s.value=!1}}async function $(){try{await n.save(),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(F,k)=>(R(),P("section",Xd,[u("h1",Zd,S(_(C).settings.title),1),k[13]||(k[13]=u("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),u("div",eh,[u("div",th,[u("div",null,[u("h2",null,S(_(C).settings.service),1),k[5]||(k[5]=u("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),i.value?ee("",!0):(R(),P("span",nh,[k[6]||(k[6]=u("span",{class:"dot"},null,-1)),U(S(_(C).settings.serviceRunning),1)]))]),i.value?(R(),P("div",rh,[u("p",null,[B(X,{name:"check-circle",size:15}),u("strong",null,S(_(C).settings.serviceStopped),1)]),u("p",lh,S(_(C).settings.stoppedGuide),1),u("div",ah,[u("code",null,[k[8]||(k[8]=u("span",{class:"prompt"},"$",-1)),U(S(_(C).settings.startCommand),1)]),u("button",{class:"ghost",type:"button",onClick:a},S(l.value?"已复制":"复制"),1)])])):(R(),P("div",sh,[k[7]||(k[7]=u("p",{class:"muted stop-desc"},[U("停止后转换功能不可用。已开启的开机自启会在下次重启电脑时自动运行服务;重新启动请在终端执行 "),u("code",null,"converter start"),U("。")],-1)),u("button",{class:"ghost danger stop-btn",type:"button","data-testid":"stop-service",disabled:r.value,onClick:d},[r.value?(R(),P("span",ih)):ee("",!0),U(" "+S(r.value?"停止中…":_(C).settings.stopService),1)],8,oh)]))]),u("div",ch,[u("div",uh,[u("div",null,[u("h2",null,S(_(C).doctor.title),1),k[9]||(k[9]=u("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),u("button",{class:"ghost recheck",disabled:_(t).loading,onClick:k[0]||(k[0]=E=>_(t).recheck())},[_(t).loading?(R(),P("span",dh)):(R(),nt(X,{key:0,name:"refresh",size:15})),U(" "+S(_(C).doctor.recheck),1)],8,fh)]),u("div",hh,[u("div",ph,[u("strong",null,S(_(t).readyCount)+" / "+S(_(t).statuses.length),1),k[10]||(k[10]=u("span",null,"个引擎可用",-1))]),u("div",gh,[u("i",{style:hs({width:`${g.value}%`})},null,4)])]),_(t).error?(R(),P("p",mh,S(_(t).error),1)):ee("",!0),u("div",vh,[(R(!0),P(oe,null,Re(_(t).statuses,E=>(R(),nt(Jd,{key:E.id,status:E,installing:c.value,onInstall:b,onUninstall:y},null,8,["status","installing"]))),128))]),_(t).installSession.state!=="idle"?(R(),P("div",yh,[u("h3",null,S(_(C).doctor.logs),1),u("p",{class:_e(["session-state",_(t).installSession.state])},[_(t).installSession.state==="progress"?(R(),P("span",_h)):ee("",!0),U(" "+S(_(t).installSession.state==="progress"?_(C).doctor.sessionRunning:_(t).installSession.state==="done"?_(C).doctor.sessionDone:_(C).doctor.sessionFailed),1)],2),B(Qd,{logs:_(t).installSession.logs},null,8,["logs"])])):ee("",!0)]),u("form",{class:"panel",onSubmit:to($,["prevent"])},[u("div",bh,[u("h2",null,S(_(C).settings.preferences),1)]),u("label",wh,[u("span",null,S(_(C).settings.outputDir),1),u("div",Sh,[Pt(u("input",{"onUpdate:modelValue":k[1]||(k[1]=E=>_(n).form.outputDir=E),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,_(n).form.outputDir]]),u("button",{class:"ghost",type:"button",disabled:s.value,onClick:M},[s.value?(R(),P("span",Ch)):(R(),nt(X,{key:0,name:"folder",size:14})),U(" "+S(s.value?"打开中…":_(C).settings.chooseDir),1)],8,xh)])]),u("label",kh,[u("span",null,S(_(C).settings.concurrency),1),u("div",Eh,[Pt(u("input",{"onUpdate:modelValue":k[2]||(k[2]=E=>_(n).form.concurrency=E),type:"number",min:"1",max:"4"},null,512),[[Ut,_(n).form.concurrency,void 0,{number:!0}]]),k[11]||(k[11]=u("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),u("label",Ah,[u("span",null,S(_(C).settings.language),1),Pt(u("select",{"onUpdate:modelValue":k[3]||(k[3]=E=>_(n).form.language=E),disabled:""},[...k[12]||(k[12]=[u("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Co,_(n).form.language]])]),_(n).error?(R(),P("p",Rh,S(_(n).error),1)):o.value?(R(),P("p",Th,[B(X,{name:"check-circle",size:14}),U(S(_(C).settings.saved),1)])):ee("",!0),u("div",Oh,[u("button",{class:"ghost",type:"button",onClick:k[4]||(k[4]=E=>_(n).load())},S(_(C).common.cancel),1),u("button",{class:"primary",disabled:_(n).saving,type:"submit"},[_(n).saving?(R(),P("span",Ih)):ee("",!0),U(" "+S(_(n).saving?"保存中…":_(C).settings.save),1)],8,Ph)])],32)]))}}),$h=lt(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 $i(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 Ni={jpg:"jpg",jpeg:"jpg"};function Fh(e,t){return(Ni[e]??e)===(Ni[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 Di(e,t){var s;const n=t.toLowerCase();return(s=e.find(o=>o.fromFormats.includes(n)))==null?void 0:s.category}function Fi(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=Ue({__name:"InstallGuide",setup(e){const t=se(Po()),n=ne(()=>yl(t.value)),s=se(!1);async function o(){try{await navigator.clipboard.writeText(n.value),s.value=!0,setTimeout(()=>{s.value=!1},2e3)}catch{}}return(i,r)=>(R(),P("div",Uh,[u("div",Bh,[u("button",{type:"button",class:_e({active:t.value==="macos"}),role:"tab","aria-selected":t.value==="macos",onClick:r[0]||(r[0]=l=>t.value="macos")},S(_(C).install.macos),11,Kh),u("button",{type:"button",class:_e({active:t.value==="windows"}),role:"tab","aria-selected":t.value==="windows",onClick:r[1]||(r[1]=l=>t.value="windows")},S(_(C).install.windows),11,zh)]),u("ol",Wh,[u("li",null,[r[2]||(r[2]=u("span",{class:"step-no"},"1",-1)),u("div",null,[u("strong",null,S(_(C).install.step1),1),u("p",Gh,S(t.value==="macos"?_(C).install.macosTerminal:_(C).install.windowsTerminal),1)])]),u("li",null,[r[4]||(r[4]=u("span",{class:"step-no"},"2",-1)),u("div",qh,[u("strong",null,S(_(C).install.step2),1),u("div",Jh,[u("code",Yh,[r[3]||(r[3]=u("span",{class:"prompt"},"$",-1)),U(S(n.value),1)]),u("button",{class:"ghost copy",type:"button",onClick:o},[B(X,{name:s.value?"check-circle":"copy",size:14},null,8,["name"]),U(" "+S(s.value?_(C).install.copied:_(C).install.copy),1)])])])]),u("li",null,[r[5]||(r[5]=u("span",{class:"step-no"},"3",-1)),u("div",null,[u("strong",null,S(_(C).install.step3),1),u("p",Qh,S(_(C).install.alreadyInstalled),1)])])])]))}}),Zh=lt(Xh,[["__scopeId","data-v-c9dce0bd"]]),ep={class:"daemon-gate","data-testid":"daemon-gate"},tp={key:0,class:"gate-state checking"},np={key:1,class:"gate-state online","data-testid":"gate-online"},sp={class:"gate-icon ok"},op={class:"actions"},ip=["href"],rp={key:2,class:"gate-state offline","data-testid":"gate-offline"},lp={class:"gate-icon off"},ap={class:"start-block"},cp=["disabled"],up={key:0,class:"spinner",style:{width:"14px",height:"14px","border-color":"#ffffff88","border-top-color":"#fff"}},fp={class:"manual"},dp={class:"manual-label"},hp={class:"manual-row"},pp={class:"manual-hint"},gp={class:"actions"},mp=["href"],vp={class:"install-collapsed"},yp=Ue({__name:"DaemonGate",setup(e){const t=se("checking"),n=se(!1),s=se(0),o=se(!1);let i;const r=se(Po()),l=ne(()=>r.value==="windows"),a=se(!1);async function d(){try{await navigator.clipboard.writeText("converter start"),a.value=!0,setTimeout(()=>{a.value=!1},2e3)}catch{}}async function c(){t.value="checking",t.value=await Mi()?"online":"offline"}function g(){n.value=!0,s.value=0;const y=()=>{s.value+=1,Mi(1200).then(M=>{M?(n.value=!1,b()):s.value<10?i=window.setTimeout(y,3e3):n.value=!1})};window.location.href="converter://start",y()}function b(){t.value="online"}return pn(()=>{c()}),_s(()=>{i!==void 0&&clearTimeout(i)}),(y,M)=>(R(),P("div",ep,[t.value==="checking"?(R(),P("div",tp,[M[1]||(M[1]=u("span",{class:"spinner big","aria-hidden":"true"},null,-1)),u("p",null,S(_(C).gate.checking),1)])):t.value==="online"?(R(),P("div",np,[u("div",sp,[B(X,{name:"check-circle",size:26})]),u("p",null,S(_(C).gate.online),1),M[2]||(M[2]=u("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),u("div",op,[u("a",{class:"btn primary",href:_(ao),target:"_blank",rel:"noopener"},[U(S(_(C).gate.open),1),B(X,{name:"arrow-right",size:15})],8,ip),u("button",{class:"ghost",type:"button",onClick:c},[B(X,{name:"refresh",size:14}),U(S(_(C).gate.retry),1)])])])):(R(),P("div",rp,[u("div",lp,[B(X,{name:"alert-circle",size:26})]),u("p",null,S(_(C).gate.offline),1),u("div",ap,[l.value?(R(),P("button",{key:0,class:"btn primary start-btn",type:"button",disabled:n.value,onClick:g},[n.value?(R(),P("span",up)):(R(),nt(X,{key:1,name:"zap",size:15})),U(" "+S(n.value?_(C).gate.starting:_(C).gate.oneClickStart),1)],8,cp)):ee("",!0),u("div",fp,[u("span",dp,S(_(C).gate.manualTitle),1),u("div",hp,[M[3]||(M[3]=u("code",null,[u("span",{class:"prompt"},"$"),U("converter start")],-1)),u("button",{class:"copy",type:"button",onClick:d},[B(X,{name:a.value?"check-circle":"copy",size:13},null,8,["name"]),U(S(a.value?"已复制":"复制"),1)])]),u("p",pp,S(_(C).gate.manualHint),1)]),u("div",gp,[u("button",{class:"ghost",type:"button",onClick:c},[B(X,{name:"refresh",size:14}),U(S(_(C).gate.retry),1)]),u("a",{class:"ghost direct-link",href:_(ao),target:"_blank",rel:"noopener"},S(_(C).gate.open),9,mp)])]),u("div",vp,[u("button",{class:"install-toggle",type:"button",onClick:M[0]||(M[0]=$=>o.value=!o.value)},[U(S(_(C).gate.notInstalledTitle),1),B(X,{name:"chevron-down",size:14,class:_e({open:o.value})},null,8,["class"])]),o.value?(R(),nt(Zh,{key:0})):ee("",!0)])]))]))}}),_p=lt(yp,[["__scopeId","data-v-41294585"]]),bp="/gh-qrcode.png",wp={class:"follow-gate","data-testid":"follow-gate"},Sp={class:"gate-right"},xp={class:"code-row"},Cp={"data-testid":"pair-code"},kp={key:0,class:"gate-error"},Ep=Ue({__name:"FollowGate",props:{pairCode:{}},emits:["activated"],setup(e,{emit:t}){const n=e,s=t,o=ne(()=>n.pairCode??""),i=se(!1),r=se("");let l;async function a(){try{await navigator.clipboard.writeText(o.value),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}async function d(){const b=n.pairCode;if(b)try{const y=await fetch(`https://duduer.com/api/wx/activate/${encodeURIComponent(b)}`);if(!y.ok)return;const M=await y.json();M.status==="active"&&M.token?(g(),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 g(){l!==void 0&&(clearInterval(l),l=void 0)}return pn(()=>{c()}),_s(()=>{g()}),(b,y)=>(R(),P("div",wp,[y[5]||(y[5]=u("div",{class:"gate-left"},[u("img",{class:"gh-qrcode",src:bp,alt:"公众号二维码"}),u("p",{class:"qr-hint"},"微信扫码,关注公众号")],-1)),u("div",Sp,[y[1]||(y[1]=u("h2",null,"免费解锁全部功能",-1)),y[2]||(y[2]=u("p",{class:"gate-desc"},[U("关注公众号并回复你的绑定码,即可"),u("strong",null,"永久免费"),U("使用全部转换功能")],-1)),u("div",xp,[y[0]||(y[0]=u("span",{class:"code-label"},"你的绑定码",-1)),u("code",Cp,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)])]),y[3]||(y[3]=u("ol",{class:"gate-steps"},[u("li",null,[u("span",null,"1"),U("微信扫描左侧二维码,关注公众号")]),u("li",null,[u("span",null,"2"),U("在公众号里发送你的绑定码(点击上方「复制」)")]),u("li",null,[u("span",null,"3"),U("收到「绑定成功」回复后,本页自动解锁")])],-1)),r.value?(R(),P("p",kp,[B(X,{name:"alert-circle",size:14}),U(S(r.value),1)])):ee("",!0),y[4]||(y[4]=u("p",{class:"waiting"},[u("span",{class:"spinner tiny"}),U("正在等待绑定完成,每 5 秒自动检测…")],-1))])]))}}),Ap=lt(Ep,[["__scopeId","data-v-0fe4c6f1"]]),Rp={class:"workbench","data-testid":"workbench"},Tp={class:"page-title"},Op={class:"page-subtitle"},Pp={key:2,class:"tabbed"},Ip={class:"tab-rail"},Mp=["data-testid","onClick"],$p={class:"tab-label"},Np={key:0,class:"tab-count"},Dp={class:"tab-panel panel"},Fp={class:"drop-icon"},Vp={class:"drop-title"},Lp={class:"muted drop-hint"},Hp={class:"drop-compact-text"},jp={class:"drop-actions"},Up=["placeholder"],Bp=["disabled"],Kp=["disabled"],zp={key:1,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},Wp=["accept"],Gp={key:0,class:"hint-alert"},qp={class:"target-bar"},Jp={class:"section-title"},Yp={key:0,class:"target-chips"},Qp=["onClick"],Xp={key:1,class:"hint-alert"},Zp={key:2,class:"hint-alert"},eg={class:"table-wrap"},tg={class:"file-table","data-testid":"file-table"},ng={class:"cell-file"},sg={class:"cell-path"},og={class:"cell-size"},ig={class:"cell-status"},rg={class:"cell-actions"},lg={class:"cell-file"},ag={class:"file-icon"},cg=["title"],ug={class:"chip ext"},fg={class:"cell-path"},dg=["title","onClick"],hg={class:"cell-size muted"},pg={class:"cell-status"},gg=["title"],mg={key:0,class:"spinner tiny"},vg={key:1},yg={key:2,class:"row-error"},_g={class:"cell-actions"},bg=["onClick"],wg=["onClick"],Sg=["onClick"],xg=["title","onClick"],Cg={key:0,class:"params"},kg={class:"section-title"},Eg={class:"params-grid"},Ag={class:"param-label"},Rg={key:1,class:"required"},Tg=["onUpdate:modelValue","data-testid"],Og=["value"],Pg=["onUpdate:modelValue","min","max","data-testid"],Ig={key:2,class:"watermark-editor"},Mg=["onUpdate:modelValue","data-testid"],$g=["disabled"],Ng=["onUpdate:modelValue","type","data-testid"],Dg={key:4,class:"param-description"},Fg={class:"summary"},Vg={class:"batch-actions"},Lg=["disabled"],Hg={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},jg=Ue({__name:"WorkbenchView",setup(e){const t=jn(),n=To(),s=sn({checking:t,activated:!0}),o=Oo(),i=se(ln[0].key),r=sn(Object.fromEntries(ln.map(h=>[h.key,{rows:[],selected:null,paramValues:{}}]))),l=se(""),a=h=>{Ce.wxActivate(h).then(()=>{s.activated=!0}).catch(()=>{})},d=ne(()=>ln.find(h=>h.key===i.value)),c=ne(()=>r[i.value]),g=ne(()=>bl(n.features,d.value)),b=ne(()=>$i(n.features,d.value)),y=ne(()=>{const h=Lh(g.value,c.value.rows.map(p=>p.ext)),v=c.value.rows[0]?Di(n.features,c.value.rows[0].ext):void 0;return Hh(h,v)}),M=ne(()=>{var h;return c.value.selected?((h=n.byKey.get(c.value.selected.conversionKey))==null?void 0:h.params)??[]:[]}),$=ne(()=>M.value.filter(h=>h.required&&String(c.value.paramValues[h.key]??"").trim()==="")),F=ne(()=>{var h;return((h=c.value.selected)==null?void 0:h.conversionKey)==="pdf-merge"});jt(()=>[i.value,y.value.map(h=>`${h.conversionKey}:${h.format}`).join("|")],()=>{const h=c.value.selected,v=h!==null&&y.value.some(p=>p.conversionKey===h.conversionKey&&p.format===h.format);c.value.selected=v?h:y.value[0]??null,k()});function k(){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 E(h){const v=c.value.selected;return(v==null?void 0:v.conversionKey)===h.conversionKey&&(v==null?void 0:v.format)===h.format}function N(h){c.value.selected=h,k()}function V(){const h={};for(const v of 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 x;if(h.kind!=="operate")return h.format;const p=((x=n.byKey.get(h.conversionKey))==null?void 0:x.toFormats)??[];return p.includes(v.ext)?v.ext:p[0]??v.ext}const he=se(""),te=se(!1),Y=se(!1),q=se(""),fe=se(),Se=se();function Te(h){return h.split(/[\\/]/).pop()??h}function Me(h){return _l[Di(n.features,h)??"file"]??"file"}function Ct(h){const v=ln.find(p=>$i(n.features,p).has(h));return(v==null?void 0:v.label)??"其他"}function Ge(h,v,p){const x=h.trim();if(!x)return;const T=Vh(x);if(!b.value.has(T)){q.value=C.workbench.wrongTab.replace("{name}",Te(x)).replace("{tab}",`「${d.value.label}」`).replace("对应标签页",`「${Ct(T)}」标签页`);return}const I=p??Te(x);if(c.value.rows.some(K=>K.path===x||v!==void 0&&K.name===I&&K.size===v)){q.value=`${I} ${C.workbench.fileDuplicate}`;return}q.value="",c.value.rows.push({path:x,ext:T,name:I,status:"pending",...v!==void 0?{size:v}:{}})}function pe(){Ge(he.value),he.value=""}async function Q(h){if(h.length){Y.value=!0,q.value="";try{for(const v of h){const p=v.path;if(p){Ge(p,v.size,v.name);continue}if(c.value.rows.some(T=>T.name===v.name&&T.size===v.size)){q.value=`${v.name} ${C.workbench.fileDuplicate}`;continue}const x=await Ii(v);Ge(x.inputPath,x.size,x.originalName)}}catch(v){q.value=v instanceof Error?v.message:"文件导入失败"}finally{Y.value=!1,fe.value&&(fe.value.value="")}}}function re(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 at(h){const v=Array.from(h.target.files??[])[0],p=M.value.find(x=>x.control==="file");if(!(!v||!p)){Y.value=!0;try{const x=v.path;if(x)c.value.paramValues[p.key]=x;else{const T=await Ii(v);c.value.paramValues[p.key]=T.inputPath}}catch(x){q.value=x instanceof Error?x.message:"水印图片选择失败"}finally{Y.value=!1,Se.value&&(Se.value.value="")}}}const $e=se(!1),ke=ne(()=>c.value.rows.filter(h=>h.status==="pending").length),Nt=ne(()=>c.value.rows.some(h=>h.status==="success"||h.status==="failed")),ct=ne(()=>ke.value>0&&c.value.selected!==null&&$.value.length===0&&!$e.value);async function Xe(h){const v=c.value.selected;if(!(!v||F.value)){h.status="converting",h.targetFormat=H(v,h),h.progress=0,h.error=void 0,h.output=void 0;try{const p=await Ce.convert({inputPath:h.path,targetFormat:h.targetFormat,conversionKey:v.conversionKey,options:V()});h.taskId=p.taskId}catch(p){h.status="failed",h.error=p instanceof Error?p.message:"提交失败"}}}async function He(){const h=c.value.selected,v=c.value.rows.filter(p=>p.status==="pending");if(!(!h||!v.length||$.value.length)){if($e.value=!0,h.conversionKey==="pdf-merge"){const p=v.map(x=>x.path);for(const x of v)x.status="converting",x.targetFormat=H(h,x),x.error=void 0;try{const x=await Ce.convert({inputPath:p[0],targetFormat:H(h,v[0]),conversionKey:h.conversionKey,options:{...V(),inputs:p}});for(const T of v)T.taskId=x.taskId}catch(x){const T=x instanceof Error?x.message:"提交失败";for(const I of v)I.status="failed",I.error=T}}else for(const p of v)await Xe(p);$e.value=!1}}jt(()=>o.tasks,h=>{var p;const v=new Map(h.map(x=>[x.taskId,x]));for(const x of ln)for(const T of r[x.key].rows){if(!T.taskId)continue;const I=v.get(T.taskId);I&&(I.status==="success"?(T.status="success",T.output=I.output,T.progress=100):I.status==="failed"?(T.status="failed",T.error=((p=I.error)==null?void 0:p.message)??"转换失败"):(T.status="converting",T.progress=I.progress??T.progress))}},{deep:!0});function A(h){c.value.rows.splice(h,1)}function j(){c.value.rows=c.value.rows.filter(h=>h.status==="pending"||h.status==="converting")}async function D(h){try{await Ce.revealPath(h.path)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}async function G(h){if(h.taskId)try{await Ce.revealTask(h.taskId)}catch(v){q.value=v instanceof Error?v.message:"打开目录失败"}}function f(h){return h==="pending"?C.workbench.statusPending:h==="converting"?C.workbench.statusRunning:h==="success"?C.workbench.statusSuccess:C.workbench.statusFailed}const m=ne(()=>[...b.value].slice(0,10).map(h=>h.toUpperCase()).join(" / ")),w=ne(()=>[...b.value].map(h=>`.${h}`).join(","));return pn(()=>{t&&Ce.wxStatus().then(h=>{s.activated=h.activated,l.value=h.pairCode,s.checking=!1}).catch(()=>{s.checking=!1})}),(h,v)=>(R(),P("section",Rp,[u("h1",Tp,S(_(C).workbench.title),1),u("p",Op,S(_(C).workbench.subtitle),1),_(t)?s.activated?(R(),P("div",Pp,[u("aside",Ip,[(R(!0),P(oe,null,Re(_(ln),p=>(R(),P("button",{key:p.key,type:"button",class:_e(["tab-btn",{active:i.value===p.key}]),"data-testid":`tab-${p.key}`,onClick:x=>{i.value=p.key,q.value=""}},[B(X,{name:p.icon,size:17},null,8,["name"]),u("span",$p,S(p.label),1),r[p.key].rows.length?(R(),P("span",Np,S(r[p.key].rows.length),1)):ee("",!0)],10,Mp))),128))]),u("div",Dp,[u("div",{class:_e(["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?(R(),P(oe,{key:1},[B(X,{name:"upload",size:15}),u("span",Hp,S(_(C).workbench.dropCompact.replace("{tab}",d.value.label)),1)],64)):(R(),P(oe,{key:0},[u("span",Fp,[B(X,{name:d.value.icon,size:30},null,8,["name"])]),u("strong",Vp,S(_(C).workbench.dropTitle.replace("{tab}",d.value.label)),1),u("p",Lp,S(_(C).workbench.dropHint.replace("{exts}",m.value)),1)],64)),u("div",jp,[Pt(u("input",{"onUpdate:modelValue":v[0]||(v[0]=p=>he.value=p),type:"text",placeholder:_(C).workbench.pastePlaceholder,onKeydown:zc(pe,["enter"])},null,40,Up),[[Ut,he.value]]),u("button",{class:"ghost",type:"button",disabled:!he.value.trim(),onClick:pe},[B(X,{name:"plus",size:14}),U(S(_(C).workbench.addPath),1)],8,Bp),u("button",{class:"primary",type:"button",disabled:Y.value,onClick:v[1]||(v[1]=p=>{var x;return(x=fe.value)==null?void 0:x.click()})},[Y.value?(R(),P("span",zp)):(R(),nt(X,{key:0,name:"file",size:14})),U(" "+S(Y.value?"导入中…":_(C).workbench.addFile),1)],8,Kp)]),u("input",{ref_key:"fileInput",ref:fe,type:"file",multiple:"",hidden:"",accept:w.value,onChange:re},null,40,Wp)],34),q.value?(R(),P("p",Gp,[B(X,{name:"alert-circle",size:15}),U(S(q.value),1)])):ee("",!0),c.value.rows.length?(R(),P(oe,{key:1},[u("div",qp,[u("span",Jp,S(_(C).workbench.convertTo),1),y.value.length?(R(),P("div",Yp,[(R(!0),P(oe,null,Re(y.value,p=>(R(),P("button",{key:`${p.conversionKey}:${p.format}`,type:"button",class:_e(["target-chip",{active:E(p)}]),"data-testid":"target-chip",onClick:x=>N(p)},S(_(Fi)(y.value,p)),11,Qp))),128))])):g.value.some(p=>p.available)?(R(),P("p",Xp,[B(X,{name:"alert-circle",size:15}),U(S(_(C).workbench.noCommonTargets),1)])):(R(),P("p",Zp,[B(X,{name:"alert-circle",size:15}),U(S(_(C).workbench.noTools),1)]))]),u("div",eg,[u("table",tg,[u("thead",null,[u("tr",null,[u("th",ng,S(_(C).workbench.tableFile),1),u("th",sg,S(_(C).workbench.tablePath),1),u("th",og,S(_(C).workbench.tableSize),1),u("th",ig,S(_(C).workbench.tableStatus),1),u("th",rg,S(_(C).workbench.tableActions),1)])]),u("tbody",null,[(R(!0),P(oe,null,Re(c.value.rows,(p,x)=>(R(),P("tr",{key:p.path,"data-testid":"file-row"},[u("td",lg,[u("span",ag,[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,cg),u("span",ug,S(p.ext?p.ext.toUpperCase():"?"),1)]),u("td",fg,[u("button",{class:"path-link",type:"button","data-testid":"row-path",title:p.path,onClick:T=>D(p)},S(p.path),9,dg)]),u("td",hg,S(p.size!==void 0?_(jh)(p.size):"—"),1),u("td",pg,[u("span",{class:_e(["row-status",p.status]),title:p.error??""},[p.status==="converting"?(R(),P("span",mg)):ee("",!0),U(" "+S(f(p.status))+" ",1),p.status==="converting"&&p.progress!==void 0?(R(),P("em",vg,S(p.progress)+"%",1)):ee("",!0),p.status==="failed"&&p.error?(R(),P("em",yg,S(p.error),1)):ee("",!0)],10,gg)]),u("td",_g,[p.status==="pending"&&!F.value?(R(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:T=>Xe(p)},S(_(C).workbench.convert),9,bg)):ee("",!0),p.status==="failed"&&!F.value?(R(),P("button",{key:1,class:"ghost tiny",type:"button",onClick:T=>Xe(p)},S(_(C).workbench.retry),9,wg)):ee("",!0),p.status==="success"?(R(),P("button",{key:2,class:"ghost tiny",type:"button",onClick:T=>G(p)},S(_(C).workbench.openFolder),9,Sg)):ee("",!0),u("button",{class:"icon-btn",type:"button",title:_(C).workbench.remove,onClick:T=>A(x)},[B(X,{name:"x",size:14})],8,xg)])]))),128))])])]),M.value.length?(R(),P("div",Cg,[u("div",kg,S(_(C).workbench.paramsTitle),1),u("div",Eg,[(R(!0),P(oe,null,Re(M.value,p=>(R(),P("label",{key:p.key,class:_e(["param-field",{wide:p.control==="file"}])},[u("span",Ag,[U(S(p.label),1),p.unit?(R(),P(oe,{key:0},[U("("+S(p.unit)+")",1)],64)):ee("",!0),p.required?(R(),P("i",Rg,"*")):ee("",!0)]),p.control==="preset"?Pt((R(),P("select",{key:0,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,"data-testid":`param-${p.key}`},[(R(!0),P(oe,null,Re(p.presets??[],x=>(R(),P("option",{key:x.value,value:x.value},S(x.label),9,Og))),128))],8,Tg)),[[Co,c.value.paramValues[p.key]]]):p.control==="number"?Pt((R(),P("input",{key:1,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:"number",min:p.min,max:p.max,placeholder:"不调整","data-testid":`param-${p.key}`},null,8,Pg)),[[Ut,c.value.paramValues[p.key],void 0,{number:!0}]]):p.control==="file"?(R(),P("div",Ig,[Pt(u("input",{"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${p.key}`},null,8,Mg),[[Ut,c.value.paramValues[p.key],void 0,{trim:!0}]]),u("button",{class:"ghost",type:"button",disabled:Y.value,onClick:v[4]||(v[4]=x=>{var T;return(T=Se.value)==null?void 0:T.click()})},S(_(C).workbench.chooseFile),9,$g),u("input",{ref_for:!0,ref_key:"watermarkInput",ref:Se,type:"file",hidden:"",accept:"image/*",onChange:at},null,544)])):Pt((R(),P("input",{key:3,"onUpdate:modelValue":x=>c.value.paramValues[p.key]=x,type:p.control==="password"?"password":"text","data-testid":`param-${p.key}`},null,8,Ng)),[[Hc,c.value.paramValues[p.key],void 0,{trim:!0}]]),p.description?(R(),P("small",Dg,S(p.description),1)):ee("",!0)],2))),128))])])):ee("",!0),u("div",{class:_e(["batch-bar",{disabled:!ct.value}])},[u("span",Fg,[v[5]||(v[5]=U(" 待转换 ",-1)),u("strong",null,S(ke.value),1),U(" 个 → "+S(c.value.selected?_(Fi)(y.value,c.value.selected):"—"),1)]),u("div",Vg,[Nt.value?(R(),P("button",{key:0,class:"ghost",type:"button",onClick:j},"清除已完成")):ee("",!0),u("button",{class:"primary batch",type:"button","data-testid":"batch-convert",disabled:!ct.value,onClick:He},[$e.value?(R(),P("span",Hg)):ee("",!0),U(" "+S($e.value?"转换中…":_(C).workbench.batchConvertN.replace("{n}",String(ke.value))),1)],8,Lg)])],2)],64)):ee("",!0)])])):(R(),nt(Ap,{key:1,"pair-code":l.value,"data-testid":"follow-gate",onActivated:a},null,8,["pair-code"])):(R(),nt(_p,{key:0}))]))}}),Ug=lt(jg,[["__scopeId","data-v-49f4174d"]]),Bg=af({history:ju(),routes:[{path:"/",name:"landing",component:Ld},{path:"/workbench",name:"workbench",component:Ug},{path:"/history",name:"history",component:qf},{path:"/settings",name:"settings",component:$h},{path:"/:pathMatch(.*)*",redirect:"/"}]});qc(yf).use(Qc()).use(Bg).mount("#app");