56 行
492 KiB
JavaScript
56 行
492 KiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GalleryPage-_hEv4t9o.js","assets/GalleryPage-BYYx2bqw.css","assets/LogsPage-BCu3j0AQ.js","assets/LogsPage-BUeTyehJ.css","assets/ProfilesPage-DXTRaKak.js","assets/ProfilesPage-B0WTnM4e.css","assets/SettingsPage-BIIghPr-.js","assets/SettingsPage-BR5nrF_4.css","assets/WorkflowCompareDialog-BZ20cDz0.js","assets/WorkflowCompareDialog-BI_xR1pa.css","assets/WorkflowBranchPanel-CSON-lvz.js","assets/WorkflowBranchPanel-nMe9nW01.css","assets/WorkflowCandidatePool-xlud6FG4.js","assets/WorkflowCandidatePool-CHJiY32s.css","assets/WorkflowComposer-Do_KBQYI.js","assets/WorkflowComposer-D0-o7edc.css","assets/WorkflowDependencyContextCard-BstMEtF2.js","assets/WorkflowDependencyContextCard-WHidWt7d.css","assets/WorkflowGenerationReviewDialog-C-mMw0Sw.js","assets/WorkflowGenerationReviewDialog-Dde3QtRN.css","assets/WorkflowMaterialDrawer-PrMqZX_5.js","assets/WorkflowMaterialDrawer-CzNrrMeI.css","assets/WorkflowRoundPanel-DYHetF0L.js","assets/WorkflowRoundPanel-DxGu9gjD.css"])))=>i.map(i=>d[i]);
|
|||
|
|
var Uh=Object.defineProperty;var Fh=(t,n,o)=>n in t?Uh(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o;var Ac=(t,n,o)=>Fh(t,typeof n!="symbol"?n+"":n,o);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&i(g)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function vf(t){const n=Object.create(null);for(const o of t.split(","))n[o]=1;return o=>o in n}const It={},hi=[],Kl=()=>{},Mm=()=>!1,nd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ld=t=>t.startsWith("onUpdate:"),fa=Object.assign,pf=(t,n)=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)},jh=Object.prototype.hasOwnProperty,wt=(t,n)=>jh.call(t,n),qe=Array.isArray,ki=t=>xs(t)==="[object Map]",Ei=t=>xs(t)==="[object Set]",Lp=t=>xs(t)==="[object Date]",Ke=t=>typeof t=="function",Yt=t=>typeof t=="string",_l=t=>typeof t=="symbol",ht=t=>t!==null&&typeof t=="object",Rm=t=>(ht(t)||Ke(t))&&Ke(t.then)&&Ke(t.catch),Em=Object.prototype.toString,xs=t=>Em.call(t),Kh=t=>xs(t).slice(8,-1),Nm=t=>xs(t)==="[object Object]",mf=t=>Yt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ms=vf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=t=>{const n=Object.create(null);return(o=>n[o]||(n[o]=t(o)))},Vh=/-\w/g,gl=od(t=>t.replace(Vh,n=>n.slice(1).toUpperCase())),Gh=/\B([A-Z])/g,ur=od(t=>t.replace(Gh,"-$1").toLowerCase()),Tm=od(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mc=od(t=>t?`on${Tm(t)}`:""),jl=(t,n)=>!Object.is(t,n),Ou=(t,...n)=>{for(let o=0;o<t.length;o++)t[o](...n)},Bm=(t,n,o,i=!1)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:i,value:o})},rd=t=>{const n=parseFloat(t);return isNaN(n)?t:n},zh=t=>{const n=Yt(t)?Number(t):NaN;return isNaN(n)?t:n};let qp;const id=()=>qp||(qp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ca(t){if(qe(t)){const n={};for(let o=0;o<t.length;o++){const i=t[o],u=Yt(i)?Jh(i):ca(i);if(u)for(const d in u)n[d]=u[d]}return n}else if(Yt(t)||ht(t))return t}const Hh=/;(?![^(]*\))/g,Qh=/:([^]+)/,Yh=/\/\*[^]*?\*\//g;function Jh(t){const n={};return t.replace(Yh,"").split(Hh).forEach(o=>{if(o){const i=o.split(Qh);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function fe(t){let n="";if(Yt(t))n=t;else if(qe(t))for(let o=0;o<t.length;o++){const i=fe(t[o]);i&&(n+=i+" ")}else if(ht(t))for(const o in t)t[o]&&(n+=o+" ");return n.trim()}const Xh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zh=vf(Xh);function Lm(t){return!!t||t===""}function ek(t,n){if(t.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<t.length;i++)o=rr(t[i],n[i]);return o}function rr(t,n){if(t===n)return!0;let o=Lp(t),i=Lp(n);if(o||i)return o&&i?t.getTime()===n.getTime():!1;if(o=_l(t),i=_l(n),o||i)return t===n;if(o=qe(t),i=qe(n),o||i)return o&&i?ek(t,n):!1;if(o=ht(t),i=ht(n),o||i){if(!o||!i)return!1;const u=Object.keys(t).length,d=Object.keys(n).length;if(u!==d)return!1;for(const g in t){const _=t.hasOwnProperty(g),h=n.hasOwnProperty(g);if(_&&!h||!_&&h||!rr(t[g],n[g]))return!1}}return String(t)===String(n)}function gf(t,n){return t.findIndex(o=>rr(o,n))}const qm=t=>!!(t&&t.__v_isRef===!0),p=t=>Yt(t)?t:t==null?"":qe(t)||ht(t)&&(t.toString===Em||!Ke(t.toString))?qm(t)?p(t.value):JSON.stringify(t,Dm,2):String(t),Dm=(t,n)=>qm(n)?Dm(t,n.value):ki(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,u],d)=>(o[Rc(i,d)+" =>"]=u,o),{})}:Ei(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>Rc(o))}:_l(n)?Rc(n):ht(n)&&!qe(n)&&!Nm(n)?String(n):n,Rc=(t,n="")=>{var o;return _l(t)?`Symbol(${(o=t.description)!=null?o:n})`:t};/**
|
|||
|
|
* @vue/reactivity v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Ra;class tk{constructor(n=!1){this.detached=n,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!n&&Ra&&(Ra.active?(this.parent=Ra,this.index=(Ra.scopes||(Ra.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let n,o;if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].pause();for(n=0,o=this.effects.length;n<o;n++)this.effects[n].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let n,o;if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].resume();for(n=0,o=this.effects.length;n<o;n++)this.effects[n].resume()}}run(n){if(this._active){const o=Ra;try{return Ra=this,n()}finally{Ra=o}}}on(){++this._on===1&&(this.prevScope=Ra,Ra=this)}off(){if(this._on>0&&--this._on===0){if(Ra===this)Ra=this.prevScope;else{let n=Ra;for(;n;){if(n.prevScope===this){n.prevScope=this.prevScope;break}n=n.prevScope}}this.prevScope=void 0}}stop(n){if(this._active){this._active=!1;let o,i;for(o=0,i=this.effects.length;o<i;o++)this.effects[o].stop();for(this.effects.length=0,o=0,i=this.cleanups.length;o<i;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,i=this.scopes.length;o<i;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!n){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.parent=void 0}}}function ak(){return Ra}let Rt;const Ec=new WeakSet;class Om{constructor(n){this.fn=n,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ra&&(Ra.active?Ra.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ec.has(this)&&(Ec.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Um(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dp(this),Fm(this);const n=Rt,o=yl;Rt=this,yl=!0;try{return this.fn()}finally{jm(this),Rt=n,yl=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)bf(n);this.deps=this.depsTail=void 0,Dp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ec.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xc(this)&&this.run()}get dirty(){return Xc(this)}}let Wm=0,gs,ys;function Um(t,n=!1){if(t.flags|=8,n){t.next=ys,ys=t;return}t.next=gs,gs=t}function yf(){Wm++}function _f(){if(--Wm>0)return;if(ys){let n=ys;for(ys=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let t;for(;gs;){let n=gs;for(gs=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(i){t||(t=i)}n=o}}if(t)throw t}function Fm(t){for(let n=t.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function jm(t){let n,o=t.depsTail,i=o;for(;i;){const u=i.prevDep;i.version===-1?(i===o&&(o=u),bf(i),nk(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=u}t.deps=n,t.depsTail=o}function Xc(t){for(let n=t.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(Km(n.dep.computed)||n.dep.version!==n.version))return!0;return!!t._dirty}function Km(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===hs)||(t.globalVersion=hs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Xc(t))))return;t.flags|=2;const n=t.dep,o=Rt,i=yl;Rt=t,yl=!0;try{Fm(t);const u=t.fn(t._value);(n.version===0||jl(u,t._value))&&(t.flags|=128,t._value=u,n.version++)}catch(u){throw n.version++,u}finally{Rt=o,yl=i,jm(t),t.flags&=-3}}function bf(t,n=!1){const{dep:o,prevSub:i,nextSub:u}=t;if(i&&(i.nextSub=u,t.prevSub=void 0),u&&(u.prevSub=i,t.nextSub=void 0),o.subs===t&&(o.subs=i,!i&&o.computed)){o.computed.flags&=-5;for(let d=o.computed.deps;d;d=d.nextDep)bf(d,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function nk(t){const{prevDep:n,nextDep:o}=t;n&&(n.nextDep=o,t.prevDep=void 0),o&&(o.prevDep=n,t.nextDep=void 0)}let yl=!0;const Vm=[];function Vl(){Vm.push(yl),yl=!1}function Gl(){const t=Vm.pop();yl=t===void 0?!0:
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function As(t,n,o,i){try{return i?t(...i):t()}catch(u){Ms(u,n,o)}}function zn(t,n,o,i){if(Ke(t)){const u=As(t,n,o,i);return u&&Rm(u)&&u.catch(d=>{Ms(d,n,o)}),u}if(qe(t)){const u=[];for(let d=0;d<t.length;d++)u.push(zn(t[d],n,o,i));return u}}function Ms(t,n,o,i=!0){const u=n?n.vnode:null,{errorHandler:d,throwUnhandledErrorInProduction:g}=n&&n.appContext.config||It;if(n){let _=n.parent;const h=n.proxy,R=`https://vuejs.org/error-reference/#runtime-${o}`;for(;_;){const S=_.ec;if(S){for(let B=0;B<S.length;B++)if(S[B](t,h,R)===!1)return}_=_.parent}if(d){Vl(),As(d,null,10,[t,h,R]),Gl();return}}Ak(t,o,u,i,g)}function Ak(t,n,o,i=!0,u=!1){if(u)throw t;console.error(t)}const Ja=[];let Wl=-1;const $i=[];let or=null,wi=0;const eg=Promise.resolve();let Gu=null;function ya(t){const n=Gu||eg;return t?n.then(this?t.bind(this):t):n}function Mk(t){let n=Wl+1,o=Ja.length;for(;n<o;){const i=n+o>>>1,u=Ja[i],d=$s(u);d<t||d===t&&u.flags&2?n=i+1:o=i}return n}function Sf(t){if(!(t.flags&1)){const n=$s(t),o=Ja[Ja.length-1];!o||!(t.flags&2)&&n>=$s(o)?Ja.push(t):Ja.splice(Mk(n),0,t),t.flags|=1,tg()}}function tg(){Gu||(Gu=eg.then(ng))}function Rk(t){qe(t)?$i.push(...t):or&&t.id===-1?or.splice(wi+1,0,t):t.flags&1||($i.push(t),t.flags|=1),tg()}function Wp(t,n,o=Wl+1){for(;o<Ja.length;o++){const i=Ja[o];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;Ja.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function ag(t){if($i.length){const n=[...new Set($i)].sort((o,i)=>$s(o)-$s(i));if($i.length=0,or){or.push(...n);return}for(or=n,wi=0;wi<or.length;wi++){const o=or[wi];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}or=null,wi=0}}const $s=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ng(t){try{for(Wl=0;Wl<Ja.length;Wl++){const n=Ja[Wl];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),As(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Wl<Ja.length;Wl++){const n=Ja[Wl];n&&(n.flags&=-2)}Wl=-1,Ja.length=0,ag(),Gu=null,(Ja.length||$i.length)&&ng()}}let Wa=null,lg=null;function zu(t){const n=Wa;return Wa=t,lg=t&&t.type.__scopeId||null,n}function ra(t,n=Wa,o){if(!n||t._n)return t;const i=(...u)=>{i._d&&Yu(-1);const d=zu(n);let g;try{g=t(...u)}finally{zu(d),i._d&&Yu(1)}return g};return i._n=!0,i._c=!0,i._d=!0,i}function xe(t,n){if(Wa===null)return t;const o=vd(Wa),i=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[d,g,_,h=It]=n[u];d&&(Ke(d)&&(d={mounted:d,updated:d}),d.deep&&bo(g),i.push({dir:d,instance:o,value:g,oldValue:void 0,arg:_,modifiers:h}))}return t}function Er(t,n,o,i){const u=t.dirs,d=n&&n.dirs;for(let g=0;g<u.length;g++){const _=u[g];d&&(_.oldValue=d[g].value);let h=_.dir[i];h&&(Vl(),zn(h,o,8,[t.el,_,t,n]),Gl())}}function Ek(t,n){if(Oa){let o=Oa.provides;const i=Oa.parent&&Oa.parent.provides;i===o&&(o=Oa.provides=Object.create(i)),o[t]=n}}function Wu(t,n,o=!1){const i=fd();if(i||Si){let u=Si?Si._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(u&&t in u)return u[t];if(arguments.length>1)return o&&Ke(n)?n.call(i&&i.proxy):n}}const Nk=Symbol.for("v-scx"),Tk=()=>Wu(Nk);function ct(t,n,o){return og(t,n,o)}function og(t,n,o=It){const{immediate:i,deep:u,flush:d,once:g}=o,_=fa({},o),h=n&&i||!n&&d!=="post";let R;if(xi){if(d==="sync"){const X=Tk();R=X.__watcherHandles||(X.__watcherHandles=[])}else if(!h){const X=()=>{};return X.stop=Kl,X.resume=Kl,X.pause=Kl,X}}const S=Oa;_.call=(X,G,K)=>zn(X,S,G,K);let B=!1;d==="post"?_.scheduler=X=>{un(X,S&&S.suspense)}:d!=="sync"&&(B=!0,_.scheduler=(X,G)=>{G?X():Sf(X)}),_.augmentJob=X=>{n&&(X.flags|=4),B&&(X.flags|=2,S&&(X.id=S.uid,X.i=S))};const T=xk(t,n,_);return xi&&(R?R.push(T):h&&T()),T}function Bk(t,n,o){const i=this.proxy,u=Yt(t)?t.includes(".")?rg(i,t):()=>i[t]:t.bind(i,i);let d;Ke(n)?d=n:(d=n.handler,o=n);const g=Es(this),_=og(u,d.bind(i),o);return g(),_}function rg(t,n){const o=n.split(".");return()=>{let i=t;for(let u=0;u<o.length&&i;u++)i=i[o[u]];return i}}const Lk=Symbol("_vte"),ig=t=>t.__isTeleport,jn=Symbol("_leaveCb"),is=Symbol("_enterCb");function sg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingV
|
|||
|
|
* @vue/runtime-dom v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let uf;const am=typeof window<"u"&&window.trustedTypes;if(am)try{uf=am.createPolicy("vue",{createHTML:t=>t})}catch{}const qg=uf?t=>uf.createHTML(t):t=>t,D1="http://www.w3.org/2000/svg",O1="http://www.w3.org/1998/Math/MathML",mo=typeof document<"u"?document:null,nm=mo&&mo.createElement("template"),W1={insert:(t,n,o)=>{n.insertBefore(t,o||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,o,i)=>{const u=n==="svg"?mo.createElementNS(D1,t):n==="mathml"?mo.createElementNS(O1,t):o?mo.createElement(t,{is:o}):mo.createElement(t);return t==="select"&&i&&i.multiple!=null&&u.setAttribute("multiple",i.multiple),u},createText:t=>mo.createTextNode(t),createComment:t=>mo.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>mo.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,o,i,u,d){const g=o?o.previousSibling:n.lastChild;if(u&&(u===d||u.nextSibling))for(;n.insertBefore(u.cloneNode(!0),o),!(u===d||!(u=u.nextSibling)););else{nm.innerHTML=qg(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const _=nm.content;if(i==="svg"||i==="mathml"){const h=_.firstChild;for(;h.firstChild;)_.appendChild(h.firstChild);_.removeChild(h)}n.insertBefore(_,o)}return[g?g.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},tr="transition",ss="animation",Ai=Symbol("_vtc"),Dg={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},Og=fa({},ug,Dg),U1=t=>(t.displayName="Transition",t.props=Og,t),Ya=U1((t,{slots:n})=>L1(Dk,Wg(t),n)),Tr=(t,n=[])=>{qe(t)?t.forEach(o=>o(...n)):t&&t(...n)},lm=t=>t?qe(t)?t.some(n=>n.length>1):t.length>1:!1;function Wg(t){const n={};for(const q in t)q in Dg||(n[q]=t[q]);if(t.css===!1)return n;const{name:o="v",type:i,duration:u,enterFromClass:d=`${o}-enter-from`,enterActiveClass:g=`${o}-enter-active`,enterToClass:_=`${o}-enter-to`,appearFromClass:h=d,appearActiveClass:R=g,appearToClass:S=_,leaveFromClass:B=`${o}-leave-from`,leaveActiveClass:T=`${o}-leave-active`,leaveToClass:X=`${o}-leave-to`}=t,G=F1(u),K=G&&G[0],ye=G&&G[1],{onBeforeEnter:me,onEnter:te,onEnterCancelled:Ae,onLeave:ue,onLeaveCancelled:de,onBeforeAppear:De=me,onAppear:ne=te,onAppearCancelled:oe=Ae}=n,J=(q,Ne,Ye,it)=>{q._enterCancelled=it,nr(q,Ne?S:_),nr(q,Ne?R:g),Ye&&Ye()},W=(q,Ne)=>{q._isLeaving=!1,nr(q,B),nr(q,X),nr(q,T),Ne&&Ne()},D=q=>(Ne,Ye)=>{const it=q?ne:te,ot=()=>J(Ne,q,Ye);Tr(it,[Ne,ot]),om(()=>{nr(Ne,q?h:d),Ol(Ne,q?S:_),lm(it)||rm(Ne,i,K,ot)})};return fa(n,{onBeforeEnter(q){Tr(me,[q]),Ol(q,d),Ol(q,g)},onBeforeAppear(q){Tr(De,[q]),Ol(q,h),Ol(q,R)},onEnter:D(!1),onAppear:D(!0),onLeave(q,Ne){q._isLeaving=!0;const Ye=()=>W(q,Ne);Ol(q,B),q._enterCancelled?(Ol(q,T),df(q)):(df(q),Ol(q,T)),om(()=>{q._isLeaving&&(nr(q,B),Ol(q,X),lm(ue)||rm(q,i,ye,Ye))}),Tr(ue,[q,Ye])},onEnterCancelled(q){J(q,!1,void 0,!0),Tr(Ae,[q])},onAppearCancelled(q){J(q,!0,void 0,!0),Tr(oe,[q])},onLeaveCancelled(q){W(q),Tr(de,[q])}})}function F1(t){if(t==null)return null;if(ht(t))return[Dc(t.enter),Dc(t.leave)];{const n=Dc(t);return[n,n]}}function Dc(t){return zh(t)}function Ol(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t[Ai]||(t[Ai]=new Set)).add(n)}function nr(t,n){n.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const o=t[Ai];o&&(o.delete(n),o.size||(t[Ai]=void 0))}function om(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let j1=0;function rm(t,n,o,i){const u=t._endId=++j1,d=()=>{u===t._endId&&i()};if(o!=null)return setTimeout(d,o);const{type:g,timeout:_,propCount:h}=Ug(t,n);if(!g)return i();const R=g+"end";let S=0;const B=()=>{t.removeEventListener(R,T),d()},T=X=>{X.target===t&&++S>=h&&B()};setTimeout(()=>{S<h&&B()},_+1),t.addEventListener(R,T)}function Ug(t,n){const o=window.getComputedStyle(t),i=G=>(o[G]||"").split(", "),u=i(`${tr}Delay`),d=i(`${tr}Dura
|
|||
|
|
`)}function yc(e){const a=Je.value,r=Ee.value;return{source:"standalone_web_workflow_chat",ui_node_id:nt.value,ui_node_title:a.title,ui_node_phase:a.phase,ui_node_status:a.status,profile_id:r.profileId,profile_name:r.name,workflow_id:r.workflowId,source_language:"auto",target_prompt_language:"en",translation_mode:"backend_llm",user_instruction:e,persona_split_fields_ready:iu.value,persona_split_fields_total:ru.value,selected_material_ids:lc(),selected_draft_image_ids:bn.value.filter(hn).map(s=>s.image_id),candidate_feedback:Fa.value}}function ew(e){var c;const a=e.interpretation;if(!a)return"候选反馈已保存。";const r=[],s=[["喜欢",a.liked],["拒绝",a.rejected],["严格拒绝",a.strict_rejected]];for(const[f,b]of s)b.length&&r.push(`${f} ${b.map(C=>C.display_code).join("、")}`);return(c=a.final)!=null&&c.display_code&&r.push(`待定稿 ${a.final.display_code}`),a.positive_patch&&r.push("已生成正向调整"),a.negative_patch&&r.push("已生成负向约束"),a.material_intent&&r.push(`素材意图:${a.material_intent}`),r.length?r.join(";"):"下一轮调整要求已保存。"}async function Qv(e){var r,s,c;const a=lt.value;if(!ua.value||!a||a.legacy||!a.candidates.length)return"not_applicable";if(lu.value)return vt.value="该轮次已经确认;如需继续修改,请先从当前节点创建分支。","blocked";Le.value=!0,vt.value="",il.value="";try{const f=await $e(N.roundFeedback(a.round.round_id),{feedback_text:e,idempotency_key:`web-round-feedback-text-${a.round.round_id}-${Date.now()}`});Qo(a.round.node_id,f);const b=ew(f);return il.value=`${b} 点击“开始新一轮”后会使用这些反馈。`,ge.value=b,Vr.value=e,Bi.value=(s=(r=f.interpretation)==null?void 0:r.metadata)!=null&&s.model_route?`候选反馈 / ${String(f.interpretation.metadata.model_route)}`:`候选反馈 / ${((c=f.interpretation)==null?void 0:c.source)||"确定性解释"}`,fn.value="","saved"}catch(f){return vt.value=`候选反馈理解失败:${Ie(f)}`,ge.value=vt.value,"failed"}finally{Le.value=!1}}async function tw(){const e=fn.value.trim();if(!e||Le.value||await Qv(e)!=="not_applicable")return;if(ua.value&&!jo.value.route){ge.value="当前节点和后端默认均未提供生图路由,请先显式覆盖或前往设置配置。";return}await Iu({promptPatch:gc(e),metadata:yc(e)})&&(Vr.value=e,Bi.value=`${Je.value.title} / ${qd.value||"后端自动"}`)}function Yv(){!Pa.value||!Ca(Pa.value)||(Ks.value="generation",kn("imageViewer"),bc(),Ro.value=!0)}function Cu(e){const a=(e?Vd.value.find(r=>r.image_id===e):null)??Ml.value;!a||!Ca(a)||(zl.value=!1,Z.value=a.image_id,Yv())}function Jv(){bn.value.length<2||(zl.value=!0)}function aw(e){return{configure_distinct_generation_cross_review_routes:"请在设置页配置至少一个与主候选不同的生图模型",configure_image_generation_route:"请先配置并启用可用的生图模型路由",regenerate_primary_candidate_with_configured_route:"主候选缺少可复用的模型路由,请先重新生成主候选",retry_or_remove_failed_review_candidate:"当前审查轮次存在失败候选,请重试失败项后再继续",select_review_candidates:"请至少勾选一个需要重新生成的审查候选",open_active_cross_review:"该节点已有进行中的交叉审查,请打开当前审查轮次",create_branch:"当前节点已锁定或工作流已封存,请先创建可编辑分支"}[e]||e.replace(/_/g," ")}function Su(e,a){const r=Ie(e),s=e instanceof qa?he(e.details,"required_action"):"";return s?`${r};建议操作:${aw(s)}。`:`${a}:${r}`}async function nw(){var r;const e=lt.value;if(!e||e.legacy||!ua.value)return;const a=e.round.round_id;Ka.value=!0,Cl.value="";try{const s=await Pe(N.round(a));if(((r=lt.value)==null?void 0:r.round.round_id)!==a)return;Qo(s.round.node_id,s,{select:!0}),sl.value=s,mr.value=!0}catch(s){vt.value=Su(s,"交叉审查轮次加载失败")}finally{Ka.value=!1}}function lw(){Ka.value||(mr.value=!1,Cl.value="")}function ow(e){var r;const a=(r=e.image)==null?void 0:r.image_id;a&&Cu(a)}function _c(e){Qo(e.round.node_id,e,{select:!0}),sl.valu
|
|||
|
|
${c.trim()}`).join(`
|
|||
|
|
|
|||
|
|
`)}function bw(e){const a=Mr(e),r=(...f)=>{for(const b of f){const C=a.find(O=>lr(O.node_key)===b);if(C!=null&&C.selected_image_id)return C.selected_image_id}return""},s={avatar:r("headshot"),persona_image:r("design_sheet","turnaround"),standing:r("full_body"),pv:r("style_lock")},c=Object.entries(s).filter(([,f])=>!f).map(([f])=>f);if(c.length){const f={avatar:"头像(头像草稿)",persona_image:"人设图(设定图或三视图)",standing:"立绘(全身设定)",pv:"PV 图(高清修复与统一风格)"};return ge.value=`档案卡还缺少已明确采用的资产:${c.map(b=>f[b]).join("、")}。请回到对应节点确认一张候选图。`,null}return s}function ww(e){if(!(e instanceof qa))return`档案卡封存失败:${Ie(e)}`;const a=[],r=e.details.incomplete_node_keys;Array.isArray(r)&&r.length&&a.push(`未完成节点:${r.map(String).join("、")}`);const s=he(e.details,"asset_role");s&&a.push(`资产角色:${s}`);const c=he(e.details,"active_branch")||he(e.details,"branch_name");c&&a.push(`当前分支:${c}`);const f=he(e.details,"status");f&&a.push(`工作流状态:${f}`);const b=a.length?`(${a.join(";")})`:"";return`档案卡封存失败:${e.message}${b}`}async function hw(){const e=Ee.value;if(!e||Le.value)return;const a=Bt("建立档案卡");if(a){ge.value=a;return}if(!e.workflowId||!e.profileId){ge.value="请先保存角色并创建详细角色工作流,再建立档案卡。";return}const r=e.workflowId,s=pt.value[r],c=(s==null?void 0:s.current_branch)||"main",f=bw(r);if(!f)return;const b=_w(e);if(!b){ge.value="档案卡缺少人设文档,请先完成角色设定拆解。";return}const C={idempotency_key:`web-profile-card-${r}-${mu(c)}`,persona_document:b,assets:f,metadata:{source:"standalone_web_profile_card",schema_version:"character_profile_card_v1",profile_id:e.profileId,profile_name:e.name,workflow_id:r,branch_name:c,selected_material_ids:lc()}};Le.value=!0,ge.value="";try{const O=await $e(N.workflowFinalizeCard(r),C);Wi.value={...Wi.value,[e.profileId]:[O,...(Wi.value[e.profileId]??[]).filter(ce=>ce.card_id!==O.card_id)]},Zl.value=O.created_at,await Pu(e,r,"archive");const[V]=await Promise.allSettled([Pe(N.profileCards(e.profileId)),Jd(),Va(),nn()]);V.status==="fulfilled"&&(Wi.value={...Wi.value,[e.profileId]:V.value}),El("archive"),ge.value=`档案卡已原子封存:${rn(O.card_id)} / ${O.branch_name},4 类必填资产均已入库。`}catch(O){ge.value=ww(O)}finally{Le.value=!1}}async function hc(e){const a=Ee.value,r=a==null?void 0:a.workflowId;if(!r||Sa.value)return;const s=e==="start"?"启动":e==="cancel"?"取消":"归档";if(e==="start"&&!au.value){rl.value="请先在第一个节点导入粗略人设;导入成功后工作流会自动启动。";return}if(!(e!=="start"&&!window.confirm(`确定${s}当前工作流吗?`))){Sa.value=!0,rl.value="";try{const c=e==="start"?N.workflowStart(r):e==="cancel"?N.workflowCancel(r):N.workflowArchive(r),f=await $e(c);pt.value={...pt.value,[r]:f},rl.value=`工作流已${s}`}catch(c){rl.value=Ie(c)}finally{Sa.value=!1}}}async function kw(){var a;const e=(a=Ee.value)==null?void 0:a.workflowId;if(e){Sa.value=!0;try{$t.value=await Pe(N.workflowReview(e)),rl.value="整体审查已完成"}catch(r){rl.value=Ie(r)}finally{Sa.value=!1}}}async function lp(){var r;const e=(r=Ue.value)==null?void 0:r.node_id;if(!e)return;Sa.value=!0;const a=await fc(e,!0);rl.value=a?"依赖上下文已刷新":Te.value,Sa.value=!1}function ls(e){return an.value?`${e}暂不可用:${lo.value}`:Al.value?`${e}已被锁定:${Vo.value}`:""}function $w(e){return`branch_${(e.node_key||e.node_id).replace(/[^a-zA-Z0-9_-]+/g,"_").slice(0,28)}_${Date.now().toString(36)}`}async function op(e,a,r,s={}){const c=await $e(N.workflowSwitchBranch(a),{branch_name:r}),f=await Pe(N.workflowNodes(a)),b=f.filter(V=>V.branch_name===c.current_branch);rt.value={...rt.value,[a]:f},pt.value={...pt.value,[a]:c},Ar(e,c,b.length?b:f);const C=(s.copiedFromNodeId?b.find(V=>he(V.metadata,"copied_from_node_id")===s.copiedFromNodeId):void 0)??(s.preferredUiNodeId?b.find(V=>pl(V)===
|
|||
|
|
`)}}function xu(e,a,r,s,c){return{id:e,title:a,prompt:r,negative:s,weight_suggestions:[{label:"identity",value:1.25,reason:"keep character identity stable"},{label:"style",value:.85,reason:"avoid overfitting style over identity"}],inherits:c,status:"ready"}}function qw(e){const a=_n.value,r=me.map((s,c)=>{const f=a.find(b=>b.category===s.category);return{id:`rule_${s.category}_${c+1}`,category:s.category,material_id:nc(f==null?void 0:f.id),material_label:(f==null?void 0:f.label)??"",material_group:(f==null?void 0:f.group)??(f==null?void 0:f.category)??"",material_prompt:(f==null?void 0:f.prompt)??"",material_colors:(f==null?void 0:f.colors)??[],bind_to_stages:sp(s.category),inheritance_rule:f?`${s.category} only affects explicitly bound downstream stages.`:"do not use reference unless user explicitly selects one",reference_strength:f?up(s.category):"弱",required:!!(f&&["风格","服装"].includes(s.category)),status:f?"ready":"pending"}});return{profile_id:e.profileId,profile_name:e.name,selected_material_ids:lc(),rules:r}}function sp(e){return{风格:[{stage_id:"portrait-draft",stage_title:"头像草稿"},{stage_id:"halfbody-draft",stage_title:"半身草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"},{stage_id:"review-archive",stage_title:"修复入库"}],构图:[{stage_id:"portrait-draft",stage_title:"头像草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"}],服装:[{stage_id:"halfbody-draft",stage_title:"半身草稿"},{stage_id:"body-sheet",stage_title:"全身与设定图"}],鞋袜:[{stage_id:"body-sheet",stage_title:"全身与设定图"}],配饰:[{stage_id:"body-sheet",stage_title:"全身与设定图"},{stage_id:"review-archive",stage_title:"修复入库"}]}[e]??[{stage_id:"body-sheet",stage_title:"全身与设定图"}]}function up(e){return e==="风格"||e==="服装"?"强":e==="构图"?"中":"弱"}async function Dw(){var r;const e=Ee.value;if(!e||wa.value)return;const a=Bt("保存快照");if(a){ll.value=a;return}if(!e.workflowId){ll.value="请先生成档案并创建后端工作流,再保存快照。";return}wa.value=!0,ll.value="";try{const s=await $e(N.workflowHistory(e.workflowId),{action:"save_version",title:`${e.name} / ${((r=Je.value)==null?void 0:r.title)??"工作流快照"}`,node_id:Yo(nt.value,e),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:nt.value,profile_id:e.profileId,profile_name:e.name,profile_status:e.status}});Zl.value=s.created_at}catch(s){ll.value=`保存快照失败:${Ie(s)}`}finally{wa.value=!1}}function Yo(e,a){if(!a.workflowId)return;const s=Mr(a.workflowId).find(f=>pl(f)===e);if(s)return s.node_id;const c=a.workflowNodeIds??[];if(e!=="brief-import"&&e==="persona-split")return c[0]}function Mr(e){var s;const a=rt.value[e]??[],r=(s=pt.value[e])==null?void 0:s.current_branch;return r?a.filter(c=>c.branch_name===r):a}function Ow(e){const a=su.value;if(a&&(!e||a.node_id===e))return[a.image_id];if(!e)return[];const r=(jt.value[e]??[]).find(s=>{var c;return s.image_id===((c=xl.value.find(f=>f.node_id===e))==null?void 0:c.selected_image_id)});return r&&hn(r)?[r.image_id]:[]}function hn(e){const a="metadata"in e&&e.metadata&&typeof e.metadata=="object"?e.metadata:{},r=a.mock===!0||a.mock===1||a.mock==="true",s=Object.prototype.hasOwnProperty.call(a,"provider_error")&&a.provider_error!=null,c=a.fallback_used===!0||a.degraded===!0;return!r&&!s&&!c}async function Ww(){if(!Gf.value||So.value)return;const e=Bt("生成档案");if(e){kl.value=e;return}Li.value+=1;const a=Vw(Re.value,Li.value);So.value=!0,kl.value="";try{const r=await $e(N.quickProfileDraft,Uw(a,Re.value,pn.value)),s={...a,name:r.profile_preview.name||a.name,style:r.profile_preview.style_prompt||a.style,negative:r.profile_preview.negative_prompt||a.negative},c=await $e(N.quickProfileDraftSave,Fw(s,Re.value,pn.value,r)),b={...jw(c,s),status:"文本档案已保存"};mn.value=[b,...mn.value.filter(C=>C.id!==b.id)],Jt.value=[c.profile,...Jt.value.filter(C=>C.profile_id!==c.profile.profile_id)],Xt.value={...Xt.value,[c.profile.profile_id]:c.workflow?[c.workflow]:[]},yu(b),U.value="quickProfile"
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${Xe}" height="${ke}" viewBox="0 0 ${Xe} ${ke}" preserveAspectRatio="xMidYMid meet">
|
|||
|
|
<defs>
|
|||
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|||
|
|
<stop offset="0%" stop-color="${f}" />
|
|||
|
|
<stop offset="58%" stop-color="${b}" />
|
|||
|
|
<stop offset="100%" stop-color="#111827" />
|
|||
|
|
</linearGradient>
|
|||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
|||
|
|
<stop offset="0%" stop-color="${C}" stop-opacity="0.82" />
|
|||
|
|
<stop offset="100%" stop-color="${C}" stop-opacity="0" />
|
|||
|
|
</radialGradient>
|
|||
|
|
<pattern id="grid" width="${bt}" height="${bt}" patternUnits="userSpaceOnUse">
|
|||
|
|
<path d="M${bt} 0H0V${bt}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
<rect width="${Xe}" height="${ke}" fill="url(#bg)" />
|
|||
|
|
<rect width="${Xe}" height="${ke}" fill="url(#grid)" />
|
|||
|
|
<circle cx="${Tl}" cy="${Zo}" r="${Bl}" fill="url(#halo)" />
|
|||
|
|
<circle cx="${er}" cy="${Ll}" r="${k}" fill="#ffffff" opacity="0.11" />
|
|||
|
|
<rect x="${At}" y="${At}" width="${qn}" height="${Ma}" rx="${za}" fill="#ffffff" opacity="0.14" />
|
|||
|
|
<rect x="${la}" y="${la}" width="${ln}" height="${Dn}" rx="${Math.round(za*.72)}" fill="#0f172a" opacity="0.24" />
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${da}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${oa}" font-weight="700">IMAGESTUDIO · 未生成 ${O}</text>
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${Ha}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${x}" font-weight="800">${V}</text>
|
|||
|
|
<text x="${la+Math.round(Ze*.035)}" y="${xa}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Fe}">${ce}</text>
|
|||
|
|
<text x="${be}" y="${da+Math.round(Ze*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Aa}" font-weight="900">${O}</text>
|
|||
|
|
<text x="${Xe-At}" y="${ke-Math.round(At*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(Ze*.027))}" font-weight="800">${_e}</text>
|
|||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(gt)}`}function Np(e){return e.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]??a)}function Ga(e){return"title"in e&&e.title?e.title:e.node_id||e.workflow_id||e.profile_id||rn(e.image_id)}function Ca(e){return Ln(e.thumbnail_url)||Ln(e.image_url)}function Ln(e){const a=String(e||"").trim();if(!a)return"";const r=Eh(a);if(!r)return a;const s=ut.value[a];if(s)return s;if(!Pt.has(a)){const c=Nh(a,r).finally(()=>{Pt.delete(a)});Pt.set(a,c)}return Du()==="plugin-bridge"?"":a}function Eh(e){var a;try{const r=new URL(e,window.location.origin);return r.pathname.endsWith("/media/fetch")&&((a=r.searchParams.get("token"))==null?void 0:a.trim())||""}catch{return""}}async function Nh(e,a){try{const r=await Pe(N.mediaPayload,{token:a}),s=String(r.body_base64||"");if(!s)return;const c=s.replace(/-/g,"+").replace(/_/g,"/"),f=c.padEnd(Math.ceil(c.length/4)*4,"="),b=window.atob(f),C=new Uint8Array(b.length);for(let V=0;V<b.length;V+=1)C[V]=b.charCodeAt(V);const O=URL.createObjectURL(new Blob([C],{type:r.content_type||"application/octet-stream"}));Dt.add(O),ut.value={...ut.value,[e]:O}}catch(r){console.warn("ImageStudio media bridge failed",r)}}function Th(e){if(e.status==="confirmed_unsupported")return!1;if(e.dialect==="openai_images"||e.dialect==="comfyui")return!0;const a=e.capabilities||{};return!!(a.text_to_image||a.image_generation||a.workflow_graph||Object.keys(a).some(r=>["text_to_image","image_generation","workflow_graph"].includes(r)))}function Bh(e,a,r){return Math.max(a,Math.min(r,e))}function Lh(){try{const e=localStorage.getItem(Tn.theme);(e==="light"||e==="dark")&&(Sl.value=e),Ao.value=localStorage.getItem(Tn.primary)||Ao.value,Mo.value=localStorage.getItem(Tn.accent)||Mo.value;const a=localStorage.getItem(Tn.navigationPinned);dl.value=a===null||a==="true",Rn.value=Tp(localStorage.getItem(Tn.readNotifications)),Zr.value=Tp(localStorage.getItem(Tn.dismissedNotifications))}catch{}Jr.value=dl.value}function qh(){try{localStorage.setItem(Tn.theme,Sl.value),localStorage.setItem(Tn.primary,Ao.value),localStorage.setItem(Tn.accent,Mo.value),localStorage.setItem(Tn.navigationPinned,String(dl.value)),localStorage.setItem(Tn.readNotifications,JSON.stringify(Rn.value)),localStorage.setItem(Tn.dismissedNotifications,JSON.stringify(Zr.value))}catch{}}function Tp(e){if(!e)return[];try{const a=JSON.parse(e);return Array.isArray(a)?a.filter(r=>typeof r=="string"):[]}catch{return[]}}function co(e,a){const r=xc(e);return r?`rgba(${r.r}, ${r.g}, ${r.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function Ic(e,a,r){const s=xc(e),c=xc(a);if(!s||!c)return e;const f=Math.min(1,Math.max(0,r));return`#${Pc(s.r*(1-f)+c.r*f)}${Pc(s.g*(1-f)+c.g*f)}${Pc(s.b*(1-f)+c.b*f)}`}function Pc(e){return Math.round(e).toString(16).padStart(2,"0")}function xc(e){const a=e.replace("#","");return/^[0-9a-fA-F]{6}$/.test(a)?{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}:null}function he(e,a){const r=e==null?void 0:e[a];return typeof r=="string"?r:""}function Dh(e){return!ta(e)||typeof e.task_id!="string"?null:{task_id:e.task_id,task_type:typeof e.task_type=="string"?e.task_type:"generation",status:typeof e.status=="string"?e.status:"created",progress:typeof e.progress=="number"?e.progress:0,created_at:typeof e.created_at=="string"?e.created_at:"",updated_at:typeof e.updated_at=="string"?e.updated_at:"",profile_id:typeof e.profile_id=="string"?e.profile_id:null,workflow_id:typeof e.workflow_id=="string"?e.workflow_id:null,node_id:typeof e.node_id=="string"?e.node_id:null,model_route:typeof e.model_route=="string"?e.model_route:null,idempotency_key:typeof e.idempotency_key=="string"?e.idempotency_key:null,request:ta(e.request)?e.request:void 0,result:ta(e.result)?e.result:void 0,metadata:ta(e.metadata)?e.metadata:void 0,error_message:typeof e.error_message=="string"?e.error_message:null}}function Oh(e){return!!e}function ta(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function Wh(e){return sn(e,a=>a.id)
|
|||
|
|
身份:近未来港区巡查员\r
|
|||
|
|
性格:冷静、可靠、行动快\r
|
|||
|
|
外观:黑色短发,青绿色眼睛\r
|
|||
|
|
服装:轻机能外套、短靴、发光臂章\r
|
|||
|
|
避雷:低质量、结构错误`},null,512),[[je,Jl.value]])]),l("aside",vR,[l("header",null,[l("div",null,[a[166]||(a[166]=l("span",null,"识别预览",-1)),l("strong",null,p(ay.value)+" / "+p(Id.value.length),1)]),l("em",null,p(ai.value?`${ai.value.length} 字`:"待粘贴"),1)]),l("dl",null,[(m(!0),y(Q,null,re(Id.value,k=>(m(),y("div",{key:k.key,class:fe({pending:ai.value&&!k.recognized})},[l("dt",null,[Kn(p(k.label)+" ",1),l("span",null,p(k.recognized?"已识别":"待整理"),1)]),l("dd",null,p(k.value||"粘贴文本后显示"),1)],2))),128))])])]),l("footer",null,[l("span",null,p(ai.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),l("button",{type:"button",onClick:a[36]||(a[36]=k=>ea("externalProfileImport"))},"取消"),l("button",{type:"button",disabled:!ai.value,onClick:Qw}," 识别并填入问卷 ",8,pR)])])])):H("",!0)]),_:1}),We(Ya,{name:"viewer-fade"},{default:ra(()=>[Vt.value?(m(),y("div",mR,[l("section",gR,[l("header",null,[a[167]||(a[167]=l("div",null,[l("span",null,"快速角色"),l("strong",null,"创建角色档案问卷")],-1)),l("button",{type:"button",title:"关闭",onClick:a[37]||(a[37]=k=>ea("personaQuestionnaire"))},"×")]),l("div",yR,[l("label",null,[a[168]||(a[168]=l("span",null,"角色核心",-1)),xe(l("textarea",{"onUpdate:modelValue":a[38]||(a[38]=k=>Re.value.roleCore=k),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[je,Re.value.roleCore]])]),l("label",_R,[a[170]||(a[170]=l("span",null,"性别表现",-1)),xe(l("select",{"onUpdate:modelValue":a[39]||(a[39]=k=>Re.value.genderPresentation=k)},[...a[169]||(a[169]=[l("option",{value:""},"未指定",-1),l("option",{value:"female"},"女性 / Female",-1),l("option",{value:"male"},"男性 / Male",-1),l("option",{value:"androgynous"},"中性 / Androgynous",-1),l("option",{value:"nonbinary"},"非二元 / Nonbinary",-1)])],512),[[Xa,Re.value.genderPresentation]])]),l("label",bR,[a[171]||(a[171]=l("span",null,"年龄阶段",-1)),xe(l("input",{"onUpdate:modelValue":a[40]||(a[40]=k=>Re.value.ageStage=k),type:"text",placeholder:"例如 adult、young adult、middle-aged"},null,512),[[je,Re.value.ageStage]])]),l("label",wR,[a[172]||(a[172]=l("span",null,"物种 / 种族",-1)),xe(l("input",{"onUpdate:modelValue":a[41]||(a[41]=k=>Re.value.species=k),type:"text",placeholder:"例如 human、elf、android"},null,512),[[je,Re.value.species]])]),l("label",hR,[a[173]||(a[173]=l("span",null,"体型",-1)),xe(l("input",{"onUpdate:modelValue":a[42]||(a[42]=k=>Re.value.bodyType=k),type:"text",placeholder:"例如 slim、athletic、muscular"},null,512),[[je,Re.value.bodyType]])]),l("label",null,[a[174]||(a[174]=l("span",null,"显著特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[43]||(a[43]=k=>Re.value.distinctiveFeatures=k),rows:"3",placeholder:"伤疤、异色瞳、义体、角、纹身或固定视觉记忆点。"},null,512),[[je,Re.value.distinctiveFeatures]])]),l("label",null,[a[175]||(a[175]=l("span",null,"性格关键词",-1)),xe(l("textarea",{"onUpdate:modelValue":a[44]||(a[44]=k=>Re.value.personality=k),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[je,Re.value.personality]])]),l("label",null,[a[176]||(a[176]=l("span",null,"外观特征",-1)),xe(l("textarea",{"onUpdate:modelValue":a[45]||(a[45]=k=>Re.value.appearance=k),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[je,Re.value.appearance]])]),l("label",null,[a[177]||(a[177]=l("span",null,"服装与配饰",-1)),xe(l("textarea",{"onUpdate:modelValue":a[46]||(a[46]=k=>Re.value.outfit=k),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[je,Re.value.outfit]])]),l("label",null,[a[178]||(a[178]=l("span",null,"常用场景",-1)),xe(l("textarea",{"onUpdate:modelValue":a[47]||(a[47]=k=>Re.value.scene=k),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[je,Re.value.scene]])]),l("label",null,[a[179]||(a[179]=l("span",null,"避雷内容",-1)),xe(l("textarea",{"onUpd
|