55 行
475 KiB
JavaScript
55 行
475 KiB
JavaScript
|
|
var db=Object.defineProperty;var cb=(e,n,o)=>n in e?db(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o;var Ls=(e,n,o)=>cb(e,typeof n!="symbol"?n+"":n,o);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const u of r)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(r){const u={};return r.integrity&&(u.integrity=r.integrity),r.referrerPolicy&&(u.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?u.credentials="include":r.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(r){if(r.ep)return;r.ep=!0;const u=o(r);fetch(r.href,u)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function ku(e){const n=Object.create(null);for(const o of e.split(","))n[o]=1;return o=>o in n}const st={},so=[],ia=()=>{},sf=()=>!1,_r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$r=e=>e.startsWith("onUpdate:"),Rt=Object.assign,wu=(e,n)=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)},fb=Object.prototype.hasOwnProperty,lt=(e,n)=>fb.call(e,n),xe=Array.isArray,uo=e=>ri(e)==="[object Map]",bo=e=>ri(e)==="[object Set]",yc=e=>ri(e)==="[object Date]",Le=e=>typeof e=="function",_t=e=>typeof e=="string",Fl=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",uf=e=>(at(e)||Le(e))&&Le(e.then)&&Le(e.catch),df=Object.prototype.toString,ri=e=>df.call(e),pb=e=>ri(e).slice(8,-1),cf=e=>ri(e)==="[object Object]",_u=e=>_t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Go=ku(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cr=e=>{const n=Object.create(null);return(o=>n[o]||(n[o]=e(o)))},vb=/-\w/g,Vl=Cr(e=>e.replace(vb,n=>n.slice(1).toUpperCase())),mb=/\B([A-Z])/g,sn=Cr(e=>e.replace(mb,"-$1").toLowerCase()),ff=Cr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=Cr(e=>e?`on${ff(e)}`:""),oa=(e,n)=>!Object.is(e,n),ir=(e,...n)=>{for(let o=0;o<e.length;o++)e[o](...n)},pf=(e,n,o,i=!1)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:i,value:o})},Ir=e=>{const n=parseFloat(e);return isNaN(n)?e:n},gb=e=>{const n=_t(e)?Number(e):NaN;return isNaN(n)?e:n};let hc;const Pr=()=>hc||(hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mt(e){if(xe(e)){const n={};for(let o=0;o<e.length;o++){const i=e[o],r=_t(i)?kb(i):Mt(i);if(r)for(const u in r)n[u]=r[u]}return n}else if(_t(e)||at(e))return e}const bb=/;(?![^(]*\))/g,yb=/:([^]+)/,hb=/\/\*[^]*?\*\//g;function kb(e){const n={};return e.replace(hb,"").split(bb).forEach(o=>{if(o){const i=o.split(yb);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function oe(e){let n="";if(_t(e))n=e;else if(xe(e))for(let o=0;o<e.length;o++){const i=oe(e[o]);i&&(n+=i+" ")}else if(at(e))for(const o in e)e[o]&&(n+=o+" ");return n.trim()}const wb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_b=ku(wb);function vf(e){return!!e||e===""}function $b(e,n){if(e.length!==n.length)return!1;let o=!0;for(let i=0;o&&i<e.length;i++)o=nn(e[i],n[i]);return o}function nn(e,n){if(e===n)return!0;let o=yc(e),i=yc(n);if(o||i)return o&&i?e.getTime()===n.getTime():!1;if(o=Fl(e),i=Fl(n),o||i)return e===n;if(o=xe(e),i=xe(n),o||i)return o&&i?$b(e,n):!1;if(o=at(e),i=at(n),o||i){if(!o||!i)return!1;const r=Object.keys(e).length,u=Object.keys(n).length;if(r!==u)return!1;for(const f in e){const m=e.hasOwnProperty(f),b=n.hasOwnProperty(f);if(m&&!b||!m&&b||!nn(e[f],n[f]))return!1}}return String(e)===String(n)}function $u(e,n){return e.findIndex(o=>nn(o,n))}const mf=e=>!!(e&&e.__v_isRef===!0),d=e=>_t(e)?e:e==null?"":xe(e)||at(e)&&(e.toString===df||!Le(e.toString))?mf(e)?d(e.value):JSON.stringify(e,gf,2):String(e),gf=(e,n)=>mf(n)?gf(e,n.value):uo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,r],u)=>(o[Ds(i,u)+" =>"]=r,o),{})}:bo(n)?{[`Set(${n.size})`]:[...n.values()].map(o=>Ds(o))}:Fl(n)?Ds(n):at(n)&&!xe(n)&&!cf(n)?String(n):n,Ds=(e,n="")=>{var o;return Fl(e)?`Symbol(${(o=e.description)!=null?o:n})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Kt;class Cb{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&&Kt&&(Kt.active?(this.parent=Kt,this.index=(Kt.scopes||(Kt.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=Kt;try{return Kt=this,n()}finally{Kt=o}}}on(){++this._on===1&&(this.prevScope=Kt,Kt=this)}off(){if(this._on>0&&--this._on===0){if(Kt===this)Kt=this.prevScope;else{let n=Kt;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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ib(){return Kt}let ct;const Vs=new WeakSet;class bf{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,Kt&&(Kt.active?Kt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vs.has(this)&&(Vs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,kc(this),kf(this);const n=ct,o=Ul;ct=this,Ul=!0;try{return this.fn()}finally{wf(this),ct=n,Ul=o,this.flags&=-3}}stop(){if(this.flags&1){for(let n=this.deps;n;n=n.nextDep)Pu(n);this.deps=this.depsTail=void 0,kc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){nu(this)&&this.run()}get dirty(){return nu(this)}}let yf=0,zo,Ho;function hf(e,n=!1){if(e.flags|=8,n){e.next=Ho,Ho=e;return}e.next=zo,zo=e}function Cu(){yf++}function Iu(){if(--yf>0)return;if(Ho){let n=Ho;for(Ho=void 0;n;){const o=n.next;n.next=void 0,n.flags&=-9,n=o}}let e;for(;zo;){let n=zo;for(zo=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(i){e||(e=i)}n=o}}if(e)throw e}function kf(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function wf(e){let n,o=e.depsTail,i=o;for(;i;){const r=i.prevDep;i.version===-1?(i===o&&(o=r),Pu(i),Pb(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=n,e.depsTail=o}function nu(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(_f(n.dep.computed)||n.dep.version!==n.version))return!0;return!!e._dirty}function _f(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zo)||(e.globalVersion=Zo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!nu(e))))return;e.flags|=2;const n=e.dep,o=ct,i=Ul;ct=e,Ul=!0;try{kf(e);const r=e.fn(e._value);(n.version===0||oa(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(r){throw n.version++,r}finally{ct=o,Ul=i,wf(e),e.flags&=-3}}function Pu(e,n=!1){const{dep:o,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),o.subs===e&&(o.subs=i,!i&&o.computed)){o.computed.flags&=-5;for(let u=o.computed.deps;u;u=u.nextDep)Pu(u,!0)}!n&&!--o.sc&&o.map&&o.map.delete(o.key)}function Pb(e){const{prevDep:n,nextDep:o}=e;n&&(n.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=n,e.nextDep=void 0)}let Ul=!0;const $f=[];function ra(){$f.push(Ul),Ul=!1}function sa(){const e=$f.pop();Ul=e===void 0?!0:
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function si(e,n,o,i){try{return i?e(...i):e()}catch(r){xr(r,n,o)}}function Rl(e,n,o,i){if(Le(e)){const r=si(e,n,o,i);return r&&uf(r)&&r.catch(u=>{xr(u,n,o)}),r}if(xe(e)){const r=[];for(let u=0;u<e.length;u++)r.push(Rl(e[u],n,o,i));return r}}function xr(e,n,o,i=!0){const r=n?n.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:f}=n&&n.appContext.config||st;if(n){let m=n.parent;const b=n.proxy,w=`https://vuejs.org/error-reference/#runtime-${o}`;for(;m;){const g=m.ec;if(g){for(let A=0;A<g.length;A++)if(g[A](e,b,w)===!1)return}m=m.parent}if(u){ra(),si(u,null,10,[e,b,w]),sa();return}}Xb(e,o,r,i,f)}function Xb(e,n,o,i=!0,r=!1){if(r)throw e;console.error(e)}const al=[];let ta=-1;const co=[];let an=null,ro=0;const Nf=Promise.resolve();let vr=null;function Gt(e){const n=vr||Nf;return e?n.then(this?e.bind(this):e):n}function Zb(e){let n=ta+1,o=al.length;for(;n<o;){const i=n+o>>>1,r=al[i],u=ti(r);u<e||u===e&&r.flags&2?n=i+1:o=i}return n}function Nu(e){if(!(e.flags&1)){const n=ti(e),o=al[al.length-1];!o||!(e.flags&2)&&n>=ti(o)?al.push(e):al.splice(Zb(n),0,e),e.flags|=1,Rf()}}function Rf(){vr||(vr=Nf.then(qf))}function ey(e){xe(e)?co.push(...e):an&&e.id===-1?an.splice(ro+1,0,e):e.flags&1||(co.push(e),e.flags|=1),Rf()}function _c(e,n,o=ta+1){for(;o<al.length;o++){const i=al[o];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;al.splice(o,1),o--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Bf(e){if(co.length){const n=[...new Set(co)].sort((o,i)=>ti(o)-ti(i));if(co.length=0,an){an.push(...n);return}for(an=n,ro=0;ro<an.length;ro++){const o=an[ro];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}an=null,ro=0}}const ti=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qf(e){try{for(ta=0;ta<al.length;ta++){const n=al[ta];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),si(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;ta<al.length;ta++){const n=al[ta];n&&(n.flags&=-2)}ta=-1,al.length=0,Bf(),vr=null,(al.length||co.length)&&qf()}}let Zt=null,Tf=null;function mr(e){const n=Zt;return Zt=e,Tf=e&&e.type.__scopeId||null,n}function Pt(e,n=Zt,o){if(!n||e._n)return e;const i=(...r)=>{i._d&&yr(-1);const u=mr(n);let f;try{f=e(...r)}finally{mr(u),i._d&&yr(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function me(e,n){if(Zt===null)return e;const o=Rr(Zt),i=e.dirs||(e.dirs=[]);for(let r=0;r<n.length;r++){let[u,f,m,b=st]=n[r];u&&(Le(u)&&(u={mounted:u,updated:u}),u.deep&&Ea(f),i.push({dir:u,instance:o,value:f,oldValue:void 0,arg:m,modifiers:b}))}return e}function En(e,n,o,i){const r=e.dirs,u=n&&n.dirs;for(let f=0;f<r.length;f++){const m=r[f];u&&(m.oldValue=u[f].value);let b=m.dir[i];b&&(ra(),Rl(b,o,8,[e.el,m,e,n]),sa())}}function ty(e,n){if(nl){let o=nl.provides;const i=nl.parent&&nl.parent.provides;i===o&&(o=nl.provides=Object.create(i)),o[e]=n}}function rr(e,n,o=!1){const i=Lu();if(i||po){let r=po?po._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&Le(n)?n.call(i&&i.proxy):n}}const ly=Symbol.for("v-scx"),ay=()=>rr(ly);function Je(e,n,o){return Lf(e,n,o)}function Lf(e,n,o=st){const{immediate:i,deep:r,flush:u,once:f}=o,m=Rt({},o),b=n&&i||!n&&u!=="post";let w;if(oi){if(u==="sync"){const k=ay();w=k.__watcherHandles||(k.__watcherHandles=[])}else if(!b){const k=()=>{};return k.stop=ia,k.resume=ia,k.pause=ia,k}}const g=nl;m.call=(k,$,L)=>Rl(k,g,$,L);let A=!1;u==="post"?m.scheduler=k=>{dl(k,g&&g.suspense)}:u!=="sync"&&(A=!0,m.scheduler=(k,$)=>{$?k():Nu(k)}),m.augmentJob=k=>{n&&(k.flags|=4),A&&(k.flags|=2,g&&(k.id=g.uid,k.i=g))};const T=Yb(e,n,m);return oi&&(w?w.push(T):b&&T()),T}function ny(e,n,o){const i=this.proxy,r=_t(e)?e.includes(".")?Of(i,e):()=>i[e]:e.bind(i,i);let u;Le(n)?u=n:(u=n.handler,o=n);const f=di(this),m=Lf(r,u.bind(i),o);return f(),m}function Of(e,n){const o=n.split(".");return()=>{let i=e;for(let r=0;r<o.length&&i;r++)i=i[o[r]];return i}}const oy=Symbol("_vte"),Df=e=>e.__isTeleport,Al=Symbol("_leaveCb"),Do=Symbol("_enterCb");function Vf(){const e={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 vu;const Lc=typeof window<"u"&&window.trustedTypes;if(Lc)try{vu=Lc.createPolicy("vue",{createHTML:e=>e})}catch{}const bp=vu?e=>vu.createHTML(e):e=>e,n1="http://www.w3.org/2000/svg",o1="http://www.w3.org/1998/Math/MathML",xa=typeof document<"u"?document:null,Oc=xa&&xa.createElement("template"),i1={insert:(e,n,o)=>{n.insertBefore(e,o||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,o,i)=>{const r=n==="svg"?xa.createElementNS(n1,e):n==="mathml"?xa.createElementNS(o1,e):o?xa.createElement(e,{is:o}):xa.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>xa.createTextNode(e),createComment:e=>xa.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xa.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,o,i,r,u){const f=o?o.previousSibling:n.lastChild;if(r&&(r===u||r.nextSibling))for(;n.insertBefore(r.cloneNode(!0),o),!(r===u||!(r=r.nextSibling)););else{Oc.innerHTML=bp(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const m=Oc.content;if(i==="svg"||i==="mathml"){const b=m.firstChild;for(;b.firstChild;)m.appendChild(b.firstChild);m.removeChild(b)}n.insertBefore(m,o)}return[f?f.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}},Xa="transition",Vo="animation",mo=Symbol("_vtc"),yp={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},hp=Rt({},Uf,yp),r1=e=>(e.displayName="Transition",e.props=hp,e),Jt=r1((e,{slots:n})=>l1(ry,kp(e),n)),Rn=(e,n=[])=>{xe(e)?e.forEach(o=>o(...n)):e&&e(...n)},Dc=e=>e?xe(e)?e.some(n=>n.length>1):e.length>1:!1;function kp(e){const n={};for(const ie in e)ie in yp||(n[ie]=e[ie]);if(e.css===!1)return n;const{name:o="v",type:i,duration:r,enterFromClass:u=`${o}-enter-from`,enterActiveClass:f=`${o}-enter-active`,enterToClass:m=`${o}-enter-to`,appearFromClass:b=u,appearActiveClass:w=f,appearToClass:g=m,leaveFromClass:A=`${o}-leave-from`,leaveActiveClass:T=`${o}-leave-active`,leaveToClass:k=`${o}-leave-to`}=e,$=s1(r),L=$&&$[0],Q=$&&$[1],{onBeforeEnter:N,onEnter:B,onEnterCancelled:P,onLeave:O,onLeaveCancelled:de,onBeforeAppear:ge=N,onAppear:Se=B,onAppearCancelled:se=P}=n,R=(ie,Ce,z,U)=>{ie._enterCancelled=U,tn(ie,Ce?g:m),tn(ie,Ce?w:f),z&&z()},j=(ie,Ce)=>{ie._isLeaving=!1,tn(ie,A),tn(ie,k),tn(ie,T),Ce&&Ce()},F=ie=>(Ce,z)=>{const U=ie?Se:B,Ee=()=>R(Ce,ie,z);Rn(U,[Ce,Ee]),Vc(()=>{tn(Ce,ie?b:u),ea(Ce,ie?g:m),Dc(U)||Uc(Ce,i,L,Ee)})};return Rt(n,{onBeforeEnter(ie){Rn(N,[ie]),ea(ie,u),ea(ie,f)},onBeforeAppear(ie){Rn(ge,[ie]),ea(ie,b),ea(ie,w)},onEnter:F(!1),onAppear:F(!0),onLeave(ie,Ce){ie._isLeaving=!0;const z=()=>j(ie,Ce);ea(ie,A),ie._enterCancelled?(ea(ie,T),mu(ie)):(mu(ie),ea(ie,T)),Vc(()=>{ie._isLeaving&&(tn(ie,A),ea(ie,k),Dc(O)||Uc(ie,i,Q,z))}),Rn(O,[ie,z])},onEnterCancelled(ie){R(ie,!1,void 0,!0),Rn(P,[ie])},onAppearCancelled(ie){R(ie,!0,void 0,!0),Rn(se,[ie])},onLeaveCancelled(ie){j(ie),Rn(de,[ie])}})}function s1(e){if(e==null)return null;if(at(e))return[Gs(e.enter),Gs(e.leave)];{const n=Gs(e);return[n,n]}}function Gs(e){return gb(e)}function ea(e,n){n.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[mo]||(e[mo]=new Set)).add(n)}function tn(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const o=e[mo];o&&(o.delete(n),o.size||(e[mo]=void 0))}function Vc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let u1=0;function Uc(e,n,o,i){const r=e._endId=++u1,u=()=>{r===e._endId&&i()};if(o!=null)return setTimeout(u,o);const{type:f,timeout:m,propCount:b}=wp(e,n);if(!f)return i();const w=f+"end";let g=0;const A=()=>{e.removeEventListener(w,T),u()},T=k=>{k.target===e&&++g>=b&&A()};setTimeout(()=>{g<b&&A()},m+1),e.addEventListener(w,T)}function wp(e,n){const o=window.getComputedStyle(e),i=$=>(o[$]||"").split(", "),r=i(`${Xa}
|
|||
|
|
`)}function f(T,k){const $=Array.from(new Set(k.replace(/,/g,",").split(/[\n,]/).map(L=>L.trim()).filter(Boolean)));i("update:modelValue",{...o.modelValue,[T]:$})}function m(T,k){i("update:modelValue",{...o.modelValue,[T]:k})}const b=E(()=>r("group_allowlist").length),w=E(()=>r("user_allowlist").length),g=E(()=>r("adult_group_allowlist").length),A=E(()=>r("adult_user_allowlist").length);return(T,k)=>(c(),p("section",cC,[k[24]||(k[24]=Tu('<div class="intro" data-v-1ac2e616><span data-v-1ac2e616>AstrBot 聊天指令</span><strong data-v-1ac2e616>群聊与用户白名单</strong><p data-v-1ac2e616>每行填写一个平台提供的群聊 ID 或用户 ID,也支持用逗号分隔。白名单为空时不会放行对应条件。</p></div><div class="rules" data-v-1ac2e616><article data-v-1ac2e616><b data-v-1ac2e616>快速角色 / 角色工作流</b><strong data-v-1ac2e616>群聊命中 + 用户命中</strong><p data-v-1ac2e616>两个白名单必须同时命中才允许使用,避免群内未授权成员启动完整工作流。</p></article><article data-v-1ac2e616><b data-v-1ac2e616>单图生成</b><strong data-v-1ac2e616>群聊命中 或 用户命中</strong><p data-v-1ac2e616>任意一个白名单命中即可使用;用户白名单也可以在私聊中放行单图。</p></article></div>',2)),t("div",fC,[t("label",null,[t("span",null,[k[10]||(k[10]=it("群聊白名单 ",-1)),t("em",null,d(b.value)+" 项",1)]),t("textarea",{value:u("group_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个群聊 ID
|
|||
|
|
例如:123456789`,onInput:k[0]||(k[0]=$=>f("group_allowlist",$.target.value))},null,40,pC),k[11]||(k[11]=t("small",null,"用于判断命令所在群聊是否获得授权。",-1))]),t("label",null,[t("span",null,[k[12]||(k[12]=it("用户白名单 ",-1)),t("em",null,d(w.value)+" 项",1)]),t("textarea",{value:u("user_allowlist"),disabled:e.disabled,rows:"10",placeholder:`每行一个用户 ID
|
|||
|
|
例如:987654321`,onInput:k[1]||(k[1]=$=>f("user_allowlist",$.target.value))},null,40,vC),k[13]||(k[13]=t("small",null,"使用 AstrBot 事件返回的平台用户 ID,不使用昵称。",-1))])]),k[25]||(k[25]=t("div",{class:"adult-intro"},[t("div",null,[t("span",null,"成人内容独立授权"),t("strong",null,"必须同时通过内容审核与成人白名单")]),t("p",null,"这些名单不会放宽恐怖主义、高危暴力、现实伤害或其他禁止内容。群聊内要求成人群聊与成人用户同时命中;私聊要求成人用户命中。")],-1)),t("div",mC,[t("label",null,[t("span",null,[k[14]||(k[14]=it("成人内容群聊白名单 ",-1)),t("em",null,d(g.value)+" 项",1)]),t("textarea",{value:u("adult_group_allowlist"),disabled:e.disabled,rows:"6",placeholder:"每行一个允许成人路由的群聊 ID",onInput:k[2]||(k[2]=$=>f("adult_group_allowlist",$.target.value))},null,40,gC),k[15]||(k[15]=t("small",null,"仅影响通过审核的 adult_allowed 内容。",-1))]),t("label",null,[t("span",null,[k[16]||(k[16]=it("成人内容用户白名单 ",-1)),t("em",null,d(A.value)+" 项",1)]),t("textarea",{value:u("adult_user_allowlist"),disabled:e.disabled,rows:"6",placeholder:"每行一个允许成人路由的用户 ID",onInput:k[3]||(k[3]=$=>f("adult_user_allowlist",$.target.value))},null,40,bC),k[17]||(k[17]=t("small",null,"不会继承普通用户白名单,必须单独授权。",-1))])]),t("div",yC,[t("label",null,[k[18]||(k[18]=t("span",null,"用户并发上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.user_concurrency_limit||2),disabled:e.disabled,onInput:k[4]||(k[4]=$=>m("user_concurrency_limit",Number($.target.value)))},null,40,hC)]),t("label",null,[k[19]||(k[19]=t("span",null,"群聊并发上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.group_concurrency_limit||5),disabled:e.disabled,onInput:k[5]||(k[5]=$=>m("group_concurrency_limit",Number($.target.value)))},null,40,kC)]),t("label",null,[k[20]||(k[20]=t("span",null,"用户每日生成上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.daily_user_generation_limit||30),disabled:e.disabled,onInput:k[6]||(k[6]=$=>m("daily_user_generation_limit",Number($.target.value)))},null,40,wC)]),t("label",null,[k[21]||(k[21]=t("span",null,"群聊每日生成上限",-1)),t("input",{type:"number",min:"1",value:Number(e.modelValue.daily_group_generation_limit||100),disabled:e.disabled,onInput:k[7]||(k[7]=$=>m("daily_group_generation_limit",Number($.target.value)))},null,40,_C)]),t("label",$C,[t("input",{type:"checkbox",checked:e.modelValue.allow_2k!==!1,disabled:e.disabled,onChange:k[8]||(k[8]=$=>m("allow_2k",$.target.checked))},null,40,CC),k[22]||(k[22]=t("span",null,"允许聊天使用 2K",-1))]),t("label",IC,[t("input",{type:"checkbox",checked:e.modelValue.allow_4k===!0,disabled:e.disabled,onChange:k[9]||(k[9]=$=>m("allow_4k",$.target.checked))},null,40,PC),k[23]||(k[23]=t("span",null,"允许聊天使用 4K",-1))])])]))}}),xC=Et(SC,[["__scopeId","data-v-1ac2e616"]]),AC={class:"governance"},MC={class:"preview-card"},EC=["disabled"],NC={class:"preview-choice"},RC={key:1,class:"preview-error"},BC={key:2,class:"preview-result"},qC={class:"card"},TC={class:"switch"},LC=["checked","disabled"],OC={class:"grid"},DC=["value","disabled"],VC=["value"],UC=["value","disabled"],FC={class:"entries"},WC=["checked","disabled","onChange"],jC={class:"card"},KC={class:"switch"},GC=["checked","disabled"],zC={class:"grid"},HC=["value","disabled"],QC=["value"],JC=["value","disabled"],YC={class:"card routing"},XC={class:"switch"},ZC=["checked","disabled"],eI={class:"route-pair"},tI=["value","disabled"],lI=["value"],aI=["value","disabled"],nI=["value"],oI={class:"entries"},iI=["checked","disabled","onChange"],rI={class:"card"},sI={class:"switch"},uI=["checked","disabled"],dI={class:"grid"},cI=["value","disabled"],fI=["value"],pI=["value","disabled"],vI={class:"retention"},mI=["value","disabled"],gI=["value","disabled"],bI=["value","disabled"],yI=ft({__name:"PromptGovernancePanel",props:{modelValue:{},adapters:{},disabled:{
|
|||
|
|
`)}function jd(l){const a=He.value,s=De.value;return{source:"standalone_web_workflow_chat",ui_node_id:Te.value,ui_node_title:a.title,ui_node_phase:a.phase,ui_node_status:a.status,profile_id:s.profileId,profile_name:s.name,workflow_id:s.workflowId,source_language:"auto",target_prompt_language:"en",translation_mode:"backend_llm",user_instruction:l,persona_split_fields_ready:Di.value,persona_split_fields_total:Oi.value,selected_material_ids:hs(),selected_draft_image_ids:yt.value.filter(gl).map(v=>v.image_id)}}async function Ps(){var s;const l=jl.value.trim();if(!l||Ke.value)return;if(!Ql.value){Ie.value="请先在设置中配置并确认一个生图模型。";return}await Ms({promptPatch:Wd(l),metadata:jd(l)})&&(qr.value=l,Du.value=`${He.value.title} / ${((s=Ql.value)==null?void 0:s.label)??H.value}`)}function Kd(){!Ft.value||!qt(Ft.value)||(Kn.value="generation",il("imageViewer"),zi(),zl.value=!0)}function Gd(l){const a=(l?Vi.value.find(s=>s.image_id===l):null)??Ja.value;!a||!qt(a)||(tl.value=a.image_id,Kd())}function Bm(){yt.value.length&&(Kn.value="workflowCompare",il("imageViewer"),zi(),zl.value=!0)}function zd(l){var a;l&&Dd(l),(a=Wt.value)!=null&&a.imageUrl&&(Kn.value="quickProfile",il("imageViewer"),zi(),zl.value=!0)}function Ss(){zl.value=!1,bn.value=!1}function zi(){ua.value=1,Fa.value={x:0,y:0}}function qm(l){ua.value=zg(Number((ua.value+l).toFixed(2)),.5,4),ua.value<=1&&(Fa.value={x:0,y:0})}function Tm(l){qm(l.deltaY<0?.12:-.12)}function Lm(){if(ua.value>1){zi();return}ua.value=2.2,Fa.value={x:0,y:0}}function Om(l){ua.value<=1||(bn.value=!0,yn.value={pointerId:l.pointerId,x:l.clientX,y:l.clientY,offsetX:Fa.value.x,offsetY:Fa.value.y},l.currentTarget instanceof HTMLElement&&l.currentTarget.setPointerCapture(l.pointerId))}function Dm(l){!bn.value||l.pointerId!==yn.value.pointerId||(Fa.value={x:yn.value.offsetX+l.clientX-yn.value.x,y:yn.value.offsetY+l.clientY-yn.value.y})}function xs(l){!bn.value||l.pointerId!==yn.value.pointerId||(bn.value=!1,l.currentTarget instanceof HTMLElement&&l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId))}function Hd(){il("search"),Dr.value=!0,jn.value=!0,_l.value=0}function Qd(l){if(!Pn.value.length)return;const a=Pn.value.length;_l.value=(_l.value+l+a)%a}function Vm(){const l=Pn.value[_l.value];l&&_d(l)}function lo(){il("personaQuestionnaire"),ho.value="",gi.value=!0}function Jd(){il("externalProfileImport"),yi.value=!0,Gt(()=>{var l;(l=document.querySelector("[data-profile-import-input]"))==null||l.focus()})}function Um(){il("quickProfileDetail"),bi.value=!0}function Fm(l){be.value=l,il("materialDetail"),fi.value=!0}async function Wm(l){if(l.enabled){if(l.actionKey==="personaQuestionnaire"){lo();return}if(l.actionKey==="workflowCompare"){Bm();return}if(l.actionKey==="externalProfileImport"){Jd();return}if(l.actionKey==="workflowPersonaSplit"){await Qm();return}if(l.actionKey==="workflowSaveVersion"){await rg();return}if(l.actionKey==="workflowCreateBranchFromNode"){await Hm();return}if(l.actionKey==="workflowNodeGenerate"){l.id==="hires"&&Te.value!=="hires-fix"&&(Dl("hires-fix"),await Gt()),await Ms();return}if(l.actionKey==="workflowNodeRetry"){await Ms({retry:!0});return}if(l.actionKey==="workflowNodeComplete"){await Jm();return}if(l.actionKey==="workflowNodeReview"){await Zm();return}if(l.actionKey==="workflowReviewAdopt"){await ng();return}if(l.actionKey==="workflowPromptPlanSave"){await Ym();return}if(l.actionKey==="workflowPromptPlanNext"){Dl("prompt-plan");return}if(l.actionKey==="workflowMaterialBindSave"){await Xm();return}if(l.actionKey==="workflowArchiveFinal"){await jm();return}l.nav&&l.module&&wt(l.nav,l.module)}}async function jm(){const l=De.value;if(!l||Ke.value)return;const a=Ct("入库");if(a){Ie.value=a;return}if(!l.workflowId){Ie.value="请先生成角色档案并创建后端工作流,再执行入库。";return}const s=l.workflowId,v=ml("archive",l);if(!v){Ie.value="当前工作流缺少后端入库节点 final_pack。";return}const y=An(s).find(V=>V.node_id===v);if(y&&["completed","selected"].includes(nt(y.status
|
|||
|
|
`)}}function Hi(l,a,s,v,y){return{id:l,title:a,prompt:s,negative:v,weight_suggestions:[{label:"identity",value:1.25,reason:"keep character identity stable"},{label:"style",value:.85,reason:"avoid overfitting style over identity"}],inherits:y,status:"ready"}}function ig(l){const a=Ll.value,s=u.map((v,y)=>{const _=a.find(I=>I.category===v.category);return{id:`rule_${v.category}_${y+1}`,category:v.category,material_id:ys(_==null?void 0:_.id),material_label:(_==null?void 0:_.label)??"",material_group:(_==null?void 0:_.group)??(_==null?void 0:_.category)??"",material_prompt:(_==null?void 0:_.prompt)??"",material_colors:(_==null?void 0:_.colors)??[],bind_to_stages:Xd(v.category),inheritance_rule:_?`${v.category} only affects explicitly bound downstream stages.`:"do not use reference unless user explicitly selects one",reference_strength:_?Zd(v.category):"弱",required:!!(_&&["风格","服装"].includes(v.category)),status:_?"ready":"pending"}});return{profile_id:l.profileId,profile_name:l.name,selected_material_ids:hs(),rules:s}}function Xd(l){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:"修复入库"}]}[l]??[{stage_id:"body-sheet",stage_title:"全身与设定图"}]}function Zd(l){return l==="风格"||l==="服装"?"强":l==="构图"?"中":"弱"}async function rg(){var s;const l=De.value;if(!l||Wn.value)return;const a=Ct("保存快照");if(a){vn.value=a;return}if(!l.workflowId){vn.value="请先生成档案并创建后端工作流,再保存快照。";return}Wn.value=!0,vn.value="";try{const v=await $e(q.workflowHistory(l.workflowId),{action:"save_version",title:`${l.name} / ${((s=He.value)==null?void 0:s.title)??"工作流快照"}`,node_id:ml(Te.value,l),include_nodes:!0,metadata:{source:"standalone_web",ui_node_id:Te.value,profile_id:l.profileId,profile_name:l.name,profile_status:l.status}});ko.value=v.created_at}catch(v){vn.value=`保存快照失败:${Be(v)}`}finally{Wn.value=!1}}function ml(l,a){if(!a.workflowId)return;const v=An(a.workflowId).find(_=>_a(_)===l);if(v)return v.node_id;const y=a.workflowNodeIds??[];if(l!=="brief-import"&&l==="persona-split")return y[0]}function An(l){var v;const a=Xe.value[l]??[],s=(v=dt.value[l])==null?void 0:v.current_branch;return s?a.filter(y=>y.branch_name===s):a}function ec(l){const a=[...yt.value,...Ja.value?[Ja.value]:[],...l?ol.value[l]??[]:[]];return Array.from(new Set(a.filter(gl).map(s=>s.image_id)))}function gl(l){if(l.image_id.startsWith("mock-")||l.image_uri.startsWith("mock://"))return!1;const a="metadata"in l&&l.metadata&&typeof l.metadata=="object"?l.metadata:{},s=a.mock===!0||a.mock===1||a.mock==="true",v=Object.prototype.hasOwnProperty.call(a,"provider_error")&&a.provider_error!=null,y=a.fallback_used===!0||a.degraded===!0;return!s&&!v&&!y}async function sg(){if(!ed.value||yo.value)return;const l=Ct("生成档案");if(l){ho.value=l;return}Vu.value+=1;const a=vg(Oe.value,Vu.value);yo.value=!0,ho.value="";try{const s=await $e(q.quickProfileDraft,ug(a,Oe.value,La.value)),v={...a,name:s.profile_preview.name||a.name,style:s.profile_preview.style_prompt||a.style,negative:s.profile_preview.negative_prompt||a.negative},y=await $e(q.quickProfileDraftSave,dg(v,Oe.value,La.value,s)),I={...fg(y,v),status:"文本档案已保存"};cn.value=[I,...cn.value.filter(V=>V.id!==I.id)],Oa.value=[y.profile,...Oa.value.filter(V=>V.profile_id!==y.profile.profile_id)],Ot.value={...Ot.value,[y.profile.profile_id]:y.workflow?[y.workflow]:[]},Gi(I),gt.value="quickProfile",Nt("personaQuestionnaire"),Gt(()
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${Qe}" height="${Tt}" viewBox="0 0 ${Qe} ${Tt}" preserveAspectRatio="xMidYMid meet">
|
|||
|
|
<defs>
|
|||
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|||
|
|
<stop offset="0%" stop-color="${_}" />
|
|||
|
|
<stop offset="58%" stop-color="${I}" />
|
|||
|
|
<stop offset="100%" stop-color="#111827" />
|
|||
|
|
</linearGradient>
|
|||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
|||
|
|
<stop offset="0%" stop-color="${V}" stop-opacity="0.82" />
|
|||
|
|
<stop offset="100%" stop-color="${V}" stop-opacity="0" />
|
|||
|
|
</radialGradient>
|
|||
|
|
<pattern id="grid" width="${Xl}" height="${Xl}" patternUnits="userSpaceOnUse">
|
|||
|
|
<path d="M${Xl} 0H0V${Xl}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
<rect width="${Qe}" height="${Tt}" fill="url(#bg)" />
|
|||
|
|
<rect width="${Qe}" height="${Tt}" fill="url(#grid)" />
|
|||
|
|
<circle cx="${tb}" cy="${lb}" r="${ab}" fill="url(#halo)" />
|
|||
|
|
<circle cx="${nb}" cy="${ob}" r="${ib}" fill="#ffffff" opacity="0.11" />
|
|||
|
|
<rect x="${Pe}" y="${Pe}" width="${Yi}" height="${bc}" rx="${Yl}" fill="#ffffff" opacity="0.14" />
|
|||
|
|
<rect x="${At}" y="${At}" width="${Zg}" height="${eb}" rx="${Math.round(Yl*.72)}" fill="#0f172a" opacity="0.24" />
|
|||
|
|
<text x="${At+Math.round(M*.035)}" y="${Ve}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Ca}" font-weight="700">IMAGESTUDIO TEST ${ne}</text>
|
|||
|
|
<text x="${At+Math.round(M*.035)}" y="${Pl}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Re}" font-weight="800">${pe}</text>
|
|||
|
|
<text x="${At+Math.round(M*.035)}" y="${C}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${sl}">${we}</text>
|
|||
|
|
<text x="${rb}" y="${Ve+Math.round(M*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${It}" font-weight="900">${ne}</text>
|
|||
|
|
<text x="${Qe-Pe}" y="${Tt-Math.round(Pe*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(M*.027))}" font-weight="800">${sb}</text>
|
|||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(ub)}`}function jg(l){const a=l.match(/(\d+)\s*x\s*(\d+)/i);if(!a)return[4,3];const s=Number(a[1]),v=Number(a[2]);if(!Number.isFinite(s)||!Number.isFinite(v)||s<=0||v<=0)return[4,3];const y=Kg(s,v);return[Math.round(s/y),Math.round(v/y)]}function Kg(l,a){let s=Math.abs(Math.round(l)),v=Math.abs(Math.round(a));for(;v;){const y=s%v;s=v,v=y}return s||1}function mc(l){return l.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]??a)}function Bt(l){return"title"in l&&l.title?l.title:l.node_id||l.workflow_id||l.profile_id||ul(l.image_id)}function qt(l){return l.thumbnail_url||l.image_url||""}function Gg(l){if(l.status==="confirmed_unsupported")return!1;if(l.dialect==="openai_images"||l.dialect==="comfyui")return!0;const a=l.capabilities||{};return!!(a.text_to_image||a.image_generation||a.workflow_graph||Object.keys(a).some(s=>["text_to_image","image_generation","workflow_graph"].includes(s)))}function zg(l,a,s){return Math.max(a,Math.min(s,l))}function Hg(){const l=localStorage.getItem(Il.theme);(l==="light"||l==="dark")&&(Gl.value=l),Va.value=localStorage.getItem(Il.primary)||Va.value,Ua.value=localStorage.getItem(Il.accent)||Ua.value;const a=localStorage.getItem(Il.navigationPinned);ql.value=a===null||a==="true",Gn.value=ql.value,$l.value=gc(localStorage.getItem(Il.readNotifications)),zn.value=gc(localStorage.getItem(Il.dismissedNotifications))}function Qg(){localStorage.setItem(Il.theme,Gl.value),localStorage.setItem(Il.primary,Va.value),localStorage.setItem(Il.accent,Ua.value),localStorage.setItem(Il.navigationPinned,String(ql.value)),localStorage.setItem(Il.readNotifications,JSON.stringify($l.value)),localStorage.setItem(Il.dismissedNotifications,JSON.stringify(zn.value))}function gc(l){if(!l)return[];try{const a=JSON.parse(l);return Array.isArray(a)?a.filter(s=>typeof s=="string"):[]}catch{return[]}}function $a(l,a){const s=Ts(l);return s?`rgba(${s.r}, ${s.g}, ${s.b}, ${a})`:`rgba(118, 104, 232, ${a})`}function Bs(l,a,s){const v=Ts(l),y=Ts(a);if(!v||!y)return l;const _=Math.min(1,Math.max(0,s));return`#${qs(v.r*(1-_)+y.r*_)}${qs(v.g*(1-_)+y.g*_)}${qs(v.b*(1-_)+y.b*_)}`}function qs(l){return Math.round(l).toString(16).padStart(2,"0")}function Ts(l){const a=l.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 jt(l,a){const s=l==null?void 0:l[a];return typeof s=="string"?s:""}function Jg(l){return!Ji(l)||typeof l.task_id!="string"?null:{task_id:l.task_id,task_type:typeof l.task_type=="string"?l.task_type:"generation",status:typeof l.status=="string"?l.status:"created",progress:typeof l.progress=="number"?l.progress:0,created_at:typeof l.created_at=="string"?l.created_at:"",updated_at:typeof l.updated_at=="string"?l.updated_at:"",profile_id:typeof l.profile_id=="string"?l.profile_id:null,workflow_id:typeof l.workflow_id=="string"?l.workflow_id:null,node_id:typeof l.node_id=="string"?l.node_id:null,model_route:typeof l.model_route=="string"?l.model_route:null,idempotency_key:typeof l.idempotency_key=="string"?l.idempotency_key:null,request:Ji(l.request)?l.request:void 0,result:Ji(l.result)?l.result:void 0,metadata:Ji(l.metadata)?l.metadata:void 0,error_message:typeof l.error_message=="string"?l.error_message:null}}function Yg(l){return!!l}function Ji(l){return!!(l&&typeof l=="object"&&!Array.isArray(l))}function Xg(l){return Sa(l,a=>a.id)}function Be(l){return md(l)}return(l,a)=>{var s,v,y,_,I,V,ne,pe,we,he,ke,ot,Qe,Tt;return c(),p("main",{class:oe(["navigation-shell",{"rail-collapsed":!Gn.value}]),"data-theme":Gl.value,style:Mt(Av.value)},[Ue(lh,{items:qe(jw),"active-key":vt.value,"plugin-version":((s=k.value)==null?void 0:s.plugin_version)??"v3",expanded:Gn.value,pinned:ql.value,onSelect:am,onReveal:gs,onScheduleHide:a[0]||(a[0]=M=>Wi()),onTogglePinned:om},null,8,["items","active-key","plugin-version","expanded","pinned"]),t("section",BP,[t("header",qP,[t("div",TP,[t("span",null,d(Dp.value.label),1),t("h
|
|||
|
|
身份:近未来港区巡查员\r
|
|||
|
|
性格:冷静、可靠、行动快\r
|
|||
|
|
外观:黑色短发,青绿色眼睛\r
|
|||
|
|
服装:轻机能外套、短靴、发光臂章\r
|
|||
|
|
避雷:低质量、结构错误`},null,512),[[Ne,hi.value]])]),t("aside",Q3,[t("header",null,[t("div",null,[a[162]||(a[162]=t("span",null,"识别预览",-1)),t("strong",null,d(Op.value)+" / "+d(Jr.value.length),1)]),t("em",null,d(Qn.value?`${Qn.value.length} 字`:"待粘贴"),1)]),t("dl",null,[(c(!0),p(G,null,Y(Jr.value,C=>(c(),p("div",{key:C.key,class:oe({pending:Qn.value&&!C.recognized})},[t("dt",null,[it(d(C.label)+" ",1),t("span",null,d(C.recognized?"已识别":"待整理"),1)]),t("dd",null,d(C.value||"粘贴文本后显示"),1)],2))),128))])])]),t("footer",null,[t("span",null,d(Qn.value?"识别结果会先填入问卷,仍可在问卷里继续微调。":"等待外部角色卡文本。"),1),t("button",{type:"button",onClick:a[33]||(a[33]=C=>Nt("externalProfileImport"))},"取消"),t("button",{type:"button",disabled:!Qn.value,onClick:bg}," 识别并填入问卷 ",8,J3)])])])):ee("",!0)]),_:1}),Ue(Jt,{name:"viewer-fade"},{default:Pt(()=>[gi.value?(c(),p("div",Y3,[t("section",X3,[t("header",null,[a[163]||(a[163]=t("div",null,[t("span",null,"快速角色"),t("strong",null,"创建角色档案问卷")],-1)),t("button",{type:"button",title:"关闭",onClick:a[34]||(a[34]=C=>Nt("personaQuestionnaire"))},"×")]),t("div",Z3,[t("label",null,[a[164]||(a[164]=t("span",null,"角色核心",-1)),me(t("textarea",{"onUpdate:modelValue":a[35]||(a[35]=C=>Oe.value.roleCore=C),rows:"3",placeholder:"角色名、身份、核心定位,可以只写一句。"},null,512),[[Ne,Oe.value.roleCore]])]),t("label",null,[a[165]||(a[165]=t("span",null,"性格关键词",-1)),me(t("textarea",{"onUpdate:modelValue":a[36]||(a[36]=C=>Oe.value.personality=C),rows:"3",placeholder:"外显性格、内在矛盾、行动方式。"},null,512),[[Ne,Oe.value.personality]])]),t("label",null,[a[166]||(a[166]=t("span",null,"外观特征",-1)),me(t("textarea",{"onUpdate:modelValue":a[37]||(a[37]=C=>Oe.value.appearance=C),rows:"3",placeholder:"发色、发型、眼睛、五官和视觉记忆点。"},null,512),[[Ne,Oe.value.appearance]])]),t("label",null,[a[167]||(a[167]=t("span",null,"服装与配饰",-1)),me(t("textarea",{"onUpdate:modelValue":a[38]||(a[38]=C=>Oe.value.outfit=C),rows:"3",placeholder:"服装风格、配饰、武器或随身物。"},null,512),[[Ne,Oe.value.outfit]])]),t("label",null,[a[168]||(a[168]=t("span",null,"常用场景",-1)),me(t("textarea",{"onUpdate:modelValue":a[39]||(a[39]=C=>Oe.value.scene=C),rows:"3",placeholder:"常驻地点、画面背景、适合出现的环境。"},null,512),[[Ne,Oe.value.scene]])]),t("label",null,[a[169]||(a[169]=t("span",null,"避雷内容",-1)),me(t("textarea",{"onUpdate:modelValue":a[40]||(a[40]=C=>Oe.value.avoid=C),rows:"3",placeholder:"不想要的设计方向、负面词和禁用元素。"},null,512),[[Ne,Oe.value.avoid]])]),La.value==="advanced"?(c(),p(G,{key:0},[t("label",null,[a[170]||(a[170]=t("span",null,"世界观",-1)),me(t("textarea",{"onUpdate:modelValue":a[41]||(a[41]=C=>Oe.value.worldview=C),rows:"3",placeholder:"现代、赛博、奇幻、末世、校园、古风、星际等。"},null,512),[[Ne,Oe.value.worldview]])]),t("label",null,[a[171]||(a[171]=t("span",null,"背景经历",-1)),me(t("textarea",{"onUpdate:modelValue":a[42]||(a[42]=C=>Oe.value.background=C),rows:"3",placeholder:"所属组织、过往经历、当前处境。"},null,512),[[Ne,Oe.value.background]])]),t("label",null,[a[172]||(a[172]=t("span",null,"身高 / 身材",-1)),me(t("textarea",{"onUpdate:modelValue":a[43]||(a[43]=C=>Oe.value.heightBuild=C),rows:"3",placeholder:"身高范围、体型、姿态气质、肤色。"},null,512),[[Ne,Oe.value.heightBuild]])]),t("label",null,[a[173]||(a[173]=t("span",null,"身体记忆点",-1)),me(t("textarea",{"onUpdate:modelValue":a[44]||(a[44]=C=>Oe.value.bodyFeatures=C),rows:"3",placeholder:"伤疤、痣、纹身、义体、异色瞳等。"},null,512),[[Ne,Oe.value.bodyFeatures]])]),t("label",null,[a[174]||(a[174]=t("span",null,"喜好",-1)),me(t("textarea",{"onUpdate:modelValue":a[45]||(a[45]=C=>Oe.value.likes=C),rows:"3",placeholder:"颜色、食物、饮品、兴趣、常去地点。"},null,5
|