astrbot_plugin_imagestudio/web/assets/index-B2NiW3rX.js

50 行
238 KiB
JavaScript

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

var sf=Object.defineProperty;var uf=(e,t,l)=>t in e?sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var Xi=(e,t,l)=>uf(e,typeof t!="symbol"?t+"":t,l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function l(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=l(a);fetch(a.href,s)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Pr(e){const t=Object.create(null);for(const l of e.split(","))t[l]=1;return l=>l in t}const Te={},_n=[],Jt=()=>{},_s=()=>!1,ri=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ai=e=>e.startsWith("onUpdate:"),je=Object.assign,Sr=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},cf=Object.prototype.hasOwnProperty,we=(e,t)=>cf.call(e,t),Y=Array.isArray,In=e=>ul(e)==="[object Map]",si=e=>ul(e)==="[object Set]",qa=e=>ul(e)==="[object Date]",oe=e=>typeof e=="function",De=e=>typeof e=="string",Xt=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Is=e=>(ke(e)||oe(e))&&oe(e.then)&&oe(e.catch),Cs=Object.prototype.toString,ul=e=>Cs.call(e),df=e=>ul(e).slice(8,-1),xs=e=>ul(e)==="[object Object]",$r=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ui=e=>{const t=Object.create(null);return(l=>t[l]||(t[l]=e(l)))},ff=/-\w/g,qt=ui(e=>e.replace(ff,t=>t.slice(1).toUpperCase())),pf=/\B([A-Z])/g,Eo=ui(e=>e.replace(pf,"-$1").toLowerCase()),Ps=ui(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zi=ui(e=>e?`on${Ps(e)}`:""),Yt=(e,t)=>!Object.is(e,t),Hl=(e,...t)=>{for(let l=0;l<e.length;l++)e[l](...t)},Ss=(e,t,l,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:l})},ci=e=>{const t=parseFloat(e);return isNaN(t)?e:t},mf=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let La;const di=()=>La||(La=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ge(e){if(Y(e)){const t={};for(let l=0;l<e.length;l++){const r=e[l],a=De(r)?bf(r):Ge(r);if(a)for(const s in a)t[s]=a[s]}return t}else if(De(e)||ke(e))return e}const vf=/;(?![^(]*\))/g,gf=/:([^]+)/,hf=/\/\*[^]*?\*\//g;function bf(e){const t={};return e.replace(hf,"").split(vf).forEach(l=>{if(l){const r=l.split(gf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function X(e){let t="";if(De(e))t=e;else if(Y(e))for(let l=0;l<e.length;l++){const r=X(e[l]);r&&(t+=r+" ")}else if(ke(e))for(const l in e)e[l]&&(t+=l+" ");return t.trim()}const yf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",wf=Pr(yf);function $s(e){return!!e||e===""}function kf(e,t){if(e.length!==t.length)return!1;let l=!0;for(let r=0;l&&r<e.length;r++)l=cl(e[r],t[r]);return l}function cl(e,t){if(e===t)return!0;let l=qa(e),r=qa(t);if(l||r)return l&&r?e.getTime()===t.getTime():!1;if(l=Xt(e),r=Xt(t),l||r)return e===t;if(l=Y(e),r=Y(t),l||r)return l&&r?kf(e,t):!1;if(l=ke(e),r=ke(t),l||r){if(!l||!r)return!1;const a=Object.keys(e).length,s=Object.keys(t).length;if(a!==s)return!1;for(const u in e){const f=e.hasOwnProperty(u),m=t.hasOwnProperty(u);if(f&&!m||!f&&m||!cl(e[u],t[u]))return!1}}return String(e)===String(t)}function _f(e,t){return e.findIndex(l=>cl(l,t))}const Ms=e=>!!(e&&e.__v_isRef===!0),g=e=>De(e)?e:e==null?"":Y(e)||ke(e)&&(e.toString===Cs||!oe(e.toString))?Ms(e)?g(e.value):JSON.stringify(e,As,2):String(e),As=(e,t)=>Ms(t)?As(e,t.value):In(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((l,[r,a],s)=>(l[er(r,s)+" =>"]=a,l),{})}:si(t)?{[`Set(${t.size})`]:[...t.values()].map(l=>er(l))}:Xt(t)?er(t):ke(t)&&!Y(t)&&!xs(t)?String(t):t,er=(e,t="")=>{var l;return Xt(e)?`Symbol(${(l=e.description)!=null?l:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ot;class If{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&&ot&&(ot.active?(this.parent=ot,this.index=(ot.scopes||(ot.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].pause();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t<l;t++)this.scopes[t].resume();for(t=0,l=this.effects.length;t<l;t++)this.effects[t].resume()}}run(t){if(this._active){const l=ot;try{return ot=this,t()}finally{ot=l}}}on(){++this._on===1&&(this.prevScope=ot,ot=this)}off(){if(this._on>0&&--this._on===0){if(ot===this)ot=this.prevScope;else{let t=ot;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 l,r;for(l=0,r=this.effects.length;l<r;l++)this.effects[l].stop();for(this.effects.length=0,l=0,r=this.cleanups.length;l<r;l++)this.cleanups[l]();if(this.cleanups.length=0,this.scopes){for(l=0,r=this.scopes.length;l<r;l++)this.scopes[l].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Cf(){return ot}let Ne;const tr=new WeakSet;class Ts{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,ot&&(ot.active?ot.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tr.has(this)&&(tr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ns(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ra(this),Os(this);const t=Ne,l=Lt;Ne=this,Lt=!0;try{return this.fn()}finally{qs(this),Ne=t,Lt=l,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Tr(t);this.deps=this.depsTail=void 0,Ra(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mr(this)&&this.run()}get dirty(){return mr(this)}}let Es=0,Jn,Xn;function Ns(e,t=!1){if(e.flags|=8,t){e.next=Xn,Xn=e;return}e.next=Jn,Jn=e}function Mr(){Es++}function Ar(){if(--Es>0)return;if(Xn){let t=Xn;for(Xn=void 0;t;){const l=t.next;t.next=void 0,t.flags&=-9,t=l}}let e;for(;Jn;){let t=Jn;for(Jn=void 0;t;){const l=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=l}}if(e)throw e}function Os(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qs(e){let t,l=e.depsTail,r=l;for(;r;){const a=r.prevDep;r.version===-1?(r===l&&(l=a),Tr(r),xf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=a}e.deps=t,e.depsTail=l}function mr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ls(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ls(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nl)||(e.globalVersion=nl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!mr(e))))return;e.flags|=2;const t=e.dep,l=Ne,r=Lt;Ne=e,Lt=!0;try{Os(e);const a=e.fn(e._value);(t.version===0||Yt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Ne=l,Lt=r,qs(e),e.flags&=-3}}function Tr(e,t=!1){const{dep:l,prevSub:r,nextSub:a}=e;if(r&&(r.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=r,e.nextSub=void 0),l.subs===e&&(l.subs=r,!r&&l.computed)){l.computed.flags&=-5;for(let s=l.computed.deps;s;s=s.nextDep)Tr(s,!0)}!t&&!--l.sc&&l.map&&l.map.delete(l.key)}function xf(e){const{prevDep:t,nextDep:l}=e;t&&(t.nextDep=l,e.prevDep=void 0),l&&(l.prevDep=t,e.nextDep=void 0)}let Lt=!0;const Rs=[];function Zt(){Rs.push(Lt),Lt=!1}function eo(){const e=Rs.pop();Lt=e===void 0?!0:e}function Ra(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const l=Ne;Ne=void 0;try{t()}finally{Ne=l}}}let nl=0;class Pf{constructor(t,l){this.sub=t,this.dep=l,this.version=l.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Er{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(!Ne||!Lt||Ne===this.computed)return;let l=this.activeLink;if(l===void 0||l.sub!==Ne)l=this.activeLink=new Pf(Ne,this),Ne.deps?(l.prevDep=Ne.depsTail,Ne.depsTail.nextDep=l,Ne.depsTail=l):Ne.deps=Ne.depsTail=l,Fs(l);else if(l.version===-1&&(l.version=this.version,l.nextDep)){const r=l.nextDep;r.prevDep=l.prevDep,l.prevDep&&(l.prevDep.nextDep=r),l.prevDep=Ne.depsTail,l.nextDep=void 0,Ne.depsTail.nextDep=l,Ne.depsTail=l,Ne.deps===l&&(Ne.deps=r)}return l}trigger(t){this.version++,nl++,this.notify(t)}notify(t){Mr();try{for(let l=this.subs;l;l=l.prevSub)l.sub.notify()&&l.sub.dep.notify()}finally{Ar()}}}function Fs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fs(r)}const l=e.dep.subs;l!==e&&(e.prevSub=l,l&&(l.nextSub=e)),e.dep.subs=e}}const vr=new WeakMap,Jo=Symbol(""),gr=Symbol(""),ll=Symbol("");function lt(e,t,l){if(Lt&&Ne){let r=vr.get(e);r||vr.set(e,r=new Map);let a=r.get(l);a||(r.set(l,a=new Er),a.map=r,a.key=l),a.track()}}function po(e,t,l,r,a,s){const u=vr.get(e);if(!u){nl++;return}const f=m=>{m&&m.trigger()};if(Mr(),t==="clear")u.forEach(f);else{const m=Y(e),w=m&&$r(l);if(m&&l==="length"){const h=Number(r);u.forEach((x,T)=>{(T==="length"||T===ll||!Xt(T)&&T>=h)&&f(x)})}else switch((l!==void 0||u.has(void 0))&&f(u.get(l)),w&&f(u.get(ll)),t){case"add":m?w&&f(u.get("length")):(f(u.get(Jo)),In(e)&&f(u.get(gr)));break;case"delete":m||(f(u.get(Jo)),In(e)&&f(u.get(gr)));break;case"set":In(e)&&f(u.get(Jo));break}}Ar()}function hn(e){const t=he(e);return t===e?t:(lt(t,"iterate",ll),$t(e)?t:t.map(Rt))}function fi(e){return lt(e=he(e),"iterate",ll),e}function Qt(e,t){return vo(e)?Sn(Xo(e)?Rt(t):t):Rt(t)}const Sf={__proto__:null,[Symbol.iterator](){return or(this,Symbol.iterator,e=>Qt(this,e))},concat(...e){return hn(this).concat(...e.map(t=>Y(t)?hn(t):t))},entries(){return or(this,"entries",e=>(e[1]=Qt(this,e[1]),e))},every(e,t){return so(this,"every",e,t,void 0,arguments)},filter(e,t){return so(this,"filter",e,t,l=>l.map(r=>Qt(this,r)),arguments)},find(e,t){return so(this,"find",e,t,l=>Qt(this,l),arguments)},findIndex(e,t){return so(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return so(this,"findLast",e,t,l=>Qt(this,l),arguments)},findLastIndex(e,t){return so(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return so(this,"forEach",e,t,void 0,arguments)},includes(...e){return nr(this,"includes",e)},indexOf(...e){return nr(this,"indexOf",e)},join(e){return hn(this).join(e)},lastIndexOf(...e){return nr(this,"lastIndexOf",e)},map(e,t){return so(this,"map",e,t,void 0,arguments)},pop(){return Un(this,"pop")},push(...e){return Un(this,"push",e)},reduce(e,...t){return Fa(this,"reduce",e,t)},reduceRight(e,...t){return Fa(this,"reduceRight",e,t)},shift(){return Un(this,"shift")},some(e,t){return so(this,"some",e,t,void 0,arguments)},splice(...e){return Un(this,"splice",e)},toReversed(){return hn(this).toReversed()},toSorted(e){return hn(this).toSorted(e)},toSpliced(...e){return hn(this).toSpliced(...e)},unshift(...e){return Un(this,"unshift",e)},values(){return or(this,"values",e=>Qt(this,e))}};function or(e,t,l){const r=fi(e),a=r[t]();return r!==e&&!$t(e)&&(a._next=a.next,a.next=()=>{const s=a._next();return s.done||(s.value=l(s.value)),s}),a}const $f=Array.prototype;function so(e,t,l,r,a,s){const u=fi(e),f=u!==e&&!$t(e),m=u[t];if(m!==$f[t]){const x=m.apply(e,s);return f?Rt(x):x}let w=l;u!==e&&(f?w=function(x,T){return l.call(this,Qt(e,x),T,e)}:l.length>2&&(w=function(x,T){return l.call(this,x,T,e)}));const h=m.call(u,w,r);return f&&a?a(h):h}function Fa(e,t,l,r){const a=fi(e),s=a!==e&&!$t(e);let u=l,f=!1;a!==e&&(s?(f=r.length===0,u=function(w,h,x){return f&&(f=!1,w=Qt(e,w)),l.call(this,w,Qt(e,h),x,e)}):l.length>3&&(u=function(w,h,x){return l.call(this,w,h,x,e)}));const m=a[t](u,...r);return f?Qt(e,m):m}function nr(e,t,l){const r=he(e);lt(r,"iterate",ll);const a=r[t](...l);return(a===-1||a===!1)&&Lr(l[0])?(l[0]=he(l[0]),r[t](...l)):a}function Un(e,t,l=[]){Zt(),Mr();const r=he(e)[t].apply(e,l);return Ar(),eo(),r}const Mf=Pr("__proto__,__v_isRef,__isVue"),Ds=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xt));function Af(e){Xt(e)||(e=String(e));const t=he(this);return lt(t,"has",e),t.hasOwnProperty(e)}class Bs{constructor(t=!1,l=!1){this._isReadonly=t,this._isShallow=l}get(t,l,r){if(l==="__v_skip")return t.__v_skip;const a=this._isReadonly,s=this._isShallow;if(l==="__v_isReactive")return!a;if(l==="__v_isReadonly")return a;if(l==="__v_isShallow")return s;if(l==="__v_raw")return r===(a?s?Bf:Hs:s?js:Ws).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const u=Y(t);if(!a){let m;if(u&&(m=Sf[l]))return m;if(l==="hasOwnProperty")return Af}const f=Reflect.get(t,l,it(t)?t:r);if((Xt(l)?Ds.has(l):Mf(l))||(a||lt(t,"get",l),s))return f;if(it(f)){const m=u&&$r(l)?f:f.value;return a&&ke(m)?br(m):m}return ke(f)?a?br(f):Or(f):f}}class Vs extends Bs{constructor(t=!1){super(!1,t)}set(t,l,r,a){let s=t[l];const u=Y(t)&&$r(l);if(!this._isShallow){const w=vo(s);if(!$t(r)&&!vo(r)&&(s=he(s),r=he(r)),!u&&it(s)&&!it(r))return w||(s.value=r),!0}const f=u?Number(l)<t.length:we(t,l),m=Reflect.set(t,l,r,it(t)?t:a);return t===he(a)&&m&&(f?Yt(r,s)&&po(t,"set",l,r):po(t,"add",l,r)),m}deleteProperty(t,l){const r=we(t,l);t[l];const a=Reflect.deleteProperty(t,l);return a&&r&&po(t,"delete",l,void 0),a}has(t,l){const r=Reflect.has(t,l);return(!Xt(l)||!Ds.has(l))&&lt(t,"has",l),r}ownKeys(t){return lt(t,"iterate",Y(t)?"length":Jo),Reflect.ownKeys(t)}}class Tf extends Bs{constructor(t=!1){super(!0,t)}set(t,l){return!0}deleteProperty(t,l){return!0}}const Ef=new Vs,Nf=new Tf,Of=new Vs(!0);const hr=e=>e,Bl=e=>Reflect.getPrototypeOf(e);function qf(e,t,l){return function(...r){const a=this.__v_raw,s=he(a),u=In(s),f=e==="entries"||e===Symbol.iterator&&u,m=e==="keys"&&u,w=a[e](...r),h=l?hr:t?Sn:Rt;return!t&&lt(s,"iterate",m?gr:Jo),je(Object.create(w),{next(){const{value:x,done:T}=w.next();return T?{value:x,done:T}:{value:f?[h(x[0]),h(x[1])]:h(x),done:T}}})}}function Vl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Lf(e,t){const l={get(a){const s=this.__v_raw,u=he(s),f=he(a);e||(Yt(a,f)&&lt(u,"get",a),lt(u,"get",f));const{has:m}=Bl(u),w=t?hr:e?Sn:Rt;if(m.call(u,a))return w(s.get(a));if(m.call(u,f))return w(s.get(f));s!==u&&s.get(a)},get size(){const a=this.__v_raw;return!e&&lt(he(a),"iterate",Jo),a.size},has(a){const s=this.__v_raw,u=he(s),f=he(a);return e||(Yt(a,f)&&lt(u,"has",a),lt(u,"has",f)),a===f?s.has(a):s.has(a)||s.has(f)},forEach(a,s){const u=this,f=u.__v_raw,m=he(f),w=t?hr:e?Sn:Rt;return!e&&lt(m,"iterate",Jo),f.forEach((h,x)=>a.call(s,w(h),w(x),u))}};return je(l,e?{add:Vl("add"),set:Vl("set"),delete:Vl("delete"),clear:Vl("clear")}:{add(a){const s=he(this),u=Bl(s),f=he(a),m=!t&&!$t(a)&&!vo(a)?f:a;return u.has.call(s,m)||Yt(a,m)&&u.has.call(s,a)||Yt(f,m)&&u.has.call(s,f)||(s.add(m),po(s,"add",m,m)),this},set(a,s){!t&&!$t(s)&&!vo(s)&&(s=he(s));const u=he(this),{has:f,get:m}=Bl(u);let w=f.call(u,a);w||(a=he(a),w=f.call(u,a));const h=m.call(u,a);return u.set(a,s),w?Yt(s,h)&&po(u,"set",a,s):po(u,"add",a,s),this},delete(a){const s=he(this),{has:u,get:f}=Bl(s);let m=u.call(s,a);m||(a=he(a),m=u.call(s,a)),f&&f.call(s,a);const w=s.delete(a);return m&&po(s,"delete",a,void 0),w},clear(){const a=he(this),s=a.size!==0,u=a.clear();return s&&po(a,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(a=>{l[a]=qf(a,e,t)}),l}function Nr(e,t){const l=Lf(e,t);return(r,a,s)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(we(l,a)&&a in r?l:r,a,s)}const Rf={get:Nr(!1,!1)},Ff={get:Nr(!1,!0)},Df={get:Nr(!0,!1)};const Ws=new WeakMap,js=new WeakMap,Hs=new WeakMap,Bf=new WeakMap;function Vf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Or(e){return vo(e)?e:qr(e,!1,Ef,Rf,Ws)}function Wf(e){return qr(e,!1,Of,Ff,js)}function br(e){return qr(e,!0,Nf,Df,Hs)}function qr(e,t,l,r,a){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=a.get(e);if(s)return s;const u=Vf(df(e));if(u===0)return e;const f=new Proxy(e,u===2?r:l);return a.set(e,f),f}function Xo(e){return vo(e)?Xo(e.__v_raw):!!(e&&e.__v_isReactive)}function vo(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function Lr(e){return e?!!e.__v_raw:!1}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function jf(e){return!we(e,"__v_skip")&&Object.isExtensible(e)&&Ss(e,"__v_skip",!0),e}const Rt=e=>ke(e)?Or(e):e,Sn=e=>ke(e)?br(e):e;function it(e){return e?e.__v_isRef===!0:!1}function L(e){return Hf(e,!1)}function Hf(e,t){return it(e)?e:new Uf(e,t)}class Uf{constructor(t,l){this.dep=new Er,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=l?t:he(t),this._value=l?t:Rt(t),this.__v_isShallow=l}get value(){return this.dep.track(),this._value}set value(t){const l=this._rawValue,r=this.__v_isShallow||$t(t)||vo(t);t=r?t:he(t),Yt(t,l)&&(this._rawValue=t,this._value=r?t:Rt(t),this.dep.trigger())}}function Kf(e){return it(e)?e.value:e}const Gf={get:(e,t,l)=>t==="__v_raw"?e:Kf(Reflect.get(e,t,l)),set:(e,t,l,r)=>{const a=e[t];return it(a)&&!it(l)?(a.value=l,!0):Reflect.set(e,t,l,r)}};function Us(e){return Xo(e)?e:new Proxy(e,Gf)}class Qf{constructor(t,l,r){this.fn=t,this.setter=l,this._value=void 0,this.dep=new Er(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!l,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ne!==this)return Ns(this,!0),!0}get value(){const t=this.dep.track();return Ls(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function zf(e,t,l=!1){let r,a;return oe(e)?r=e:(r=e.get,a=e.set),new Qf(r,a,l)}const Wl={},Ql=new WeakMap;let Qo;function Yf(e,t=!1,l=Qo){if(l){let r=Ql.get(l);r||Ql.set(l,r=[]),r.push(e)}}function Jf(e,t,l=Te){const{immediate:r,deep:a,once:s,scheduler:u,augmentJob:f,call:m}=l,w=V=>a?V:$t(V)||a===!1||a===0?mo(V,1):mo(V);let h,x,T,F,D=!1,z=!1;if(it(e)?(x=()=>e.value,D=$t(e)):Xo(e)?(x=()=>w(e),D=!0):Y(e)?(z=!0,D=e.some(V=>Xo(V)||$t(V)),x=()=>e.map(V=>{if(it(V))return V.value;if(Xo(V))return w(V);if(oe(V))return m?m(V,2):V()})):oe(e)?t?x=m?()=>m(e,2):e:x=()=>{if(T){Zt();try{T()}finally{eo()}}const V=Qo;Qo=h;try{return m?m(e,3,[F]):e(F)}finally{Qo=V}}:x=Jt,t&&a){const V=x,se=a===!0?1/0:a;x=()=>mo(V(),se)}const ye=Cf(),le=()=>{h.stop(),ye&&ye.active&&Sr(ye.effects,h)};if(s&&t){const V=t;t=(...se)=>{const $e=V(...se);return le(),$e}}let ne=z?new Array(e.length).fill(Wl):Wl;const ae=V=>{if(!(!(h.flags&1)||!h.dirty&&!V))if(t){const se=h.run();if(V||a||D||(z?se.some(($e,He)=>Yt($e,ne[He])):Yt(se,ne))){T&&T();const $e=Qo;Qo=h;try{const He=[se,ne===Wl?void 0:z&&ne[0]===Wl?[]:ne,F];ne=se,m?m(t,3,He):t(...He)}finally{Qo=$e}}}else h.run()};return f&&f(ae),h=new Ts(x),h.scheduler=u?()=>u(ae,!1):ae,F=V=>Yf(V,!1,h),T=h.onStop=()=>{const V=Ql.get(h);if(V){if(m)m(V,4);else for(const se of V)se();Ql.delete(h)}},t?r?ae(!0):ne=h.run():u?u(ae.bind(null,!0),!0):h.run(),le.pause=h.pause.bind(h),le.resume=h.resume.bind(h),le.stop=le,le}function mo(e,t=1/0,l){if(t<=0||!ke(e)||e.__v_skip||(l=l||new Map,(l.get(e)||0)>=t))return e;if(l.set(e,t),t--,it(e))mo(e.value,t,l);else if(Y(e))for(let r=0;r<e.length;r++)mo(e[r],t,l);else if(si(e)||In(e))e.forEach(r=>{mo(r,t,l)});else if(xs(e)){for(const r in e)mo(e[r],t,l);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&mo(e[r],t,l)}return e}/**
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function dl(e,t,l,r){try{return r?e(...r):e()}catch(a){pi(a,t,l)}}function Mt(e,t,l,r){if(oe(e)){const a=dl(e,t,l,r);return a&&Is(a)&&a.catch(s=>{pi(s,t,l)}),a}if(Y(e)){const a=[];for(let s=0;s<e.length;s++)a.push(Mt(e[s],t,l,r));return a}}function pi(e,t,l,r=!0){const a=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||Te;if(t){let f=t.parent;const m=t.proxy,w=`https://vuejs.org/error-reference/#runtime-${l}`;for(;f;){const h=f.ec;if(h){for(let x=0;x<h.length;x++)if(h[x](e,m,w)===!1)return}f=f.parent}if(s){Zt(),dl(s,null,10,[e,m,w]),eo();return}}Xf(e,l,a,r,u)}function Xf(e,t,l,r=!0,a=!1){if(a)throw e;console.error(e)}const st=[];let Gt=-1;const Cn=[];let Ao=null,wn=0;const Ks=Promise.resolve();let zl=null;function kn(e){const t=zl||Ks;return e?t.then(this?e.bind(this):e):t}function Zf(e){let t=Gt+1,l=st.length;for(;t<l;){const r=t+l>>>1,a=st[r],s=il(a);s<e||s===e&&a.flags&2?t=r+1:l=r}return t}function Rr(e){if(!(e.flags&1)){const t=il(e),l=st[st.length-1];!l||!(e.flags&2)&&t>=il(l)?st.push(e):st.splice(Zf(t),0,e),e.flags|=1,Gs()}}function Gs(){zl||(zl=Ks.then(zs))}function ep(e){Y(e)?Cn.push(...e):Ao&&e.id===-1?Ao.splice(wn+1,0,e):e.flags&1||(Cn.push(e),e.flags|=1),Gs()}function Da(e,t,l=Gt+1){for(;l<st.length;l++){const r=st[l];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;st.splice(l,1),l--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Qs(e){if(Cn.length){const t=[...new Set(Cn)].sort((l,r)=>il(l)-il(r));if(Cn.length=0,Ao){Ao.push(...t);return}for(Ao=t,wn=0;wn<Ao.length;wn++){const l=Ao[wn];l.flags&4&&(l.flags&=-2),l.flags&8||l(),l.flags&=-2}Ao=null,wn=0}}const il=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zs(e){try{for(Gt=0;Gt<st.length;Gt++){const t=st[Gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gt<st.length;Gt++){const t=st[Gt];t&&(t.flags&=-2)}Gt=-1,st.length=0,Qs(),zl=null,(st.length||Cn.length)&&zs()}}let St=null,Ys=null;function Yl(e){const t=St;return St=e,Ys=e&&e.type.__scopeId||null,t}function tt(e,t=St,l){if(!t||e._n)return e;const r=(...a)=>{r._d&&Zl(-1);const s=Yl(t);let u;try{u=e(...a)}finally{Yl(s),r._d&&Zl(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function Ae(e,t){if(St===null)return e;const l=bi(St),r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[s,u,f,m=Te]=t[a];s&&(oe(s)&&(s={mounted:s,updated:s}),s.deep&&mo(u),r.push({dir:s,instance:l,value:u,oldValue:void 0,arg:f,modifiers:m}))}return e}function Uo(e,t,l,r){const a=e.dirs,s=t&&t.dirs;for(let u=0;u<a.length;u++){const f=a[u];s&&(f.oldValue=s[u].value);let m=f.dir[r];m&&(Zt(),Mt(m,l,8,[e.el,f,e,t]),eo())}}function tp(e,t){if(ct){let l=ct.provides;const r=ct.parent&&ct.parent.provides;r===l&&(l=ct.provides=Object.create(r)),l[e]=t}}function Ul(e,t,l=!1){const r=jr();if(r||xn){let a=xn?xn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return l&&oe(t)?t.call(r&&r.proxy):t}}const op=Symbol.for("v-scx"),np=()=>Ul(op);function Ot(e,t,l){return Js(e,t,l)}function Js(e,t,l=Te){const{immediate:r,deep:a,flush:s,once:u}=l,f=je({},l),m=t&&r||!t&&s!=="post";let w;if(sl){if(s==="sync"){const F=np();w=F.__watcherHandles||(F.__watcherHandles=[])}else if(!m){const F=()=>{};return F.stop=Jt,F.resume=Jt,F.pause=Jt,F}}const h=ct;f.call=(F,D,z)=>Mt(F,h,D,z);let x=!1;s==="post"?f.scheduler=F=>{dt(F,h&&h.suspense)}:s!=="sync"&&(x=!0,f.scheduler=(F,D)=>{D?F():Rr(F)}),f.augmentJob=F=>{t&&(F.flags|=4),x&&(F.flags|=2,h&&(F.id=h.uid,F.i=h))};const T=Jf(e,t,f);return sl&&(w?w.push(T):m&&T()),T}function lp(e,t,l){const r=this.proxy,a=De(e)?e.includes(".")?Xs(r,e):()=>r[e]:e.bind(r,r);let s;oe(t)?s=t:(s=t.handler,l=t);const u=fl(this),f=Js(a,s.bind(r),l);return u(),f}function Xs(e,t){const l=t.split(".");return()=>{let r=e;for(let a=0;a<l.length&&r;a++)r=r[l[a]];return r}}const ip=Symbol("_vte"),Zs=e=>e.__isTeleport,Pt=Symbol("_leaveCb"),Kn=Symbol("_enterCb");function eu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Dr(()=>{e.isMounted=!0}),Br(()=>{e.isUnmounting=!0}),e}const xt=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xt,onEnter:xt,onAfterEnter:xt,onEnterCancelled:xt,onBeforeLeave:xt,onLeave:xt,onAfterLeave:xt,onLeaveCancelled:xt,onBeforeAppear:xt,onAppear:xt,onAfterAppear:xt,onAppearCancelled:xt},ou=e=>{const t=e.subTree;return t.component?ou(t.component):t},rp={name:"BaseTransition",props:tu,setup(e,{slots:t}){const l=jr(),r=eu();return()=>{const a=t.default&&Fr(t.default(),!0),s=a&&a.length?nu(a):l.subTree?ve():void 0;if(!s)return;const u=he(e),{mode:f}=u;if(r.isLeaving)return lr(s);const m=Ba(s);if(!m)return lr(s);let w=rl(m,u,r,l,x=>w=x);m.type!==ut&&Zo(m,w);let h=l.subTree&&Ba(l.subTree);if(h&&h.type!==ut&&!zo(h,m)&&ou(l).type!==ut){let x=rl(h,u,r,l);if(Zo(h,x),f==="out-in"&&m.type!==ut)return r.isLeaving=!0,x.afterLeave=()=>{r.isLeaving=!1,l.job.flags&8||l.update(),delete x.afterLeave,h=void 0},lr(s);f==="in-out"&&m.type!==ut?x.delayLeave=(T,F,D)=>{const z=lu(r,h);z[String(h.key)]=h,T[Pt]=()=>{F(),T[Pt]=void 0,delete w.delayedLeave,h=void 0},w.delayedLeave=()=>{D(),delete w.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return s}}};function nu(e){let t=e[0];if(e.length>1){for(const l of e)if(l.type!==ut){t=l;break}}return t}const ap=rp;function lu(e,t){const{leavingVNodes:l}=e;let r=l.get(t.type);return r||(r=Object.create(null),l.set(t.type,r)),r}function rl(e,t,l,r,a){const{appear:s,mode:u,persisted:f=!1,onBeforeEnter:m,onEnter:w,onAfterEnter:h,onEnterCancelled:x,onBeforeLeave:T,onLeave:F,onAfterLeave:D,onLeaveCancelled:z,onBeforeAppear:ye,onAppear:le,onAfterAppear:ne,onAppearCancelled:ae}=t,V=String(e.key),se=lu(l,e),$e=(Z,ce)=>{Z&&Mt(Z,r,9,ce)},He=(Z,ce)=>{const _e=ce[1];$e(Z,ce),Y(Z)?Z.every(W=>W.length<=1)&&_e():Z.length<=1&&_e()},Ye={mode:u,persisted:f,beforeEnter(Z){let ce=m;if(!l.isMounted)if(s)ce=ye||m;else return;Z[Pt]&&Z[Pt](!0);const _e=se[V];_e&&zo(e,_e)&&_e.el[Pt]&&_e.el[Pt](),$e(ce,[Z])},enter(Z){if(se[V]===e)return;let ce=w,_e=h,W=x;if(!l.isMounted)if(s)ce=le||w,_e=ne||h,W=ae||x;else return;let de=!1;Z[Kn]=Me=>{de||(de=!0,Me?$e(W,[Z]):$e(_e,[Z]),Ye.delayedLeave&&Ye.delayedLeave(),Z[Kn]=void 0)};const Ee=Z[Kn].bind(null,!1);ce?He(ce,[Z,Ee]):Ee()},leave(Z,ce){const _e=String(e.key);if(Z[Kn]&&Z[Kn](!0),l.isUnmounting)return ce();$e(T,[Z]);let W=!1;Z[Pt]=Ee=>{W||(W=!0,ce(),Ee?$e(z,[Z]):$e(D,[Z]),Z[Pt]=void 0,se[_e]===e&&delete se[_e])};const de=Z[Pt].bind(null,!1);se[_e]=e,F?He(F,[Z,de]):de()},clone(Z){const ce=rl(Z,t,l,r,a);return a&&a(ce),ce}};return Ye}function lr(e){if(mi(e))return e=To(e),e.children=null,e}function Ba(e){if(!mi(e))return Zs(e.type)&&e.children?nu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:l}=e;if(l){if(t&16)return l[0];if(t&32&&oe(l.default))return l.default()}}function Zo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fr(e,t=!1,l){let r=[],a=0;for(let s=0;s<e.length;s++){let u=e[s];const f=l==null?u.key:String(l)+String(u.key!=null?u.key:s);u.type===U?(u.patchFlag&128&&a++,r=r.concat(Fr(u.children,t,f))):(t||u.type!==ut)&&r.push(f!=null?To(u,{key:f}):u)}if(a>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function sp(e,t){return oe(e)?je({name:e.name},t,{setup:e}):e}function iu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Va(e,t){let l;return!!((l=Object.getOwnPropertyDescriptor(e,t))&&!l.configurable)}const Jl=new WeakMap;function Zn(e,t,l,r,a=!1){if(Y(e)){e.forEach((z,ye)=>Zn(z,t&&(Y(t)?t[ye]:t),l,r,a));return}if(el(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Zn(e,t,l,r.component.subTree);return}const s=r.shapeFlag&4?bi(r.component):r.el,u=a?null:s,{i:f,r:m}=e,w=t&&t.r,h=f.refs===Te?f.refs={}:f.refs,x=f.setupState,T=he(x),F=x===Te?_s:z=>Va(h,z)?!1:we(T,z),D=(z,ye)=>!(ye&&Va(h,ye));if(w!=null&&w!==m){if(Wa(t),De(w))h[w]=null,F(w)&&(x[w]=null);else if(it(w)){const z=t;D(w,z.k)&&(w.value=null),z.k&&(h[z.k]=null)}}if(oe(m)){Zt();try{dl(m,f,12,[u,h])}finally{eo()}}else{const z=De(m),ye=it(m);if(z||ye){const le=()=>{if(e.f){const ne=z?F(m)?x[m]:h[m]:D()||!e.k?m.value:h[e.k];if(a)Y(ne)&&Sr(ne,s);else if(Y(ne))ne.includes(s)||ne.push(s);else if(z)h[m]=[s],F(m)&&(x[m]=h[m]);else{const ae=[s];D(m,e.k)&&(m.value=ae),e.k&&(h[e.k]=ae)}}else z?(h[m]=u,F(m)&&(x[m]=u)):ye&&(D(m,e.k)&&(m.value=u),e.k&&(h[e.k]=u))};if(u){const ne=()=>{le(),Jl.delete(e)};ne.id=-1,Jl.set(e,ne),dt(ne,l)}else Wa(e),le()}}}function Wa(e){const t=Jl.get(e);t&&(t.flags|=8,Jl.delete(e))}di().requestIdleCallback;di().cancelIdleCallback;const el=e=>!!e.type.__asyncLoader,mi=e=>e.type.__isKeepAlive;function up(e,t){ru(e,"a",t)}function cp(e,t){ru(e,"da",t)}function ru(e,t,l=ct){const r=e.__wdc||(e.__wdc=()=>{let a=l;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(vi(t,r,l),l){let a=l.parent;for(;a&&a.parent;)mi(a.parent.vnode)&&dp(r,t,l,a),a=a.parent}}function dp(e,t,l,r){const a=vi(t,e,r,!0);su(()=>{Sr(r[t],a)},l)}function vi(e,t,l=ct,r=!1){if(l){const a=l[e]||(l[e]=[]),s=t.__weh||(t.__weh=(...u)=>{Zt();const f=fl(l),m=Mt(t,l,e,u);return f(),eo(),m});return r?a.unshift(s):a.push(s),s}}const go=e=>(t,l=ct)=>{(!sl||e==="sp")&&vi(e,(...r)=>t(...r),l)},fp=go("bm"),Dr=go("m"),pp=go("bu"),au=go("u"),Br=go("bum"),su=go("um"),mp=go("sp"),vp=go("rtg"),gp=go("rtc");function hp(e,t=ct){vi("ec",e,t)}const bp=Symbol.for("v-ndc");function ee(e,t,l,r){let a;const s=l,u=Y(e);if(u||De(e)){const f=u&&Xo(e);let m=!1,w=!1;f&&(m=!$t(e),w=vo(e),e=fi(e)),a=new Array(e.length);for(let h=0,x=e.length;h<x;h++)a[h]=t(m?w?Sn(Rt(e[h])):Rt(e[h]):e[h],h,void 0,s)}else if(typeof e=="number"){a=new Array(e);for(let f=0;f<e;f++)a[f]=t(f+1,f,void 0,s)}else if(ke(e))if(e[Symbol.iterator])a=Array.from(e,(f,m)=>t(f,m,void 0,s));else{const f=Object.keys(e);a=new Array(f.length);for(let m=0,w=f.length;m<w;m++){const h=f[m];a[m]=t(e[h],h,m,s)}}else a=[];return a}const yr=e=>e?Mu(e)?bi(e):yr(e.parent):null,tl=je(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=>yr(e.parent),$root:e=>yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>cu(e),$forceUpdate:e=>e.f||(e.f=()=>{Rr(e.update)}),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>lp.bind(e)}),ir=(e,t)=>e!==Te&&!e.__isScriptSetup&&we(e,t),yp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:l,setupState:r,data:a,props:s,accessCache:u,type:f,appContext:m}=e;if(t[0]!=="$"){const T=u[t];if(T!==void 0)switch(T){case 1:return r[t];case 2:return a[t];case 4:return l[t];case 3:return s[t]}else{if(ir(r,t))return u[t]=1,r[t];if(a!==Te&&we(a,t))return u[t]=2,a[t];if(we(s,t))return u[t]=3,s[t];if(l!==Te&&we(l,t))return u[t]=4,l[t];wr&&(u[t]=0)}}const w=tl[t];let h,x;if(w)return t==="$attrs"&&lt(e.attrs,"get",""),w(e);if((h=f.__cssModules)&&(h=h[t]))return h;if(l!==Te&&we(l,t))return u[t]=4,l[t];if(x=m.config.globalProperties,we(x,t))return x[t]},set({_:e},t,l){const{data:r,setupState:a,ctx:s}=e;return ir(a,t)?(a[t]=l,!0):r!==Te&&we(r,t)?(r[t]=l,!0):we(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=l,!0)},has({_:{data:e,setupState:t,accessCache:l,ctx:r,appContext:a,props:s,type:u}},f){let m;return!!(l[f]||e!==Te&&f[0]!=="$"&&we(e,f)||ir(t,f)||we(s,f)||we(r,f)||we(tl,f)||we(a.config.globalProperties,f)||(m=u.__cssModules)&&m[f])},defineProperty(e,t,l){return l.get!=null?e._.accessCache[t]=0:we(l,"value")&&this.set(e,t,l.value,null),Reflect.defineProperty(e,t,l)}};function ja(e){return Y(e)?e.reduce((t,l)=>(t[l]=null,t),{}):e}let wr=!0;function wp(e){const t=cu(e),l=e.proxy,r=e.ctx;wr=!1,t.beforeCreate&&Ha(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:u,watch:f,provide:m,inject:w,created:h,beforeMount:x,mounted:T,beforeUpdate:F,updated:D,activated:z,deactivated:ye,beforeDestroy:le,beforeUnmount:ne,destroyed:ae,unmounted:V,render:se,renderTracked:$e,renderTriggered:He,errorCaptured:Ye,serverPrefetch:Z,expose:ce,inheritAttrs:_e,components:W,directives:de,filters:Ee}=t;if(w&&kp(w,r,null),u)for(const re in u){const ge=u[re];oe(ge)&&(r[re]=ge.bind(l))}if(a){const re=a.call(l,l);ke(re)&&(e.data=Or(re))}if(wr=!0,s)for(const re in s){const ge=s[re],At=oe(ge)?ge.bind(l,l):oe(ge.get)?ge.get.bind(l,l):Jt,No=!oe(ge)&&oe(ge.set)?ge.set.bind(l):Jt,wt=q({get:At,set:No});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>wt.value,set:Ue=>wt.value=Ue})}if(f)for(const re in f)uu(f[re],r,l,re);if(m){const re=oe(m)?m.call(l):m;Reflect.ownKeys(re).forEach(ge=>{tp(ge,re[ge])})}h&&Ha(h,e,"c");function Pe(re,ge){Y(ge)?ge.forEach(At=>re(At.bind(l))):ge&&re(ge.bind(l))}if(Pe(fp,x),Pe(Dr,T),Pe(pp,F),Pe(au,D),Pe(up,z),Pe(cp,ye),Pe(hp,Ye),Pe(gp,$e),Pe(vp,He),Pe(Br,ne),Pe(su,V),Pe(mp,Z),Y(ce))if(ce.length){const re=e.exposed||(e.exposed={});ce.forEach(ge=>{Object.defineProperty(re,ge,{get:()=>l[ge],set:At=>l[ge]=At,enumerable:!0})})}else e.exposed||(e.exposed={});se&&e.render===Jt&&(e.render=se),_e!=null&&(e.inheritAttrs=_e),W&&(e.components=W),de&&(e.directives=de),Z&&iu(e)}function kp(e,t,l=Jt){Y(e)&&(e=kr(e));for(const r in e){const a=e[r];let s;ke(a)?"default"in a?s=Ul(a.from||r,a.default,!0):s=Ul(a.from||r):s=Ul(a),it(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[r]=s}}function Ha(e,t,l){Mt(Y(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,l)}function uu(e,t,l,r){let a=r.includes(".")?Xs(l,r):()=>l[r];if(De(e)){const s=t[e];oe(s)&&Ot(a,s)}else if(oe(e))Ot(a,e.bind(l));else if(ke(e))if(Y(e))e.forEach(s=>uu(s,t,l,r));else{const s=oe(e.handler)?e.handler.bind(l):t[e.handler];oe(s)&&Ot(a,s,e)}}function cu(e){const t=e.type,{mixins:l,extends:r}=t,{mixins:a,optionsCache:s,config:{optionMergeStrategies:u}}=e.appContext,f=s.get(t);let m;return f?m=f:!a.length&&!l&&!r?m=t:(m={},a.length&&a.forEach(w=>Xl(m,w,u,!0)),Xl(m,t,u)),ke(t)&&s.set(t,m),m}function Xl(e,t,l,r=!1){const{mixins:a,extends:s}=t;s&&Xl(e,s,l,!0),a&&a.forEach(u=>Xl(e,u,l,!0));for(const u in t)if(!(r&&u==="expose")){const f=_p[u]||l&&l[u];e[u]=f?f(e[u],t[u]):t[u]}return e}const _p={data:Ua,props:Ka,emits:Ka,methods:Qn,computed:Qn,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Qn,directives:Qn,watch:Cp,provide:Ua,inject:Ip};function Ua(e,t){return t?e?function(){return je(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Ip(e,t){return Qn(kr(e),kr(t))}function kr(e){if(Y(e)){const t={};for(let l=0;l<e.length;l++)t[e[l]]=e[l];return t}return e}function at(e,t){return e?[...new Set([].concat(e,t))]:t}function Qn(e,t){return e?je(Object.create(null),e,t):t}function Ka(e,t){return e?Y(e)&&Y(t)?[...new Set([...e,...t])]:je(Object.create(null),ja(e),ja(t??{})):t}function Cp(e,t){if(!e)return t;if(!t)return e;const l=je(Object.create(null),e);for(const r in t)l[r]=at(e[r],t[r]);return l}function du(){return{app:null,config:{isNativeTag:_s,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 xp=0;function Pp(e,t){return function(r,a=null){oe(r)||(r=je({},r)),a!=null&&!ke(a)&&(a=null);const s=du(),u=new WeakSet,f=[];let m=!1;const w=s.app={_uid:xp++,_component:r,_props:a,_container:null,_context:s,_instance:null,version:lm,get config(){return s.config},set config(h){},use(h,...x){return u.has(h)||(h&&oe(h.install)?(u.add(h),h.install(w,...x)):oe(h)&&(u.add(h),h(w,...x))),w},mixin(h){return s.mixins.includes(h)||s.mixins.push(h),w},component(h,x){return x?(s.components[h]=x,w):s.components[h]},directive(h,x){return x?(s.directives[h]=x,w):s.directives[h]},mount(h,x,T){if(!m){const F=w._ceVNode||xe(r,a);return F.appContext=s,T===!0?T="svg":T===!1&&(T=void 0),e(F,h,T),m=!0,w._container=h,h.__vue_app__=w,bi(F.component)}},onUnmount(h){f.push(h)},unmount(){m&&(Mt(f,w._instance,16),e(null,w._container),delete w._container.__vue_app__)},provide(h,x){return s.provides[h]=x,w},runWithContext(h){const x=xn;xn=w;try{return h()}finally{xn=x}}};return w}}let xn=null;const Sp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${qt(t)}Modifiers`]||e[`${Eo(t)}Modifiers`];function $p(e,t,...l){if(e.isUnmounted)return;const r=e.vnode.props||Te;let a=l;const s=t.startsWith("update:"),u=s&&Sp(r,t.slice(7));u&&(u.trim&&(a=l.map(h=>De(h)?h.trim():h)),u.number&&(a=l.map(ci)));let f,m=r[f=Zi(t)]||r[f=Zi(qt(t))];!m&&s&&(m=r[f=Zi(Eo(t))]),m&&Mt(m,e,6,a);const w=r[f+"Once"];if(w){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Mt(w,e,6,a)}}const Mp=new WeakMap;function fu(e,t,l=!1){const r=l?Mp:t.emitsCache,a=r.get(e);if(a!==void 0)return a;const s=e.emits;let u={},f=!1;if(!oe(e)){const m=w=>{const h=fu(w,t,!0);h&&(f=!0,je(u,h))};!l&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return!s&&!f?(ke(e)&&r.set(e,null),null):(Y(s)?s.forEach(m=>u[m]=null):je(u,s),ke(e)&&r.set(e,u),u)}function gi(e,t){return!e||!ri(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),we(e,t[0].toLowerCase()+t.slice(1))||we(e,Eo(t))||we(e,t))}function Ga(e){const{type:t,vnode:l,proxy:r,withProxy:a,propsOptions:[s],slots:u,attrs:f,emit:m,render:w,renderCache:h,props:x,data:T,setupState:F,ctx:D,inheritAttrs:z}=e,ye=Yl(e);let le,ne;try{if(l.shapeFlag&4){const V=a||r,se=V;le=zt(w.call(se,V,h,x,F,T,D)),ne=f}else{const V=t;le=zt(V.length>1?V(x,{attrs:f,slots:u,emit:m}):V(x,null)),ne=t.props?f:Ap(f)}}catch(V){ol.length=0,pi(V,e,1),le=xe(ut)}let ae=le;if(ne&&z!==!1){const V=Object.keys(ne),{shapeFlag:se}=ae;V.length&&se&7&&(s&&V.some(ai)&&(ne=Tp(ne,s)),ae=To(ae,ne,!1,!0))}return l.dirs&&(ae=To(ae,null,!1,!0),ae.dirs=ae.dirs?ae.dirs.concat(l.dirs):l.dirs),l.transition&&Zo(ae,l.transition),le=ae,Yl(ye),le}const Ap=e=>{let t;for(const l in e)(l==="class"||l==="style"||ri(l))&&((t||(t={}))[l]=e[l]);return t},Tp=(e,t)=>{const l={};for(const r in e)(!ai(r)||!(r.slice(9)in t))&&(l[r]=e[r]);return l};function Ep(e,t,l){const{props:r,children:a,component:s}=e,{props:u,children:f,patchFlag:m}=t,w=s.emitsOptions;if(t.dirs||t.transition)return!0;if(l&&m>=0){if(m&1024)return!0;if(m&16)return r?Qa(r,u,w):!!u;if(m&8){const h=t.dynamicProps;for(let x=0;x<h.length;x++){const T=h[x];if(pu(u,r,T)&&!gi(w,T))return!0}}}else return(a||f)&&(!f||!f.$stable)?!0:r===u?!1:r?u?Qa(r,u,w):!0:!!u;return!1}function Qa(e,t,l){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const s=r[a];if(pu(t,e,s)&&!gi(l,s))return!0}return!1}function pu(e,t,l){const r=e[l],a=t[l];return l==="style"&&ke(r)&&ke(a)?!cl(r,a):r!==a}function Np({vnode:e,parent:t,suspense:l},r){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.suspense.vnode.el=a.el=r,e=a),a===e)(e=t.vnode).el=r,t=t.parent;else break}l&&l.activeBranch===e&&(l.vnode.el=r)}const mu={},vu=()=>Object.create(mu),gu=e=>Object.getPrototypeOf(e)===mu;function Op(e,t,l,r=!1){const a={},s=vu();e.propsDefaults=Object.create(null),hu(e,t,a,s);for(const u in e.propsOptions[0])u in a||(a[u]=void 0);l?e.props=r?a:Wf(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function qp(e,t,l,r){const{props:a,attrs:s,vnode:{patchFlag:u}}=e,f=he(a),[m]=e.propsOptions;let w=!1;if((r||u>0)&&!(u&16)){if(u&8){const h=e.vnode.dynamicProps;for(let x=0;x<h.length;x++){let T=h[x];if(gi(e.emitsOptions,T))continue;const F=t[T];if(m)if(we(s,T))F!==s[T]&&(s[T]=F,w=!0);else{const D=qt(T);a[D]=_r(m,f,D,F,e,!1)}else F!==s[T]&&(s[T]=F,w=!0)}}}else{hu(e,t,a,s)&&(w=!0);let h;for(const x in f)(!t||!we(t,x)&&((h=Eo(x))===x||!we(t,h)))&&(m?l&&(l[x]!==void 0||l[h]!==void 0)&&(a[x]=_r(m,f,x,void 0,e,!0)):delete a[x]);if(s!==f)for(const x in s)(!t||!we(t,x))&&(delete s[x],w=!0)}w&&po(e.attrs,"set","")}function hu(e,t,l,r){const[a,s]=e.propsOptions;let u=!1,f;if(t)for(let m in t){if(Yn(m))continue;const w=t[m];let h;a&&we(a,h=qt(m))?!s||!s.includes(h)?l[h]=w:(f||(f={}))[h]=w:gi(e.emitsOptions,m)||(!(m in r)||w!==r[m])&&(r[m]=w,u=!0)}if(s){const m=he(l),w=f||Te;for(let h=0;h<s.length;h++){const x=s[h];l[x]=_r(a,m,x,w[x],e,!we(w,x))}}return u}function _r(e,t,l,r,a,s){const u=e[l];if(u!=null){const f=we(u,"default");if(f&&r===void 0){const m=u.default;if(u.type!==Function&&!u.skipFactory&&oe(m)){const{propsDefaults:w}=a;if(l in w)r=w[l];else{const h=fl(a);r=w[l]=m.call(null,t),h()}}else r=m;a.ce&&a.ce._setProp(l,r)}u[0]&&(s&&!f?r=!1:u[1]&&(r===""||r===Eo(l))&&(r=!0))}return r}const Lp=new WeakMap;function bu(e,t,l=!1){const r=l?Lp:t.propsCache,a=r.get(e);if(a)return a;const s=e.props,u={},f=[];let m=!1;if(!oe(e)){const h=x=>{m=!0;const[T,F]=bu(x,t,!0);je(u,T),F&&f.push(...F)};!l&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!s&&!m)return ke(e)&&r.set(e,_n),_n;if(Y(s))for(let h=0;h<s.length;h++){const x=qt(s[h]);za(x)&&(u[x]=Te)}else if(s)for(const h in s){const x=qt(h);if(za(x)){const T=s[h],F=u[x]=Y(T)||oe(T)?{type:T}:je({},T),D=F.type;let z=!1,ye=!0;if(Y(D))for(let le=0;le<D.length;++le){const ne=D[le],ae=oe(ne)&&ne.name;if(ae==="Boolean"){z=!0;break}else ae==="String"&&(ye=!1)}else z=oe(D)&&D.name==="Boolean";F[0]=z,F[1]=ye,(z||we(F,"default"))&&f.push(x)}}const w=[u,f];return ke(e)&&r.set(e,w),w}function za(e){return e[0]!=="$"&&!Yn(e)}const Vr=e=>e==="_"||e==="_ctx"||e==="$stable",Wr=e=>Y(e)?e.map(zt):[zt(e)],Rp=(e,t,l)=>{if(t._n)return t;const r=tt((...a)=>Wr(t(...a)),l);return r._c=!1,r},yu=(e,t,l)=>{const r=e._ctx;for(const a in e){if(Vr(a))continue;const s=e[a];if(oe(s))t[a]=Rp(a,s,r);else if(s!=null){const u=Wr(s);t[a]=()=>u}}},wu=(e,t)=>{const l=Wr(t);e.slots.default=()=>l},ku=(e,t,l)=>{for(const r in t)(l||!Vr(r))&&(e[r]=t[r])},Fp=(e,t,l)=>{const r=e.slots=vu();if(e.vnode.shapeFlag&32){const a=t._;a?(ku(r,t,l),l&&Ss(r,"_",a,!0)):yu(t,r)}else t&&wu(e,t)},Dp=(e,t,l)=>{const{vnode:r,slots:a}=e;let s=!0,u=Te;if(r.shapeFlag&32){const f=t._;f?l&&f===1?s=!1:ku(a,t,l):(s=!t.$stable,yu(t,a)),u=t}else t&&(wu(e,t),u={default:1});if(s)for(const f in a)!Vr(f)&&u[f]==null&&delete a[f]},dt=Hp;function Bp(e){return Vp(e)}function Vp(e,t){const l=di();l.__VUE__=!0;const{insert:r,remove:a,patchProp:s,createElement:u,createText:f,createComment:m,setText:w,setElementText:h,parentNode:x,nextSibling:T,setScopeId:F=Jt,insertStaticContent:D}=e,z=(p,b,P,E=null,A=null,M=null,R=void 0,O=null,N=!!b.dynamicChildren)=>{if(p===b)return;p&&!zo(p,b)&&(E=no(p),Ue(p,A,M,!0),p=null),b.patchFlag===-2&&(N=!1,b.dynamicChildren=null);const{type:$,ref:Q,shapeFlag:B}=b;switch($){case hi:ye(p,b,P,E);break;case ut:le(p,b,P,E);break;case ar:p==null&&ne(b,P,E,R);break;case U:W(p,b,P,E,A,M,R,O,N);break;default:B&1?se(p,b,P,E,A,M,R,O,N):B&6?de(p,b,P,E,A,M,R,O,N):(B&64||B&128)&&$.process(p,b,P,E,A,M,R,O,N,Ft)}Q!=null&&A?Zn(Q,p&&p.ref,M,b||p,!b):Q==null&&p&&p.ref!=null&&Zn(p.ref,null,M,p,!0)},ye=(p,b,P,E)=>{if(p==null)r(b.el=f(b.children),P,E);else{const A=b.el=p.el;b.children!==p.children&&w(A,b.children)}},le=(p,b,P,E)=>{p==null?r(b.el=m(b.children||""),P,E):b.el=p.el},ne=(p,b,P,E)=>{[p.el,p.anchor]=D(p.children,b,P,E,p.el,p.anchor)},ae=({el:p,anchor:b},P,E)=>{let A;for(;p&&p!==b;)A=T(p),r(p,P,E),p=A;r(b,P,E)},V=({el:p,anchor:b})=>{let P;for(;p&&p!==b;)P=T(p),a(p),p=P;a(b)},se=(p,b,P,E,A,M,R,O,N)=>{if(b.type==="svg"?R="svg":b.type==="math"&&(R="mathml"),p==null)$e(b,P,E,A,M,R,O,N);else{const $=p.el&&p.el._isVueCE?p.el:null;try{$&&$._beginPatch(),Z(p,b,A,M,R,O,N)}finally{$&&$._endPatch()}}},$e=(p,b,P,E,A,M,R,O)=>{let N,$;const{props:Q,shapeFlag:B,transition:H,dirs:j}=p;if(N=p.el=u(p.type,M,Q&&Q.is,Q),B&8?h(N,p.children):B&16&&Ye(p.children,N,null,E,A,rr(p,M),R,O),j&&Uo(p,null,E,"created"),He(N,p,p.scopeId,R,E),Q){for(const fe in Q)fe!=="value"&&!Yn(fe)&&s(N,fe,null,Q[fe],M,E);"value"in Q&&s(N,"value",null,Q.value,M),($=Q.onVnodeBeforeMount)&&Ut($,E,p)}j&&Uo(p,null,E,"beforeMount");const K=Wp(A,H);K&&H.beforeEnter(N),r(N,b,P),(($=Q&&Q.onVnodeMounted)||K||j)&&dt(()=>{try{$&&Ut($,E,p),K&&H.enter(N),j&&Uo(p,null,E,"mounted")}finally{}},A)},He=(p,b,P,E,A)=>{if(P&&F(p,P),E)for(let M=0;M<E.length;M++)F(p,E[M]);if(A){let M=A.subTree;if(b===M||xu(M.type)&&(M.ssContent===b||M.ssFallback===b)){const R=A.vnode;He(p,R,R.scopeId,R.slotScopeIds,A.parent)}}},Ye=(p,b,P,E,A,M,R,O,N=0)=>{for(let $=N;$<p.length;$++){const Q=p[$]=O?fo(p[$]):zt(p[$]);z(null,Q,b,P,E,A,M,R,O)}},Z=(p,b,P,E,A,M,R)=>{const O=b.el=p.el;let{patchFlag:N,dynamicChildren:$,dirs:Q}=b;N|=p.patchFlag&16;const B=p.props||Te,H=b.props||Te;let j;if(P&&Ko(P,!1),(j=H.onVnodeBeforeUpdate)&&Ut(j,P,b,p),Q&&Uo(b,p,P,"beforeUpdate"),P&&Ko(P,!0),$&&(!p.dynamicChildren||p.dynamicChildren.length!==$.length)&&(N=0,R=!1,$=null),(B.innerHTML&&H.innerHTML==null||B.textContent&&H.textContent==null)&&h(O,""),$?ce(p.dynamicChildren,$,O,P,E,rr(b,A),M):R||ge(p,b,O,null,P,E,rr(b,A),M,!1),N>0){if(N&16)_e(O,B,H,P,A);else if(N&2&&B.class!==H.class&&s(O,"class",null,H.class,A),N&4&&s(O,"style",B.style,H.style,A),N&8){const K=b.dynamicProps;for(let fe=0;fe<K.length;fe++){const ue=K[fe],Ie=B[ue],be=H[ue];(be!==Ie||ue==="value")&&s(O,ue,Ie,be,A,P)}}N&1&&p.children!==b.children&&h(O,b.children)}else!R&&$==null&&_e(O,B,H,P,A);((j=H.onVnodeUpdated)||Q)&&dt(()=>{j&&Ut(j,P,b,p),Q&&Uo(b,p,P,"updated")},E)},ce=(p,b,P,E,A,M,R)=>{for(let O=0;O<b.length;O++){const N=p[O],$=b[O],Q=N.el&&(N.type===U||!zo(N,$)||N.shapeFlag&198)?x(N.el):P;z(N,$,Q,null,E,A,M,R,!0)}},_e=(p,b,P,E,A)=>{if(b!==P){if(b!==Te)for(const M in b)!Yn(M)&&!(M in P)&&s(p,M,b[M],null,A,E);for(const M in P){if(Yn(M))continue;const R=P[M],O=b[M];R!==O&&M!=="value"&&s(p,M,O,R,A,E)}"value"in P&&s(p,"value",b.value,P.value,A)}},W=(p,b,P,E,A,M,R,O,N)=>{const $=b.el=p?p.el:f(""),Q=b.anchor=p?p.anchor:f("");let{patchFlag:B,dynamicChildren:H,slotScopeIds:j}=b;j&&(O=O?O.concat(j):j),p==null?(r($,P,E),r(Q,P,E),Ye(b.children||[],P,Q,A,M,R,O,N)):B>0&&B&64&&H&&p.dynamicChildren&&p.dynamicChildren.length===H.length?(ce(p.dynamicChildren,H,P,A,M,R,O),(b.key!=null||A&&b===A.subTree)&&_u(p,b,!0)):ge(p,b,P,Q,A,M,R,O,N)},de=(p,b,P,E,A,M,R,O,N)=>{b.slotScopeIds=O,p==null?b.shapeFlag&512?A.ctx.activate(b,P,E,R,N):Ee(b,P,E,A,M,R,N):Me(p,b,N)},Ee=(p,b,P,E,A,M,R)=>{const O=p.component=Jp(p,E,A);if(mi(p)&&(O.ctx.renderer=Ft),Xp(O,!1,R),O.asyncDep){if(A&&A.registerDep(O,Pe,R),!p.el){const N=O.subTree=xe(ut);le(null,N,b,P),p.placeholder=N.el}}else Pe(O,p,b,P,A,M,R)},Me=(p,b,P)=>{const E=b.component=p.component;if(Ep(p,b,P))if(E.asyncDep&&!E.asyncResolved){re(E,b,P);return}else E.next=b,E.update();else b.el=p.el,E.vnode=b},Pe=(p,b,P,E,A,M,R)=>{const O=()=>{if(p.isMounted){let{next:B,bu:H,u:j,parent:K,vnode:fe}=p;{const _t=Iu(p);if(_t){B&&(B.el=fe.el,re(p,B,R)),_t.asyncDep.then(()=>{dt(()=>{p.isUnmounted||$()},A)});return}}let ue=B,Ie;Ko(p,!1),B?(B.el=fe.el,re(p,B,R)):B=fe,H&&Hl(H),(Ie=B.props&&B.props.onVnodeBeforeUpdate)&&Ut(Ie,K,B,fe),Ko(p,!0);const be=Ga(p),Be=p.subTree;p.subTree=be,z(Be,be,x(Be.el),no(Be),p,A,M),B.el=be.el,ue===null&&Np(p,be.el),j&&dt(j,A),(Ie=B.props&&B.props.onVnodeUpdated)&&dt(()=>Ut(Ie,K,B,fe),A)}else{let B;const{el:H,props:j}=b,{bm:K,m:fe,parent:ue,root:Ie,type:be}=p,Be=el(b);Ko(p,!1),K&&Hl(K),!Be&&(B=j&&j.onVnodeBeforeMount)&&Ut(B,ue,b),Ko(p,!0);{Ie.ce&&Ie.ce._hasShadowRoot()&&Ie.ce._injectChildStyle(be,p.parent?p.parent.type:void 0);const _t=p.subTree=Ga(p);z(null,_t,P,E,p,A,M),b.el=_t.el}if(fe&&dt(fe,A),!Be&&(B=j&&j.onVnodeMounted)){const _t=b;dt(()=>Ut(B,ue,_t),A)}(b.shapeFlag&256||ue&&el(ue.vnode)&&ue.vnode.shapeFlag&256)&&p.a&&dt(p.a,A),p.isMounted=!0,b=P=E=null}};p.scope.on();const N=p.effect=new Ts(O);p.scope.off();const $=p.update=N.run.bind(N),Q=p.job=N.runIfDirty.bind(N);Q.i=p,Q.id=p.uid,N.scheduler=()=>Rr(Q),Ko(p,!0),$()},re=(p,b,P)=>{b.component=p;const E=p.vnode.props;p.vnode=b,p.next=null,qp(p,b.props,E,P),Dp(p,b.children,P),Zt(),Da(p),eo()},ge=(p,b,P,E,A,M,R,O,N=!1)=>{const $=p&&p.children,Q=p?p.shapeFlag:0,B=b.children,{patchFlag:H,shapeFlag:j}=b;if(H>0){if(H&128){No($,B,P,E,A,M,R,O,N);return}else if(H&256){At($,B,P,E,A,M,R,O,N);return}}j&8?(Q&16&&oo($,A,M),B!==$&&h(P,B)):Q&16?j&16?No($,B,P,E,A,M,R,O,N):oo($,A,M,!0):(Q&8&&h(P,""),j&16&&Ye(B,P,E,A,M,R,O,N))},At=(p,b,P,E,A,M,R,O,N)=>{p=p||_n,b=b||_n;const $=p.length,Q=b.length,B=Math.min($,Q);let H;for(H=0;H<B;H++){const j=b[H]=N?fo(b[H]):zt(b[H]);z(p[H],j,P,null,A,M,R,O,N)}$>Q?oo(p,A,M,!0,!1,B):Ye(b,P,E,A,M,R,O,N,B)},No=(p,b,P,E,A,M,R,O,N)=>{let $=0;const Q=b.length;let B=p.length-1,H=Q-1;for(;$<=B&&$<=H;){const j=p[$],K=b[$]=N?fo(b[$]):zt(b[$]);if(zo(j,K))z(j,K,P,null,A,M,R,O,N);else break;$++}for(;$<=B&&$<=H;){const j=p[B],K=b[H]=N?fo(b[H]):zt(b[H]);if(zo(j,K))z(j,K,P,null,A,M,R,O,N);else break;B--,H--}if($>B){if($<=H){const j=H+1,K=j<Q?b[j].el:E;for(;$<=H;)z(null,b[$]=N?fo(b[$]):zt(b[$]),P,K,A,M,R,O,N),$++}}else if($>H)for(;$<=B;)Ue(p[$],A,M,!0),$++;else{const j=$,K=$,fe=new Map;for($=K;$<=H;$++){const Je=b[$]=N?fo(b[$]):zt(b[$]);Je.key!=null&&fe.set(Je.key,$)}let ue,Ie=0;const be=H-K+1;let Be=!1,_t=0;const Dt=new Array(be);for($=0;$<be;$++)Dt[$]=0;for($=j;$<=B;$++){const Je=p[$];if(Ie>=be){Ue(Je,A,M,!0);continue}let Xe;if(Je.key!=null)Xe=fe.get(Je.key);else for(ue=K;ue<=H;ue++)if(Dt[ue-K]===0&&zo(Je,b[ue])){Xe=ue;break}Xe===void 0?Ue(Je,A,M,!0):(Dt[Xe-K]=$+1,Xe>=_t?_t=Xe:Be=!0,z(Je,b[Xe],P,null,A,M,R,O,N),Ie++)}const qo=Be?jp(Dt):_n;for(ue=qo.length-1,$=be-1;$>=0;$--){const Je=K+$,Xe=b[Je],ft=b[Je+1],Tt=Je+1<Q?ft.el||Cu(ft):E;Dt[$]===0?z(null,Xe,P,Tt,A,M,R,O,N):Be&&(ue<0||$!==qo[ue]?wt(Xe,P,Tt,2):ue--)}}},wt=(p,b,P,E,A=null)=>{const{el:M,type:R,transition:O,children:N,shapeFlag:$}=p;if($&6){wt(p.component.subTree,b,P,E);return}if($&128){p.suspense.move(b,P,E);return}if($&64){R.move(p,b,P,Ft);return}if(R===U){r(M,b,P);for(let B=0;B<N.length;B++)wt(N[B],b,P,E);r(p.anchor,b,P);return}if(R===ar){ae(p,b,P);return}if(E!==2&&$&1&&O)if(E===0)O.persisted&&!M[Pt]?r(M,b,P):(O.beforeEnter(M),r(M,b,P),dt(()=>O.enter(M),A));else{const{leave:B,delayLeave:H,afterLeave:j}=O,K=()=>{p.ctx.isUnmounted?a(M):r(M,b,P)},fe=()=>{const ue=M._isLeaving||!!M[Pt];M._isLeaving&&M[Pt](!0),O.persisted&&!ue?K():B(M,()=>{K(),j&&j()})};H?H(M,K,fe):fe()}else r(M,b,P)},Ue=(p,b,P,E=!1,A=!1)=>{const{type:M,props:R,ref:O,children:N,dynamicChildren:$,shapeFlag:Q,patchFlag:B,dirs:H,cacheIndex:j,memo:K}=p;if(B===-2&&(A=!1),O!=null&&(Zt(),Zn(O,null,P,p,!0),eo()),j!=null&&(b.renderCache[j]=void 0),Q&256){b.ctx.deactivate(p);return}const fe=Q&1&&H,ue=!el(p);let Ie;if(ue&&(Ie=R&&R.onVnodeBeforeUnmount)&&Ut(Ie,b,p),Q&6)to(p.component,P,E);else{if(Q&128){p.suspense.unmount(P,E);return}fe&&Uo(p,null,b,"beforeUnmount"),Q&64?p.type.remove(p,b,P,Ft,E):$&&!$.hasOnce&&(M!==U||B>0&&B&64)?oo($,b,P,!1,!0):(M===U&&B&384||!A&&Q&16)&&oo(N,b,P),E&&kt(p)}const be=K!=null&&j==null;(ue&&(Ie=R&&R.onVnodeUnmounted)||fe||be)&&dt(()=>{Ie&&Ut(Ie,b,p),fe&&Uo(p,null,b,"unmounted"),be&&(p.el=null)},P)},kt=p=>{const{type:b,el:P,anchor:E,transition:A}=p;if(b===U){Ke(P,E);return}if(b===ar){V(p);return}const M=()=>{a(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(p.shapeFlag&1&&A&&!A.persisted){const{leave:R,delayLeave:O}=A,N=()=>R(P,M);O?O(p.el,M,N):N()}else M()},Ke=(p,b)=>{let P;for(;p!==b;)P=T(p),a(p),p=P;a(b)},to=(p,b,P)=>{const{bum:E,scope:A,job:M,subTree:R,um:O,m:N,a:$}=p;Ya(N),Ya($),E&&Hl(E),A.stop(),M&&(M.flags|=8,Ue(R,p,b,P)),O&&dt(O,b),dt(()=>{p.isUnmounted=!0},b)},oo=(p,b,P,E=!1,A=!1,M=0)=>{for(let R=M;R<p.length;R++)Ue(p[R],b,P,E,A)},no=p=>{if(p.shapeFlag&6)return no(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const b=T(p.anchor||p.el),P=b&&b[ip];return P?T(P):b};let ho=!1;const Oo=(p,b,P)=>{let E;p==null?b._vnode&&(Ue(b._vnode,null,null,!0),E=b._vnode.component):z(b._vnode||null,p,b,null,null,null,P),b._vnode=p,ho||(ho=!0,Da(E),Qs(),ho=!1)},Ft={p:z,um:Ue,m:wt,r:kt,mt:Ee,mc:Ye,pc:ge,pbc:ce,n:no,o:e};return{render:Oo,hydrate:void 0,createApp:Pp(Oo)}}function rr({type:e,props:t},l){return l==="svg"&&e==="foreignObject"||l==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:l}function Ko({effect:e,job:t},l){l?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _u(e,t,l=!1){const r=e.children,a=t.children;if(Y(r)&&Y(a))for(let s=0;s<r.length;s++){const u=r[s];let f=a[s];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=a[s]=fo(a[s]),f.el=u.el),!l&&f.patchFlag!==-2&&_u(u,f)),f.type===hi&&(f.patchFlag===-1&&(f=a[s]=fo(f)),f.el=u.el),f.type===ut&&!f.el&&(f.el=u.el)}}function jp(e){const t=e.slice(),l=[0];let r,a,s,u,f;const m=e.length;for(r=0;r<m;r++){const w=e[r];if(w!==0){if(a=l[l.length-1],e[a]<w){t[r]=a,l.push(r);continue}for(s=0,u=l.length-1;s<u;)f=s+u>>1,e[l[f]]<w?s=f+1:u=f;w<e[l[s]]&&(s>0&&(t[r]=l[s-1]),l[s]=r)}}for(s=l.length,u=l[s-1];s-- >0;)l[s]=u,u=t[u];return l}function Iu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Iu(t)}function Ya(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Cu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Cu(t.subTree):null}const xu=e=>e.__isSuspense;function Hp(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):ep(e)}const U=Symbol.for("v-fgt"),hi=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),ar=Symbol.for("v-stc"),ol=[];let yt=null;function _(e=!1){ol.push(yt=e?null:[])}function Up(){ol.pop(),yt=ol[ol.length-1]||null}let al=1;function Zl(e,t=!1){al+=e,e<0&&yt&&t&&(yt.hasOnce=!0)}function Pu(e){return e.dynamicChildren=al>0?yt||_n:null,Up(),al>0&&yt&&yt.push(e),e}function I(e,t,l,r,a,s){return Pu(i(e,t,l,r,a,s,!0))}function Su(e,t,l,r,a){return Pu(xe(e,t,l,r,a,!0))}function ei(e){return e?e.__v_isVNode===!0:!1}function zo(e,t){return e.type===t.type&&e.key===t.key}const $u=({key:e})=>e??null,Kl=({ref:e,ref_key:t,ref_for:l})=>(typeof e=="number"&&(e=""+e),e!=null?De(e)||it(e)||oe(e)?{i:St,r:e,k:t,f:!!l}:e:null);function i(e,t=null,l=null,r=0,a=null,s=e===U?0:1,u=!1,f=!1){const m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$u(t),ref:t&&Kl(t),scopeId:Ys,slotScopeIds:null,children:l,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:s,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:St};return f?(ti(m,l),s&128&&e.normalize(m)):l&&(m.shapeFlag|=De(l)?8:16),al>0&&!u&&yt&&(m.patchFlag>0||s&6)&&m.patchFlag!==32&&yt.push(m),m}const xe=Kp;function Kp(e,t=null,l=null,r=0,a=null,s=!1){if((!e||e===bp)&&(e=ut),ei(e)){const f=To(e,t,!0);return l&&ti(f,l),al>0&&!s&&yt&&(f.shapeFlag&6?yt[yt.indexOf(e)]=f:yt.push(f)),f.patchFlag=-2,f}if(om(e)&&(e=e.__vccOpts),t){t=Gp(t);let{class:f,style:m}=t;f&&!De(f)&&(t.class=X(f)),ke(m)&&(Lr(m)&&!Y(m)&&(m=je({},m)),t.style=Ge(m))}const u=De(e)?1:xu(e)?128:Zs(e)?64:ke(e)?4:oe(e)?2:0;return i(e,t,l,r,a,u,s,!0)}function Gp(e){return e?Lr(e)||gu(e)?je({},e):e:null}function To(e,t,l=!1,r=!1){const{props:a,ref:s,patchFlag:u,children:f,transition:m}=e,w=t?Qp(a||{},t):a,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:w,key:w&&$u(w),ref:t&&t.ref?l&&s?Y(s)?s.concat(Kl(t)):[s,Kl(t)]:Kl(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&To(e.ssContent),ssFallback:e.ssFallback&&To(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return m&&r&&Zo(h,m.clone(h)),h}function Gl(e=" ",t=0){return xe(hi,null,e,t)}function ve(e="",t=!1){return t?(_(),Su(ut,null,e)):xe(ut,null,e)}function zt(e){return e==null||typeof e=="boolean"?xe(ut):Y(e)?xe(U,null,e.slice()):ei(e)?fo(e):xe(hi,null,String(e))}function fo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:To(e)}function ti(e,t){let l=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Y(t))l=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),ti(e,a()),a._c&&(a._d=!0));return}else{l=32;const a=t._;!a&&!gu(t)?t._ctx=St:a===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(oe(t)){if(r&65){ti(e,{default:t});return}t={default:t,_ctx:St},l=32}else t=String(t),r&64?(l=16,t=[Gl(t)]):l=8;e.children=t,e.shapeFlag|=l}function Qp(...e){const t={};for(let l=0;l<e.length;l++){const r=e[l];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=X([t.class,r.class]));else if(a==="style")t.style=Ge([t.style,r.style]);else if(ri(a)){const s=t[a],u=r[a];u&&s!==u&&!(Y(s)&&s.includes(u))?t[a]=s?[].concat(s,u):u:u==null&&s==null&&!ai(a)&&(t[a]=u)}else a!==""&&(t[a]=r[a])}return t}function Ut(e,t,l,r=null){Mt(e,t,7,[l,r])}const zp=du();let Yp=0;function Jp(e,t,l){const r=e.type,a=(t?t.appContext:e.appContext)||zp,s={uid:Yp++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new If(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bu(r,a),emitsOptions:fu(r,a),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:r.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,setupContext:null,suspense:l,suspenseId:l?l.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=$p.bind(null,s),e.ce&&e.ce(s),s}let ct=null;const jr=()=>ct||St;let oi,Ir;{const e=di(),t=(l,r)=>{let a;return(a=e[l])||(a=e[l]=[]),a.push(r),s=>{a.length>1?a.forEach(u=>u(s)):a[0](s)}};oi=t("__VUE_INSTANCE_SETTERS__",l=>ct=l),Ir=t("__VUE_SSR_SETTERS__",l=>sl=l)}const fl=e=>{const t=ct;return oi(e),e.scope.on(),()=>{e.scope.off(),oi(t)}},Ja=()=>{ct&&ct.scope.off(),oi(null)};function Mu(e){return e.vnode.shapeFlag&4}let sl=!1;function Xp(e,t=!1,l=!1){t&&Ir(t);const{props:r,children:a}=e.vnode,s=Mu(e);Op(e,r,s,t),Fp(e,a,l||t);const u=s?Zp(e,t):void 0;return t&&Ir(!1),u}function Zp(e,t){const l=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yp);const{setup:r}=l;if(r){Zt();const a=e.setupContext=r.length>1?tm(e):null,s=fl(e),u=dl(r,e,0,[e.props,a]),f=Is(u);if(eo(),s(),(f||e.sp)&&!el(e)&&iu(e),f){if(u.then(Ja,Ja),t)return u.then(m=>{Xa(e,m)}).catch(m=>{pi(m,e,0)});e.asyncDep=u}else Xa(e,u)}else Au(e)}function Xa(e,t,l){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=Us(t)),Au(e)}function Au(e,t,l){const r=e.type;e.render||(e.render=r.render||Jt);{const a=fl(e);Zt();try{wp(e)}finally{eo(),a()}}}const em={get(e,t){return lt(e,"get",""),e[t]}};function tm(e){const t=l=>{e.exposed=l||{}};return{attrs:new Proxy(e.attrs,em),slots:e.slots,emit:e.emit,expose:t}}function bi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Us(jf(e.exposed)),{get(t,l){if(l in t)return t[l];if(l in tl)return tl[l](e)},has(t,l){return l in t||l in tl}})):e.proxy}function om(e){return oe(e)&&"__vccOpts"in e}const q=(e,t)=>zf(e,t,sl);function nm(e,t,l){try{Zl(-1);const r=arguments.length;return r===2?ke(t)&&!Y(t)?ei(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(r>3?l=Array.prototype.slice.call(arguments,2):r===3&&ei(l)&&(l=[l]),xe(e,t,l))}finally{Zl(1)}}const lm="3.5.39";/**
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Cr;const Za=typeof window<"u"&&window.trustedTypes;if(Za)try{Cr=Za.createPolicy("vue",{createHTML:e=>e})}catch{}const Tu=Cr?e=>Cr.createHTML(e):e=>e,im="http://www.w3.org/2000/svg",rm="http://www.w3.org/1998/Math/MathML",co=typeof document<"u"?document:null,es=co&&co.createElement("template"),am={insert:(e,t,l)=>{t.insertBefore(e,l||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,l,r)=>{const a=t==="svg"?co.createElementNS(im,e):t==="mathml"?co.createElementNS(rm,e):l?co.createElement(e,{is:l}):co.createElement(e);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>co.createTextNode(e),createComment:e=>co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>co.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,l,r,a,s){const u=l?l.previousSibling:t.lastChild;if(a&&(a===s||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),l),!(a===s||!(a=a.nextSibling)););else{es.innerHTML=Tu(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const f=es.content;if(r==="svg"||r==="mathml"){const m=f.firstChild;for(;m.firstChild;)f.appendChild(m.firstChild);f.removeChild(m)}t.insertBefore(f,l)}return[u?u.nextSibling:t.firstChild,l?l.previousSibling:t.lastChild]}},$o="transition",Gn="animation",$n=Symbol("_vtc"),Eu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Nu=je({},tu,Eu),sm=e=>(e.displayName="Transition",e.props=Nu,e),ht=sm((e,{slots:t})=>nm(ap,Ou(e),t)),Go=(e,t=[])=>{Y(e)?e.forEach(l=>l(...t)):e&&e(...t)},ts=e=>e?Y(e)?e.some(t=>t.length>1):e.length>1:!1;function Ou(e){const t={};for(const W in e)W in Eu||(t[W]=e[W]);if(e.css===!1)return t;const{name:l="v",type:r,duration:a,enterFromClass:s=`${l}-enter-from`,enterActiveClass:u=`${l}-enter-active`,enterToClass:f=`${l}-enter-to`,appearFromClass:m=s,appearActiveClass:w=u,appearToClass:h=f,leaveFromClass:x=`${l}-leave-from`,leaveActiveClass:T=`${l}-leave-active`,leaveToClass:F=`${l}-leave-to`}=e,D=um(a),z=D&&D[0],ye=D&&D[1],{onBeforeEnter:le,onEnter:ne,onEnterCancelled:ae,onLeave:V,onLeaveCancelled:se,onBeforeAppear:$e=le,onAppear:He=ne,onAppearCancelled:Ye=ae}=t,Z=(W,de,Ee,Me)=>{W._enterCancelled=Me,Mo(W,de?h:f),Mo(W,de?w:u),Ee&&Ee()},ce=(W,de)=>{W._isLeaving=!1,Mo(W,x),Mo(W,F),Mo(W,T),de&&de()},_e=W=>(de,Ee)=>{const Me=W?He:ne,Pe=()=>Z(de,W,Ee);Go(Me,[de,Pe]),os(()=>{Mo(de,W?m:s),Kt(de,W?h:f),ts(Me)||ns(de,r,z,Pe)})};return je(t,{onBeforeEnter(W){Go(le,[W]),Kt(W,s),Kt(W,u)},onBeforeAppear(W){Go($e,[W]),Kt(W,m),Kt(W,w)},onEnter:_e(!1),onAppear:_e(!0),onLeave(W,de){W._isLeaving=!0;const Ee=()=>ce(W,de);Kt(W,x),W._enterCancelled?(Kt(W,T),xr(W)):(xr(W),Kt(W,T)),os(()=>{W._isLeaving&&(Mo(W,x),Kt(W,F),ts(V)||ns(W,r,ye,Ee))}),Go(V,[W,Ee])},onEnterCancelled(W){Z(W,!1,void 0,!0),Go(ae,[W])},onAppearCancelled(W){Z(W,!0,void 0,!0),Go(Ye,[W])},onLeaveCancelled(W){ce(W),Go(se,[W])}})}function um(e){if(e==null)return null;if(ke(e))return[sr(e.enter),sr(e.leave)];{const t=sr(e);return[t,t]}}function sr(e){return mf(e)}function Kt(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.add(l)),(e[$n]||(e[$n]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const l=e[$n];l&&(l.delete(t),l.size||(e[$n]=void 0))}function os(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cm=0;function ns(e,t,l,r){const a=e._endId=++cm,s=()=>{a===e._endId&&r()};if(l!=null)return setTimeout(s,l);const{type:u,timeout:f,propCount:m}=qu(e,t);if(!u)return r();const w=u+"end";let h=0;const x=()=>{e.removeEventListener(w,T),s()},T=F=>{F.target===e&&++h>=m&&x()};setTimeout(()=>{h<m&&x()},f+1),e.addEventListener(w,T)}function qu(e,t){const l=window.getComputedStyle(e),r=D=>(l[D]||"").split(", "),a=r(`${$o}Delay`),s=r(`${$o}Duration`),u=ls(a,s),f=r(`${Gn}Delay`),m=r(`${Gn}Duration`),w=ls(f,m);let h=null,x=0,T=0;t===$o?u>0&&(h=$o,x=u,T=s.length):t===Gn?w>0&&(h=Gn,x=w,T=m.length):(x=Math.max(u,w),h=x>0?u>w?$o:Gn:null,T=h?h===$o?s.length:m.length:0);const F=h===$o&&/\b(?:transform|all)(?:,|$)/.test(r(`${$o}Property`).toString());return{type:h,timeout:x,propCount:T,hasTransform:F}}function ls(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((l,r)=>is(l)+is(e[r])))}function is(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xr(e){return(e?e.ownerDocument:document).body.offsetHeight}function dm(e,t,l){const r=e[$n];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):l?e.setAttribute("class",t):e.className=t}const rs=Symbol("_vod"),Lu=Symbol("_vsh"),fm=Symbol(""),pm=/(?:^|;)\s*display\s*:/;function mm(e,t,l){const r=e.style,a=De(l);let s=!1;if(l&&!a){if(t)if(De(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();l[f]==null&&zn(r,f,"")}else for(const u in t)l[u]==null&&zn(r,u,"");for(const u in l){u==="display"&&(s=!0);const f=l[u];f!=null?gm(e,u,!De(t)&&t?t[u]:void 0,f)||zn(r,u,f):zn(r,u,"")}}else if(a){if(t!==l){const u=r[fm];u&&(l+=";"+u),r.cssText=l,s=pm.test(l)}}else t&&e.removeAttribute("style");rs in e&&(e[rs]=s?r.display:"",e[Lu]&&(r.display="none"))}const as=/\s*!important$/;function zn(e,t,l){if(Y(l))l.forEach(r=>zn(e,t,r));else if(l==null&&(l=""),t.startsWith("--"))e.setProperty(t,l);else{const r=vm(e,t);as.test(l)?e.setProperty(Eo(r),l.replace(as,""),"important"):e[r]=l}}const ss=["Webkit","Moz","ms"],ur={};function vm(e,t){const l=ur[t];if(l)return l;let r=qt(t);if(r!=="filter"&&r in e)return ur[t]=r;r=Ps(r);for(let a=0;a<ss.length;a++){const s=ss[a]+r;if(s in e)return ur[t]=s}return t}function gm(e,t,l,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&De(r)&&l===r}const us="http://www.w3.org/1999/xlink";function cs(e,t,l,r,a,s=wf(t)){r&&t.startsWith("xlink:")?l==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,l):l==null||s&&!$s(l)?e.removeAttribute(t):e.setAttribute(t,s?"":Xt(l)?String(l):l)}function ds(e,t,l,r,a){if(t==="innerHTML"||t==="textContent"){l!=null&&(e[t]=t==="innerHTML"?Tu(l):l);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const f=s==="OPTION"?e.getAttribute("value")||"":e.value,m=l==null?e.type==="checkbox"?"on":"":String(l);(f!==m||!("_value"in e))&&(e.value=m),l==null&&e.removeAttribute(t),e._value=l;return}let u=!1;if(l===""||l==null){const f=typeof e[t];f==="boolean"?l=$s(l):l==null&&f==="string"?(l="",u=!0):f==="number"&&(l=0,u=!0)}try{e[t]=l}catch{}u&&e.removeAttribute(a||t)}function Yo(e,t,l,r){e.addEventListener(t,l,r)}function hm(e,t,l,r){e.removeEventListener(t,l,r)}const fs=Symbol("_vei");function bm(e,t,l,r,a=null){const s=e[fs]||(e[fs]={}),u=s[t];if(r&&u)u.value=r;else{const[f,m]=km(t);if(r){const w=s[t]=Cm(r,a);Yo(e,f,w,m)}else u&&(hm(e,f,u,m),s[t]=void 0)}}const ym=/(Once|Passive|Capture)$/,wm=/^on:?(?:Once|Passive|Capture)$/;function km(e){let t,l;for(;(l=e.match(ym))&&!wm.test(e);)t||(t={}),e=e.slice(0,e.length-l[1].length),t[l[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Eo(e.slice(2)),t]}let cr=0;const _m=Promise.resolve(),Im=()=>cr||(_m.then(()=>cr=0),cr=Date.now());function Cm(e,t){const l=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=l.attached)return;const a=l.value;if(Y(a)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const u=a.slice(),f=[r];for(let m=0;m<u.length&&!r._stopped;m++){const w=u[m];w&&Mt(w,t,5,f)}}else Mt(a,t,5,[r])};return l.value=e,l.attached=Im(),l}const ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xm=(e,t,l,r,a,s)=>{const u=a==="svg";t==="class"?dm(e,r,u):t==="style"?mm(e,l,r):ri(t)?ai(t)||bm(e,t,l,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pm(e,t,r,u))?(ds(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&cs(e,t,r,u,s,t!=="value")):e._isVueCE&&(Sm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!De(r)))?ds(e,qt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),cs(e,t,r,u))};function Pm(e,t,l,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&oe(l));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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return ps(t)&&De(l)?!1:t in e}function Sm(e,t){const l=e._def.props;if(!l)return!1;const r=qt(t);return Array.isArray(l)?l.some(a=>qt(a)===r):Object.keys(l).some(a=>qt(a)===r)}const Ru=new WeakMap,Fu=new WeakMap,ni=Symbol("_moveCb"),ms=Symbol("_enterCb"),$m=e=>(delete e.props.mode,e),Mm=$m({name:"TransitionGroup",props:je({},Nu,{tag:String,moveClass:String}),setup(e,{slots:t}){const l=jr(),r=eu();let a,s;return au(()=>{if(!a.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!Nm(a[0].el,l.vnode.el,u)){a=[];return}a.forEach(Am),a.forEach(Tm);const f=a.filter(Em);xr(l.vnode.el),f.forEach(m=>{const w=m.el,h=w.style;Kt(w,u),h.transform=h.webkitTransform=h.transitionDuration="";const x=w[ni]=T=>{T&&T.target!==w||(!T||T.propertyName.endsWith("transform"))&&(w.removeEventListener("transitionend",x),w[ni]=null,Mo(w,u))};w.addEventListener("transitionend",x)}),a=[]}),()=>{const u=he(e),f=Ou(u);let m=u.tag||U;if(a=[],s)for(let w=0;w<s.length;w++){const h=s[w];h.el&&h.el instanceof Element&&!h.el[Lu]&&(a.push(h),Zo(h,rl(h,f,r,l)),Ru.set(h,Du(h.el)))}s=t.default?Fr(t.default()):[];for(let w=0;w<s.length;w++){const h=s[w];h.key!=null&&Zo(h,rl(h,f,r,l))}return xe(m,null,s)}}}),dr=Mm;function Am(e){const t=e.el;t[ni]&&t[ni](),t[ms]&&t[ms]()}function Tm(e){Fu.set(e,Du(e.el))}function Em(e){const t=Ru.get(e),l=Fu.get(e),r=t.left-l.left,a=t.top-l.top;if(r||a){const s=e.el,u=s.style,f=s.getBoundingClientRect();let m=1,w=1;return s.offsetWidth&&(m=f.width/s.offsetWidth),s.offsetHeight&&(w=f.height/s.offsetHeight),(!Number.isFinite(m)||m===0)&&(m=1),(!Number.isFinite(w)||w===0)&&(w=1),Math.abs(m-1)<.01&&(m=1),Math.abs(w-1)<.01&&(w=1),u.transform=u.webkitTransform=`translate(${r/m}px,${a/w}px)`,u.transitionDuration="0s",e}}function Du(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Nm(e,t,l){const r=e.cloneNode(),a=e[$n];a&&a.forEach(f=>{f.split(/\s+/).forEach(m=>m&&r.classList.remove(m))}),l.split(/\s+/).forEach(f=>f&&r.classList.add(f)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:u}=qu(r);return s.removeChild(r),u}const li=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Y(t)?l=>Hl(t,l):t};function Om(e){e.target.composing=!0}function vs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pn=Symbol("_assign");function gs(e,t,l){return t&&(e=e.trim()),l&&(e=ci(e)),e}const qe={created(e,{modifiers:{lazy:t,trim:l,number:r}},a){e[Pn]=li(a);const s=r||a.props&&a.props.type==="number";Yo(e,t?"change":"input",u=>{u.target.composing||e[Pn](gs(e.value,l,s))}),(l||s)&&Yo(e,"change",()=>{e.value=gs(e.value,l,s)}),t||(Yo(e,"compositionstart",Om),Yo(e,"compositionend",vs),Yo(e,"change",vs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:l,modifiers:{lazy:r,trim:a,number:s}},u){if(e[Pn]=li(u),e.composing)return;const f=(s||e.type==="number")&&!/^0\d/.test(e.value)?ci(e.value):e.value,m=t??"";if(f===m)return;const w=e.getRootNode();(w instanceof Document||w instanceof ShadowRoot)&&w.activeElement===e&&e.type!=="range"&&(r&&t===l||a&&e.value.trim()===m)||(e.value=m)}},hs={deep:!0,created(e,{value:t,modifiers:{number:l}},r){const a=si(t);Yo(e,"change",()=>{const s=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>l?ci(ii(u)):ii(u));e[Pn](e.multiple?a?new Set(s):s:s[0]),e._assigning=!0,kn(()=>{e._assigning=!1})}),e[Pn]=li(r)},mounted(e,{value:t}){bs(e,t)},beforeUpdate(e,t,l){e[Pn]=li(l)},updated(e,{value:t}){e._assigning||bs(e,t)}};function bs(e,t){const l=e.multiple,r=Y(t);if(!(l&&!r&&!si(t))){for(let a=0,s=e.options.length;a<s;a++){const u=e.options[a],f=ii(u);if(l)if(r){const m=typeof f;m==="string"||m==="number"?u.selected=t.some(w=>String(w)===String(f)):u.selected=_f(t,f)>-1}else u.selected=t.has(f);else if(cl(ii(u),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!l&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ii(e){return"_value"in e?e._value:e.value}const qm=["ctrl","shift","alt","meta"],Lm={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)=>qm.some(l=>e[`${l}Key`]&&!t.includes(l))},bn=(e,t)=>{if(!e)return e;const l=e._withMods||(e._withMods={}),r=t.join(".");return l[r]||(l[r]=((a,...s)=>{for(let u=0;u<t.length;u++){const f=Lm[t[u]];if(f&&f(a,t))return}return e(a,...s)}))},Rm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fm=(e,t)=>{const l=e._withKeys||(e._withKeys={}),r=t.join(".");return l[r]||(l[r]=(a=>{if(!("key"in a))return;const s=Eo(a.key);if(t.some(u=>u===s||Rm[u]===s))return e(a)}))},Dm=je({patchProp:xm},am);let ys;function Bm(){return ys||(ys=Bp(Dm))}const Vm=((...e)=>{const t=Bm().createApp(...e),{mount:l}=t;return t.mount=r=>{const a=jm(r);if(!a)return;const s=t._component;!oe(s)&&!s.render&&!s.template&&(s.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const u=l(a,!1,Wm(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},t});function Wm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jm(e){return De(e)?document.querySelector(e):e}const Hm="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",J={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,quickProfileDraft:"profiles/quick-draft",quickProfileDraftSave:"profiles/quick-draft/save",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowExecuteCharacter:e=>`workflows/${e}/execute-character`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,reviewPolicy:"review/policy",reviewPolicyValidate:"review/policy/validate",reviewPolicySave:"review/policy/save",nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",storageMigrate:"storage/migrate",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,assetImportPack:"assets/import-pack",wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class en extends Error{constructor(l,r,a={}){super(r);Xi(this,"code");Xi(this,"details");this.name="ApiClientError",this.code=l,this.details=a}}async function ze(e,t){return Bu(e,{method:"GET",query:t})}async function bt(e,t){return Bu(e,{method:"POST",body:t})}function fr(){const e=typeof window>"u"?void 0:window.AstrBotPluginPage;return e&&(typeof e.apiGet=="function"||typeof e.apiPost=="function")?"plugin-bridge":"direct-fetch"}async function Bu(e,t={}){const l=await Um(e,t);if(l!==void 0)return ws(l);const r=Qm(e,t.query);let a;try{a=await fetch(r,{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})}catch(u){throw new en("network_unreachable","无法连接 ImageStudio 后端接口",{endpoint:e,transport:"direct-fetch",url:r,reason:u instanceof Error?u.message:String(u)})}const s=await Km(a,e,r);if(!a.ok&&!Vu(s))throw new en("http_error",`接口请求失败(HTTP ${a.status})`,{endpoint:e,transport:"direct-fetch",url:r,status:a.status,status_text:a.statusText});return ws(s)}async function Um(e,t){const l=window.AstrBotPluginPage;if(!l)return;const r=t.method??"GET";if(typeof l.ready=="function"&&await l.ready(),r==="GET"&&typeof l.apiGet=="function")return l.apiGet(e,Gm(t.query));if(r==="POST"&&typeof l.apiPost=="function")return l.apiPost(e,t.body)}function ws(e){if(!Vu(e))return e;if(!e.ok)throw new en(e.error_code,e.message,e.details);return e.data}async function Km(e,t,l){const r=e.headers.get("content-type")??"";if(!(r.includes("application/json")||r.includes("+json"))){const s=(await e.text()).slice(0,240);throw new en("invalid_api_response","接口返回了非 JSON 响应",{endpoint:t,transport:"direct-fetch",url:l,status:e.status,status_text:e.statusText,content_type:r,preview:s})}try{return await e.json()}catch(s){throw new en("invalid_api_response","接口返回格式不正确",{endpoint:t,transport:"direct-fetch",url:l,status:e.status,status_text:e.statusText,content_type:r,reason:s instanceof Error?s.message:String(s)})}}function Vu(e){return!!(e&&typeof e=="object"&&"ok"in e)}function Gm(e){if(!e)return;const t={};for(const[l,r]of Object.entries(e))r!==void 0&&(t[l]=r);return t}function Qm(e,t){const l=e.replace(/^\/+/,""),r=new URL(`${Hm}/${l}`,window.location.origin);for(const[a,s]of Object.entries(t??{}))s!==void 0&&r.searchParams.set(a,String(s));return`${r.pathname}${r.search}`}const zm=["data-theme"],Ym={class:"brand"},Jm={class:"icon-nav"},Xm={class:"nav-scroll"},Zm=["title","aria-label","onClick"],ev={class:"nav-glyph","aria-hidden":"true"},tv={class:"nav-label"},ov={class:"workbench"},nv={class:"topbar"},lv={class:"active-heading"},iv={class:"search-box","data-overlay-root":"search"},rv={key:0,class:"search-results"},av=["onMousedown"],sv={key:0},uv={class:"top-actions"},cv=["aria-checked","title"],dv={class:"notification-wrap","data-overlay-root":"notifications"},fv=["aria-expanded"],pv={key:0},mv={class:"notification-popover"},vv={key:0},gv=["aria-expanded"],hv={class:"log-wrap","data-overlay-root":"logs"},bv=["aria-expanded"],yv={key:0,id:"log-popover",class:"log-popover","data-overlay-root":"logs"},wv={key:0,class:"state-card bad"},kv={key:"empty",class:"empty-row"},_v=["title"],Iv=["disabled"],Cv={key:0,id:"palette-panel",class:"palette-panel","data-overlay-root":"palette"},xv=["onClick"],Pv={key:0,id:"notification-panel",class:"notification-panel","data-overlay-root":"notifications"},Sv={class:"filter-tabs"},$v=["onClick"],Mv=["src"],Av={key:1},Tv=["onClick"],Ev={key:"empty",class:"empty-row"},Nv={key:1,class:"generate-page","data-module":"generate"},Ov={class:"generate-hero"},qv={class:"generate-mode-actions","aria-label":"生成模式入口"},Lv=["aria-pressed","onClick"],Rv={key:0,class:"image-generation-workspace"},Fv={class:"image-generation-canvas"},Dv={class:"image-preview-panel"},Bv={key:0,class:"image-preview-list"},Vv=["onClick"],Wv={class:"preview-thumb"},jv=["src","alt"],Hv={key:1},Uv={key:1,class:"image-preview-empty"},Kv={class:"image-display-panel"},Gv={class:"image-stage"},Qv=["title"],zv=["src","alt"],Yv={key:1,class:"image-stage-empty"},Jv={class:"image-info-card"},Xv={class:"image-composer"},Zv={class:"image-composer-input"},eg={key:0,class:"image-composer-hint","aria-hidden":"true"},tg={class:"image-last-request"},og={class:"image-composer-toolbar"},ng={class:"image-composer-left"},lg={class:"model-select-control",title:"选择生图模型"},ig=["disabled"],rg=["value"],ag={key:0,class:"model-state"},sg={key:1,class:"model-state"},ug={key:2,class:"model-state"},cg={key:3,class:"model-state"},dg={class:"image-composer-right"},fg=["disabled"],pg=["aria-label"],mg={class:"image-viewer-card","data-overlay-root":"imageViewer"},vg={class:"image-viewer-actions"},gg=["src","alt"],hg={key:0,class:"image-viewer-backdrop workflow-compare-backdrop",role:"dialog","aria-modal":"true","aria-label":"草稿平铺对比"},bg={class:"workflow-compare-card","data-overlay-root":"imageViewer"},yg={class:"image-viewer-actions"},wg=["title","onClick"],kg=["src","alt"],_g={key:1,class:"quick-profile-workspace"},Ig={class:"quick-profile-layout"},Cg={class:"quick-profile-surface quick-profile-library"},xg={class:"quick-profile-section-header"},Pg={class:"quick-profile-library-list"},Sg=["data-profile-card-id","onClick"],$g={class:"quick-profile-library-thumb"},Mg=["src","alt"],Ag={class:"quick-profile-library-copy"},Tg={class:"quick-profile-library-meta"},Eg={class:"quick-profile-surface quick-profile-detail"},Ng={class:"quick-profile-profile-card"},Og=["title"],qg=["src","alt"],Lg={class:"quick-profile-profile-field name"},Rg={class:"quick-profile-profile-field identity"},Fg={class:"quick-profile-profile-field style"},Dg={class:"quick-profile-profile-field summary"},Bg={class:"quick-profile-surface quick-profile-image-panel"},Vg={class:"quick-profile-section-header"},Wg={class:"quick-profile-hero-image"},jg=["title"],Hg=["src","alt"],Ug={class:"quick-profile-image-types"},Kg=["onClick"],Gg=["src","alt"],Qg={class:"quick-profile-surface quick-profile-material-zone"},zg={class:"quick-profile-section-header"},Yg={class:"quick-profile-material-strip"},Jg=["data-material-category","aria-expanded","onClick"],Xg=["src","alt"],Zg={key:1,class:"quick-profile-empty-media-mark"},eh={class:"quick-profile-material-copy"},th={class:"quick-profile-material-picker-header"},oh={key:0,class:"quick-profile-material-picker-groups","aria-label":"配饰分类"},nh=["onClick"],lh=["data-material-reference-id","onClick"],ih={class:"quick-profile-material-picker-media"},rh=["src","alt"],ah={class:"quick-profile-material-picker-copy"},sh={key:0},uh={class:"quick-profile-material-picker-copy"},ch={class:"quick-profile-surface quick-profile-command-zone"},dh={class:"quick-profile-section-header"},fh={class:"quick-profile-command-list"},ph={class:"quick-profile-command-top"},mh={class:"feature-badge"},vh=["onClick"],gh={key:3,class:"feature-action"},hh={key:0,class:"image-viewer-backdrop quick-profile-detail-backdrop",role:"dialog","aria-modal":"true","aria-label":"角色设定详情"},bh={class:"quick-profile-detail-card","data-overlay-root":"quickProfileDetail"},yh=["src","alt"],wh={class:"quick-profile-detail-card-info"},kh=["aria-label"],_h={class:"quick-profile-viewer-card","data-overlay-root":"imageViewer"},Ih=["src","alt"],Ch={class:"quick-profile-viewer-info"},xh={key:2,class:"workflow-workspace"},Ph=["disabled"],Sh={class:"generate-status-grid workflow-status-grid"},$h={class:"workflow-layout"},Mh={class:"workflow-surface workflow-node-flow"},Ah={class:"workflow-section-header"},Th={class:"workflow-node-list"},Eh=["onClick"],Nh={class:"workflow-group-index"},Oh={class:"workflow-group-copy"},qh={class:"workflow-node-progress","aria-hidden":"true"},Lh={class:"workflow-node-meta"},Rh={class:"workflow-subnode-list"},Fh=["onClick"],Dh={class:"workflow-subnode-index"},Bh={class:"workflow-subnode-copy"},Vh={class:"workflow-surface workflow-preview-panel"},Wh={class:"workflow-section-header"},jh={key:0,class:"workflow-preview-tools workflow-preview-tools-split"},Hh={key:1,class:"workflow-preview-tools"},Uh={key:2,class:"workflow-preview-tools workflow-preview-tools-import"},Kh={key:0,class:"workflow-profile-import-stage"},Gh={class:"workflow-profile-import-card select"},Qh={class:"workflow-profile-import-list"},zh=["data-profile-card-id","onClick"],Yh={class:"workflow-profile-import-profile-field name"},Jh={class:"workflow-profile-import-profile-field identity"},Xh={class:"workflow-profile-import-profile-field style"},Zh={class:"workflow-profile-import-profile-field summary"},eb={class:"workflow-profile-import-current"},tb={key:1,class:"workflow-persona-split-stage"},ob={class:"workflow-persona-split-fields"},nb=["title","onClick"],lb=["src","alt"],ib={class:"workflow-preview-caption"},rb={key:1,class:"image-stage-empty"},ab={key:3,class:"workflow-draft-board"},sb={class:"workflow-draft-grid"},ub=["disabled","onClick"],cb={class:"workflow-draft-thumb"},db=["src","alt"],fb={key:1},pb={class:"workflow-draft-copy"},mb={class:"workflow-section-header"},vb={key:0,class:"workflow-persona-split-summary detail"},gb={key:1,class:"workflow-node-info"},hb={key:2,class:"workflow-lock-notice"},bb={class:"workflow-actions"},yb={key:0},wb={key:1},kb={key:2},_b={key:3},Ib={key:4},Cb={class:"workflow-action-grid"},xb={class:"feature-badge"},Pb=["disabled","onClick"],Sb={key:1,class:"feature-action"},$b={class:"image-chat-intro"},Mb={class:"image-composer"},Ab={class:"image-composer-input"},Tb=["disabled"],Eb={key:0,class:"image-composer-hint","aria-hidden":"true"},Nb={class:"image-last-request"},Ob={class:"image-composer-toolbar"},qb={class:"image-composer-left"},Lb={class:"model-select-control",title:"选择生图模型"},Rb=["disabled"],Fb=["value"],Db={key:0,class:"model-state"},Bb={key:1,class:"model-state"},Vb={class:"image-composer-right"},Wb=["disabled"],jb={id:"workflow-compare-panel",class:"workflow-compare-native-backdrop",role:"dialog","aria-modal":"true","aria-label":"草稿平铺对比"},Hb={class:"workflow-compare-card"},Ub={class:"image-viewer-actions"},Kb=["src","alt"],Gb=["aria-label"],Qb={class:"image-viewer-card","data-overlay-root":"imageViewer"},zb={class:"image-viewer-actions"},Yb=["src","alt"],Jb={key:0,class:"image-viewer-backdrop external-profile-import-backdrop",role:"dialog","aria-modal":"true","aria-label":"导入外部角色卡"},Xb={class:"external-profile-import-card","data-overlay-root":"externalProfileImport"},Zb={class:"external-profile-import-body"},ey={class:"external-profile-import-source"},ty={class:"external-profile-import-preview","aria-live":"polite"},oy=["disabled"],ny={key:0,class:"image-viewer-backdrop persona-questionnaire-backdrop",role:"dialog","aria-modal":"true","aria-label":"创建角色档案问卷"},ly={class:"persona-questionnaire-card","data-overlay-root":"personaQuestionnaire"},iy={class:"persona-questionnaire-body"},ry={class:"wide"},ay={class:"persona-questionnaire-footer-actions"},sy={class:"questionnaire-mode-switch",role:"group","aria-label":"问卷复杂度"},uy=["disabled"],cy={class:"overview-strip","data-module":"overview"},dy={class:"welcome-copy"},fy={class:"dashboard-layout"},py={class:"main-column"},my={class:"panel monitor-panel performance-summary-panel","data-module":"monitor"},vy={key:0,class:"state-card bad"},gy={class:"summary-metric-grid"},hy={class:"panel queue-panel","data-module":"queue"},by=["disabled"],yy={key:0,class:"state-card bad"},wy={key:1,class:"skeleton-list"},ky={key:2,class:"queue-list"},_y={class:"queue-main"},Iy={class:"progress-track"},Cy={key:3,class:"empty-state"},xy={class:"panel suggestions-panel","data-module":"suggestions"},Py={key:0,class:"suggestion-grid"},Sy=["onClick"],$y={key:1,class:"empty-state calm"},My={class:"monitor-column","data-module":"images"},Ay={class:"panel images-panel side-images-panel"},Ty={key:0,class:"state-card bad"},Ey={key:1,class:"side-image-list"},Ny={key:2,class:"side-image-list"},Oy={class:"thumb"},qy=["src","alt"],Ly={key:1},Ry={key:3,class:"empty-state"},Fy={key:3,class:"performance-detail-page","data-module":"performance"},Dy={class:"detail-hero"},By=["disabled"],Vy={key:0,class:"state-card bad detail-error"},Wy={class:"performance-metric-grid"},jy={class:"performance-detail-grid"},Hy={class:"panel performance-breakdown"},Uy={class:"panel performance-breakdown"},Ky={class:"panel performance-breakdown"},uo="配饰",yn="全部",Gy=12e3,ks=1600,Qy=34,zy=138,pr="ImageStudio Single Image",jl="standalone_single_image",Yy="character_gradual",Jy=sp({__name:"App",setup(e){var Oa;const t=[{key:"overview",label:"概览",icon:"□",module:"overview"},{key:"generate",label:"生成",icon:"+",module:"generate"},{key:"queue",label:"队列",icon:"≡",module:"queue"},{key:"performance",label:"性能",icon:"%",module:"performance"},{key:"gallery",label:"图库",icon:"▧",module:"images"},{key:"profiles",label:"角色",icon:"◇",module:"suggestions"},{key:"materials",label:"素材",icon:"◫",module:"images"},{key:"settings",label:"设置",icon:"◎",module:"settings"},{key:"logs",label:"日志",icon:"!",module:"logs"}],l=[{key:"image",label:"图片生成",detail:"提示词、模型、素材和结果"},{key:"quickProfile",label:"快速角色",detail:"角色草稿、素材和衣橱"},{key:"workflow",label:"角色工作流",detail:"多节点流程、队列和审核"}],r={image:["new-generation","prompt-compose","node-generate","model-route","material-pick","queue-control","review-select","gallery-archive"],quickProfile:["quick-profile","prompt-compose","material-pick","wardrobe-match","daily-outfit","gallery-archive"],workflow:["workflow-create","node-generate","model-route","material-pick","wardrobe-match","queue-control","review-select","gallery-archive"]},s=[{title:"星港夜巡",prompt:"银发少女站在星港甲板,远处是蓝绿色航灯,电影感半身像。",nodeId:"node-portrait-01",workflowId:"wf-starry-port",profileId:"profile-sora",model:"Nova Diffusion XL",size:"1024 x 1365",seed:"410239",duration:"12.4s",status:"已生成",source:"自然语言对话",colors:["#7168f0","#2fbda8","#f5c542"],createdAt:"2026-07-06T09:48:00+08:00"},{title:"雨巷霓光",prompt:"黑色短发角色撑透明伞,雨夜霓虹街头,湿润反光和浅景深。",nodeId:"node-scene-02",workflowId:"wf-neon-rain",profileId:"profile-luna",model:"Aurora RealMix",size:"1344 x 768",seed:"872114",duration:"9.8s",status:"已生成",source:"角色工作流",colors:["#3f7edc","#d65b7f","#20c997"],createdAt:"2026-07-06T10:06:00+08:00"},{title:"晨雾庭院",prompt:"白裙角色坐在古典庭院台阶,晨雾和柔光,清透水彩质感。",nodeId:"node-style-03",workflowId:"wf-garden-mist",profileId:"profile-yuan",model:"Pastel Story v3",size:"960 x 1280",seed:"165403",duration:"14.1s",status:"已精选",source:"快速角色",colors:["#209b8d","#f2a65a","#ffffff"],createdAt:"2026-07-06T10:24:00+08:00"},{title:"机房蓝焰",prompt:"赛博工程师检查发光服务器核心,冷蓝背景和橙色焊光。",nodeId:"node-tech-04",workflowId:"wf-core-lab",profileId:"profile-kai",model:"Mecha Vision Pro",size:"1536 x 864",seed:"339821",duration:"11.7s",status:"待审核",source:"节点重试",colors:["#1d4ed8","#f97316","#0f172a"],createdAt:"2026-07-06T10:41:00+08:00"},{title:"樱雪回廊",prompt:"粉色樱花与细雪同时落下,角色回头微笑,日系插画质感。",nodeId:"node-character-05",workflowId:"wf-sakura-snow",profileId:"profile-mika",model:"Anime Bloom 2.1",size:"1152 x 1536",seed:"520778",duration:"16.3s",status:"已生成",source:"自然语言对话",colors:["#ec4899","#93c5fd","#fef3c7"],createdAt:"2026-07-06T11:03:00+08:00"},{title:"荒原信标",prompt:"披风旅人在荒原信标下停步,沙尘、落日和长焦压缩空间。",nodeId:"node-world-06",workflowId:"wf-desert-beacon",profileId:"profile-ash",model:"Cinematic Render 5",size:"1408 x 896",seed:"704516",duration:"10.2s",status:"已归档",source:"工作流续跑",colors:["#d2a23a","#b45309","#334155"],createdAt:"2026-07-06T11:22:00+08:00"},{title:"海底图书馆",prompt:"透明穹顶下的海底图书馆,漂浮书页、鲸影和青色光束。",nodeId:"node-fantasy-07",workflowId:"wf-ocean-library",profileId:"profile-nami",model:"Dreamscape SDXL",size:"1216 x 912",seed:"918062",duration:"13.6s",status:"已生成",source:"素材引用",colors:["#0f766e","#06b6d4","#8b5cf6"],createdAt:"2026-07-06T11:39:00+08:00"},{title:"月台独白",prompt:"深夜空月台,角色靠着站牌写信,低饱和胶片颗粒和背光。",nodeId:"node-mood-08",workflowId:"wf-empty-platform",profileId:"profile-ren",model:"Film Grain Portrait",size:"1024 x 1024",seed:"246905",duration:"8.9s",status:"已生成",source:"自然语言对话",colors:["#475569","#a78bfa","#f8fafc"],createdAt:"2026-07-06T11:57:00+08:00"},{title:"玻璃温室",prompt:"玻璃温室中被藤蔓围绕的研究员,阳光碎片和绿色散景。",nodeId:"node-light-09",workflowId:"wf-glasshouse",profileId:"profile-ivy",model:"Soft Light Alpha",size:"896 x 1344",seed:"631480",duration:"15.5s",status:"待选图",source:"角色工作流",colors:["#22c55e","#84cc16","#eab308"],createdAt:"2026-07-06T12:15:00+08:00"},{title:"极昼列车",prompt:"极昼雪原上的高速列车,角色站在车窗旁,银白与淡金色调。",nodeId:"node-final-10",workflowId:"wf-polar-train",profileId:"profile-elin",model:"Hyper Detail 4K",size:"1600 x 900",seed:"803177",duration:"18.8s",status:"已精选",source:"最终成片",colors:["#e0f2fe","#38bdf8","#f59e0b"],createdAt:"2026-07-06T12:32:00+08:00"}].map((o,n)=>{const c=Wo(n+1,o.title,o.prompt,o.colors,qd(o.size)),v=`mock-generate-${String(n+1).padStart(2,"0")}`;return{image_id:v,node_id:o.nodeId,workflow_id:o.workflowId,profile_id:o.profileId,image_uri:`mock://generate/${v}`,thumbnail_uri:`mock://generate/${v}/thumbnail`,image_url:c,thumbnail_url:c,created_at:o.createdAt,title:o.title,prompt:o.prompt,model:o.model,size:o.size,seed:o.seed,duration:o.duration,status:o.status,source:o.source}}),u=[{id:"qp-material-style",label:"清透赛博插画",category:"风格",prompt:"clean cyber illustration, soft rim light, high detail, fresh color contrast",colors:["#3f7edc","#d65b7f","#2ec4b6"]},{id:"qp-material-portrait",label:"半身角色参考",category:"构图",prompt:"upper body character reference, clean silhouette, front view",colors:["#7168f0","#2fbda8","#f5c542"]},{id:"qp-material-outfit",label:"轻机能外套",category:"服装",prompt:"short utility jacket, layered black and teal outfit, compact accessories",colors:["#2f7a60","#111827","#d2a23a"]},{id:"qp-material-boots",label:"短靴结构",category:"鞋袜",prompt:"compact short boots, light mechanical sole, practical sci-fi design",colors:["#111827","#64748b","#2fbda8"]},{id:"qp-material-accessory",label:"发光臂章",category:"配饰",group:"臂部",prompt:"glowing armband, slim tactical accessory, small luminous details",colors:["#0f766e","#38bdf8","#f8fafc"]}],f={构图:[{label:"全身站姿参考",prompt:"full body standing reference, balanced silhouette, clean pose guide",colors:["#2f7a60","#d2a23a","#111827"]},{label:"双人互动构图",prompt:"two character interaction composition, clear spacing, narrative pose",colors:["#3f7edc","#2ec4b6","#f5c542"]},{label:"近景表情构图",prompt:"close-up expression framing, eye focus, soft portrait crop",colors:["#7168f0","#d65b7f","#f8fafc"]},{label:"动态奔跑构图",prompt:"dynamic running pose reference, diagonal motion, energetic silhouette",colors:["#0f766e","#38bdf8","#111827"]},{label:"背影回头构图",prompt:"back view looking over shoulder, clean negative space, elegant framing",colors:["#64748b","#a78bfa","#e0f2fe"]}],服装:[{label:"学院制服层次",prompt:"academy uniform layers, ribbon detail, clean tailored silhouette",colors:["#1e3a8a","#f8fafc","#d97706"]},{label:"户外斗篷套装",prompt:"outdoor cloak outfit, travel-ready layers, practical accessories",colors:["#475569","#84cc16","#d2a23a"]},{label:"轻甲战术装",prompt:"light armor tactical outfit, compact plates, flexible fabric",colors:["#111827","#64748b","#38bdf8"]},{label:"礼服披肩",prompt:"formal dress with shoulder cape, refined fabric folds, elegant trim",colors:["#d65b7f","#7168f0","#fef3c7"]},{label:"街头机能穿搭",prompt:"streetwear utility outfit, straps, pockets, relaxed silhouette",colors:["#0f766e","#111827","#f97316"]}],风格:[{label:"柔光厚涂",prompt:"soft light painterly rendering, smooth brush texture, warm highlights",colors:["#f2a65a","#93c5fd","#f8fafc"]},{label:"赛博冷光",prompt:"cyber cool lighting, crisp rim light, high contrast details",colors:["#1d4ed8","#06b6d4","#0f172a"]},{label:"水彩透明感",prompt:"transparent watercolor look, gentle edges, airy color wash",colors:["#2ec4b6","#e0f2fe","#d65b7f"]},{label:"胶片颗粒",prompt:"cinematic film grain, muted tones, soft lens atmosphere",colors:["#475569","#a78bfa","#f8fafc"]},{label:"清线漫画风",prompt:"clean line manga style, readable shapes, precise ink details",colors:["#111827","#f8fafc","#f5c542"]}],配饰:[{label:"透明护目镜",group:"眼部",prompt:"transparent goggles, subtle reflections, compact sci-fi accessory",colors:["#38bdf8","#f8fafc","#64748b"]},{label:"金属耳机",group:"头部",prompt:"metallic headset, small glowing accents, sleek side profile",colors:["#111827","#7168f0","#2ec4b6"]},{label:"发带与缎带",group:"头部",prompt:"hairband and ribbon accessory, soft fabric, expressive silhouette",colors:["#d65b7f","#fef3c7","#7168f0"]},{label:"机械手套",group:"手部",prompt:"mechanical gloves, articulated joints, subtle luminous details",colors:["#64748b","#0f766e","#38bdf8"]},{label:"徽章挂件",group:"胸前",prompt:"badge charm accessory, small emblem, readable decorative detail",colors:["#d2a23a","#f8fafc","#1e3a8a"]},{label:"颈环项链",group:"颈部",prompt:"slim choker necklace, tiny charm, refined neckline accessory",colors:["#111827","#d2a23a","#f8fafc"]},{label:"战术腰包",group:"腰部",prompt:"compact tactical waist pouch, layered straps, practical detail",colors:["#475569","#0f766e","#f5c542"]},{label:"透明雨披扣",group:"胸前",prompt:"transparent cape clasp, soft reflections, clean geometric accessory",colors:["#38bdf8","#e0f2fe","#64748b"]},{label:"发夹星标",group:"头部",prompt:"small star hair clip, subtle metallic shine, cute readable detail",colors:["#f5c542","#d65b7f","#f8fafc"]},{label:"轻薄腕表",group:"手部",prompt:"thin digital wristwatch, luminous face, compact modern accessory",colors:["#1d4ed8","#06b6d4","#0f172a"]},{label:"单肩小包",group:"腰部",prompt:"small crossbody pouch, clean strap, lightweight travel accessory",colors:["#2f7a60","#111827","#d2a23a"]},{label:"半透明面罩",group:"脸部",prompt:"translucent face mask, soft glow edge, sci-fi facial accessory",colors:["#7168f0","#38bdf8","#f8fafc"]},{label:"能量袖扣",group:"臂部",prompt:"energy sleeve cuff, small luminous lines, refined arm accessory",colors:["#0f766e","#38bdf8","#f8fafc"]},{label:"战术护臂",group:"臂部",prompt:"compact tactical forearm guard, layered plates, flexible straps",colors:["#111827","#64748b","#2fbda8"]},{label:"丝带臂环",group:"臂部",prompt:"soft ribbon arm band, flowing fabric, elegant character detail",colors:["#d65b7f","#fef3c7","#7168f0"]},{label:"数据腕环",group:"臂部",prompt:"data bracelet, holographic display, slim sci-fi wrist accessory",colors:["#1d4ed8","#06b6d4","#0f172a"]}],鞋袜:[{label:"长靴扣带",prompt:"tall boots with buckles, structured leather, clean sole design",colors:["#111827","#d2a23a","#64748b"]},{label:"运动短靴",prompt:"sporty ankle boots, lightweight sole, dynamic shape",colors:["#38bdf8","#111827","#f8fafc"]},{label:"礼装皮鞋",prompt:"formal leather shoes, polished finish, elegant heel profile",colors:["#0f172a","#475569","#f5c542"]},{label:"机械外骨骼靴",prompt:"mechanical exoskeleton boots, compact supports, sci-fi sole",colors:["#64748b","#2ec4b6","#111827"]},{label:"轻便凉鞋",prompt:"light sandals, simple straps, clean summer character design",colors:["#f2a65a","#e0f2fe","#2f7a60"]}]},m=[...u,...Object.entries(f).flatMap(([o,n])=>n.map((c,v)=>({...c,id:`qp-material-placeholder-${o}-${v+1}`,category:o})))],w=[{id:"profile-mika",name:"雾岛未花",identity:"边境医疗官",personality:"温和、敏锐、慢热",hairColor:"银灰色",hairstyle:"低马尾,额前碎发",eyeColor:"浅紫色",clothing:"白色医疗夹克、透明护目镜、便携药箱",style:"低饱和科幻医疗插画,柔光,干净背景",negative:"low quality, messy hands, text artifacts",status:"已归档",updatedAt:"12 分钟前",materialId:"qp-material-portrait",colors:["#64748b","#a78bfa","#e0f2fe"]},{id:"profile-ren",name:"白川莲",identity:"资料库管理员",personality:"理性、安静、记忆力强",hairColor:"深蓝色",hairstyle:"齐肩短发,整齐刘海",eyeColor:"琥珀色",clothing:"深色长外套、金属书签、轻便手套",style:"现代幻想设定图,暖色边缘光,细节清晰",negative:"duplicate face, broken fingers, blurry",status:"待补图",updatedAt:"38 分钟前",materialId:"qp-material-style",colors:["#1e3a8a","#d97706","#f8fafc"]},{id:"profile-nagi",name:"朝仓凪",identity:"空港机械师",personality:"爽朗、专注、动手快",hairColor:"棕色",hairstyle:"高马尾,发尾微卷",eyeColor:"蓝绿色",clothing:"短款工装背心、工具腰包、防滑短靴",style:"清爽工业风角色设计,明亮环境光,高可读轮廓",negative:"bad anatomy, low detail, overexposed",status:"可生成",updatedAt:"1 小时前",materialId:"qp-material-boots",colors:["#0f766e","#d97706","#f4f4f5"]}],h=[{title:"生成图片",description:"进入生成流程入口",keywords:["生成","图片","prompt","生图"],nav:"generate",module:"generate"},{title:"查看队列",description:"检查等待、运行和失败任务",keywords:["队列","任务","等待","失败","重试"],nav:"queue",module:"queue"},{title:"最近图片",description:"查看最新生成结果",keywords:["最近","图片","图库","缩略图"],nav:"gallery",module:"images"},{title:"模型设置",description:"检查模型站点和调用配置",keywords:["模型","provider","配置","站点"],nav:"settings",module:"settings"},{title:"数据库设置",description:"检查存储和数据库连接",keywords:["数据库","存储","sqlite","postgres"],nav:"settings",module:"settings"},{title:"日志审计",description:"查看错误、生成和系统事件",keywords:["日志","错误","审计","事件"],nav:"logs",module:"logs"},{title:"今日成本",description:"检查生成调用和成本提醒",keywords:["成本","费用","调用","统计"],nav:"performance",module:"performance"},{title:"性能监控",description:"查看服务、队列、调用和存储详情",keywords:["性能","监控","worker","运行","存储"],nav:"performance",module:"performance"},{title:"素材库",description:"查看素材和衣橱相关入口",keywords:["素材","衣橱","角色","材料"],nav:"materials",module:"images"}],x=[{name:"星图紫青",primary:"#7168f0",accent:"#2fbda8"},{name:"极光蓝青",primary:"#3f7edc",accent:"#2ec4b6"},{name:"松石玫红",primary:"#209b8d",accent:"#d65b7f"},{name:"墨绿金盏",primary:"#2f7a60",accent:"#d2a23a"}],T=L(null),F=L(sa()),D=L(null),z=L(null),ye=L([]),le=L([]),ne=L([]),ae=L(yc()),V=L("image"),se=L(""),$e=L(""),He=L(""),Ye=L(""),Z=L([]),ce=L(!1),_e=L(""),W=L(null),de=L(""),Ee=L("avatar"),Me=L("portrait-03"),Pe=L(""),re=L(["mock-generate-01","mock-generate-04","mock-generate-07","mock-generate-10"]),ge=L(""),At=L(""),No=L(""),wt=L({name:"星港绘理",identity:"近未来港区巡查员",personality:"冷静、可靠、行动快",hairColor:"黑色",hairstyle:"短发,带一侧碎发",eyeColor:"青绿色",clothing:"轻机能外套、短靴、发光臂章",style:"清透赛博插画,柔和边缘光,高细节角色设定",negative:"low quality, blurry, bad anatomy, extra fingers"}),Ue=L(((Oa=u[0])==null?void 0:Oa.id)??""),kt=L(Object.fromEntries(u.map(o=>[o.category,o.id]))),Ke=L(""),to=L(yn),oo=L(null),no=L(!1),ho=L(!1),Oo=L(!1),Ft=L(""),bo=L("simple"),p=L(xc()),b=L([]),P=L([]),E=L(0),A=L(!1),M=L(""),R=L(!1),O=L(""),N=L(!1),$=L(""),Q=L(""),B=L(!1),H=L(""),j=L(!1),K=L(""),fe=L(!1),ue=L(""),Ie=L({}),be=L({}),Be=L({}),_t=[{key:"roleCore",label:"角色核心"},{key:"personality",label:"性格关键词"},{key:"appearance",label:"外观特征"},{key:"outfit",label:"服装与配饰"},{key:"scene",label:"常用场景"},{key:"avoid",label:"避雷内容"}],Dt=L("draft"),qo=L(""),Je=L(!1),Xe=L(!1),ft=L("dark"),Tt=L(x[0].primary),yo=L(x[0].accent),pl=L(!1),ml=L(!1),vl=L(!1),Et=L(!1),Lo=L("generation"),Bt=L(1),wo=L({x:0,y:0}),lo=L(!1),Ro=L({pointerId:-1,x:0,y:0,offsetX:0,offsetY:0}),gl=L(!0),hl=L("all"),It=L([]),tn=L([]),on=L(!1),nn=L(!1),yi=L(!1),bl=L(!1),pt=L(""),Mn=L(""),ln=L(""),yl=L(""),wi=L(""),Vt={theme:"imagestudio.navigation.theme",primary:"imagestudio.navigation.primary",accent:"imagestudio.navigation.accent",readNotifications:"imagestudio.navigation.readNotifications",dismissedNotifications:"imagestudio.navigation.dismissedNotifications"},Hr=["search","palette","notifications","logs","imageViewer","materialPicker","personaQuestionnaire","quickProfileDetail","externalProfileImport"],Wu={profile_brief:"persona-split",headshot:"portrait-01",half_body:"portrait-02",full_body:"fullbody-01",expression_sheet:"sheet-split",pose_sheet:"detail-hands-01",style_lock:"hires-fix",final_pack:"archive",fast_profile:"persona-split",fast_candidates:"portrait-01",fast_final:"archive"};let rn,wl;const Ur=q(()=>on.value||nn.value||yi.value),Kr=q(()=>F.value.state),ju=q(()=>F.value.state!=="connected"),an=q(()=>Ft.value.trim()),ki=q(()=>vd(an.value)),_i=q(()=>_t.map(o=>({...o,value:ki.value[o.key],recognized:ki.value.recognizedKeys.includes(o.key)}))),Hu=q(()=>_i.value.filter(o=>o.recognized).length),Uu=q(()=>t.find(o=>o.key===ae.value)??t[0]),ko=q(()=>{var n;const o=(n=D.value)==null?void 0:n.queue;return o?o.pending+o.running+o.failed+o.dead_letter:0}),Fo=q(()=>{var n;return((n=z.value)!=null&&n.items.length?z.value.items:Ku.value).slice(0,6)}),Ku=q(()=>{var o;return((o=D.value)==null?void 0:o.recent_jobs.map(Hd).filter(Ud))??[]}),_o=q(()=>{var o;return((o=D.value)==null?void 0:o.recent_images.slice(0,8))??[]}),Io=q(()=>{const o=[...Z.value,..._o.value.map(Ol)],n=o.length?[...o,...s]:s,c=new Set;return n.filter(v=>c.has(v.image_id)?!1:(c.add(v.image_id),!0)).slice(0,10)}),Re=q(()=>Io.value.length?Io.value.find(o=>o.image_id===se.value)??Io.value[0]:null),Gu=q(()=>{const o=Re.value;return o?[{label:"状态",value:o.status},{label:"来源",value:o.source},{label:"工作流",value:o.workflow_id||"-"},{label:"节点",value:o.node_id||"-"},{label:"角色",value:o.profile_id||"-"},{label:"模型",value:o.model},{label:"尺寸",value:o.size},{label:"Seed",value:o.seed},{label:"耗时",value:o.duration},{label:"提示词",value:o.prompt},{label:"时间",value:gn(o.created_at)}]:[{label:"来源",value:"等待生成"},{label:"状态",value:"暂无图片"},{label:"提示",value:"左侧生成结果会在这里显示"}]}),Ii=q(()=>`translate3d(${wo.value.x}px, ${wo.value.y}px, 0) scale(${Bt.value})`),Gr=q(()=>`${Math.round(Bt.value*100)}%`),Qu=q(()=>Rl(s.map(o=>o.model)).map(o=>({value:o,label:o,provider:"示例",status:"fallback"}))),Qr=q(()=>ne.value.filter(Rd).map(o=>({value:`${o.provider_id}/${o.model_id}`,label:o.model_id,provider:o.provider_id,status:o.status}))),Do=q(()=>{const o=Qr.value.length?Qr.value:Qu.value,n=new Set;return o.filter(c=>n.has(c.value)?!1:(n.add(c.value),!0))}),sn=q(()=>Do.value.find(o=>o.value===de.value)??Do.value[0]),Co=q(()=>u.reduce((o,n)=>{const c=kt.value[n.category],v=m.find(y=>y.id===c&&y.category===n.category);return v&&o.push(v),o},[])),Ci=q(()=>m.find(o=>o.id===Ue.value)??Co.value[0]??null),zu=q(()=>{const o=Co.value.length;return o?`${o} 个已选`:"未使用"}),kl=q(()=>m.filter(o=>o.category===Ke.value)),Yu=q(()=>[yn,...Rl(m.filter(o=>o.category===uo).map(o=>o.group??"其他"))]),zr=q(()=>Ke.value!==uo||to.value===yn?kl.value:kl.value.filter(o=>(o.group??"其他")===to.value)),Ju=q(()=>{const o=zr.value.length,n=kl.value.length;return Ke.value===uo&&to.value!==yn?`${o} / ${n} 项`:`${n} 项`}),Yr=q(()=>Ke.value===uo&&to.value!==yn),Xu=q(()=>{var o;return((o=oo.value)==null?void 0:o.category)===Ke.value?`${oo.value.category}添加入口已预留`:"跳转到素材库添加"}),ie=q(()=>{const o=wt.value,n=o.name.trim()||"未命名角色",c=o.personality.trim(),v=[n,o.identity.trim(),c?`personality: ${c}`:""].filter(Boolean).join(", "),y=[o.hairColor.trim()?`${o.hairColor.trim()} hair`:"",o.hairstyle.trim(),o.eyeColor.trim()?`${o.eyeColor.trim()} eyes`:"",o.clothing.trim(),...Co.value.map(C=>C.prompt)].filter(Boolean).join(", ");return{name:n,basePrompt:v,appearancePrompt:y,stylePrompt:o.style.trim(),negativePrompt:o.negative.trim()}}),Zu=q(()=>Wo(11,ie.value.name,ie.value.appearancePrompt,["#7168f0","#2fbda8","#f5c542"],[1,1])),ec=q(()=>[{label:"基础",value:ie.value.basePrompt},{label:"外观",value:ie.value.appearancePrompt},{label:"风格",value:ie.value.stylePrompt||"-"},{label:"负面",value:ie.value.negativePrompt||"-"}]),An=q(()=>{var o;return[...Td([{id:"draft",...wt.value,status:(o=T.value)!=null&&o.feature_flags.quick_profile?"编辑中":"草稿",updatedAt:"当前草稿",materialId:Ue.value,colors:["#7168f0","#2fbda8","#f5c542"]},...P.value,...b.value,...w])]}),Oe=q(()=>An.value.find(o=>o.id===Dt.value)??An.value[0]),Tn=q(()=>{var n;const o=(n=Oe.value)==null?void 0:n.workflowId;return o?ka(o):[]}),Jr=q(()=>!0),Bo=q(()=>[{id:"avatar",label:"头像",detail:"五官、表情、发型",state:"1:1",imageUrl:Zu.value,aspectRatio:[1,1],prompt:`${ie.value.name}, face reference, ${ie.value.basePrompt}, ${ie.value.appearancePrompt}`,createdAt:"2026-07-06T12:41:00+08:00",source:"快速角色 / 头像预览"},{id:"bust",label:"半身像",detail:"上半身服装与姿态",state:"3:4",imageUrl:Wo(12,`${ie.value.name} 半身像`,ie.value.appearancePrompt,["#3f7edc","#2ec4b6","#d65b7f"],[3,4]),aspectRatio:[3,4],prompt:`${ie.value.name}, upper body character reference, ${ie.value.appearancePrompt}`,createdAt:"2026-07-06T12:43:00+08:00",source:"快速角色 / 半身像"},{id:"stand",label:"立绘",detail:"全身比例与轮廓",state:"2:3",imageUrl:Wo(13,`${ie.value.name} 立绘`,ie.value.basePrompt,["#2f7a60","#111827","#d2a23a"],[2,3]),aspectRatio:[2,3],prompt:`${ie.value.name}, full body character standing pose, ${ie.value.basePrompt}, ${ie.value.stylePrompt}`,createdAt:"2026-07-06T12:45:00+08:00",source:"快速角色 / 立绘"},{id:"sheet",label:"设定图",detail:"多角度与细节拆分",state:"16:9",imageUrl:Wo(14,`${ie.value.name} 设定图`,ie.value.stylePrompt,["#475569","#7168f0","#f5c542"],[16,9]),aspectRatio:[16,9],prompt:`${ie.value.name}, character design sheet, multi angle, outfit details, ${ie.value.stylePrompt}`,createdAt:"2026-07-06T12:48:00+08:00",source:"快速角色 / 设定图"}]),Ze=q(()=>Bo.value.find(o=>o.id===Ee.value)??Bo.value[0]),un=q(()=>Bo.value.find(o=>o.id==="bust")??Ze.value),tc=q(()=>{var c;const[o,n]=((c=Ze.value)==null?void 0:c.aspectRatio)??[4,3];return{"--quick-profile-target-ratio":`${o} / ${n}`}}),oc=q(()=>{var c;const[o,n]=((c=Ze.value)==null?void 0:c.aspectRatio)??[4,3];return o>n?"landscape":"portrait"}),Xr=q(()=>{var c;const[o,n]=((c=un.value)==null?void 0:c.aspectRatio)??[3,4];return{"--quick-profile-target-ratio":`${o} / ${n}`}}),nc=q(()=>{var n;const o=Ze.value;return o?[{label:"类型",value:`${o.label} / ${o.state}`},{label:"说明",value:o.detail},{label:"模型",value:((n=sn.value)==null?void 0:n.label)??"未选择模型"},{label:"来源",value:o.source},{label:"生成时间",value:gn(o.createdAt)},{label:"提示词",value:o.prompt},{label:"负面提示词",value:ie.value.negativePrompt||"-"}]:[]}),Zr=q(()=>{var y,C;const o=(y=T.value)==null?void 0:y.feature_flags,n=(C=T.value)==null?void 0:C.permissions,c=!!(n!=null&&n.can_write),v=!!(n!=null&&n.can_manage_materials);return[{id:"persona",title:"生成人设",badge:"Persona",detail:"通过问卷整理身份、性格、外观和风格。",endpoint:J.quickProfileDraft,state:o!=null&&o.quick_profile?"问卷入口":"占位入口",tone:"primary",action:"填写问卷",enabled:!0},{id:"save",title:"保存角色",badge:"Profile",detail:"把当前人设预览归档为可复用角色。",endpoint:J.quickProfileDraftSave,state:c?"可写入":"只读",tone:c?"accent":"neutral",action:"保存档案",enabled:c,nav:"profiles",module:"suggestions"},{id:"material",title:"整理素材集",badge:"Material",detail:"把已选参考整理为角色专属素材包。",endpoint:J.materials,state:o!=null&&o.material_library?"已开启":"未开启",tone:o!=null&&o.material_library?"accent":"neutral",action:"整理素材",enabled:!!(o!=null&&o.material_library&&v),nav:"materials",module:"images"},{id:"wardrobe",title:"衣橱匹配",badge:"Wardrobe",detail:"按当前人设匹配一次性服装与配饰候选。",endpoint:J.wardrobeMatch(":profileId"),state:o!=null&&o.wardrobe?"已开启":"未开启",tone:o!=null&&o.wardrobe?"primary":"neutral",action:"匹配候选",enabled:!!(o!=null&&o.wardrobe&&v),nav:"materials",module:"images"},{id:"daily",title:"每日穿搭",badge:"Outfit",detail:"按日期、场景和状态生成长期穿搭方案。",endpoint:J.privateCompanionDailyOutfit,state:o!=null&&o.private_companion_integration?"已开启":"未开启",tone:o!=null&&o.private_companion_integration?"warn":"neutral",action:"生成方案",enabled:!!(o!=null&&o.private_companion_integration)},{id:"workflow",title:"进入工作流",badge:"Flow",detail:"把当前粗略人设转入工作流继续细化。",endpoint:J.profileWorkflows(":profileId"),state:o!=null&&o.workspace?"已开启":"未开启",tone:o!=null&&o.workspace?"primary":"neutral",action:"细化人设",enabled:!!(o!=null&&o.workspace)}]}),cn=q(()=>{var S;if(Tn.value.length)return[Cd(),...Tn.value.map((k,te)=>xd(k,te))];const o=((S=sn.value)==null?void 0:S.label)??"未选择模型",n=ie.value.name,c=ie.value.basePrompt,v=ie.value.appearancePrompt,y=ie.value.stylePrompt||"统一角色设定风格",C=ie.value.negativePrompt||"低质量, 结构错误, 多余肢体";return[{id:"brief-import",step:"01",title:"导入粗略人设",detail:"读取快速角色里的姓名、身份、性格、外观和已选参考素材,生成本次测试流程的基础档案。",status:"done",badge:"Profile",model:"本地档案",duration:"00:06",imageId:"mock-generate-03",prompt:`${c}; ${v}; negative: ${C}`,phase:"输入",progress:100,queue:"WF-S130-001",attempt:"1 / 1",eta:"已完成",input:"快速角色草稿、已选素材、最近一次对话指令",result:"基础档案 1 份,参考素材 5 组",dependsOn:"无",outputCount:"1 份档案"},{id:"persona-split",step:"02",title:"LLM 拆解设定",detail:"把粗略人设拆成身份、外观、服装、鞋袜、配饰、禁用项和风格锁定字段。",status:"done",badge:"LLM",model:"Prompt Planner",duration:"00:18",imageId:"mock-generate-04",prompt:`${n}, structured character bible, identity, personality, appearance, outfit, accessories`,phase:"拆解",progress:100,queue:"WF-S130-002",attempt:"1 / 1",eta:"已完成",input:"基础档案",result:"结构化字段 7 类,冲突项 0 个",dependsOn:"01 导入粗略人设",outputCount:"7 类字段"},{id:"prompt-plan",step:"03",title:"提示词规划",detail:"为头像、半身、全身、设定图和细节拆分分别生成正向提示词、负向提示词和权重建议。",status:"done",badge:"Prompt",model:"Prompt Planner",duration:"00:24",imageId:"mock-generate-02",prompt:`${n}, prompt matrix, portrait, bust, full body, design sheet, ${y}`,phase:"规划",progress:100,queue:"WF-S130-003",attempt:"1 / 1",eta:"已完成",input:"结构化字段、素材标签",result:"节点提示词 6 条,负向提示词 1 条",dependsOn:"02 LLM 拆解设定",outputCount:"6 条提示词"},{id:"material-bind",step:"04",title:"参考素材绑定",detail:"把风格、构图、服装、鞋袜、配饰参考写入节点参数,并记录哪些节点必须继承。",status:"done",badge:"Material",model:"素材库映射",duration:"00:11",imageId:"mock-generate-06",prompt:"bind style, composition, clothing, socks, shoes and accessory references to workflow nodes",phase:"素材",progress:100,queue:"WF-S130-004",attempt:"1 / 1",eta:"已完成",input:"参考素材 5 类",result:"绑定规则 12 条,强制继承 4 条",dependsOn:"03 提示词规划",outputCount:"12 条规则"},{id:"portrait-01",step:"05",title:"头像草稿 01",detail:"第一轮并发生成头像与半身候选,用来快速确认角色气质和基础脸型。",status:"done",badge:"Draft x4",model:o,duration:"01:12",imageId:"mock-generate-01",imageIds:["mock-generate-01","mock-generate-02","mock-generate-03","mock-generate-04"],prompt:`${n}, portrait draft round 1, ${v}, ${y}`,phase:"草稿",progress:100,queue:"Q-2048",attempt:"1 / 1",eta:"已完成",input:"头像提示词、半身提示词、风格参考、构图参考",result:"返回 4 张候选图;保留 02 的五官方向和 03 的发色气质,衣领和肩部不采用。",dependsOn:"04 参考素材绑定",outputCount:"4 张 / 锁定 2 项",round:"草稿 01",lockedItems:"五官方向采用草稿 02;发色与冷静气质采用草稿 03;排除夸张机甲衣领。",decision:"不直接采用,进入草稿 02 继续收敛。"},{id:"portrait-02",step:"06",title:"头像草稿 02",detail:"继承第一轮锁定项,重新生成更稳定的半身候选,重点修正服装和表情。",status:"done",badge:"Draft x4",model:o,duration:"01:05",imageId:"mock-generate-05",imageIds:["mock-generate-02","mock-generate-05","mock-generate-06","mock-generate-07"],prompt:`${n}, portrait draft round 2, keep selected face and hair, refine outfit, ${y}`,phase:"草稿",progress:100,queue:"Q-2056",attempt:"1 / 1",eta:"已完成",input:"草稿 01 锁定项、服装参考、负向排除项",result:"返回 4 张候选图;锁定 05 的上衣轮廓和 07 的眼神,继续去掉多余肩饰。",dependsOn:"05 头像草稿 01",outputCount:"4 张 / 追加 2 项",round:"草稿 02",lockedItems:"继承草稿 01 的五官和发色;新增上衣轮廓采用草稿 05;眼神采用草稿 07。",decision:"角色方向基本确定,但需要再跑一轮统一发型和服装边缘。"},{id:"portrait-03",step:"07",title:"头像草稿 03",detail:"第三轮根据前两轮锁定项继续细化,模拟系统自动追加的新草稿节点。",status:"running",badge:"Draft x4",model:o,duration:"00:42",imageId:"mock-generate-01",imageIds:["mock-generate-01","mock-generate-04","mock-generate-07","mock-generate-10"],prompt:`${n}, portrait draft round 3, locked face, locked hair color, locked upper outfit, clean details, ${y}`,phase:"草稿",progress:68,queue:"Q-2071",attempt:"1 / 2",eta:"约 26 秒",input:"草稿 01-02 锁定项、服装修正意见、表情一致性要求",result:"已返回 4 张候选图,等待选择最终头像与半身基准。",dependsOn:"06 头像草稿 02",outputCount:"4 张草稿",round:"草稿 03",lockedItems:"继承五官、发色、眼神、上衣轮廓;继续约束发梢长度和肩部装饰。",decision:"本轮用于确定头像基准;确认后进入全身草稿。"},{id:"fullbody-01",step:"08",title:"全身草稿 01",detail:"根据头像草稿 03 的锁定项生成全身比例、轮廓、鞋袜和主要配饰。",status:"waiting",badge:"Image x4",model:o,duration:"待开始",imageId:"mock-generate-05",imageIds:["mock-generate-05","mock-generate-06","mock-generate-07","mock-generate-08"],prompt:`${n}, full body draft round 1, inherit portrait draft round 3, outfit details, shoes, socks, accessories, ${y}`,phase:"草稿",progress:0,queue:"等待 portrait-03",attempt:"0 / 2",eta:"约 2 分钟",input:"头像草稿 03、全身提示词、服装/鞋袜/配饰素材",result:"未开始,等待头像草稿确认。",dependsOn:"07 头像草稿 03",outputCount:"预计 4 张",round:"全身草稿 01",lockedItems:"继承头像基准、发色、眼神、上衣轮廓。",decision:"确认后进入局部细节补图。"},{id:"detail-hands-01",step:"09",title:"手部细节 01",detail:"对手部姿态和袖口结构单独补图,避免全身图里手部细节丢失。",status:"waiting",badge:"Detail",model:o,duration:"待开始",imageId:"mock-generate-09",imageIds:["mock-generate-09","mock-generate-10"],prompt:`${n}, hand detail reference, sleeve cuff, clean fingers, material callouts`,phase:"细节补图",progress:0,queue:"等待 fullbody-01",attempt:"0 / 1",eta:"约 1 分钟",input:"全身草稿、袖口材质、手部姿态要求",result:"未开始",dependsOn:"08 全身草稿 01",outputCount:"预计 2 张",round:"细节补图 01",lockedItems:"继承袖口结构和手套材质。",decision:"用于设定图局部标注。"},{id:"detail-accessory-01",step:"10",title:"配饰细节 01",detail:"第一轮配饰补图,生成发饰、臂章和随身物件的局部参考。",status:"waiting",badge:"Detail",model:o,duration:"待开始",imageId:"mock-generate-06",imageIds:["mock-generate-06","mock-generate-09"],prompt:`${n}, accessory detail round 1, hair clip, glowing armband, small props`,phase:"细节补图",progress:0,queue:"等待 fullbody-01",attempt:"0 / 1",eta:"约 1 分钟",input:"配饰分类素材、全身草稿、角色风格锁定项",result:"未开始",dependsOn:"08 全身草稿 01",outputCount:"预计 2 张",round:"配饰细节 01",lockedItems:"继承发饰位置、臂章发光色、随身小包尺寸。",decision:"如果配饰数量过多,会自动追加配饰细节 02。"},{id:"detail-accessory-02",step:"11",title:"配饰细节 02",detail:"模拟第一轮配饰不够清晰后,自动追加的第二轮配饰补图节点。",status:"waiting",badge:"Detail",model:o,duration:"待开始",imageId:"mock-generate-10",imageIds:["mock-generate-04","mock-generate-10"],prompt:`${n}, accessory detail round 2, refine selected armband and hair accessory, clean material callouts`,phase:"细节补图",progress:0,queue:"等待 detail-accessory-01",attempt:"0 / 1",eta:"约 1 分钟",input:"配饰细节 01 选择项、需要重跑的配饰类别",result:"未开始",dependsOn:"10 配饰细节 01",outputCount:"预计 2 张",round:"配饰细节 02",lockedItems:"继承已选发饰和臂章,重跑随身物件与材质标注。",decision:"补齐后进入设定图拆分。"},{id:"sheet-split",step:"12",title:"设定图拆分",detail:"组合三视图、表情、服装细节和材质标注,形成可复用的角色设定图草案。",status:"waiting",badge:"Sheet",model:"Design Sheet",duration:"待开始",imageId:"mock-generate-07",imageIds:["mock-generate-07","mock-generate-08","mock-generate-09"],prompt:`${n}, character design sheet, multi angle, expression set, outfit and material callouts`,phase:"设定图",progress:0,queue:"等待 detail-accessory-02",attempt:"0 / 2",eta:"约 3 分钟",input:"全身草稿、细节补图、角色提示词矩阵",result:"未开始",dependsOn:"09-11 细节补图节点",outputCount:"预计 3 张",round:"设定图草案",lockedItems:"继承头像基准、全身草稿、手部细节和配饰细节。",decision:"输出设定图草案后进入候选审核。"},{id:"candidate-review",step:"13",title:"候选审核",detail:"检查一致性、违禁项、服装冲突和画面质量,标记保留、重跑或进入高清修复。",status:"review",badge:"Review",model:"人工审核",duration:"等待选择",imageId:"mock-generate-05",imageIds:["mock-generate-01","mock-generate-05","mock-generate-07"],prompt:"compare candidates, score identity consistency, outfit accuracy, style consistency and image defects",phase:"审核",progress:0,queue:"人工待办",attempt:"0 / 1",eta:"等待操作",input:"全部草稿图、节点提示词、负向提示词",result:"等待选择主方案和需要重跑的节点",dependsOn:"05-12 草稿、细节补图与设定图节点",outputCount:"待选 3 组"},{id:"hires-fix",step:"14",title:"高清修复与统一风格",detail:"对选中的主方案做局部修复、高清放大和统一色调,让各张参考保持同一角色。",status:"waiting",badge:"Hires",model:o,duration:"待开始",imageId:"mock-generate-10",imageIds:["mock-generate-03","mock-generate-10"],prompt:`${n}, high resolution fix, consistent face, consistent color palette, clean linework`,phase:"修复",progress:0,queue:"等待 review",attempt:"0 / 2",eta:"约 2 分钟",input:"审核通过图、修复遮罩、统一风格参数",result:"未开始",dependsOn:"09 候选审核",outputCount:"预计 2 张"},{id:"archive",step:"15",title:"版本保存与入库",detail:"把通过审核的角色图、提示词、素材引用和流程日志保存为可复用角色版本。",status:"waiting",badge:"Archive",model:"角色库",duration:"待开始",imageId:"mock-generate-04",imageIds:["mock-generate-03","mock-generate-04","mock-generate-10"],prompt:"archive approved profile images, prompts, material references and workflow run log",phase:"入库",progress:0,queue:"等待 hires-fix",attempt:"0 / 1",eta:"约 20 秒",input:"最终图、提示词矩阵、素材引用、节点日志",result:"未开始",dependsOn:"10 高清修复与统一风格",outputCount:"预计 1 个版本"}]}),lc=[{id:"profile-prep",step:"01",title:"前期人设准备",detail:"导入粗略人设,拆解设定,并完成提示词规划和参考素材绑定。",badge:"Prep",previewNodeId:"material-bind",nodeIds:["brief-import","persona-split","prompt-plan","material-bind"]},{id:"portrait-draft",step:"02",title:"头像草稿",detail:"确认五官、发型、上半身服装和角色气质;确定后主预览显示头像草稿。",badge:"Draft",previewNodeId:"portrait-03",nodeIds:["portrait-01","portrait-02","portrait-03"]},{id:"body-sheet",step:"03",title:"全身与设定图",detail:"补齐全身比例、鞋袜配饰、细节补图和角色设定图。",badge:"Sheet",previewNodeId:"fullbody-01",nodeIds:["fullbody-01","detail-hands-01","detail-accessory-01","detail-accessory-02","sheet-split"]},{id:"review-archive",step:"04",title:"审核修复并入库",detail:"审核候选、高清修复、统一风格,并保存为可复用角色版本。",badge:"Review",previewNodeId:"candidate-review",nodeIds:["candidate-review","hires-fix","archive"]}],_l=q(()=>{const o=new Map(cn.value.map(n=>[n.id,n]));return lc.map(n=>{const c=n.nodeIds.map(k=>o.get(k)).filter(k=>!!k),v=c.filter(k=>k.status==="done").length,y=c.find(k=>k.status==="running"||k.status==="review"),C=c.find(k=>k.status!=="done"),S=y??C??c[c.length-1];return{...n,nodes:c,status:Ed(c),progress:Nd(c),eta:(S==null?void 0:S.eta)??(S==null?void 0:S.duration)??"已完成",summary:`${v} / ${c.length} 小节点`,outputCount:(S==null?void 0:S.outputCount)??"等待产物"}})}),xi=q(()=>_l.value.find(o=>o.nodeIds.includes(Me.value))??_l.value[0]),ic=q(()=>{var o,n;return((o=xi.value)==null?void 0:o.title)??((n=Ce.value)==null?void 0:n.title)??"节点预览"}),Ce=q(()=>cn.value.find(o=>o.id===Me.value)??cn.value[0]),dn=q(()=>{const o=Me.value;return Tn.value.find(n=>Bn(n)===o)??null}),fn=q(()=>{var n;const o=jt(((n=dn.value)==null?void 0:n.status)??"");return o==="completed"||o==="selected"}),Pi=q(()=>{var n;const o=dn.value;return o?`节点「${((n=Ce.value)==null?void 0:n.title)??o.title}」已经完成并锁定。要修改这里,请先从当前节点创建分支。`:""}),Si=q(()=>{var o;return((o=Ce.value)==null?void 0:o.id)==="brief-import"}),En=q(()=>{var o;return((o=Ce.value)==null?void 0:o.id)==="persona-split"}),Il=q(()=>{const o=Oe.value,n=Co.value.map(v=>v.label).join("、"),c=Ce.value;return[{id:"identity",title:"身份与性格",detail:"给后续提示词规划提供角色核心和行为约束。",fields:[mt("name","角色名",o.name,"用于所有节点保持角色一致。"),mt("identity","身份定位",o.identity,"职业、阵营、处境或世界观身份。"),mt("personality","性格关键词",o.personality,"外显性格、内在矛盾和行动方式。")]},{id:"appearance",title:"外观锚点",detail:"锁定头像、半身和全身节点必须继承的识别特征。",fields:[mt("hair_color","发色",o.hairColor,"头发主色,避免后续节点漂移。"),mt("hairstyle","发型",o.hairstyle,"长度、刘海、轮廓和辨识度。"),mt("eye_color","眼睛",o.eyeColor,"瞳色、眼神和表情基调。"),mt("body_feature","身形/记忆点",(c==null?void 0:c.lockedItems)??"","身高、体型、伤疤、义体等复杂问卷字段。")]},{id:"outfit",title:"服装与素材",detail:"拆成服装、配饰、参考素材和风格锁定项。",fields:[mt("clothing","服装轮廓",o.clothing,"上衣、鞋袜、材质和层次。"),mt("materials","参考素材",n,"当前已选素材会作为后续节点参考。"),mt("style","风格锁定",o.style,"画风、镜头、光照、世界观氛围。")]},{id:"guard",title:"约束与负面项",detail:"用于减少跑偏、冲突和不想要的设计方向。",fields:[mt("negative","禁用项",o.negative,"负面词、避雷内容和结构约束。"),mt("conflict","冲突检查",(c==null?void 0:c.decision)||"暂无冲突","字段确认后可进入提示词规划。"),mt("prompt","节点提示词",(c==null?void 0:c.prompt)??"","后端 LLM 拆解后写回的节点 prompt。")]}]}),Cl=q(()=>Il.value.reduce((o,n)=>o+n.fields.length,0)),xl=q(()=>Il.value.reduce((o,n)=>o+n.fields.filter(c=>c.status==="ready").length,0)),rc=q(()=>{const o=Ce.value;return[{label:"字段",value:`${xl.value}/${Cl.value}`,hint:"已拆解字段"},{label:"节点",value:Vo((o==null?void 0:o.status)??"waiting"),hint:(o==null?void 0:o.phase)??"persona-split"},{label:"来源",value:Oe.value.status,hint:Oe.value.updatedAt}]}),ac=q(()=>{const o=Ce.value;return`${o.title} / ${o.phase} / 自动识别节点上下文,交由后端 LLM 翻译为英文提示词注入。`}),Nn=q(()=>{const o=Vn(Tn.value.flatMap(n=>Be.value[n.node_id]??[]));return o.length?o:Io.value.slice(0,10)}),xo=q(()=>{var v,y,C;const o=new Map(Nn.value.map(S=>[S.image_id,S])),c=((y=(v=Ce.value)==null?void 0:v.imageIds)!=null&&y.length?Ce.value.imageIds:(C=Ce.value)!=null&&C.imageId?[Ce.value.imageId]:[]).map(S=>o.get(S)).filter(S=>!!S);return c.length?c:Nn.value}),Pl=q(()=>xo.value.length?xo.value.find(o=>o.image_id===Pe.value)??xo.value[0]:null),nt=q(()=>{const o=new Map(xo.value.map(c=>[c.image_id,c])),n=re.value.map(c=>o.get(c)).filter(c=>!!c);return n.length?n:Pl.value?[Pl.value]:[]}),$i=q(()=>{const o=nt.value.length;return o>4?"count-many":`count-${Math.max(o,1)}`}),sc=q(()=>{const o=Ce.value;return o?[{label:"阶段",value:o.phase??"-"},{label:"进度",value:`${o.progress??0}%`},{label:"队列",value:o.queue??"-"},{label:"尝试",value:o.attempt??"-"},{label:"预计",value:o.eta??"-"},{label:"依赖",value:o.dependsOn??"-"},{label:"轮次",value:o.round??"-"},{label:"锁定项",value:o.lockedItems??"-"},{label:"本轮结论",value:o.decision??"-"},{label:"输入",value:o.input??"-"},{label:"产物",value:o.result??o.outputCount??"-"},{label:"状态",value:Vo(o.status)},{label:"模型",value:o.model},{label:"耗时",value:o.duration},{label:"说明",value:o.detail},{label:"提示词",value:o.prompt}]:[]}),ea=q(()=>{var me,Ve,Fe,et;const o=(me=T.value)==null?void 0:me.feature_flags,n=(Ve=T.value)==null?void 0:Ve.permissions,c=!!(n!=null&&n.can_write),v=!!(n!=null&&n.can_retry_tasks),y=!!(o!=null&&o.workspace&&c),C=Oe.value,S=C==null?void 0:C.workflowId,k=!!(y&&S),te=!!(y&&(C!=null&&C.profileId)),d=Ce.value,G=(Fe=xi.value)==null?void 0:Fe.id,pe=N.value?"保存中":$.value?"保存失败":Q.value?gn(Q.value):S?"可保存":"先生成档案",Se={id:"version",title:"保存快照",detail:$.value||"把当前工作流、节点和选中角色卡摘要写入后端 workflow_history。",badge:"Save",state:pe,tone:S?"accent":"neutral",action:N.value?"保存中":"保存快照",enabled:!!(k&&!N.value),actionKey:"workflowSaveVersion"},gt={id:"branch-from-node",title:"从此节点创建分支",detail:ue.value||Pi.value||"当前节点已锁定,修改会进入新的工作流分支。",badge:"Branch",state:fe.value?"创建中":(et=dn.value)!=null&&et.branch_name?`基于 ${dn.value.branch_name}`:"等待后端节点",tone:"warn",action:fe.value?"创建中":"创建分支",enabled:!!(k&&dn.value&&!fe.value),actionKey:"workflowCreateBranchFromNode"};return fn.value?[gt,Se]:G==="profile-prep"?(d==null?void 0:d.id)==="brief-import"?[{id:"new-profile",title:"创建角色档案",detail:"打开问卷,新建粗略人设并作为工作流输入。",badge:"Profile",state:"问卷入口",tone:"primary",action:"填写问卷",enabled:!0,actionKey:"personaQuestionnaire"},{id:"external-profile",title:"导入外部角色卡",detail:"粘贴外部人设文本,自动识别并填入角色档案问卷。",badge:"Paste",state:"文本识别",tone:"accent",action:"粘贴导入",enabled:!0,actionKey:"externalProfileImport"},{id:"split-next",title:"进入设定拆解",detail:O.value||`使用当前选中的 ${C.name} 通过后端工作流进入 LLM 拆解。`,badge:"Next",state:R.value?"拆解中":S?"已落库":C.profileId?"可创建工作流":"先生成档案",tone:"primary",action:R.value?"拆解中":"拆解",enabled:!!(te&&!R.value),actionKey:"workflowPersonaSplit"},Se]:(d==null?void 0:d.id)==="persona-split"?[{id:"split-run",title:"重新拆解设定",detail:"用当前角色档案重新生成结构化字段。",badge:"LLM",state:c?"可拆解":"只读",tone:"primary",action:"拆解",enabled:!j.value,actionKey:"workflowNodeGenerate"},{id:"field-review",title:"确认字段",detail:"检查身份、外观、服装、配饰和禁用项。",badge:"Check",state:`${xl.value}/${Cl.value}`,tone:"accent",action:"确认",enabled:!j.value,actionKey:"workflowNodeComplete"},{id:"prompt-next",title:"进入提示词规划",detail:"把结构化字段转入提示词矩阵。",badge:"Next",state:"下一节点",tone:"primary",action:"规划",enabled:!0,actionKey:"workflowPromptPlanNext"},Se]:(d==null?void 0:d.id)==="prompt-plan"?[{id:"prompt-build",title:"生成提示词矩阵",detail:"生成头像、半身、全身和设定图提示词。",badge:"Prompt",state:"6 条提示词",tone:"primary",action:"生成",enabled:c},{id:"negative-check",title:"校验负面词",detail:"检查负面提示词、权重和冲突项。",badge:"Guard",state:"待校验",tone:"warn",action:"校验",enabled:c},{id:"material-next",title:"进入素材绑定",detail:"把提示词和素材分类绑定到后续节点。",badge:"Next",state:"下一节点",tone:"accent",action:"绑定",enabled:y},Se]:[{id:"material-bind",title:"绑定参考素材",detail:"把风格、构图、服装、鞋袜和配饰写入节点参数。",badge:"Material",state:"5 类参考",tone:"primary",action:"绑定",enabled:c},{id:"open-materials",title:"打开素材库",detail:"补充或替换当前角色参考素材。",badge:"Library",state:"素材入口",tone:"accent",action:"素材",enabled:!0,nav:"materials",module:"images"},{id:"draft-next",title:"进入头像草稿",detail:"确认素材绑定后进入头像草稿生成。",badge:"Next",state:"下一阶段",tone:"primary",action:"草稿",enabled:y},Se]:G==="portrait-draft"?[{id:"portrait-generate",title:"生成头像草稿",detail:"按当前轮次生成头像和半身候选。",badge:"Draft",state:(d==null?void 0:d.round)??"草稿轮次",tone:"primary",action:"生成",enabled:!!(c&&!j.value),actionKey:"workflowNodeGenerate"},{id:"portrait-compare",title:"对比候选",detail:"平铺当前选中的草稿进行大图对比。",badge:"Compare",state:`${nt.value.length} 已选`,tone:"accent",action:"对比",enabled:nt.value.length>1,actionKey:"workflowCompare"},{id:"portrait-retry",title:"再跑一轮",detail:"保留锁定元素,创建下一轮头像草稿节点。",badge:"Retry",state:v?"可重试":"无权限",tone:v?"warn":"neutral",action:"重试",enabled:!!(v&&!j.value),actionKey:"workflowNodeRetry"},Se]:G==="body-sheet"?[{id:"body-generate",title:"生成设定图",detail:"生成全身、手部、配饰或拆分设定图。",badge:"Sheet",state:(d==null?void 0:d.title)??"设定图",tone:"primary",action:"生成",enabled:!!(c&&!j.value),actionKey:"workflowNodeGenerate"},{id:"detail-fix",title:"细节补图",detail:"针对手部、鞋袜、配饰等局部继续补图。",badge:"Fix",state:(d==null?void 0:d.outputCount)??"待产物",tone:"accent",action:"补图",enabled:!!(c&&!j.value),actionKey:"workflowNodeGenerate"},{id:"body-retry",title:"重跑当前设定",detail:"保留人设锁定项,重跑当前设定图节点。",badge:"Retry",state:v?"可重试":"无权限",tone:v?"warn":"neutral",action:"重试",enabled:!!(v&&!j.value),actionKey:"workflowNodeRetry"},Se]:[{id:"review",title:"审核选图",detail:"标记采用、备选或废弃版本。",badge:"Pick",state:"待审核",tone:"primary",action:"审核",enabled:c},{id:"hires",title:"高清修复",detail:"对选中结果进行高清修复和统一风格。",badge:"Fix",state:(d==null?void 0:d.title)??"修复节点",tone:"accent",action:"修复",enabled:!!(c&&!j.value),actionKey:"workflowNodeGenerate"},{id:"archive",title:"归档图库",detail:"把最终结果放入角色图库。",badge:"Gallery",state:`${Nn.value.length} 张草稿`,tone:"accent",action:"图库",enabled:!0,nav:"gallery",module:"images"},Se]}),ta=q(()=>Fo.value.filter(o=>["failed","dead_letter","cancelled"].includes(jt(o.status)))),uc=q(()=>Fo.value.filter(o=>["running","queued","created","pending"].includes(jt(o.status)))),cc=q(()=>{const o=Tt.value,n=yo.value,c="#d65b7f",v="#d2a23a",y="#667085";return{"--primary":o,"--accent":n,"--primary-soft":ao(o,.15),"--primary-strong":ao(o,.32),"--accent-soft":ao(n,.15),"--accent-strong":ao(n,.34),"--rail-start":Ki(o,"#ffffff",.12),"--rail-mid":Ki(o,n,.16),"--rail-end":Ki(o,"#111827",.18),"--danger":c,"--danger-soft":ao(c,.14),"--danger-strong":ao(c,.34),"--warn":v,"--warn-soft":ao(v,.16),"--warn-strong":ao(v,.34),"--neutral":y,"--neutral-soft":ao(y,.14)}}),Mi=q(()=>{var n,c,v,y,C,S,k,te;const o=((n=D.value)==null?void 0:n.plugin_status)??"stopped";return[{label:"服务状态",value:Nl(o),hint:pt.value?"连接异常":"Dashboard summary",state:o==="running"?"good":o==="degraded"?"warn":"bad"},{label:"队列压力",value:String(ko.value),hint:`等待 ${((c=D.value)==null?void 0:c.queue.pending)??0} / 失败 ${((v=D.value)==null?void 0:v.queue.failed)??0}`,state:ko.value>20?"warn":"good"},{label:"运行任务",value:String(((y=D.value)==null?void 0:y.queue.running)??uc.value.length),hint:"当前 Worker 负载",state:(((C=D.value)==null?void 0:C.queue.running)??0)>0?"good":"idle"},{label:"今日调用",value:String(((S=D.value)==null?void 0:S.today_generation_count)??0),hint:"生成请求统计",state:"good"},{label:"今日成本",value:"未接入",hint:"等待成本接口回填",state:"idle"},{label:"存储占用",value:jo(((k=D.value)==null?void 0:k.storage.total_bytes)??0),hint:`图片 ${jo(((te=D.value)==null?void 0:te.storage.images_bytes)??0)}`,state:"good"}]}),dc=q(()=>Mi.value.filter(o=>["服务状态","队列压力","存储占用"].includes(o.label))),oa=q(()=>{const o=qo.value.trim().toLowerCase();return o?h.filter(n=>[n.title,n.description,...n.keywords].join(" ").toLowerCase().includes(o)).slice(0,6):h.slice(0,5)}),fc=q(()=>Xe.value),On=q(()=>{var n,c,v;const o=[];for(const y of Fo.value){const C=jt(y.status);["completed","succeeded"].includes(C)&&o.push({id:`job-completed-${y.task_id}`,type:"completed",title:"生图任务已完成",detail:Ui(y),createdAt:y.updated_at||y.created_at}),["failed","dead_letter","cancelled"].includes(C)&&o.push({id:`job-failed-${y.task_id}`,type:"failed",title:"任务需要处理",detail:y.error_message||Ui(y),createdAt:y.updated_at||y.created_at})}for(const y of ye.value){const C=jt(y.status);["completed","succeeded"].includes(C)&&o.push({id:`generation-completed-${y.task_id}`,type:"completed",title:"生成日志已完成",detail:`${y.task_id} / ${y.progress}%`,createdAt:y.updated_at||y.created_at})}for(const y of le.value.slice(0,6))o.push({id:`error-${y.source}-${y.id}`,type:"failed",title:y.source||"错误日志",detail:y.error_message||y.status,createdAt:y.created_at});return(((n=D.value)==null?void 0:n.queue.dead_letter)??0)>0&&o.push({id:"queue-dead-letter",type:"warning",title:"死信队列有待处理任务",detail:`${((c=D.value)==null?void 0:c.queue.dead_letter)??0} 个任务等待重试或归档`,createdAt:wi.value}),((v=D.value)==null?void 0:v.plugin_status)==="degraded"&&o.push({id:"system-degraded",type:"system",title:"服务处于降级状态",detail:"部分接口可能暂时不可用",createdAt:wi.value}),Kd(o).filter(y=>!tn.value.includes(y.id)).sort((y,C)=>zi(C.createdAt)-zi(y.createdAt)).slice(0,12)}),na=q(()=>On.value.filter(o=>hl.value==="all"||o.type===hl.value)),Ai=q(()=>On.value.filter(o=>!It.value.includes(o.id)).length),la=q(()=>On.value.slice(0,3)),Ti=q(()=>{var n,c,v,y,C,S;const o=[];return(ta.value.length||(((n=D.value)==null?void 0:n.queue.failed)??0)>0||(((c=D.value)==null?void 0:c.queue.dead_letter)??0)>0)&&o.push({id:"retry-failed",tone:"retry",title:"处理失败任务",detail:`${ta.value.length||((v=D.value)==null?void 0:v.queue.failed)||0} 条任务可能需要重试或查看错误原因`,action:"查看队列",nav:"queue",module:"queue"}),le.value.length&&o.push({id:"read-errors",tone:"confirm",title:"确认最新错误",detail:((y=le.value[0])==null?void 0:y.error_message)||"错误日志已有新条目",action:"打开日志",nav:"logs",module:"logs"}),(((C=D.value)==null?void 0:C.today_generation_count)??0)>40&&o.push({id:"cost-watch",tone:"cost",title:"今日调用偏高",detail:"建议检查模型路由和批量生成成本",action:"查看监控",nav:"performance",module:"performance"}),(S=T.value)!=null&&S.feature_flags.api_discovery||o.push({id:"config-discovery",tone:"config",title:"能力探测未开启",detail:"模型能力确认后,生成流程会更稳",action:"检查设置",nav:"settings",module:"settings"}),!Fo.value.length&&!pt.value&&o.push({id:"continue-flow",tone:"flow",title:"队列空闲",detail:"可以开始新的角色图或素材生成",action:"进入生成",nav:"generate",module:"generate"}),o.slice(0,4)}),pc=q(()=>{var C,S;const o=(C=T.value)==null?void 0:C.permissions,n=(S=T.value)==null?void 0:S.feature_flags,c=!!(o!=null&&o.can_write),v=!!(o!=null&&o.can_retry_tasks),y=!!(o!=null&&o.can_manage_materials);return[{id:"new-generation",group:"创建入口",title:"新建图片任务",detail:"从提示词、角色或节点继续生成,最终提交到任务队列。",badge:"核心入口",endpoint:J.nodeGenerate(":nodeId"),state:c?"可接入":"只读权限",tone:c?"primary":"neutral",action:"待排布表单",enabled:c},{id:"quick-profile",group:"创建入口",title:"快速角色草稿",detail:"先生成角色基础信息,再进入角色工作流补图。",badge:"角色起步",endpoint:J.quickProfileDraft,state:n!=null&&n.quick_profile?"已开启":"未开启",tone:n!=null&&n.quick_profile?"accent":"neutral",action:"放入角色入口",enabled:!!(n!=null&&n.quick_profile&&c),nav:"profiles",module:"suggestions"},{id:"workflow-create",group:"创建入口",title:"角色工作流",detail:"按角色保存多节点流程,支持启动、取消、归档和续跑。",badge:"流程",endpoint:J.profileWorkflows(":profileId"),state:n!=null&&n.workspace?"已开启":"未开启",tone:n!=null&&n.workspace?"primary":"neutral",action:"整理工作流",enabled:!!(n!=null&&n.workspace&&c),nav:"profiles",module:"suggestions"},{id:"prompt-compose",group:"创作控制",title:"提示词组合",detail:"组合基础、外观、风格、负面词和本次生成描述。",badge:"Prompt",endpoint:"local/prompt-composer",state:"待排布",tone:"primary",action:"做成主输入区",enabled:!0},{id:"node-generate",group:"创作控制",title:"节点生成与重试",detail:"对单个节点发起生成、失败重试、标记完成或补选结果。",badge:"节点",endpoint:`${J.nodeGenerate(":nodeId")} / ${J.nodeRetry(":nodeId")}`,state:v?"可重试":"无重试权限",tone:v?"accent":"neutral",action:"接入队列操作",enabled:v,nav:"queue",module:"queue"},{id:"model-route",group:"创作控制",title:"模型路由与能力探测",detail:"确认 provider、模型能力、渲染计划和手动覆盖规则。",badge:"模型",endpoint:J.apiDiscoveryCapabilities,state:n!=null&&n.api_discovery?"已开启":"未开启",tone:n!=null&&n.api_discovery?"primary":"warn",action:"放入参数侧栏",enabled:!!(n!=null&&n.api_discovery),nav:"settings",module:"settings"},{id:"material-pick",group:"资源资产",title:"素材库引用",detail:"从素材库选择参考图、导入素材包,并触发识别或确认。",badge:"素材",endpoint:J.materials,state:n!=null&&n.material_library?"已开启":"未开启",tone:n!=null&&n.material_library?"accent":"neutral",action:"做成选择器",enabled:!!(n!=null&&n.material_library&&y),nav:"materials",module:"images"},{id:"wardrobe-match",group:"资源资产",title:"衣橱搭配",detail:"把素材导入角色衣橱,匹配服装、配件和组合。",badge:"衣橱",endpoint:J.wardrobeMatch(":profileId"),state:n!=null&&n.wardrobe?"已开启":"未开启",tone:n!=null&&n.wardrobe?"accent":"neutral",action:"并入素材面板",enabled:!!(n!=null&&n.wardrobe&&y),nav:"materials",module:"images"},{id:"daily-outfit",group:"资源资产",title:"私伴每日穿搭",detail:"根据私伴集成生成每日穿搭建议,再转为素材或生成任务。",badge:"集成",endpoint:J.privateCompanionDailyOutfit,state:n!=null&&n.private_companion_integration?"已开启":"未开启",tone:n!=null&&n.private_companion_integration?"primary":"neutral",action:"保留为扩展卡",enabled:!!(n!=null&&n.private_companion_integration)},{id:"queue-control",group:"执行结果",title:"队列调度",detail:"查看等待、运行、失败、死信任务,并支持取消、重试和归档。",badge:"队列",endpoint:J.jobs,state:`${ko.value} 个任务`,tone:ko.value>0?"warn":"accent",action:"查看队列",enabled:!0,nav:"queue",module:"queue"},{id:"review-select",group:"执行结果",title:"结果审核与选图",detail:"对节点结果做审核、选择、取消选择、采用或归档。",badge:"审核",endpoint:J.nodeReview(":nodeId"),state:c?"可接入":"只读权限",tone:c?"primary":"neutral",action:"放到结果区",enabled:c},{id:"gallery-archive",group:"执行结果",title:"图库与历史",detail:"查看最近结果、节点图片、工作流历史和已归档图片。",badge:"图库",endpoint:J.image(":imageId"),state:`${_o.value.length} 张最近结果`,tone:_o.value.length?"accent":"neutral",action:"打开图库",enabled:!0,nav:"gallery",module:"images"}]}),ia=q(()=>l.find(o=>o.key===V.value)??l[0]),ra=q(()=>{const o=new Set(r[V.value]);return pc.value.filter(n=>o.has(n.id))}),mc=q(()=>{var c,v,y,C,S,k,te,d,G;const o=ra.value.filter(pe=>pe.enabled).length,n=ra.value.length;return V.value==="quickProfile"?[{label:"当前页面",value:"快速角色",hint:"草稿、素材和衣橱入口"},{label:"角色草稿",value:(c=T.value)!=null&&c.feature_flags.quick_profile?"开启":"未开",hint:"用于快速生成角色基础信息"},{label:"素材能力",value:(v=T.value)!=null&&v.feature_flags.material_library?"开启":"未开",hint:"参考图和素材识别会放在这里"},{label:"可用卡片",value:String(o),hint:`共 ${n} 项功能`}]:V.value==="workflow"?[{label:"当前页面",value:"角色工作流",hint:"多节点流程和续跑入口"},{label:"工作流",value:(y=T.value)!=null&&y.feature_flags.workspace?"开启":"未开",hint:"支持启动、取消、归档和续跑"},{label:"当前队列",value:String(ko.value),hint:`运行 ${((C=D.value)==null?void 0:C.queue.running)??0} / 失败 ${((S=D.value)==null?void 0:S.queue.failed)??0}`},{label:"可用卡片",value:String(o),hint:`共 ${n} 项功能`}]:[{label:"当前页面",value:"图片生成",hint:"提示词、模型、素材和结果"},{label:"写入权限",value:(k=T.value)!=null&&k.permissions.can_write?"可写":"只读",hint:(te=T.value)!=null&&te.permissions.can_retry_tasks?"可重试任务":"无重试权限"},{label:"当前队列",value:String(ko.value),hint:`运行 ${((d=D.value)==null?void 0:d.queue.running)??0} / 失败 ${((G=D.value)==null?void 0:G.queue.failed)??0}`},{label:"最近结果",value:String(_o.value.length),hint:"图库与审核区可复用这些结果"}]}),vc=q(()=>{var o,n,c,v;return[{label:"Pending",value:((o=D.value)==null?void 0:o.queue.pending)??0},{label:"Running",value:((n=D.value)==null?void 0:n.queue.running)??0},{label:"Failed",value:((c=D.value)==null?void 0:c.queue.failed)??0},{label:"Dead",value:((v=D.value)==null?void 0:v.queue.dead_letter)??0}]}),gc=q(()=>{var o,n,c,v;return[{label:"总占用",value:jo(((o=D.value)==null?void 0:o.storage.total_bytes)??0)},{label:"图片",value:jo(((n=D.value)==null?void 0:n.storage.images_bytes)??0)},{label:"素材",value:jo(((c=D.value)==null?void 0:c.storage.materials_bytes)??0)},{label:"临时",value:jo(((v=D.value)==null?void 0:v.storage.temp_bytes)??0)}]}),hc=()=>{if(V.value!=="quickProfile"||Et.value)return;const o=Bo.value;if(o.length<2)return;const n=o.findIndex(v=>v.id===Ee.value),c=n>=0?(n+1)%o.length:0;Ee.value=o[c].id},aa=()=>{wl!==void 0&&(window.clearInterval(wl),wl=void 0)},bc=()=>{aa(),wl=window.setInterval(hc,6500)};Dr(()=>{Wd(),document.addEventListener("pointerdown",xa,!0),document.addEventListener("pointermove",ca,!0),document.addEventListener("keydown",Pa),$l(Gy),bc(),Ei()}),Br(()=>{document.removeEventListener("pointerdown",xa,!0),document.removeEventListener("pointermove",ca,!0),document.removeEventListener("keydown",Pa),Oi(),aa()}),Ot([ft,Tt,yo,It,tn],jd,{deep:!0}),Ot(Io,o=>{if(!o.length){se.value="";return}o.some(n=>n.image_id===se.value)||(se.value=o[0].image_id)},{immediate:!0}),Ot(Do,o=>{if(!o.length){de.value="";return}o.some(n=>n.value===de.value)||(de.value=o[0].value)},{immediate:!0}),Ot(Bo,o=>{if(!o.length){Ee.value="";return}o.some(n=>n.id===Ee.value)||(Ee.value=o[0].id)},{immediate:!0}),Ot(cn,o=>{if(!o.length){Me.value="";return}o.some(n=>n.id===Me.value)||(Me.value=o[0].id)},{immediate:!0}),Ot(xo,o=>{if(!o.length){Pe.value="",re.value=[];return}const n=new Set(o.map(v=>v.image_id)),c=re.value.filter(v=>n.has(v));re.value=c.length?c:o.slice(0,2).map(v=>v.image_id),o.some(v=>v.image_id===Pe.value)||(Pe.value=re.value[0]??o[0].image_id)},{immediate:!0}),Ot(Oe,o=>{o!=null&&o.profileId&&ma(o)}),Ot(Ee,()=>{kn(()=>{var o;(o=document.querySelector(".quick-profile-image-types button.active"))==null||o.scrollIntoView({block:"nearest",behavior:"smooth"})})});function yc(){const o=new URLSearchParams(window.location.search).get("view");return t.some(n=>n.key===o)?o:"overview"}function sa(){const o=fr();return{state:"checking",label:"连接中",title:"正在检测后端连接",detail:o==="plugin-bridge"?"正在通过 AstrBot 插件桥读取 ui/bootstrap。":"正在通过同源 API 读取 ui/bootstrap。",transport:o,checkedAt:""}}function wc(){F.value=sa()}function kc(o){const n=fr();F.value={state:"connected",label:"后端已连接",title:"后端已连接",detail:n==="plugin-bridge"?"已通过 AstrBot 插件桥调用后端,写入动作会进入工作流并落库。":`已通过同源 API ${o.api_base} 调用后端,写入动作会进入工作流并落库。`,transport:n,checkedAt:new Date().toISOString()}}function _c(o){const n=fr(),c=n==="direct-fetch"&&Ic(o);F.value={state:c?"preview":"error",label:c?"预览模式":"连接异常",title:c?"当前未连接真实插件后端":"后端连接异常",detail:c?"当前页面只跑在前端预览里,没有拿到 ImageStudio 后端 API;需要在 AstrBot 插件页或真实 API 代理下验收落库。":ua(o),transport:n,checkedAt:new Date().toISOString()}}function Ic(o){return o instanceof en?["invalid_api_response","network_unreachable","http_error"].includes(o.code):!0}function ua(o){return o instanceof en?o.code==="invalid_api_response"?"接口返回了页面内容或非 JSON 数据,不是 ImageStudio API 响应。":o.code==="network_unreachable"?"无法连接 ImageStudio 后端接口。":o.message||"ImageStudio 后端接口请求失败。":o instanceof Error?o.message.includes("Unexpected token")?"接口返回了页面内容或非 JSON 数据,不是 ImageStudio API 响应。":o.message.includes("Failed to fetch")||o.message.includes("NetworkError")?"无法连接 ImageStudio 后端接口。":o.message||"加载失败":"加载失败"}function Po(o){var n;return F.value.state==="checking"?`${o}需要先完成后端连接检测。`:F.value.state!=="connected"?`${o}需要连接 ImageStudio 后端后才能落库。${F.value.detail}`:(n=T.value)!=null&&n.permissions.can_write?"":`${o}需要后端写入权限。`}async function Ei(){await Promise.all([Cc(),pn(),qn(),Sl(),Sc(),$c()]),wi.value=new Date().toISOString()}async function Cc(){wc();try{T.value=await ze(J.uiBootstrap),kc(T.value)}catch(o){T.value=null,_c(o)}}function xc(){return{roleCore:"近未来港区巡查员,负责夜间巡逻和异常记录。",personality:"冷静、可靠、行动快,外冷内热。",appearance:"黑色短发,青绿色眼睛,轻机能外套。",outfit:"短靴、发光臂章、便携通讯设备。",scene:"星港、雨夜街区、巡查终端、航灯背景。",avoid:"过度复杂、低清晰度、肢体结构错误。",worldview:"",background:"",heightBuild:"",bodyFeatures:"",likes:"",dislikes:"",habits:"",relationships:"",storyHooks:"",generationStyle:"",shotPreference:"",mood:"",extraNotes:""}}function Pc(){return{roleCore:"",personality:"",appearance:"",outfit:"",scene:"",avoid:"",worldview:"",background:"",heightBuild:"",bodyFeatures:"",likes:"",dislikes:"",habits:"",relationships:"",storyHooks:"",generationStyle:"",shotPreference:"",mood:"",extraNotes:""}}async function pn(){on.value=!0,pt.value="";try{D.value=await ze(J.dashboardSummary)}catch(o){pt.value=vt(o)}finally{on.value=!1}}async function qn(){nn.value=!0,Mn.value="";try{z.value=await ze(J.jobs,{page:1,page_size:12})}catch(o){Mn.value=vt(o)}finally{nn.value=!1}}async function Sl(){yi.value=!0,ln.value="";try{const[o,n]=await Promise.all([ze(J.generationLogs,{limit:12}),ze(J.errorLogs,{limit:12})]);ye.value=o,le.value=n}catch(o){ln.value=vt(o)}finally{yi.value=!1}}async function Sc(){bl.value=!0,yl.value="";try{ne.value=await ze(J.apiDiscoveryCapabilities)}catch(o){ne.value=[],yl.value=vt(o)}finally{bl.value=!1}}async function $c(){try{const n=(await ze(J.profiles,{page:1,page_size:40})).items.filter(v=>{var y;return((y=v.metadata)==null?void 0:y.system_key)!==jl}),c=await Promise.all(n.map(async(v,y)=>{let C=[];try{C=await ze(J.profileWorkflows(v.profile_id))}catch{C=[]}const S=C.find(Ln),k=C.find(te=>te.workflow_type==="quick_profile");return cd(v,S,k,y)}));b.value=c}catch{b.value=[]}}function io(o,n=(c=>(c=t.find(v=>v.key===o))==null?void 0:c.module)()??"overview"){ae.value=o;const v=new URL(window.location.href);v.searchParams.set("view",o),window.history.replaceState({},"",`${v.pathname}${v.search}`),kn(()=>Tc(n))}function Mc(o){io(o.key,o.module)}function Ni(){Oi(),gl.value=!0}function ca(o){if(!window.matchMedia("(max-width: 900px)").matches){if(o.clientX<=Qy){Ni();return}gl.value&&o.clientX>=zy&&rn===void 0&&$l(ks)}}function $l(o=ks){Oi(),rn=window.setTimeout(()=>{gl.value=!1,rn=void 0},o)}function Oi(){rn!==void 0&&(window.clearTimeout(rn),rn=void 0)}function Ac(o){qo.value=o.title,Je.value=!1,Xe.value=!1,io(o.nav,o.module)}function Tc(o){var n;(n=document.querySelector(`[data-module="${o}"]`))==null||n.scrollIntoView({block:"start",behavior:"smooth"})}function Ec(){ft.value=ft.value==="dark"?"light":"dark"}function Nc(o){return`${o.hairColor} hair, ${o.hairstyle}, ${o.eyeColor} eyes, ${o.clothing}`}function Oc(o){return`${o.name},${o.identity},personality: ${o.personality}`}function qc(o){return{"--profile-color-a":o[0],"--profile-color-b":o[1],"--profile-color-c":o[2]}}function So(o){const n=kt.value[o];return n?m.find(c=>c.id===n&&c.category===o)??null:null}function Lc(o){return kt.value[o.category]===o.id}function da(o,n=0){const c=m.findIndex(v=>v.id===o.id);return Wo((c>=0?c:n)+21,o.label,o.prompt,o.colors)}function Rc(o){return o.group??o.category}function Fc(o){to.value=o}function Dc(o){if(Ke.value===o&&$a("materialPicker")){Ct("materialPicker");return}Nt("materialPicker"),Ke.value=o,o!==uo&&(to.value=yn)}function Bc(o){kt.value={...kt.value,[o.category]:o.id},Ue.value=o.id,Ct("materialPicker")}function Vc(o){var c;const n=m.find(v=>v.id===Ue.value);kt.value={...kt.value,[o]:""},(!n||n.category===o)&&(Ue.value=((c=Co.value[0])==null?void 0:c.id)??""),Ct("materialPicker")}function Wc(o){oo.value={category:o,requestedAt:new Date().toISOString()},Ct("materialPicker"),io("materials","images");const n=new URL(window.location.href);n.searchParams.set("materialAction","add"),n.searchParams.set("materialCategory",o),window.history.replaceState({},"",`${n.pathname}${n.search}`)}function qi(o){Dt.value=o.id,O.value="",$.value="",H.value="",K.value="",wt.value={name:o.name,identity:o.identity,personality:o.personality,hairColor:o.hairColor,hairstyle:o.hairstyle,eyeColor:o.eyeColor,clothing:o.clothing,style:o.style,negative:o.negative};const n=m.find(c=>c.id===o.materialId);n&&(kt.value={...kt.value,[n.category]:n.id},Ue.value=n.id),o.profileId&&ma(o)}function fa(o){Bo.value.some(n=>n.id===o)&&(Ee.value=o)}function mn(o){var y;const n=cn.value.find(C=>C.id===o);if(!n)return;Me.value=n.id;const v=((y=n.imageIds)!=null&&y.length?n.imageIds:[n.imageId]).filter(C=>Nn.value.some(S=>S.image_id===C));v.length&&(Pe.value=v[0],re.value=v)}function jc(o){if(!xo.value.some(v=>v.image_id===o))return;const n=Al("更换选图");if(n){K.value=n;return}const c=re.value;if(c.includes(o)){c.length>1?(re.value=c.filter(v=>v!==o),Pe.value=re.value[0]??o):Pe.value=o;return}re.value=[...c,o],Pe.value=o,Hc(o)}async function Hc(o){const n=Oe.value;if(!n)return;const c=Po("保存选图");if(c){K.value=c;return}const v=Tl(Me.value,n);if(!v)return;const y=Al("保存选图");if(y){K.value=y;return}const C=Be.value[v]??[];if(C.some(S=>S.image_id===o))try{const S=await bt(J.nodeSelectImage(v),{image_id:o});Be.value={...Be.value,[v]:C.map(k=>k.image_id===S.image_id?Ol(S):k)}}catch(S){K.value=`选图保存失败:${vt(S)}`}}async function Uc(){var c;const o=$e.value.trim();if(!o||ce.value)return;const n=Po("图片生成");if(n){_e.value=n;return}ce.value=!0,_e.value="",He.value=o,Ye.value=((c=sn.value)==null?void 0:c.label)??de.value;try{const v=await Kc(),y=await bt(J.nodeGenerate(v.nodeId),{prompt_patch:o,model_route:Li(),count:1,aspect_ratio:"1:1",idempotency_key:`web-single-${Date.now()}-${Math.random().toString(16).slice(2)}`,metadata:{source:"standalone_web",workflow_id:v.workflowId}}),C=await pa(y.images??[]);Z.value=Vn([...C,...Z.value]).slice(0,12),C[0]&&(se.value=C[0].image_id),$e.value="",await Promise.allSettled([pn(),qn(),Sl()])}catch(v){_e.value=`生成失败:${vt(v)}`}finally{ce.value=!1}}async function Kc(){if(W.value)return W.value;const o=await ze(J.profiles,{keyword:pr,page:1,page_size:10});let n=o.items.find(S=>{var k;return((k=S.metadata)==null?void 0:k.system_key)===jl})??o.items.find(S=>S.name===pr);n||(n=await bt(J.profiles,{name:pr,description:"System profile used by the standalone image generation workspace.",default_model_route:Li(),metadata:{source:"standalone_web",system_key:jl}}));let v=(await ze(J.profileWorkflows(n.profile_id))).find(S=>S.workflow_type==="single_image"),y=[];if(v)y=await ze(J.workflowNodes(v.workflow_id));else{const S=await bt(J.profileWorkflows(n.profile_id),{workflow_type:"single_image",display_name:"ImageStudio Single Image Flow",status:"draft",metadata:{source:"standalone_web",system_key:jl}});v=S.workflow,y=S.nodes}const C=y.find(S=>S.node_key==="virtual_single_image")??y[0];if(!C)throw new Error("单图工作流缺少可生成节点");return W.value={profileId:n.profile_id,workflowId:v.workflow_id,nodeId:C.node_id},W.value}function Li(){const o=sn.value;if(!o)return"image_low";const n=ne.value.find(v=>`${v.provider_id}/${v.model_id}`===o.value),c=rt(n==null?void 0:n.capabilities,"route_name")||rt(n==null?void 0:n.probe_result,"route_name")||rt(n==null?void 0:n.capabilities,"model_route");return c||(o.status==="fallback"?"image_low":o.value)}async function pa(o){return(await Promise.all(o.map(async c=>{try{return await ze(J.image(c.image_id))}catch{return c}}))).map(Ol)}async function ma(o){var n;if(o.profileId&&!(o.workflowId&&((n=be.value[o.workflowId])!=null&&n.length))){B.value=!0,H.value="";try{await Ri(o)}catch(c){H.value=`工作流加载失败:${vt(c)}`}finally{B.value=!1}}}async function Ri(o){if(!o.profileId)throw new Error("角色卡还没有后端 profile_id");const n=await ze(J.profileWorkflows(o.profileId));let c=n.find(y=>y.workflow_id===o.workflowId&&Ln(y))??n.find(Ln),v=[];if(c)v=await ze(J.workflowNodes(c.workflow_id));else{const y=await bt(J.profileWorkflows(o.profileId),{workflow_type:Yy,display_name:`${o.name} Character Workflow`,status:"draft",metadata:{source:"standalone_web",quick_profile_workflow_id:o.quickProfileWorkflowId}});c=y.workflow,v=y.nodes}return be.value={...be.value,[c.workflow_id]:v},Ie.value={...Ie.value,[c.workflow_id]:c},await va(v),Fi(o,c,v),{workflow:c,nodes:v}}async function va(o){const n=await Promise.all(o.map(async c=>{try{const v=await ze(J.nodeImages(c.node_id));if(c.selected_image_id&&!v.some(y=>y.image_id===c.selected_image_id))try{v.unshift(await ze(J.image(c.selected_image_id)))}catch{}return[c.node_id,Vn(v.map(Ol))]}catch{return[c.node_id,[]]}}));Be.value={...Be.value,...Object.fromEntries(n)}}function Fi(o,n,c){P.value=P.value.map(v=>v.id!==o.id&&v.profileId!==o.profileId?v:{...v,workflowId:n.workflow_id,workflowNodeIds:c.map(y=>y.node_id),status:n.status==="completed"?"工作流已拆解":"工作流就绪"})}function Ln(o){return o.workflow_type==="character_gradual"||o.workflow_type==="character_fast"}function ga(o){const n=Ce.value,c=Oe.value,v=Il.value.flatMap(S=>S.fields.filter(k=>k.value&&k.value!=="待补充").map(k=>`${S.title}/${k.label}: ${k.value}`)).slice(0,18),y=Co.value.map(S=>`${S.label}: ${S.prompt}`),C=nt.value.map(S=>`${Le(S)} / ${S.status}`);return["[ImageStudio node-aware workflow injection]","Task: understand the user's source-language instruction, translate it into concise English image-generation prompt language, then merge it into the selected workflow node.","Keep character names, locked identity traits, and explicit user constraints. Do not drop negative constraints.","Target prompt language: English","Source language: auto-detect",`User instruction: ${o}`,`Node: ${n.title}`,`Node phase: ${n.phase}`,`Node status: ${Vo(n.status)}`,`Node existing prompt: ${n.prompt||"-"}`,`Node locked items: ${n.lockedItems||"-"}`,`Node decision: ${n.decision||"-"}`,`Character: ${c.name}`,`Identity: ${c.identity}`,`Personality: ${c.personality}`,`Appearance: ${Nc(c)}`,`Style: ${c.style||"-"}`,`Negative prompt: ${c.negative||"-"}`,`Structured persona fields: ${v.length?v.join(" | "):"-"}`,`Selected materials: ${y.length?y.join(" | "):"-"}`,`Selected drafts: ${C.length?C.join(" | "):"-"}`].join(`
`)}function ha(o){const n=Ce.value,c=Oe.value;return{source:"standalone_web_workflow_chat",ui_node_id:Me.value,ui_node_title:n.title,ui_node_phase:n.phase,ui_node_status:n.status,profile_id:c.profileId,profile_name:c.name,workflow_id:c.workflowId,source_language:"auto",target_prompt_language:"en",translation_mode:"backend_llm",user_instruction:o,persona_split_fields_ready:xl.value,persona_split_fields_total:Cl.value,selected_material_ids:Co.value.map(v=>v.id),selected_draft_image_ids:nt.value.map(v=>v.image_id)}}async function Gc(){var c;const o=ge.value.trim();!o||j.value||!await Wi({promptPatch:ga(o),metadata:ha(o)})||(At.value=o,No.value=`${Ce.value.title} / ${((c=sn.value)==null?void 0:c.label)??de.value}`)}function ba(){!Re.value||!We(Re.value)||(Lo.value="generation",Nt("imageViewer"),vn(),Et.value=!0)}function ya(o){const n=(o?Nn.value.find(c=>c.image_id===o):null)??Pl.value;!n||!We(n)||(se.value=n.image_id,ba())}function Qc(){nt.value.length&&(Lo.value="workflowCompare",Nt("imageViewer"),vn(),Et.value=!0)}function wa(o){var n;o&&fa(o),(n=Ze.value)!=null&&n.imageUrl&&(Lo.value="quickProfile",Nt("imageViewer"),vn(),Et.value=!0)}function Ml(){Et.value=!1,lo.value=!1}function vn(){Bt.value=1,wo.value={x:0,y:0}}function Rn(o){Bt.value=Dd(Number((Bt.value+o).toFixed(2)),.5,4),Bt.value<=1&&(wo.value={x:0,y:0})}function Di(o){Rn(o.deltaY<0?.12:-.12)}function zc(){if(Bt.value>1){vn();return}Bt.value=2.2,wo.value={x:0,y:0}}function Bi(o){Bt.value<=1||(lo.value=!0,Ro.value={pointerId:o.pointerId,x:o.clientX,y:o.clientY,offsetX:wo.value.x,offsetY:wo.value.y},o.currentTarget instanceof HTMLElement&&o.currentTarget.setPointerCapture(o.pointerId))}function Vi(o){!lo.value||o.pointerId!==Ro.value.pointerId||(wo.value={x:Ro.value.offsetX+o.clientX-Ro.value.x,y:Ro.value.offsetY+o.clientY-Ro.value.y})}function ro(o){!lo.value||o.pointerId!==Ro.value.pointerId||(lo.value=!1,o.currentTarget instanceof HTMLElement&&o.currentTarget.hasPointerCapture(o.pointerId)&&o.currentTarget.releasePointerCapture(o.pointerId))}function Yc(){Nt("search"),Je.value=!0,Xe.value=!0}function Fn(){Nt("personaQuestionnaire"),M.value="",no.value=!0}function Jc(){Nt("externalProfileImport"),Oo.value=!0,kn(()=>{var o;(o=document.querySelector("[data-profile-import-input]"))==null||o.focus()})}function Xc(){Nt("quickProfileDetail"),ho.value=!0}async function Zc(o){if(o.enabled){if(o.actionKey==="personaQuestionnaire"){Fn();return}if(o.actionKey==="workflowCompare"){Qc();return}if(o.actionKey==="externalProfileImport"){Jc();return}if(o.actionKey==="workflowPersonaSplit"){await od();return}if(o.actionKey==="workflowSaveVersion"){await ld();return}if(o.actionKey==="workflowCreateBranchFromNode"){await td();return}if(o.actionKey==="workflowNodeGenerate"){await Wi();return}if(o.actionKey==="workflowNodeRetry"){await Wi({retry:!0});return}if(o.actionKey==="workflowNodeComplete"){await nd();return}if(o.actionKey==="workflowPromptPlanNext"){mn("prompt-plan");return}o.nav&&o.module&&io(o.nav,o.module)}}function Al(o){return fn.value?`${o}已被锁定:${Pi.value}`:""}function ed(o){return`branch_${(o.node_key||o.node_id).replace(/[^a-zA-Z0-9_-]+/g,"_").slice(0,28)}_${Date.now().toString(36)}`}async function td(){var C,S;const o=Oe.value,n=dn.value;if(!(o!=null&&o.workflowId)||!n||fe.value)return;const c=Po("创建工作流分支");if(c){ue.value=c,K.value=c;return}fe.value=!0,ue.value="",K.value="";const v=o.workflowId,y=((C=Ce.value)==null?void 0:C.title)??n.title;try{const k=await bt(J.workflowBranches(v),{branch_name:ed(n),base_branch_name:n.branch_name||((S=Ie.value[v])==null?void 0:S.current_branch)||"main",base_node_id:n.node_id,copy_nodes:!0,metadata:{source:"standalone_web",ui_node_id:Me.value,ui_node_title:y,reason:"edit_locked_completed_node"}}),te=await bt(J.workflowSwitchBranch(v),{branch_name:k.branch_name}),d=await ze(J.workflowNodes(v)),G=d.filter(Se=>Se.branch_name===te.current_branch);be.value={...be.value,[v]:d},Ie.value={...Ie.value,[v]:te},await va(G.length?G:d),Fi(o,te,G.length?G:d);const pe=G.find(Se=>rt(Se.metadata,"copied_from_node_id")===n.node_id)??G.find(Se=>Bn(Se)===Me.value);pe&&mn(Bn(pe)),K.value=`已从「${y}」创建分支 ${k.branch_name},现在可以在新分支继续修改。`}catch(k){ue.value=`创建分支失败:${vt(k)}`,K.value=ue.value}finally{fe.value=!1}}async function Wi(o={}){const n=Oe.value;if(!n||j.value)return!1;const c=Po(o.retry?"节点重跑":"节点生成");if(c)return K.value=c,!1;const v=Tl(Me.value,n);if(!v)return K.value="当前节点还没有绑定后端 node_id",!1;const y=Al(o.retry?"节点重跑":"节点生成");if(y)return K.value=y,!1;j.value=!0,K.value="";try{o.retry&&await bt(J.nodeRetry(v));const C=Ce.value,S=ge.value.trim(),k=o.promptPatch??(S?ga(S):(C==null?void 0:C.prompt)||ie.value.basePrompt),te=await bt(J.nodeGenerate(v),{prompt_patch:k,model_route:Li(),count:Md(C),aspect_ratio:Ad(C),idempotency_key:`web-workflow-${v}-${Date.now()}-${Math.random().toString(16).slice(2)}`,metadata:{source:"standalone_web",ui_node_id:Me.value,...S?ha(S):{},...o.metadata??{}}}),d=await pa(te.images??[]);if(Be.value={...Be.value,[v]:Vn([...d,...Be.value[v]??[]])},Z.value=Vn([...d,...Z.value]).slice(0,12),d[0]&&(Pe.value=d[0].image_id,re.value=d.map(G=>G.image_id),se.value=d[0].image_id),n.workflowId){const G=await ze(J.workflowNodes(n.workflowId));be.value={...be.value,[n.workflowId]:G}}return ge.value="",await Promise.allSettled([pn(),qn(),Sl()]),!0}catch(C){return K.value=`节点生成失败:${vt(C)}`,!1}finally{j.value=!1}}async function od(){const o=Oe.value;if(!o||R.value)return;const n=Po("设定拆解");if(n){O.value=n;return}if(!o.profileId){O.value="请先通过“生成档案”保存到后端,再进入设定拆解。";return}if(Tn.value.find(v=>["completed","selected"].includes(jt(v.status)))){O.value="当前工作流已有完成节点,请先从要修改的位置创建分支。";return}R.value=!0,O.value="";try{const{workflow:v}=await Ri(o),y=await bt(J.workflowExecuteCharacter(v.workflow_id));be.value={...be.value,[v.workflow_id]:y.nodes},Ie.value={...Ie.value,[v.workflow_id]:y.workflow},Fi(o,y.workflow,y.nodes),mn("persona-split")}catch(v){O.value=`后端拆解失败:${vt(v)}`}finally{R.value=!1}}async function nd(){const o=Oe.value;if(!o||j.value)return;const n=Po("确认字段");if(n){K.value=n;return}const c=Tl(Me.value,o);if(!c){K.value="当前节点还没有绑定后端 node_id";return}const v=Al("确认字段");if(v){K.value=v;return}j.value=!0,K.value="";try{const y=await bt(J.nodeComplete(c));if(o.workflowId){const C=be.value[o.workflowId]??[];be.value={...be.value,[o.workflowId]:C.map(S=>S.node_id===y.node_id?y:S)}}mn("prompt-plan")}catch(y){K.value=`字段确认失败:${vt(y)}`}finally{j.value=!1}}async function ld(){var c;const o=Oe.value;if(!o||N.value)return;const n=Po("保存快照");if(n){$.value=n;return}if(!o.workflowId){$.value="请先生成档案并创建后端工作流,再保存快照。";return}N.value=!0,$.value="";try{const v=await bt(J.workflowHistory(o.workflowId),{action:"save_version",title:`${o.name} / ${((c=Ce.value)==null?void 0:c.title)??"工作流快照"}`,node_id:Tl(Me.value,o),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:Me.value,profile_id:o.profileId,profile_name:o.name,profile_status:o.status}});Q.value=v.created_at}catch(v){$.value=`保存快照失败:${vt(v)}`}finally{N.value=!1}}function Tl(o,n){if(!n.workflowId)return;const v=ka(n.workflowId).find(C=>Bn(C)===o);if(v)return v.node_id;const y=n.workflowNodeIds??[];if(o!=="brief-import"&&o==="persona-split")return y[0]}function ka(o){var v;const n=be.value[o]??[],c=(v=Ie.value[o])==null?void 0:v.current_branch;return c?n.filter(y=>y.branch_name===c):n}async function id(){if(!Jr.value||A.value)return;const o=Po("生成档案");if(o){M.value=o;return}E.value+=1;const n=dd(p.value,E.value);A.value=!0,M.value="";try{const c=await bt(J.quickProfileDraftSave,rd(n,p.value,bo.value)),v=ud(c,n),y=await Ri(v),C={...v,workflowId:y.workflow.workflow_id,workflowNodeIds:y.nodes.map(S=>S.node_id),status:"工作流就绪"};P.value=[C,...P.value.filter(S=>S.id!==C.id)],qi(C),V.value="workflow",Me.value="brief-import",Ct("personaQuestionnaire"),kn(()=>{var S;(S=document.querySelector(`[data-profile-card-id="${C.id}"]`))==null||S.scrollIntoView({block:"nearest",behavior:"smooth"})})}catch(c){M.value=`后端保存失败:${vt(c)}`}finally{A.value=!1}}function rd(o,n,c){const v=ad(n,c);return{profile_preview:{name:o.name,base_prompt:[o.name,o.identity,o.personality?`personality: ${o.personality}`:""].filter(Boolean).join(", "),appearance_prompt:[o.hairColor,o.hairstyle,o.eyeColor,o.clothing].filter(Boolean).join(", "),style_prompt:o.style,negative_prompt:o.negative},description:`${o.identity}。${o.personality}`,questionnaire:v,metadata:{source:"quick_profile_questionnaire",questionnaire_mode:c,material_id:o.materialId,identity:o.identity,hair_color:o.hairColor,hairstyle:o.hairstyle,eye_color:o.eyeColor,clothing:o.clothing,worldview:v.worldview,height_build:v.height_build,generation_style:v.generation_style},create_workflow:!0,workflow_display_name:`${o.name} 快速角色工作流`,workflow_status:"draft"}}function ad(o,n){return sd({mode:n,role_core:o.roleCore,personality:o.personality,appearance:o.appearance,outfit:o.outfit,scene:o.scene,avoid:o.avoid,worldview:o.worldview,background:o.background,height_build:o.heightBuild,body_features:o.bodyFeatures,likes:o.likes,dislikes:o.dislikes,habits:o.habits,relationships:o.relationships,story_hooks:o.storyHooks,generation_style:o.generationStyle,shot_preference:o.shotPreference,mood:o.mood,extra_notes:o.extraNotes})}function sd(o){return Object.fromEntries(Object.entries(o).map(([n,c])=>[n,c.trim()]).filter(([,n])=>!!n))}function ud(o,n){var y,C;const c=o.profile,v=c.metadata??{};return{...n,id:c.profile_id,profileId:c.profile_id,workflowId:o.workflow&&Ln(o.workflow)?o.workflow.workflow_id:void 0,quickProfileWorkflowId:(y=o.workflow)==null?void 0:y.workflow_id,workflowNodeIds:o.workflow&&Ln(o.workflow)?(C=o.nodes)==null?void 0:C.map(S=>S.node_id):void 0,name:c.name||n.name,identity:Wt(v.identity)||n.identity,personality:_a(c.base_prompt)||n.personality,hairColor:Wt(v.hair_color)||n.hairColor,hairstyle:Wt(v.hairstyle)||n.hairstyle,eyeColor:Wt(v.eye_color)||n.eyeColor,clothing:Wt(v.clothing)||n.clothing,style:c.style_prompt||n.style,negative:c.negative_prompt||n.negative,status:o.workflow?"已落库":"已保存",updatedAt:"刚刚"}}function cd(o,n,c,v){const y=o.metadata??{},C=m[v%m.length];return{id:o.profile_id,profileId:o.profile_id,workflowId:n==null?void 0:n.workflow_id,quickProfileWorkflowId:c==null?void 0:c.workflow_id,workflowNodeIds:void 0,name:o.name,identity:Wt(y.identity)||o.description||"后端角色档案",personality:_a(o.base_prompt)||"待细化",hairColor:Wt(y.hair_color)||"待细化",hairstyle:Wt(y.hairstyle)||o.appearance_prompt||"待细化",eyeColor:Wt(y.eye_color)||"待细化",clothing:Wt(y.clothing)||o.appearance_prompt||"待细化",style:o.style_prompt||"待细化",negative:o.negative_prompt||"low quality, blurry, bad anatomy",status:n?n.status==="completed"?"工作流已拆解":"工作流就绪":c?"快速档案已落库":o.status,updatedAt:gn(o.updated_at),materialId:(C==null?void 0:C.id)??Ue.value,colors:(C==null?void 0:C.colors)??Ia(v+31)}}function Wt(o){return typeof o=="string"?o.trim():""}function _a(o){const n="personality:",c=o??"",v=c.toLowerCase().indexOf(n);return v<0?"":c.slice(v+n.length).trim()}function dd(o,n){const c=fd(o.roleCore,n),v=c.identity==="角色身份待细化"&&[o.background,o.worldview].map(S=>S.trim()).filter(Boolean).join(",")||c.identity,y=[o.appearance,o.heightBuild,o.bodyFeatures].map(S=>S.trim()).filter(Boolean).join(","),C=Ci.value??m[0];return{id:`profile-local-${Date.now()}-${n}`,name:c.name,identity:v,personality:[o.personality,o.likes,o.dislikes].map(S=>S.trim()).filter(Boolean).join(";")||"性格待细化",hairColor:ji(y,["发色","头发","发"],"发色待细化"),hairstyle:ji(y,["发型","短发","长发","马尾","刘海"],y||"发型待细化"),eyeColor:ji(y,["瞳色","眼睛","眼"],"瞳色待细化"),clothing:o.outfit.trim()||"服装与配饰待细化",style:pd(o),negative:o.avoid.trim()||"低质量、结构错误、过度复杂",status:"新建档案",updatedAt:"刚刚",materialId:(C==null?void 0:C.id)??Ue.value,colors:(C==null?void 0:C.colors)??Ia(n)}}function fd(o,n){const c=o.split(/[,,。;;\n]/).map(S=>Dn(S)).filter(Boolean),v=c[0]??"",y=v&&v.length<=16?v:`新角色 ${String(n).padStart(2,"0")}`,C=(v===y?c.slice(1).join(","):c.join(","))||(v&&v!==y?v:"角色身份待细化");return{name:y,identity:C}}function ji(o,n,c){const v=o.trim();return v?v.split(/[,,。;;\n]/).map(C=>Dn(C)).filter(Boolean).find(C=>n.some(S=>C.includes(S)))??c:c}function pd(o){const n=[o.worldview,o.scene,o.generationStyle,o.shotPreference,o.mood].map(c=>c.trim()).filter(Boolean);return n.length?`${n.join(",")},角色设定插画,清晰轮廓,高可读设计`:"角色设定插画,清晰轮廓,高可读设计"}function Ia(o){const n=[["#3f7edc","#2ec4b6","#f5c542"],["#2f7a60","#d2a23a","#e0f2fe"],["#d65b7f","#209b8d","#f4f4f5"]];return n[o%n.length]}function md(){if(!Ft.value.trim())return;const n=ki.value;p.value={roleCore:n.roleCore,personality:n.personality,appearance:n.appearance,outfit:n.outfit,scene:n.scene,avoid:n.avoid,worldview:n.worldview,background:n.background,heightBuild:n.heightBuild,bodyFeatures:n.bodyFeatures,likes:n.likes,dislikes:n.dislikes,habits:n.habits,relationships:n.relationships,storyHooks:n.storyHooks,generationStyle:n.generationStyle,shotPreference:n.shotPreference,mood:n.mood,extraNotes:n.extraNotes},n.recognizedKeys.some(c=>["worldview","background","heightBuild","bodyFeatures","likes","dislikes","habits","relationships","storyHooks","generationStyle","shotPreference","mood","extraNotes"].includes(c))&&(bo.value="advanced"),Ct("externalProfileImport"),Fn()}function vd(o){const n=new Set;if(!o)return{...Pc(),recognizedKeys:[]};const c=El(o,["姓名","名字","角色名","名称","name","character name"]),v=El(o,["身份","职业","定位","种族","role","identity","occupation"]),y=El(o,["角色核心","人设","简介","设定","介绍","profile","summary","description","brief"]),C=Ca(o,["角色","身份","职业","来自","负责","name","role"]),S=gd([c,v,y]).join(",")||C||o.slice(0,220);S&&n.add("roleCore");const k=Qe(o,["性格","人格","个性","personality","trait","traits"],["冷静","开朗","温和","敏锐","可靠","慢热","强势","沉稳","活泼","内向","外向"],"性格关键词待从原文继续整理"),te=Qe(o,["外观","外貌","长相","发色","发型","眼睛","瞳色","appearance","look","hair","eyes"],["发","眼","身高","体型","肤色","瞳","长发","短发","刘海"],"外观特征待从原文继续整理"),d=Qe(o,["服装","衣着","穿着","配饰","outfit","clothing","accessory","accessories"],["外套","裙","靴","制服","配饰","项链","手套","披风","夹克","耳饰"],"服装与配饰待从原文继续整理"),G=Qe(o,["场景","背景","世界观","日常","scene","background","world","setting"],["城市","港区","学院","战场","雨夜","实验室","森林","房间","街区"],"常用场景待补充"),pe=Qe(o,["避雷","禁用","负面","不要","negative","avoid"],["不要","避免","禁止","低质量","崩坏","血腥","恐怖"],"低质量、结构错误、过度复杂、与角色设定冲突"),Se=Qe(o,["世界观","时代","地点","setting","world","worldview"],["现代","赛博","奇幻","末世","校园","古风","星际","王国","都市"],""),gt=Qe(o,["背景","经历","过去","身世","background","history","backstory"],["曾经","出生","来自","经历","过去","现在","目前"],""),me=Qe(o,["身高","身材","体型","height","build","body type"],["cm","厘米","高挑","娇小","纤细","健壮","匀称","丰满"],""),Ve=Qe(o,["记忆点","特征","伤疤","纹身","义体","body feature","mark"],["伤疤","痣","纹身","义体","异色瞳","尖耳","机械","尾巴","角"],""),Fe=Qe(o,["喜好","喜欢","爱好","likes","hobby","hobbies"],["喜欢","擅长","热爱","收藏","常喝","常吃"],""),et=Qe(o,["不喜欢","讨厌","害怕","dislikes","fear","fears"],["不喜欢","讨厌","害怕","排斥","恐惧"],""),Ht=Qe(o,["习惯","生活习惯","日常","habit","routine"],["习惯","总是","经常","每天","熬夜","洁癖"],""),Wn=Qe(o,["关系","同伴","亲友","敌人","relationship","relationships"],["朋友","同伴","家人","敌人","导师","搭档","组织"],""),Ho=Qe(o,["目标","秘密","故事钩子","主线","goal","secret","plot"],["目标","秘密","寻找","保护","复仇","调查","逃亡"],""),jn=Qe(o,["画风","美术风格","style","art style"],["插画","厚涂","赛璐璐","写实","电影感","水彩","像素"],""),Fl=Qe(o,["镜头","构图","视角","shot","composition"],["头像","半身","全身","立绘","正面","侧面","俯视","仰视"],""),Hn=Qe(o,["氛围","情绪","气质","mood","atmosphere"],["明亮","压抑","柔和","危险","神圣","冷峻","温暖","孤独"],""),Dl=Qe(o,["补充","备注","其他","note","notes"],["补充","备注","另外","其他"],"");for(const[Yi,Ji]of Object.entries({personality:k,appearance:te,outfit:d,scene:G,avoid:pe,worldview:Se,background:gt,heightBuild:me,bodyFeatures:Ve,likes:Fe,dislikes:et,habits:Ht,relationships:Wn,storyHooks:Ho,generationStyle:jn,shotPreference:Fl,mood:Hn,extraNotes:Dl}))Ji.recognized&&n.add(Yi);return{roleCore:S,personality:k.value,appearance:te.value,outfit:d.value,scene:G.value,avoid:pe.value,worldview:Se.value,background:gt.value,heightBuild:me.value,bodyFeatures:Ve.value,likes:Fe.value,dislikes:et.value,habits:Ht.value,relationships:Wn.value,storyHooks:Ho.value,generationStyle:jn.value,shotPreference:Fl.value,mood:Hn.value,extraNotes:Dl.value,recognizedKeys:Array.from(n)}}function Qe(o,n,c,v){const y=El(o,n);if(y)return{value:y,recognized:!0};const C=Ca(o,c);return C?{value:C,recognized:!0}:{value:v,recognized:!1}}function El(o,n){const c=o.split(/\r?\n/).map(C=>C.trim()).filter(Boolean),v=n.map(hd).join("|"),y=new RegExp(`^\\s*(?:[-*•]|\\d+[.)、])?\\s*(?:["'“”\\[【])?(?:${v})(?:["'“”\\]】])?\\s*[::=]\\s*(.+)$`,"i");for(const C of c){const S=C.match(y);if(S!=null&&S[1])return Dn(S[1])}return null}function Ca(o,n){return o.split(/\r?\n/).map(y=>y.trim()).filter(Boolean).filter(y=>n.some(C=>y.toLowerCase().includes(C.toLowerCase()))).map(y=>Dn(y.replace(/^\s*(?:[-*•]|[0-9]+[.)、])\s*/,""))).filter(Boolean).slice(0,3).join(";")}function gd(o){const n=new Set;return o.map(c=>c?Dn(c):"").filter(c=>!c||n.has(c)?!1:(n.add(c),!0))}function Dn(o){return o.replace(/^[\s"'“”`【】[\]]+/,"").replace(/[\s"'“”`,,;;]+$/,"").trim()}function hd(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xa(o){var y;const n=o.target instanceof Element?o.target:null,c=(y=n==null?void 0:n.closest("[data-overlay-root]"))==null?void 0:y.dataset.overlayRoot,v=bd(c)?c:null;Nt(v??void 0)}function Pa(o){o.key==="Escape"&&Nt()}function Hi(o){const n=!$a(o);Nt(o),Sa(o,n)}function Nt(o){for(const n of Hr)n!==o&&Ct(n)}function Ct(o){Sa(o,!1)}function Sa(o,n){o==="search"&&(Je.value=n,Xe.value=n),o==="palette"&&(pl.value=n),o==="notifications"&&(ml.value=n),o==="logs"&&(vl.value=n),o==="imageViewer"&&(Et.value=n,n||(lo.value=!1)),o==="materialPicker"&&!n&&(Ke.value=""),o==="personaQuestionnaire"&&(no.value=n),o==="quickProfileDetail"&&(ho.value=n),o==="externalProfileImport"&&(Oo.value=n)}function $a(o){return o==="search"?Xe.value:o==="palette"?pl.value:o==="notifications"?ml.value:o==="imageViewer"?Et.value:o==="materialPicker"?!!Ke.value:o==="personaQuestionnaire"?no.value:o==="quickProfileDetail"?ho.value:o==="externalProfileImport"?Oo.value:vl.value}function bd(o){return Hr.includes(o)}function yd(o){Tt.value=o.primary,yo.value=o.accent}function wd(o){It.value.includes(o)||(It.value=[...It.value,o])}function kd(){It.value=Rl([...It.value,...On.value.map(o=>o.id)])}function _d(){const o=On.value.filter(n=>It.value.includes(n.id)).map(n=>n.id);tn.value=Rl([...tn.value,...o])}function Id(o){io(o.nav,o.module)}function Nl(o){return{running:"运行中",degraded:"降级",stopped:"已停止",loading:"加载中",created:"已创建",pending:"等待中",queued:"排队中",completed:"已完成",succeeded:"已成功",failed:"失败",cancelled:"已取消",dead_letter:"死信"}[jt(o)]??o}function Ma(o){return{all:"全部",completed:"完成",failed:"失败",warning:"警告",system:"系统"}[o]}function Vo(o){return{done:"已完成",running:"生成中",waiting:"待开始",review:"待审核"}[o]}function mt(o,n,c,v){const y=c.trim();return{key:o,label:n,value:y||"待补充",hint:v,status:y&&y!=="-"&&y!=="待补充"?"ready":"pending"}}function Cd(){var o,n,c;return{id:"brief-import",step:"01",title:"导入粗略人设",detail:"选择已落库角色卡作为角色工作流输入。",status:"done",badge:"Profile",model:"Backend profile",duration:"已就绪",imageId:"",prompt:ie.value.basePrompt,phase:"输入",progress:100,queue:((o=Oe.value)==null?void 0:o.profileId)??"-",attempt:"1 / 1",eta:"已完成",input:((n=Oe.value)==null?void 0:n.name)??"-",result:(c=Oe.value)!=null&&c.workflowId?"角色工作流已绑定":"等待创建角色工作流",dependsOn:"无",outputCount:"1 张角色卡"}}function xd(o,n){var S,k;const c=Be.value[o.node_id]??[],y=(o.selected_image_id?c.find(te=>te.image_id===o.selected_image_id):null)??c[0],C=o.metadata??{};return{id:Bn(o),step:String(n+2).padStart(2,"0"),title:Pd(o),detail:o.description||Aa(o),status:Ta(o.status),badge:Sd(o),model:o.model_route||((S=sn.value)==null?void 0:S.label)||"Backend workflow",duration:rt(C,"duration")||(o.status==="completed"?"已完成":"待运行"),imageId:(y==null?void 0:y.image_id)??"",imageIds:c.map(te=>te.image_id),prompt:o.prompt||Aa(o),phase:o.step_name||o.node_key,progress:$d(o.status),queue:rt(C,"last_task_id")||rt(C,"queue")||"-",attempt:rt(C,"attempt")||"-",eta:o.status==="running"||o.status==="queued"?"运行中":o.status==="completed"?"已完成":"待开始",input:rt(C,"input")||((k=Oe.value)==null?void 0:k.name)||"-",result:rt(C,"result")||(c.length?`${c.length} 张候选图`:Vo(Ta(o.status))),dependsOn:rt(C,"depends_on")||"-",outputCount:c.length?`${c.length} 张`:"等待产物",round:o.step_name||o.node_key,lockedItems:rt(C,"locked_items")||"-",decision:rt(C,"decision")||"-"}}function Bn(o){return Wu[o.node_key]??`backend-${o.node_key||o.node_id}`}function Pd(o){return{profile_brief:"LLM 拆解设定",headshot:"头像草稿",half_body:"半身草稿",full_body:"全身设定",expression_sheet:"表情设定图",pose_sheet:"姿势设定图",style_lock:"高清修复与统一风格",final_pack:"版本保存与入库",fast_profile:"LLM 拆解设定",fast_candidates:"快速候选图",fast_final:"最终角色图"}[o.node_key]||o.title}function Aa(o){return o.description||o.node_key.replace(/_/g," ")}function Sd(o){return o.node_key.includes("profile")||o.node_key.includes("brief")?"LLM":o.node_key.includes("final")||o.node_key.includes("pack")?"Archive":o.node_type==="generation"?"Image":o.node_type}function Ta(o){const n=jt(o);return n==="completed"||n==="selected"?"done":n==="running"||n==="queued"?"running":n==="failed"?"review":"waiting"}function $d(o){const n=jt(o);return n==="completed"||n==="selected"?100:n==="running"?68:n==="queued"?18:0}function Md(o){return o&&(o.id.includes("portrait")||o.id.includes("body")||o.id.includes("sheet"))?4:1}function Ad(o){return o?o.id.includes("fullbody")||o.id.includes("body")?"3:4":o.id.includes("sheet")?"4:3":"1:1":"1:1"}function Vn(o){const n=new Set;return o.filter(c=>n.has(c.image_id)?!1:(n.add(c.image_id),!0))}function Td(o){const n=new Set;return o.filter(c=>{const v=c.profileId||c.id;return n.has(v)?!1:(n.add(v),!0)})}function Ed(o){return o.some(n=>n.status==="running")?"running":o.some(n=>n.status==="review")?"review":o.length&&o.every(n=>n.status==="done")?"done":"waiting"}function Nd(o){if(!o.length)return 0;const n=o.reduce((c,v)=>c+(v.progress??0),0);return Math.round(n/o.length)}function Ui(o){const n=rt(o.metadata,"title"),c=rt(o.request,"prompt");return n||c||`${o.task_type||"generation"} / ${ql(o.task_id)}`}function Ol(o){const n=Od(o)?o:null,c=n==null?void 0:n.width,v=n==null?void 0:n.height,y=c&&v?`${c}x${v}`:"-",C=(n==null?void 0:n.model_route)||(n==null?void 0:n.model_used)||"后端返回",S=(n==null?void 0:n.positive_prompt)||"后端最近图片,等待补充原始提示词",k=n!=null&&n.is_archived?"已归档":"已生成";return{...o,title:Le(o),prompt:S,model:C,size:y,seed:n!=null&&n.seed?String(n.seed):ql(o.image_id),duration:"-",status:k,source:n!=null&&n.task_id?`任务 ${ql(n.task_id)}`:"图库最近图片"}}function Od(o){return"positive_prompt"in o||"is_archived"in o}function Wo(o,n,c,v,y=[4,3]){const[C,S,k]=v,te=String(o).padStart(2,"0"),d=Ea(n),G=Ea(c.length>34?`${c.slice(0,34)}...`:c),[pe,Se]=y,gt=pe>0&&Se>0?pe/Se:4/3,me=gt>=1?1200:Math.round(1200*gt),Ve=gt>=1?Math.round(1200/gt):1200,Fe=Math.min(me,Ve),et=Math.round(Fe*.08),Ht=Math.round(et*1.38),Wn=Math.round(Fe*.045),Ho=Math.max(42,Math.round(Fe*.065)),jn=Math.round(Ve-et*1.55),Fl=Math.min(Ve-et*.75,jn+Math.round(Fe*.07)),Hn=Math.round(et+Fe*.075),Dl=Math.max(42,Math.round(Fe*.078)),Yi=Math.max(20,Math.round(Fe*.034)),Ji=Math.max(22,Math.round(Fe*.035)),Gd=Math.max(74,Math.round(Fe*.13)),Qd=me-et*2,zd=Ve-et*2,Yd=me-Ht*2,Jd=Ve-Ht*2,Xd=Math.round(me*.72),Zd=Math.round(Ve*.22),ef=Math.round(Fe*.46),tf=Math.round(me*.22),of=Math.round(Ve*.69),nf=Math.round(Fe*.24),lf=Math.round(me-et*1.4),rf=`${pe}:${Se}`,af=`
<svg xmlns="http://www.w3.org/2000/svg" width="${me}" height="${Ve}" viewBox="0 0 ${me} ${Ve}" preserveAspectRatio="xMidYMid meet">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="${C}" />
<stop offset="58%" stop-color="${S}" />
<stop offset="100%" stop-color="#111827" />
</linearGradient>
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
<stop offset="0%" stop-color="${k}" stop-opacity="0.82" />
<stop offset="100%" stop-color="${k}" stop-opacity="0" />
</radialGradient>
<pattern id="grid" width="${Ho}" height="${Ho}" patternUnits="userSpaceOnUse">
<path d="M${Ho} 0H0V${Ho}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
</pattern>
</defs>
<rect width="${me}" height="${Ve}" fill="url(#bg)" />
<rect width="${me}" height="${Ve}" fill="url(#grid)" />
<circle cx="${Xd}" cy="${Zd}" r="${ef}" fill="url(#halo)" />
<circle cx="${tf}" cy="${of}" r="${nf}" fill="#ffffff" opacity="0.11" />
<rect x="${et}" y="${et}" width="${Qd}" height="${zd}" rx="${Wn}" fill="#ffffff" opacity="0.14" />
<rect x="${Ht}" y="${Ht}" width="${Yd}" height="${Jd}" rx="${Math.round(Wn*.72)}" fill="#0f172a" opacity="0.24" />
<text x="${Ht+Math.round(Fe*.035)}" y="${Hn}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ji}" font-weight="700">IMAGESTUDIO TEST ${te}</text>
<text x="${Ht+Math.round(Fe*.035)}" y="${jn}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Dl}" font-weight="800">${d}</text>
<text x="${Ht+Math.round(Fe*.035)}" y="${Fl}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Yi}">${G}</text>
<text x="${lf}" y="${Hn+Math.round(Fe*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Gd}" font-weight="900">${te}</text>
<text x="${me-et}" y="${Ve-Math.round(et*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(Fe*.027))}" font-weight="800">${rf}</text>
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(af)}`}function qd(o){const n=o.match(/(\d+)\s*x\s*(\d+)/i);if(!n)return[4,3];const c=Number(n[1]),v=Number(n[2]);if(!Number.isFinite(c)||!Number.isFinite(v)||c<=0||v<=0)return[4,3];const y=Ld(c,v);return[Math.round(c/y),Math.round(v/y)]}function Ld(o,n){let c=Math.abs(Math.round(o)),v=Math.abs(Math.round(n));for(;v;){const y=c%v;c=v,v=y}return c||1}function Ea(o){return o.replace(/[&<>"']/g,n=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})[n]??n)}function Le(o){return"title"in o&&o.title?o.title:o.node_id||o.workflow_id||o.profile_id||ql(o.image_id)}function We(o){return o.thumbnail_url||o.image_url||""}function Rd(o){if(o.status==="confirmed_unsupported")return!1;if(o.dialect==="openai_images"||o.dialect==="comfyui")return!0;const n=o.capabilities||{};return!!(n.text_to_image||n.image_generation||n.workflow_graph||Object.keys(n).some(c=>["text_to_image","image_generation","workflow_graph"].includes(c)))}function ql(o){return o.length>10?`${o.slice(0,6)}...${o.slice(-4)}`:o}function Fd(o){const n=Number(o.progress);return Number.isFinite(n)?Math.max(0,Math.min(100,n)):0}function Dd(o,n,c){return Math.max(n,Math.min(c,o))}function jt(o){return String(o||"").trim().toLowerCase()}function Bd(o){const n=jt(o);return["failed","dead_letter","cancelled"].includes(n)?"is-bad":["running","queued","created","pending"].includes(n)?"is-warn":["completed","succeeded"].includes(n)?"is-good":"is-idle"}function jo(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:o<1024*1024*1024?`${(o/1024/1024).toFixed(1)} MB`:`${(o/1024/1024/1024).toFixed(1)} GB`}function gn(o){if(!o)return"-";const n=new Date(o);return Number.isNaN(n.getTime())?o:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(n)}function Vd(o){const n=zi(o.created_at);if(!n)return"-";const c=Math.max(0,Math.round((Date.now()-n)/6e4));return c<1?"刚刚":c<60?`${c} 分钟`:`${Math.round(c/60)} 小时`}function Wd(){const o=localStorage.getItem(Vt.theme);(o==="light"||o==="dark")&&(ft.value=o),Tt.value=localStorage.getItem(Vt.primary)||Tt.value,yo.value=localStorage.getItem(Vt.accent)||yo.value,It.value=Na(localStorage.getItem(Vt.readNotifications)),tn.value=Na(localStorage.getItem(Vt.dismissedNotifications))}function jd(){localStorage.setItem(Vt.theme,ft.value),localStorage.setItem(Vt.primary,Tt.value),localStorage.setItem(Vt.accent,yo.value),localStorage.setItem(Vt.readNotifications,JSON.stringify(It.value)),localStorage.setItem(Vt.dismissedNotifications,JSON.stringify(tn.value))}function Na(o){if(!o)return[];try{const n=JSON.parse(o);return Array.isArray(n)?n.filter(c=>typeof c=="string"):[]}catch{return[]}}function ao(o,n){const c=Qi(o);return c?`rgba(${c.r}, ${c.g}, ${c.b}, ${n})`:`rgba(118, 104, 232, ${n})`}function Ki(o,n,c){const v=Qi(o),y=Qi(n);if(!v||!y)return o;const C=Math.min(1,Math.max(0,c));return`#${Gi(v.r*(1-C)+y.r*C)}${Gi(v.g*(1-C)+y.g*C)}${Gi(v.b*(1-C)+y.b*C)}`}function Gi(o){return Math.round(o).toString(16).padStart(2,"0")}function Qi(o){const n=o.replace("#","");return/^[0-9a-fA-F]{6}$/.test(n)?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}:null}function rt(o,n){const c=o==null?void 0:o[n];return typeof c=="string"?c:""}function Hd(o){return!Ll(o)||typeof o.task_id!="string"?null:{task_id:o.task_id,task_type:typeof o.task_type=="string"?o.task_type:"generation",status:typeof o.status=="string"?o.status:"created",progress:typeof o.progress=="number"?o.progress:0,created_at:typeof o.created_at=="string"?o.created_at:"",updated_at:typeof o.updated_at=="string"?o.updated_at:"",profile_id:typeof o.profile_id=="string"?o.profile_id:null,workflow_id:typeof o.workflow_id=="string"?o.workflow_id:null,node_id:typeof o.node_id=="string"?o.node_id:null,model_route:typeof o.model_route=="string"?o.model_route:null,idempotency_key:typeof o.idempotency_key=="string"?o.idempotency_key:null,request:Ll(o.request)?o.request:void 0,result:Ll(o.result)?o.result:void 0,metadata:Ll(o.metadata)?o.metadata:void 0,error_message:typeof o.error_message=="string"?o.error_message:null}}function Ud(o){return!!o}function Ll(o){return!!(o&&typeof o=="object"&&!Array.isArray(o))}function Kd(o){const n=new Set;return o.filter(c=>n.has(c.id)?!1:(n.add(c.id),!0))}function Rl(o){return Array.from(new Set(o))}function zi(o){const n=Date.parse(o);return Number.isFinite(n)?n:0}function vt(o){return ua(o)}return(o,n)=>{var c,v,y,C,S;return _(),I("main",{class:X(["navigation-shell",{"rail-collapsed":!gl.value}]),"data-theme":ft.value,style:Ge(cc.value)},[i("aside",{class:"rail","aria-label":"ImageStudio navigation",onMouseenter:Ni,onMouseleave:n[0]||(n[0]=k=>$l()),onFocusin:Ni,onFocusout:n[1]||(n[1]=k=>$l())},[i("div",Ym,[n[53]||(n[53]=i("span",{class:"brand-mark"},"IS",-1)),i("div",null,[n[52]||(n[52]=i("strong",null,"ImageStudio",-1)),i("small",null,g(((c=T.value)==null?void 0:c.plugin_version)??"v3"),1)])]),i("nav",Jm,[i("div",Xm,[(_(),I(U,null,ee(t,k=>i("button",{key:k.key,type:"button",class:X({active:ae.value===k.key}),title:k.label,"aria-label":k.label,onClick:te=>Mc(k)},[i("span",ev,g(k.icon),1),i("span",tv,g(k.label),1)],10,Zm)),64))])])],32),i("section",ov,[i("header",nv,[i("div",lv,[i("span",null,g(Uu.value.label),1),i("h1",null,g(((v=T.value)==null?void 0:v.display_name)??"ImageStudio 星图导航"),1)]),i("div",iv,[n[54]||(n[54]=i("span",{"aria-hidden":"true"},"⌕",-1)),Ae(i("input",{"onUpdate:modelValue":n[2]||(n[2]=k=>qo.value=k),type:"search",placeholder:"搜索生成、队列、图库、设置",onFocus:Yc,onInput:n[3]||(n[3]=k=>Xe.value=!0),onKeydown:n[4]||(n[4]=Fm(k=>Ct("search"),["escape"]))},null,544),[[qe,qo.value]]),fc.value?(_(),I("div",rv,[(_(!0),I(U,null,ee(oa.value,k=>(_(),I("button",{key:k.title,type:"button",onMousedown:bn(te=>Ac(k),["prevent"])},[i("strong",null,g(k.title),1),i("small",null,g(k.description),1)],40,av))),128)),oa.value.length?ve("",!0):(_(),I("p",sv,"没有匹配结果"))])):ve("",!0)]),i("div",uv,[i("button",{type:"button",class:"theme-switch",role:"switch","aria-checked":ft.value==="dark",title:ft.value==="dark"?"切换日间":"切换夜间",onClick:Ec},[i("span",{class:X({active:ft.value==="light"}),"aria-label":"日间"},[...n[55]||(n[55]=[i("i",{class:"ui-icon icon-sun","aria-hidden":"true"},null,-1)])],2),i("span",{class:X({active:ft.value==="dark"}),"aria-label":"夜间"},[...n[56]||(n[56]=[i("i",{class:"ui-icon icon-moon","aria-hidden":"true"},null,-1)])],2)],8,cv),i("div",dv,[i("button",{type:"button",class:"icon-button",title:"通知","aria-expanded":ml.value,"aria-controls":"notification-panel",onClick:n[5]||(n[5]=k=>Hi("notifications"))},[n[57]||(n[57]=i("span",{class:"ui-icon icon-bell","aria-hidden":"true"},null,-1)),Ai.value?(_(),I("b",pv,g(Ai.value),1)):ve("",!0)],8,fv),i("div",mv,[n[58]||(n[58]=i("strong",null,"通知概览",-1)),i("ul",null,[(_(!0),I(U,null,ee(la.value,(k,te)=>(_(),I("li",{key:k.id,style:Ge({"--card-index":te})},[i("span",{class:X(["dot",k.type])},null,2),i("span",null,g(k.title),1)],4))),128)),la.value.length?ve("",!0):(_(),I("li",vv,"暂无通知"))])])]),i("button",{type:"button",class:"icon-button",title:"调色盘","data-overlay-root":"palette","aria-expanded":pl.value,"aria-controls":"palette-panel",onClick:n[6]||(n[6]=k=>Hi("palette"))},[...n[59]||(n[59]=[i("span",{class:"ui-icon icon-palette","aria-hidden":"true"},null,-1)])],8,gv),i("div",hv,[i("button",{type:"button",class:"icon-button",title:"日志","aria-expanded":vl.value,"aria-controls":"log-popover",onClick:n[7]||(n[7]=k=>Hi("logs"))},[...n[60]||(n[60]=[i("span",{class:"ui-icon icon-file","aria-hidden":"true"},null,-1)])],8,bv),xe(ht,{name:"overlay-pop"},{default:tt(()=>[vl.value?(_(),I("div",yv,[i("header",null,[i("div",null,[n[61]||(n[61]=i("span",null,"日志",-1)),i("strong",null,g(ln.value?"需要重试":`${ye.value.length+le.value.length} 条`),1)]),i("button",{type:"button",onClick:Sl},"刷新")]),ln.value?(_(),I("div",wv,[n[62]||(n[62]=i("strong",null,"日志加载失败",-1)),i("span",null,g(ln.value),1)])):(_(),Su(dr,{key:1,tag:"ul",name:"card-list",class:"log-list"},{default:tt(()=>[(_(!0),I(U,null,ee(le.value.slice(0,4),(k,te)=>(_(),I("li",{key:`${k.source}-${k.id}`,style:Ge({"--card-index":te})},[n[63]||(n[63]=i("span",{class:"dot failed"},null,-1)),i("span",null,g(k.error_message||k.source),1)],4))),128)),(_(!0),I(U,null,ee(ye.value.slice(0,Math.max(0,4-le.value.length)),(k,te)=>(_(),I("li",{key:k.task_id,style:Ge({"--card-index":te})},[n[64]||(n[64]=i("span",{class:"dot completed"},null,-1)),i("span",null,g(k.task_id)+" / "+g(Nl(k.status)),1)],4))),128)),!le.value.length&&!ye.value.length?(_(),I("li",kv,"暂无日志")):ve("",!0)]),_:1}))])):ve("",!0)]),_:1})]),i("div",{class:X(["backend-status-chip",Kr.value]),title:F.value.detail,"aria-live":"polite"},[n[65]||(n[65]=i("span",{"aria-hidden":"true"},null,-1)),i("strong",null,g(F.value.label),1)],10,_v),i("button",{type:"button",class:"refresh-button",disabled:Ur.value,onClick:Ei},g(Ur.value?"同步中":"刷新"),9,Iv)])]),ju.value?(_(),I("div",{key:0,class:X(["backend-connection-banner",Kr.value]),role:"status"},[i("div",null,[i("strong",null,g(F.value.title),1),i("span",null,g(F.value.detail),1)]),i("button",{type:"button",onClick:Ei},"重新检测")],2)):ve("",!0),xe(ht,{name:"panel-drop"},{default:tt(()=>[pl.value?(_(),I("section",Cv,[i("div",null,[(_(),I(U,null,ee(x,k=>i("button",{key:k.name,type:"button",onClick:te=>yd(k)},[i("span",{class:"swatch",style:Ge({background:k.primary})},null,4),i("span",{class:"swatch",style:Ge({background:k.accent})},null,4),Gl(" "+g(k.name),1)],8,xv)),64))]),i("label",null,[n[66]||(n[66]=i("span",null,"主色",-1)),Ae(i("input",{"onUpdate:modelValue":n[8]||(n[8]=k=>Tt.value=k),type:"color"},null,512),[[qe,Tt.value]])]),i("label",null,[n[67]||(n[67]=i("span",null,"副色",-1)),Ae(i("input",{"onUpdate:modelValue":n[9]||(n[9]=k=>yo.value=k),type:"color"},null,512),[[qe,yo.value]])])])):ve("",!0)]),_:1}),xe(ht,{name:"panel-drop"},{default:tt(()=>[ml.value?(_(),I("section",Pv,[i("header",null,[i("div",null,[n[68]||(n[68]=i("span",null,"消息中心",-1)),i("h2",null,g(Ai.value)+" 条未读",1)]),i("div",{class:"inline-actions"},[i("button",{type:"button",onClick:kd},"全部已读"),i("button",{type:"button",onClick:_d},"清空已读")])]),i("div",Sv,[(_(),I(U,null,ee(["all","completed","failed","warning","system"],k=>i("button",{key:k,type:"button",class:X({active:hl.value===k}),onClick:te=>hl.value=k},g(Ma(k)),11,$v)),64))]),xe(dr,{tag:"ul",name:"card-list",class:"notification-list"},{default:tt(()=>[(_(!0),I(U,null,ee(na.value,(k,te)=>(_(),I("li",{key:k.id,class:X({unread:!It.value.includes(k.id)}),style:Ge({"--card-index":te})},[i("div",{class:X(["notification-thumb",k.type])},[k.thumbnailUrl?(_(),I("img",{key:0,src:k.thumbnailUrl,alt:""},null,8,Mv)):(_(),I("span",Av,g(Ma(k.type).slice(0,1)),1))],2),i("div",null,[i("strong",null,g(k.title),1),i("small",null,g(k.detail),1),i("time",null,g(gn(k.createdAt)),1)]),i("button",{type:"button",onClick:d=>wd(k.id)},g(It.value.includes(k.id)?"已读":"标记"),9,Tv)],6))),128)),na.value.length?ve("",!0):(_(),I("li",Ev,"暂无通知"))]),_:1})])):ve("",!0)]),_:1}),ae.value==="generate"?(_(),I("section",Nv,[i("header",Ov,[i("div",null,[n[69]||(n[69]=i("span",null,"生成工作台",-1)),i("h2",null,g(ia.value.label),1),i("p",null,g(ia.value.detail),1)]),i("div",qv,[(_(),I(U,null,ee(l,k=>i("button",{key:k.key,type:"button",class:X(["generate-mode-button",{active:V.value===k.key}]),"aria-pressed":V.value===k.key,onClick:te=>V.value=k.key},g(k.label),11,Lv)),64))])]),xe(ht,{name:"panel-drop",mode:"out-in"},{default:tt(()=>{var k,te;return[(_(),I("section",{key:V.value,class:"generate-mode-page"},[V.value==="image"?(_(),I("section",Rv,[i("section",Fv,[i("aside",Dv,[i("header",null,[i("div",null,[n[70]||(n[70]=i("span",null,"生成预览",-1)),i("h2",null,g(Io.value.length)+" 张",1)])]),Io.value.length?(_(),I("div",Bv,[(_(!0),I(U,null,ee(Io.value,d=>{var G;return _(),I("button",{key:d.image_id,type:"button",class:X(["image-preview-card",{active:((G=Re.value)==null?void 0:G.image_id)===d.image_id}]),onClick:pe=>se.value=d.image_id},[i("span",Wv,[We(d)?(_(),I("img",{key:0,src:We(d),alt:Le(d)},null,8,jv)):(_(),I("span",Hv,"IMG"))]),i("span",null,[i("strong",null,g(Le(d)),1),i("small",null,g(d.model)+" / "+g(gn(d.created_at)),1)])],10,Vv)}),128))])):(_(),I("div",Uv,[...n[71]||(n[71]=[i("strong",null,"暂无生成预览",-1),i("span",null,"通过自然语言发起生成后,结果会进入这里。",-1)])]))]),i("section",Kv,[i("div",Gv,[Re.value&&We(Re.value)?(_(),I("button",{key:0,type:"button",class:"image-stage-button",title:`打开 ${Le(Re.value)}`,onClick:ba},[i("img",{src:We(Re.value),alt:Le(Re.value)},null,8,zv)],8,Qv)):(_(),I("div",Yv,[...n[72]||(n[72]=[i("strong",null,"等待图片",-1),i("span",null,"左侧选择的结果会在这里放大显示。",-1)])]))]),i("aside",Jv,[i("header",null,[n[73]||(n[73]=i("span",null,"图片信息",-1)),i("strong",null,g(Re.value?Le(Re.value):"未选择"),1)]),i("dl",null,[(_(!0),I(U,null,ee(Gu.value,d=>(_(),I("div",{key:d.label},[i("dt",null,g(d.label),1),i("dd",null,g(d.value),1)]))),128))])])])]),i("form",{class:"image-chat-panel",onSubmit:bn(Uc,["prevent"])},[n[79]||(n[79]=i("div",{class:"image-chat-intro"},[i("strong",null,"对话框"),i("small",null,"直接描述你想要的图片,后续会交由 LLM 翻译成生图提示词并调用工作流。")],-1)),i("div",Xv,[i("div",Zv,[Ae(i("textarea",{"onUpdate:modelValue":n[10]||(n[10]=d=>$e.value=d),rows:"3","aria-label":"描述想生成的图片"},null,512),[[qe,$e.value]]),$e.value.trim()?ve("",!0):(_(),I("div",eg,[n[75]||(n[75]=i("p",null,[i("strong",null,"例如:"),i("span",null,"生成一张雨夜霓虹街头的半身角色图,黑色短发,电影感,高细节。")],-1)),i("p",null,[n[74]||(n[74]=i("strong",null,"最近请求:",-1)),i("span",tg,g(He.value?`${He.value} / ${Ye.value||"未选择模型"}`:"暂无"),1)])]))]),i("div",og,[i("div",ng,[n[77]||(n[77]=i("button",{type:"button",class:"composer-icon-button",title:"生成设置"},[i("span",{"aria-hidden":"true"},"◌")],-1)),i("label",lg,[n[76]||(n[76]=i("span",{"aria-hidden":"true"},"⚡",-1)),Ae(i("select",{"onUpdate:modelValue":n[11]||(n[11]=d=>de.value=d),disabled:!Do.value.length},[(_(!0),I(U,null,ee(Do.value,d=>(_(),I("option",{key:d.value,value:d.value},g(d.provider)+" / "+g(d.label),9,rg))),128))],8,ig),[[hs,de.value]])]),bl.value?(_(),I("span",ag,"同步中")):ce.value?(_(),I("span",sg,"生成中")):_e.value?(_(),I("span",ug,g(_e.value),1)):yl.value?(_(),I("span",cg,"使用本地模型")):ve("",!0)]),i("div",dg,[n[78]||(n[78]=i("button",{type:"button",class:"composer-icon-button",title:"语音输入"},[i("span",{"aria-hidden":"true"},"♩")],-1)),i("button",{type:"submit",class:"composer-send-button",title:"交给 LLM 翻译并生成",disabled:!$e.value.trim()||ce.value},g(ce.value?"...":"↑"),9,fg)])])])],32),xe(ht,{name:"viewer-fade"},{default:tt(()=>[Et.value&&Lo.value==="generation"&&Re.value&&We(Re.value)?(_(),I("div",{key:0,class:"image-viewer-backdrop",role:"dialog","aria-modal":"true","aria-label":`${Le(Re.value)} 预览`,onWheel:bn(Di,["prevent"])},[i("section",mg,[i("header",null,[i("div",null,[n[80]||(n[80]=i("span",null,"图片预览",-1)),i("strong",null,g(Le(Re.value)),1)]),i("div",vg,[i("button",{type:"button",title:"缩小",onClick:n[12]||(n[12]=d=>Rn(-.15))},"-"),i("span",null,g(Gr.value),1),i("button",{type:"button",title:"放大",onClick:n[13]||(n[13]=d=>Rn(.15))},"+"),i("button",{type:"button",title:"重置",onClick:vn},"重置"),i("button",{type:"button",title:"关闭",onClick:Ml},"关闭")])]),i("div",{class:X(["image-viewer-stage",{dragging:lo.value}]),onPointerdown:Bi,onPointermove:Vi,onPointerup:ro,onPointercancel:ro,onPointerleave:ro},[i("img",{src:We(Re.value),alt:Le(Re.value),style:Ge({transform:Ii.value}),draggable:"false"},null,12,gg)],34)])],40,pg)):ve("",!0)]),_:1}),xe(ht,{name:"viewer-fade"},{default:tt(()=>[Et.value&&Lo.value==="workflowCompare"&&nt.value.length?(_(),I("div",hg,[i("section",bg,[i("header",null,[i("div",null,[n[81]||(n[81]=i("span",null,"草稿平铺对比",-1)),i("strong",null,g(Ce.value.title),1)]),i("div",yg,[i("span",null,g(nt.value.length)+" 张",1),i("button",{type:"button",title:"关闭",onClick:Ml},"关闭")])]),i("div",{class:X(["workflow-compare-grid",$i.value])},[(_(!0),I(U,null,ee(nt.value,(d,G)=>(_(),I("button",{key:d.image_id,type:"button",title:`打开 ${Le(d)}`,onClick:pe=>ya(d.image_id)},[We(d)?(_(),I("img",{key:0,src:We(d),alt:Le(d)},null,8,kg)):ve("",!0),i("span",null," 草稿 "+g(String(G+1).padStart(2,"0"))+" / "+g(Le(d)),1)],8,wg))),128))],2)])])):ve("",!0)]),_:1})])):V.value==="quickProfile"?(_(),I("section",_g,[i("section",Ig,[i("aside",Cg,[i("header",xg,[n[82]||(n[82]=i("div",null,[i("span",null,"全部角色档案")],-1)),i("em",null,g(Oe.value.status),1)]),i("div",Pg,[i("button",{type:"button",class:"quick-profile-library-add-card",onClick:Fn},[...n[83]||(n[83]=[i("span",{class:"quick-profile-library-add-icon"},"+",-1),i("span",{class:"quick-profile-library-copy"},[i("strong",null,"添加档案"),i("small",null,"新建角色卡"),i("em",null,"填写问卷后加入档案列表")],-1)])]),(_(!0),I(U,null,ee(An.value,(d,G)=>(_(),I("button",{key:d.id,type:"button","data-profile-card-id":d.id,class:X({active:Dt.value===d.id}),onClick:pe=>qi(d)},[i("span",$g,[i("img",{src:Wo(G+41,d.name,d.identity,d.colors),alt:d.name},null,8,Mg)]),i("span",Ag,[i("strong",null,g(d.name),1),i("small",null,g(d.identity),1),i("em",null,g(d.personality),1)]),i("span",Tg,g(d.updatedAt),1)],10,Sg))),128))])]),i("article",Eg,[n[89]||(n[89]=i("header",{class:"quick-profile-section-header"},[i("div",null,[i("span",null,"角色预览")]),i("em",null,"只读档案")],-1)),i("button",{type:"button",class:"quick-profile-curl-button",title:"打开角色设定详情","aria-label":"打开角色设定详情",onClick:Xc},[...n[84]||(n[84]=[i("span",null,"详情",-1)])]),i("section",Ng,[i("figure",{class:"quick-profile-profile-portrait",style:Ge(Xr.value)},[i("button",{type:"button",class:"quick-profile-portrait-button",title:`打开 ${un.value.label}`,onClick:n[14]||(n[14]=d=>wa(un.value.id))},[i("img",{src:un.value.imageUrl,alt:un.value.label},null,8,qg)],8,Og)],4),i("div",Lg,[n[85]||(n[85]=i("span",null,"姓名",-1)),i("strong",null,g(ie.value.name),1)]),i("div",Rg,[n[86]||(n[86]=i("span",null,"身份",-1)),i("p",null,g(wt.value.identity),1)]),i("div",Fg,[n[87]||(n[87]=i("span",null,"风格",-1)),i("p",null,g(ie.value.stylePrompt||((k=Ci.value)==null?void 0:k.label)),1)]),i("div",Dg,[n[88]||(n[88]=i("span",null,"设定简介",-1)),i("p",null,g(ie.value.basePrompt),1),i("small",null,g(ie.value.appearancePrompt),1)])])]),i("aside",Bg,[i("header",Vg,[i("div",null,[i("span",null,g(Ze.value.detail),1),i("strong",null,g(Ze.value.label),1)]),n[90]||(n[90]=i("em",null,"角色图片",-1))]),i("figure",Wg,[xe(ht,{name:"quick-profile-image-swap"},{default:tt(()=>[(_(),I("button",{key:Ze.value.id,type:"button",class:"quick-profile-hero-button",title:`打开 ${Ze.value.label}`,onClick:n[15]||(n[15]=d=>wa())},[i("img",{src:Ze.value.imageUrl,alt:Ze.value.label},null,8,Hg)],8,jg))]),_:1})]),i("div",Ug,[(_(!0),I(U,null,ee(Bo.value,d=>(_(),I("button",{key:d.id,type:"button",class:X({active:Ee.value===d.id}),onClick:G=>fa(d.id)},[i("span",null,[i("img",{src:d.imageUrl,alt:d.label},null,8,Gg)]),i("strong",null,g(d.label),1),i("small",null,g(d.detail),1),i("em",null,g(d.state),1)],10,Kg))),128))])]),i("section",Qg,[i("header",zg,[n[91]||(n[91]=i("div",null,[i("span",null,"参考素材")],-1)),i("em",null,g(zu.value),1)]),i("div",Yg,[(_(),I(U,null,ee(u,(d,G)=>{var pe,Se,gt;return i("div",{key:d.id,class:"quick-profile-material-slot"},[i("button",{type:"button","data-overlay-root":"materialPicker","data-material-category":d.category,class:X(["quick-profile-material-card",{active:!!So(d.category),expanded:Ke.value===d.category}]),"aria-expanded":Ke.value===d.category,onClick:me=>Dc(d.category)},[i("span",{class:X(["quick-profile-material-media",{empty:!So(d.category)}])},[So(d.category)?(_(),I("img",{key:0,src:da(So(d.category),G),alt:((pe=So(d.category))==null?void 0:pe.label)??d.label},null,8,Xg)):(_(),I("span",Zg,"无"))],2),i("span",eh,[i("small",null,g(d.category),1),i("strong",null,g(((Se=So(d.category))==null?void 0:Se.label)??"不使用参考"),1),i("em",null,g(((gt=So(d.category))==null?void 0:gt.prompt)??"点击选择或添加素材参考"),1)])],10,Jg),xe(ht,{name:"material-picker-pop"},{default:tt(()=>[Ke.value===d.category?(_(),I("aside",{key:0,class:X(["quick-profile-material-picker",{accessory:d.category===uo,filtered:Yr.value}]),"data-overlay-root":"materialPicker"},[i("header",th,[i("div",null,[i("span",null,g(d.category)+"参考",1),n[92]||(n[92]=i("strong",null,"选择素材",-1))]),i("small",null,g(Ju.value),1)]),d.category===uo?(_(),I("div",oh,[(_(!0),I(U,null,ee(Yu.value,me=>(_(),I("button",{key:me,type:"button",class:X({active:to.value===me}),onClick:Ve=>Fc(me)},g(me),11,nh))),128))])):ve("",!0),xe(dr,{tag:"div",name:"material-choice-scale",class:X(["quick-profile-material-picker-list",{accessory:d.category===uo,filtered:Yr.value}])},{default:tt(()=>[i("button",{key:"none",type:"button","data-material-action":"none",class:X(["quick-profile-material-picker-choice","none",{active:!So(Ke.value)}]),onClick:n[16]||(n[16]=me=>Vc(Ke.value))},[...n[93]||(n[93]=[i("span",{class:"quick-profile-material-none-icon"},"无",-1),i("span",{class:"quick-profile-material-picker-copy"},[i("strong",null,"不使用"),i("em",null,"取消这个素材参考")],-1)])],2),(_(!0),I(U,null,ee(zr.value,(me,Ve)=>(_(),I("button",{key:me.id,type:"button","data-material-reference-id":me.id,class:X(["quick-profile-material-picker-choice",{active:Lc(me)}]),onClick:Fe=>Bc(me)},[i("span",ih,[i("img",{src:da(me,Ve),alt:me.label},null,8,rh)]),i("span",ah,[Ke.value===uo?(_(),I("small",sh,g(Rc(me)),1)):ve("",!0),i("strong",null,g(me.label),1),i("em",null,g(me.prompt),1)])],10,lh))),128)),i("button",{key:"add",type:"button","data-material-action":"add",class:"quick-profile-material-picker-choice add",onClick:n[17]||(n[17]=me=>Wc(Ke.value))},[n[94]||(n[94]=i("span",{class:"quick-profile-material-add-icon"},"+",-1)),i("span",uh,[i("strong",null,"添加"+g(Ke.value)+"素材",1),i("em",null,g(Xu.value),1)])])]),_:1},8,["class"])],2)):ve("",!0)]),_:2},1024)])}),64))])]),i("section",ch,[i("header",dh,[n[95]||(n[95]=i("div",null,[i("span",null,"功能按钮")],-1)),i("em",null,g(Zr.value.length)+" 项",1)]),i("div",fh,[(_(!0),I(U,null,ee(Zr.value,d=>(_(),I("article",{key:d.id,class:X(["quick-profile-command-card",d.tone,{disabled:!d.enabled}])},[i("div",ph,[i("span",mh,g(d.badge),1),i("small",null,g(d.state),1)]),i("strong",null,g(d.title),1),i("p",null,g(d.detail),1),d.id==="persona"?(_(),I("button",{key:0,type:"button",onClick:Fn},g(d.action),1)):d.id==="workflow"?(_(),I("button",{key:1,type:"button",onClick:n[18]||(n[18]=G=>V.value="workflow")},g(d.action),1)):d.nav&&d.module?(_(),I("button",{key:2,type:"button",onClick:G=>io(d.nav,d.module)},g(d.action),9,vh)):(_(),I("span",gh,g(d.action),1))],2))),128))])])]),xe(ht,{name:"viewer-fade"},{default:tt(()=>[ho.value?(_(),I("div",hh,[i("section",bh,[i("figure",{class:"quick-profile-detail-card-portrait",style:Ge(Xr.value)},[i("img",{src:un.value.imageUrl,alt:ie.value.name},null,8,yh),i("figcaption",null,[n[96]||(n[96]=i("span",null,"角色设定",-1)),i("strong",null,g(ie.value.name),1)])],4),i("aside",wh,[i("header",null,[i("div",null,[i("span",null,g(Oe.value.status),1),i("strong",null,g(ie.value.name)+" / 设定详情",1)]),i("button",{type:"button",title:"关闭",onClick:n[19]||(n[19]=d=>Ct("quickProfileDetail"))},"×")]),i("dl",null,[(_(!0),I(U,null,ee(ec.value,d=>(_(),I("div",{key:d.label},[i("dt",null,g(d.label),1),i("dd",null,g(d.value),1)]))),128))])])])])):ve("",!0)]),_:1}),xe(ht,{name:"viewer-fade"},{default:tt(()=>[Et.value&&Lo.value==="quickProfile"&&Ze.value?(_(),I("div",{key:0,class:"image-viewer-backdrop quick-profile-viewer-backdrop",role:"dialog","aria-modal":"true","aria-label":`${Ze.value.label} 详情`},[i("section",_h,[i("div",{class:X(["quick-profile-viewer-media",{dragging:lo.value,zoomed:Bt.value>1}]),style:Ge(tc.value),onWheel:bn(Di,["prevent"]),onDblclick:zc,onPointerdown:Bi,onPointermove:Vi,onPointerup:ro,onPointercancel:ro,onPointerleave:ro},[i("div",{class:X(["quick-profile-viewer-frame",oc.value]),style:Ge({transform:Ii.value})},[i("img",{src:Ze.value.imageUrl,alt:Ze.value.label,draggable:"false"},null,8,Ih)],6)],38),i("aside",Ch,[i("header",null,[i("div",null,[i("span",null,g(Ze.value.state),1),i("strong",null,g(ie.value.name)+" / "+g(Ze.value.label),1)]),i("button",{type:"button",title:"关闭",onClick:Ml},"关闭")]),i("dl",null,[(_(!0),I(U,null,ee(nc.value,d=>(_(),I("div",{key:d.label},[i("dt",null,g(d.label),1),i("dd",null,g(d.value),1)]))),128))])])])],8,kh)):ve("",!0)]),_:1})])):(_(),I("section",xh,[i("input",{id:"workflow-compare-toggle",class:"workflow-compare-toggle",type:"checkbox",disabled:nt.value.length<2},null,8,Ph),i("section",Sh,[(_(!0),I(U,null,ee(mc.value,d=>(_(),I("article",{key:d.label},[i("span",null,g(d.label),1),i("strong",null,g(d.value),1),i("small",null,g(d.hint),1)]))),128))]),i("section",$h,[i("aside",Mh,[i("header",Ah,[i("div",null,[n[97]||(n[97]=i("span",null,"节点流程",-1)),i("strong",null,g(_l.value.length)+" 大 / "+g(cn.value.length)+" 小",1)]),i("em",null,g(Vo(Ce.value.status)),1)]),i("div",Th,[(_(!0),I(U,null,ee(_l.value,d=>{var G;return _(),I("article",{key:d.id,class:X(["workflow-node-group",d.status,{active:((G=xi.value)==null?void 0:G.id)===d.id}])},[i("button",{type:"button",class:"workflow-group-card",onClick:pe=>mn(d.previewNodeId)},[i("span",Nh,g(d.step),1),i("span",Oh,[i("small",null,g(Vo(d.status))+" / "+g(d.badge),1),i("strong",null,g(d.title),1),i("em",null,g(d.detail),1),i("span",qh,[i("i",{style:Ge({width:`${d.progress}%`})},null,4)]),i("span",Lh,[i("b",null,g(d.summary),1),i("b",null,g(d.outputCount),1),i("b",null,g(d.eta),1)])])],8,Eh),i("div",Rh,[(_(!0),I(U,null,ee(d.nodes,(pe,Se)=>(_(),I("button",{key:pe.id,type:"button",class:X(["workflow-subnode-card",pe.status,{active:Ce.value.id===pe.id}]),onClick:gt=>mn(pe.id)},[i("span",Dh,g(String(Se+1).padStart(2,"0")),1),i("span",Bh,[i("small",null,"节点 "+g(String(Se+1).padStart(2,"0"))+" / "+g(Vo(pe.status)),1),i("strong",null,g(pe.title),1),i("em",null,g(pe.outputCount??pe.eta??pe.duration),1)])],10,Fh))),128))])],2)}),128))])]),i("section",Vh,[i("header",Wh,[i("div",null,[n[98]||(n[98]=i("span",null,"主预览",-1)),i("strong",null,g(ic.value),1)]),En.value?(_(),I("div",jh,[i("em",null,g(xl.value)+" / "+g(Cl.value)+" 字段",1)])):Si.value?(_(),I("div",Uh,[...n[100]||(n[100]=[i("em",null,"人设导入工作台",-1)])])):(_(),I("div",Hh,[i("em",null,g(nt.value.length)+" 已选 / "+g(xo.value.length)+" 候选",1),n[99]||(n[99]=i("label",{for:"workflow-compare-toggle",class:"workflow-compare-trigger",role:"button","aria-controls":"workflow-compare-panel"}," 平铺对比 ",-1))]))]),Si.value?(_(),I("section",Kh,[i("article",{class:"workflow-profile-import-card create"},[i("button",{type:"button",class:"workflow-profile-import-create-action",title:"打开角色档案问卷","aria-label":"打开角色档案问卷",onClick:Fn}," + "),n[101]||(n[101]=i("div",{class:"workflow-profile-import-copy"},[i("span",null,"新建"),i("strong",null,"新建粗略人设"),i("p",null,"从空白问卷开始,填写角色核心、性格、外观、服装、场景和规避项,然后作为本工作流的基础档案。")],-1))]),i("article",Gh,[i("header",null,[n[102]||(n[102]=i("div",null,[i("span",null,"已有角色卡"),i("strong",null,"选择当前角色卡作为幕布输入")],-1)),i("em",null,g(An.value.length)+" 张",1)]),i("div",Qh,[(_(!0),I(U,null,ee(An.value,(d,G)=>(_(),I("button",{key:d.id,type:"button","data-profile-card-id":d.id,class:X({active:Dt.value===d.id}),onClick:pe=>qi(d)},[i("span",{class:"workflow-profile-import-profile-portrait",style:Ge(qc(d.colors)),"aria-hidden":"true"},null,4),i("span",Yh,[n[103]||(n[103]=i("small",null,"姓名",-1)),i("strong",null,g(d.name),1)]),i("span",Jh,[n[104]||(n[104]=i("small",null,"身份",-1)),i("strong",null,g(d.identity),1)]),i("span",Xh,[n[105]||(n[105]=i("small",null,"风格",-1)),i("strong",null,g(d.style||"未设定"),1)]),i("span",Zh,[n[106]||(n[106]=i("small",null,"设定简介",-1)),i("strong",null,g(Oc(d)),1),i("em",null,g(d.status)+" / "+g(d.updatedAt),1)])],10,zh))),128))])]),i("aside",eb,[n[110]||(n[110]=i("span",null,"当前导入",-1)),i("strong",null,g(Oe.value.name),1),i("p",null,g(Oe.value.identity),1),i("dl",null,[i("div",null,[n[107]||(n[107]=i("dt",null,"风格",-1)),i("dd",null,g(Oe.value.style||((te=Ci.value)==null?void 0:te.label)),1)]),i("div",null,[n[108]||(n[108]=i("dt",null,"素材",-1)),i("dd",null,g(Co.value.length)+" 类参考",1)]),i("div",null,[n[109]||(n[109]=i("dt",null,"状态",-1)),i("dd",null,g(Oe.value.status),1)])])])])):En.value?(_(),I("section",tb,[(_(!0),I(U,null,ee(Il.value,d=>(_(),I("section",{key:d.id,class:"workflow-persona-split-group"},[i("header",null,[i("div",null,[i("span",null,g(d.title),1),i("strong",null,g(d.detail),1)]),i("em",null,g(d.fields.filter(G=>G.status==="ready").length)+" / "+g(d.fields.length),1)]),i("div",ob,[(_(!0),I(U,null,ee(d.fields,G=>(_(),I("article",{key:G.key,class:X(["workflow-persona-split-field",G.status])},[i("span",null,g(G.label),1),i("strong",null,g(G.value),1),i("small",null,g(G.hint),1),i("em",null,g(G.status==="ready"?"已拆解":"待补充"),1)],2))),128))])]))),128)),n[111]||(n[111]=i("aside",{class:"workflow-persona-split-note"},[i("span",null,"后续流向"),i("strong",null,"确认字段后进入提示词规划"),i("p",null,"这些字段会作为头像、半身、全身、设定图和风格锁定节点的共同输入。真实后端返回更细字段后,可以继续映射到这里。")],-1))])):(_(),I("div",{key:2,class:X(["workflow-preview-stage",{comparing:nt.value.length>1}])},[nt.value.length?(_(),I("div",{key:0,class:X(["workflow-preview-selection-grid",$i.value])},[(_(!0),I(U,null,ee(nt.value,(d,G)=>(_(),I("button",{key:d.image_id,type:"button",class:"workflow-preview-main",title:`打开 ${Le(d)}`,onClick:pe=>ya(d.image_id)},[We(d)?(_(),I("img",{key:0,src:We(d),alt:Le(d)},null,8,lb)):ve("",!0),i("span",ib," 草稿 "+g(String(G+1).padStart(2,"0"))+" / "+g(Le(d)),1)],8,nb))),128))],2)):(_(),I("div",rb,[...n[112]||(n[112]=[i("strong",null,"等待节点结果",-1),i("span",null,"节点生成完成后,预览会显示在这里。",-1)])]))],2)),!Si.value&&!En.value?(_(),I("section",ab,[n[113]||(n[113]=i("header",null,[i("span",null,"草稿池"),i("em",null,"点击草稿多选,上方会一起显示")],-1)),i("div",sb,[(_(!0),I(U,null,ee(xo.value,(d,G)=>{var pe;return _(),I("button",{key:d.image_id,type:"button",class:X({active:re.value.includes(d.image_id),focused:((pe=Pl.value)==null?void 0:pe.image_id)===d.image_id}),disabled:fn.value,onClick:Se=>jc(d.image_id)},[i("span",cb,[We(d)?(_(),I("img",{key:0,src:We(d),alt:Le(d)},null,8,db)):ve("",!0),i("em",null,g(String(G+1).padStart(2,"0")),1),re.value.includes(d.image_id)?(_(),I("strong",fb," ✓ ")):ve("",!0)]),i("span",pb,[i("strong",null,"草稿 "+g(String(G+1).padStart(2,"0")),1),i("small",null,g(d.model)+" / "+g(d.status),1)])],10,ub)}),128))])])):ve("",!0)]),i("aside",{class:X(["workflow-surface workflow-detail-panel",{"persona-split":En.value}])},[i("header",mb,[n[114]||(n[114]=i("div",null,[i("span",null,"节点详情"),i("strong",null,"参数与提示词")],-1)),i("em",null,g(Ce.value.badge),1)]),En.value?(_(),I("article",vb,[i("header",null,[i("div",null,[n[115]||(n[115]=i("span",null,"LLM 拆解设定",-1)),i("strong",null,g(Oe.value.name),1)]),i("em",null,g(Ce.value.badge),1)]),i("p",null,g(Ce.value.detail),1),i("dl",null,[(_(!0),I(U,null,ee(rc.value,d=>(_(),I("div",{key:d.label},[i("dt",null,g(d.label),1),i("dd",null,g(d.value),1),i("small",null,g(d.hint),1)]))),128))])])):(_(),I("dl",gb,[(_(!0),I(U,null,ee(sc.value,d=>(_(),I("div",{key:d.label},[i("dt",null,g(d.label),1),i("dd",null,g(d.value),1)]))),128))])),fn.value?(_(),I("section",hb,[n[116]||(n[116]=i("span",null,"已锁定",-1)),i("strong",null,g(Ce.value.title),1),i("p",null,g(Pi.value),1)])):ve("",!0),i("section",bb,[i("header",null,[n[117]||(n[117]=i("span",null,"工作流操作",-1)),j.value||fe.value?(_(),I("em",yb,"执行中")):K.value||ue.value?(_(),I("em",wb,g(K.value||ue.value),1)):B.value?(_(),I("em",kb,"加载中")):H.value?(_(),I("em",_b,g(H.value),1)):(_(),I("em",Ib,g(ea.value.length)+" 项",1))]),i("div",Cb,[(_(!0),I(U,null,ee(ea.value,d=>(_(),I("article",{key:d.id,class:X(["workflow-action-card",d.tone,{disabled:!d.enabled}])},[i("div",null,[i("span",xb,g(d.badge),1),i("small",null,g(d.state),1)]),i("strong",null,g(d.title),1),i("p",null,g(d.detail),1),d.actionKey||d.nav&&d.module?(_(),I("button",{key:0,type:"button",disabled:!d.enabled,onClick:G=>Zc(d)},g(d.action),9,Pb)):(_(),I("span",Sb,g(d.action),1))],2))),128))])])],2)]),i("form",{class:"image-chat-panel workflow-chat-panel",onSubmit:bn(Gc,["prevent"])},[i("div",$b,[n[118]||(n[118]=i("strong",null,"对话框",-1)),i("small",null,g(ac.value),1)]),i("div",Mb,[i("div",Ab,[Ae(i("textarea",{"onUpdate:modelValue":n[20]||(n[20]=d=>ge.value=d),rows:"3","aria-label":"描述角色工作流调整",disabled:fn.value},null,8,Tb),[[qe,ge.value]]),ge.value.trim()?ve("",!0):(_(),I("div",Eb,[i("p",null,[n[119]||(n[119]=i("strong",null,"当前节点:",-1)),i("span",null,g(Ce.value.title)+" / "+g(Ce.value.phase)+" / 英文提示词注入",1)]),n[121]||(n[121]=i("p",null,[i("strong",null,"例如:"),i("span",null,"把当前半身节点改得更冷静,外套减少装饰,保留青绿色眼睛。")],-1)),i("p",null,[n[120]||(n[120]=i("strong",null,"最近请求:",-1)),i("span",Nb,g(At.value?`${At.value} / ${No.value||"未选择模型"}`:"暂无"),1)])]))]),i("div",Ob,[i("div",qb,[n[123]||(n[123]=i("button",{type:"button",class:"composer-icon-button",title:"工作流设置"},[i("span",{"aria-hidden":"true"},"◌")],-1)),i("label",Lb,[n[122]||(n[122]=i("span",{"aria-hidden":"true"},"⚡",-1)),Ae(i("select",{"onUpdate:modelValue":n[21]||(n[21]=d=>de.value=d),disabled:!Do.value.length},[(_(!0),I(U,null,ee(Do.value,d=>(_(),I("option",{key:d.value,value:d.value},g(d.provider)+" / "+g(d.label),9,Fb))),128))],8,Rb),[[hs,de.value]])]),bl.value?(_(),I("span",Db,"同步中")):yl.value?(_(),I("span",Bb,"使用本地模型")):ve("",!0)]),i("div",Vb,[n[124]||(n[124]=i("button",{type:"button",class:"composer-icon-button",title:"附加素材"},[i("span",{"aria-hidden":"true"},"+")],-1)),i("button",{type:"submit",class:"composer-send-button",title:"交给 LLM 拆解节点指令",disabled:!ge.value.trim()||fn.value}," ↑ ",8,Wb)])])])],32),i("div",jb,[n[127]||(n[127]=i("label",{class:"workflow-compare-backdrop-hit",for:"workflow-compare-toggle","aria-label":"关闭草稿平铺对比"},null,-1)),i("section",Hb,[i("header",null,[i("div",null,[n[125]||(n[125]=i("span",null,"草稿平铺对比",-1)),i("strong",null,g(Ce.value.title),1)]),i("div",Ub,[i("span",null,g(nt.value.length)+" 张",1),n[126]||(n[126]=i("label",{class:"workflow-compare-close",for:"workflow-compare-toggle"},"关闭",-1))])]),i("div",{class:X(["workflow-compare-grid",$i.value])},[(_(!0),I(U,null,ee(nt.value,(d,G)=>(_(),I("figure",{key:d.image_id},[We(d)?(_(),I("img",{key:0,src:We(d),alt:Le(d)},null,8,Kb)):ve("",!0),i("figcaption",null," 草稿 "+g(String(G+1).padStart(2,"0"))+" / "+g(Le(d)),1)]))),128))],2)])]),xe(ht,{name:"viewer-fade"},{default:tt(()=>[Et.value&&Lo.value==="generation"&&Re.value&&We(Re.value)?(_(),I("div",{key:0,class:"image-viewer-backdrop",role:"dialog","aria-modal":"true","aria-label":`${Le(Re.value)} 预览`,onWheel:bn(Di,["prevent"])},[i("section",Qb,[i("header",null,[i("div",null,[n[128]||(n[128]=i("span",null,"图片预览",-1)),i("strong",null,g(Le(Re.value)),1)]),i("div",zb,[i("button",{type:"button",title:"缩小",onClick:n[22]||(n[22]=d=>Rn(-.15))},"-"),i("span",null,g(Gr.value),1),i("button",{type:"button",title:"放大",onClick:n[23]||(n[23]=d=>Rn(.15))},"+"),i("button",{type:"button",title:"重置",onClick:vn},"重置"),i("button",{type:"button",title:"关闭",onClick:Ml},"关闭")])]),i("div",{class:X(["image-viewer-stage",{dragging:lo.value}]),onPointerdown:Bi,onPointermove:Vi,onPointerup:ro,onPointercancel:ro,onPointerleave:ro},[i("img",{src:We(Re.value),alt:Le(Re.value),style:Ge({transform:Ii.value}),draggable:"false"},null,12,Yb)],34)])],40,Gb)):ve("",!0)]),_:1})])),xe(ht,{name:"viewer-fade"},{default:tt(()=>[Oo.value?(_(),I("div",Jb,[i("section",Xb,[i("header",null,[n[129]||(n[129]=i("div",null,[i("span",null,"外部角色卡"),i("strong",null,"粘贴文本并识别为角色档案")],-1)),i("button",{type:"button",title:"关闭",onClick:n[24]||(n[24]=d=>Ct("externalProfileImport"))},"×")]),i("div",Zb,[i("label",ey,[n[130]||(n[130]=i("span",null,"原始文本",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[25]||(n[25]=d=>Ft.value=d),"data-profile-import-input":"",rows:"14",placeholder:`姓名:星港绘理
身份:近未来港区巡查员
性格:冷静、可靠、行动快
外观:黑色短发,青绿色眼睛
服装:轻机能外套、短靴、发光臂章
避雷:低质量、结构错误`},null,512),[[qe,Ft.value]])]),i("aside",ty,[i("header",null,[i("div",null,[n[131]||(n[131]=i("span",null,"识别预览",-1)),i("strong",null,g(Hu.value)+" / "+g(_i.value.length),1)]),i("em",null,g(an.value?`${an.value.length} 字`:"待粘贴"),1)]),i("dl",null,[(_(!0),I(U,null,ee(_i.value,d=>(_(),I("div",{key:d.key,class:X({pending:an.value&&!d.recognized})},[i("dt",null,[Gl(g(d.label)+" ",1),i("span",null,g(d.recognized?"已识别":"待整理"),1)]),i("dd",null,g(d.value||"粘贴文本后显示"),1)],2))),128))])])]),i("footer",null,[i("span",null,g(an.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),i("button",{type:"button",onClick:n[26]||(n[26]=d=>Ct("externalProfileImport"))},"取消"),i("button",{type:"button",disabled:!an.value,onClick:md}," 识别并填入问卷 ",8,oy)])])])):ve("",!0)]),_:1}),xe(ht,{name:"viewer-fade"},{default:tt(()=>[no.value?(_(),I("div",ny,[i("section",ly,[i("header",null,[n[132]||(n[132]=i("div",null,[i("span",null,"快速角色"),i("strong",null,"创建角色档案问卷")],-1)),i("button",{type:"button",title:"关闭",onClick:n[27]||(n[27]=d=>Ct("personaQuestionnaire"))},"×")]),i("div",iy,[i("label",null,[n[133]||(n[133]=i("span",null,"角色核心",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[28]||(n[28]=d=>p.value.roleCore=d),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[qe,p.value.roleCore]])]),i("label",null,[n[134]||(n[134]=i("span",null,"性格关键词",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[29]||(n[29]=d=>p.value.personality=d),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[qe,p.value.personality]])]),i("label",null,[n[135]||(n[135]=i("span",null,"外观特征",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[30]||(n[30]=d=>p.value.appearance=d),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[qe,p.value.appearance]])]),i("label",null,[n[136]||(n[136]=i("span",null,"服装与配饰",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[31]||(n[31]=d=>p.value.outfit=d),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[qe,p.value.outfit]])]),i("label",null,[n[137]||(n[137]=i("span",null,"常用场景",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[32]||(n[32]=d=>p.value.scene=d),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[qe,p.value.scene]])]),i("label",null,[n[138]||(n[138]=i("span",null,"避雷内容",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[33]||(n[33]=d=>p.value.avoid=d),rows:"3",placeholder:"不想要的设计方向、负面词和禁用元素。"},null,512),[[qe,p.value.avoid]])]),bo.value==="advanced"?(_(),I(U,{key:0},[i("label",null,[n[139]||(n[139]=i("span",null,"世界观",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[34]||(n[34]=d=>p.value.worldview=d),rows:"3",placeholder:"现代、赛博、奇幻、末世、校园、古风、星际等。"},null,512),[[qe,p.value.worldview]])]),i("label",null,[n[140]||(n[140]=i("span",null,"背景经历",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[35]||(n[35]=d=>p.value.background=d),rows:"3",placeholder:"所属组织、过往经历、当前处境。"},null,512),[[qe,p.value.background]])]),i("label",null,[n[141]||(n[141]=i("span",null,"身高 / 身材",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[36]||(n[36]=d=>p.value.heightBuild=d),rows:"3",placeholder:"身高范围、体型、姿态气质、肤色。"},null,512),[[qe,p.value.heightBuild]])]),i("label",null,[n[142]||(n[142]=i("span",null,"身体记忆点",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[37]||(n[37]=d=>p.value.bodyFeatures=d),rows:"3",placeholder:"伤疤、痣、纹身、义体、异色瞳等。"},null,512),[[qe,p.value.bodyFeatures]])]),i("label",null,[n[143]||(n[143]=i("span",null,"喜好",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[38]||(n[38]=d=>p.value.likes=d),rows:"3",placeholder:"颜色、食物、饮品、兴趣、常去地点。"},null,512),[[qe,p.value.likes]])]),i("label",null,[n[144]||(n[144]=i("span",null,"排斥 / 害怕",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[39]||(n[39]=d=>p.value.dislikes=d),rows:"3",placeholder:"不喜欢、害怕、排斥或会回避的东西。"},null,512),[[qe,p.value.dislikes]])]),i("label",null,[n[145]||(n[145]=i("span",null,"生活习惯",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[40]||(n[40]=d=>p.value.habits=d),rows:"3",placeholder:"熬夜、洁癖、收集癖、整理装备等。"},null,512),[[qe,p.value.habits]])]),i("label",null,[n[146]||(n[146]=i("span",null,"关系",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[41]||(n[41]=d=>p.value.relationships=d),rows:"3",placeholder:"重要关系人、同伴、敌对关系、想保护的人。"},null,512),[[qe,p.value.relationships]])]),i("label",null,[n[147]||(n[147]=i("span",null,"故事钩子",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[42]||(n[42]=d=>p.value.storyHooks=d),rows:"3",placeholder:"未完成目标、秘密、可延展的事件线索。"},null,512),[[qe,p.value.storyHooks]])]),i("label",null,[n[148]||(n[148]=i("span",null,"画风方向",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[43]||(n[43]=d=>p.value.generationStyle=d),rows:"3",placeholder:"赛璐璐、厚涂、电影感、设定集、轻小说插画等。"},null,512),[[qe,p.value.generationStyle]])]),i("label",null,[n[149]||(n[149]=i("span",null,"镜头偏好",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[44]||(n[44]=d=>p.value.shotPreference=d),rows:"3",placeholder:"头像、半身、全身、立绘、设定图、多角度。"},null,512),[[qe,p.value.shotPreference]])]),i("label",null,[n[150]||(n[150]=i("span",null,"氛围",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[45]||(n[45]=d=>p.value.mood=d),rows:"3",placeholder:"明亮、压抑、柔和、危险、神圣、孤独等。"},null,512),[[qe,p.value.mood]])]),i("label",ry,[n[151]||(n[151]=i("span",null,"补充备注",-1)),Ae(i("textarea",{"onUpdate:modelValue":n[46]||(n[46]=d=>p.value.extraNotes=d),rows:"3",placeholder:"其他需要保留给后端工作流的补充设定。"},null,512),[[qe,p.value.extraNotes]])])],64)):ve("",!0)]),i("footer",null,[i("span",null,g(M.value||"生成后会调用后端保存角色档案、创建 quick_profile 工作流,并自动选中角色卡。"),1),i("div",ay,[i("div",sy,[i("button",{type:"button",class:X({active:bo.value==="simple"}),onClick:n[47]||(n[47]=d=>bo.value="simple")}," 简单问卷 ",2),i("button",{type:"button",class:X({active:bo.value==="advanced"}),onClick:n[48]||(n[48]=d=>bo.value="advanced")}," 复杂问卷 ",2)]),i("button",{type:"button",disabled:!Jr.value||A.value,onClick:id},g(A.value?"保存中":"生成档案"),9,uy)])])])])):ve("",!0)]),_:1})]))]}),_:1})])):ae.value!=="performance"?(_(),I(U,{key:2},[i("section",cy,[i("div",dy,[i("span",null,g(((y=T.value)==null?void 0:y.dashboard_user)??"AstrBot"),1),n[152]||(n[152]=i("h2",null,"星图导航工作台",-1)),n[153]||(n[153]=i("p",null,"生成、队列、图库和运行监控都在同一屏聚合。",-1))]),(_(!0),I(U,null,ee(Mi.value.slice(0,3),k=>(_(),I("article",{key:k.label,class:X(["signal-card",k.state])},[i("span",null,g(k.label),1),i("strong",null,g(k.value),1),i("small",null,g(k.hint),1)],2))),128)),i("button",{type:"button",class:"quick-create",onClick:n[49]||(n[49]=k=>io("generate","generate"))},[...n[154]||(n[154]=[i("span",{"aria-hidden":"true"},"+",-1),Gl(" 新建生成 ",-1)])])]),i("section",fy,[i("div",py,[i("section",my,[i("header",null,[i("div",null,[n[155]||(n[155]=i("span",null,"性能监控",-1)),i("h2",null,g(pt.value?"需要重试":Nl(((C=D.value)==null?void 0:C.plugin_status)??"loading")),1)]),i("button",{type:"button",onClick:n[50]||(n[50]=k=>io("performance","performance"))},"详情")]),pt.value?(_(),I("div",vy,[n[156]||(n[156]=i("strong",null,"监控加载失败",-1)),i("span",null,g(pt.value),1),i("button",{type:"button",onClick:pn},"重试")])):ve("",!0),i("div",gy,[(_(!0),I(U,null,ee(dc.value,k=>(_(),I("article",{key:k.label,class:X(["metric-card",k.state])},[i("span",null,g(k.label),1),i("strong",null,g(k.value),1),i("small",null,g(k.hint),1)],2))),128))])]),i("section",hy,[i("header",null,[i("div",null,[n[157]||(n[157]=i("span",null,"当前队列",-1)),i("h2",null,g(ko.value)+" 个任务",1)]),i("button",{type:"button",disabled:nn.value,onClick:qn},g(nn.value?"加载中":"更新"),9,by)]),Mn.value?(_(),I("div",yy,[n[158]||(n[158]=i("strong",null,"队列加载失败",-1)),i("span",null,g(Mn.value),1),i("button",{type:"button",onClick:qn},"重试")])):nn.value&&!Fo.value.length?(_(),I("div",wy,[(_(),I(U,null,ee(3,k=>i("span",{key:k})),64))])):Fo.value.length?(_(),I("ul",ky,[(_(!0),I(U,null,ee(Fo.value,k=>(_(),I("li",{key:k.task_id},[i("div",_y,[i("strong",null,g(Ui(k)),1),i("small",null,g(k.model_route||"未指定模型")+" / 等待 "+g(Vd(k)),1),i("div",Iy,[i("span",{style:Ge({width:`${Fd(k)}%`})},null,4)])]),i("span",{class:X(["status-pill",Bd(k.status)])},g(Nl(k.status)),3),n[159]||(n[159]=i("div",{class:"row-actions","aria-label":"任务操作"},[i("button",{type:"button",title:"查看详情"},"□"),i("button",{type:"button",title:"重试任务"},"↻")],-1))]))),128))])):(_(),I("div",Cy,[...n[160]||(n[160]=[i("strong",null,"队列暂时空闲",-1),i("span",null,"新的生成任务会在这里显示进度、模型和等待时间。",-1)])]))]),i("section",xy,[i("header",null,[i("div",null,[n[161]||(n[161]=i("span",null,"智能工作建议",-1)),i("h2",null,g(Ti.value.length?"可继续处理":"当前平稳"),1)])]),Ti.value.length?(_(),I("div",Py,[(_(!0),I(U,null,ee(Ti.value,k=>(_(),I("button",{key:k.id,type:"button",class:X(["suggestion-card",k.tone]),onClick:te=>Id(k)},[i("span",null,g(k.action),1),i("strong",null,g(k.title),1),i("small",null,g(k.detail),1)],10,Sy))),128))])):(_(),I("div",$y,[...n[162]||(n[162]=[i("strong",null,"没有需要立即处理的建议",-1),i("span",null,"失败、待确认、成本提醒和可继续流程会自动浮到这里。",-1)])]))])]),i("aside",My,[i("section",Ay,[i("header",null,[i("div",null,[n[163]||(n[163]=i("span",null,"最近图片",-1)),i("h2",null,g(_o.value.length)+" 张结果",1)]),i("button",{type:"button",onClick:n[51]||(n[51]=k=>io("gallery","images"))},"图库")]),pt.value?(_(),I("div",Ty,[n[164]||(n[164]=i("strong",null,"图片摘要不可用",-1)),i("span",null,g(pt.value),1)])):on.value&&!_o.value.length?(_(),I("div",Ey,[(_(),I(U,null,ee(3,k=>i("span",{key:k,class:"image-skeleton"})),64))])):_o.value.length?(_(),I("div",Ny,[(_(!0),I(U,null,ee(_o.value,k=>(_(),I("article",{key:k.image_id,class:"side-image-card"},[i("div",Oy,[We(k)?(_(),I("img",{key:0,src:We(k),alt:Le(k)},null,8,qy)):(_(),I("span",Ly,"IMG"))]),i("strong",null,g(Le(k)),1)]))),128))])):(_(),I("div",Ry,[...n[165]||(n[165]=[i("strong",null,"暂无最近图片",-1),i("span",null,"完成的生成结果会在这里显示缩略图和名称。",-1)])]))])])])],64)):(_(),I("section",Fy,[i("header",Dy,[n[166]||(n[166]=i("div",null,[i("span",null,"性能详情"),i("h2",null,"运行、队列和存储监控"),i("p",null,"首页侧栏只保留必要指标,完整拆分集中在这里。")],-1)),i("button",{type:"button",disabled:on.value,onClick:pn},g(on.value?"同步中":"刷新监控"),9,By)]),pt.value?(_(),I("div",Vy,[n[167]||(n[167]=i("strong",null,"监控详情加载失败",-1)),i("span",null,g(pt.value),1),i("button",{type:"button",onClick:pn},"重试")])):ve("",!0),i("section",Wy,[(_(!0),I(U,null,ee(Mi.value,k=>(_(),I("article",{key:k.label,class:X(["metric-card","detail-card",k.state])},[i("span",null,g(k.label),1),i("strong",null,g(k.value),1),i("small",null,g(k.hint),1)],2))),128))]),i("section",jy,[i("article",Hy,[i("header",null,[i("div",null,[n[168]||(n[168]=i("span",null,"队列拆分",-1)),i("h2",null,g(ko.value)+" 个任务",1)])]),i("dl",null,[(_(!0),I(U,null,ee(vc.value,k=>(_(),I("div",{key:k.label},[i("dt",null,g(k.label),1),i("dd",null,g(k.value),1)]))),128))])]),i("article",Uy,[i("header",null,[i("div",null,[n[169]||(n[169]=i("span",null,"存储拆分",-1)),i("h2",null,g(jo(((S=D.value)==null?void 0:S.storage.total_bytes)??0)),1)])]),i("dl",null,[(_(!0),I(U,null,ee(gc.value,k=>(_(),I("div",{key:k.label},[i("dt",null,g(k.label),1),i("dd",null,g(k.value),1)]))),128))])]),i("article",Ky,[i("header",null,[i("div",null,[n[170]||(n[170]=i("span",null,"接口状态",-1)),i("h2",null,g(pt.value?"异常":"可读"),1)])]),i("dl",null,[i("div",null,[n[171]||(n[171]=i("dt",null,"Dashboard",-1)),i("dd",null,g(pt.value?"失败":"正常"),1)]),i("div",null,[n[172]||(n[172]=i("dt",null,"Jobs",-1)),i("dd",null,g(Mn.value?"失败":"正常"),1)]),i("div",null,[n[173]||(n[173]=i("dt",null,"Logs",-1)),i("dd",null,g(ln.value?"失败":"正常"),1)])])])])]))])],14,zm)}}}),Xy=(e,t)=>{const l=e.__vccOpts||e;for(const[r,a]of t)l[r]=a;return l},Zy=Xy(Jy,[["__scopeId","data-v-2d84bd8c"]]);Vm(Zy).mount("#app");