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