From 9e267fe6bd6db86afc72b4fa36c501ed3da265cb Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 15:15:00 +0800 Subject: [PATCH] feat: add audit log filters --- backend/routes/log_routes.py | 7 ++++++- backend/services/log_service.py | 24 ++++++++++++++++++++-- frontend/standalone-web/src/App.vue | 31 +++++++++++++++++++++++++++++ tests/test_log_routes.py | 5 +++++ web/assets/index-BconNihN.js | 17 ---------------- web/assets/index-Dp0aKiRk.css | 1 - web/assets/index-DvLE7l5o.js | 17 ++++++++++++++++ web/assets/index-xqawizKu.css | 1 + web/index.html | 4 ++-- 9 files changed, 84 insertions(+), 23 deletions(-) delete mode 100644 web/assets/index-BconNihN.js delete mode 100644 web/assets/index-Dp0aKiRk.css create mode 100644 web/assets/index-DvLE7l5o.js create mode 100644 web/assets/index-xqawizKu.css diff --git a/backend/routes/log_routes.py b/backend/routes/log_routes.py index b675369..3f6d763 100644 --- a/backend/routes/log_routes.py +++ b/backend/routes/log_routes.py @@ -43,7 +43,12 @@ def get_audit_logs(ctx: RequestContext, query: dict[str, Any] | None = None, ser def action() -> list[dict[str, Any]]: require_config_manager(ctx) - return log_service.audit_logs(_int_or_default(params.get("limit"), 50)) + return log_service.audit_logs( + _int_or_default(params.get("limit"), 50), + action=_optional_str(params.get("action")), + target_type=_optional_str(params.get("target_type")), + actor_id=_optional_str(params.get("actor_id")), + ) return handle_request(ctx, action) diff --git a/backend/services/log_service.py b/backend/services/log_service.py index d2be63a..125554b 100644 --- a/backend/services/log_service.py +++ b/backend/services/log_service.py @@ -159,8 +159,27 @@ class LogService: ) return sorted(errors, key=lambda item: item["created_at"], reverse=True)[: _limit(limit)] - def audit_logs(self, limit: int = 50) -> list[dict[str, Any]]: + def audit_logs( + self, + limit: int = 50, + *, + action: str | None = None, + target_type: str | None = None, + actor_id: str | None = None, + ) -> list[dict[str, Any]]: placeholder = self.database._placeholder + where: list[str] = [] + params: list[Any] = [] + if action: + where.append(f"action = {placeholder}") + params.append(action) + if target_type: + where.append(f"target_type = {placeholder}") + params.append(target_type) + if actor_id: + where.append(f"actor_id = {placeholder}") + params.append(actor_id) + where_sql = f"WHERE {' AND '.join(where)}" if where else "" conn = self.database.connect() try: rows = conn.execute( @@ -168,10 +187,11 @@ class LogService: SELECT audit_id, request_id, actor_type, actor_id, action, target_type, target_id, before_snapshot, after_snapshot, metadata_json, created_at FROM audit_logs + {where_sql} ORDER BY created_at DESC LIMIT {placeholder} """, - (_limit(limit),), + tuple(params + [_limit(limit)]), ).fetchall() finally: conn.close() diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 6f28d00..abf46f7 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -192,6 +192,8 @@ const text = { workflowLogs: "\u5de5\u4f5c\u6d41", integrationLogs: "\u96c6\u6210", auditLogs: "\u5ba1\u8ba1", + targetType: "TargetType", + actor: "\u64cd\u4f5c\u4eba", emptyGenerationLogs: "\u6682\u65e0\u751f\u6210\u65e5\u5fd7", emptyErrors: "\u6682\u65e0\u9519\u8bef", emptyWorkflowLogs: "\u6682\u65e0\u5de5\u4f5c\u6d41\u65e5\u5fd7", @@ -314,6 +316,11 @@ const jobFilters = ref({ profile_id: "", workflow_id: "", }) +const auditFilters = ref({ + action: "", + target_type: "", + actor_id: "", +}) const materialDraft = ref({ material_id: "", display_name: "", @@ -460,6 +467,15 @@ async function loadLogs() { } } +async function loadAuditLogs() { + logs.value.audit = await getJson(endpoints.auditLogs, { + action: auditFilters.value.action || undefined, + target_type: auditFilters.value.target_type || undefined, + actor_id: auditFilters.value.actor_id || undefined, + limit: 20, + }) +} + function settledValue(result: PromiseSettledResult): T[] { return result.status === "fulfilled" ? result.value : [] } @@ -2338,6 +2354,21 @@ function storageRootBytes(uriPrefix: string) {

{{ text.auditLogs }}

{{ logs.audit.length }} +
+ + + + +
  • diff --git a/tests/test_log_routes.py b/tests/test_log_routes.py index 8a8d779..25f9897 100644 --- a/tests/test_log_routes.py +++ b/tests/test_log_routes.py @@ -114,6 +114,11 @@ class LogRoutesTests(unittest.TestCase): self.assertTrue(audit["ok"]) self.assertTrue(any(item["action"] == "create_profile" for item in audit["data"])) + filtered_audit = get_audit_logs(self.ctx, {"action": "create_profile", "limit": 10}, self.log_service) + self.assertTrue(filtered_audit["ok"]) + self.assertTrue(filtered_audit["data"]) + self.assertTrue(all(item["action"] == "create_profile" for item in filtered_audit["data"])) + def test_audit_logs_require_config_permission(self): read_only = RequestContext.from_astrbot(username="viewer", user_id="viewer_001") diff --git a/web/assets/index-BconNihN.js b/web/assets/index-BconNihN.js deleted file mode 100644 index 715c037..0000000 --- a/web/assets/index-BconNihN.js +++ /dev/null @@ -1,17 +0,0 @@ -var Gi=Object.defineProperty;var zi=(e,t,n)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>zi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},jt=[],ut=()=>{},Wo=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),De=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yi=Object.prototype.hasOwnProperty,re=(e,t)=>Yi.call(e,t),W=Array.isArray,Wt=e=>pn(e)==="[object Map]",Wn=e=>pn(e)==="[object Set]",co=e=>pn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ct=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ho=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ko=Object.prototype.toString,pn=e=>Ko.call(e),Qi=e=>pn(e).slice(8,-1),qo=e=>pn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Xi=/-\w/g,Xe=Hn(e=>e.replace(Xi,t=>t.slice(1).toUpperCase())),Zi=/\B([A-Z])/g,Vt=Hn(e=>e.replace(Zi,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),at=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fo;const qn=()=>fo||(fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(tr);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ko||!J(e.toString))?Yo(e)?a(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Yo(t)?Qo(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[rl(l,i)+" =>"]=s,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ct(t)?rl(t):ce(t)&&!W(t)&&!qo(t)?String(t):t,rl=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pe;class ar{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&&Pe&&(Pe.active?(this.parent=Pe,this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Pe===this)Pe=this.prevScope;else{let t=Pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function ts(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ns(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),cr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function ml(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===an)||(e.globalVersion=an,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ge,l=Ze;ge=e,Ze=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||at(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,Ze=l,ns(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const os=[];function dt(){os.push(Ze),Ze=!1}function ft(){const e=os.pop();Ze=e===void 0?!0:e}function po(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let an=0;class dr{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ul{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(!ge||!Ze||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new dr(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,ss(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=l)}return n}trigger(t){this.version++,an++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$l()}}}function ss(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)ss(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,Ut=Symbol(""),bl=Symbol(""),un=Symbol("");function Te(e,t,n){if(Ze&&ge){let l=yl.get(e);l||yl.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Ul),s.map=l,s.key=n),s.track()}}function mt(e,t,n,l,s,i){const u=yl.get(e);if(!u){an++;return}const d=h=>{h&&h.trigger()};if(Ml(),t==="clear")u.forEach(d);else{const h=W(e),m=h&&Il(n);if(h&&n==="length"){const g=Number(l);u.forEach((b,O)=>{(O==="length"||O===un||!ct(O)&&O>=g)&&d(b)})}else switch((n!==void 0||u.has(void 0))&&d(u.get(n)),m&&d(u.get(un)),t){case"add":h?m&&d(u.get("length")):(d(u.get(Ut)),Wt(e)&&d(u.get(bl)));break;case"delete":h||(d(u.get(Ut)),Wt(e)&&d(u.get(bl)));break;case"set":Wt(e)&&d(u.get(Ut));break}}$l()}function Ft(e){const t=ie(e);return t===e?t:(Te(t,"iterate",un),ze(e)?t:t.map(et))}function Gn(e){return Te(e=ie(e),"iterate",un),e}function it(e,t){return wt(e)?Jt(Bt(e)?et(t):t):et(t)}const fr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>it(this,e))},concat(...e){return Ft(this).concat(...e.map(t=>W(t)?Ft(t):t))},entries(){return ul(this,"entries",e=>(e[1]=it(this,e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,n=>n.map(l=>it(this,l)),arguments)},find(e,t){return vt(this,"find",e,t,n=>it(this,n),arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,n=>it(this,n),arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Ft(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return ho(this,"reduce",e,t)},reduceRight(e,...t){return ho(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Ft(this).toReversed()},toSorted(e){return Ft(this).toSorted(e)},toSpliced(...e){return Ft(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return ul(this,"values",e=>it(this,e))}};function ul(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!ze(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const pr=Array.prototype;function vt(e,t,n,l,s,i){const u=Gn(e),d=u!==e&&!ze(e),h=u[t];if(h!==pr[t]){const b=h.apply(e,i);return d?et(b):b}let m=n;u!==e&&(d?m=function(b,O){return n.call(this,it(e,b),O,e)}:n.length>2&&(m=function(b,O){return n.call(this,b,O,e)}));const g=h.call(u,m,l);return d&&s?s(g):g}function ho(e,t,n,l){const s=Gn(e),i=s!==e&&!ze(e);let u=n,d=!1;s!==e&&(i?(d=l.length===0,u=function(m,g,b){return d&&(d=!1,m=it(e,m)),n.call(this,m,it(e,g),b,e)}):n.length>3&&(u=function(m,g,b){return n.call(this,m,g,b,e)}));const h=s[t](u,...l);return d?it(e,h):h}function cl(e,t,n){const l=ie(e);Te(l,"iterate",un);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=ie(n[0]),l[t](...n)):s}function Yt(e,t,n=[]){dt(),Ml();const l=ie(e)[t].apply(e,n);return $l(),ft(),l}const hr=El("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function vr(e){ct(e)||(e=String(e));const t=ie(this);return Te(t,"has",e),t.hasOwnProperty(e)}class rs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?Sr:ds:i?cs:us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const u=W(t);if(!s){let h;if(u&&(h=fr[n]))return h;if(n==="hasOwnProperty")return vr}const d=Reflect.get(t,n,Ee(t)?t:l);if((ct(n)?is.has(n):hr(n))||(s||Te(t,"get",n),i))return d;if(Ee(d)){const h=u&&Il(n)?d:d.value;return s&&ce(h)?kl(h):h}return ce(d)?s?kl(d):Vl(d):d}}class as extends rs{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const u=W(t)&&Il(n);if(!this._isShallow){const m=wt(i);if(!ze(l)&&!wt(l)&&(i=ie(i),l=ie(l)),!u&&Ee(i)&&!Ee(l))return m||(i.value=l),!0}const d=u?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function br(e,t,n){return function(...l){const s=this.__v_raw,i=ie(s),u=Wt(i),d=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,m=s[e](...l),g=n?wl:t?Jt:et;return!t&&Te(i,"iterate",h?bl:Ut),De(Object.create(m),{next(){const{value:b,done:O}=m.next();return O?{value:b,done:O}:{value:d?[g(b[0]),g(b[1])]:g(b),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wr(e,t){const n={get(s){const i=this.__v_raw,u=ie(i),d=ie(s);e||(at(s,d)&&Te(u,"get",s),Te(u,"get",d));const{has:h}=Pn(u),m=t?wl:e?Jt:et;if(h.call(u,s))return m(i.get(s));if(h.call(u,d))return m(i.get(d));i!==u&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Te(ie(s),"iterate",Ut),s.size},has(s){const i=this.__v_raw,u=ie(i),d=ie(s);return e||(at(s,d)&&Te(u,"has",s),Te(u,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const u=this,d=u.__v_raw,h=ie(d),m=t?wl:e?Jt:et;return!e&&Te(h,"iterate",Ut),d.forEach((g,b)=>s.call(i,m(g),m(b),u))}};return De(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(s){const i=ie(this),u=Pn(i),d=ie(s),h=!t&&!ze(s)&&!wt(s)?d:s;return u.has.call(i,h)||at(s,h)&&u.has.call(i,s)||at(d,h)&&u.has.call(i,d)||(i.add(h),mt(i,"add",h,h)),this},set(s,i){!t&&!ze(i)&&!wt(i)&&(i=ie(i));const u=ie(this),{has:d,get:h}=Pn(u);let m=d.call(u,s);m||(s=ie(s),m=d.call(u,s));const g=h.call(u,s);return u.set(s,i),m?at(i,g)&&mt(u,"set",s,i):mt(u,"add",s,i),this},delete(s){const i=ie(this),{has:u,get:d}=Pn(i);let h=u.call(i,s);h||(s=ie(s),h=u.call(i,s)),d&&d.call(i,s);const m=i.delete(s);return h&&mt(i,"delete",s,void 0),m},clear(){const s=ie(this),i=s.size!==0,u=s.clear();return i&&mt(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=br(s,e,t)}),n}function Bl(e,t){const n=wr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(re(n,s)&&s in l?n:l,s,i)}const kr={get:Bl(!1,!1)},Cr={get:Bl(!1,!0)},xr={get:Bl(!0,!1)};const us=new WeakMap,cs=new WeakMap,ds=new WeakMap,Sr=new WeakMap;function Pr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return wt(e)?e:Ll(e,!1,_r,kr,us)}function Dr(e){return Ll(e,!1,yr,Cr,cs)}function kl(e){return Ll(e,!0,mr,xr,ds)}function Ll(e,t,n,l,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const u=Pr(Qi(e));if(u===0)return e;const d=new Proxy(e,u===2?l:n);return s.set(e,d),d}function Bt(e){return wt(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Tr(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Go(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,Jt=e=>ce(e)?kl(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function N(e){return Er(e,!1)}function Er(e,t){return Ee(e)?e:new Or(e,t)}class Or{constructor(t,n){this.dep=new Ul,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||ze(t)||wt(t);t=l?t:ie(t),at(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Ir(e){return Ee(e)?e.value:e}const Ar={get:(e,t,n)=>t==="__v_raw"?e:Ir(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ee(s)&&!Ee(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function fs(e){return Bt(e)?e:new Proxy(e,Ar)}class Mr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ul(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=an-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return es(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 $r(e,t,n=!1){let l,s;return J(e)?l=e:(l=e.get,s=e.set),new Mr(l,s,n)}const Tn={},An=new WeakMap;let $t;function Rr(e,t=!1,n=$t){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Ur(e,t,n=pe){const{immediate:l,deep:s,once:i,scheduler:u,augmentJob:d,call:h}=n,m=V=>s?V:ze(V)||s===!1||s===0?yt(V,1):yt(V);let g,b,O,$,Z=!1,j=!1;if(Ee(e)?(b=()=>e.value,Z=ze(e)):Bt(e)?(b=()=>m(e),Z=!0):W(e)?(j=!0,Z=e.some(V=>Bt(V)||ze(V)),b=()=>e.map(V=>{if(Ee(V))return V.value;if(Bt(V))return m(V);if(J(V))return h?h(V,2):V()})):J(e)?t?b=h?()=>h(e,2):e:b=()=>{if(O){dt();try{O()}finally{ft()}}const V=$t;$t=g;try{return h?h(e,3,[$]):e($)}finally{$t=V}}:b=ut,t&&s){const V=b,fe=s===!0?1/0:s;b=()=>yt(V(),fe)}const he=ur(),de=()=>{g.stop(),he&&he.active&&Ol(he.effects,g)};if(i&&t){const V=t;t=(...fe)=>{const Oe=V(...fe);return de(),Oe}}let H=j?new Array(e.length).fill(Tn):Tn;const ae=V=>{if(!(!(g.flags&1)||!g.dirty&&!V))if(t){const fe=g.run();if(V||s||Z||(j?fe.some((Oe,Ie)=>at(Oe,H[Ie])):at(fe,H))){O&&O();const Oe=$t;$t=g;try{const Ie=[fe,H===Tn?void 0:j&&H[0]===Tn?[]:H,$];H=fe,h?h(t,3,Ie):t(...Ie)}finally{$t=Oe}}}else g.run()};return d&&d(ae),g=new Xo(b),g.scheduler=u?()=>u(ae,!1):ae,$=V=>Rr(V,!1,g),O=g.onStop=()=>{const V=An.get(g);if(V){if(h)h(V,4);else for(const fe of V)fe();An.delete(g)}},t?l?ae(!0):H=g.run():u?u(ae.bind(null,!0),!0):g.run(),de.pause=g.pause.bind(g),de.resume=g.resume.bind(g),de.stop=de,de}function yt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ee(e))yt(e.value,t,n);else if(W(e))for(let l=0;l{yt(l,t,n)});else if(qo(e)){for(const l in e)yt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&yt(e[l],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function vn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function tt(e,t,n,l){if(J(e)){const s=vn(e,t,n,l);return s&&Ho(s)&&s.catch(i=>{zn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i>>1,s=Ue[l],i=cn(s);i=cn(n)?Ue.push(e):Ue.splice(Vr(t),0,e),e.flags|=1,vs()}}function vs(){Mn||(Mn=ps.then(_s))}function Lr(e){W(e)?Ht.push(...e):Tt&&e.id===-1?Tt.splice(Nt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),vs()}function vo(e,t,n=st+1){for(;ncn(n)-cn(l));if(Ht.length=0,Tt){Tt.push(...t);return}for(Tt=t,Nt=0;Nte.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(st=0;st{l._d&&Po(-1);const i=$n(t);let u;try{u=e(...s)}finally{$n(i),l._d&&Po(1)}return u};return l._n=!0,l._c=!0,l._d=!0,l}function M(e,t){if(Ge===null)return e;const n=Zn(Ge),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&J(t)?t.call(l&&l.proxy):t}}const jr=Symbol.for("v-scx"),Wr=()=>On(jr);function dl(e,t,n){return ys(e,t,n)}function ys(e,t,n=pe){const{immediate:l,deep:s,flush:i,once:u}=n,d=De({},n),h=t&&l||!t&&i!=="post";let m;if(fn){if(i==="sync"){const $=Wr();m=$.__watcherHandles||($.__watcherHandles=[])}else if(!h){const $=()=>{};return $.stop=ut,$.resume=ut,$.pause=ut,$}}const g=Be;d.call=($,Z,j)=>tt($,g,Z,j);let b=!1;i==="post"?d.scheduler=$=>{Ne($,g&&g.suspense)}:i!=="sync"&&(b=!0,d.scheduler=($,Z)=>{Z?$():Nl($)}),d.augmentJob=$=>{t&&($.flags|=4),b&&($.flags|=2,g&&($.id=g.uid,$.i=g))};const O=Ur(e,t,d);return fn&&(m?m.push(O):h&&O()),O}function Hr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?bs(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const u=gn(this),d=ys(s,i.bind(l),n);return u(),d}function bs(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 Jr(e,t){return J(e)?De({name:e.name},t,{setup:e}):e}function ws(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function go(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Rn=new WeakMap;function ln(e,t,n,l,s=!1){if(W(e)){e.forEach((j,he)=>ln(j,t&&(W(t)?t[he]:t),n,l,s));return}if(on(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ln(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,u=s?null:i,{i:d,r:h}=e,m=t&&t.r,g=d.refs===pe?d.refs={}:d.refs,b=d.setupState,O=ie(b),$=b===pe?Wo:j=>go(g,j)?!1:re(O,j),Z=(j,he)=>!(he&&go(g,he));if(m!=null&&m!==h){if(_o(t),we(m))g[m]=null,$(m)&&(b[m]=null);else if(Ee(m)){const j=t;Z(m,j.k)&&(m.value=null),j.k&&(g[j.k]=null)}}if(J(h)){dt();try{vn(h,d,12,[u,g])}finally{ft()}}else{const j=we(h),he=Ee(h);if(j||he){const de=()=>{if(e.f){const H=j?$(h)?b[h]:g[h]:Z()||!e.k?h.value:g[e.k];if(s)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(j)g[h]=[i],$(h)&&(b[h]=g[h]);else{const ae=[i];Z(h,e.k)&&(h.value=ae),e.k&&(g[e.k]=ae)}}else j?(g[h]=u,$(h)&&(b[h]=u)):he&&(Z(h,e.k)&&(h.value=u),e.k&&(g[e.k]=u))};if(u){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Ne(H,n)}else _o(e),de()}}}function _o(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const on=e=>!!e.type.__asyncLoader,ks=e=>e.type.__isKeepAlive;function Gr(e,t){Cs(e,"a",t)}function zr(e,t){Cs(e,"da",t)}function Cs(e,t,n=Be){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)ks(s.parent.vnode)&&Yr(l,t,n,s),s=s.parent}}function Yr(e,t,n,l){const s=Yn(t,e,l,!0);Ss(()=>{Ol(l[t],s)},n)}function Yn(e,t,n=Be,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...u)=>{dt();const d=gn(n),h=tt(t,n,e,u);return d(),ft(),h});return l?s.unshift(i):s.push(i),i}}const kt=e=>(t,n=Be)=>{(!fn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Qr=kt("bm"),xs=kt("m"),Xr=kt("bu"),Zr=kt("u"),ea=kt("bum"),Ss=kt("um"),ta=kt("sp"),na=kt("rtg"),la=kt("rtc");function oa(e,t=Be){Yn("ec",e,t)}const sa=Symbol.for("v-ndc");function ve(e,t,n,l){let s;const i=n,u=W(e);if(u||we(e)){const d=u&&Bt(e);let h=!1,m=!1;d&&(h=!ze(e),m=wt(e),e=Gn(e)),s=new Array(e.length);for(let g=0,b=e.length;gt(d,h,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,m=d.length;he?qs(e)?Zn(e):Cl(e.parent):null,sn=De(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=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=hs.bind(e.proxy)),$watch:e=>Hr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&re(e,t),ia={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:u,type:d,appContext:h}=e;if(t[0]!=="$"){const O=u[t];if(O!==void 0)switch(O){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return u[t]=1,l[t];if(s!==pe&&re(s,t))return u[t]=2,s[t];if(re(i,t))return u[t]=3,i[t];if(n!==pe&&re(n,t))return u[t]=4,n[t];xl&&(u[t]=0)}}const m=sn[t];let g,b;if(m)return t==="$attrs"&&Te(e.attrs,"get",""),m(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(n!==pe&&re(n,t))return u[t]=4,n[t];if(b=h.config.globalProperties,re(b,t))return b[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return pl(s,t)?(s[t]=n,!0):l!==pe&&re(l,t)?(l[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:u}},d){let h;return!!(n[d]||e!==pe&&d[0]!=="$"&&re(e,d)||pl(t,d)||re(i,d)||re(l,d)||re(sn,d)||re(s.config.globalProperties,d)||(h=u.__cssModules)&&h[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mo(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function ra(e){const t=Ds(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&yo(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:u,watch:d,provide:h,inject:m,created:g,beforeMount:b,mounted:O,beforeUpdate:$,updated:Z,activated:j,deactivated:he,beforeDestroy:de,beforeUnmount:H,destroyed:ae,unmounted:V,render:fe,renderTracked:Oe,renderTriggered:Ie,errorCaptured:je,serverPrefetch:pt,expose:_e,inheritAttrs:Ve,components:ht,directives:nt,filters:Ct}=t;if(m&&aa(m,l,null),u)for(const R in u){const ee=u[R];J(ee)&&(l[R]=ee.bind(n))}if(s){const R=s.call(n,n);ce(R)&&(e.data=Vl(R))}if(xl=!0,i)for(const R in i){const ee=i[R],Q=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):ut,We=!J(ee)&&J(ee.set)?ee.set.bind(n):ut,Le=Dt({get:Q,set:We});Object.defineProperty(l,R,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const R in d)Ps(d[R],l,n,R);if(h){const R=J(h)?h.call(n):h;Reflect.ownKeys(R).forEach(ee=>{Nr(ee,R[ee])})}g&&yo(g,e,"c");function ke(R,ee){W(ee)?ee.forEach(Q=>R(Q.bind(n))):ee&&R(ee.bind(n))}if(ke(Qr,b),ke(xs,O),ke(Xr,$),ke(Zr,Z),ke(Gr,j),ke(zr,he),ke(oa,je),ke(la,Oe),ke(na,Ie),ke(ea,H),ke(Ss,V),ke(ta,pt),W(_e))if(_e.length){const R=e.exposed||(e.exposed={});_e.forEach(ee=>{Object.defineProperty(R,ee,{get:()=>n[ee],set:Q=>n[ee]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===ut&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),ht&&(e.components=ht),nt&&(e.directives=nt),pt&&ws(e)}function aa(e,t,n=ut){W(e)&&(e=Sl(e));for(const l in e){const s=e[l];let i;ce(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Ee(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:u=>i.value=u}):t[l]=i}}function yo(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ps(e,t,n,l){let s=l.includes(".")?bs(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(s,i)}else if(J(e))dl(s,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>Ps(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(s,i,e)}}function Ds(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:u}}=e.appContext,d=i.get(t);let h;return d?h=d:!s.length&&!n&&!l?h=t:(h={},s.length&&s.forEach(m=>Un(h,m,u,!0)),Un(h,t,u)),ce(t)&&i.set(t,h),h}function Un(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Un(e,i,n,!0),s&&s.forEach(u=>Un(e,u,n,!0));for(const u in t)if(!(l&&u==="expose")){const d=ua[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const ua={data:bo,props:wo,emits:wo,methods:Xt,computed:Xt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Xt,directives:Xt,watch:da,provide:bo,inject:ca};function bo(e,t){return t?e?function(){return De(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ca(e,t){return Xt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Vt(t)}Modifiers`];function va(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let s=n;const i=t.startsWith("update:"),u=i&&ha(l,t.slice(7));u&&(u.trim&&(s=n.map(g=>we(g)?g.trim():g)),u.number&&(s=n.map(Kn)));let d,h=l[d=il(t)]||l[d=il(Xe(t))];!h&&i&&(h=l[d=il(Vt(t))]),h&&tt(h,e,6,s);const m=l[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(m,e,6,s)}}const ga=new WeakMap;function Es(e,t,n=!1){const l=n?ga:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let u={},d=!1;if(!J(e)){const h=m=>{const g=Es(m,t,!0);g&&(d=!0,De(u,g))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(h=>u[h]=null):De(u,i),ce(e)&&l.set(e,u),u)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Vt(t))||re(e,t))}function ko(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:u,attrs:d,emit:h,render:m,renderCache:g,props:b,data:O,setupState:$,ctx:Z,inheritAttrs:j}=e,he=$n(e);let de,H;try{if(n.shapeFlag&4){const V=s||l,fe=V;de=rt(m.call(fe,V,g,b,$,O,Z)),H=d}else{const V=t;de=rt(V.length>1?V(b,{attrs:d,slots:u,emit:h}):V(b,null)),H=t.props?d:_a(d)}}catch(V){rn.length=0,zn(V,e,1),de=bt(Et)}let ae=de;if(H&&j!==!1){const V=Object.keys(H),{shapeFlag:fe}=ae;V.length&&fe&7&&(i&&V.some(jn)&&(H=ma(H,i)),ae=Gt(ae,H,!1,!0))}return n.dirs&&(ae=Gt(ae,null,!1,!0),ae.dirs=ae.dirs?ae.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ae,n.transition),de=ae,$n(he),de}const _a=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ma=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ya(e,t,n){const{props:l,children:s,component:i}=e,{props:u,children:d,patchFlag:h}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return l?Co(l,u,m):!!u;if(h&8){const g=t.dynamicProps;for(let b=0;bObject.create(Is),Ms=e=>Object.getPrototypeOf(e)===Is;function wa(e,t,n,l=!1){const s={},i=As();e.propsDefaults=Object.create(null),$s(e,t,s,i);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);n?e.props=l?s:Dr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function ka(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:u}}=e,d=ie(s),[h]=e.propsOptions;let m=!1;if((l||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let b=0;b{h=!0;const[O,$]=Rs(b,t,!0);De(u,O),$&&d.push(...$)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!i&&!h)return ce(e)&&l.set(e,jt),jt;if(W(i))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(rt):[rt(e)],xa=(e,t,n)=>{if(t._n)return t;const l=Fr((...s)=>Hl(t(...s)),n);return l._c=!1,l},Us=(e,t,n)=>{const l=e._ctx;for(const s in e){if(Wl(s))continue;const i=e[s];if(J(i))t[s]=xa(s,i,l);else if(i!=null){const u=Hl(i);t[s]=()=>u}}},Bs=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},Sa=(e,t,n)=>{const l=e.slots=As();if(e.vnode.shapeFlag&32){const s=t._;s?(Vs(l,t,n),n&&Go(l,"_",s,!0)):Us(t,l)}else t&&Bs(e,t)},Pa=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,u=pe;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:Vs(s,t,n):(i=!t.$stable,Us(t,s)),u=t}else t&&(Bs(e,t),u={default:1});if(i)for(const d in s)!Wl(d)&&u[d]==null&&delete s[d]},Ne=Ia;function Da(e){return Ta(e)}function Ta(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:u,createText:d,createComment:h,setText:m,setElementText:g,parentNode:b,nextSibling:O,setScopeId:$=ut,insertStaticContent:Z}=e,j=(p,v,y,_=null,k=null,w=null,T=void 0,D=null,P=!!v.dynamicChildren)=>{if(p===v)return;p&&!Qt(p,v)&&(_=Ce(p),K(p,k,w,!0),p=null),v.patchFlag===-2&&(P=!1,v.dynamicChildren=null);const{type:C,ref:L,shapeFlag:I}=v;switch(C){case Xn:he(p,v,y,_);break;case Et:de(p,v,y,_);break;case vl:p==null&&H(v,y,_,T);break;case Y:ht(p,v,y,_,k,w,T,D,P);break;default:I&1?fe(p,v,y,_,k,w,T,D,P):I&6?nt(p,v,y,_,k,w,T,D,P):(I&64||I&128)&&C.process(p,v,y,_,k,w,T,D,P,lt)}L!=null&&k?ln(L,p&&p.ref,w,v||p,!v):L==null&&p&&p.ref!=null&&ln(p.ref,null,w,p,!0)},he=(p,v,y,_)=>{if(p==null)l(v.el=d(v.children),y,_);else{const k=v.el=p.el;v.children!==p.children&&m(k,v.children)}},de=(p,v,y,_)=>{p==null?l(v.el=h(v.children||""),y,_):v.el=p.el},H=(p,v,y,_)=>{[p.el,p.anchor]=Z(p.children,v,y,_,p.el,p.anchor)},ae=({el:p,anchor:v},y,_)=>{let k;for(;p&&p!==v;)k=O(p),l(p,y,_),p=k;l(v,y,_)},V=({el:p,anchor:v})=>{let y;for(;p&&p!==v;)y=O(p),s(p),p=y;s(v)},fe=(p,v,y,_,k,w,T,D,P)=>{if(v.type==="svg"?T="svg":v.type==="math"&&(T="mathml"),p==null)Oe(v,y,_,k,w,T,D,P);else{const C=p.el&&p.el._isVueCE?p.el:null;try{C&&C._beginPatch(),pt(p,v,k,w,T,D,P)}finally{C&&C._endPatch()}}},Oe=(p,v,y,_,k,w,T,D)=>{let P,C;const{props:L,shapeFlag:I,transition:U,dirs:F}=p;if(P=p.el=u(p.type,w,L&&L.is,L),I&8?g(P,p.children):I&16&&je(p.children,P,null,_,k,hl(p,w),T,D),F&&It(p,null,_,"created"),Ie(P,p,p.scopeId,T,_),L){for(const te in L)te!=="value"&&!en(te)&&i(P,te,null,L[te],w,_);"value"in L&&i(P,"value",null,L.value,w),(C=L.onVnodeBeforeMount)&&ot(C,_,p)}F&&It(p,null,_,"beforeMount");const X=Ea(k,U);X&&U.beforeEnter(P),l(P,v,y),((C=L&&L.onVnodeMounted)||X||F)&&Ne(()=>{try{C&&ot(C,_,p),X&&U.enter(P),F&&It(p,null,_,"mounted")}finally{}},k)},Ie=(p,v,y,_,k)=>{if(y&&$(p,y),_)for(let w=0;w<_.length;w++)$(p,_[w]);if(k){let w=k.subTree;if(v===w||js(w.type)&&(w.ssContent===v||w.ssFallback===v)){const T=k.vnode;Ie(p,T,T.scopeId,T.slotScopeIds,k.parent)}}},je=(p,v,y,_,k,w,T,D,P=0)=>{for(let C=P;C{const D=v.el=p.el;let{patchFlag:P,dynamicChildren:C,dirs:L}=v;P|=p.patchFlag&16;const I=p.props||pe,U=v.props||pe;let F;if(y&&At(y,!1),(F=U.onVnodeBeforeUpdate)&&ot(F,y,v,p),L&&It(v,p,y,"beforeUpdate"),y&&At(y,!0),C&&(!p.dynamicChildren||p.dynamicChildren.length!==C.length)&&(P=0,T=!1,C=null),(I.innerHTML&&U.innerHTML==null||I.textContent&&U.textContent==null)&&g(D,""),C?_e(p.dynamicChildren,C,D,y,_,hl(v,k),w):T||ee(p,v,D,null,y,_,hl(v,k),w,!1),P>0){if(P&16)Ve(D,I,U,y,k);else if(P&2&&I.class!==U.class&&i(D,"class",null,U.class,k),P&4&&i(D,"style",I.style,U.style,k),P&8){const X=v.dynamicProps;for(let te=0;te{F&&ot(F,y,v,p),L&&It(v,p,y,"updated")},_)},_e=(p,v,y,_,k,w,T)=>{for(let D=0;D{if(v!==y){if(v!==pe)for(const w in v)!en(w)&&!(w in y)&&i(p,w,v[w],null,k,_);for(const w in y){if(en(w))continue;const T=y[w],D=v[w];T!==D&&w!=="value"&&i(p,w,D,T,k,_)}"value"in y&&i(p,"value",v.value,y.value,k)}},ht=(p,v,y,_,k,w,T,D,P)=>{const C=v.el=p?p.el:d(""),L=v.anchor=p?p.anchor:d("");let{patchFlag:I,dynamicChildren:U,slotScopeIds:F}=v;F&&(D=D?D.concat(F):F),p==null?(l(C,y,_),l(L,y,_),je(v.children||[],y,L,k,w,T,D,P)):I>0&&I&64&&U&&p.dynamicChildren&&p.dynamicChildren.length===U.length?(_e(p.dynamicChildren,U,y,k,w,T,D),(v.key!=null||k&&v===k.subTree)&&Ls(p,v,!0)):ee(p,v,y,L,k,w,T,D,P)},nt=(p,v,y,_,k,w,T,D,P)=>{v.slotScopeIds=D,p==null?v.shapeFlag&512?k.ctx.activate(v,y,_,T,P):Ct(v,y,_,k,w,T,P):xt(p,v,P)},Ct=(p,v,y,_,k,w,T)=>{const D=p.component=Fa(p,_,k);if(ks(p)&&(D.ctx.renderer=lt),ja(D,!1,T),D.asyncDep){if(k&&k.registerDep(D,ke,T),!p.el){const P=D.subTree=bt(Et);de(null,P,v,y),p.placeholder=P.el}}else ke(D,p,v,y,k,w,T)},xt=(p,v,y)=>{const _=v.component=p.component;if(ya(p,v,y))if(_.asyncDep&&!_.asyncResolved){R(_,v,y);return}else _.next=v,_.update();else v.el=p.el,_.vnode=v},ke=(p,v,y,_,k,w,T)=>{const D=()=>{if(p.isMounted){let{next:I,bu:U,u:F,parent:X,vnode:te}=p;{const He=Fs(p);if(He){I&&(I.el=te.el,R(p,I,T)),He.asyncDep.then(()=>{Ne(()=>{p.isUnmounted||C()},k)});return}}let le=I,be;At(p,!1),I?(I.el=te.el,R(p,I,T)):I=te,U&&En(U),(be=I.props&&I.props.onVnodeBeforeUpdate)&&ot(be,X,I,te),At(p,!0);const xe=ko(p),Fe=p.subTree;p.subTree=xe,j(Fe,xe,b(Fe.el),Ce(Fe),p,k,w),I.el=xe.el,le===null&&ba(p,xe.el),F&&Ne(F,k),(be=I.props&&I.props.onVnodeUpdated)&&Ne(()=>ot(be,X,I,te),k)}else{let I;const{el:U,props:F}=v,{bm:X,m:te,parent:le,root:be,type:xe}=p,Fe=on(v);At(p,!1),X&&En(X),!Fe&&(I=F&&F.onVnodeBeforeMount)&&ot(I,le,v),At(p,!0);{be.ce&&be.ce._hasShadowRoot()&&be.ce._injectChildStyle(xe,p.parent?p.parent.type:void 0);const He=p.subTree=ko(p);j(null,He,y,_,p,k,w),v.el=He.el}if(te&&Ne(te,k),!Fe&&(I=F&&F.onVnodeMounted)){const He=v;Ne(()=>ot(I,le,He),k)}(v.shapeFlag&256||le&&on(le.vnode)&&le.vnode.shapeFlag&256)&&p.a&&Ne(p.a,k),p.isMounted=!0,v=y=_=null}};p.scope.on();const P=p.effect=new Xo(D);p.scope.off();const C=p.update=P.run.bind(P),L=p.job=P.runIfDirty.bind(P);L.i=p,L.id=p.uid,P.scheduler=()=>Nl(L),At(p,!0),C()},R=(p,v,y)=>{v.component=p;const _=p.vnode.props;p.vnode=v,p.next=null,ka(p,v.props,_,y),Pa(p,v.children,y),dt(),vo(p),ft()},ee=(p,v,y,_,k,w,T,D,P=!1)=>{const C=p&&p.children,L=p?p.shapeFlag:0,I=v.children,{patchFlag:U,shapeFlag:F}=v;if(U>0){if(U&128){We(C,I,y,_,k,w,T,D,P);return}else if(U&256){Q(C,I,y,_,k,w,T,D,P);return}}F&8?(L&16&&me(C,k,w),I!==C&&g(y,I)):L&16?F&16?We(C,I,y,_,k,w,T,D,P):me(C,k,w,!0):(L&8&&g(y,""),F&16&&je(I,y,_,k,w,T,D,P))},Q=(p,v,y,_,k,w,T,D,P)=>{p=p||jt,v=v||jt;const C=p.length,L=v.length,I=Math.min(C,L);let U;for(U=0;UL?me(p,k,w,!0,!1,I):je(v,y,_,k,w,T,D,P,I)},We=(p,v,y,_,k,w,T,D,P)=>{let C=0;const L=v.length;let I=p.length-1,U=L-1;for(;C<=I&&C<=U;){const F=p[C],X=v[C]=P?_t(v[C]):rt(v[C]);if(Qt(F,X))j(F,X,y,null,k,w,T,D,P);else break;C++}for(;C<=I&&C<=U;){const F=p[I],X=v[U]=P?_t(v[U]):rt(v[U]);if(Qt(F,X))j(F,X,y,null,k,w,T,D,P);else break;I--,U--}if(C>I){if(C<=U){const F=U+1,X=FU)for(;C<=I;)K(p[C],k,w,!0),C++;else{const F=C,X=C,te=new Map;for(C=X;C<=U;C++){const A=v[C]=P?_t(v[C]):rt(v[C]);A.key!=null&&te.set(A.key,C)}let le,be=0;const xe=U-X+1;let Fe=!1,He=0;const Ot=new Array(xe);for(C=0;C=xe){K(A,k,w,!0);continue}let Je;if(A.key!=null)Je=te.get(A.key);else for(le=X;le<=U;le++)if(Ot[le-X]===0&&Qt(A,v[le])){Je=le;break}Je===void 0?K(A,k,w,!0):(Ot[Je-X]=C+1,Je>=He?He=Je:Fe=!0,j(A,v[Je],y,null,k,w,T,D,P),be++)}const $e=Fe?Oa(Ot):jt;for(le=$e.length-1,C=xe-1;C>=0;C--){const A=X+C,Je=v[A],_n=v[A+1],mn=A+1{const{el:w,type:T,transition:D,children:P,shapeFlag:C}=p;if(C&6){Le(p.component.subTree,v,y,_);return}if(C&128){p.suspense.move(v,y,_);return}if(C&64){T.move(p,v,y,lt);return}if(T===Y){l(w,v,y);for(let I=0;ID.enter(w),k));else{const{leave:I,delayLeave:U,afterLeave:F}=D,X=()=>{p.ctx.isUnmounted?s(w):l(w,v,y)},te=()=>{const le=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),D.persisted&&!le?X():I(w,()=>{X(),F&&F()})};U?U(w,X,te):te()}else l(w,v,y)},K=(p,v,y,_=!1,k=!1)=>{const{type:w,props:T,ref:D,children:P,dynamicChildren:C,shapeFlag:L,patchFlag:I,dirs:U,cacheIndex:F,memo:X}=p;if(I===-2&&(k=!1),D!=null&&(dt(),ln(D,null,y,p,!0),ft()),F!=null&&(v.renderCache[F]=void 0),L&256){v.ctx.deactivate(p);return}const te=L&1&&U,le=!on(p);let be;if(le&&(be=T&&T.onVnodeBeforeUnmount)&&ot(be,v,p),L&6)ue(p.component,y,_);else{if(L&128){p.suspense.unmount(y,_);return}te&&It(p,null,v,"beforeUnmount"),L&64?p.type.remove(p,v,y,lt,_):C&&!C.hasOnce&&(w!==Y||I>0&&I&64)?me(C,v,y,!1,!0):(w===Y&&I&384||!k&&L&16)&&me(P,v,y),_&&qe(p)}const xe=X!=null&&F==null;(le&&(be=T&&T.onVnodeUnmounted)||te||xe)&&Ne(()=>{be&&ot(be,v,p),te&&It(p,null,v,"unmounted"),xe&&(p.el=null)},y)},qe=p=>{const{type:v,el:y,anchor:_,transition:k}=p;if(v===Y){Ye(y,_);return}if(v===vl){V(p);return}const w=()=>{s(y),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:T,delayLeave:D}=k,P=()=>T(y,w);D?D(p.el,w,P):P()}else w()},Ye=(p,v)=>{let y;for(;p!==v;)y=O(p),s(p),p=y;s(v)},ue=(p,v,y)=>{const{bum:_,scope:k,job:w,subTree:T,um:D,m:P,a:C}=p;So(P),So(C),_&&En(_),k.stop(),w&&(w.flags|=8,K(T,p,v,y)),D&&Ne(D,v),Ne(()=>{p.isUnmounted=!0},v)},me=(p,v,y,_=!1,k=!1,w=0)=>{for(let T=w;T{if(p.shapeFlag&6)return Ce(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const v=O(p.anchor||p.el),y=v&&v[Kr];return y?O(y):v};let ye=!1;const Ae=(p,v,y)=>{let _;p==null?v._vnode&&(K(v._vnode,null,null,!0),_=v._vnode.component):j(v._vnode||null,p,v,null,null,null,y),v._vnode=p,ye||(ye=!0,vo(_),gs(),ye=!1)},lt={p:j,um:K,m:Le,r:qe,mt:Ct,mc:je,pc:ee,pbc:_e,n:Ce,o:e};return{render:Ae,hydrate:void 0,createApp:pa(Ae)}}function hl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function At({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ea(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ls(e,t,n=!1){const l=e.children,s=t.children;if(W(l)&&W(s))for(let i=0;i>1,e[n[d]]0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,u=n[i-1];i-- >0;)n[i]=u,u=t[u];return n}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}function So(e){if(e)for(let t=0;te.__isSuspense;function Ia(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Lr(e)}const Y=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),vl=Symbol.for("v-stc"),rn=[];let Ke=null;function x(e=!1){rn.push(Ke=e?null:[])}function Aa(){rn.pop(),Ke=rn[rn.length-1]||null}let dn=1;function Po(e,t=!1){dn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Ws(e){return e.dynamicChildren=dn>0?Ke||jt:null,Aa(),dn>0&&Ke&&Ke.push(e),e}function S(e,t,n,l,s,i){return Ws(o(e,t,n,l,s,i,!0))}function Ma(e,t,n,l,s){return Ws(bt(e,t,n,l,s,!0))}function Hs(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const Ks=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ee(e)||J(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Y?0:1,u=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&In(t),scopeId:ms,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return d?(Bn(h,n),i&128&&e.normalize(h)):n&&(h.shapeFlag|=we(n)?8:16),dn>0&&!u&&Ke&&(h.patchFlag>0||i&6)&&h.patchFlag!==32&&Ke.push(h),h}const bt=$a;function $a(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===sa)&&(e=Et),Hs(e)){const d=Gt(e,t,!0);return n&&Bn(d,n),dn>0&&!i&&Ke&&(d.shapeFlag&6?Ke[Ke.indexOf(e)]=d:Ke.push(d)),d.patchFlag=-2,d}if(qa(e)&&(e=e.__vccOpts),t){t=Ra(t);let{class:d,style:h}=t;d&&!we(d)&&(t.class=Jn(d)),ce(h)&&(Fl(h)&&!W(h)&&(h=De({},h)),t.style=Al(h))}const u=we(e)?1:js(e)?128:qr(e)?64:ce(e)?4:J(e)?2:0;return o(e,t,n,l,s,u,i,!0)}function Ra(e){return e?Fl(e)||Ms(e)?De({},e):e:null}function Gt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:u,children:d,transition:h}=e,m=t?Ba(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Ks(m),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&l&&jl(g,h.clone(g)),g}function Ua(e=" ",t=0){return bt(Xn,null,e,t)}function G(e="",t=!1){return t?(x(),Ma(Et,null,e)):bt(Et,null,e)}function rt(e){return e==null||typeof e=="boolean"?bt(Et):W(e)?bt(Y,null,e.slice()):Hs(e)?_t(e):bt(Xn,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function Bn(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Bn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ms(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Bn(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),l&64?(n=16,t=[Ua(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ba(...e){const t={};for(let n=0;nBe||Ge;let Vn,Dl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(u=>u(i)):s[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),Dl=t("__VUE_SSR_SETTERS__",n=>fn=n)}const gn=e=>{const t=Be;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Do=()=>{Be&&Be.scope.off(),Vn(null)};function qs(e){return e.vnode.shapeFlag&4}let fn=!1;function ja(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:s}=e.vnode,i=qs(e);wa(e,l,i,t),Sa(e,s,n||t);const u=i?Wa(e,t):void 0;return t&&Dl(!1),u}function Wa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ia);const{setup:l}=n;if(l){dt();const s=e.setupContext=l.length>1?Ka(e):null,i=gn(e),u=vn(l,e,0,[e.props,s]),d=Ho(u);if(ft(),i(),(d||e.sp)&&!on(e)&&ws(e),d){if(u.then(Do,Do),t)return u.then(h=>{To(e,h)}).catch(h=>{zn(h,e,0)});e.asyncDep=u}else To(e,u)}else Js(e)}function To(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=fs(t)),Js(e)}function Js(e,t,n){const l=e.type;e.render||(e.render=l.render||ut);{const s=gn(e);dt();try{ra(e)}finally{ft(),s()}}}const Ha={get(e,t){return Te(e,"get",""),e[t]}};function Ka(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ha),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fs(Tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function qa(e){return J(e)&&"__vccOpts"in e}const Dt=(e,t)=>$r(e,t,fn),Ja="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Tl;const Eo=typeof window<"u"&&window.trustedTypes;if(Eo)try{Tl=Eo.createPolicy("vue",{createHTML:e=>e})}catch{}const Gs=Tl?e=>Tl.createHTML(e):e=>e,Ga="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Oo=gt&>.createElement("template"),Ya={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?gt.createElementNS(Ga,e):t==="mathml"?gt.createElementNS(za,e):n?gt.createElement(e,{is:n}):gt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const u=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Oo.innerHTML=Gs(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const d=Oo.content;if(l==="svg"||l==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qa=Symbol("_vtc");function Xa(e,t,n){const l=e[Qa];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),Za=Symbol("_vsh"),eu=Symbol(""),tu=/(?:^|;)\s*display\s*:/;function nu(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&Zt(l,d,"")}else for(const u in t)n[u]==null&&Zt(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?ou(e,u,!we(t)&&t?t[u]:void 0,d)||Zt(l,u,d):Zt(l,u,"")}}else if(s){if(t!==n){const u=l[eu];u&&(n+=";"+u),l.cssText=n,i=tu.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[Za]&&(l.display="none"))}const Ao=/\s*!important$/;function Zt(e,t,n){if(W(n))n.forEach(l=>Zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=lu(e,t);Ao.test(n)?e.setProperty(Vt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function lu(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Jo(l);for(let s=0;s_l||(cu.then(()=>_l=0),_l=Date.now());function fu(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(W(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const u=s.slice(),d=[l];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pu=(e,t,n,l,s,i)=>{const u=s==="svg";t==="class"?Xa(e,l,u):t==="style"?nu(e,n,l):Nn(t)?jn(t)||iu(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hu(e,t,l,u))?(Uo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ro(e,t,l,u,i,t!=="value")):e._isVueCE&&(vu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Uo(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ro(e,t,l,u))};function hu(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vo(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Vo(t)&&we(n)?!1:t in e}function vu(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(s=>Xe(s)===l):Object.keys(n).some(s=>Xe(s)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>En(t,n):t};function gu(e){e.target.composing=!0}function Lo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qt=Symbol("_assign");function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const B={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[qt]=Ln(s);const i=l||s.props&&s.props.type==="number";Rt(e,t?"change":"input",u=>{u.target.composing||e[qt](Fo(e.value,n,i))}),(n||i)&&Rt(e,"change",()=>{e.value=Fo(e.value,n,i)}),t||(Rt(e,"compositionstart",gu),Rt(e,"compositionend",Lo),Rt(e,"change",Lo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},u){if(e[qt]=Ln(u),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,h=t??"";if(d===h)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===h)||(e.value=h)}},Mt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Wn(t);Rt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Kn(Fn(u)):Fn(u));e[qt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,hs(()=>{e._assigning=!1})}),e[qt]=Ln(l)},mounted(e,{value:t}){No(e,t)},beforeUpdate(e,t,n){e[qt]=Ln(n)},updated(e,{value:t}){e._assigning||No(e,t)}};function No(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let s=0,i=e.options.length;sString(m)===String(d)):u.selected=rr(t,d)>-1}else u.selected=t.has(d);else if(hn(Fn(u),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const _u=De({patchProp:pu},Ya);let jo;function mu(){return jo||(jo=Da(_u))}const yu=((...e)=>{const t=mu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=wu(l);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,bu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t});function bu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wu(e){return we(e)?document.querySelector(e):e}const ku="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",E={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,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`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,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",settingsRollback:"settings/rollback",storageStatus:"storage/status",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`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(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",webManifest:"web/manifest"};class Cu extends Error{constructor(n,l,s={}){super(l);sl(this,"code");sl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function se(e,t){return Qe(e,{method:"GET",query:t})}async function z(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(xu(e,t.query),{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)})).json();if(!l.ok)throw new Cu(l.error_code,l.message,l.details);return l.data}function xu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${ku}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const Su={class:"web-shell"},Pu={class:"sidebar"},Du={class:"brand"},Tu=["onClick"],Eu={class:"workspace"},Ou={class:"topbar"},Iu={class:"actions"},Au=["disabled"],Mu={key:0,class:"notice error"},$u={key:1,class:"notice"},Ru={key:0,class:"dashboard-grid"},Uu={key:1,class:"list-view"},Bu={class:"form-grid"},Vu={class:"wide-field"},Lu=["disabled"],Fu=["disabled"],Nu={key:0},ju={key:1,class:"form-grid"},Wu={class:"wide-field"},Hu={class:"wide-field"},Ku={class:"wide-field"},qu={class:"wide-field"},Ju={class:"wide-field"},Gu=["disabled"],zu=["disabled"],Yu={class:"inline-actions"},Qu={class:"badge"},Xu=["disabled","onClick"],Zu=["disabled","onClick"],ec={key:0,class:"empty"},tc={key:2,class:"split-view"},nc={class:"list-view"},lc={class:"form-grid"},oc=["disabled"],sc={class:"inline-actions"},ic={class:"badge"},rc=["disabled","onClick"],ac=["disabled","onClick"],uc=["disabled","onClick"],cc=["disabled","onClick"],dc={key:0,class:"empty"},fc={key:0,class:"editor-panel"},pc={class:"form-grid"},hc=["disabled"],vc=["disabled","onClick"],gc={class:"list-view"},_c={class:"inline-actions"},mc=["disabled"],yc={class:"form-grid"},bc={class:"wide-field"},wc={class:"wide-field"},kc={class:"wide-field"},Cc=["disabled"],xc=["disabled"],Sc={class:"form-grid"},Pc={class:"wide-field"},Dc=["disabled"],Tc=["disabled"],Ec={class:"inline-actions"},Oc={class:"badge"},Ic=["disabled","onClick"],Ac=["disabled","onClick"],Mc=["disabled","onClick"],$c=["disabled","onClick"],Rc={key:0,class:"empty"},Uc={class:"inline-actions"},Bc={key:0,class:"badge"},Vc=["disabled","onClick"],Lc=["disabled","onClick"],Fc=["disabled","onClick"],Nc=["disabled","onClick"],jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc={key:0,class:"empty"},Kc={key:0},qc={key:1},Jc={class:"editor-panel"},Gc={key:0,class:"empty"},zc={key:2,class:"editor-panel"},Yc={key:3},Qc={key:3,class:"split-view"},Xc={class:"list-view"},Zc={class:"form-grid"},ed=["disabled"],td=["disabled"],nd={class:"inline-actions"},ld=["disabled","onClick"],od=["disabled","onClick"],sd={key:0,class:"empty"},id={class:"list-view"},rd={class:"inline-actions"},ad=["disabled"],ud={class:"form-grid"},cd={value:""},dd=["value"],fd=["disabled"],pd=["disabled"],hd={class:"inline-actions"},vd={class:"badge"},gd=["disabled","onClick"],_d=["disabled","onClick"],md=["disabled","onClick"],yd=["disabled","onClick"],bd={key:0,class:"empty"},wd={class:"form-grid"},kd={value:""},Cd=["value"],xd=["disabled"],Sd=["disabled"],Pd={key:0},Dd={key:4,class:"list-view"},Td=["disabled"],Ed={class:"form-grid"},Od={value:""},Id=["value"],Ad=["disabled"],Md={class:"inline-actions"},$d=["disabled","onClick"],Rd={key:0,class:"empty"},Ud={key:0},Bd={class:"form-grid"},Vd=["disabled"],Ld={key:1},Fd={key:5,class:"list-view"},Nd={class:"inline-actions"},jd=["disabled"],Wd=["disabled"],Hd={class:"form-grid"},Kd={value:""},qd=["value"],Jd={value:""},Gd=["value"],zd={value:""},Yd=["value"],Qd=["disabled"],Xd={class:"inline-actions"},Zd={class:"badge"},ef=["onClick"],tf=["onClick"],nf=["disabled","onClick"],lf={key:0,class:"empty"},of={key:0,class:"editor-panel"},sf={key:6,class:"split-view"},rf={class:"list-view"},af={class:"inline-actions"},uf=["disabled"],cf=["disabled"],df={class:"form-grid"},ff=["disabled"],pf={key:0},hf={class:"list-view"},vf={class:"inline-actions"},gf={class:"badge"},_f=["disabled","onClick"],mf=["disabled","onClick"],yf=["disabled","onClick"],bf={key:0,class:"empty"},wf={key:7,class:"logs-view"},kf={class:"split-view"},Cf={class:"list-view"},xf={key:0,class:"empty"},Sf={class:"list-view"},Pf={class:"badge"},Df={key:0,class:"empty"},Tf={class:"split-view"},Ef={class:"list-view"},Of={key:0,class:"empty"},If={class:"list-view"},Af={class:"badge"},Mf={key:0,class:"empty"},$f={class:"list-view"},Rf={key:0,class:"empty"},Uf={key:8,class:"settings-view"},Bf={class:"toolbar"},Vf=["disabled"],Lf=["disabled"],Ff=["disabled"],Nf=["disabled"],jf=["disabled"],Wf=["disabled"],Hf=["disabled"],Kf={class:"settings-sections"},qf={class:"editor-panel"},Jf={class:"editor-panel"},Gf=["disabled"],zf={class:"editor-panel"},Yf=["disabled","onClick"],Qf={class:"split-view"},Xf={class:"list-view"},Zf={class:"list-view"},ep={class:"inspector"},tp=Jr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=N("dashboard"),s=N(null),i=N(null),u=N(null),d=N([]),h=N(null),m=N([]),g=N([]),b=N(null),O=N(""),$=N([]),Z=N(null),j=N(null),he=N(null),de=N(null),H=N(null),ae=N(null),V=N([]),fe=N(null),Oe=N([]),Ie=N([]),je=N([]),pt=N(null),_e=N({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=N(null),ht=N(""),nt=N(""),Ct=N([]),xt=N(null),ke=N(null),R=N({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=N(null),Q=N({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),We=N({display_name:"",workflow_type:"single_image"}),Le=N({branch_name:""}),K=N({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),qe=N({model_route:"",prompt:"",negative_prompt:""}),Ye=N({status:"",profile_id:"",workflow_id:""}),ue=N({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),me=N({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),Ce=N({category_id:"",name:"",category_type:"material",sort_order:0}),ye=N({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Ae=N({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),lt=N(null),Me=N({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),p=N(null),v=N(""),y=N(!0),_=N(""),k=N(""),w=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.profile_id)??""}),T=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.name)??t.noProfile}),D=Dt(()=>{var c;const f=(c=i.value)==null?void 0:c.queue;return f?f.pending+f.running+f.failed+f.dead_letter:0}),P=Dt(()=>{var f;return((f=fe.value)==null?void 0:f.items.filter(c=>c.recognition_status!=="confirmed").length)??0}),C=Dt(()=>{var f;return(((f=fe.value)==null?void 0:f.items)??[]).filter(c=>c.recognition_status==="confirmed")}),L=Dt(()=>{var f;return((f=h.value)==null?void 0:f.nodes.find(c=>c.node_id===O.value))??null}),I=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],U=Dt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);xs(F);async function F(){var f,c;y.value=!0,k.value="";try{const[q,oe,Se,Pt,bn,zt,wn,kn,Cn,xn,Sn]=await Promise.all([se(E.uiBootstrap),se(E.dashboardSummary),se(E.profiles,{page:1,page_size:20}),se(E.jobs,{page:1,page_size:20}),se(E.settingsSchema),se(E.settingsCurrent),se(E.storageStatus),se(E.materialCategories),se(E.materials,{page:1,page_size:24}),se(E.apiDiscoveryDialects),se(E.apiDiscoveryCapabilities)]);s.value=q,i.value=oe,u.value=Se,j.value=Pt,de.value=bn,H.value=zt,Lt(zt.config),ae.value=wn,V.value=kn,fe.value=Cn,Ie.value=xn,je.value=Sn,await be((f=Se.items[0])==null?void 0:f.profile_id),await xe((c=Se.items[0])==null?void 0:c.profile_id),await X()}catch(q){k.value=q instanceof Error?q.message:t.loadFailed}finally{y.value=!1}}async function X(){const[f,c,q,oe,Se]=await Promise.allSettled([se(E.generationLogs,{limit:12}),se(E.workflowLogs,{limit:12}),se(E.errorLogs,{limit:12}),se(E.integrationLogs,{limit:12}),se(E.auditLogs,{limit:12})]);_e.value={generation:te(f),workflows:te(c),errors:te(q),integrations:te(oe),audit:te(Se)}}function te(f){return f.status==="fulfilled"?f.value:[]}async function le(){j.value=await se(E.jobs,{status:Ye.value.status||void 0,profile_id:Ye.value.profile_id||void 0,workflow_id:Ye.value.workflow_id||void 0,page:1,page_size:20})}async function be(f){if(!f){Oe.value=[];return}Oe.value=await se(E.wardrobe(f))}async function xe(f){var oe,Se;if(!f){d.value=[],h.value=null,m.value=[],g.value=[],O.value="",$.value=[];return}d.value=await se(E.profileWorkflows(f));const c=(oe=h.value)==null?void 0:oe.workflow.workflow_id,q=d.value.some(Pt=>Pt.workflow_id===c)?c:(Se=d.value[0])==null?void 0:Se.workflow_id;q?await Fe(q):h.value=null}async function Fe(f){var Se;const c=await se(E.workflow(f));h.value=c;const q=O.value,oe=c.nodes.some(Pt=>Pt.node_id===q)?q:c.workflow.current_node_id||((Se=c.nodes[0])==null?void 0:Se.node_id);oe?await He(oe):(O.value="",$.value=[]),await Ot(f)}async function He(f){O.value=f,$.value=await se(E.nodeImages(f))}async function Ot(f){const[c,q]=await Promise.all([se(E.workflowBranches(f)),se(E.workflowHistory(f))]);m.value=c,g.value=q}async function $e(){var c;const f=(c=h.value)==null?void 0:c.workflow.workflow_id;f&&await Fe(f)}async function A(f,c,q=!0){_.value=f,k.value="";try{const oe=await c();v.value=`${f}${t.complete}`,f===t.exportSettings&&(v.value=`${t.exportDone}: ${!!oe.redacted}`),q&&await F()}catch(oe){k.value=oe instanceof Error?oe.message:`${f}${t.failed}`}finally{_.value=""}}function Je(f){return A(t.retry,()=>z(E.jobRetry(f)))}function _n(f){return A(t.cancel,()=>z(E.jobCancel(f)))}function mn(f){return A(t.detail,async()=>(he.value=await se(E.job(f)),he.value),!1)}function zs(){R.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Ys(){return A(t.quickDraft,async()=>(ee.value=await z(E.quickProfileDraft,{questionnaire:{name:R.value.name,identity:R.value.identity,personality:St(R.value.personality),hair_color:R.value.hair_color,hairstyle:R.value.hairstyle,eye_color:R.value.eye_color,style:R.value.style,clothing_keywords:St(R.value.clothing_keywords)}}),ee.value),!1)}function Qs(){var c;const f=(c=ee.value)==null?void 0:c.profile_preview;return A(t.create,async()=>{const q=await z(E.profiles,{name:(f==null?void 0:f.name)||R.value.name,description:R.value.description,base_prompt:f==null?void 0:f.base_prompt,appearance_prompt:f==null?void 0:f.appearance_prompt,style_prompt:f==null?void 0:f.style_prompt,negative_prompt:f==null?void 0:f.negative_prompt});return zs(),v.value=t.profileCreated,q})}function Xs(f){return A(t.delete,async()=>{const c=await Qe(E.profile(f),{method:"DELETE"});return v.value=t.profileDeleted,c})}function Kl(){Q.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Zs(f){Q.value={profile_id:f.profile_id,name:f.name,description:f.description??"",base_prompt:f.base_prompt??"",appearance_prompt:f.appearance_prompt??"",style_prompt:f.style_prompt??"",negative_prompt:f.negative_prompt??"",default_model_route:f.default_model_route??""}}function ei(){return Q.value.profile_id?A(t.update,async()=>{const f=await Qe(E.profile(Q.value.profile_id),{method:"PUT",body:{name:Q.value.name,description:Q.value.description||void 0,base_prompt:Q.value.base_prompt||void 0,appearance_prompt:Q.value.appearance_prompt||void 0,style_prompt:Q.value.style_prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,default_model_route:Q.value.default_model_route||void 0}});return Kl(),v.value=t.profileUpdated,f}):Promise.resolve()}function ti(){const f=w.value;return f?A(t.create,async()=>{const c=await z(E.profileWorkflows(f),{display_name:We.value.display_name,workflow_type:We.value.workflow_type});return We.value.display_name="",h.value=c,v.value=t.workflowCreated,c}):Promise.resolve()}function ni(f){return A(t.start,()=>z(E.workflowStart(f)))}function li(f){return A(t.cancel,()=>z(E.workflowCancel(f)))}function oi(f){return A(t.archive,()=>z(E.workflowArchive(f)))}function si(){var c;const f=(c=h.value)==null?void 0:c.workflow;return!f||!Le.value.branch_name?Promise.resolve():A(t.branches,async()=>{const q=await z(E.workflowBranches(f.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:f.current_branch,base_node_id:O.value||f.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await $e(),v.value=t.branchCreated,q},!1)}function ii(f){var q;const c=(q=h.value)==null?void 0:q.workflow.workflow_id;return c?A(t.switchBranch,async()=>{const oe=await z(E.workflowSwitchBranch(c),{branch_name:f});return await $e(),oe},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function ri(f){K.value={node_id:f.node_id,node_key:f.node_key,title:f.title,description:f.description??"",node_type:f.node_type,status:f.status,prompt:f.prompt??"",negative_prompt:f.negative_prompt??"",model_route:f.model_route??""}}function ai(){var q;const f=(q=h.value)==null?void 0:q.workflow.workflow_id;if(!f||!K.value.node_key||!K.value.title)return Promise.resolve();const c={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?A(t.update,async()=>{const oe=await Qe(E.node(K.value.node_id),{method:"PUT",body:c});return el(),await $e(),v.value=t.nodeUpdated,oe},!1):A(t.create,async()=>{const oe=await z(E.workflowNodes(f),c);return el(),await $e(),v.value=t.nodeCreated,oe},!1)}function ui(){var c;const f=(c=h.value)==null?void 0:c.workflow.workflow_id;return f?A(t.review,async()=>(b.value=await se(E.workflowReview(f)),b.value),!1):Promise.resolve()}function ci(){const f=O.value;return f?A(t.review,async()=>(b.value=await se(E.nodeReview(f)),b.value),!1):Promise.resolve()}function di(){const f=O.value;return f?A(t.generate,async()=>(Z.value=await z(E.nodeGenerate(f),{model_route:qe.value.model_route||void 0,prompt:qe.value.prompt||void 0,negative_prompt:qe.value.negative_prompt||void 0}),await $e(),v.value=t.generationQueued,Z.value),!1):Promise.resolve()}function fi(f){return A(t.retry,async()=>{const c=await z(E.nodeRetry(f));return await $e(),v.value=t.nodeQueued,c},!1)}function pi(f){return A(t.complete,async()=>{const c=await z(E.nodeComplete(f));return await $e(),v.value=t.nodeCompleted,c},!1)}function hi(f){const c=O.value;return c?A(t.select,async()=>{const q=await z(E.nodeSelectImage(c),{image_id:f});return await $e(),q},!1):Promise.resolve()}function vi(f){const c=O.value;return c?A(t.adopt,async()=>{var oe;const q=await z(E.nodeAdoptImage(c),{image_id:f,title:(oe=L.value)==null?void 0:oe.title});return await $e(),q},!1):Promise.resolve()}function gi(f){return A(t.unselect,async()=>{const c=await z(E.imageUnselect(f));return await $e(),c},!1)}function _i(f){return A(t.archive,async()=>{const c=await z(E.imageArchive(f));return await $e(),v.value=t.imageArchived,c},!1)}function mi(f){return A(t.delete,async()=>{const c=await Qe(E.image(f),{method:"DELETE"});return await $e(),v.value=t.imageDeleted,c},!1)}function yi(){return A(t.moveFailed,()=>z(E.jobDeadLetterMoveFailed,{limit:20}))}function bi(){return A(t.retryDead,()=>z(E.jobDeadLetterRetry,{limit:20}))}function wi(){var c;const f=((c=Ie.value[0])==null?void 0:c.dialect)??"unknown";return A(t.safeProbe,()=>z(E.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function ki(){var c;const f=((c=Ie.value[0])==null?void 0:c.dialect)??"unknown";return A(t.probeProvider,()=>z(E.apiDiscoveryProbeProvider,{provider_id:Me.value.provider_id||"local-preview",model_id:Me.value.model_id||"metadata-only",dialect:f,capabilities:{supports:St(Me.value.required_capabilities)}}))}function Ci(){return A(t.validatePlan,async()=>(p.value=await z(E.apiDiscoveryValidateRenderPlan,{provider_id:Me.value.provider_id,model_id:Me.value.model_id,required_capabilities:St(Me.value.required_capabilities)}),p.value),!1)}function tl(f,c){return A(t.discovery,()=>z(E.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:c,capabilities:f.capabilities}))}function xi(){const f=w.value;return f?A(t.matchWardrobe,async()=>(pt.value=await z(E.wardrobeMatch(f),{tags:["daily"]}),pt.value),!1):Promise.resolve()}function Si(){ye.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Pi(){const f=w.value;return f?A(t.importToWardrobe,async()=>{const c=await z(E.wardrobeImportMaterial(f),{material_id:ye.value.material_id,wardrobe_category:ye.value.wardrobe_category,tags:St(ye.value.tags),season:ye.value.season||void 0,style:ye.value.style||void 0});return Si(),v.value=t.wardrobeImported,c}):Promise.resolve()}function Di(f){const c=w.value;return c?A(t.delete,async()=>{const q=await Qe(E.wardrobeItem(c,f),{method:"DELETE"});return v.value=t.wardrobeDeleted,q}):Promise.resolve()}function Ti(){const f=w.value;return f?A(t.dailyOutfit,async()=>(lt.value=await z(E.privateCompanionDailyOutfit,{profile_id:f,categories:St(Ae.value.categories),mood:Ae.value.mood,weather:Ae.value.weather,keywords:St(Ae.value.keywords),request_source:"astrbot_plugin_private_companion"}),v.value=t.outfitGenerated,lt.value),!1):Promise.resolve()}function Ei(){return A(t.reload,async()=>{var c;const f=await z(E.settingsReload);return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),f},!1)}function Oi(){return A(t.exportSettings,()=>se(E.settingsExport),!1)}function Lt(f=(c=>(c=H.value)==null?void 0:c.config)()??{}){ht.value=JSON.stringify(f,null,2),xt.value=null,ke.value=null}function nl(){try{const f=JSON.parse(ht.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.settingsDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.settingsDraftInvalid)}}function Ii(){try{const f=JSON.parse(nt.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.importDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.importDraftInvalid)}}function Ai(){return A(t.validate,async()=>(xt.value=await z(E.settingsValidate,{config:nl()}),xt.value),!1)}function Mi(){return A(t.diff,async()=>(ke.value=await z(E.settingsDiff,{config:nl()}),ke.value),!1)}function $i(){return A(t.save,async()=>{var c;const f=await z(E.settingsSave,{config:nl()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),v.value=t.settingsSaved,f},!1)}function Ri(){return A(t.importSettings,async()=>{var c;const f=await z(E.settingsImport,{config:Ii()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Lt(f.config),nt.value="",v.value=t.importDone,f},!1)}function ql(){return A(t.loadSnapshots,async()=>(Ct.value=await se(E.settingsSnapshots,{limit:20}),Ct.value),!1)}function Ui(f){return A(t.rollback,async()=>{var q;const c=await z(E.settingsRollback,{snapshot_id:f});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:c.config},Lt(c.config),await ql(),v.value=t.rollbackDone,c},!1)}function Bi(){var c,q;const f=(q=(c=fe.value)==null?void 0:c.items.find(oe=>{var Se;return(Se=oe.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:q.image_uri;return f?A(t.signMaterial,async()=>(Ve.value=await se(E.mediaSign,{uri:f}),Ve.value),!1):(v.value=t.noSignableMaterial,Promise.resolve())}function Vi(f){return f!=null&&f.startsWith("storage://")?A(t.signMaterial,async()=>(Ve.value=await se(E.mediaSign,{uri:f}),Ve.value),!1):(v.value=t.noSignableMaterial,Promise.resolve())}function yn(){Ce.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Li(f){Ce.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function Fi(){const f={name:Ce.value.name,category_type:Ce.value.category_type,sort_order:Number(Ce.value.sort_order)||0};return Ce.value.category_id?A(t.update,async()=>{const c=await Qe(E.materialCategory(Ce.value.category_id),{method:"PUT",body:f});return yn(),v.value=t.categoryUpdated,c}):A(t.create,async()=>{const c=await z(E.materialCategories,f);return yn(),v.value=t.categoryCreated,c})}function Ni(f){return A(t.delete,async()=>{const c=await Qe(E.materialCategory(f),{method:"DELETE"});return Ce.value.category_id===f&&yn(),v.value=t.categoryDeleted,c})}function ll(){ue.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function ji(){const f={display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:St(ue.value.tags),prompt:ue.value.prompt||void 0,negative_prompt:ue.value.negative_prompt||void 0,recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"};return ue.value.material_id?A(t.update,async()=>{const c=await Qe(E.material(ue.value.material_id),{method:"PUT",body:f});return ll(),v.value=t.materialUpdated,c}):A(t.create,async()=>{const c=await z(E.materials,f);return ll(),v.value=t.materialCreated,c})}function Wi(f){ue.value={material_id:f.material_id,display_name:f.display_name,image_uri:f.image_uri??"",tags:f.tags.join(", "),category_id:f.category_id??"",prompt:f.prompt??"",negative_prompt:f.negative_prompt??""}}function Jl(){me.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function Hi(){return A(t.upload,async()=>{const f=await z(E.materialUpload,{display_name:me.value.display_name||void 0,filename:me.value.filename||void 0,content_type:me.value.content_type||void 0,image_uri:me.value.image_uri,category_id:me.value.category_id||void 0});return Jl(),v.value=t.materialUploaded,f})}function Ki(f){return A(t.recognize,()=>z(E.materialRecognize(f)))}function qi(f){return A(t.confirm,()=>z(E.materialConfirm(f.material_id),{display_name:f.display_name,prompt:f.prompt,negative_prompt:f.negative_prompt,tags:f.tags}))}function Ji(f){return A(t.archive,async()=>{const c=await Qe(E.material(f),{method:"DELETE"});return v.value=t.materialArchived,c})}function St(f){return f.split(",").map(c=>c.trim()).filter(Boolean)}function ol(f=0){return f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:f<1024*1024*1024?`${(f/1024/1024).toFixed(1)} MB`:`${(f/1024/1024/1024).toFixed(1)} GB`}function Gl(f){var c,q;return((q=(c=ae.value)==null?void 0:c.roots.find(oe=>oe.uri_prefix===f))==null?void 0:q.bytes)??0}return(f,c)=>{var q,oe,Se,Pt,bn,zt,wn,kn,Cn,xn,Sn,zl,Yl,Ql,Xl,Zl,eo,to,no,lo,oo,so,io,ro,ao,uo;return x(),S("main",Su,[o("aside",Pu,[o("div",Du,[o("strong",null,a(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,a(((oe=s.value)==null?void 0:oe.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(x(),S(Y,null,ve(n,r=>o("button",{key:r.key,type:"button",class:Jn({active:l.value===r.key}),onClick:ne=>l.value=r.key},a(r.label),11,Tu)),64))])]),o("section",Eu,[o("header",Ou,[o("div",null,[o("h1",null,a(U.value),1),o("p",null,a(((Se=i.value)==null?void 0:Se.plugin_status)??"loading")+" / "+a(v.value||t.waiting),1)]),o("div",Iu,[o("button",{type:"button",disabled:!!_.value,onClick:F},a(_.value||t.refresh),9,Au)])]),k.value?(x(),S("section",Mu,a(k.value),1)):y.value?(x(),S("section",$u,a(t.loading),1)):(x(),S(Y,{key:2},[l.value==="dashboard"?(x(),S("section",Ru,[o("article",null,[o("span",null,a(t.profiles),1),o("strong",null,a(((Pt=i.value)==null?void 0:Pt.active_profiles)??0),1)]),o("article",null,[o("span",null,a(t.jobs),1),o("strong",null,a(D.value),1)]),o("article",null,[o("span",null,a(t.materials),1),o("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,a(t.storage),1),o("strong",null,a(ol(((zt=ae.value)==null?void 0:zt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(x(),S("section",Uu,[o("header",null,[o("h2",null,a(t.profileList),1),o("span",null,a(((kn=u.value)==null?void 0:kn.total)??0),1)]),o("div",Bu,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>R.value.name=r),type:"text"},null,512),[[B,R.value.name]])]),o("label",null,[o("span",null,a(t.identity),1),M(o("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>R.value.identity=r),type:"text"},null,512),[[B,R.value.identity]])]),o("label",null,[o("span",null,a(t.personality),1),M(o("input",{"onUpdate:modelValue":c[2]||(c[2]=r=>R.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[B,R.value.personality]])]),o("label",null,[o("span",null,a(t.hairColor),1),M(o("input",{"onUpdate:modelValue":c[3]||(c[3]=r=>R.value.hair_color=r),type:"text"},null,512),[[B,R.value.hair_color]])]),o("label",null,[o("span",null,a(t.hairstyle),1),M(o("input",{"onUpdate:modelValue":c[4]||(c[4]=r=>R.value.hairstyle=r),type:"text"},null,512),[[B,R.value.hairstyle]])]),o("label",null,[o("span",null,a(t.eyeColor),1),M(o("input",{"onUpdate:modelValue":c[5]||(c[5]=r=>R.value.eye_color=r),type:"text"},null,512),[[B,R.value.eye_color]])]),o("label",null,[o("span",null,a(t.stylePrompt),1),M(o("input",{"onUpdate:modelValue":c[6]||(c[6]=r=>R.value.style=r),type:"text"},null,512),[[B,R.value.style]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[7]||(c[7]=r=>R.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[B,R.value.clothing_keywords]])]),o("label",Vu,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[8]||(c[8]=r=>R.value.description=r),type:"text"},null,512),[[B,R.value.description]])]),o("button",{type:"button",disabled:!!_.value||!R.value.name,onClick:Ys},a(t.quickDraft),9,Lu),o("button",{type:"button",disabled:!!_.value||!R.value.name,onClick:Qs},a(t.create),9,Fu)]),ee.value?(x(),S("pre",Nu,a(JSON.stringify(ee.value,null,2)),1)):G("",!0),Q.value.profile_id?(x(),S("div",ju,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[9]||(c[9]=r=>Q.value.name=r),type:"text"},null,512),[[B,Q.value.name]])]),o("label",null,[o("span",null,a(t.provider),1),M(o("input",{"onUpdate:modelValue":c[10]||(c[10]=r=>Q.value.default_model_route=r),type:"text"},null,512),[[B,Q.value.default_model_route]])]),o("label",Wu,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[11]||(c[11]=r=>Q.value.description=r),type:"text"},null,512),[[B,Q.value.description]])]),o("label",Hu,[o("span",null,a(t.basePrompt),1),M(o("input",{"onUpdate:modelValue":c[12]||(c[12]=r=>Q.value.base_prompt=r),type:"text"},null,512),[[B,Q.value.base_prompt]])]),o("label",Ku,[o("span",null,a(t.appearancePrompt),1),M(o("input",{"onUpdate:modelValue":c[13]||(c[13]=r=>Q.value.appearance_prompt=r),type:"text"},null,512),[[B,Q.value.appearance_prompt]])]),o("label",qu,[o("span",null,a(t.stylePrompt),1),M(o("input",{"onUpdate:modelValue":c[14]||(c[14]=r=>Q.value.style_prompt=r),type:"text"},null,512),[[B,Q.value.style_prompt]])]),o("label",Ju,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[15]||(c[15]=r=>Q.value.negative_prompt=r),type:"text"},null,512),[[B,Q.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!Q.value.name,onClick:ei},a(t.update),9,Gu),o("button",{type:"button",disabled:!!_.value,onClick:Kl},a(t.reset),9,zu)])):G("",!0),o("ul",null,[(x(!0),S(Y,null,ve(((Cn=u.value)==null?void 0:Cn.items)??[],r=>(x(),S("li",{key:r.profile_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.profile_id),1)]),o("div",Yu,[o("span",Qu,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Zs(r)},a(t.edit),9,Xu),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Xs(r.profile_id)},a(t.delete),9,Zu)])]))),128)),(xn=u.value)!=null&&xn.items.length?G("",!0):(x(),S("li",ec,a(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(x(),S("section",tc,[o("div",nc,[o("header",null,[o("h2",null,a(T.value),1),o("span",null,a(d.value.length),1)]),o("div",lc,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[16]||(c[16]=r=>We.value.display_name=r),type:"text"},null,512),[[B,We.value.display_name]])]),o("label",null,[o("span",null,a(t.workflowType),1),M(o("select",{"onUpdate:modelValue":c[17]||(c[17]=r=>We.value.workflow_type=r)},[...c[62]||(c[62]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Mt,We.value.workflow_type]])]),o("button",{type:"button",disabled:!!_.value||!w.value||!We.value.display_name,onClick:ti},a(t.create),9,oc)]),o("ul",null,[(x(!0),S(Y,null,ve(d.value,r=>(x(),S("li",{key:r.workflow_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),o("div",sc,[o("span",ic,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Fe(r.workflow_id)},a(t.nodes),9,rc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ni(r.workflow_id)},a(t.start),9,ac),o("button",{type:"button",disabled:!!_.value,onClick:ne=>li(r.workflow_id)},a(t.cancel),9,uc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>oi(r.workflow_id)},a(t.archive),9,cc)])]))),128)),d.value.length?G("",!0):(x(),S("li",dc,a(t.emptyWorkflows),1))]),h.value?(x(),S("section",fc,[o("header",null,[o("h2",null,a(t.branches),1),o("span",null,a(m.value.length),1)]),o("div",pc,[o("label",null,[o("span",null,a(t.branchName),1),M(o("input",{"onUpdate:modelValue":c[18]||(c[18]=r=>Le.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[B,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!_.value||!Le.value.branch_name,onClick:si},a(t.create),9,hc)]),o("ul",null,[(x(!0),S(Y,null,ve(m.value,r=>(x(),S("li",{key:r.branch_id},[o("div",null,[o("strong",null,a(r.branch_name),1),o("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ii(r.branch_name)},a(t.switchBranch),9,vc)]))),128))])])):G("",!0)]),o("div",gc,[o("header",null,[o("h2",null,a(t.nodes),1),o("div",_c,[o("span",null,a(((Sn=h.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!_.value||!h.value,onClick:ui},a(t.review),9,mc)])]),o("div",yc,[o("label",null,[o("span",null,a(t.nodeKey),1),M(o("input",{"onUpdate:modelValue":c[19]||(c[19]=r=>K.value.node_key=r),type:"text"},null,512),[[B,K.value.node_key]])]),o("label",null,[o("span",null,a(t.nodeTitle),1),M(o("input",{"onUpdate:modelValue":c[20]||(c[20]=r=>K.value.title=r),type:"text"},null,512),[[B,K.value.title]])]),o("label",null,[o("span",null,a(t.nodeType),1),M(o("input",{"onUpdate:modelValue":c[21]||(c[21]=r=>K.value.node_type=r),type:"text"},null,512),[[B,K.value.node_type]])]),o("label",null,[o("span",null,a(t.status),1),M(o("input",{"onUpdate:modelValue":c[22]||(c[22]=r=>K.value.status=r),type:"text"},null,512),[[B,K.value.status]])]),o("label",bc,[o("span",null,a(t.description),1),M(o("input",{"onUpdate:modelValue":c[23]||(c[23]=r=>K.value.description=r),type:"text"},null,512),[[B,K.value.description]])]),o("label",wc,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[24]||(c[24]=r=>K.value.prompt=r),type:"text"},null,512),[[B,K.value.prompt]])]),o("label",kc,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[25]||(c[25]=r=>K.value.negative_prompt=r),type:"text"},null,512),[[B,K.value.negative_prompt]])]),o("label",null,[o("span",null,a(t.modelRoute),1),M(o("input",{"onUpdate:modelValue":c[26]||(c[26]=r=>K.value.model_route=r),type:"text"},null,512),[[B,K.value.model_route]])]),o("button",{type:"button",disabled:!!_.value||!K.value.node_key||!K.value.title,onClick:ai},a(K.value.node_id?t.update:t.create),9,Cc),o("button",{type:"button",disabled:!!_.value,onClick:el},a(t.reset),9,xc)]),o("div",Sc,[o("label",null,[o("span",null,a(t.modelRoute),1),M(o("input",{"onUpdate:modelValue":c[27]||(c[27]=r=>qe.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[B,qe.value.model_route]])]),o("label",null,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[28]||(c[28]=r=>qe.value.prompt=r),type:"text"},null,512),[[B,qe.value.prompt]])]),o("label",Pc,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[29]||(c[29]=r=>qe.value.negative_prompt=r),type:"text"},null,512),[[B,qe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!O.value,onClick:di},a(t.generate),9,Dc),o("button",{type:"button",disabled:!!_.value||!O.value,onClick:ci},a(t.review),9,Tc)]),o("ul",null,[(x(!0),S(Y,null,ve(((zl=h.value)==null?void 0:zl.nodes)??[],r=>(x(),S("li",{key:r.node_id},[o("div",null,[o("strong",null,a(r.title),1),o("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),o("div",Ec,[o("span",null,a(r.branch_name),1),o("span",Oc,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>ri(r)},a(t.edit),9,Ic),o("button",{type:"button",disabled:!!_.value,onClick:ne=>fi(r.node_id)},a(t.retry),9,Ac),o("button",{type:"button",disabled:!!_.value,onClick:ne=>pi(r.node_id)},a(t.complete),9,Mc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>He(r.node_id)},a(t.images),9,$c)])]))),128)),(Yl=h.value)!=null&&Yl.nodes.length?G("",!0):(x(),S("li",Rc,a(t.emptyWorkflows),1))]),o("ul",null,[(x(!0),S(Y,null,ve($.value,r=>(x(),S("li",{key:r.image_id},[o("div",null,[o("strong",null,a(r.image_id),1),o("small",null,a(r.thumbnail_uri??r.image_uri),1)]),o("div",Uc,[r.is_selected?(x(),S("span",Bc,a(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!_.value||r.is_selected||r.is_archived,onClick:ne=>hi(r.image_id)},a(t.select),9,Vc),o("button",{type:"button",disabled:!!_.value||r.is_archived,onClick:ne=>vi(r.image_id)},a(t.adopt),9,Lc),o("button",{type:"button",disabled:!!_.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:ne=>Vi(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,Fc),o("button",{type:"button",disabled:!!_.value||!r.is_selected,onClick:ne=>gi(r.image_id)},a(t.unselect),9,Nc),o("button",{type:"button",disabled:!!_.value||r.is_archived,onClick:ne=>_i(r.image_id)},a(t.archive),9,jc),o("button",{type:"button",disabled:!!_.value,onClick:ne=>mi(r.image_id)},a(t.delete),9,Wc)])]))),128)),$.value.length?G("",!0):(x(),S("li",Hc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",Kc,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0),Z.value?(x(),S("pre",qc,a(JSON.stringify(Z.value,null,2)),1)):G("",!0),o("section",Jc,[o("header",null,[o("h2",null,a(t.history),1),o("span",null,a(g.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(g.value,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.node_id??r.workflow_id),1)]),o("span",null,a(r.branch_name),1)]))),128)),g.value.length?G("",!0):(x(),S("li",Gc,a(t.emptyHistory),1))])]),b.value?(x(),S("section",zc,[o("header",null,[o("h2",null,a(t.reviewResult),1),o("span",null,a(b.value.passed?t.support:t.unsupported),1)]),o("pre",null,a(JSON.stringify(b.value,null,2)),1)])):G("",!0),h.value?(x(),S("pre",Yc,a(JSON.stringify(h.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(x(),S("section",Qc,[o("div",Xc,[o("header",null,[o("h2",null,a(t.materialCategories),1),o("span",null,a(V.value.length),1)]),o("div",Zc,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[30]||(c[30]=r=>Ce.value.name=r),type:"text"},null,512),[[B,Ce.value.name]])]),o("label",null,[o("span",null,a(t.categoryType),1),M(o("input",{"onUpdate:modelValue":c[31]||(c[31]=r=>Ce.value.category_type=r),type:"text"},null,512),[[B,Ce.value.category_type]])]),o("label",null,[o("span",null,a(t.sortOrder),1),M(o("input",{"onUpdate:modelValue":c[32]||(c[32]=r=>Ce.value.sort_order=r),type:"number"},null,512),[[B,Ce.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!_.value||!Ce.value.name,onClick:Fi},a(Ce.value.category_id?t.update:t.create),9,ed),o("button",{type:"button",disabled:!!_.value,onClick:yn},a(t.reset),9,td)]),o("ul",null,[(x(!0),S(Y,null,ve(V.value,r=>(x(),S("li",{key:r.category_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.category_type),1)]),o("div",nd,[o("span",null,a(r.sort_order),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Li(r)},a(t.edit),9,ld),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ni(r.category_id)},a(t.delete),9,od)])]))),128)),V.value.length?G("",!0):(x(),S("li",sd,a(t.emptyCategories),1))])]),o("div",id,[o("header",null,[o("h2",null,a(t.materialItems),1),o("div",rd,[o("span",null,a(P.value)+" "+a(t.pendingConfirm),1),o("button",{type:"button",disabled:!!_.value,onClick:Bi},a(t.signFirstImage),9,ad)])]),o("div",ud,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[33]||(c[33]=r=>ue.value.display_name=r),type:"text"},null,512),[[B,ue.value.display_name]])]),o("label",null,[o("span",null,a(t.imageUri),1),M(o("input",{"onUpdate:modelValue":c[34]||(c[34]=r=>ue.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[B,ue.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),M(o("select",{"onUpdate:modelValue":c[35]||(c[35]=r=>ue.value.category_id=r)},[o("option",cd,a(t.allCategories),1),(x(!0),S(Y,null,ve(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,dd))),128))],512),[[Mt,ue.value.category_id]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[36]||(c[36]=r=>ue.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[B,ue.value.tags]])]),o("label",null,[o("span",null,a(t.prompt),1),M(o("input",{"onUpdate:modelValue":c[37]||(c[37]=r=>ue.value.prompt=r),type:"text"},null,512),[[B,ue.value.prompt]])]),o("label",null,[o("span",null,a(t.negativePrompt),1),M(o("input",{"onUpdate:modelValue":c[38]||(c[38]=r=>ue.value.negative_prompt=r),type:"text"},null,512),[[B,ue.value.negative_prompt]])]),o("button",{type:"button",disabled:!!_.value||!ue.value.display_name,onClick:ji},a(ue.value.material_id?t.update:t.create),9,fd),o("button",{type:"button",disabled:!!_.value,onClick:ll},a(t.reset),9,pd)]),o("ul",null,[(x(!0),S(Y,null,ve(((Ql=fe.value)==null?void 0:Ql.items)??[],r=>(x(),S("li",{key:r.material_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.image_uri??t.noImage),1)]),o("div",hd,[o("span",vd,a(r.recognition_status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Wi(r)},a(t.edit),9,gd),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ki(r.material_id)},a(t.recognize),9,_d),o("button",{type:"button",disabled:!!_.value||r.recognition_status==="confirmed",onClick:ne=>qi(r)},a(t.confirm),9,md),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ji(r.material_id)},a(t.archive),9,yd)])]))),128)),(Xl=fe.value)!=null&&Xl.items.length?G("",!0):(x(),S("li",bd,a(t.emptyMaterials),1))]),o("div",wd,[o("label",null,[o("span",null,a(t.name),1),M(o("input",{"onUpdate:modelValue":c[39]||(c[39]=r=>me.value.display_name=r),type:"text"},null,512),[[B,me.value.display_name]])]),o("label",null,[o("span",null,a(t.filename),1),M(o("input",{"onUpdate:modelValue":c[40]||(c[40]=r=>me.value.filename=r),type:"text"},null,512),[[B,me.value.filename]])]),o("label",null,[o("span",null,a(t.contentType),1),M(o("input",{"onUpdate:modelValue":c[41]||(c[41]=r=>me.value.content_type=r),type:"text"},null,512),[[B,me.value.content_type]])]),o("label",null,[o("span",null,a(t.imageUri),1),M(o("input",{"onUpdate:modelValue":c[42]||(c[42]=r=>me.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[B,me.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),M(o("select",{"onUpdate:modelValue":c[43]||(c[43]=r=>me.value.category_id=r)},[o("option",kd,a(t.allCategories),1),(x(!0),S(Y,null,ve(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Cd))),128))],512),[[Mt,me.value.category_id]])]),o("button",{type:"button",disabled:!!_.value||!me.value.image_uri,onClick:Hi},a(t.upload),9,xd),o("button",{type:"button",disabled:!!_.value,onClick:Jl},a(t.reset),9,Sd)]),Ve.value?(x(),S("pre",Pd,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(x(),S("section",Dd,[o("header",null,[o("h2",null,a(T.value),1),o("button",{type:"button",disabled:!w.value||!!_.value,onClick:xi},a(t.match),9,Td)]),o("div",Ed,[o("label",null,[o("span",null,a(t.selectMaterial),1),M(o("select",{"onUpdate:modelValue":c[44]||(c[44]=r=>ye.value.material_id=r)},[o("option",Od,a(t.selectMaterial),1),(x(!0),S(Y,null,ve(C.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,Id))),128))],512),[[Mt,ye.value.material_id]])]),o("label",null,[o("span",null,a(t.wardrobeCategory),1),M(o("input",{"onUpdate:modelValue":c[45]||(c[45]=r=>ye.value.wardrobe_category=r),type:"text"},null,512),[[B,ye.value.wardrobe_category]])]),o("label",null,[o("span",null,a(t.tags),1),M(o("input",{"onUpdate:modelValue":c[46]||(c[46]=r=>ye.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[B,ye.value.tags]])]),o("label",null,[o("span",null,a(t.season),1),M(o("input",{"onUpdate:modelValue":c[47]||(c[47]=r=>ye.value.season=r),type:"text"},null,512),[[B,ye.value.season]])]),o("label",null,[o("span",null,a(t.style),1),M(o("input",{"onUpdate:modelValue":c[48]||(c[48]=r=>ye.value.style=r),type:"text"},null,512),[[B,ye.value.style]])]),o("button",{type:"button",disabled:!!_.value||!w.value||!ye.value.material_id||!ye.value.wardrobe_category,onClick:Pi},a(t.importToWardrobe),9,Ad)]),o("ul",null,[(x(!0),S(Y,null,ve(Oe.value,r=>(x(),S("li",{key:r.wardrobe_item_id},[o("div",null,[o("strong",null,a(r.wardrobe_category),1),o("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),o("div",Md,[o("span",null,a(r.usage_count),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Di(r.wardrobe_item_id)},a(t.delete),9,$d)])]))),128)),Oe.value.length?G("",!0):(x(),S("li",Rd,a(t.emptyWardrobe),1))]),pt.value?(x(),S("pre",Ud,a(JSON.stringify(pt.value,null,2)),1)):G("",!0),o("div",Bd,[o("label",null,[o("span",null,a(t.categories),1),M(o("input",{"onUpdate:modelValue":c[49]||(c[49]=r=>Ae.value.categories=r),type:"text"},null,512),[[B,Ae.value.categories]])]),o("label",null,[o("span",null,a(t.mood),1),M(o("input",{"onUpdate:modelValue":c[50]||(c[50]=r=>Ae.value.mood=r),type:"text"},null,512),[[B,Ae.value.mood]])]),o("label",null,[o("span",null,a(t.weather),1),M(o("input",{"onUpdate:modelValue":c[51]||(c[51]=r=>Ae.value.weather=r),type:"text"},null,512),[[B,Ae.value.weather]])]),o("label",null,[o("span",null,a(t.keywords),1),M(o("input",{"onUpdate:modelValue":c[52]||(c[52]=r=>Ae.value.keywords=r),type:"text"},null,512),[[B,Ae.value.keywords]])]),o("button",{type:"button",disabled:!!_.value||!w.value,onClick:Ti},a(t.dailyOutfit),9,Vd)]),lt.value?(x(),S("pre",Ld,a(JSON.stringify(lt.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(x(),S("section",Fd,[o("header",null,[o("h2",null,a(t.jobs),1),o("div",Nd,[o("button",{type:"button",disabled:!!_.value,onClick:yi},a(t.moveFailed),9,jd),o("button",{type:"button",disabled:!!_.value,onClick:bi},a(t.retryDead),9,Wd)])]),o("div",Hd,[o("label",null,[c[63]||(c[63]=o("span",null,"Status",-1)),M(o("select",{"onUpdate:modelValue":c[53]||(c[53]=r=>Ye.value.status=r)},[o("option",Kd,a(t.allStatuses),1),(x(),S(Y,null,ve(I,r=>o("option",{key:r,value:r},a(r),9,qd)),64))],512),[[Mt,Ye.value.status]])]),o("label",null,[o("span",null,a(t.profiles),1),M(o("select",{"onUpdate:modelValue":c[54]||(c[54]=r=>Ye.value.profile_id=r)},[o("option",Jd,a(t.allProfiles),1),(x(!0),S(Y,null,ve(((Zl=u.value)==null?void 0:Zl.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Gd))),128))],512),[[Mt,Ye.value.profile_id]])]),o("label",null,[o("span",null,a(t.workflows),1),M(o("select",{"onUpdate:modelValue":c[55]||(c[55]=r=>Ye.value.workflow_id=r)},[o("option",zd,a(t.allWorkflows),1),(x(!0),S(Y,null,ve(d.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Yd))),128))],512),[[Mt,Ye.value.workflow_id]])]),o("button",{type:"button",disabled:!!_.value,onClick:le},a(t.filter),9,Qd)]),o("ul",null,[(x(!0),S(Y,null,ve(((eo=j.value)==null?void 0:eo.items)??[],r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),o("div",Xd,[o("span",Zd,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:ne=>Je(r.task_id)},a(t.retry),9,ef)):G("",!0),["completed","succeeded","cancelled"].includes(r.status)?G("",!0):(x(),S("button",{key:1,type:"button",onClick:ne=>_n(r.task_id)},a(t.cancel),9,tf)),o("button",{type:"button",disabled:!!_.value,onClick:ne=>mn(r.task_id)},a(t.detail),9,nf)])]))),128)),(to=j.value)!=null&&to.items.length?G("",!0):(x(),S("li",lf,a(t.emptyJobs),1))]),he.value?(x(),S("section",of,[o("header",null,[o("h2",null,a(t.jobDetail),1),o("span",null,a(he.value.status),1)]),o("pre",null,a(JSON.stringify(he.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(x(),S("section",sf,[o("div",rf,[o("header",null,[o("h2",null,a(t.dialects),1),o("div",af,[o("button",{type:"button",disabled:!!_.value,onClick:ki},a(t.probeProvider),9,uf),o("button",{type:"button",disabled:!!_.value,onClick:wi},a(t.safeProbe),9,cf)])]),o("ul",null,[(x(!0),S(Y,null,ve(Ie.value,r=>(x(),S("li",{key:r.dialect},[o("div",null,[o("strong",null,a(r.label),1),o("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,a(r.dialect),1)]))),128))]),o("div",df,[o("label",null,[o("span",null,a(t.provider),1),M(o("input",{"onUpdate:modelValue":c[56]||(c[56]=r=>Me.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[B,Me.value.provider_id]])]),o("label",null,[o("span",null,a(t.model),1),M(o("input",{"onUpdate:modelValue":c[57]||(c[57]=r=>Me.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[B,Me.value.model_id]])]),o("label",null,[o("span",null,a(t.requiredCapabilities),1),M(o("input",{"onUpdate:modelValue":c[58]||(c[58]=r=>Me.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[B,Me.value.required_capabilities]])]),o("button",{type:"button",disabled:!!_.value||!Me.value.provider_id||!Me.value.model_id,onClick:Ci},a(t.validatePlan),9,ff)]),p.value?(x(),S("pre",pf,a(JSON.stringify(p.value,null,2)),1)):G("",!0)]),o("div",hf,[o("header",null,[o("h2",null,a(t.capabilityProfiles),1),o("span",null,a(je.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(je.value,r=>(x(),S("li",{key:r.capability_profile_id},[o("div",null,[o("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),o("small",null,a(r.dialect),1)]),o("div",vf,[o("span",gf,a(r.status),1),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"confirmed_supported")},a(t.support),9,_f),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"confirmed_unsupported")},a(t.unsupported),9,mf),o("button",{type:"button",disabled:!!_.value,onClick:ne=>tl(r,"unconfirmed")},a(t.unconfirmed),9,yf)])]))),128)),je.value.length?G("",!0):(x(),S("li",bf,a(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(x(),S("section",wf,[o("div",kf,[o("div",Cf,[o("header",null,[o("h2",null,a(t.generationLogs),1),o("span",null,a(_e.value.generation.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.generation,r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),o("span",null,a(r.created_at),1)]))),128)),_e.value.generation.length?G("",!0):(x(),S("li",xf,a(t.emptyGenerationLogs),1))])]),o("div",Sf,[o("header",null,[o("h2",null,a(t.errorLogs),1),o("span",null,a(_e.value.errors.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.errors,r=>(x(),S("li",{key:`${r.source}-${r.id}`},[o("div",null,[o("strong",null,a(r.source),1),o("small",null,a(r.error_message??t.noErrorDetail),1)]),o("span",Pf,a(r.status),1)]))),128)),_e.value.errors.length?G("",!0):(x(),S("li",Df,a(t.emptyErrors),1))])])]),o("div",Tf,[o("div",Ef,[o("header",null,[o("h2",null,a(t.workflowLogs),1),o("span",null,a(_e.value.workflows.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.workflows,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.workflow_id),1)]),o("span",null,a(r.branch_name??"main"),1)]))),128)),_e.value.workflows.length?G("",!0):(x(),S("li",Of,a(t.emptyWorkflowLogs),1))])]),o("div",If,[o("header",null,[o("h2",null,a(t.integrationLogs),1),o("span",null,a(_e.value.integrations.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.integrations,r=>(x(),S("li",{key:r.integration_log_id},[o("div",null,[o("strong",null,a(r.integration_name),1),o("small",null,a(r.action),1)]),o("span",Af,a(r.status),1)]))),128)),_e.value.integrations.length?G("",!0):(x(),S("li",Mf,a(t.emptyIntegrationLogs),1))])])]),o("div",$f,[o("header",null,[o("h2",null,a(t.auditLogs),1),o("span",null,a(_e.value.audit.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(_e.value.audit,r=>(x(),S("li",{key:r.audit_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),o("span",null,a(r.created_at),1)]))),128)),_e.value.audit.length?G("",!0):(x(),S("li",Rf,a(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(x(),S("section",Uf,[o("div",Bf,[o("button",{type:"button",disabled:!!_.value,onClick:Ei},a(t.reload),9,Vf),o("button",{type:"button",disabled:!!_.value,onClick:c[59]||(c[59]=r=>Lt())},a(t.reset),9,Lf),o("button",{type:"button",disabled:!!_.value,onClick:Ai},a(t.validate),9,Ff),o("button",{type:"button",disabled:!!_.value,onClick:Mi},a(t.diff),9,Nf),o("button",{type:"button",disabled:!!_.value,onClick:$i},a(t.save),9,jf),o("button",{type:"button",disabled:!!_.value,onClick:Oi},a(t.exportRedacted),9,Wf),o("button",{type:"button",disabled:!!_.value,onClick:ql},a(t.loadSnapshots),9,Hf)]),o("div",Kf,[(x(!0),S(Y,null,ve(((no=de.value)==null?void 0:no.sections)??[],r=>(x(),S("article",{key:r.key},[o("h2",null,a(r.title),1),o("span",null,a(r.fields.length),1)]))),128))]),o("section",qf,[o("header",null,[o("h2",null,a(t.settingsEditor),1),o("span",null,a(((lo=H.value)==null?void 0:lo.config_path)??"***PATH***"),1)]),M(o("textarea",{"onUpdate:modelValue":c[60]||(c[60]=r=>ht.value=r),spellcheck:"false"},null,512),[[B,ht.value]])]),o("section",Jf,[o("header",null,[o("h2",null,a(t.importSettings),1),o("button",{type:"button",disabled:!!_.value||!nt.value,onClick:Ri},a(t.importSettings),9,Gf)]),M(o("textarea",{"onUpdate:modelValue":c[61]||(c[61]=r=>nt.value=r),spellcheck:"false"},null,512),[[B,nt.value]])]),o("section",zf,[o("header",null,[o("h2",null,a(t.snapshots),1),o("span",null,a(Ct.value.length),1)]),o("ul",null,[(x(!0),S(Y,null,ve(Ct.value,r=>(x(),S("li",{key:r.snapshot_id},[o("div",null,[o("strong",null,a(r.reason),1),o("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),o("button",{type:"button",disabled:!!_.value,onClick:ne=>Ui(r.snapshot_id)},a(t.rollback),9,Yf)]))),128))])]),o("div",Qf,[o("div",Xf,[o("header",null,[o("h2",null,a(t.validationResult),1),o("span",null,a(((oo=xt.value)==null?void 0:oo.valid)??"-"),1)]),o("pre",null,a(JSON.stringify(xt.value??{},null,2)),1)]),o("div",Zf,[o("header",null,[o("h2",null,a(t.diffResult),1),o("span",null,a(((so=ke.value)==null?void 0:so.changes.length)??0),1)]),o("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",ep,[o("h2",null,a(t.running),1),o("dl",null,[o("div",null,[c[64]||(c[64]=o("dt",null,"Pending",-1)),o("dd",null,a(((io=i.value)==null?void 0:io.queue.pending)??0),1)]),o("div",null,[c[65]||(c[65]=o("dt",null,"Running",-1)),o("dd",null,a(((ro=i.value)==null?void 0:ro.queue.running)??0),1)]),o("div",null,[c[66]||(c[66]=o("dt",null,"Failed",-1)),o("dd",null,a(((ao=i.value)==null?void 0:ao.queue.failed)??0),1)]),o("div",null,[c[67]||(c[67]=o("dt",null,"Dead",-1)),o("dd",null,a(((uo=i.value)==null?void 0:uo.queue.dead_letter)??0),1)])]),o("h2",null,a(t.storage),1),o("dl",null,[o("div",null,[c[68]||(c[68]=o("dt",null,"Images",-1)),o("dd",null,a(ol(Gl("storage://images/"))),1)]),o("div",null,[c[69]||(c[69]=o("dt",null,"Materials",-1)),o("dd",null,a(ol(Gl("storage://materials/"))),1)])])])])}}}),np=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},lp=np(tp,[["__scopeId","data-v-a37d195e"]]);yu(lp).mount("#app"); diff --git a/web/assets/index-Dp0aKiRk.css b/web/assets/index-Dp0aKiRk.css deleted file mode 100644 index 339ae2f..0000000 --- a/web/assets/index-Dp0aKiRk.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-a37d195e]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-a37d195e],.inspector[data-v-a37d195e]{background:#fff}.sidebar[data-v-a37d195e]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-a37d195e]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-a37d195e]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-a37d195e]{font-size:19px}.brand span[data-v-a37d195e],p[data-v-a37d195e],dt[data-v-a37d195e],.empty[data-v-a37d195e],small[data-v-a37d195e]{color:#667085}nav[data-v-a37d195e]{display:grid;gap:6px}button[data-v-a37d195e]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-a37d195e]:disabled{cursor:wait;opacity:.62}nav button[data-v-a37d195e]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-a37d195e]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-a37d195e]{min-width:0;padding:24px}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e],.toolbar[data-v-a37d195e],.inline-actions[data-v-a37d195e]{display:flex;gap:12px;align-items:center}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e]{justify-content:space-between}.actions[data-v-a37d195e],.inline-actions[data-v-a37d195e]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-a37d195e],.toolbar button[data-v-a37d195e],.list-view header button[data-v-a37d195e],.inline-actions button[data-v-a37d195e]{padding:0 14px}h1[data-v-a37d195e],h2[data-v-a37d195e],p[data-v-a37d195e],dl[data-v-a37d195e],dd[data-v-a37d195e]{margin:0}h1[data-v-a37d195e]{min-height:30px;font-size:26px}h2[data-v-a37d195e]{font-size:15px}.notice[data-v-a37d195e],article[data-v-a37d195e],.list-view[data-v-a37d195e],.editor-panel[data-v-a37d195e],pre[data-v-a37d195e]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-a37d195e]{margin-top:18px;padding:14px}.error[data-v-a37d195e]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-a37d195e],.split-view[data-v-a37d195e]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-a37d195e]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-a37d195e]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-a37d195e]{display:grid;gap:8px;padding:16px}article span[data-v-a37d195e]{color:#667085;font-size:13px}article strong[data-v-a37d195e]{font-size:24px}.list-view[data-v-a37d195e],.logs-view[data-v-a37d195e],.settings-view[data-v-a37d195e]{margin-top:18px}.split-view .list-view[data-v-a37d195e],.logs-view .list-view[data-v-a37d195e]{margin-top:0}.list-view[data-v-a37d195e]{padding:16px}.editor-panel[data-v-a37d195e]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-a37d195e]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-a37d195e]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-a37d195e]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-a37d195e]{display:grid;gap:5px;min-width:0}label span[data-v-a37d195e]{color:#667085;font-size:12px}.wide-field[data-v-a37d195e]{grid-column:1 / -1}input[data-v-a37d195e],select[data-v-a37d195e]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-a37d195e]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-a37d195e]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-a37d195e]:first-child{border-top:0}li>div[data-v-a37d195e]{display:grid;gap:3px;min-width:0}li strong[data-v-a37d195e],li span[data-v-a37d195e],li small[data-v-a37d195e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-a37d195e]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-a37d195e]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-a37d195e]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-a37d195e]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-a37d195e]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-a37d195e]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-a37d195e]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-a37d195e]{display:none}}@media(max-width:820px){.web-shell[data-v-a37d195e]{grid-template-columns:1fr}.sidebar[data-v-a37d195e]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-a37d195e]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-a37d195e]{text-align:center}.dashboard-grid[data-v-a37d195e],.split-view[data-v-a37d195e],.settings-sections[data-v-a37d195e]{grid-template-columns:1fr}.topbar[data-v-a37d195e],.list-view header[data-v-a37d195e]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DvLE7l5o.js b/web/assets/index-DvLE7l5o.js new file mode 100644 index 0000000..dcafc4b --- /dev/null +++ b/web/assets/index-DvLE7l5o.js @@ -0,0 +1,17 @@ +var Yi=Object.defineProperty;var Qi=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>Qi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},Nt=[],at=()=>{},Wo=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xi=Object.prototype.hasOwnProperty,re=(e,t)=>Xi.call(e,t),W=Array.isArray,jt=e=>vn(e)==="[object Map]",Wn=e=>vn(e)==="[object Set]",co=e=>vn(e)==="[object Date]",J=e=>typeof e=="function",we=e=>typeof e=="string",ut=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ho=e=>(ce(e)||J(e))&&J(e.then)&&J(e.catch),Ko=Object.prototype.toString,vn=e=>Ko.call(e),Zi=e=>vn(e).slice(8,-1),qo=e=>vn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},er=/-\w/g,Xe=Hn(e=>e.replace(er,t=>t.slice(1).toUpperCase())),tr=/\B([A-Z])/g,Bt=Hn(e=>e.replace(tr,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),rt=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fo;const qn=()=>fo||(fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n{if(n){const l=n.split(lr);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;nhn(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ko||!J(e.toString))?Yo(e)?a(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Yo(t)?Qo(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[rl(l,i)+" =>"]=s,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ut(t)?rl(t):ce(t)&&!W(t)&&!qo(t)?String(t):t,rl=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Te;class cr{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&&Te&&(Te.active?(this.parent=Te,this.index=(Te.scopes||(Te.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Te===this)Te=this.prevScope;else{let t=Te;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nn;){let t=nn;for(nn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function ts(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ns(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),fr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function ml(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===un)||(e.globalVersion=un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=_e,l=Ze;_e=e,Ze=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||rt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=n,Ze=l,ns(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const os=[];function ct(){os.push(Ze),Ze=!1}function dt(){const e=os.pop();Ze=e===void 0?!0:e}function po(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let un=0;class pr{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ul{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(!_e||!Ze||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new pr(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,ss(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=l)}return n}trigger(t){this.version++,un++,this.notify(t)}notify(t){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$l()}}}function ss(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)ss(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yl=new WeakMap,Rt=Symbol(""),bl=Symbol(""),cn=Symbol("");function Oe(e,t,n){if(Ze&&_e){let l=yl.get(e);l||yl.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Ul),s.map=l,s.key=n),s.track()}}function mt(e,t,n,l,s,i){const u=yl.get(e);if(!u){un++;return}const d=v=>{v&&v.trigger()};if(Ml(),t==="clear")u.forEach(d);else{const v=W(e),y=v&&Il(n);if(v&&n==="length"){const _=Number(l);u.forEach((b,O)=>{(O==="length"||O===cn||!ut(O)&&O>=_)&&d(b)})}else switch((n!==void 0||u.has(void 0))&&d(u.get(n)),y&&d(u.get(cn)),t){case"add":v?y&&d(u.get("length")):(d(u.get(Rt)),jt(e)&&d(u.get(bl)));break;case"delete":v||(d(u.get(Rt)),jt(e)&&d(u.get(bl)));break;case"set":jt(e)&&d(u.get(Rt));break}}$l()}function Lt(e){const t=ie(e);return t===e?t:(Oe(t,"iterate",cn),Ge(e)?t:t.map(et))}function Gn(e){return Oe(e=ie(e),"iterate",cn),e}function st(e,t){return wt(e)?qt(Ut(e)?et(t):t):et(t)}const vr={__proto__:null,[Symbol.iterator](){return ul(this,Symbol.iterator,e=>st(this,e))},concat(...e){return Lt(this).concat(...e.map(t=>W(t)?Lt(t):t))},entries(){return ul(this,"entries",e=>(e[1]=st(this,e[1]),e))},every(e,t){return ht(this,"every",e,t,void 0,arguments)},filter(e,t){return ht(this,"filter",e,t,n=>n.map(l=>st(this,l)),arguments)},find(e,t){return ht(this,"find",e,t,n=>st(this,n),arguments)},findIndex(e,t){return ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ht(this,"findLast",e,t,n=>st(this,n),arguments)},findLastIndex(e,t){return ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return cl(this,"includes",e)},indexOf(...e){return cl(this,"indexOf",e)},join(e){return Lt(this).join(e)},lastIndexOf(...e){return cl(this,"lastIndexOf",e)},map(e,t){return ht(this,"map",e,t,void 0,arguments)},pop(){return Qt(this,"pop")},push(...e){return Qt(this,"push",e)},reduce(e,...t){return vo(this,"reduce",e,t)},reduceRight(e,...t){return vo(this,"reduceRight",e,t)},shift(){return Qt(this,"shift")},some(e,t){return ht(this,"some",e,t,void 0,arguments)},splice(...e){return Qt(this,"splice",e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return Qt(this,"unshift",e)},values(){return ul(this,"values",e=>st(this,e))}};function ul(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!Ge(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const hr=Array.prototype;function ht(e,t,n,l,s,i){const u=Gn(e),d=u!==e&&!Ge(e),v=u[t];if(v!==hr[t]){const b=v.apply(e,i);return d?et(b):b}let y=n;u!==e&&(d?y=function(b,O){return n.call(this,st(e,b),O,e)}:n.length>2&&(y=function(b,O){return n.call(this,b,O,e)}));const _=v.call(u,y,l);return d&&s?s(_):_}function vo(e,t,n,l){const s=Gn(e),i=s!==e&&!Ge(e);let u=n,d=!1;s!==e&&(i?(d=l.length===0,u=function(y,_,b){return d&&(d=!1,y=st(e,y)),n.call(this,y,st(e,_),b,e)}):n.length>3&&(u=function(y,_,b){return n.call(this,y,_,b,e)}));const v=s[t](u,...l);return d?st(e,v):v}function cl(e,t,n){const l=ie(e);Oe(l,"iterate",cn);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=ie(n[0]),l[t](...n)):s}function Qt(e,t,n=[]){ct(),Ml();const l=ie(e)[t].apply(e,n);return $l(),dt(),l}const gr=El("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function _r(e){ut(e)||(e=String(e));const t=ie(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class rs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?Dr:ds:i?cs:us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const u=W(t);if(!s){let v;if(u&&(v=vr[n]))return v;if(n==="hasOwnProperty")return _r}const d=Reflect.get(t,n,Ie(t)?t:l);if((ut(n)?is.has(n):gr(n))||(s||Oe(t,"get",n),i))return d;if(Ie(d)){const v=u&&Il(n)?d:d.value;return s&&ce(v)?kl(v):v}return ce(d)?s?kl(d):Vl(d):d}}class as extends rs{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const u=W(t)&&Il(n);if(!this._isShallow){const y=wt(i);if(!Ge(l)&&!wt(l)&&(i=ie(i),l=ie(l)),!u&&Ie(i)&&!Ie(l))return y||(i.value=l),!0}const d=u?Number(n)e,Pn=e=>Reflect.getPrototypeOf(e);function kr(e,t,n){return function(...l){const s=this.__v_raw,i=ie(s),u=jt(i),d=e==="entries"||e===Symbol.iterator&&u,v=e==="keys"&&u,y=s[e](...l),_=n?wl:t?qt:et;return!t&&Oe(i,"iterate",v?bl:Rt),Ee(Object.create(y),{next(){const{value:b,done:O}=y.next();return O?{value:b,done:O}:{value:d?[_(b[0]),_(b[1])]:_(b),done:O}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cr(e,t){const n={get(s){const i=this.__v_raw,u=ie(i),d=ie(s);e||(rt(s,d)&&Oe(u,"get",s),Oe(u,"get",d));const{has:v}=Pn(u),y=t?wl:e?qt:et;if(v.call(u,s))return y(i.get(s));if(v.call(u,d))return y(i.get(d));i!==u&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Oe(ie(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,u=ie(i),d=ie(s);return e||(rt(s,d)&&Oe(u,"has",s),Oe(u,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const u=this,d=u.__v_raw,v=ie(d),y=t?wl:e?qt:et;return!e&&Oe(v,"iterate",Rt),d.forEach((_,b)=>s.call(i,y(_),y(b),u))}};return Ee(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(s){const i=ie(this),u=Pn(i),d=ie(s),v=!t&&!Ge(s)&&!wt(s)?d:s;return u.has.call(i,v)||rt(s,v)&&u.has.call(i,s)||rt(d,v)&&u.has.call(i,d)||(i.add(v),mt(i,"add",v,v)),this},set(s,i){!t&&!Ge(i)&&!wt(i)&&(i=ie(i));const u=ie(this),{has:d,get:v}=Pn(u);let y=d.call(u,s);y||(s=ie(s),y=d.call(u,s));const _=v.call(u,s);return u.set(s,i),y?rt(i,_)&&mt(u,"set",s,i):mt(u,"add",s,i),this},delete(s){const i=ie(this),{has:u,get:d}=Pn(i);let v=u.call(i,s);v||(s=ie(s),v=u.call(i,s)),d&&d.call(i,s);const y=i.delete(s);return v&&mt(i,"delete",s,void 0),y},clear(){const s=ie(this),i=s.size!==0,u=s.clear();return i&&mt(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=kr(s,e,t)}),n}function Bl(e,t){const n=Cr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(re(n,s)&&s in l?n:l,s,i)}const xr={get:Bl(!1,!1)},Sr={get:Bl(!1,!0)},Pr={get:Bl(!0,!1)};const us=new WeakMap,cs=new WeakMap,ds=new WeakMap,Dr=new WeakMap;function Tr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return wt(e)?e:Ll(e,!1,yr,xr,us)}function Er(e){return Ll(e,!1,wr,Sr,cs)}function kl(e){return Ll(e,!0,br,Pr,ds)}function Ll(e,t,n,l,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const u=Tr(Zi(e));if(u===0)return e;const d=new Proxy(e,u===2?l:n);return s.set(e,d),d}function Ut(e){return wt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Or(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Go(e,"__v_skip",!0),e}const et=e=>ce(e)?Vl(e):e,qt=e=>ce(e)?kl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function F(e){return Ir(e,!1)}function Ir(e,t){return Ie(e)?e:new Ar(e,t)}class Ar{constructor(t,n){this.dep=new Ul,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||Ge(t)||wt(t);t=l?t:ie(t),rt(t,n)&&(this._rawValue=t,this._value=l?t:et(t),this.dep.trigger())}}function Mr(e){return Ie(e)?e.value:e}const $r={get:(e,t,n)=>t==="__v_raw"?e:Mr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function fs(e){return Ut(e)?e:new Proxy(e,$r)}class Rr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ul(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return es(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 Ur(e,t,n=!1){let l,s;return J(e)?l=e:(l=e.get,s=e.set),new Rr(l,s,n)}const Tn={},An=new WeakMap;let Mt;function Br(e,t=!1,n=Mt){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function Vr(e,t,n=pe){const{immediate:l,deep:s,once:i,scheduler:u,augmentJob:d,call:v}=n,y=V=>s?V:Ge(V)||s===!1||s===0?yt(V,1):yt(V);let _,b,O,M,Z=!1,N=!1;if(Ie(e)?(b=()=>e.value,Z=Ge(e)):Ut(e)?(b=()=>y(e),Z=!0):W(e)?(N=!0,Z=e.some(V=>Ut(V)||Ge(V)),b=()=>e.map(V=>{if(Ie(V))return V.value;if(Ut(V))return y(V);if(J(V))return v?v(V,2):V()})):J(e)?t?b=v?()=>v(e,2):e:b=()=>{if(O){ct();try{O()}finally{dt()}}const V=Mt;Mt=_;try{return v?v(e,3,[M]):e(M)}finally{Mt=V}}:b=at,t&&s){const V=b,fe=s===!0?1/0:s;b=()=>yt(V(),fe)}const ve=dr(),de=()=>{_.stop(),ve&&ve.active&&Ol(ve.effects,_)};if(i&&t){const V=t;t=(...fe)=>{const Ae=V(...fe);return de(),Ae}}let H=N?new Array(e.length).fill(Tn):Tn;const ae=V=>{if(!(!(_.flags&1)||!_.dirty&&!V))if(t){const fe=_.run();if(V||s||Z||(N?fe.some((Ae,Me)=>rt(Ae,H[Me])):rt(fe,H))){O&&O();const Ae=Mt;Mt=_;try{const Me=[fe,H===Tn?void 0:N&&H[0]===Tn?[]:H,M];H=fe,v?v(t,3,Me):t(...Me)}finally{Mt=Ae}}}else _.run()};return d&&d(ae),_=new Xo(b),_.scheduler=u?()=>u(ae,!1):ae,M=V=>Br(V,!1,_),O=_.onStop=()=>{const V=An.get(_);if(V){if(v)v(V,4);else for(const fe of V)fe();An.delete(_)}},t?l?ae(!0):H=_.run():u?u(ae.bind(null,!0),!0):_.run(),de.pause=_.pause.bind(_),de.resume=_.resume.bind(_),de.stop=de,de}function yt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))yt(e.value,t,n);else if(W(e))for(let l=0;l{yt(l,t,n)});else if(qo(e)){for(const l in e)yt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&yt(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function gn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function tt(e,t,n,l){if(J(e)){const s=gn(e,t,n,l);return s&&Ho(s)&&s.catch(i=>{zn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i>>1,s=Ue[l],i=dn(s);i=dn(n)?Ue.push(e):Ue.splice(Fr(t),0,e),e.flags|=1,hs()}}function hs(){Mn||(Mn=ps.then(_s))}function Nr(e){W(e)?Wt.push(...e):Tt&&e.id===-1?Tt.splice(Ft+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),hs()}function ho(e,t,n=ot+1){for(;ndn(n)-dn(l));if(Wt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(ot=0;ot{l._d&&Po(-1);const i=$n(t);let u;try{u=e(...s)}finally{$n(i),l._d&&Po(1)}return u};return l._n=!0,l._c=!0,l._d=!0,l}function A(e,t){if(Je===null)return e;const n=Zn(Je),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&J(t)?t.call(l&&l.proxy):t}}const Hr=Symbol.for("v-scx"),Kr=()=>On(Hr);function dl(e,t,n){return ys(e,t,n)}function ys(e,t,n=pe){const{immediate:l,deep:s,flush:i,once:u}=n,d=Ee({},n),v=t&&l||!t&&i!=="post";let y;if(pn){if(i==="sync"){const M=Kr();y=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=at,M.resume=at,M.pause=at,M}}const _=Be;d.call=(M,Z,N)=>tt(M,_,Z,N);let b=!1;i==="post"?d.scheduler=M=>{Fe(M,_&&_.suspense)}:i!=="sync"&&(b=!0,d.scheduler=(M,Z)=>{Z?M():Nl(M)}),d.augmentJob=M=>{t&&(M.flags|=4),b&&(M.flags|=2,_&&(M.id=_.uid,M.i=_))};const O=Vr(e,t,d);return pn&&(y?y.push(O):v&&O()),O}function qr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?bs(l,e):()=>l[e]:e.bind(l,l);let i;J(t)?i=t:(i=t.handler,n=t);const u=_n(this),d=ys(s,i.bind(l),n);return u(),d}function bs(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 zr(e,t){return J(e)?Ee({name:e.name},t,{setup:e}):e}function ws(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function go(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Rn=new WeakMap;function on(e,t,n,l,s=!1){if(W(e)){e.forEach((N,ve)=>on(N,t&&(W(t)?t[ve]:t),n,l,s));return}if(sn(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&on(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,u=s?null:i,{i:d,r:v}=e,y=t&&t.r,_=d.refs===pe?d.refs={}:d.refs,b=d.setupState,O=ie(b),M=b===pe?Wo:N=>go(_,N)?!1:re(O,N),Z=(N,ve)=>!(ve&&go(_,ve));if(y!=null&&y!==v){if(_o(t),we(y))_[y]=null,M(y)&&(b[y]=null);else if(Ie(y)){const N=t;Z(y,N.k)&&(y.value=null),N.k&&(_[N.k]=null)}}if(J(v)){ct();try{gn(v,d,12,[u,_])}finally{dt()}}else{const N=we(v),ve=Ie(v);if(N||ve){const de=()=>{if(e.f){const H=N?M(v)?b[v]:_[v]:Z()||!e.k?v.value:_[e.k];if(s)W(H)&&Ol(H,i);else if(W(H))H.includes(i)||H.push(i);else if(N)_[v]=[i],M(v)&&(b[v]=_[v]);else{const ae=[i];Z(v,e.k)&&(v.value=ae),e.k&&(_[e.k]=ae)}}else N?(_[v]=u,M(v)&&(b[v]=u)):ve&&(Z(v,e.k)&&(v.value=u),e.k&&(_[e.k]=u))};if(u){const H=()=>{de(),Rn.delete(e)};H.id=-1,Rn.set(e,H),Fe(H,n)}else _o(e),de()}}}function _o(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,ks=e=>e.type.__isKeepAlive;function Yr(e,t){Cs(e,"a",t)}function Qr(e,t){Cs(e,"da",t)}function Cs(e,t,n=Be){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)ks(s.parent.vnode)&&Xr(l,t,n,s),s=s.parent}}function Xr(e,t,n,l){const s=Yn(t,e,l,!0);Ss(()=>{Ol(l[t],s)},n)}function Yn(e,t,n=Be,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...u)=>{ct();const d=_n(n),v=tt(t,n,e,u);return d(),dt(),v});return l?s.unshift(i):s.push(i),i}}const kt=e=>(t,n=Be)=>{(!pn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Zr=kt("bm"),xs=kt("m"),ea=kt("bu"),ta=kt("u"),na=kt("bum"),Ss=kt("um"),la=kt("sp"),oa=kt("rtg"),sa=kt("rtc");function ia(e,t=Be){Yn("ec",e,t)}const ra=Symbol.for("v-ndc");function ge(e,t,n,l){let s;const i=n,u=W(e);if(u||we(e)){const d=u&&Ut(e);let v=!1,y=!1;d&&(v=!Ge(e),y=wt(e),e=Gn(e)),s=new Array(e.length);for(let _=0,b=e.length;_t(d,v,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let v=0,y=d.length;ve?qs(e)?Zn(e):Cl(e.parent):null,rn=Ee(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=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{Nl(e.update)}),$nextTick:e=>e.n||(e.n=vs.bind(e.proxy)),$watch:e=>qr.bind(e)}),pl=(e,t)=>e!==pe&&!e.__isScriptSetup&&re(e,t),aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:u,type:d,appContext:v}=e;if(t[0]!=="$"){const O=u[t];if(O!==void 0)switch(O){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(pl(l,t))return u[t]=1,l[t];if(s!==pe&&re(s,t))return u[t]=2,s[t];if(re(i,t))return u[t]=3,i[t];if(n!==pe&&re(n,t))return u[t]=4,n[t];xl&&(u[t]=0)}}const y=rn[t];let _,b;if(y)return t==="$attrs"&&Oe(e.attrs,"get",""),y(e);if((_=d.__cssModules)&&(_=_[t]))return _;if(n!==pe&&re(n,t))return u[t]=4,n[t];if(b=v.config.globalProperties,re(b,t))return b[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return pl(s,t)?(s[t]=n,!0):l!==pe&&re(l,t)?(l[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:u}},d){let v;return!!(n[d]||e!==pe&&d[0]!=="$"&&re(e,d)||pl(t,d)||re(i,d)||re(l,d)||re(rn,d)||re(s.config.globalProperties,d)||(v=u.__cssModules)&&v[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mo(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xl=!0;function ua(e){const t=Ds(e),n=e.proxy,l=e.ctx;xl=!1,t.beforeCreate&&yo(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:u,watch:d,provide:v,inject:y,created:_,beforeMount:b,mounted:O,beforeUpdate:M,updated:Z,activated:N,deactivated:ve,beforeDestroy:de,beforeUnmount:H,destroyed:ae,unmounted:V,render:fe,renderTracked:Ae,renderTriggered:Me,errorCaptured:Ne,serverPrefetch:ft,expose:me,inheritAttrs:Ve,components:pt,directives:nt,filters:Ct}=t;if(y&&ca(y,l,null),u)for(const U in u){const ee=u[U];J(ee)&&(l[U]=ee.bind(n))}if(s){const U=s.call(n,n);ce(U)&&(e.data=Vl(U))}if(xl=!0,i)for(const U in i){const ee=i[U],X=J(ee)?ee.bind(n,n):J(ee.get)?ee.get.bind(n,n):at,je=!J(ee)&&J(ee.set)?ee.set.bind(n):at,Le=Dt({get:X,set:je});Object.defineProperty(l,U,{enumerable:!0,configurable:!0,get:()=>Le.value,set:K=>Le.value=K})}if(d)for(const U in d)Ps(d[U],l,n,U);if(v){const U=J(v)?v.call(n):v;Reflect.ownKeys(U).forEach(ee=>{Wr(ee,U[ee])})}_&&yo(_,e,"c");function ke(U,ee){W(ee)?ee.forEach(X=>U(X.bind(n))):ee&&U(ee.bind(n))}if(ke(Zr,b),ke(xs,O),ke(ea,M),ke(ta,Z),ke(Yr,N),ke(Qr,ve),ke(ia,Ne),ke(sa,Ae),ke(oa,Me),ke(na,H),ke(Ss,V),ke(la,ft),W(me))if(me.length){const U=e.exposed||(e.exposed={});me.forEach(ee=>{Object.defineProperty(U,ee,{get:()=>n[ee],set:X=>n[ee]=X,enumerable:!0})})}else e.exposed||(e.exposed={});fe&&e.render===at&&(e.render=fe),Ve!=null&&(e.inheritAttrs=Ve),pt&&(e.components=pt),nt&&(e.directives=nt),ft&&ws(e)}function ca(e,t,n=at){W(e)&&(e=Sl(e));for(const l in e){const s=e[l];let i;ce(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Ie(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:u=>i.value=u}):t[l]=i}}function yo(e,t,n){tt(W(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ps(e,t,n,l){let s=l.includes(".")?bs(n,l):()=>n[l];if(we(e)){const i=t[e];J(i)&&dl(s,i)}else if(J(e))dl(s,e.bind(n));else if(ce(e))if(W(e))e.forEach(i=>Ps(i,t,n,l));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&dl(s,i,e)}}function Ds(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:u}}=e.appContext,d=i.get(t);let v;return d?v=d:!s.length&&!n&&!l?v=t:(v={},s.length&&s.forEach(y=>Un(v,y,u,!0)),Un(v,t,u)),ce(t)&&i.set(t,v),v}function Un(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Un(e,i,n,!0),s&&s.forEach(u=>Un(e,u,n,!0));for(const u in t)if(!(l&&u==="expose")){const d=da[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const da={data:bo,props:wo,emits:wo,methods:Zt,computed:Zt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Zt,directives:Zt,watch:pa,provide:bo,inject:fa};function bo(e,t){return t?e?function(){return Ee(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function fa(e,t){return Zt(Sl(e),Sl(t))}function Sl(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function _a(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||pe;let s=n;const i=t.startsWith("update:"),u=i&&ga(l,t.slice(7));u&&(u.trim&&(s=n.map(_=>we(_)?_.trim():_)),u.number&&(s=n.map(Kn)));let d,v=l[d=il(t)]||l[d=il(Xe(t))];!v&&i&&(v=l[d=il(Bt(t))]),v&&tt(v,e,6,s);const y=l[d+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tt(y,e,6,s)}}const ma=new WeakMap;function Es(e,t,n=!1){const l=n?ma:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let u={},d=!1;if(!J(e)){const v=y=>{const _=Es(y,t,!0);_&&(d=!0,Ee(u,_))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!d?(ce(e)&&l.set(e,null),null):(W(i)?i.forEach(v=>u[v]=null):Ee(u,i),ce(e)&&l.set(e,u),u)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Bt(t))||re(e,t))}function ko(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:u,attrs:d,emit:v,render:y,renderCache:_,props:b,data:O,setupState:M,ctx:Z,inheritAttrs:N}=e,ve=$n(e);let de,H;try{if(n.shapeFlag&4){const V=s||l,fe=V;de=it(y.call(fe,V,_,b,M,O,Z)),H=d}else{const V=t;de=it(V.length>1?V(b,{attrs:d,slots:u,emit:v}):V(b,null)),H=t.props?d:ya(d)}}catch(V){an.length=0,zn(V,e,1),de=bt(Et)}let ae=de;if(H&&N!==!1){const V=Object.keys(H),{shapeFlag:fe}=ae;V.length&&fe&7&&(i&&V.some(jn)&&(H=ba(H,i)),ae=Jt(ae,H,!1,!0))}return n.dirs&&(ae=Jt(ae,null,!1,!0),ae.dirs=ae.dirs?ae.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ae,n.transition),de=ae,$n(ve),de}const ya=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ba=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function wa(e,t,n){const{props:l,children:s,component:i}=e,{props:u,children:d,patchFlag:v}=t,y=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return l?Co(l,u,y):!!u;if(v&8){const _=t.dynamicProps;for(let b=0;b<_.length;b++){const O=_[b];if(Os(u,l,O)&&!Qn(y,O))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:l===u?!1:l?u?Co(l,u,y):!0:!!u;return!1}function Co(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Is),Ms=e=>Object.getPrototypeOf(e)===Is;function Ca(e,t,n,l=!1){const s={},i=As();e.propsDefaults=Object.create(null),$s(e,t,s,i);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);n?e.props=l?s:Er(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function xa(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:u}}=e,d=ie(s),[v]=e.propsOptions;let y=!1;if((l||u>0)&&!(u&16)){if(u&8){const _=e.vnode.dynamicProps;for(let b=0;b<_.length;b++){let O=_[b];if(Qn(e.emitsOptions,O))continue;const M=t[O];if(v)if(re(i,O))M!==i[O]&&(i[O]=M,y=!0);else{const Z=Xe(O);s[Z]=Pl(v,d,Z,M,e,!1)}else M!==i[O]&&(i[O]=M,y=!0)}}}else{$s(e,t,s,i)&&(y=!0);let _;for(const b in d)(!t||!re(t,b)&&((_=Bt(b))===b||!re(t,_)))&&(v?n&&(n[b]!==void 0||n[_]!==void 0)&&(s[b]=Pl(v,d,b,void 0,e,!0)):delete s[b]);if(i!==d)for(const b in i)(!t||!re(t,b))&&(delete i[b],y=!0)}y&&mt(e.attrs,"set","")}function $s(e,t,n,l){const[s,i]=e.propsOptions;let u=!1,d;if(t)for(let v in t){if(tn(v))continue;const y=t[v];let _;s&&re(s,_=Xe(v))?!i||!i.includes(_)?n[_]=y:(d||(d={}))[_]=y:Qn(e.emitsOptions,v)||(!(v in l)||y!==l[v])&&(l[v]=y,u=!0)}if(i){const v=ie(n),y=d||pe;for(let _=0;_{v=!0;const[O,M]=Rs(b,t,!0);Ee(u,O),M&&d.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!v)return ce(e)&&l.set(e,Nt),Nt;if(W(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Hl=e=>W(e)?e.map(it):[it(e)],Pa=(e,t,n)=>{if(t._n)return t;const l=jr((...s)=>Hl(t(...s)),n);return l._c=!1,l},Us=(e,t,n)=>{const l=e._ctx;for(const s in e){if(Wl(s))continue;const i=e[s];if(J(i))t[s]=Pa(s,i,l);else if(i!=null){const u=Hl(i);t[s]=()=>u}}},Bs=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const l in t)(n||!Wl(l))&&(e[l]=t[l])},Da=(e,t,n)=>{const l=e.slots=As();if(e.vnode.shapeFlag&32){const s=t._;s?(Vs(l,t,n),n&&Go(l,"_",s,!0)):Us(t,l)}else t&&Bs(e,t)},Ta=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,u=pe;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:Vs(s,t,n):(i=!t.$stable,Us(t,s)),u=t}else t&&(Bs(e,t),u={default:1});if(i)for(const d in s)!Wl(d)&&u[d]==null&&delete s[d]},Fe=Ma;function Ea(e){return Oa(e)}function Oa(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:u,createText:d,createComment:v,setText:y,setElementText:_,parentNode:b,nextSibling:O,setScopeId:M=at,insertStaticContent:Z}=e,N=(p,h,m,C=null,g=null,w=null,P=void 0,T=null,D=!!h.dynamicChildren)=>{if(p===h)return;p&&!Xt(p,h)&&(C=be(p),K(p,g,w,!0),p=null),h.patchFlag===-2&&(D=!1,h.dynamicChildren=null);const{type:k,ref:L,shapeFlag:I}=h;switch(k){case Xn:ve(p,h,m,C);break;case Et:de(p,h,m,C);break;case hl:p==null&&H(h,m,C,P);break;case Q:pt(p,h,m,C,g,w,P,T,D);break;default:I&1?fe(p,h,m,C,g,w,P,T,D):I&6?nt(p,h,m,C,g,w,P,T,D):(I&64||I&128)&&k.process(p,h,m,C,g,w,P,T,D,Pe)}L!=null&&g?on(L,p&&p.ref,w,h||p,!h):L==null&&p&&p.ref!=null&&on(p.ref,null,w,p,!0)},ve=(p,h,m,C)=>{if(p==null)l(h.el=d(h.children),m,C);else{const g=h.el=p.el;h.children!==p.children&&y(g,h.children)}},de=(p,h,m,C)=>{p==null?l(h.el=v(h.children||""),m,C):h.el=p.el},H=(p,h,m,C)=>{[p.el,p.anchor]=Z(p.children,h,m,C,p.el,p.anchor)},ae=({el:p,anchor:h},m,C)=>{let g;for(;p&&p!==h;)g=O(p),l(p,m,C),p=g;l(h,m,C)},V=({el:p,anchor:h})=>{let m;for(;p&&p!==h;)m=O(p),s(p),p=m;s(h)},fe=(p,h,m,C,g,w,P,T,D)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),p==null)Ae(h,m,C,g,w,P,T,D);else{const k=p.el&&p.el._isVueCE?p.el:null;try{k&&k._beginPatch(),ft(p,h,g,w,P,T,D)}finally{k&&k._endPatch()}}},Ae=(p,h,m,C,g,w,P,T)=>{let D,k;const{props:L,shapeFlag:I,transition:B,dirs:j}=p;if(D=p.el=u(p.type,w,L&&L.is,L),I&8?_(D,p.children):I&16&&Ne(p.children,D,null,C,g,vl(p,w),P,T),j&&Ot(p,null,C,"created"),Me(D,p,p.scopeId,P,C),L){for(const ue in L)ue!=="value"&&!tn(ue)&&i(D,ue,null,L[ue],w,C);"value"in L&&i(D,"value",null,L.value,w),(k=L.onVnodeBeforeMount)&<(k,C,p)}j&&Ot(p,null,C,"beforeMount");const Y=Ia(g,B);Y&&B.beforeEnter(D),l(D,h,m),((k=L&&L.onVnodeMounted)||Y||j)&&Fe(()=>{try{k&<(k,C,p),Y&&B.enter(D),j&&Ot(p,null,C,"mounted")}finally{}},g)},Me=(p,h,m,C,g)=>{if(m&&M(p,m),C)for(let w=0;w{for(let k=D;k{const T=h.el=p.el;let{patchFlag:D,dynamicChildren:k,dirs:L}=h;D|=p.patchFlag&16;const I=p.props||pe,B=h.props||pe;let j;if(m&&It(m,!1),(j=B.onVnodeBeforeUpdate)&<(j,m,h,p),L&&Ot(h,p,m,"beforeUpdate"),m&&It(m,!0),k&&(!p.dynamicChildren||p.dynamicChildren.length!==k.length)&&(D=0,P=!1,k=null),(I.innerHTML&&B.innerHTML==null||I.textContent&&B.textContent==null)&&_(T,""),k?me(p.dynamicChildren,k,T,m,C,vl(h,g),w):P||ee(p,h,T,null,m,C,vl(h,g),w,!1),D>0){if(D&16)Ve(T,I,B,m,g);else if(D&2&&I.class!==B.class&&i(T,"class",null,B.class,g),D&4&&i(T,"style",I.style,B.style,g),D&8){const Y=h.dynamicProps;for(let ue=0;ue{j&<(j,m,h,p),L&&Ot(h,p,m,"updated")},C)},me=(p,h,m,C,g,w,P)=>{for(let T=0;T{if(h!==m){if(h!==pe)for(const w in h)!tn(w)&&!(w in m)&&i(p,w,h[w],null,g,C);for(const w in m){if(tn(w))continue;const P=m[w],T=h[w];P!==T&&w!=="value"&&i(p,w,T,P,g,C)}"value"in m&&i(p,"value",h.value,m.value,g)}},pt=(p,h,m,C,g,w,P,T,D)=>{const k=h.el=p?p.el:d(""),L=h.anchor=p?p.anchor:d("");let{patchFlag:I,dynamicChildren:B,slotScopeIds:j}=h;j&&(T=T?T.concat(j):j),p==null?(l(k,m,C),l(L,m,C),Ne(h.children||[],m,L,g,w,P,T,D)):I>0&&I&64&&B&&p.dynamicChildren&&p.dynamicChildren.length===B.length?(me(p.dynamicChildren,B,m,g,w,P,T),(h.key!=null||g&&h===g.subTree)&&Ls(p,h,!0)):ee(p,h,m,L,g,w,P,T,D)},nt=(p,h,m,C,g,w,P,T,D)=>{h.slotScopeIds=T,p==null?h.shapeFlag&512?g.ctx.activate(h,m,C,P,D):Ct(h,m,C,g,w,P,D):xt(p,h,D)},Ct=(p,h,m,C,g,w,P)=>{const T=p.component=ja(p,C,g);if(ks(p)&&(T.ctx.renderer=Pe),Ha(T,!1,P),T.asyncDep){if(g&&g.registerDep(T,ke,P),!p.el){const D=T.subTree=bt(Et);de(null,D,h,m),p.placeholder=D.el}}else ke(T,p,h,m,g,w,P)},xt=(p,h,m)=>{const C=h.component=p.component;if(wa(p,h,m))if(C.asyncDep&&!C.asyncResolved){U(C,h,m);return}else C.next=h,C.update();else h.el=p.el,C.vnode=h},ke=(p,h,m,C,g,w,P)=>{const T=()=>{if(p.isMounted){let{next:I,bu:B,u:j,parent:Y,vnode:ue}=p;{const qe=Fs(p);if(qe){I&&(I.el=ue.el,U(p,I,P)),qe.asyncDep.then(()=>{Fe(()=>{p.isUnmounted||k()},g)});return}}let oe=I,he;It(p,!1),I?(I.el=ue.el,U(p,I,P)):I=ue,B&&En(B),(he=I.props&&I.props.onVnodeBeforeUpdate)&<(he,Y,I,ue),It(p,!0);const Se=ko(p),Ke=p.subTree;p.subTree=Se,N(Ke,Se,b(Ke.el),be(Ke),p,g,w),I.el=Se.el,oe===null&&ka(p,Se.el),j&&Fe(j,g),(he=I.props&&I.props.onVnodeUpdated)&&Fe(()=>lt(he,Y,I,ue),g)}else{let I;const{el:B,props:j}=h,{bm:Y,m:ue,parent:oe,root:he,type:Se}=p,Ke=sn(h);It(p,!1),Y&&En(Y),!Ke&&(I=j&&j.onVnodeBeforeMount)&<(I,oe,h),It(p,!0);{he.ce&&he.ce._hasShadowRoot()&&he.ce._injectChildStyle(Se,p.parent?p.parent.type:void 0);const qe=p.subTree=ko(p);N(null,qe,m,C,p,g,w),h.el=qe.el}if(ue&&Fe(ue,g),!Ke&&(I=j&&j.onVnodeMounted)){const qe=h;Fe(()=>lt(I,oe,qe),g)}(h.shapeFlag&256||oe&&sn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&Fe(p.a,g),p.isMounted=!0,h=m=C=null}};p.scope.on();const D=p.effect=new Xo(T);p.scope.off();const k=p.update=D.run.bind(D),L=p.job=D.runIfDirty.bind(D);L.i=p,L.id=p.uid,D.scheduler=()=>Nl(L),It(p,!0),k()},U=(p,h,m)=>{h.component=p;const C=p.vnode.props;p.vnode=h,p.next=null,xa(p,h.props,C,m),Ta(p,h.children,m),ct(),ho(p),dt()},ee=(p,h,m,C,g,w,P,T,D=!1)=>{const k=p&&p.children,L=p?p.shapeFlag:0,I=h.children,{patchFlag:B,shapeFlag:j}=h;if(B>0){if(B&128){je(k,I,m,C,g,w,P,T,D);return}else if(B&256){X(k,I,m,C,g,w,P,T,D);return}}j&8?(L&16&&te(k,g,w),I!==k&&_(m,I)):L&16?j&16?je(k,I,m,C,g,w,P,T,D):te(k,g,w,!0):(L&8&&_(m,""),j&16&&Ne(I,m,C,g,w,P,T,D))},X=(p,h,m,C,g,w,P,T,D)=>{p=p||Nt,h=h||Nt;const k=p.length,L=h.length,I=Math.min(k,L);let B;for(B=0;BL?te(p,g,w,!0,!1,I):Ne(h,m,C,g,w,P,T,D,I)},je=(p,h,m,C,g,w,P,T,D)=>{let k=0;const L=h.length;let I=p.length-1,B=L-1;for(;k<=I&&k<=B;){const j=p[k],Y=h[k]=D?_t(h[k]):it(h[k]);if(Xt(j,Y))N(j,Y,m,null,g,w,P,T,D);else break;k++}for(;k<=I&&k<=B;){const j=p[I],Y=h[B]=D?_t(h[B]):it(h[B]);if(Xt(j,Y))N(j,Y,m,null,g,w,P,T,D);else break;I--,B--}if(k>I){if(k<=B){const j=B+1,Y=jB)for(;k<=I;)K(p[k],g,w,!0),k++;else{const j=k,Y=k,ue=new Map;for(k=Y;k<=B;k++){const $e=h[k]=D?_t(h[k]):it(h[k]);$e.key!=null&&ue.set($e.key,k)}let oe,he=0;const Se=B-Y+1;let Ke=!1,qe=0;const vt=new Array(Se);for(k=0;k=Se){K($e,g,w,!0);continue}let ye;if($e.key!=null)ye=ue.get($e.key);else for(oe=Y;oe<=B;oe++)if(vt[oe-Y]===0&&Xt($e,h[oe])){ye=oe;break}ye===void 0?K($e,g,w,!0):(vt[ye-Y]=k+1,ye>=qe?qe=ye:Ke=!0,N($e,h[ye],m,null,g,w,P,T,D),he++)}const zt=Ke?Aa(vt):Nt;for(oe=zt.length-1,k=Se-1;k>=0;k--){const $e=Y+k,ye=h[$e],$=h[$e+1],mn=$e+1{const{el:w,type:P,transition:T,children:D,shapeFlag:k}=p;if(k&6){Le(p.component.subTree,h,m,C);return}if(k&128){p.suspense.move(h,m,C);return}if(k&64){P.move(p,h,m,Pe);return}if(P===Q){l(w,h,m);for(let I=0;IT.enter(w),g));else{const{leave:I,delayLeave:B,afterLeave:j}=T,Y=()=>{p.ctx.isUnmounted?s(w):l(w,h,m)},ue=()=>{const oe=w._isLeaving||!!w[fl];w._isLeaving&&w[fl](!0),T.persisted&&!oe?Y():I(w,()=>{Y(),j&&j()})};B?B(w,Y,ue):ue()}else l(w,h,m)},K=(p,h,m,C=!1,g=!1)=>{const{type:w,props:P,ref:T,children:D,dynamicChildren:k,shapeFlag:L,patchFlag:I,dirs:B,cacheIndex:j,memo:Y}=p;if(I===-2&&(g=!1),T!=null&&(ct(),on(T,null,m,p,!0),dt()),j!=null&&(h.renderCache[j]=void 0),L&256){h.ctx.deactivate(p);return}const ue=L&1&&B,oe=!sn(p);let he;if(oe&&(he=P&&P.onVnodeBeforeUnmount)&<(he,h,p),L&6)Ye(p.component,m,C);else{if(L&128){p.suspense.unmount(m,C);return}ue&&Ot(p,null,h,"beforeUnmount"),L&64?p.type.remove(p,h,m,Pe,C):k&&!k.hasOnce&&(w!==Q||I>0&&I&64)?te(k,h,m,!1,!0):(w===Q&&I&384||!g&&L&16)&&te(D,h,m),C&&He(p)}const Se=Y!=null&&j==null;(oe&&(he=P&&P.onVnodeUnmounted)||ue||Se)&&Fe(()=>{he&<(he,h,p),ue&&Ot(p,null,h,"unmounted"),Se&&(p.el=null)},m)},He=p=>{const{type:h,el:m,anchor:C,transition:g}=p;if(h===Q){ze(m,C);return}if(h===hl){V(p);return}const w=()=>{s(m),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(p.shapeFlag&1&&g&&!g.persisted){const{leave:P,delayLeave:T}=g,D=()=>P(m,w);T?T(p.el,w,D):D()}else w()},ze=(p,h)=>{let m;for(;p!==h;)m=O(p),s(p),p=m;s(h)},Ye=(p,h,m)=>{const{bum:C,scope:g,job:w,subTree:P,um:T,m:D,a:k}=p;So(D),So(k),C&&En(C),g.stop(),w&&(w.flags|=8,K(P,p,h,m)),T&&Fe(T,h),Fe(()=>{p.isUnmounted=!0},h)},te=(p,h,m,C=!1,g=!1,w=0)=>{for(let P=w;P{if(p.shapeFlag&6)return be(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=O(p.anchor||p.el),m=h&&h[Jr];return m?O(m):h};let xe=!1;const Ce=(p,h,m)=>{let C;p==null?h._vnode&&(K(h._vnode,null,null,!0),C=h._vnode.component):N(h._vnode||null,p,h,null,null,null,m),h._vnode=p,xe||(xe=!0,ho(C),gs(),xe=!1)},Pe={p:N,um:K,m:Le,r:He,mt:Ct,mc:Ne,pc:ee,pbc:me,n:be,o:e};return{render:Ce,hydrate:void 0,createApp:ha(Ce)}}function vl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ia(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ls(e,t,n=!1){const l=e.children,s=t.children;if(W(l)&&W(s))for(let i=0;i>1,e[n[d]]0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,u=n[i-1];i-- >0;)n[i]=u,u=t[u];return n}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}function So(e){if(e)for(let t=0;te.__isSuspense;function Ma(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Nr(e)}const Q=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),hl=Symbol.for("v-stc"),an=[];let We=null;function x(e=!1){an.push(We=e?null:[])}function $a(){an.pop(),We=an[an.length-1]||null}let fn=1;function Po(e,t=!1){fn+=e,e<0&&We&&t&&(We.hasOnce=!0)}function Ws(e){return e.dynamicChildren=fn>0?We||Nt:null,$a(),fn>0&&We&&We.push(e),e}function S(e,t,n,l,s,i){return Ws(o(e,t,n,l,s,i,!0))}function Ra(e,t,n,l,s){return Ws(bt(e,t,n,l,s,!0))}function Hs(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Ks=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ie(e)||J(e)?{i:Je,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Q?0:1,u=!1,d=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&In(t),scopeId:ms,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Je};return d?(Bn(v,n),i&128&&e.normalize(v)):n&&(v.shapeFlag|=we(n)?8:16),fn>0&&!u&&We&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&We.push(v),v}const bt=Ua;function Ua(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===ra)&&(e=Et),Hs(e)){const d=Jt(e,t,!0);return n&&Bn(d,n),fn>0&&!i&&We&&(d.shapeFlag&6?We[We.indexOf(e)]=d:We.push(d)),d.patchFlag=-2,d}if(Ga(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:d,style:v}=t;d&&!we(d)&&(t.class=Jn(d)),ce(v)&&(Fl(v)&&!W(v)&&(v=Ee({},v)),t.style=Al(v))}const u=we(e)?1:js(e)?128:Gr(e)?64:ce(e)?4:J(e)?2:0;return o(e,t,n,l,s,u,i,!0)}function Ba(e){return e?Fl(e)||Ms(e)?Ee({},e):e:null}function Jt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:u,children:d,transition:v}=e,y=t?La(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:y,key:y&&Ks(y),ref:t&&t.ref?n&&i?W(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&l&&jl(_,v.clone(_)),_}function Va(e=" ",t=0){return bt(Xn,null,e,t)}function G(e="",t=!1){return t?(x(),Ra(Et,null,e)):bt(Et,null,e)}function it(e){return e==null||typeof e=="boolean"?bt(Et):W(e)?bt(Q,null,e.slice()):Hs(e)?_t(e):bt(Xn,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Bn(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Bn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ms(t)?t._ctx=Je:s===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(l&65){Bn(e,{default:t});return}t={default:t,_ctx:Je},n=32}else t=String(t),l&64?(n=16,t=[Va(t)]):n=8;e.children=t,e.shapeFlag|=n}function La(...e){const t={};for(let n=0;nBe||Je;let Vn,Dl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(u=>u(i)):s[0](i)}};Vn=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),Dl=t("__VUE_SSR_SETTERS__",n=>pn=n)}const _n=e=>{const t=Be;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Do=()=>{Be&&Be.scope.off(),Vn(null)};function qs(e){return e.vnode.shapeFlag&4}let pn=!1;function Ha(e,t=!1,n=!1){t&&Dl(t);const{props:l,children:s}=e.vnode,i=qs(e);Ca(e,l,i,t),Da(e,s,n||t);const u=i?Ka(e,t):void 0;return t&&Dl(!1),u}function Ka(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,aa);const{setup:l}=n;if(l){ct();const s=e.setupContext=l.length>1?Ja(e):null,i=_n(e),u=gn(l,e,0,[e.props,s]),d=Ho(u);if(dt(),i(),(d||e.sp)&&!sn(e)&&ws(e),d){if(u.then(Do,Do),t)return u.then(v=>{To(e,v)}).catch(v=>{zn(v,e,0)});e.asyncDep=u}else To(e,u)}else Js(e)}function To(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=fs(t)),Js(e)}function Js(e,t,n){const l=e.type;e.render||(e.render=l.render||at);{const s=_n(e);ct();try{ua(e)}finally{dt(),s()}}}const qa={get(e,t){return Oe(e,"get",""),e[t]}};function Ja(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fs(Or(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in rn)return rn[n](e)},has(t,n){return n in t||n in rn}})):e.proxy}function Ga(e){return J(e)&&"__vccOpts"in e}const Dt=(e,t)=>Ur(e,t,pn),za="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Tl;const Eo=typeof window<"u"&&window.trustedTypes;if(Eo)try{Tl=Eo.createPolicy("vue",{createHTML:e=>e})}catch{}const Gs=Tl?e=>Tl.createHTML(e):e=>e,Ya="http://www.w3.org/2000/svg",Qa="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Oo=gt&>.createElement("template"),Xa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?gt.createElementNS(Ya,e):t==="mathml"?gt.createElementNS(Qa,e):n?gt.createElement(e,{is:n}):gt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const u=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Oo.innerHTML=Gs(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const d=Oo.content;if(l==="svg"||l==="mathml"){const v=d.firstChild;for(;v.firstChild;)d.appendChild(v.firstChild);d.removeChild(v)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Za=Symbol("_vtc");function eu(e,t,n){const l=e[Za];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),tu=Symbol("_vsh"),nu=Symbol(""),lu=/(?:^|;)\s*display\s*:/;function ou(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&en(l,d,"")}else for(const u in t)n[u]==null&&en(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?iu(e,u,!we(t)&&t?t[u]:void 0,d)||en(l,u,d):en(l,u,"")}}else if(s){if(t!==n){const u=l[nu];u&&(n+=";"+u),l.cssText=n,i=lu.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[tu]&&(l.display="none"))}const Ao=/\s*!important$/;function en(e,t,n){if(W(n))n.forEach(l=>en(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=su(e,t);Ao.test(n)?e.setProperty(Bt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function su(e,t){const n=gl[t];if(n)return n;let l=Xe(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Jo(l);for(let s=0;s_l||(fu.then(()=>_l=0),_l=Date.now());function vu(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(W(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const u=s.slice(),d=[l];for(let v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hu=(e,t,n,l,s,i)=>{const u=s==="svg";t==="class"?eu(e,l,u):t==="style"?ou(e,n,l):Nn(t)?jn(t)||au(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gu(e,t,l,u))?(Uo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ro(e,t,l,u,i,t!=="value")):e._isVueCE&&(_u(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(l)))?Uo(e,Xe(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ro(e,t,l,u))};function gu(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vo(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Vo(t)&&we(n)?!1:t in e}function _u(e,t){const n=e._def.props;if(!n)return!1;const l=Xe(t);return Array.isArray(n)?n.some(s=>Xe(s)===l):Object.keys(n).some(s=>Xe(s)===l)}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>En(t,n):t};function mu(e){e.target.composing=!0}function Lo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign");function Fo(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const R={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Kt]=Ln(s);const i=l||s.props&&s.props.type==="number";$t(e,t?"change":"input",u=>{u.target.composing||e[Kt](Fo(e.value,n,i))}),(n||i)&&$t(e,"change",()=>{e.value=Fo(e.value,n,i)}),t||($t(e,"compositionstart",mu),$t(e,"compositionend",Lo),$t(e,"change",Lo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},u){if(e[Kt]=Ln(u),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,v=t??"";if(d===v)return;const y=e.getRootNode();(y instanceof Document||y instanceof ShadowRoot)&&y.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===v)||(e.value=v)}},At={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Wn(t);$t(e,"change",()=>{const i=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Kn(Fn(u)):Fn(u));e[Kt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,vs(()=>{e._assigning=!1})}),e[Kt]=Ln(l)},mounted(e,{value:t}){No(e,t)},beforeUpdate(e,t,n){e[Kt]=Ln(n)},updated(e,{value:t}){e._assigning||No(e,t)}};function No(e,t){const n=e.multiple,l=W(t);if(!(n&&!l&&!Wn(t))){for(let s=0,i=e.options.length;sString(y)===String(d)):u.selected=ur(t,d)>-1}else u.selected=t.has(d);else if(hn(Fn(u),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const yu=Ee({patchProp:hu},Xa);let jo;function bu(){return jo||(jo=Ea(yu))}const wu=((...e)=>{const t=bu().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=Cu(l);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,ku(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t});function ku(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return we(e)?document.querySelector(e):e}const xu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",E={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,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`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,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",settingsRollback:"settings/rollback",storageStatus:"storage/status",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`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(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",webManifest:"web/manifest"};class Su extends Error{constructor(n,l,s={}){super(l);sl(this,"code");sl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function le(e,t){return Qe(e,{method:"GET",query:t})}async function z(e,t){return Qe(e,{method:"POST",body:t})}async function Qe(e,t={}){const l=await(await fetch(Pu(e,t.query),{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)})).json();if(!l.ok)throw new Su(l.error_code,l.message,l.details);return l.data}function Pu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${xu}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const Du={class:"web-shell"},Tu={class:"sidebar"},Eu={class:"brand"},Ou=["onClick"],Iu={class:"workspace"},Au={class:"topbar"},Mu={class:"actions"},$u=["disabled"],Ru={key:0,class:"notice error"},Uu={key:1,class:"notice"},Bu={key:0,class:"dashboard-grid"},Vu={key:1,class:"list-view"},Lu={class:"form-grid"},Fu={class:"wide-field"},Nu=["disabled"],ju=["disabled"],Wu={key:0},Hu={key:1,class:"form-grid"},Ku={class:"wide-field"},qu={class:"wide-field"},Ju={class:"wide-field"},Gu={class:"wide-field"},zu={class:"wide-field"},Yu=["disabled"],Qu=["disabled"],Xu={class:"inline-actions"},Zu={class:"badge"},ec=["disabled","onClick"],tc=["disabled","onClick"],nc={key:0,class:"empty"},lc={key:2,class:"split-view"},oc={class:"list-view"},sc={class:"form-grid"},ic=["disabled"],rc={class:"inline-actions"},ac={class:"badge"},uc=["disabled","onClick"],cc=["disabled","onClick"],dc=["disabled","onClick"],fc=["disabled","onClick"],pc={key:0,class:"empty"},vc={key:0,class:"editor-panel"},hc={class:"form-grid"},gc=["disabled"],_c=["disabled","onClick"],mc={class:"list-view"},yc={class:"inline-actions"},bc=["disabled"],wc={class:"form-grid"},kc={class:"wide-field"},Cc={class:"wide-field"},xc={class:"wide-field"},Sc=["disabled"],Pc=["disabled"],Dc={class:"form-grid"},Tc={class:"wide-field"},Ec=["disabled"],Oc=["disabled"],Ic={class:"inline-actions"},Ac={class:"badge"},Mc=["disabled","onClick"],$c=["disabled","onClick"],Rc=["disabled","onClick"],Uc=["disabled","onClick"],Bc={key:0,class:"empty"},Vc={class:"inline-actions"},Lc={key:0,class:"badge"},Fc=["disabled","onClick"],Nc=["disabled","onClick"],jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={key:0},Gc={key:1},zc={class:"editor-panel"},Yc={key:0,class:"empty"},Qc={key:2,class:"editor-panel"},Xc={key:3},Zc={key:3,class:"split-view"},ed={class:"list-view"},td={class:"form-grid"},nd=["disabled"],ld=["disabled"],od={class:"inline-actions"},sd=["disabled","onClick"],id=["disabled","onClick"],rd={key:0,class:"empty"},ad={class:"list-view"},ud={class:"inline-actions"},cd=["disabled"],dd={class:"form-grid"},fd={value:""},pd=["value"],vd=["disabled"],hd=["disabled"],gd={class:"inline-actions"},_d={class:"badge"},md=["disabled","onClick"],yd=["disabled","onClick"],bd=["disabled","onClick"],wd=["disabled","onClick"],kd={key:0,class:"empty"},Cd={class:"form-grid"},xd={value:""},Sd=["value"],Pd=["disabled"],Dd=["disabled"],Td={key:0},Ed={key:4,class:"list-view"},Od=["disabled"],Id={class:"form-grid"},Ad={value:""},Md=["value"],$d=["disabled"],Rd={class:"inline-actions"},Ud=["disabled","onClick"],Bd={key:0,class:"empty"},Vd={key:0},Ld={class:"form-grid"},Fd=["disabled"],Nd={key:1},jd={key:5,class:"list-view"},Wd={class:"inline-actions"},Hd=["disabled"],Kd=["disabled"],qd={class:"form-grid"},Jd={value:""},Gd=["value"],zd={value:""},Yd=["value"],Qd={value:""},Xd=["value"],Zd=["disabled"],ef={class:"inline-actions"},tf={class:"badge"},nf=["onClick"],lf=["onClick"],of=["disabled","onClick"],sf={key:0,class:"empty"},rf={key:0,class:"editor-panel"},af={key:6,class:"split-view"},uf={class:"list-view"},cf={class:"inline-actions"},df=["disabled"],ff=["disabled"],pf={class:"form-grid"},vf=["disabled"],hf={key:0},gf={class:"list-view"},_f={class:"inline-actions"},mf={class:"badge"},yf=["disabled","onClick"],bf=["disabled","onClick"],wf=["disabled","onClick"],kf={key:0,class:"empty"},Cf={key:7,class:"logs-view"},xf={class:"split-view"},Sf={class:"list-view"},Pf={key:0,class:"empty"},Df={class:"list-view"},Tf={class:"badge"},Ef={key:0,class:"empty"},Of={class:"split-view"},If={class:"list-view"},Af={key:0,class:"empty"},Mf={class:"list-view"},$f={class:"badge"},Rf={key:0,class:"empty"},Uf={class:"list-view"},Bf={class:"form-grid"},Vf=["disabled"],Lf={key:0,class:"empty"},Ff={key:8,class:"settings-view"},Nf={class:"toolbar"},jf=["disabled"],Wf=["disabled"],Hf=["disabled"],Kf=["disabled"],qf=["disabled"],Jf=["disabled"],Gf=["disabled"],zf={class:"settings-sections"},Yf={class:"editor-panel"},Qf={class:"editor-panel"},Xf=["disabled"],Zf={class:"editor-panel"},ep=["disabled","onClick"],tp={class:"split-view"},np={class:"list-view"},lp={class:"list-view"},op={class:"inspector"},sp=zr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=F("dashboard"),s=F(null),i=F(null),u=F(null),d=F([]),v=F(null),y=F([]),_=F([]),b=F(null),O=F(""),M=F([]),Z=F(null),N=F(null),ve=F(null),de=F(null),H=F(null),ae=F(null),V=F([]),fe=F(null),Ae=F([]),Me=F([]),Ne=F([]),ft=F(null),me=F({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ve=F(null),pt=F(""),nt=F(""),Ct=F([]),xt=F(null),ke=F(null),U=F({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=F(null),X=F({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),je=F({display_name:"",workflow_type:"single_image"}),Le=F({branch_name:""}),K=F({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),He=F({model_route:"",prompt:"",negative_prompt:""}),ze=F({status:"",profile_id:"",workflow_id:""}),Ye=F({action:"",target_type:"",actor_id:""}),te=F({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),be=F({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),xe=F({category_id:"",name:"",category_type:"material",sort_order:0}),Ce=F({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Pe=F({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Gt=F(null),p=F({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),h=F(null),m=F(""),C=F(!0),g=F(""),w=F(""),P=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.profile_id)??""}),T=Dt(()=>{var f,c;return((c=(f=u.value)==null?void 0:f.items[0])==null?void 0:c.name)??t.noProfile}),D=Dt(()=>{var c;const f=(c=i.value)==null?void 0:c.queue;return f?f.pending+f.running+f.failed+f.dead_letter:0}),k=Dt(()=>{var f;return((f=fe.value)==null?void 0:f.items.filter(c=>c.recognition_status!=="confirmed").length)??0}),L=Dt(()=>{var f;return(((f=fe.value)==null?void 0:f.items)??[]).filter(c=>c.recognition_status==="confirmed")}),I=Dt(()=>{var f;return((f=v.value)==null?void 0:f.nodes.find(c=>c.node_id===O.value))??null}),B=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],j=Dt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);xs(Y);async function Y(){var f,c;C.value=!0,w.value="";try{const[q,se,De,Pt,bn,Yt,wn,kn,Cn,xn,Sn]=await Promise.all([le(E.uiBootstrap),le(E.dashboardSummary),le(E.profiles,{page:1,page_size:20}),le(E.jobs,{page:1,page_size:20}),le(E.settingsSchema),le(E.settingsCurrent),le(E.storageStatus),le(E.materialCategories),le(E.materials,{page:1,page_size:24}),le(E.apiDiscoveryDialects),le(E.apiDiscoveryCapabilities)]);s.value=q,i.value=se,u.value=De,N.value=Pt,de.value=bn,H.value=Yt,Vt(Yt.config),ae.value=wn,V.value=kn,fe.value=Cn,Me.value=xn,Ne.value=Sn,await Ke((f=De.items[0])==null?void 0:f.profile_id),await qe((c=De.items[0])==null?void 0:c.profile_id),await ue()}catch(q){w.value=q instanceof Error?q.message:t.loadFailed}finally{C.value=!1}}async function ue(){const[f,c,q,se,De]=await Promise.allSettled([le(E.generationLogs,{limit:12}),le(E.workflowLogs,{limit:12}),le(E.errorLogs,{limit:12}),le(E.integrationLogs,{limit:12}),le(E.auditLogs,{limit:12})]);me.value={generation:he(f),workflows:he(c),errors:he(q),integrations:he(se),audit:he(De)}}async function oe(){me.value.audit=await le(E.auditLogs,{action:Ye.value.action||void 0,target_type:Ye.value.target_type||void 0,actor_id:Ye.value.actor_id||void 0,limit:20})}function he(f){return f.status==="fulfilled"?f.value:[]}async function Se(){N.value=await le(E.jobs,{status:ze.value.status||void 0,profile_id:ze.value.profile_id||void 0,workflow_id:ze.value.workflow_id||void 0,page:1,page_size:20})}async function Ke(f){if(!f){Ae.value=[];return}Ae.value=await le(E.wardrobe(f))}async function qe(f){var se,De;if(!f){d.value=[],v.value=null,y.value=[],_.value=[],O.value="",M.value=[];return}d.value=await le(E.profileWorkflows(f));const c=(se=v.value)==null?void 0:se.workflow.workflow_id,q=d.value.some(Pt=>Pt.workflow_id===c)?c:(De=d.value[0])==null?void 0:De.workflow_id;q?await vt(q):v.value=null}async function vt(f){var De;const c=await le(E.workflow(f));v.value=c;const q=O.value,se=c.nodes.some(Pt=>Pt.node_id===q)?q:c.workflow.current_node_id||((De=c.nodes[0])==null?void 0:De.node_id);se?await zt(se):(O.value="",M.value=[]),await $e(f)}async function zt(f){O.value=f,M.value=await le(E.nodeImages(f))}async function $e(f){const[c,q]=await Promise.all([le(E.workflowBranches(f)),le(E.workflowHistory(f))]);y.value=c,_.value=q}async function ye(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;f&&await vt(f)}async function $(f,c,q=!0){g.value=f,w.value="";try{const se=await c();m.value=`${f}${t.complete}`,f===t.exportSettings&&(m.value=`${t.exportDone}: ${!!se.redacted}`),q&&await Y()}catch(se){w.value=se instanceof Error?se.message:`${f}${t.failed}`}finally{g.value=""}}function mn(f){return $(t.retry,()=>z(E.jobRetry(f)))}function zs(f){return $(t.cancel,()=>z(E.jobCancel(f)))}function Ys(f){return $(t.detail,async()=>(ve.value=await le(E.job(f)),ve.value),!1)}function Qs(){U.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function Xs(){return $(t.quickDraft,async()=>(ee.value=await z(E.quickProfileDraft,{questionnaire:{name:U.value.name,identity:U.value.identity,personality:St(U.value.personality),hair_color:U.value.hair_color,hairstyle:U.value.hairstyle,eye_color:U.value.eye_color,style:U.value.style,clothing_keywords:St(U.value.clothing_keywords)}}),ee.value),!1)}function Zs(){var c;const f=(c=ee.value)==null?void 0:c.profile_preview;return $(t.create,async()=>{const q=await z(E.profiles,{name:(f==null?void 0:f.name)||U.value.name,description:U.value.description,base_prompt:f==null?void 0:f.base_prompt,appearance_prompt:f==null?void 0:f.appearance_prompt,style_prompt:f==null?void 0:f.style_prompt,negative_prompt:f==null?void 0:f.negative_prompt});return Qs(),m.value=t.profileCreated,q})}function ei(f){return $(t.delete,async()=>{const c=await Qe(E.profile(f),{method:"DELETE"});return m.value=t.profileDeleted,c})}function Kl(){X.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function ti(f){X.value={profile_id:f.profile_id,name:f.name,description:f.description??"",base_prompt:f.base_prompt??"",appearance_prompt:f.appearance_prompt??"",style_prompt:f.style_prompt??"",negative_prompt:f.negative_prompt??"",default_model_route:f.default_model_route??""}}function ni(){return X.value.profile_id?$(t.update,async()=>{const f=await Qe(E.profile(X.value.profile_id),{method:"PUT",body:{name:X.value.name,description:X.value.description||void 0,base_prompt:X.value.base_prompt||void 0,appearance_prompt:X.value.appearance_prompt||void 0,style_prompt:X.value.style_prompt||void 0,negative_prompt:X.value.negative_prompt||void 0,default_model_route:X.value.default_model_route||void 0}});return Kl(),m.value=t.profileUpdated,f}):Promise.resolve()}function li(){const f=P.value;return f?$(t.create,async()=>{const c=await z(E.profileWorkflows(f),{display_name:je.value.display_name,workflow_type:je.value.workflow_type});return je.value.display_name="",v.value=c,m.value=t.workflowCreated,c}):Promise.resolve()}function oi(f){return $(t.start,()=>z(E.workflowStart(f)))}function si(f){return $(t.cancel,()=>z(E.workflowCancel(f)))}function ii(f){return $(t.archive,()=>z(E.workflowArchive(f)))}function ri(){var c;const f=(c=v.value)==null?void 0:c.workflow;return!f||!Le.value.branch_name?Promise.resolve():$(t.branches,async()=>{const q=await z(E.workflowBranches(f.workflow_id),{branch_name:Le.value.branch_name,base_branch_name:f.current_branch,base_node_id:O.value||f.current_node_id,copy_nodes:!0});return Le.value.branch_name="",await ye(),m.value=t.branchCreated,q},!1)}function ai(f){var q;const c=(q=v.value)==null?void 0:q.workflow.workflow_id;return c?$(t.switchBranch,async()=>{const se=await z(E.workflowSwitchBranch(c),{branch_name:f});return await ye(),se},!1):Promise.resolve()}function el(){K.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function ui(f){K.value={node_id:f.node_id,node_key:f.node_key,title:f.title,description:f.description??"",node_type:f.node_type,status:f.status,prompt:f.prompt??"",negative_prompt:f.negative_prompt??"",model_route:f.model_route??""}}function ci(){var q;const f=(q=v.value)==null?void 0:q.workflow.workflow_id;if(!f||!K.value.node_key||!K.value.title)return Promise.resolve();const c={node_key:K.value.node_key,title:K.value.title,description:K.value.description||void 0,node_type:K.value.node_type||"generation",status:K.value.status||"pending",prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0,model_route:K.value.model_route||void 0};return K.value.node_id?$(t.update,async()=>{const se=await Qe(E.node(K.value.node_id),{method:"PUT",body:c});return el(),await ye(),m.value=t.nodeUpdated,se},!1):$(t.create,async()=>{const se=await z(E.workflowNodes(f),c);return el(),await ye(),m.value=t.nodeCreated,se},!1)}function di(){var c;const f=(c=v.value)==null?void 0:c.workflow.workflow_id;return f?$(t.review,async()=>(b.value=await le(E.workflowReview(f)),b.value),!1):Promise.resolve()}function fi(){const f=O.value;return f?$(t.review,async()=>(b.value=await le(E.nodeReview(f)),b.value),!1):Promise.resolve()}function pi(){const f=O.value;return f?$(t.generate,async()=>(Z.value=await z(E.nodeGenerate(f),{model_route:He.value.model_route||void 0,prompt:He.value.prompt||void 0,negative_prompt:He.value.negative_prompt||void 0}),await ye(),m.value=t.generationQueued,Z.value),!1):Promise.resolve()}function vi(f){return $(t.retry,async()=>{const c=await z(E.nodeRetry(f));return await ye(),m.value=t.nodeQueued,c},!1)}function hi(f){return $(t.complete,async()=>{const c=await z(E.nodeComplete(f));return await ye(),m.value=t.nodeCompleted,c},!1)}function gi(f){const c=O.value;return c?$(t.select,async()=>{const q=await z(E.nodeSelectImage(c),{image_id:f});return await ye(),q},!1):Promise.resolve()}function _i(f){const c=O.value;return c?$(t.adopt,async()=>{var se;const q=await z(E.nodeAdoptImage(c),{image_id:f,title:(se=I.value)==null?void 0:se.title});return await ye(),q},!1):Promise.resolve()}function mi(f){return $(t.unselect,async()=>{const c=await z(E.imageUnselect(f));return await ye(),c},!1)}function yi(f){return $(t.archive,async()=>{const c=await z(E.imageArchive(f));return await ye(),m.value=t.imageArchived,c},!1)}function bi(f){return $(t.delete,async()=>{const c=await Qe(E.image(f),{method:"DELETE"});return await ye(),m.value=t.imageDeleted,c},!1)}function wi(){return $(t.moveFailed,()=>z(E.jobDeadLetterMoveFailed,{limit:20}))}function ki(){return $(t.retryDead,()=>z(E.jobDeadLetterRetry,{limit:20}))}function Ci(){var c;const f=((c=Me.value[0])==null?void 0:c.dialect)??"unknown";return $(t.safeProbe,()=>z(E.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:f,capabilities:{supports:["text_to_image"]}}))}function xi(){var c;const f=((c=Me.value[0])==null?void 0:c.dialect)??"unknown";return $(t.probeProvider,()=>z(E.apiDiscoveryProbeProvider,{provider_id:p.value.provider_id||"local-preview",model_id:p.value.model_id||"metadata-only",dialect:f,capabilities:{supports:St(p.value.required_capabilities)}}))}function Si(){return $(t.validatePlan,async()=>(h.value=await z(E.apiDiscoveryValidateRenderPlan,{provider_id:p.value.provider_id,model_id:p.value.model_id,required_capabilities:St(p.value.required_capabilities)}),h.value),!1)}function tl(f,c){return $(t.discovery,()=>z(E.apiDiscoveryManualOverride,{provider_id:f.provider_id,model_id:f.model_id,dialect:f.dialect,status:c,capabilities:f.capabilities}))}function Pi(){const f=P.value;return f?$(t.matchWardrobe,async()=>(ft.value=await z(E.wardrobeMatch(f),{tags:["daily"]}),ft.value),!1):Promise.resolve()}function Di(){Ce.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Ti(){const f=P.value;return f?$(t.importToWardrobe,async()=>{const c=await z(E.wardrobeImportMaterial(f),{material_id:Ce.value.material_id,wardrobe_category:Ce.value.wardrobe_category,tags:St(Ce.value.tags),season:Ce.value.season||void 0,style:Ce.value.style||void 0});return Di(),m.value=t.wardrobeImported,c}):Promise.resolve()}function Ei(f){const c=P.value;return c?$(t.delete,async()=>{const q=await Qe(E.wardrobeItem(c,f),{method:"DELETE"});return m.value=t.wardrobeDeleted,q}):Promise.resolve()}function Oi(){const f=P.value;return f?$(t.dailyOutfit,async()=>(Gt.value=await z(E.privateCompanionDailyOutfit,{profile_id:f,categories:St(Pe.value.categories),mood:Pe.value.mood,weather:Pe.value.weather,keywords:St(Pe.value.keywords),request_source:"astrbot_plugin_private_companion"}),m.value=t.outfitGenerated,Gt.value),!1):Promise.resolve()}function Ii(){return $(t.reload,async()=>{var c;const f=await z(E.settingsReload);return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Vt(f.config),f},!1)}function Ai(){return $(t.exportSettings,()=>le(E.settingsExport),!1)}function Vt(f=(c=>(c=H.value)==null?void 0:c.config)()??{}){pt.value=JSON.stringify(f,null,2),xt.value=null,ke.value=null}function nl(){try{const f=JSON.parse(pt.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.settingsDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.settingsDraftInvalid)}}function Mi(){try{const f=JSON.parse(nt.value);if(!f||Array.isArray(f)||typeof f!="object")throw new Error(t.importDraftInvalid);return f}catch(f){throw new Error(f instanceof Error?f.message:t.importDraftInvalid)}}function $i(){return $(t.validate,async()=>(xt.value=await z(E.settingsValidate,{config:nl()}),xt.value),!1)}function Ri(){return $(t.diff,async()=>(ke.value=await z(E.settingsDiff,{config:nl()}),ke.value),!1)}function Ui(){return $(t.save,async()=>{var c;const f=await z(E.settingsSave,{config:nl()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Vt(f.config),m.value=t.settingsSaved,f},!1)}function Bi(){return $(t.importSettings,async()=>{var c;const f=await z(E.settingsImport,{config:Mi()});return H.value={config_path:((c=H.value)==null?void 0:c.config_path)??"***PATH***",config:f.config},Vt(f.config),nt.value="",m.value=t.importDone,f},!1)}function ql(){return $(t.loadSnapshots,async()=>(Ct.value=await le(E.settingsSnapshots,{limit:20}),Ct.value),!1)}function Vi(f){return $(t.rollback,async()=>{var q;const c=await z(E.settingsRollback,{snapshot_id:f});return H.value={config_path:((q=H.value)==null?void 0:q.config_path)??"***PATH***",config:c.config},Vt(c.config),await ql(),m.value=t.rollbackDone,c},!1)}function Li(){var c,q;const f=(q=(c=fe.value)==null?void 0:c.items.find(se=>{var De;return(De=se.image_uri)==null?void 0:De.startsWith("storage://")}))==null?void 0:q.image_uri;return f?$(t.signMaterial,async()=>(Ve.value=await le(E.mediaSign,{uri:f}),Ve.value),!1):(m.value=t.noSignableMaterial,Promise.resolve())}function Fi(f){return f!=null&&f.startsWith("storage://")?$(t.signMaterial,async()=>(Ve.value=await le(E.mediaSign,{uri:f}),Ve.value),!1):(m.value=t.noSignableMaterial,Promise.resolve())}function yn(){xe.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Ni(f){xe.value={category_id:f.category_id,name:f.name,category_type:f.category_type,sort_order:f.sort_order}}function ji(){const f={name:xe.value.name,category_type:xe.value.category_type,sort_order:Number(xe.value.sort_order)||0};return xe.value.category_id?$(t.update,async()=>{const c=await Qe(E.materialCategory(xe.value.category_id),{method:"PUT",body:f});return yn(),m.value=t.categoryUpdated,c}):$(t.create,async()=>{const c=await z(E.materialCategories,f);return yn(),m.value=t.categoryCreated,c})}function Wi(f){return $(t.delete,async()=>{const c=await Qe(E.materialCategory(f),{method:"DELETE"});return xe.value.category_id===f&&yn(),m.value=t.categoryDeleted,c})}function ll(){te.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Hi(){const f={display_name:te.value.display_name,image_uri:te.value.image_uri||void 0,thumbnail_uri:te.value.image_uri||void 0,category_id:te.value.category_id||void 0,tags:St(te.value.tags),prompt:te.value.prompt||void 0,negative_prompt:te.value.negative_prompt||void 0,recognition_status:te.value.image_uri?"pending_recognition":"pending_upload"};return te.value.material_id?$(t.update,async()=>{const c=await Qe(E.material(te.value.material_id),{method:"PUT",body:f});return ll(),m.value=t.materialUpdated,c}):$(t.create,async()=>{const c=await z(E.materials,f);return ll(),m.value=t.materialCreated,c})}function Ki(f){te.value={material_id:f.material_id,display_name:f.display_name,image_uri:f.image_uri??"",tags:f.tags.join(", "),category_id:f.category_id??"",prompt:f.prompt??"",negative_prompt:f.negative_prompt??""}}function Jl(){be.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function qi(){return $(t.upload,async()=>{const f=await z(E.materialUpload,{display_name:be.value.display_name||void 0,filename:be.value.filename||void 0,content_type:be.value.content_type||void 0,image_uri:be.value.image_uri,category_id:be.value.category_id||void 0});return Jl(),m.value=t.materialUploaded,f})}function Ji(f){return $(t.recognize,()=>z(E.materialRecognize(f)))}function Gi(f){return $(t.confirm,()=>z(E.materialConfirm(f.material_id),{display_name:f.display_name,prompt:f.prompt,negative_prompt:f.negative_prompt,tags:f.tags}))}function zi(f){return $(t.archive,async()=>{const c=await Qe(E.material(f),{method:"DELETE"});return m.value=t.materialArchived,c})}function St(f){return f.split(",").map(c=>c.trim()).filter(Boolean)}function ol(f=0){return f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:f<1024*1024*1024?`${(f/1024/1024).toFixed(1)} MB`:`${(f/1024/1024/1024).toFixed(1)} GB`}function Gl(f){var c,q;return((q=(c=ae.value)==null?void 0:c.roots.find(se=>se.uri_prefix===f))==null?void 0:q.bytes)??0}return(f,c)=>{var q,se,De,Pt,bn,Yt,wn,kn,Cn,xn,Sn,zl,Yl,Ql,Xl,Zl,eo,to,no,lo,oo,so,io,ro,ao,uo;return x(),S("main",Du,[o("aside",Tu,[o("div",Eu,[o("strong",null,a(((q=s.value)==null?void 0:q.display_name)??"ImageStudio"),1),o("span",null,a(((se=s.value)==null?void 0:se.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(x(),S(Q,null,ge(n,r=>o("button",{key:r.key,type:"button",class:Jn({active:l.value===r.key}),onClick:ne=>l.value=r.key},a(r.label),11,Ou)),64))])]),o("section",Iu,[o("header",Au,[o("div",null,[o("h1",null,a(j.value),1),o("p",null,a(((De=i.value)==null?void 0:De.plugin_status)??"loading")+" / "+a(m.value||t.waiting),1)]),o("div",Mu,[o("button",{type:"button",disabled:!!g.value,onClick:Y},a(g.value||t.refresh),9,$u)])]),w.value?(x(),S("section",Ru,a(w.value),1)):C.value?(x(),S("section",Uu,a(t.loading),1)):(x(),S(Q,{key:2},[l.value==="dashboard"?(x(),S("section",Bu,[o("article",null,[o("span",null,a(t.profiles),1),o("strong",null,a(((Pt=i.value)==null?void 0:Pt.active_profiles)??0),1)]),o("article",null,[o("span",null,a(t.jobs),1),o("strong",null,a(D.value),1)]),o("article",null,[o("span",null,a(t.materials),1),o("strong",null,a(((bn=fe.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,a(t.storage),1),o("strong",null,a(ol(((Yt=ae.value)==null?void 0:Yt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(x(),S("section",Vu,[o("header",null,[o("h2",null,a(t.profileList),1),o("span",null,a(((kn=u.value)==null?void 0:kn.total)??0),1)]),o("div",Lu,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>U.value.name=r),type:"text"},null,512),[[R,U.value.name]])]),o("label",null,[o("span",null,a(t.identity),1),A(o("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>U.value.identity=r),type:"text"},null,512),[[R,U.value.identity]])]),o("label",null,[o("span",null,a(t.personality),1),A(o("input",{"onUpdate:modelValue":c[2]||(c[2]=r=>U.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[R,U.value.personality]])]),o("label",null,[o("span",null,a(t.hairColor),1),A(o("input",{"onUpdate:modelValue":c[3]||(c[3]=r=>U.value.hair_color=r),type:"text"},null,512),[[R,U.value.hair_color]])]),o("label",null,[o("span",null,a(t.hairstyle),1),A(o("input",{"onUpdate:modelValue":c[4]||(c[4]=r=>U.value.hairstyle=r),type:"text"},null,512),[[R,U.value.hairstyle]])]),o("label",null,[o("span",null,a(t.eyeColor),1),A(o("input",{"onUpdate:modelValue":c[5]||(c[5]=r=>U.value.eye_color=r),type:"text"},null,512),[[R,U.value.eye_color]])]),o("label",null,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[6]||(c[6]=r=>U.value.style=r),type:"text"},null,512),[[R,U.value.style]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[7]||(c[7]=r=>U.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[R,U.value.clothing_keywords]])]),o("label",Fu,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[8]||(c[8]=r=>U.value.description=r),type:"text"},null,512),[[R,U.value.description]])]),o("button",{type:"button",disabled:!!g.value||!U.value.name,onClick:Xs},a(t.quickDraft),9,Nu),o("button",{type:"button",disabled:!!g.value||!U.value.name,onClick:Zs},a(t.create),9,ju)]),ee.value?(x(),S("pre",Wu,a(JSON.stringify(ee.value,null,2)),1)):G("",!0),X.value.profile_id?(x(),S("div",Hu,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[9]||(c[9]=r=>X.value.name=r),type:"text"},null,512),[[R,X.value.name]])]),o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[10]||(c[10]=r=>X.value.default_model_route=r),type:"text"},null,512),[[R,X.value.default_model_route]])]),o("label",Ku,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[11]||(c[11]=r=>X.value.description=r),type:"text"},null,512),[[R,X.value.description]])]),o("label",qu,[o("span",null,a(t.basePrompt),1),A(o("input",{"onUpdate:modelValue":c[12]||(c[12]=r=>X.value.base_prompt=r),type:"text"},null,512),[[R,X.value.base_prompt]])]),o("label",Ju,[o("span",null,a(t.appearancePrompt),1),A(o("input",{"onUpdate:modelValue":c[13]||(c[13]=r=>X.value.appearance_prompt=r),type:"text"},null,512),[[R,X.value.appearance_prompt]])]),o("label",Gu,[o("span",null,a(t.stylePrompt),1),A(o("input",{"onUpdate:modelValue":c[14]||(c[14]=r=>X.value.style_prompt=r),type:"text"},null,512),[[R,X.value.style_prompt]])]),o("label",zu,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[15]||(c[15]=r=>X.value.negative_prompt=r),type:"text"},null,512),[[R,X.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!X.value.name,onClick:ni},a(t.update),9,Yu),o("button",{type:"button",disabled:!!g.value,onClick:Kl},a(t.reset),9,Qu)])):G("",!0),o("ul",null,[(x(!0),S(Q,null,ge(((Cn=u.value)==null?void 0:Cn.items)??[],r=>(x(),S("li",{key:r.profile_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.profile_id),1)]),o("div",Xu,[o("span",Zu,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ti(r)},a(t.edit),9,ec),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ei(r.profile_id)},a(t.delete),9,tc)])]))),128)),(xn=u.value)!=null&&xn.items.length?G("",!0):(x(),S("li",nc,a(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(x(),S("section",lc,[o("div",oc,[o("header",null,[o("h2",null,a(T.value),1),o("span",null,a(d.value.length),1)]),o("div",sc,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[16]||(c[16]=r=>je.value.display_name=r),type:"text"},null,512),[[R,je.value.display_name]])]),o("label",null,[o("span",null,a(t.workflowType),1),A(o("select",{"onUpdate:modelValue":c[17]||(c[17]=r=>je.value.workflow_type=r)},[...c[65]||(c[65]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[At,je.value.workflow_type]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!je.value.display_name,onClick:li},a(t.create),9,ic)]),o("ul",null,[(x(!0),S(Q,null,ge(d.value,r=>(x(),S("li",{key:r.workflow_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),o("div",rc,[o("span",ac,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>vt(r.workflow_id)},a(t.nodes),9,uc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>oi(r.workflow_id)},a(t.start),9,cc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>si(r.workflow_id)},a(t.cancel),9,dc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ii(r.workflow_id)},a(t.archive),9,fc)])]))),128)),d.value.length?G("",!0):(x(),S("li",pc,a(t.emptyWorkflows),1))]),v.value?(x(),S("section",vc,[o("header",null,[o("h2",null,a(t.branches),1),o("span",null,a(y.value.length),1)]),o("div",hc,[o("label",null,[o("span",null,a(t.branchName),1),A(o("input",{"onUpdate:modelValue":c[18]||(c[18]=r=>Le.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[R,Le.value.branch_name]])]),o("button",{type:"button",disabled:!!g.value||!Le.value.branch_name,onClick:ri},a(t.create),9,gc)]),o("ul",null,[(x(!0),S(Q,null,ge(y.value,r=>(x(),S("li",{key:r.branch_id},[o("div",null,[o("strong",null,a(r.branch_name),1),o("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ai(r.branch_name)},a(t.switchBranch),9,_c)]))),128))])])):G("",!0)]),o("div",mc,[o("header",null,[o("h2",null,a(t.nodes),1),o("div",yc,[o("span",null,a(((Sn=v.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!g.value||!v.value,onClick:di},a(t.review),9,bc)])]),o("div",wc,[o("label",null,[o("span",null,a(t.nodeKey),1),A(o("input",{"onUpdate:modelValue":c[19]||(c[19]=r=>K.value.node_key=r),type:"text"},null,512),[[R,K.value.node_key]])]),o("label",null,[o("span",null,a(t.nodeTitle),1),A(o("input",{"onUpdate:modelValue":c[20]||(c[20]=r=>K.value.title=r),type:"text"},null,512),[[R,K.value.title]])]),o("label",null,[o("span",null,a(t.nodeType),1),A(o("input",{"onUpdate:modelValue":c[21]||(c[21]=r=>K.value.node_type=r),type:"text"},null,512),[[R,K.value.node_type]])]),o("label",null,[o("span",null,a(t.status),1),A(o("input",{"onUpdate:modelValue":c[22]||(c[22]=r=>K.value.status=r),type:"text"},null,512),[[R,K.value.status]])]),o("label",kc,[o("span",null,a(t.description),1),A(o("input",{"onUpdate:modelValue":c[23]||(c[23]=r=>K.value.description=r),type:"text"},null,512),[[R,K.value.description]])]),o("label",Cc,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[24]||(c[24]=r=>K.value.prompt=r),type:"text"},null,512),[[R,K.value.prompt]])]),o("label",xc,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[25]||(c[25]=r=>K.value.negative_prompt=r),type:"text"},null,512),[[R,K.value.negative_prompt]])]),o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[26]||(c[26]=r=>K.value.model_route=r),type:"text"},null,512),[[R,K.value.model_route]])]),o("button",{type:"button",disabled:!!g.value||!K.value.node_key||!K.value.title,onClick:ci},a(K.value.node_id?t.update:t.create),9,Sc),o("button",{type:"button",disabled:!!g.value,onClick:el},a(t.reset),9,Pc)]),o("div",Dc,[o("label",null,[o("span",null,a(t.modelRoute),1),A(o("input",{"onUpdate:modelValue":c[27]||(c[27]=r=>He.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[R,He.value.model_route]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[28]||(c[28]=r=>He.value.prompt=r),type:"text"},null,512),[[R,He.value.prompt]])]),o("label",Tc,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[29]||(c[29]=r=>He.value.negative_prompt=r),type:"text"},null,512),[[R,He.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:pi},a(t.generate),9,Ec),o("button",{type:"button",disabled:!!g.value||!O.value,onClick:fi},a(t.review),9,Oc)]),o("ul",null,[(x(!0),S(Q,null,ge(((zl=v.value)==null?void 0:zl.nodes)??[],r=>(x(),S("li",{key:r.node_id},[o("div",null,[o("strong",null,a(r.title),1),o("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),o("div",Ic,[o("span",null,a(r.branch_name),1),o("span",Ac,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>ui(r)},a(t.edit),9,Mc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>vi(r.node_id)},a(t.retry),9,$c),o("button",{type:"button",disabled:!!g.value,onClick:ne=>hi(r.node_id)},a(t.complete),9,Rc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>zt(r.node_id)},a(t.images),9,Uc)])]))),128)),(Yl=v.value)!=null&&Yl.nodes.length?G("",!0):(x(),S("li",Bc,a(t.emptyWorkflows),1))]),o("ul",null,[(x(!0),S(Q,null,ge(M.value,r=>(x(),S("li",{key:r.image_id},[o("div",null,[o("strong",null,a(r.image_id),1),o("small",null,a(r.thumbnail_uri??r.image_uri),1)]),o("div",Vc,[r.is_selected?(x(),S("span",Lc,a(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!g.value||r.is_selected||r.is_archived,onClick:ne=>gi(r.image_id)},a(t.select),9,Fc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:ne=>_i(r.image_id)},a(t.adopt),9,Nc),o("button",{type:"button",disabled:!!g.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:ne=>Fi(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,jc),o("button",{type:"button",disabled:!!g.value||!r.is_selected,onClick:ne=>mi(r.image_id)},a(t.unselect),9,Wc),o("button",{type:"button",disabled:!!g.value||r.is_archived,onClick:ne=>yi(r.image_id)},a(t.archive),9,Hc),o("button",{type:"button",disabled:!!g.value,onClick:ne=>bi(r.image_id)},a(t.delete),9,Kc)])]))),128)),M.value.length?G("",!0):(x(),S("li",qc,a(t.emptyImages),1))]),Ve.value?(x(),S("pre",Jc,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0),Z.value?(x(),S("pre",Gc,a(JSON.stringify(Z.value,null,2)),1)):G("",!0),o("section",zc,[o("header",null,[o("h2",null,a(t.history),1),o("span",null,a(_.value.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(_.value,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.node_id??r.workflow_id),1)]),o("span",null,a(r.branch_name),1)]))),128)),_.value.length?G("",!0):(x(),S("li",Yc,a(t.emptyHistory),1))])]),b.value?(x(),S("section",Qc,[o("header",null,[o("h2",null,a(t.reviewResult),1),o("span",null,a(b.value.passed?t.support:t.unsupported),1)]),o("pre",null,a(JSON.stringify(b.value,null,2)),1)])):G("",!0),v.value?(x(),S("pre",Xc,a(JSON.stringify(v.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(x(),S("section",Zc,[o("div",ed,[o("header",null,[o("h2",null,a(t.materialCategories),1),o("span",null,a(V.value.length),1)]),o("div",td,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[30]||(c[30]=r=>xe.value.name=r),type:"text"},null,512),[[R,xe.value.name]])]),o("label",null,[o("span",null,a(t.categoryType),1),A(o("input",{"onUpdate:modelValue":c[31]||(c[31]=r=>xe.value.category_type=r),type:"text"},null,512),[[R,xe.value.category_type]])]),o("label",null,[o("span",null,a(t.sortOrder),1),A(o("input",{"onUpdate:modelValue":c[32]||(c[32]=r=>xe.value.sort_order=r),type:"number"},null,512),[[R,xe.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!g.value||!xe.value.name,onClick:ji},a(xe.value.category_id?t.update:t.create),9,nd),o("button",{type:"button",disabled:!!g.value,onClick:yn},a(t.reset),9,ld)]),o("ul",null,[(x(!0),S(Q,null,ge(V.value,r=>(x(),S("li",{key:r.category_id},[o("div",null,[o("strong",null,a(r.name),1),o("small",null,a(r.category_type),1)]),o("div",od,[o("span",null,a(r.sort_order),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ni(r)},a(t.edit),9,sd),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Wi(r.category_id)},a(t.delete),9,id)])]))),128)),V.value.length?G("",!0):(x(),S("li",rd,a(t.emptyCategories),1))])]),o("div",ad,[o("header",null,[o("h2",null,a(t.materialItems),1),o("div",ud,[o("span",null,a(k.value)+" "+a(t.pendingConfirm),1),o("button",{type:"button",disabled:!!g.value,onClick:Li},a(t.signFirstImage),9,cd)])]),o("div",dd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[33]||(c[33]=r=>te.value.display_name=r),type:"text"},null,512),[[R,te.value.display_name]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[34]||(c[34]=r=>te.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[R,te.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[35]||(c[35]=r=>te.value.category_id=r)},[o("option",fd,a(t.allCategories),1),(x(!0),S(Q,null,ge(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,pd))),128))],512),[[At,te.value.category_id]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[36]||(c[36]=r=>te.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[R,te.value.tags]])]),o("label",null,[o("span",null,a(t.prompt),1),A(o("input",{"onUpdate:modelValue":c[37]||(c[37]=r=>te.value.prompt=r),type:"text"},null,512),[[R,te.value.prompt]])]),o("label",null,[o("span",null,a(t.negativePrompt),1),A(o("input",{"onUpdate:modelValue":c[38]||(c[38]=r=>te.value.negative_prompt=r),type:"text"},null,512),[[R,te.value.negative_prompt]])]),o("button",{type:"button",disabled:!!g.value||!te.value.display_name,onClick:Hi},a(te.value.material_id?t.update:t.create),9,vd),o("button",{type:"button",disabled:!!g.value,onClick:ll},a(t.reset),9,hd)]),o("ul",null,[(x(!0),S(Q,null,ge(((Ql=fe.value)==null?void 0:Ql.items)??[],r=>(x(),S("li",{key:r.material_id},[o("div",null,[o("strong",null,a(r.display_name),1),o("small",null,a(r.image_uri??t.noImage),1)]),o("div",gd,[o("span",_d,a(r.recognition_status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ki(r)},a(t.edit),9,md),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ji(r.material_id)},a(t.recognize),9,yd),o("button",{type:"button",disabled:!!g.value||r.recognition_status==="confirmed",onClick:ne=>Gi(r)},a(t.confirm),9,bd),o("button",{type:"button",disabled:!!g.value,onClick:ne=>zi(r.material_id)},a(t.archive),9,wd)])]))),128)),(Xl=fe.value)!=null&&Xl.items.length?G("",!0):(x(),S("li",kd,a(t.emptyMaterials),1))]),o("div",Cd,[o("label",null,[o("span",null,a(t.name),1),A(o("input",{"onUpdate:modelValue":c[39]||(c[39]=r=>be.value.display_name=r),type:"text"},null,512),[[R,be.value.display_name]])]),o("label",null,[o("span",null,a(t.filename),1),A(o("input",{"onUpdate:modelValue":c[40]||(c[40]=r=>be.value.filename=r),type:"text"},null,512),[[R,be.value.filename]])]),o("label",null,[o("span",null,a(t.contentType),1),A(o("input",{"onUpdate:modelValue":c[41]||(c[41]=r=>be.value.content_type=r),type:"text"},null,512),[[R,be.value.content_type]])]),o("label",null,[o("span",null,a(t.imageUri),1),A(o("input",{"onUpdate:modelValue":c[42]||(c[42]=r=>be.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[R,be.value.image_uri]])]),o("label",null,[o("span",null,a(t.category),1),A(o("select",{"onUpdate:modelValue":c[43]||(c[43]=r=>be.value.category_id=r)},[o("option",xd,a(t.allCategories),1),(x(!0),S(Q,null,ge(V.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Sd))),128))],512),[[At,be.value.category_id]])]),o("button",{type:"button",disabled:!!g.value||!be.value.image_uri,onClick:qi},a(t.upload),9,Pd),o("button",{type:"button",disabled:!!g.value,onClick:Jl},a(t.reset),9,Dd)]),Ve.value?(x(),S("pre",Td,a(JSON.stringify(Ve.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(x(),S("section",Ed,[o("header",null,[o("h2",null,a(T.value),1),o("button",{type:"button",disabled:!P.value||!!g.value,onClick:Pi},a(t.match),9,Od)]),o("div",Id,[o("label",null,[o("span",null,a(t.selectMaterial),1),A(o("select",{"onUpdate:modelValue":c[44]||(c[44]=r=>Ce.value.material_id=r)},[o("option",Ad,a(t.selectMaterial),1),(x(!0),S(Q,null,ge(L.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,Md))),128))],512),[[At,Ce.value.material_id]])]),o("label",null,[o("span",null,a(t.wardrobeCategory),1),A(o("input",{"onUpdate:modelValue":c[45]||(c[45]=r=>Ce.value.wardrobe_category=r),type:"text"},null,512),[[R,Ce.value.wardrobe_category]])]),o("label",null,[o("span",null,a(t.tags),1),A(o("input",{"onUpdate:modelValue":c[46]||(c[46]=r=>Ce.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[R,Ce.value.tags]])]),o("label",null,[o("span",null,a(t.season),1),A(o("input",{"onUpdate:modelValue":c[47]||(c[47]=r=>Ce.value.season=r),type:"text"},null,512),[[R,Ce.value.season]])]),o("label",null,[o("span",null,a(t.style),1),A(o("input",{"onUpdate:modelValue":c[48]||(c[48]=r=>Ce.value.style=r),type:"text"},null,512),[[R,Ce.value.style]])]),o("button",{type:"button",disabled:!!g.value||!P.value||!Ce.value.material_id||!Ce.value.wardrobe_category,onClick:Ti},a(t.importToWardrobe),9,$d)]),o("ul",null,[(x(!0),S(Q,null,ge(Ae.value,r=>(x(),S("li",{key:r.wardrobe_item_id},[o("div",null,[o("strong",null,a(r.wardrobe_category),1),o("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),o("div",Rd,[o("span",null,a(r.usage_count),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ei(r.wardrobe_item_id)},a(t.delete),9,Ud)])]))),128)),Ae.value.length?G("",!0):(x(),S("li",Bd,a(t.emptyWardrobe),1))]),ft.value?(x(),S("pre",Vd,a(JSON.stringify(ft.value,null,2)),1)):G("",!0),o("div",Ld,[o("label",null,[o("span",null,a(t.categories),1),A(o("input",{"onUpdate:modelValue":c[49]||(c[49]=r=>Pe.value.categories=r),type:"text"},null,512),[[R,Pe.value.categories]])]),o("label",null,[o("span",null,a(t.mood),1),A(o("input",{"onUpdate:modelValue":c[50]||(c[50]=r=>Pe.value.mood=r),type:"text"},null,512),[[R,Pe.value.mood]])]),o("label",null,[o("span",null,a(t.weather),1),A(o("input",{"onUpdate:modelValue":c[51]||(c[51]=r=>Pe.value.weather=r),type:"text"},null,512),[[R,Pe.value.weather]])]),o("label",null,[o("span",null,a(t.keywords),1),A(o("input",{"onUpdate:modelValue":c[52]||(c[52]=r=>Pe.value.keywords=r),type:"text"},null,512),[[R,Pe.value.keywords]])]),o("button",{type:"button",disabled:!!g.value||!P.value,onClick:Oi},a(t.dailyOutfit),9,Fd)]),Gt.value?(x(),S("pre",Nd,a(JSON.stringify(Gt.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(x(),S("section",jd,[o("header",null,[o("h2",null,a(t.jobs),1),o("div",Wd,[o("button",{type:"button",disabled:!!g.value,onClick:wi},a(t.moveFailed),9,Hd),o("button",{type:"button",disabled:!!g.value,onClick:ki},a(t.retryDead),9,Kd)])]),o("div",qd,[o("label",null,[c[66]||(c[66]=o("span",null,"Status",-1)),A(o("select",{"onUpdate:modelValue":c[53]||(c[53]=r=>ze.value.status=r)},[o("option",Jd,a(t.allStatuses),1),(x(),S(Q,null,ge(B,r=>o("option",{key:r,value:r},a(r),9,Gd)),64))],512),[[At,ze.value.status]])]),o("label",null,[o("span",null,a(t.profiles),1),A(o("select",{"onUpdate:modelValue":c[54]||(c[54]=r=>ze.value.profile_id=r)},[o("option",zd,a(t.allProfiles),1),(x(!0),S(Q,null,ge(((Zl=u.value)==null?void 0:Zl.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Yd))),128))],512),[[At,ze.value.profile_id]])]),o("label",null,[o("span",null,a(t.workflows),1),A(o("select",{"onUpdate:modelValue":c[55]||(c[55]=r=>ze.value.workflow_id=r)},[o("option",Qd,a(t.allWorkflows),1),(x(!0),S(Q,null,ge(d.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Xd))),128))],512),[[At,ze.value.workflow_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:Se},a(t.filter),9,Zd)]),o("ul",null,[(x(!0),S(Q,null,ge(((eo=N.value)==null?void 0:eo.items)??[],r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),o("div",ef,[o("span",tf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:ne=>mn(r.task_id)},a(t.retry),9,nf)):G("",!0),["completed","succeeded","cancelled"].includes(r.status)?G("",!0):(x(),S("button",{key:1,type:"button",onClick:ne=>zs(r.task_id)},a(t.cancel),9,lf)),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Ys(r.task_id)},a(t.detail),9,of)])]))),128)),(to=N.value)!=null&&to.items.length?G("",!0):(x(),S("li",sf,a(t.emptyJobs),1))]),ve.value?(x(),S("section",rf,[o("header",null,[o("h2",null,a(t.jobDetail),1),o("span",null,a(ve.value.status),1)]),o("pre",null,a(JSON.stringify(ve.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(x(),S("section",af,[o("div",uf,[o("header",null,[o("h2",null,a(t.dialects),1),o("div",cf,[o("button",{type:"button",disabled:!!g.value,onClick:xi},a(t.probeProvider),9,df),o("button",{type:"button",disabled:!!g.value,onClick:Ci},a(t.safeProbe),9,ff)])]),o("ul",null,[(x(!0),S(Q,null,ge(Me.value,r=>(x(),S("li",{key:r.dialect},[o("div",null,[o("strong",null,a(r.label),1),o("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,a(r.dialect),1)]))),128))]),o("div",pf,[o("label",null,[o("span",null,a(t.provider),1),A(o("input",{"onUpdate:modelValue":c[56]||(c[56]=r=>p.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[R,p.value.provider_id]])]),o("label",null,[o("span",null,a(t.model),1),A(o("input",{"onUpdate:modelValue":c[57]||(c[57]=r=>p.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[R,p.value.model_id]])]),o("label",null,[o("span",null,a(t.requiredCapabilities),1),A(o("input",{"onUpdate:modelValue":c[58]||(c[58]=r=>p.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[R,p.value.required_capabilities]])]),o("button",{type:"button",disabled:!!g.value||!p.value.provider_id||!p.value.model_id,onClick:Si},a(t.validatePlan),9,vf)]),h.value?(x(),S("pre",hf,a(JSON.stringify(h.value,null,2)),1)):G("",!0)]),o("div",gf,[o("header",null,[o("h2",null,a(t.capabilityProfiles),1),o("span",null,a(Ne.value.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(Ne.value,r=>(x(),S("li",{key:r.capability_profile_id},[o("div",null,[o("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),o("small",null,a(r.dialect),1)]),o("div",_f,[o("span",mf,a(r.status),1),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"confirmed_supported")},a(t.support),9,yf),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"confirmed_unsupported")},a(t.unsupported),9,bf),o("button",{type:"button",disabled:!!g.value,onClick:ne=>tl(r,"unconfirmed")},a(t.unconfirmed),9,wf)])]))),128)),Ne.value.length?G("",!0):(x(),S("li",kf,a(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(x(),S("section",Cf,[o("div",xf,[o("div",Sf,[o("header",null,[o("h2",null,a(t.generationLogs),1),o("span",null,a(me.value.generation.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.value.generation,r=>(x(),S("li",{key:r.task_id},[o("div",null,[o("strong",null,a(r.task_id),1),o("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),o("span",null,a(r.created_at),1)]))),128)),me.value.generation.length?G("",!0):(x(),S("li",Pf,a(t.emptyGenerationLogs),1))])]),o("div",Df,[o("header",null,[o("h2",null,a(t.errorLogs),1),o("span",null,a(me.value.errors.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.value.errors,r=>(x(),S("li",{key:`${r.source}-${r.id}`},[o("div",null,[o("strong",null,a(r.source),1),o("small",null,a(r.error_message??t.noErrorDetail),1)]),o("span",Tf,a(r.status),1)]))),128)),me.value.errors.length?G("",!0):(x(),S("li",Ef,a(t.emptyErrors),1))])])]),o("div",Of,[o("div",If,[o("header",null,[o("h2",null,a(t.workflowLogs),1),o("span",null,a(me.value.workflows.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.value.workflows,r=>(x(),S("li",{key:r.history_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.title??r.workflow_id),1)]),o("span",null,a(r.branch_name??"main"),1)]))),128)),me.value.workflows.length?G("",!0):(x(),S("li",Af,a(t.emptyWorkflowLogs),1))])]),o("div",Mf,[o("header",null,[o("h2",null,a(t.integrationLogs),1),o("span",null,a(me.value.integrations.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(me.value.integrations,r=>(x(),S("li",{key:r.integration_log_id},[o("div",null,[o("strong",null,a(r.integration_name),1),o("small",null,a(r.action),1)]),o("span",$f,a(r.status),1)]))),128)),me.value.integrations.length?G("",!0):(x(),S("li",Rf,a(t.emptyIntegrationLogs),1))])])]),o("div",Uf,[o("header",null,[o("h2",null,a(t.auditLogs),1),o("span",null,a(me.value.audit.length),1)]),o("div",Bf,[o("label",null,[c[67]||(c[67]=o("span",null,"Action",-1)),A(o("input",{"onUpdate:modelValue":c[59]||(c[59]=r=>Ye.value.action=r),type:"text"},null,512),[[R,Ye.value.action]])]),o("label",null,[o("span",null,a(t.targetType),1),A(o("input",{"onUpdate:modelValue":c[60]||(c[60]=r=>Ye.value.target_type=r),type:"text"},null,512),[[R,Ye.value.target_type]])]),o("label",null,[o("span",null,a(t.actor),1),A(o("input",{"onUpdate:modelValue":c[61]||(c[61]=r=>Ye.value.actor_id=r),type:"text"},null,512),[[R,Ye.value.actor_id]])]),o("button",{type:"button",disabled:!!g.value,onClick:oe},a(t.filter),9,Vf)]),o("ul",null,[(x(!0),S(Q,null,ge(me.value.audit,r=>(x(),S("li",{key:r.audit_id},[o("div",null,[o("strong",null,a(r.action),1),o("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),o("span",null,a(r.created_at),1)]))),128)),me.value.audit.length?G("",!0):(x(),S("li",Lf,a(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(x(),S("section",Ff,[o("div",Nf,[o("button",{type:"button",disabled:!!g.value,onClick:Ii},a(t.reload),9,jf),o("button",{type:"button",disabled:!!g.value,onClick:c[62]||(c[62]=r=>Vt())},a(t.reset),9,Wf),o("button",{type:"button",disabled:!!g.value,onClick:$i},a(t.validate),9,Hf),o("button",{type:"button",disabled:!!g.value,onClick:Ri},a(t.diff),9,Kf),o("button",{type:"button",disabled:!!g.value,onClick:Ui},a(t.save),9,qf),o("button",{type:"button",disabled:!!g.value,onClick:Ai},a(t.exportRedacted),9,Jf),o("button",{type:"button",disabled:!!g.value,onClick:ql},a(t.loadSnapshots),9,Gf)]),o("div",zf,[(x(!0),S(Q,null,ge(((no=de.value)==null?void 0:no.sections)??[],r=>(x(),S("article",{key:r.key},[o("h2",null,a(r.title),1),o("span",null,a(r.fields.length),1)]))),128))]),o("section",Yf,[o("header",null,[o("h2",null,a(t.settingsEditor),1),o("span",null,a(((lo=H.value)==null?void 0:lo.config_path)??"***PATH***"),1)]),A(o("textarea",{"onUpdate:modelValue":c[63]||(c[63]=r=>pt.value=r),spellcheck:"false"},null,512),[[R,pt.value]])]),o("section",Qf,[o("header",null,[o("h2",null,a(t.importSettings),1),o("button",{type:"button",disabled:!!g.value||!nt.value,onClick:Bi},a(t.importSettings),9,Xf)]),A(o("textarea",{"onUpdate:modelValue":c[64]||(c[64]=r=>nt.value=r),spellcheck:"false"},null,512),[[R,nt.value]])]),o("section",Zf,[o("header",null,[o("h2",null,a(t.snapshots),1),o("span",null,a(Ct.value.length),1)]),o("ul",null,[(x(!0),S(Q,null,ge(Ct.value,r=>(x(),S("li",{key:r.snapshot_id},[o("div",null,[o("strong",null,a(r.reason),1),o("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),o("button",{type:"button",disabled:!!g.value,onClick:ne=>Vi(r.snapshot_id)},a(t.rollback),9,ep)]))),128))])]),o("div",tp,[o("div",np,[o("header",null,[o("h2",null,a(t.validationResult),1),o("span",null,a(((oo=xt.value)==null?void 0:oo.valid)??"-"),1)]),o("pre",null,a(JSON.stringify(xt.value??{},null,2)),1)]),o("div",lp,[o("header",null,[o("h2",null,a(t.diffResult),1),o("span",null,a(((so=ke.value)==null?void 0:so.changes.length)??0),1)]),o("pre",null,a(JSON.stringify(ke.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",op,[o("h2",null,a(t.running),1),o("dl",null,[o("div",null,[c[68]||(c[68]=o("dt",null,"Pending",-1)),o("dd",null,a(((io=i.value)==null?void 0:io.queue.pending)??0),1)]),o("div",null,[c[69]||(c[69]=o("dt",null,"Running",-1)),o("dd",null,a(((ro=i.value)==null?void 0:ro.queue.running)??0),1)]),o("div",null,[c[70]||(c[70]=o("dt",null,"Failed",-1)),o("dd",null,a(((ao=i.value)==null?void 0:ao.queue.failed)??0),1)]),o("div",null,[c[71]||(c[71]=o("dt",null,"Dead",-1)),o("dd",null,a(((uo=i.value)==null?void 0:uo.queue.dead_letter)??0),1)])]),o("h2",null,a(t.storage),1),o("dl",null,[o("div",null,[c[72]||(c[72]=o("dt",null,"Images",-1)),o("dd",null,a(ol(Gl("storage://images/"))),1)]),o("div",null,[c[73]||(c[73]=o("dt",null,"Materials",-1)),o("dd",null,a(ol(Gl("storage://materials/"))),1)])])])])}}}),ip=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},rp=ip(sp,[["__scopeId","data-v-0422d282"]]);wu(rp).mount("#app"); diff --git a/web/assets/index-xqawizKu.css b/web/assets/index-xqawizKu.css new file mode 100644 index 0000000..9692b00 --- /dev/null +++ b/web/assets/index-xqawizKu.css @@ -0,0 +1 @@ +.web-shell[data-v-0422d282]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-0422d282],.inspector[data-v-0422d282]{background:#fff}.sidebar[data-v-0422d282]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-0422d282]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-0422d282]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-0422d282]{font-size:19px}.brand span[data-v-0422d282],p[data-v-0422d282],dt[data-v-0422d282],.empty[data-v-0422d282],small[data-v-0422d282]{color:#667085}nav[data-v-0422d282]{display:grid;gap:6px}button[data-v-0422d282]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-0422d282]:disabled{cursor:wait;opacity:.62}nav button[data-v-0422d282]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-0422d282]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-0422d282]{min-width:0;padding:24px}.topbar[data-v-0422d282],.list-view header[data-v-0422d282],.toolbar[data-v-0422d282],.inline-actions[data-v-0422d282]{display:flex;gap:12px;align-items:center}.topbar[data-v-0422d282],.list-view header[data-v-0422d282]{justify-content:space-between}.actions[data-v-0422d282],.inline-actions[data-v-0422d282]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-0422d282],.toolbar button[data-v-0422d282],.list-view header button[data-v-0422d282],.inline-actions button[data-v-0422d282]{padding:0 14px}h1[data-v-0422d282],h2[data-v-0422d282],p[data-v-0422d282],dl[data-v-0422d282],dd[data-v-0422d282]{margin:0}h1[data-v-0422d282]{min-height:30px;font-size:26px}h2[data-v-0422d282]{font-size:15px}.notice[data-v-0422d282],article[data-v-0422d282],.list-view[data-v-0422d282],.editor-panel[data-v-0422d282],pre[data-v-0422d282]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-0422d282]{margin-top:18px;padding:14px}.error[data-v-0422d282]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-0422d282],.split-view[data-v-0422d282]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-0422d282]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-0422d282]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-0422d282]{display:grid;gap:8px;padding:16px}article span[data-v-0422d282]{color:#667085;font-size:13px}article strong[data-v-0422d282]{font-size:24px}.list-view[data-v-0422d282],.logs-view[data-v-0422d282],.settings-view[data-v-0422d282]{margin-top:18px}.split-view .list-view[data-v-0422d282],.logs-view .list-view[data-v-0422d282]{margin-top:0}.list-view[data-v-0422d282]{padding:16px}.editor-panel[data-v-0422d282]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-0422d282]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-0422d282]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-0422d282]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-0422d282]{display:grid;gap:5px;min-width:0}label span[data-v-0422d282]{color:#667085;font-size:12px}.wide-field[data-v-0422d282]{grid-column:1 / -1}input[data-v-0422d282],select[data-v-0422d282]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-0422d282]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-0422d282]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-0422d282]:first-child{border-top:0}li>div[data-v-0422d282]{display:grid;gap:3px;min-width:0}li strong[data-v-0422d282],li span[data-v-0422d282],li small[data-v-0422d282]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-0422d282]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-0422d282]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-0422d282]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-0422d282]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-0422d282]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-0422d282]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-0422d282]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-0422d282]{display:none}}@media(max-width:820px){.web-shell[data-v-0422d282]{grid-template-columns:1fr}.sidebar[data-v-0422d282]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-0422d282]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-0422d282]{text-align:center}.dashboard-grid[data-v-0422d282],.split-view[data-v-0422d282],.settings-sections[data-v-0422d282]{grid-template-columns:1fr}.topbar[data-v-0422d282],.list-view header[data-v-0422d282]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index a1db022..95cd252 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +