astrbot_plugin_imagestudio/web/assets/index-1Kv7-oJJ.js

17 行
132 KiB
JavaScript

var br=Object.defineProperty;var wr=(e,t,n)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dl=(e,t,n)=>wr(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"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).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 o(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 $l(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ge={},qt=[],pt=()=>{},es=()=>!1,Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qn=e=>e.startsWith("onUpdate:"),Se=Object.assign,Rl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},kr=Object.prototype.hasOwnProperty,ue=(e,t)=>kr.call(e,t),H=Array.isArray,Jt=e=>_n(e)==="[object Map]",Jn=e=>_n(e)==="[object Set]",ko=e=>_n(e)==="[object Date]",J=e=>typeof e=="function",ye=e=>typeof e=="string",vt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ts=e=>(pe(e)||J(e))&&J(e.then)&&J(e.catch),ns=Object.prototype.toString,_n=e=>ns.call(e),xr=e=>_n(e).slice(8,-1),ls=e=>_n(e)==="[object Object]",Ml=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,on=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Cr=/-\w/g,tt=Gn(e=>e.replace(Cr,t=>t.slice(1).toUpperCase())),Sr=/\B([A-Z])/g,Ft=Gn(e=>e.replace(Sr,"-$1").toLowerCase()),os=Gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),cl=Gn(e=>e?`on${os(e)}`:""),ft=(e,t)=>!Object.is(e,t),Un=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ss=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xo;const Yn=()=>xo||(xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vl(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=ye(o)?Tr(o):Vl(o);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||pe(e))return e}const Pr=/;(?![^(]*\))/g,Er=/:([^]+)/,Dr=/\/\*[^]*?\*\//g;function Tr(e){const t={};return e.replace(Dr,"").split(Pr).forEach(n=>{if(n){const o=n.split(Er);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Qn(e){let t="";if(ye(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const o=Qn(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ir="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Or=$l(Ir);function is(e){return!!e||e===""}function Ar(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=mn(e[o],t[o]);return n}function mn(e,t){if(e===t)return!0;let n=ko(e),o=ko(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=vt(e),o=vt(t),n||o)return e===t;if(n=H(e),o=H(t),n||o)return n&&o?Ar(e,t):!1;if(n=pe(e),o=pe(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const d in e){const f=e.hasOwnProperty(d),v=t.hasOwnProperty(d);if(f&&!v||!f&&v||!mn(e[d],t[d]))return!1}}return String(e)===String(t)}function Ur(e,t){return e.findIndex(n=>mn(n,t))}const rs=e=>!!(e&&e.__v_isRef===!0),a=e=>ye(e)?e:e==null?"":H(e)||pe(e)&&(e.toString===ns||!J(e.toString))?rs(e)?a(e.value):JSON.stringify(e,as,2):String(e),as=(e,t)=>rs(t)?as(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],i)=>(n[fl(o,i)+" =>"]=s,n),{})}:Jn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fl(n))}:vt(t)?fl(t):pe(t)&&!H(t)&&!ls(t)?String(t):t,fl=(e,t="")=>{var n;return vt(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 Ce;class $r{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&&Ce&&(Ce.active?(this.parent=Ce,this.index=(Ce.scopes||(Ce.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){if(this._on>0&&--this._on===0){if(Ce===this)Ce=this.prevScope;else{let t=Ce;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,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Rr(){return Ce}let _e;const pl=new WeakSet;class us{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&(Ce.active?Ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pl.has(this)&&(pl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||cs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Co(this),fs(this);const t=_e,n=nt;_e=this,nt=!0;try{return this.fn()}finally{ps(this),_e=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fl(t);this.deps=this.depsTail=void 0,Co(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xl(this)&&this.run()}get dirty(){return xl(this)}}let ds=0,sn,rn;function cs(e,t=!1){if(e.flags|=8,t){e.next=rn,rn=e;return}e.next=sn,sn=e}function Bl(){ds++}function Ll(){if(--ds>0)return;if(rn){let t=rn;for(rn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sn;){let t=sn;for(sn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function fs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ps(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),Fl(o),Mr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function xl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fn)||(e.globalVersion=fn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xl(e))))return;e.flags|=2;const t=e.dep,n=_e,o=nt;_e=e,nt=!0;try{fs(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=n,nt=o,ps(e),e.flags&=-3}}function Fl(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Fl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Mr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const gs=[];function gt(){gs.push(nt),nt=!1}function ht(){const e=gs.pop();nt=e===void 0?!0:e}function Co(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let fn=0;class Vr{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 Nl{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||!nt||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new Vr(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,hs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=o)}return n}trigger(t){this.version++,fn++,this.notify(t)}notify(t){Bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ll()}}}function hs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)hs(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Cl=new WeakMap,Bt=Symbol(""),Sl=Symbol(""),pn=Symbol("");function De(e,t,n){if(nt&&_e){let o=Cl.get(e);o||Cl.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Nl),s.map=o,s.key=n),s.track()}}function xt(e,t,n,o,s,i){const d=Cl.get(e);if(!d){fn++;return}const f=v=>{v&&v.trigger()};if(Bl(),t==="clear")d.forEach(f);else{const v=H(e),_=v&&Ml(n);if(v&&n==="length"){const h=Number(o);d.forEach((w,R)=>{(R==="length"||R===pn||!vt(R)&&R>=h)&&f(w)})}else switch((n!==void 0||d.has(void 0))&&f(d.get(n)),_&&f(d.get(pn)),t){case"add":v?_&&f(d.get("length")):(f(d.get(Bt)),Jt(e)&&f(d.get(Sl)));break;case"delete":v||(f(d.get(Bt)),Jt(e)&&f(d.get(Sl)));break;case"set":Jt(e)&&f(d.get(Bt));break}}Ll()}function Ht(e){const t=ae(e);return t===e?t:(De(t,"iterate",pn),Qe(e)?t:t.map(lt))}function Xn(e){return De(e=ae(e),"iterate",pn),e}function dt(e,t){return Pt(e)?Qt(Lt(e)?lt(t):t):lt(t)}const Br={__proto__:null,[Symbol.iterator](){return vl(this,Symbol.iterator,e=>dt(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>H(t)?Ht(t):t))},entries(){return vl(this,"entries",e=>(e[1]=dt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(o=>dt(this,o)),arguments)},find(e,t){return yt(this,"find",e,t,n=>dt(this,n),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,n=>dt(this,n),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return gl(this,"includes",e)},indexOf(...e){return gl(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return gl(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return en(this,"pop")},push(...e){return en(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return en(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return en(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return en(this,"unshift",e)},values(){return vl(this,"values",e=>dt(this,e))}};function vl(e,t,n){const o=Xn(e),s=o[t]();return o!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Lr=Array.prototype;function yt(e,t,n,o,s,i){const d=Xn(e),f=d!==e&&!Qe(e),v=d[t];if(v!==Lr[t]){const w=v.apply(e,i);return f?lt(w):w}let _=n;d!==e&&(f?_=function(w,R){return n.call(this,dt(e,w),R,e)}:n.length>2&&(_=function(w,R){return n.call(this,w,R,e)}));const h=v.call(d,_,o);return f&&s?s(h):h}function So(e,t,n,o){const s=Xn(e),i=s!==e&&!Qe(e);let d=n,f=!1;s!==e&&(i?(f=o.length===0,d=function(_,h,w){return f&&(f=!1,_=dt(e,_)),n.call(this,_,dt(e,h),w,e)}):n.length>3&&(d=function(_,h,w){return n.call(this,_,h,w,e)}));const v=s[t](d,...o);return f?dt(e,v):v}function gl(e,t,n){const o=ae(e);De(o,"iterate",pn);const s=o[t](...n);return(s===-1||s===!1)&&Kl(n[0])?(n[0]=ae(n[0]),o[t](...n)):s}function en(e,t,n=[]){gt(),Bl();const o=ae(e)[t].apply(e,n);return Ll(),ht(),o}const Fr=$l("__proto__,__v_isRef,__isVue"),_s=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function Nr(e){vt(e)||(e=String(e));const t=ae(this);return De(t,"has",e),t.hasOwnProperty(e)}class ms{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){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 o===(s?i?Qr:ks:i?ws:bs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=H(t);if(!s){let v;if(d&&(v=Br[n]))return v;if(n==="hasOwnProperty")return Nr}const f=Reflect.get(t,n,Te(t)?t:o);if((vt(n)?_s.has(n):Fr(n))||(s||De(t,"get",n),i))return f;if(Te(f)){const v=d&&Ml(n)?f:f.value;return s&&pe(v)?El(v):v}return pe(f)?s?El(f):Wl(f):f}}class ys extends ms{constructor(t=!1){super(!1,t)}set(t,n,o,s){let i=t[n];const d=H(t)&&Ml(n);if(!this._isShallow){const _=Pt(i);if(!Qe(o)&&!Pt(o)&&(i=ae(i),o=ae(o)),!d&&Te(i)&&!Te(o))return _||(i.value=o),!0}const f=d?Number(n)<t.length:ue(t,n),v=Reflect.set(t,n,o,Te(t)?t:s);return t===ae(s)&&v&&(f?ft(o,i)&&xt(t,"set",n,o):xt(t,"add",n,o)),v}deleteProperty(t,n){const o=ue(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&xt(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!vt(n)||!_s.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",H(t)?"length":Bt),Reflect.ownKeys(t)}}class jr extends ms{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Wr=new ys,Hr=new jr,Kr=new ys(!0);const Pl=e=>e,In=e=>Reflect.getPrototypeOf(e);function qr(e,t,n){return function(...o){const s=this.__v_raw,i=ae(s),d=Jt(i),f=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,_=s[e](...o),h=n?Pl:t?Qt:lt;return!t&&De(i,"iterate",v?Sl:Bt),Se(Object.create(_),{next(){const{value:w,done:R}=_.next();return R?{value:w,done:R}:{value:f?[h(w[0]),h(w[1])]:h(w),done:R}}})}}function On(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jr(e,t){const n={get(s){const i=this.__v_raw,d=ae(i),f=ae(s);e||(ft(s,f)&&De(d,"get",s),De(d,"get",f));const{has:v}=In(d),_=t?Pl:e?Qt:lt;if(v.call(d,s))return _(i.get(s));if(v.call(d,f))return _(i.get(f));i!==d&&i.get(s)},get size(){const s=this.__v_raw;return!e&&De(ae(s),"iterate",Bt),s.size},has(s){const i=this.__v_raw,d=ae(i),f=ae(s);return e||(ft(s,f)&&De(d,"has",s),De(d,"has",f)),s===f?i.has(s):i.has(s)||i.has(f)},forEach(s,i){const d=this,f=d.__v_raw,v=ae(f),_=t?Pl:e?Qt:lt;return!e&&De(v,"iterate",Bt),f.forEach((h,w)=>s.call(i,_(h),_(w),d))}};return Se(n,e?{add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear")}:{add(s){const i=ae(this),d=In(i),f=ae(s),v=!t&&!Qe(s)&&!Pt(s)?f:s;return d.has.call(i,v)||ft(s,v)&&d.has.call(i,s)||ft(f,v)&&d.has.call(i,f)||(i.add(v),xt(i,"add",v,v)),this},set(s,i){!t&&!Qe(i)&&!Pt(i)&&(i=ae(i));const d=ae(this),{has:f,get:v}=In(d);let _=f.call(d,s);_||(s=ae(s),_=f.call(d,s));const h=v.call(d,s);return d.set(s,i),_?ft(i,h)&&xt(d,"set",s,i):xt(d,"add",s,i),this},delete(s){const i=ae(this),{has:d,get:f}=In(i);let v=d.call(i,s);v||(s=ae(s),v=d.call(i,s)),f&&f.call(i,s);const _=i.delete(s);return v&&xt(i,"delete",s,void 0),_},clear(){const s=ae(this),i=s.size!==0,d=s.clear();return i&&xt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=qr(s,e,t)}),n}function jl(e,t){const n=Jr(e,t);return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ue(n,s)&&s in o?n:o,s,i)}const Gr={get:jl(!1,!1)},zr={get:jl(!1,!0)},Yr={get:jl(!0,!1)};const bs=new WeakMap,ws=new WeakMap,ks=new WeakMap,Qr=new WeakMap;function Xr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return Pt(e)?e:Hl(e,!1,Wr,Gr,bs)}function Zr(e){return Hl(e,!1,Kr,zr,ws)}function El(e){return Hl(e,!0,Hr,Yr,ks)}function Hl(e,t,n,o,s){if(!pe(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 d=Xr(xr(e));if(d===0)return e;const f=new Proxy(e,d===2?o:n);return s.set(e,f),f}function Lt(e){return Pt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Kl(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function ea(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const lt=e=>pe(e)?Wl(e):e,Qt=e=>pe(e)?El(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function V(e){return ta(e,!1)}function ta(e,t){return Te(e)?e:new na(e,t)}class na{constructor(t,n){this.dep=new Nl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ae(t),this._value=n?t:lt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Qe(t)||Pt(t);t=o?t:ae(t),ft(t,n)&&(this._rawValue=t,this._value=o?t:lt(t),this.dep.trigger())}}function la(e){return Te(e)?e.value:e}const oa={get:(e,t,n)=>t==="__v_raw"?e:la(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Te(s)&&!Te(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function xs(e){return Lt(e)?e:new Proxy(e,oa)}class sa{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Nl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return cs(this,!0),!0}get value(){const t=this.dep.track();return vs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ia(e,t,n=!1){let o,s;return J(e)?o=e:(o=e.get,s=e.set),new sa(o,s,n)}const An={},Mn=new WeakMap;let Mt;function ra(e,t=!1,n=Mt){if(n){let o=Mn.get(n);o||Mn.set(n,o=[]),o.push(e)}}function aa(e,t,n=ge){const{immediate:o,deep:s,once:i,scheduler:d,augmentJob:f,call:v}=n,_=N=>s?N:Qe(N)||s===!1||s===0?Ct(N,1):Ct(N);let h,w,R,M,ne=!1,W=!1;if(Te(e)?(w=()=>e.value,ne=Qe(e)):Lt(e)?(w=()=>_(e),ne=!0):H(e)?(W=!0,ne=e.some(N=>Lt(N)||Qe(N)),w=()=>e.map(N=>{if(Te(N))return N.value;if(Lt(N))return _(N);if(J(N))return v?v(N,2):N()})):J(e)?t?w=v?()=>v(e,2):e:w=()=>{if(R){gt();try{R()}finally{ht()}}const N=Mt;Mt=h;try{return v?v(e,3,[M]):e(M)}finally{Mt=N}}:w=pt,t&&s){const N=w,he=s===!0?1/0:s;w=()=>Ct(N(),he)}const me=Rr(),ie=()=>{h.stop(),me&&me.active&&Rl(me.effects,h)};if(i&&t){const N=t;t=(...he)=>{const xe=N(...he);return ie(),xe}}let ee=W?new Array(e.length).fill(An):An;const X=N=>{if(!(!(h.flags&1)||!h.dirty&&!N))if(t){const he=h.run();if(N||s||ne||(W?he.some((xe,Ie)=>ft(xe,ee[Ie])):ft(he,ee))){R&&R();const xe=Mt;Mt=h;try{const Ie=[he,ee===An?void 0:W&&ee[0]===An?[]:ee,M];ee=he,v?v(t,3,Ie):t(...Ie)}finally{Mt=xe}}}else h.run()};return f&&f(X),h=new us(w),h.scheduler=d?()=>d(X,!1):X,M=N=>ra(N,!1,h),R=h.onStop=()=>{const N=Mn.get(h);if(N){if(v)v(N,4);else for(const he of N)he();Mn.delete(h)}},t?o?X(!0):ee=h.run():d?d(X.bind(null,!0),!0):h.run(),ie.pause=h.pause.bind(h),ie.resume=h.resume.bind(h),ie.stop=ie,ie}function Ct(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Te(e))Ct(e.value,t,n);else if(H(e))for(let o=0;o<e.length;o++)Ct(e[o],t,n);else if(Jn(e)||Jt(e))e.forEach(o=>{Ct(o,t,n)});else if(ls(e)){for(const o in e)Ct(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ct(e[o],t,n)}return e}/**
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function yn(e,t,n,o){try{return o?e(...o):e()}catch(s){Zn(s,t,n)}}function ot(e,t,n,o){if(J(e)){const s=yn(e,t,n,o);return s&&ts(s)&&s.catch(i=>{Zn(i,t,n)}),s}if(H(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ot(e[i],t,n,o));return s}}function Zn(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:d}=t&&t.appContext.config||ge;if(t){let f=t.parent;const v=t.proxy,_=`https://vuejs.org/error-reference/#runtime-${n}`;for(;f;){const h=f.ec;if(h){for(let w=0;w<h.length;w++)if(h[w](e,v,_)===!1)return}f=f.parent}if(i){gt(),yn(i,null,10,[e,v,_]),ht();return}}ua(e,n,s,o,d)}function ua(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const Ae=[];let at=-1;const Gt=[];let It=null,Kt=0;const Cs=Promise.resolve();let Vn=null;function Ss(e){const t=Vn||Cs;return e?t.then(this?e.bind(this):e):t}function da(e){let t=at+1,n=Ae.length;for(;t<n;){const o=t+n>>>1,s=Ae[o],i=vn(s);i<e||i===e&&s.flags&2?t=o+1:n=o}return t}function ql(e){if(!(e.flags&1)){const t=vn(e),n=Ae[Ae.length-1];!n||!(e.flags&2)&&t>=vn(n)?Ae.push(e):Ae.splice(da(t),0,e),e.flags|=1,Ps()}}function Ps(){Vn||(Vn=Cs.then(Ds))}function ca(e){H(e)?Gt.push(...e):It&&e.id===-1?It.splice(Kt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1),Ps()}function Po(e,t,n=at+1){for(;n<Ae.length;n++){const o=Ae[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ae.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Es(e){if(Gt.length){const t=[...new Set(Gt)].sort((n,o)=>vn(n)-vn(o));if(Gt.length=0,It){It.push(...t);return}for(It=t,Kt=0;Kt<It.length;Kt++){const n=It[Kt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}It=null,Kt=0}}const vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ds(e){try{for(at=0;at<Ae.length;at++){const t=Ae[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),yn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Ae.length;at++){const t=Ae[at];t&&(t.flags&=-2)}at=-1,Ae.length=0,Es(),Vn=null,(Ae.length||Gt.length)&&Ds()}}let Ye=null,Ts=null;function Bn(e){const t=Ye;return Ye=e,Ts=e&&e.type.__scopeId||null,t}function fa(e,t=Ye,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Vo(-1);const i=Bn(t);let d;try{d=e(...s)}finally{Bn(i),o._d&&Vo(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function A(e,t){if(Ye===null)return e;const n=ll(Ye),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,d,f,v=ge]=t[s];i&&(J(i)&&(i={mounted:i,updated:i}),i.deep&&Ct(d),o.push({dir:i,instance:n,value:d,oldValue:void 0,arg:f,modifiers:v}))}return e}function $t(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let d=0;d<s.length;d++){const f=s[d];i&&(f.oldValue=i[d].value);let v=f.dir[o];v&&(gt(),ot(v,n,8,[e.el,f,e,t]),ht())}}function pa(e,t){if(Ue){let n=Ue.provides;const o=Ue.parent&&Ue.parent.provides;o===n&&(n=Ue.provides=Object.create(o)),n[e]=t}}function $n(e,t,n=!1){const o=pu();if(o||zt){let s=zt?zt._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&J(t)?t.call(o&&o.proxy):t}}const va=Symbol.for("v-scx"),ga=()=>$n(va);function hl(e,t,n){return Is(e,t,n)}function Is(e,t,n=ge){const{immediate:o,deep:s,flush:i,once:d}=n,f=Se({},n),v=t&&o||!t&&i!=="post";let _;if(hn){if(i==="sync"){const M=ga();_=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=pt,M.resume=pt,M.pause=pt,M}}const h=Ue;f.call=(M,ne,W)=>ot(M,h,ne,W);let w=!1;i==="post"?f.scheduler=M=>{$e(M,h&&h.suspense)}:i!=="sync"&&(w=!0,f.scheduler=(M,ne)=>{ne?M():ql(M)}),f.augmentJob=M=>{t&&(M.flags|=4),w&&(M.flags|=2,h&&(M.id=h.uid,M.i=h))};const R=aa(e,t,f);return hn&&(_?_.push(R):v&&R()),R}function ha(e,t,n){const o=this.proxy,s=ye(e)?e.includes(".")?Os(o,e):()=>o[e]:e.bind(o,o);let i;J(t)?i=t:(i=t.handler,n=t);const d=bn(this),f=Is(s,i.bind(o),n);return d(),f}function Os(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}const _a=Symbol("_vte"),ma=e=>e.__isTeleport,_l=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 ya(e,t){return J(e)?Se({name:e.name},t,{setup:e}):e}function As(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Eo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ln=new WeakMap;function an(e,t,n,o,s=!1){if(H(e)){e.forEach((W,me)=>an(W,t&&(H(t)?t[me]:t),n,o,s));return}if(un(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&an(e,t,n,o.component.subTree);return}const i=o.shapeFlag&4?ll(o.component):o.el,d=s?null:i,{i:f,r:v}=e,_=t&&t.r,h=f.refs===ge?f.refs={}:f.refs,w=f.setupState,R=ae(w),M=w===ge?es:W=>Eo(h,W)?!1:ue(R,W),ne=(W,me)=>!(me&&Eo(h,me));if(_!=null&&_!==v){if(Do(t),ye(_))h[_]=null,M(_)&&(w[_]=null);else if(Te(_)){const W=t;ne(_,W.k)&&(_.value=null),W.k&&(h[W.k]=null)}}if(J(v)){gt();try{yn(v,f,12,[d,h])}finally{ht()}}else{const W=ye(v),me=Te(v);if(W||me){const ie=()=>{if(e.f){const ee=W?M(v)?w[v]:h[v]:ne()||!e.k?v.value:h[e.k];if(s)H(ee)&&Rl(ee,i);else if(H(ee))ee.includes(i)||ee.push(i);else if(W)h[v]=[i],M(v)&&(w[v]=h[v]);else{const X=[i];ne(v,e.k)&&(v.value=X),e.k&&(h[e.k]=X)}}else W?(h[v]=d,M(v)&&(w[v]=d)):me&&(ne(v,e.k)&&(v.value=d),e.k&&(h[e.k]=d))};if(d){const ee=()=>{ie(),Ln.delete(e)};ee.id=-1,Ln.set(e,ee),$e(ee,n)}else Do(e),ie()}}}function Do(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Yn().requestIdleCallback;Yn().cancelIdleCallback;const un=e=>!!e.type.__asyncLoader,Us=e=>e.type.__isKeepAlive;function ba(e,t){$s(e,"a",t)}function wa(e,t){$s(e,"da",t)}function $s(e,t,n=Ue){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(el(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Us(s.parent.vnode)&&ka(o,t,n,s),s=s.parent}}function ka(e,t,n,o){const s=el(t,e,o,!0);Ms(()=>{Rl(o[t],s)},n)}function el(e,t,n=Ue,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...d)=>{gt();const f=bn(n),v=ot(t,n,e,d);return f(),ht(),v});return o?s.unshift(i):s.push(i),i}}const Et=e=>(t,n=Ue)=>{(!hn||e==="sp")&&el(e,(...o)=>t(...o),n)},xa=Et("bm"),Rs=Et("m"),Ca=Et("bu"),Sa=Et("u"),Pa=Et("bum"),Ms=Et("um"),Ea=Et("sp"),Da=Et("rtg"),Ta=Et("rtc");function Ia(e,t=Ue){el("ec",e,t)}const Oa=Symbol.for("v-ndc");function fe(e,t,n,o){let s;const i=n,d=H(e);if(d||ye(e)){const f=d&&Lt(e);let v=!1,_=!1;f&&(v=!Qe(e),_=Pt(e),e=Xn(e)),s=new Array(e.length);for(let h=0,w=e.length;h<w;h++)s[h]=t(v?_?Qt(lt(e[h])):lt(e[h]):e[h],h,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,i)}else if(pe(e))if(e[Symbol.iterator])s=Array.from(e,(f,v)=>t(f,v,void 0,i));else{const f=Object.keys(e);s=new Array(f.length);for(let v=0,_=f.length;v<_;v++){const h=f[v];s[v]=t(e[h],h,v,i)}}else s=[];return s}const Dl=e=>e?li(e)?ll(e):Dl(e.parent):null,dn=Se(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=>Dl(e.parent),$root:e=>Dl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{ql(e.update)}),$nextTick:e=>e.n||(e.n=Ss.bind(e.proxy)),$watch:e=>ha.bind(e)}),ml=(e,t)=>e!==ge&&!e.__isScriptSetup&&ue(e,t),Aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:i,accessCache:d,type:f,appContext:v}=e;if(t[0]!=="$"){const R=d[t];if(R!==void 0)switch(R){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ml(o,t))return d[t]=1,o[t];if(s!==ge&&ue(s,t))return d[t]=2,s[t];if(ue(i,t))return d[t]=3,i[t];if(n!==ge&&ue(n,t))return d[t]=4,n[t];Tl&&(d[t]=0)}}const _=dn[t];let h,w;if(_)return t==="$attrs"&&De(e.attrs,"get",""),_(e);if((h=f.__cssModules)&&(h=h[t]))return h;if(n!==ge&&ue(n,t))return d[t]=4,n[t];if(w=v.config.globalProperties,ue(w,t))return w[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return ml(s,t)?(s[t]=n,!0):o!==ge&&ue(o,t)?(o[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:i,type:d}},f){let v;return!!(n[f]||e!==ge&&f[0]!=="$"&&ue(e,f)||ml(t,f)||ue(i,f)||ue(o,f)||ue(dn,f)||ue(s.config.globalProperties,f)||(v=d.__cssModules)&&v[f])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function To(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tl=!0;function Ua(e){const t=Bs(e),n=e.proxy,o=e.ctx;Tl=!1,t.beforeCreate&&Io(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:d,watch:f,provide:v,inject:_,created:h,beforeMount:w,mounted:R,beforeUpdate:M,updated:ne,activated:W,deactivated:me,beforeDestroy:ie,beforeUnmount:ee,destroyed:X,unmounted:N,render:he,renderTracked:xe,renderTriggered:Ie,errorCaptured:Re,serverPrefetch:_t,expose:Fe,inheritAttrs:ve,components:Ne,directives:Xe,filters:je}=t;if(_&&$a(_,o,null),d)for(const de in d){const le=d[de];J(le)&&(o[de]=le.bind(n))}if(s){const de=s.call(n,n);pe(de)&&(e.data=Wl(de))}if(Tl=!0,i)for(const de in i){const le=i[de],Me=J(le)?le.bind(n,n):J(le.get)?le.get.bind(n,n):pt,st=!J(le)&&J(le.set)?le.set.bind(n):pt,Ve=Tt({get:Me,set:st});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:q=>Ve.value=q})}if(f)for(const de in f)Vs(f[de],o,n,de);if(v){const de=J(v)?v.call(n):v;Reflect.ownKeys(de).forEach(le=>{pa(le,de[le])})}h&&Io(h,e,"c");function be(de,le){H(le)?le.forEach(Me=>de(Me.bind(n))):le&&de(le.bind(n))}if(be(xa,w),be(Rs,R),be(Ca,M),be(Sa,ne),be(ba,W),be(wa,me),be(Ia,Re),be(Ta,xe),be(Da,Ie),be(Pa,ee),be(Ms,N),be(Ea,_t),H(Fe))if(Fe.length){const de=e.exposed||(e.exposed={});Fe.forEach(le=>{Object.defineProperty(de,le,{get:()=>n[le],set:Me=>n[le]=Me,enumerable:!0})})}else e.exposed||(e.exposed={});he&&e.render===pt&&(e.render=he),ve!=null&&(e.inheritAttrs=ve),Ne&&(e.components=Ne),Xe&&(e.directives=Xe),_t&&As(e)}function $a(e,t,n=pt){H(e)&&(e=Il(e));for(const o in e){const s=e[o];let i;pe(s)?"default"in s?i=$n(s.from||o,s.default,!0):i=$n(s.from||o):i=$n(s),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:d=>i.value=d}):t[o]=i}}function Io(e,t,n){ot(H(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vs(e,t,n,o){let s=o.includes(".")?Os(n,o):()=>n[o];if(ye(e)){const i=t[e];J(i)&&hl(s,i)}else if(J(e))hl(s,e.bind(n));else if(pe(e))if(H(e))e.forEach(i=>Vs(i,t,n,o));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&hl(s,i,e)}}function Bs(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:d}}=e.appContext,f=i.get(t);let v;return f?v=f:!s.length&&!n&&!o?v=t:(v={},s.length&&s.forEach(_=>Fn(v,_,d,!0)),Fn(v,t,d)),pe(t)&&i.set(t,v),v}function Fn(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Fn(e,i,n,!0),s&&s.forEach(d=>Fn(e,d,n,!0));for(const d in t)if(!(o&&d==="expose")){const f=Ra[d]||n&&n[d];e[d]=f?f(e[d],t[d]):t[d]}return e}const Ra={data:Oo,props:Ao,emits:Ao,methods:nn,computed:nn,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:nn,directives:nn,watch:Va,provide:Oo,inject:Ma};function Oo(e,t){return t?e?function(){return Se(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function Ma(e,t){return nn(Il(e),Il(t))}function Il(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Oe(e,t){return e?[...new Set([].concat(e,t))]:t}function nn(e,t){return e?Se(Object.create(null),e,t):t}function Ao(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:Se(Object.create(null),To(e),To(t??{})):t}function Va(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Oe(e[o],t[o]);return n}function Ls(){return{app:null,config:{isNativeTag:es,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ba=0;function La(e,t){return function(o,s=null){J(o)||(o=Se({},o)),s!=null&&!pe(s)&&(s=null);const i=Ls(),d=new WeakSet,f=[];let v=!1;const _=i.app={_uid:Ba++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:yu,get config(){return i.config},set config(h){},use(h,...w){return d.has(h)||(h&&J(h.install)?(d.add(h),h.install(_,...w)):J(h)&&(d.add(h),h(_,...w))),_},mixin(h){return i.mixins.includes(h)||i.mixins.push(h),_},component(h,w){return w?(i.components[h]=w,_):i.components[h]},directive(h,w){return w?(i.directives[h]=w,_):i.directives[h]},mount(h,w,R){if(!v){const M=_._ceVNode||St(o,s);return M.appContext=i,R===!0?R="svg":R===!1&&(R=void 0),e(M,h,R),v=!0,_._container=h,h.__vue_app__=_,ll(M.component)}},onUnmount(h){f.push(h)},unmount(){v&&(ot(f,_._instance,16),e(null,_._container),delete _._container.__vue_app__)},provide(h,w){return i.provides[h]=w,_},runWithContext(h){const w=zt;zt=_;try{return h()}finally{zt=w}}};return _}}let zt=null;const Fa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function Na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ge;let s=n;const i=t.startsWith("update:"),d=i&&Fa(o,t.slice(7));d&&(d.trim&&(s=n.map(h=>ye(h)?h.trim():h)),d.number&&(s=n.map(zn)));let f,v=o[f=cl(t)]||o[f=cl(tt(t))];!v&&i&&(v=o[f=cl(Ft(t))]),v&&ot(v,e,6,s);const _=o[f+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,ot(_,e,6,s)}}const ja=new WeakMap;function Fs(e,t,n=!1){const o=n?ja:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let d={},f=!1;if(!J(e)){const v=_=>{const h=Fs(_,t,!0);h&&(f=!0,Se(d,h))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!f?(pe(e)&&o.set(e,null),null):(H(i)?i.forEach(v=>d[v]=null):Se(d,i),pe(e)&&o.set(e,d),d)}function tl(e,t){return!e||!Kn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Ft(t))||ue(e,t))}function Uo(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[i],slots:d,attrs:f,emit:v,render:_,renderCache:h,props:w,data:R,setupState:M,ctx:ne,inheritAttrs:W}=e,me=Bn(e);let ie,ee;try{if(n.shapeFlag&4){const N=s||o,he=N;ie=ct(_.call(he,N,h,w,M,R,ne)),ee=f}else{const N=t;ie=ct(N.length>1?N(w,{attrs:f,slots:d,emit:v}):N(w,null)),ee=t.props?f:Wa(f)}}catch(N){cn.length=0,Zn(N,e,1),ie=St(Ot)}let X=ie;if(ee&&W!==!1){const N=Object.keys(ee),{shapeFlag:he}=X;N.length&&he&7&&(i&&N.some(qn)&&(ee=Ha(ee,i)),X=Xt(X,ee,!1,!0))}return n.dirs&&(X=Xt(X,null,!1,!0),X.dirs=X.dirs?X.dirs.concat(n.dirs):n.dirs),n.transition&&Jl(X,n.transition),ie=X,Bn(me),ie}const Wa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Ha=(e,t)=>{const n={};for(const o in e)(!qn(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Ka(e,t,n){const{props:o,children:s,component:i}=e,{props:d,children:f,patchFlag:v}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return o?$o(o,d,_):!!d;if(v&8){const h=t.dynamicProps;for(let w=0;w<h.length;w++){const R=h[w];if(Ns(d,o,R)&&!tl(_,R))return!0}}}else return(s||f)&&(!f||!f.$stable)?!0:o===d?!1:o?d?$o(o,d,_):!0:!!d;return!1}function $o(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(Ns(t,e,i)&&!tl(n,i))return!0}return!1}function Ns(e,t,n){const o=e[n],s=t[n];return n==="style"&&pe(o)&&pe(s)?!mn(o,s):o!==s}function qa({vnode:e,parent:t,suspense:n},o){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=o,e=s),s===e)(e=t.vnode).el=o,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=o)}const js={},Ws=()=>Object.create(js),Hs=e=>Object.getPrototypeOf(e)===js;function Ja(e,t,n,o=!1){const s={},i=Ws();e.propsDefaults=Object.create(null),Ks(e,t,s,i);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);n?e.props=o?s:Zr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ga(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:d}}=e,f=ae(s),[v]=e.propsOptions;let _=!1;if((o||d>0)&&!(d&16)){if(d&8){const h=e.vnode.dynamicProps;for(let w=0;w<h.length;w++){let R=h[w];if(tl(e.emitsOptions,R))continue;const M=t[R];if(v)if(ue(i,R))M!==i[R]&&(i[R]=M,_=!0);else{const ne=tt(R);s[ne]=Ol(v,f,ne,M,e,!1)}else M!==i[R]&&(i[R]=M,_=!0)}}}else{Ks(e,t,s,i)&&(_=!0);let h;for(const w in f)(!t||!ue(t,w)&&((h=Ft(w))===w||!ue(t,h)))&&(v?n&&(n[w]!==void 0||n[h]!==void 0)&&(s[w]=Ol(v,f,w,void 0,e,!0)):delete s[w]);if(i!==f)for(const w in i)(!t||!ue(t,w))&&(delete i[w],_=!0)}_&&xt(e.attrs,"set","")}function Ks(e,t,n,o){const[s,i]=e.propsOptions;let d=!1,f;if(t)for(let v in t){if(on(v))continue;const _=t[v];let h;s&&ue(s,h=tt(v))?!i||!i.includes(h)?n[h]=_:(f||(f={}))[h]=_:tl(e.emitsOptions,v)||(!(v in o)||_!==o[v])&&(o[v]=_,d=!0)}if(i){const v=ae(n),_=f||ge;for(let h=0;h<i.length;h++){const w=i[h];n[w]=Ol(s,v,w,_[w],e,!ue(_,w))}}return d}function Ol(e,t,n,o,s,i){const d=e[n];if(d!=null){const f=ue(d,"default");if(f&&o===void 0){const v=d.default;if(d.type!==Function&&!d.skipFactory&&J(v)){const{propsDefaults:_}=s;if(n in _)o=_[n];else{const h=bn(s);o=_[n]=v.call(null,t),h()}}else o=v;s.ce&&s.ce._setProp(n,o)}d[0]&&(i&&!f?o=!1:d[1]&&(o===""||o===Ft(n))&&(o=!0))}return o}const za=new WeakMap;function qs(e,t,n=!1){const o=n?za:t.propsCache,s=o.get(e);if(s)return s;const i=e.props,d={},f=[];let v=!1;if(!J(e)){const h=w=>{v=!0;const[R,M]=qs(w,t,!0);Se(d,R),M&&f.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!v)return pe(e)&&o.set(e,qt),qt;if(H(i))for(let h=0;h<i.length;h++){const w=tt(i[h]);Ro(w)&&(d[w]=ge)}else if(i)for(const h in i){const w=tt(h);if(Ro(w)){const R=i[h],M=d[w]=H(R)||J(R)?{type:R}:Se({},R),ne=M.type;let W=!1,me=!0;if(H(ne))for(let ie=0;ie<ne.length;++ie){const ee=ne[ie],X=J(ee)&&ee.name;if(X==="Boolean"){W=!0;break}else X==="String"&&(me=!1)}else W=J(ne)&&ne.name==="Boolean";M[0]=W,M[1]=me,(W||ue(M,"default"))&&f.push(w)}}const _=[d,f];return pe(e)&&o.set(e,_),_}function Ro(e){return e[0]!=="$"&&!on(e)}const Gl=e=>e==="_"||e==="_ctx"||e==="$stable",zl=e=>H(e)?e.map(ct):[ct(e)],Ya=(e,t,n)=>{if(t._n)return t;const o=fa((...s)=>zl(t(...s)),n);return o._c=!1,o},Js=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Gl(s))continue;const i=e[s];if(J(i))t[s]=Ya(s,i,o);else if(i!=null){const d=zl(i);t[s]=()=>d}}},Gs=(e,t)=>{const n=zl(t);e.slots.default=()=>n},zs=(e,t,n)=>{for(const o in t)(n||!Gl(o))&&(e[o]=t[o])},Qa=(e,t,n)=>{const o=e.slots=Ws();if(e.vnode.shapeFlag&32){const s=t._;s?(zs(o,t,n),n&&ss(o,"_",s,!0)):Js(t,o)}else t&&Gs(e,t)},Xa=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,d=ge;if(o.shapeFlag&32){const f=t._;f?n&&f===1?i=!1:zs(s,t,n):(i=!t.$stable,Js(t,s)),d=t}else t&&(Gs(e,t),d={default:1});if(i)for(const f in s)!Gl(f)&&d[f]==null&&delete s[f]},$e=lu;function Za(e){return eu(e)}function eu(e,t){const n=Yn();n.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:d,createText:f,createComment:v,setText:_,setElementText:h,parentNode:w,nextSibling:R,setScopeId:M=pt,insertStaticContent:ne}=e,W=(p,g,m,E=null,k=null,y=null,T=void 0,D=null,P=!!g.dynamicChildren)=>{if(p===g)return;p&&!tn(p,g)&&(E=Q(p),q(p,k,y,!0),p=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:b,ref:L,shapeFlag:O}=g;switch(b){case nl:me(p,g,m,E);break;case Ot:ie(p,g,m,E);break;case bl:p==null&&ee(g,m,E,T);break;case Y:Ne(p,g,m,E,k,y,T,D,P);break;default:O&1?he(p,g,m,E,k,y,T,D,P):O&6?Xe(p,g,m,E,k,y,T,D,P):(O&64||O&128)&&b.process(p,g,m,E,k,y,T,D,P,Pe)}L!=null&&k?an(L,p&&p.ref,y,g||p,!g):L==null&&p&&p.ref!=null&&an(p.ref,null,y,p,!0)},me=(p,g,m,E)=>{if(p==null)o(g.el=f(g.children),m,E);else{const k=g.el=p.el;g.children!==p.children&&_(k,g.children)}},ie=(p,g,m,E)=>{p==null?o(g.el=v(g.children||""),m,E):g.el=p.el},ee=(p,g,m,E)=>{[p.el,p.anchor]=ne(p.children,g,m,E,p.el,p.anchor)},X=({el:p,anchor:g},m,E)=>{let k;for(;p&&p!==g;)k=R(p),o(p,m,E),p=k;o(g,m,E)},N=({el:p,anchor:g})=>{let m;for(;p&&p!==g;)m=R(p),s(p),p=m;s(g)},he=(p,g,m,E,k,y,T,D,P)=>{if(g.type==="svg"?T="svg":g.type==="math"&&(T="mathml"),p==null)xe(g,m,E,k,y,T,D,P);else{const b=p.el&&p.el._isVueCE?p.el:null;try{b&&b._beginPatch(),_t(p,g,k,y,T,D,P)}finally{b&&b._endPatch()}}},xe=(p,g,m,E,k,y,T,D)=>{let P,b;const{props:L,shapeFlag:O,transition:B,dirs:U}=p;if(P=p.el=d(p.type,y,L&&L.is,L),O&8?h(P,p.children):O&16&&Re(p.children,P,null,E,k,yl(p,y),T,D),U&&$t(p,null,E,"created"),Ie(P,p,p.scopeId,T,E),L){for(const C in L)C!=="value"&&!on(C)&&i(P,C,null,L[C],y,E);"value"in L&&i(P,"value",null,L.value,y),(b=L.onVnodeBeforeMount)&&rt(b,E,p)}U&&$t(p,null,E,"beforeMount");const Z=tu(k,B);Z&&B.beforeEnter(P),o(P,g,m),((b=L&&L.onVnodeMounted)||Z||U)&&$e(()=>{try{b&&rt(b,E,p),Z&&B.enter(P),U&&$t(p,null,E,"mounted")}finally{}},k)},Ie=(p,g,m,E,k)=>{if(m&&M(p,m),E)for(let y=0;y<E.length;y++)M(p,E[y]);if(k){let y=k.subTree;if(g===y||Zs(y.type)&&(y.ssContent===g||y.ssFallback===g)){const T=k.vnode;Ie(p,T,T.scopeId,T.slotScopeIds,k.parent)}}},Re=(p,g,m,E,k,y,T,D,P=0)=>{for(let b=P;b<p.length;b++){const L=p[b]=D?kt(p[b]):ct(p[b]);W(null,L,g,m,E,k,y,T,D)}},_t=(p,g,m,E,k,y,T)=>{const D=g.el=p.el;let{patchFlag:P,dynamicChildren:b,dirs:L}=g;P|=p.patchFlag&16;const O=p.props||ge,B=g.props||ge;let U;if(m&&Rt(m,!1),(U=B.onVnodeBeforeUpdate)&&rt(U,m,g,p),L&&$t(g,p,m,"beforeUpdate"),m&&Rt(m,!0),b&&(!p.dynamicChildren||p.dynamicChildren.length!==b.length)&&(P=0,T=!1,b=null),(O.innerHTML&&B.innerHTML==null||O.textContent&&B.textContent==null)&&h(D,""),b?Fe(p.dynamicChildren,b,D,m,E,yl(g,k),y):T||le(p,g,D,null,m,E,yl(g,k),y,!1),P>0){if(P&16)ve(D,O,B,m,k);else if(P&2&&O.class!==B.class&&i(D,"class",null,B.class,k),P&4&&i(D,"style",O.style,B.style,k),P&8){const Z=g.dynamicProps;for(let C=0;C<Z.length;C++){const te=Z[C],re=O[te],we=B[te];(we!==re||te==="value")&&i(D,te,re,we,k,m)}}P&1&&p.children!==g.children&&h(D,g.children)}else!T&&b==null&&ve(D,O,B,m,k);((U=B.onVnodeUpdated)||L)&&$e(()=>{U&&rt(U,m,g,p),L&&$t(g,p,m,"updated")},E)},Fe=(p,g,m,E,k,y,T)=>{for(let D=0;D<g.length;D++){const P=p[D],b=g[D],L=P.el&&(P.type===Y||!tn(P,b)||P.shapeFlag&198)?w(P.el):m;W(P,b,L,null,E,k,y,T,!0)}},ve=(p,g,m,E,k)=>{if(g!==m){if(g!==ge)for(const y in g)!on(y)&&!(y in m)&&i(p,y,g[y],null,k,E);for(const y in m){if(on(y))continue;const T=m[y],D=g[y];T!==D&&y!=="value"&&i(p,y,D,T,k,E)}"value"in m&&i(p,"value",g.value,m.value,k)}},Ne=(p,g,m,E,k,y,T,D,P)=>{const b=g.el=p?p.el:f(""),L=g.anchor=p?p.anchor:f("");let{patchFlag:O,dynamicChildren:B,slotScopeIds:U}=g;U&&(D=D?D.concat(U):U),p==null?(o(b,m,E),o(L,m,E),Re(g.children||[],m,L,k,y,T,D,P)):O>0&&O&64&&B&&p.dynamicChildren&&p.dynamicChildren.length===B.length?(Fe(p.dynamicChildren,B,m,k,y,T,D),(g.key!=null||k&&g===k.subTree)&&Ys(p,g,!0)):le(p,g,m,L,k,y,T,D,P)},Xe=(p,g,m,E,k,y,T,D,P)=>{g.slotScopeIds=D,p==null?g.shapeFlag&512?k.ctx.activate(g,m,E,T,P):je(g,m,E,k,y,T,P):At(p,g,P)},je=(p,g,m,E,k,y,T)=>{const D=p.component=fu(p,E,k);if(Us(p)&&(D.ctx.renderer=Pe),vu(D,!1,T),D.asyncDep){if(k&&k.registerDep(D,be,T),!p.el){const P=D.subTree=St(Ot);ie(null,P,g,m),p.placeholder=P.el}}else be(D,p,g,m,k,y,T)},At=(p,g,m)=>{const E=g.component=p.component;if(Ka(p,g,m))if(E.asyncDep&&!E.asyncResolved){de(E,g,m);return}else E.next=g,E.update();else g.el=p.el,E.vnode=g},be=(p,g,m,E,k,y,T)=>{const D=()=>{if(p.isMounted){let{next:O,bu:B,u:U,parent:Z,vnode:C}=p;{const qe=Qs(p);if(qe){O&&(O.el=C.el,de(p,O,T)),qe.asyncDep.then(()=>{$e(()=>{p.isUnmounted||b()},k)});return}}let te=O,re;Rt(p,!1),O?(O.el=C.el,de(p,O,T)):O=C,B&&Un(B),(re=O.props&&O.props.onVnodeBeforeUpdate)&&rt(re,Z,O,C),Rt(p,!0);const we=Uo(p),Ke=p.subTree;p.subTree=we,W(Ke,we,w(Ke.el),Q(Ke),p,k,y),O.el=we.el,te===null&&qa(p,we.el),U&&$e(U,k),(re=O.props&&O.props.onVnodeUpdated)&&$e(()=>rt(re,Z,O,C),k)}else{let O;const{el:B,props:U}=g,{bm:Z,m:C,parent:te,root:re,type:we}=p,Ke=un(g);Rt(p,!1),Z&&Un(Z),!Ke&&(O=U&&U.onVnodeBeforeMount)&&rt(O,te,g),Rt(p,!0);{re.ce&&re.ce._hasShadowRoot()&&re.ce._injectChildStyle(we,p.parent?p.parent.type:void 0);const qe=p.subTree=Uo(p);W(null,qe,m,E,p,k,y),g.el=qe.el}if(C&&$e(C,k),!Ke&&(O=U&&U.onVnodeMounted)){const qe=g;$e(()=>rt(O,te,qe),k)}(g.shapeFlag&256||te&&un(te.vnode)&&te.vnode.shapeFlag&256)&&p.a&&$e(p.a,k),p.isMounted=!0,g=m=E=null}};p.scope.on();const P=p.effect=new us(D);p.scope.off();const b=p.update=P.run.bind(P),L=p.job=P.runIfDirty.bind(P);L.i=p,L.id=p.uid,P.scheduler=()=>ql(L),Rt(p,!0),b()},de=(p,g,m)=>{g.component=p;const E=p.vnode.props;p.vnode=g,p.next=null,Ga(p,g.props,E,m),Xa(p,g.children,m),gt(),Po(p),ht()},le=(p,g,m,E,k,y,T,D,P=!1)=>{const b=p&&p.children,L=p?p.shapeFlag:0,O=g.children,{patchFlag:B,shapeFlag:U}=g;if(B>0){if(B&128){st(b,O,m,E,k,y,T,D,P);return}else if(B&256){Me(b,O,m,E,k,y,T,D,P);return}}U&8?(L&16&&We(b,k,y),O!==b&&h(m,O)):L&16?U&16?st(b,O,m,E,k,y,T,D,P):We(b,k,y,!0):(L&8&&h(m,""),U&16&&Re(O,m,E,k,y,T,D,P))},Me=(p,g,m,E,k,y,T,D,P)=>{p=p||qt,g=g||qt;const b=p.length,L=g.length,O=Math.min(b,L);let B;for(B=0;B<O;B++){const U=g[B]=P?kt(g[B]):ct(g[B]);W(p[B],U,m,null,k,y,T,D,P)}b>L?We(p,k,y,!0,!1,O):Re(g,m,E,k,y,T,D,P,O)},st=(p,g,m,E,k,y,T,D,P)=>{let b=0;const L=g.length;let O=p.length-1,B=L-1;for(;b<=O&&b<=B;){const U=p[b],Z=g[b]=P?kt(g[b]):ct(g[b]);if(tn(U,Z))W(U,Z,m,null,k,y,T,D,P);else break;b++}for(;b<=O&&b<=B;){const U=p[O],Z=g[B]=P?kt(g[B]):ct(g[B]);if(tn(U,Z))W(U,Z,m,null,k,y,T,D,P);else break;O--,B--}if(b>O){if(b<=B){const U=B+1,Z=U<L?g[U].el:E;for(;b<=B;)W(null,g[b]=P?kt(g[b]):ct(g[b]),m,Z,k,y,T,D,P),b++}}else if(b>B)for(;b<=O;)q(p[b],k,y,!0),b++;else{const U=b,Z=b,C=new Map;for(b=Z;b<=B;b++){const Ee=g[b]=P?kt(g[b]):ct(g[b]);Ee.key!=null&&C.set(Ee.key,b)}let te,re=0;const we=B-Z+1;let Ke=!1,qe=0;const Ut=new Array(we);for(b=0;b<we;b++)Ut[b]=0;for(b=U;b<=O;b++){const Ee=p[b];if(re>=we){q(Ee,k,y,!0);continue}let Je;if(Ee.key!=null)Je=C.get(Ee.key);else for(te=Z;te<=B;te++)if(Ut[te-Z]===0&&tn(Ee,g[te])){Je=te;break}Je===void 0?q(Ee,k,y,!0):(Ut[Je-Z]=b+1,Je>=qe?qe=Je:Ke=!0,W(Ee,g[Je],m,null,k,y,T,D,P),re++)}const wn=Ke?nu(Ut):qt;for(te=wn.length-1,b=we-1;b>=0;b--){const Ee=Z+b,Je=g[Ee],kn=g[Ee+1],Nt=Ee+1<L?kn.el||Xs(kn):E;Ut[b]===0?W(null,Je,m,Nt,k,y,T,D,P):Ke&&(te<0||b!==wn[te]?Ve(Je,m,Nt,2):te--)}}},Ve=(p,g,m,E,k=null)=>{const{el:y,type:T,transition:D,children:P,shapeFlag:b}=p;if(b&6){Ve(p.component.subTree,g,m,E);return}if(b&128){p.suspense.move(g,m,E);return}if(b&64){T.move(p,g,m,Pe);return}if(T===Y){o(y,g,m);for(let O=0;O<P.length;O++)Ve(P[O],g,m,E);o(p.anchor,g,m);return}if(T===bl){X(p,g,m);return}if(E!==2&&b&1&&D)if(E===0)D.persisted&&!y[_l]?o(y,g,m):(D.beforeEnter(y),o(y,g,m),$e(()=>D.enter(y),k));else{const{leave:O,delayLeave:B,afterLeave:U}=D,Z=()=>{p.ctx.isUnmounted?s(y):o(y,g,m)},C=()=>{const te=y._isLeaving||!!y[_l];y._isLeaving&&y[_l](!0),D.persisted&&!te?Z():O(y,()=>{Z(),U&&U()})};B?B(y,Z,C):C()}else o(y,g,m)},q=(p,g,m,E=!1,k=!1)=>{const{type:y,props:T,ref:D,children:P,dynamicChildren:b,shapeFlag:L,patchFlag:O,dirs:B,cacheIndex:U,memo:Z}=p;if(O===-2&&(k=!1),D!=null&&(gt(),an(D,null,m,p,!0),ht()),U!=null&&(g.renderCache[U]=void 0),L&256){g.ctx.deactivate(p);return}const C=L&1&&B,te=!un(p);let re;if(te&&(re=T&&T.onVnodeBeforeUnmount)&&rt(re,g,p),L&6)it(p.component,m,E);else{if(L&128){p.suspense.unmount(m,E);return}C&&$t(p,null,g,"beforeUnmount"),L&64?p.type.remove(p,g,m,Pe,E):b&&!b.hasOnce&&(y!==Y||O>0&&O&64)?We(b,g,m,!1,!0):(y===Y&&O&384||!k&&L&16)&&We(P,g,m),E&&mt(p)}const we=Z!=null&&U==null;(te&&(re=T&&T.onVnodeUnmounted)||C||we)&&$e(()=>{re&&rt(re,g,p),C&&$t(p,null,g,"unmounted"),we&&(p.el=null)},m)},mt=p=>{const{type:g,el:m,anchor:E,transition:k}=p;if(g===Y){ce(m,E);return}if(g===bl){N(p);return}const y=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:T,delayLeave:D}=k,P=()=>T(m,y);D?D(p.el,y,P):P()}else y()},ce=(p,g)=>{let m;for(;p!==g;)m=R(p),s(p),p=m;s(g)},it=(p,g,m)=>{const{bum:E,scope:k,job:y,subTree:T,um:D,m:P,a:b}=p;Mo(P),Mo(b),E&&Un(E),k.stop(),y&&(y.flags|=8,q(T,p,g,m)),D&&$e(D,g),$e(()=>{p.isUnmounted=!0},g)},We=(p,g,m,E=!1,k=!1,y=0)=>{for(let T=y;T<p.length;T++)q(p[T],g,m,E,k)},Q=p=>{if(p.shapeFlag&6)return Q(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=R(p.anchor||p.el),m=g&&g[_a];return m?R(m):g};let Be=!1;const He=(p,g,m)=>{let E;p==null?g._vnode&&(q(g._vnode,null,null,!0),E=g._vnode.component):W(g._vnode||null,p,g,null,null,null,m),g._vnode=p,Be||(Be=!0,Po(E),Es(),Be=!1)},Pe={p:W,um:q,m:Ve,r:mt,mt:je,mc:Re,pc:le,pbc:Fe,n:Q,o:e};return{render:He,hydrate:void 0,createApp:La(He)}}function yl({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 Rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ys(e,t,n=!1){const o=e.children,s=t.children;if(H(o)&&H(s))for(let i=0;i<o.length;i++){const d=o[i];let f=s[i];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=s[i]=kt(s[i]),f.el=d.el),!n&&f.patchFlag!==-2&&Ys(d,f)),f.type===nl&&(f.patchFlag===-1&&(f=s[i]=kt(f)),f.el=d.el),f.type===Ot&&!f.el&&(f.el=d.el)}}function nu(e){const t=e.slice(),n=[0];let o,s,i,d,f;const v=e.length;for(o=0;o<v;o++){const _=e[o];if(_!==0){if(s=n[n.length-1],e[s]<_){t[o]=s,n.push(o);continue}for(i=0,d=n.length-1;i<d;)f=i+d>>1,e[n[f]]<_?i=f+1:d=f;_<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,d=n[i-1];i-- >0;)n[i]=d,d=t[d];return n}function Qs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qs(t)}function Mo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xs(t.subTree):null}const Zs=e=>e.__isSuspense;function lu(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ca(e)}const Y=Symbol.for("v-fgt"),nl=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),bl=Symbol.for("v-stc"),cn=[];let Le=null;function x(e=!1){cn.push(Le=e?null:[])}function ou(){cn.pop(),Le=cn[cn.length-1]||null}let gn=1;function Vo(e,t=!1){gn+=e,e<0&&Le&&t&&(Le.hasOnce=!0)}function ei(e){return e.dynamicChildren=gn>0?Le||qt:null,ou(),gn>0&&Le&&Le.push(e),e}function S(e,t,n,o,s,i){return ei(l(e,t,n,o,s,i,!0))}function su(e,t,n,o,s){return ei(St(e,t,n,o,s,!0))}function ti(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const ni=({key:e})=>e??null,Rn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Te(e)||J(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,o=0,s=null,i=e===Y?0:1,d=!1,f=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&Rn(t),scopeId:Ts,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:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ye};return f?(Nn(v,n),i&128&&e.normalize(v)):n&&(v.shapeFlag|=ye(n)?8:16),gn>0&&!d&&Le&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&Le.push(v),v}const St=iu;function iu(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===Oa)&&(e=Ot),ti(e)){const f=Xt(e,t,!0);return n&&Nn(f,n),gn>0&&!i&&Le&&(f.shapeFlag&6?Le[Le.indexOf(e)]=f:Le.push(f)),f.patchFlag=-2,f}if(mu(e)&&(e=e.__vccOpts),t){t=ru(t);let{class:f,style:v}=t;f&&!ye(f)&&(t.class=Qn(f)),pe(v)&&(Kl(v)&&!H(v)&&(v=Se({},v)),t.style=Vl(v))}const d=ye(e)?1:Zs(e)?128:ma(e)?64:pe(e)?4:J(e)?2:0;return l(e,t,n,o,s,d,i,!0)}function ru(e){return e?Kl(e)||Hs(e)?Se({},e):e:null}function Xt(e,t,n=!1,o=!1){const{props:s,ref:i,patchFlag:d,children:f,transition:v}=e,_=t?uu(s||{},t):s,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&ni(_),ref:t&&t.ref?n&&i?H(i)?i.concat(Rn(t)):[i,Rn(t)]:Rn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xt(e.ssContent),ssFallback:e.ssFallback&&Xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&Jl(h,v.clone(h)),h}function au(e=" ",t=0){return St(nl,null,e,t)}function K(e="",t=!1){return t?(x(),su(Ot,null,e)):St(Ot,null,e)}function ct(e){return e==null||typeof e=="boolean"?St(Ot):H(e)?St(Y,null,e.slice()):ti(e)?kt(e):St(nl,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xt(e)}function Nn(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Nn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Hs(t)?t._ctx=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(o&65){Nn(e,{default:t});return}t={default:t,_ctx:Ye},n=32}else t=String(t),o&64?(n=16,t=[au(t)]):n=8;e.children=t,e.shapeFlag|=n}function uu(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Qn([t.class,o.class]));else if(s==="style")t.style=Vl([t.style,o.style]);else if(Kn(s)){const i=t[s],d=o[s];d&&i!==d&&!(H(i)&&i.includes(d))?t[s]=i?[].concat(i,d):d:d==null&&i==null&&!qn(s)&&(t[s]=d)}else s!==""&&(t[s]=o[s])}return t}function rt(e,t,n,o=null){ot(e,t,7,[n,o])}const du=Ls();let cu=0;function fu(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||du,i={uid:cu++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new $r(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qs(o,s),emitsOptions:Fs(o,s),emit:null,emitted:null,propsDefaults:ge,inheritAttrs:o.inheritAttrs,ctx:ge,data:ge,props:ge,attrs:ge,slots:ge,refs:ge,setupState:ge,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Na.bind(null,i),e.ce&&e.ce(i),i}let Ue=null;const pu=()=>Ue||Ye;let jn,Al;{const e=Yn(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),i=>{s.length>1?s.forEach(d=>d(i)):s[0](i)}};jn=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Al=t("__VUE_SSR_SETTERS__",n=>hn=n)}const bn=e=>{const t=Ue;return jn(e),e.scope.on(),()=>{e.scope.off(),jn(t)}},Bo=()=>{Ue&&Ue.scope.off(),jn(null)};function li(e){return e.vnode.shapeFlag&4}let hn=!1;function vu(e,t=!1,n=!1){t&&Al(t);const{props:o,children:s}=e.vnode,i=li(e);Ja(e,o,i,t),Qa(e,s,n||t);const d=i?gu(e,t):void 0;return t&&Al(!1),d}function gu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Aa);const{setup:o}=n;if(o){gt();const s=e.setupContext=o.length>1?_u(e):null,i=bn(e),d=yn(o,e,0,[e.props,s]),f=ts(d);if(ht(),i(),(f||e.sp)&&!un(e)&&As(e),f){if(d.then(Bo,Bo),t)return d.then(v=>{Lo(e,v)}).catch(v=>{Zn(v,e,0)});e.asyncDep=d}else Lo(e,d)}else oi(e)}function Lo(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=xs(t)),oi(e)}function oi(e,t,n){const o=e.type;e.render||(e.render=o.render||pt);{const s=bn(e);gt();try{Ua(e)}finally{ht(),s()}}}const hu={get(e,t){return De(e,"get",""),e[t]}};function _u(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,hu),slots:e.slots,emit:e.emit,expose:t}}function ll(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xs(ea(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function mu(e){return J(e)&&"__vccOpts"in e}const Tt=(e,t)=>ia(e,t,hn),yu="3.5.39";/**
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ul;const Fo=typeof window<"u"&&window.trustedTypes;if(Fo)try{Ul=Fo.createPolicy("vue",{createHTML:e=>e})}catch{}const si=Ul?e=>Ul.createHTML(e):e=>e,bu="http://www.w3.org/2000/svg",wu="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,No=wt&&wt.createElement("template"),ku={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t==="svg"?wt.createElementNS(bu,e):t==="mathml"?wt.createElementNS(wu,e):n?wt.createElement(e,{is:n}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const d=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{No.innerHTML=si(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const f=No.content;if(o==="svg"||o==="mathml"){const v=f.firstChild;for(;v.firstChild;)f.appendChild(v.firstChild);f.removeChild(v)}t.insertBefore(f,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xu=Symbol("_vtc");function Cu(e,t,n){const o=e[xu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jo=Symbol("_vod"),Su=Symbol("_vsh"),Pu=Symbol(""),Eu=/(?:^|;)\s*display\s*:/;function Du(e,t,n){const o=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const d of t.split(";")){const f=d.slice(0,d.indexOf(":")).trim();n[f]==null&&ln(o,f,"")}else for(const d in t)n[d]==null&&ln(o,d,"");for(const d in n){d==="display"&&(i=!0);const f=n[d];f!=null?Iu(e,d,!ye(t)&&t?t[d]:void 0,f)||ln(o,d,f):ln(o,d,"")}}else if(s){if(t!==n){const d=o[Pu];d&&(n+=";"+d),o.cssText=n,i=Eu.test(n)}}else t&&e.removeAttribute("style");jo in e&&(e[jo]=i?o.display:"",e[Su]&&(o.display="none"))}const Wo=/\s*!important$/;function ln(e,t,n){if(H(n))n.forEach(o=>ln(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Tu(e,t);Wo.test(n)?e.setProperty(Ft(o),n.replace(Wo,""),"important"):e[o]=n}}const Ho=["Webkit","Moz","ms"],wl={};function Tu(e,t){const n=wl[t];if(n)return n;let o=tt(t);if(o!=="filter"&&o in e)return wl[t]=o;o=os(o);for(let s=0;s<Ho.length;s++){const i=Ho[s]+o;if(i in e)return wl[t]=i}return t}function Iu(e,t,n,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ye(o)&&n===o}const Ko="http://www.w3.org/1999/xlink";function qo(e,t,n,o,s,i=Or(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ko,t.slice(6,t.length)):e.setAttributeNS(Ko,t,n):n==null||i&&!is(n)?e.removeAttribute(t):e.setAttribute(t,i?"":vt(n)?String(n):n)}function Jo(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?si(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const f=i==="OPTION"?e.getAttribute("value")||"":e.value,v=n==null?e.type==="checkbox"?"on":"":String(n);(f!==v||!("_value"in e))&&(e.value=v),n==null&&e.removeAttribute(t),e._value=n;return}let d=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=is(n):n==null&&f==="string"?(n="",d=!0):f==="number"&&(n=0,d=!0)}try{e[t]=n}catch{}d&&e.removeAttribute(s||t)}function Vt(e,t,n,o){e.addEventListener(t,n,o)}function Ou(e,t,n,o){e.removeEventListener(t,n,o)}const Go=Symbol("_vei");function Au(e,t,n,o,s=null){const i=e[Go]||(e[Go]={}),d=i[t];if(o&&d)d.value=o;else{const[f,v]=Ru(t);if(o){const _=i[t]=Bu(o,s);Vt(e,f,_,v)}else d&&(Ou(e,f,d,v),i[t]=void 0)}}const Uu=/(Once|Passive|Capture)$/,$u=/^on:?(?:Once|Passive|Capture)$/;function Ru(e){let t,n;for(;(n=e.match(Uu))&&!$u.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let kl=0;const Mu=Promise.resolve(),Vu=()=>kl||(Mu.then(()=>kl=0),kl=Date.now());function Bu(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const s=n.value;if(H(s)){const i=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{i.call(o),o._stopped=!0};const d=s.slice(),f=[o];for(let v=0;v<d.length&&!o._stopped;v++){const _=d[v];_&&ot(_,t,5,f)}}else ot(s,t,5,[o])};return n.value=e,n.attached=Vu(),n}const zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lu=(e,t,n,o,s,i)=>{const d=s==="svg";t==="class"?Cu(e,o,d):t==="style"?Du(e,n,o):Kn(t)?qn(t)||Au(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fu(e,t,o,d))?(Jo(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qo(e,t,o,d,i,t!=="value")):e._isVueCE&&(Nu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(o)))?Jo(e,tt(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qo(e,t,o,d))};function Fu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&zo(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 zo(t)&&ye(n)?!1:t in e}function Nu(e,t){const n=e._def.props;if(!n)return!1;const o=tt(t);return Array.isArray(n)?n.some(s=>tt(s)===o):Object.keys(n).some(s=>tt(s)===o)}const Wn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Un(t,n):t};function ju(e){e.target.composing=!0}function Yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yt=Symbol("_assign");function Qo(e,t,n){return t&&(e=e.trim()),n&&(e=zn(e)),e}const $={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Yt]=Wn(s);const i=o||s.props&&s.props.type==="number";Vt(e,t?"change":"input",d=>{d.target.composing||e[Yt](Qo(e.value,n,i))}),(n||i)&&Vt(e,"change",()=>{e.value=Qo(e.value,n,i)}),t||(Vt(e,"compositionstart",ju),Vt(e,"compositionend",Yo),Vt(e,"change",Yo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:i}},d){if(e[Yt]=Wn(d),e.composing)return;const f=(i||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,v=t??"";if(f===v)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===v)||(e.value=v)}},bt={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Jn(t);Vt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?zn(Hn(d)):Hn(d));e[Yt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Ss(()=>{e._assigning=!1})}),e[Yt]=Wn(o)},mounted(e,{value:t}){Xo(e,t)},beforeUpdate(e,t,n){e[Yt]=Wn(n)},updated(e,{value:t}){e._assigning||Xo(e,t)}};function Xo(e,t){const n=e.multiple,o=H(t);if(!(n&&!o&&!Jn(t))){for(let s=0,i=e.options.length;s<i;s++){const d=e.options[s],f=Hn(d);if(n)if(o){const v=typeof f;v==="string"||v==="number"?d.selected=t.some(_=>String(_)===String(f)):d.selected=Ur(t,f)>-1}else d.selected=t.has(f);else if(mn(Hn(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hn(e){return"_value"in e?e._value:e.value}const Wu=Se({patchProp:Lu},ku);let Zo;function Hu(){return Zo||(Zo=Za(Wu))}const Ku=((...e)=>{const t=Hu().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=Ju(o);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=n(s,!1,qu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function qu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ju(e){return ye(e)?document.querySelector(e):e}const Gu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,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`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,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",settingsSnapshot:e=>`settings/snapshots/${e}`,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`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class zu extends Error{constructor(n,o,s={}){super(o);dl(this,"code");dl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function G(e,t){return ut(e,{method:"GET",query:t})}async function z(e,t){return ut(e,{method:"POST",body:t})}async function ut(e,t={}){const o=await(await fetch(Yu(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(!o.ok)throw new zu(o.error_code,o.message,o.details);return o.data}function Yu(e,t){const n=e.replace(/^\/+/,""),o=new URL(`${Gu}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&o.searchParams.set(s,String(i));return`${o.pathname}${o.search}`}const Qu={class:"web-shell"},Xu={class:"sidebar"},Zu={class:"brand"},ed=["onClick"],td={class:"workspace"},nd={class:"topbar"},ld={class:"actions"},od=["disabled"],sd={key:0,class:"notice error"},id={key:1,class:"notice"},rd={key:0,class:"dashboard-grid"},ad={key:1,class:"list-view"},ud={class:"form-grid"},dd={class:"wide-field"},cd=["disabled"],fd=["disabled"],pd={key:0},vd={key:1,class:"form-grid"},gd={class:"wide-field"},hd={class:"wide-field"},_d={class:"wide-field"},md={class:"wide-field"},yd={class:"wide-field"},bd=["disabled"],wd=["disabled"],kd={class:"inline-actions"},xd={class:"badge"},Cd=["disabled","onClick"],Sd=["disabled","onClick"],Pd={key:0,class:"empty"},Ed={key:2,class:"split-view"},Dd={class:"list-view"},Td={class:"form-grid"},Id=["disabled"],Od={class:"inline-actions"},Ad={class:"badge"},Ud=["disabled","onClick"],$d=["disabled","onClick"],Rd=["disabled","onClick"],Md=["disabled","onClick"],Vd={key:0,class:"empty"},Bd={key:0,class:"editor-panel"},Ld={class:"form-grid"},Fd=["disabled"],Nd=["disabled","onClick"],jd={class:"list-view"},Wd={class:"inline-actions"},Hd=["disabled"],Kd={class:"form-grid"},qd={class:"wide-field"},Jd={class:"wide-field"},Gd={class:"wide-field"},zd=["disabled"],Yd=["disabled"],Qd={class:"form-grid"},Xd={class:"wide-field"},Zd=["disabled"],ec=["disabled"],tc={class:"inline-actions"},nc={class:"badge"},lc=["disabled","onClick"],oc=["disabled","onClick"],sc=["disabled","onClick"],ic=["disabled","onClick"],rc={key:0,class:"empty"},ac={class:"inline-actions"},uc={key:0,class:"badge"},dc=["disabled","onClick"],cc=["disabled","onClick"],fc=["disabled","onClick"],pc=["disabled","onClick"],vc=["disabled","onClick"],gc=["disabled","onClick"],hc={key:0,class:"empty"},_c={key:0},mc={key:1},yc={class:"editor-panel"},bc={key:0,class:"empty"},wc={key:2,class:"editor-panel"},kc={key:3},xc={key:3,class:"split-view"},Cc={class:"list-view"},Sc={class:"form-grid"},Pc=["disabled"],Ec=["disabled"],Dc={class:"inline-actions"},Tc=["disabled","onClick"],Ic=["disabled","onClick"],Oc={key:0,class:"empty"},Ac={class:"list-view"},Uc={class:"inline-actions"},$c=["disabled"],Rc={class:"form-grid"},Mc={value:""},Vc=["value"],Bc=["disabled"],Lc=["disabled"],Fc={class:"inline-actions"},Nc={class:"badge"},jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={class:"form-grid"},Gc={value:""},zc=["value"],Yc=["disabled"],Qc=["disabled"],Xc={key:0},Zc={key:4,class:"list-view"},ef=["disabled"],tf={class:"form-grid"},nf={value:""},lf=["value"],of=["disabled"],sf={class:"inline-actions"},rf=["disabled","onClick"],af={key:0,class:"empty"},uf={key:0},df={class:"form-grid"},cf=["disabled"],ff={key:1},pf={key:5,class:"list-view"},vf={class:"inline-actions"},gf=["disabled"],hf=["disabled"],_f={class:"form-grid"},mf={value:""},yf=["value"],bf={value:""},wf=["value"],kf={value:""},xf=["value"],Cf=["disabled"],Sf={class:"inline-actions"},Pf={class:"badge"},Ef=["onClick"],Df=["onClick"],Tf=["disabled","onClick"],If={key:0,class:"empty"},Of={key:0,class:"editor-panel"},Af={key:6,class:"split-view"},Uf={class:"list-view"},$f={class:"inline-actions"},Rf=["disabled"],Mf=["disabled"],Vf={class:"form-grid"},Bf=["disabled"],Lf={key:0},Ff={class:"list-view"},Nf={class:"inline-actions"},jf={class:"badge"},Wf=["disabled","onClick"],Hf=["disabled","onClick"],Kf=["disabled","onClick"],qf={key:0,class:"empty"},Jf={key:7,class:"logs-view"},Gf={class:"split-view"},zf={class:"list-view"},Yf={class:"form-grid"},Qf={value:""},Xf=["value"],Zf=["disabled"],ep={key:0,class:"empty"},tp={class:"list-view"},np={class:"form-grid"},lp=["disabled"],op={class:"badge"},sp={key:0,class:"empty"},ip={class:"split-view"},rp={class:"list-view"},ap={class:"form-grid"},up=["disabled"],dp={key:0,class:"empty"},cp={class:"list-view"},fp={class:"form-grid"},pp=["disabled"],vp={class:"badge"},gp={key:0,class:"empty"},hp={class:"list-view"},_p={class:"form-grid"},mp=["disabled"],yp={class:"badge"},bp={key:0,class:"empty"},wp={key:0},kp={class:"list-view"},xp={class:"form-grid"},Cp=["disabled"],Sp={key:0,class:"empty"},Pp={key:0},Ep={class:"list-view"},Dp={class:"form-grid"},Tp=["disabled"],Ip={key:0,class:"empty"},Op={key:8,class:"settings-view"},Ap={class:"toolbar"},Up=["disabled"],$p=["disabled"],Rp=["disabled"],Mp=["disabled"],Vp=["disabled"],Bp=["disabled"],Lp=["disabled"],Fp={class:"settings-sections"},Np={class:"editor-panel"},jp={class:"editor-panel"},Wp=["disabled"],Hp={class:"editor-panel"},Kp={class:"inline-actions"},qp=["disabled","onClick"],Jp=["disabled","onClick"],Gp={key:0,class:"editor-panel"},zp={class:"split-view"},Yp={class:"list-view"},Qp={class:"list-view"},Xp={key:1,class:"editor-panel"},Zp={class:"inspector"},ev=ya({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",reRecognize:"重新识别",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:"角色已更新",profileArchived:"角色已归档",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:"筛选",applyFilters:"应用筛选",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:"集成",integrationEvents:"集成事件",eventStream:"事件流",ssePreview:"SSE Preview",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyEvents:"暂无事件",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",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}],o=n.map(c=>c.key),s=V(kn()),i=V(null),d=V(null),f=V(null),v=V([]),_=V(null),h=V([]),w=V([]),R=V(null),M=V(""),ne=V([]),W=V(null),me=V(null),ie=V(null),ee=V(null),X=V(null),N=V(null),he=V([]),xe=V(null),Ie=V([]),Re=V([]),_t=V([]),Fe=V(null),ve=V({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ne=V([]),Xe=V(null),je=V(null),At=V(""),be=V(""),de=V([]),le=V(null),Me=V(null),st=V(null),Ve=V(null),q=V({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),mt=V(null),ce=V({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),it=V({display_name:"",workflow_type:"single_image"}),We=V({branch_name:""}),Q=V({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Be=V({model_route:"",prompt:"",negative_prompt:""}),He=V({status:"",profile_id:"",workflow_id:""}),Pe=V({status:"",profile_id:"",workflow_id:"",node_id:""}),Ze=V({workflow_id:"",action:"",node_id:"",branch_name:""}),p=V({source:"",status:""}),g=V({integration_name:"",action:"",status:""}),m=V({integration_name:"",action:"",status:""}),E=V({event_type:""}),k=V({action:"",target_type:"",actor_id:""}),y=V({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),T=V({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),D=V({category_id:"",name:"",category_type:"material",sort_order:0}),P=V({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),b=V({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),L=V(null),O=V({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),B=V(null),U=V(""),Z=V(!0),C=V(""),te=V(""),re=Tt(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.profile_id)??""}),we=Tt(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.name)??t.noProfile}),Ke=Tt(()=>{var u;const c=(u=d.value)==null?void 0:u.queue;return c?c.pending+c.running+c.failed+c.dead_letter:0}),qe=Tt(()=>{var c;return((c=xe.value)==null?void 0:c.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),Ut=Tt(()=>{var c;return(((c=xe.value)==null?void 0:c.items)??[]).filter(u=>u.recognition_status==="confirmed")}),wn=Tt(()=>{var c;return((c=_.value)==null?void 0:c.nodes.find(u=>u.node_id===M.value))??null}),Ee=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],Je=Tt(()=>({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})[s.value]);Rs(Nt);function kn(){const c=new URLSearchParams(window.location.search).get("view");return o.includes(c)?c:"dashboard"}async function Nt(){var c,u;Z.value=!0,te.value="";try{const[j,oe,ke,ze,Cn,Zt,Sn,Pn,En,Dn,Tn]=await Promise.all([G(I.uiBootstrap),G(I.dashboardSummary),G(I.profiles,{page:1,page_size:20}),G(I.jobs,{page:1,page_size:20}),G(I.settingsSchema),G(I.settingsCurrent),G(I.storageStatus),G(I.materialCategories),G(I.materials,{page:1,page_size:24}),G(I.apiDiscoveryDialects),G(I.apiDiscoveryCapabilities)]);i.value=j,d.value=oe,f.value=ke,me.value=ze,ee.value=Cn,X.value=Zt,Wt(Zt.config),N.value=Sn,he.value=Pn,xe.value=En,Re.value=Dn,_t.value=Tn,await vi((c=ke.items[0])==null?void 0:c.profile_id),await gi((u=ke.items[0])==null?void 0:u.profile_id),await ii(),await Yl()}catch(j){te.value=j instanceof Error?j.message:t.loadFailed}finally{Z.value=!1}}async function ii(){const[c,u,j,oe,ke,ze]=await Promise.allSettled([G(I.generationLogs,et(Pe.value,12)),G(I.workflowLogs,et(Ze.value,12)),G(I.errorLogs,et(p.value,12)),G(I.integrationLogs,et(g.value,12)),G(I.integrationEventLogs,et(m.value,20)),G(I.auditLogs,{limit:12})]);ve.value={generation:jt(c),workflows:jt(u),errors:jt(j),integrations:jt(oe),audit:jt(ze)},Ne.value=jt(ke)}async function ri(){ve.value.generation=await G(I.generationLogs,et(Pe.value,20))}async function ai(){ve.value.workflows=await G(I.workflowLogs,et(Ze.value,20))}async function ui(){ve.value.errors=await G(I.errorLogs,et(p.value,20))}async function di(){ve.value.integrations=await G(I.integrationLogs,et(g.value,20))}async function ci(){Ne.value=await G(I.integrationEventLogs,et(m.value,20))}async function Yl(){Xe.value=await G(I.eventStream,et(E.value,20))}async function fi(){ve.value.audit=await G(I.auditLogs,{action:k.value.action||void 0,target_type:k.value.target_type||void 0,actor_id:k.value.actor_id||void 0,limit:20})}function jt(c){return c.status==="fulfilled"?c.value:[]}function et(c,u){const j={limit:u};for(const[oe,ke]of Object.entries(c)){const ze=ke.trim();j[oe]=ze||void 0}return j}async function pi(){me.value=await G(I.jobs,{status:He.value.status||void 0,profile_id:He.value.profile_id||void 0,workflow_id:He.value.workflow_id||void 0,page:1,page_size:20})}async function vi(c){if(!c){Ie.value=[];return}Ie.value=await G(I.wardrobe(c))}async function gi(c){var oe,ke;if(!c){v.value=[],_.value=null,h.value=[],w.value=[],M.value="",ne.value=[];return}v.value=await G(I.profileWorkflows(c));const u=(oe=_.value)==null?void 0:oe.workflow.workflow_id,j=v.value.some(ze=>ze.workflow_id===u)?u:(ke=v.value[0])==null?void 0:ke.workflow_id;j?await ol(j):_.value=null}async function ol(c){var ke;const u=await G(I.workflow(c));_.value=u;const j=M.value,oe=u.nodes.some(ze=>ze.node_id===j)?j:u.workflow.current_node_id||((ke=u.nodes[0])==null?void 0:ke.node_id);oe?await Ql(oe):(M.value="",ne.value=[]),await hi(c)}async function Ql(c){M.value=c,ne.value=await G(I.nodeImages(c))}async function hi(c){const[u,j]=await Promise.all([G(I.workflowBranches(c)),G(I.workflowHistory(c))]);h.value=u,w.value=j}async function Ge(){var u;const c=(u=_.value)==null?void 0:u.workflow.workflow_id;c&&await ol(c)}async function F(c,u,j=!0){C.value=c,te.value="";try{const oe=await u();U.value=`${c}${t.complete}`,c===t.exportSettings&&(U.value=`${t.exportDone}: ${!!oe.redacted}`),j&&await Nt()}catch(oe){te.value=oe instanceof Error?oe.message:`${c}${t.failed}`}finally{C.value=""}}function _i(c){return F(t.retry,()=>z(I.jobRetry(c)))}function mi(c){return F(t.cancel,()=>z(I.jobCancel(c)))}function yi(c){return F(t.detail,async()=>(ie.value=await G(I.job(c)),ie.value),!1)}function bi(){q.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},mt.value=null}function wi(){return F(t.quickDraft,async()=>(mt.value=await z(I.quickProfileDraft,{questionnaire:{name:q.value.name,identity:q.value.identity,personality:Dt(q.value.personality),hair_color:q.value.hair_color,hairstyle:q.value.hairstyle,eye_color:q.value.eye_color,style:q.value.style,clothing_keywords:Dt(q.value.clothing_keywords)}}),mt.value),!1)}function ki(){var u;const c=(u=mt.value)==null?void 0:u.profile_preview;return F(t.create,async()=>{const j=await z(I.profiles,{name:(c==null?void 0:c.name)||q.value.name,description:q.value.description,base_prompt:c==null?void 0:c.base_prompt,appearance_prompt:c==null?void 0:c.appearance_prompt,style_prompt:c==null?void 0:c.style_prompt,negative_prompt:c==null?void 0:c.negative_prompt});return bi(),U.value=t.profileCreated,j})}function xi(c){return F(t.archive,async()=>{const u=await z(I.profileArchive(c));return U.value=t.profileArchived,u})}function Xl(){ce.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Ci(c){ce.value={profile_id:c.profile_id,name:c.name,description:c.description??"",base_prompt:c.base_prompt??"",appearance_prompt:c.appearance_prompt??"",style_prompt:c.style_prompt??"",negative_prompt:c.negative_prompt??"",default_model_route:c.default_model_route??""}}function Si(){return ce.value.profile_id?F(t.update,async()=>{const c=await ut(I.profile(ce.value.profile_id),{method:"PUT",body:{name:ce.value.name,description:ce.value.description||void 0,base_prompt:ce.value.base_prompt||void 0,appearance_prompt:ce.value.appearance_prompt||void 0,style_prompt:ce.value.style_prompt||void 0,negative_prompt:ce.value.negative_prompt||void 0,default_model_route:ce.value.default_model_route||void 0}});return Xl(),U.value=t.profileUpdated,c}):Promise.resolve()}function Pi(){const c=re.value;return c?F(t.create,async()=>{const u=await z(I.profileWorkflows(c),{display_name:it.value.display_name,workflow_type:it.value.workflow_type});return it.value.display_name="",_.value=u,U.value=t.workflowCreated,u}):Promise.resolve()}function Ei(c){return F(t.start,()=>z(I.workflowStart(c)))}function Di(c){return F(t.cancel,()=>z(I.workflowCancel(c)))}function Ti(c){return F(t.archive,()=>z(I.workflowArchive(c)))}function Ii(){var u;const c=(u=_.value)==null?void 0:u.workflow;return!c||!We.value.branch_name?Promise.resolve():F(t.branches,async()=>{const j=await z(I.workflowBranches(c.workflow_id),{branch_name:We.value.branch_name,base_branch_name:c.current_branch,base_node_id:M.value||c.current_node_id,copy_nodes:!0});return We.value.branch_name="",await Ge(),U.value=t.branchCreated,j},!1)}function Oi(c){var j;const u=(j=_.value)==null?void 0:j.workflow.workflow_id;return u?F(t.switchBranch,async()=>{const oe=await z(I.workflowSwitchBranch(u),{branch_name:c});return await Ge(),oe},!1):Promise.resolve()}function sl(){Q.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Ai(c){Q.value={node_id:c.node_id,node_key:c.node_key,title:c.title,description:c.description??"",node_type:c.node_type,status:c.status,prompt:c.prompt??"",negative_prompt:c.negative_prompt??"",model_route:c.model_route??""}}function Ui(){var j;const c=(j=_.value)==null?void 0:j.workflow.workflow_id;if(!c||!Q.value.node_key||!Q.value.title)return Promise.resolve();const u={node_key:Q.value.node_key,title:Q.value.title,description:Q.value.description||void 0,node_type:Q.value.node_type||"generation",status:Q.value.status||"pending",prompt:Q.value.prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,model_route:Q.value.model_route||void 0};return Q.value.node_id?F(t.update,async()=>{const oe=await ut(I.node(Q.value.node_id),{method:"PUT",body:u});return sl(),await Ge(),U.value=t.nodeUpdated,oe},!1):F(t.create,async()=>{const oe=await z(I.workflowNodes(c),u);return sl(),await Ge(),U.value=t.nodeCreated,oe},!1)}function $i(){var u;const c=(u=_.value)==null?void 0:u.workflow.workflow_id;return c?F(t.review,async()=>(R.value=await G(I.workflowReview(c)),R.value),!1):Promise.resolve()}function Ri(){const c=M.value;return c?F(t.review,async()=>(R.value=await G(I.nodeReview(c)),R.value),!1):Promise.resolve()}function Mi(){const c=M.value;return c?F(t.generate,async()=>(W.value=await z(I.nodeGenerate(c),{model_route:Be.value.model_route||void 0,prompt:Be.value.prompt||void 0,negative_prompt:Be.value.negative_prompt||void 0}),await Ge(),U.value=t.generationQueued,W.value),!1):Promise.resolve()}function Vi(c){return F(t.retry,async()=>{const u=await z(I.nodeRetry(c));return await Ge(),U.value=t.nodeQueued,u},!1)}function Bi(c){return F(t.complete,async()=>{const u=await z(I.nodeMarkCompleted(c));return await Ge(),U.value=t.nodeCompleted,u},!1)}function Li(c){const u=M.value;return u?F(t.select,async()=>{const j=await z(I.nodeSelectImage(u),{image_id:c});return await Ge(),j},!1):Promise.resolve()}function Fi(c){const u=M.value;return u?F(t.adopt,async()=>{var oe;const j=await z(I.nodeAdoptImage(u),{image_id:c,title:(oe=wn.value)==null?void 0:oe.title});return await Ge(),j},!1):Promise.resolve()}function Ni(c){return F(t.unselect,async()=>{const u=await z(I.imageUnselect(c));return await Ge(),u},!1)}function ji(c){return F(t.archive,async()=>{const u=await z(I.imageArchive(c));return await Ge(),U.value=t.imageArchived,u},!1)}function Wi(c){return F(t.delete,async()=>{const u=await ut(I.image(c),{method:"DELETE"});return await Ge(),U.value=t.imageDeleted,u},!1)}function Hi(){return F(t.moveFailed,()=>z(I.jobDeadLetterMoveFailed,{limit:20}))}function Ki(){return F(t.retryDead,()=>z(I.jobDeadLetterRetry,{limit:20}))}function qi(){var u;const c=((u=Re.value[0])==null?void 0:u.dialect)??"unknown";return F(t.safeProbe,()=>z(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:c,capabilities:{supports:["text_to_image"]}}))}function Ji(){var u;const c=((u=Re.value[0])==null?void 0:u.dialect)??"unknown";return F(t.probeProvider,()=>z(I.apiDiscoveryProbeProvider,{provider_id:O.value.provider_id||"local-preview",model_id:O.value.model_id||"metadata-only",dialect:c,capabilities:{supports:Dt(O.value.required_capabilities)}}))}function Gi(){return F(t.validatePlan,async()=>(B.value=await z(I.apiDiscoveryValidateRenderPlan,{provider_id:O.value.provider_id,model_id:O.value.model_id,required_capabilities:Dt(O.value.required_capabilities)}),B.value),!1)}function il(c,u){return F(t.discovery,()=>z(I.apiDiscoveryManualOverride,{provider_id:c.provider_id,model_id:c.model_id,dialect:c.dialect,status:u,capabilities:c.capabilities}))}function zi(){const c=re.value;return c?F(t.matchWardrobe,async()=>(Fe.value=await z(I.wardrobeMatch(c),{tags:["daily"]}),Fe.value),!1):Promise.resolve()}function Yi(){P.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Qi(){const c=re.value;return c?F(t.importToWardrobe,async()=>{const u=await z(I.wardrobeItems(c),{material_id:P.value.material_id,wardrobe_category:P.value.wardrobe_category,tags:Dt(P.value.tags),season:P.value.season||void 0,style:P.value.style||void 0});return Yi(),U.value=t.wardrobeImported,u}):Promise.resolve()}function Xi(c){const u=re.value;return u?F(t.delete,async()=>{const j=await ut(I.wardrobeItem(u,c),{method:"DELETE"});return U.value=t.wardrobeDeleted,j}):Promise.resolve()}function Zi(){const c=re.value;return c?F(t.dailyOutfit,async()=>(L.value=await z(I.privateCompanionDailyOutfit,{profile_id:c,categories:Dt(b.value.categories),mood:b.value.mood,weather:b.value.weather,keywords:Dt(b.value.keywords),request_source:"astrbot_plugin_private_companion"}),U.value=t.outfitGenerated,L.value),!1):Promise.resolve()}function er(){return F(t.reload,async()=>{var u;const c=await z(I.settingsReload);return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),c},!1)}function tr(){return F(t.exportSettings,async()=>(Me.value=await G(I.settingsExport),Me.value),!1)}function Wt(c=(u=>(u=X.value)==null?void 0:u.config)()??{}){At.value=JSON.stringify(c,null,2),st.value=null,Ve.value=null}function rl(){try{const c=JSON.parse(At.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.settingsDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.settingsDraftInvalid)}}function nr(){try{const c=JSON.parse(be.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.importDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.importDraftInvalid)}}function lr(){return F(t.validate,async()=>(st.value=await z(I.settingsValidate,{config:rl()}),st.value),!1)}function or(){return F(t.diff,async()=>(Ve.value=await z(I.settingsDiff,{config:rl()}),Ve.value),!1)}function sr(){return F(t.save,async()=>{var u;const c=await z(I.settingsSave,{config:rl()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),U.value=t.settingsSaved,c},!1)}function ir(){return F(t.importSettings,async()=>{var u;const c=await z(I.settingsImport,{config:nr()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),be.value="",U.value=t.importDone,c},!1)}function Zl(){return F(t.loadSnapshots,async()=>(de.value=await G(I.settingsSnapshots,{limit:20}),le.value=de.value[0]??null,de.value),!1)}function rr(c){return F(t.loadSnapshot,async()=>(le.value=await G(I.settingsSnapshot(c)),le.value),!1)}function ar(c){return F(t.rollback,async()=>{var j;const u=await z(I.settingsRollback,{snapshot_id:c});return X.value={config_path:((j=X.value)==null?void 0:j.config_path)??"***PATH***",config:u.config},Wt(u.config),await Zl(),U.value=t.rollbackDone,u},!1)}function ur(){var u,j;const c=(j=(u=xe.value)==null?void 0:u.items.find(oe=>{var ke;return(ke=oe.image_uri)==null?void 0:ke.startsWith("storage://")}))==null?void 0:j.image_uri;return c?F(t.signMaterial,async()=>(je.value=await G(I.mediaSign,{uri:c}),je.value),!1):(U.value=t.noSignableMaterial,Promise.resolve())}function dr(c){return c!=null&&c.startsWith("storage://")?F(t.signMaterial,async()=>(je.value=await G(I.mediaSign,{uri:c}),je.value),!1):(U.value=t.noSignableMaterial,Promise.resolve())}function xn(){D.value={category_id:"",name:"",category_type:"material",sort_order:0}}function cr(c){D.value={category_id:c.category_id,name:c.name,category_type:c.category_type,sort_order:c.sort_order}}function fr(){const c={name:D.value.name,category_type:D.value.category_type,sort_order:Number(D.value.sort_order)||0};return D.value.category_id?F(t.update,async()=>{const u=await ut(I.materialCategory(D.value.category_id),{method:"PUT",body:c});return xn(),U.value=t.categoryUpdated,u}):F(t.create,async()=>{const u=await z(I.materialCategories,c);return xn(),U.value=t.categoryCreated,u})}function pr(c){return F(t.delete,async()=>{const u=await ut(I.materialCategory(c),{method:"DELETE"});return D.value.category_id===c&&xn(),U.value=t.categoryDeleted,u})}function al(){y.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function vr(){const c={display_name:y.value.display_name,image_uri:y.value.image_uri||void 0,thumbnail_uri:y.value.image_uri||void 0,category_id:y.value.category_id||void 0,tags:Dt(y.value.tags),prompt:y.value.prompt||void 0,negative_prompt:y.value.negative_prompt||void 0,recognition_status:y.value.image_uri?"pending_recognition":"pending_upload"};return y.value.material_id?F(t.update,async()=>{const u=await ut(I.material(y.value.material_id),{method:"PUT",body:c});return al(),U.value=t.materialUpdated,u}):F(t.create,async()=>{const u=await z(I.materials,c);return al(),U.value=t.materialCreated,u})}function gr(c){y.value={material_id:c.material_id,display_name:c.display_name,image_uri:c.image_uri??"",tags:c.tags.join(", "),category_id:c.category_id??"",prompt:c.prompt??"",negative_prompt:c.negative_prompt??""}}function eo(){T.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function hr(){return F(t.upload,async()=>{const c=await z(I.materialUpload,{display_name:T.value.display_name||void 0,filename:T.value.filename||void 0,content_type:T.value.content_type||void 0,image_uri:T.value.image_uri,category_id:T.value.category_id||void 0});return eo(),U.value=t.materialUploaded,c})}function _r(c){const u=c.recognition_status==="confirmed"?I.materialReRecognize(c.material_id):I.materialRecognize(c.material_id),j=c.recognition_status==="confirmed"?t.reRecognize:t.recognize;return F(j,()=>z(u))}function mr(c){return F(t.confirm,()=>z(I.materialConfirm(c.material_id),{display_name:c.display_name,prompt:c.prompt,negative_prompt:c.negative_prompt,tags:c.tags}))}function yr(c){return F(t.archive,async()=>{const u=await ut(I.material(c),{method:"DELETE"});return U.value=t.materialArchived,u})}function Dt(c){return c.split(",").map(u=>u.trim()).filter(Boolean)}function ul(c=0){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(1)} GB`}function to(c){var u,j;return((j=(u=N.value)==null?void 0:u.roots.find(oe=>oe.uri_prefix===c))==null?void 0:j.bytes)??0}return(c,u)=>{var j,oe,ke,ze,Cn,Zt,Sn,Pn,En,Dn,Tn,no,lo,oo,so,io,ro,ao,uo,co,fo,po,vo,go,ho,_o,mo,yo,bo,wo;return x(),S("main",Qu,[l("aside",Xu,[l("div",Zu,[l("strong",null,a(((j=i.value)==null?void 0:j.display_name)??"ImageStudio"),1),l("span",null,a(((oe=i.value)==null?void 0:oe.dashboard_user)??"AstrBot"),1)]),l("nav",null,[(x(),S(Y,null,fe(n,r=>l("button",{key:r.key,type:"button",class:Qn({active:s.value===r.key}),onClick:se=>s.value=r.key},a(r.label),11,ed)),64))])]),l("section",td,[l("header",nd,[l("div",null,[l("h1",null,a(Je.value),1),l("p",null,a(((ke=d.value)==null?void 0:ke.plugin_status)??"loading")+" / "+a(U.value||t.waiting),1)]),l("div",ld,[l("button",{type:"button",disabled:!!C.value,onClick:Nt},a(C.value||t.refresh),9,od)])]),te.value?(x(),S("section",sd,a(te.value),1)):Z.value?(x(),S("section",id,a(t.loading),1)):(x(),S(Y,{key:2},[s.value==="dashboard"?(x(),S("section",rd,[l("article",null,[l("span",null,a(t.profiles),1),l("strong",null,a(((ze=d.value)==null?void 0:ze.active_profiles)??0),1)]),l("article",null,[l("span",null,a(t.jobs),1),l("strong",null,a(Ke.value),1)]),l("article",null,[l("span",null,a(t.materials),1),l("strong",null,a(((Cn=xe.value)==null?void 0:Cn.total)??0),1)]),l("article",null,[l("span",null,a(t.storage),1),l("strong",null,a(ul(((Zt=N.value)==null?void 0:Zt.total_bytes)??((Sn=d.value)==null?void 0:Sn.storage.total_bytes))),1)])])):K("",!0),s.value==="profiles"?(x(),S("section",ad,[l("header",null,[l("h2",null,a(t.profileList),1),l("span",null,a(((Pn=f.value)==null?void 0:Pn.total)??0),1)]),l("div",ud,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[0]||(u[0]=r=>q.value.name=r),type:"text"},null,512),[[$,q.value.name]])]),l("label",null,[l("span",null,a(t.identity),1),A(l("input",{"onUpdate:modelValue":u[1]||(u[1]=r=>q.value.identity=r),type:"text"},null,512),[[$,q.value.identity]])]),l("label",null,[l("span",null,a(t.personality),1),A(l("input",{"onUpdate:modelValue":u[2]||(u[2]=r=>q.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[$,q.value.personality]])]),l("label",null,[l("span",null,a(t.hairColor),1),A(l("input",{"onUpdate:modelValue":u[3]||(u[3]=r=>q.value.hair_color=r),type:"text"},null,512),[[$,q.value.hair_color]])]),l("label",null,[l("span",null,a(t.hairstyle),1),A(l("input",{"onUpdate:modelValue":u[4]||(u[4]=r=>q.value.hairstyle=r),type:"text"},null,512),[[$,q.value.hairstyle]])]),l("label",null,[l("span",null,a(t.eyeColor),1),A(l("input",{"onUpdate:modelValue":u[5]||(u[5]=r=>q.value.eye_color=r),type:"text"},null,512),[[$,q.value.eye_color]])]),l("label",null,[l("span",null,a(t.stylePrompt),1),A(l("input",{"onUpdate:modelValue":u[6]||(u[6]=r=>q.value.style=r),type:"text"},null,512),[[$,q.value.style]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[7]||(u[7]=r=>q.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[$,q.value.clothing_keywords]])]),l("label",dd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[8]||(u[8]=r=>q.value.description=r),type:"text"},null,512),[[$,q.value.description]])]),l("button",{type:"button",disabled:!!C.value||!q.value.name,onClick:wi},a(t.quickDraft),9,cd),l("button",{type:"button",disabled:!!C.value||!q.value.name,onClick:ki},a(t.create),9,fd)]),mt.value?(x(),S("pre",pd,a(JSON.stringify(mt.value,null,2)),1)):K("",!0),ce.value.profile_id?(x(),S("div",vd,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[9]||(u[9]=r=>ce.value.name=r),type:"text"},null,512),[[$,ce.value.name]])]),l("label",null,[l("span",null,a(t.provider),1),A(l("input",{"onUpdate:modelValue":u[10]||(u[10]=r=>ce.value.default_model_route=r),type:"text"},null,512),[[$,ce.value.default_model_route]])]),l("label",gd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[11]||(u[11]=r=>ce.value.description=r),type:"text"},null,512),[[$,ce.value.description]])]),l("label",hd,[l("span",null,a(t.basePrompt),1),A(l("input",{"onUpdate:modelValue":u[12]||(u[12]=r=>ce.value.base_prompt=r),type:"text"},null,512),[[$,ce.value.base_prompt]])]),l("label",_d,[l("span",null,a(t.appearancePrompt),1),A(l("input",{"onUpdate:modelValue":u[13]||(u[13]=r=>ce.value.appearance_prompt=r),type:"text"},null,512),[[$,ce.value.appearance_prompt]])]),l("label",md,[l("span",null,a(t.stylePrompt),1),A(l("input",{"onUpdate:modelValue":u[14]||(u[14]=r=>ce.value.style_prompt=r),type:"text"},null,512),[[$,ce.value.style_prompt]])]),l("label",yd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[15]||(u[15]=r=>ce.value.negative_prompt=r),type:"text"},null,512),[[$,ce.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!ce.value.name,onClick:Si},a(t.update),9,bd),l("button",{type:"button",disabled:!!C.value,onClick:Xl},a(t.reset),9,wd)])):K("",!0),l("ul",null,[(x(!0),S(Y,null,fe(((En=f.value)==null?void 0:En.items)??[],r=>(x(),S("li",{key:r.profile_id},[l("div",null,[l("strong",null,a(r.name),1),l("small",null,a(r.profile_id),1)]),l("div",kd,[l("span",xd,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ci(r)},a(t.edit),9,Cd),l("button",{type:"button",disabled:!!C.value,onClick:se=>xi(r.profile_id)},a(t.archive),9,Sd)])]))),128)),(Dn=f.value)!=null&&Dn.items.length?K("",!0):(x(),S("li",Pd,a(t.emptyProfiles),1))])])):K("",!0),s.value==="workflows"?(x(),S("section",Ed,[l("div",Dd,[l("header",null,[l("h2",null,a(we.value),1),l("span",null,a(v.value.length),1)]),l("div",Td,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[16]||(u[16]=r=>it.value.display_name=r),type:"text"},null,512),[[$,it.value.display_name]])]),l("label",null,[l("span",null,a(t.workflowType),1),A(l("select",{"onUpdate:modelValue":u[17]||(u[17]=r=>it.value.workflow_type=r)},[...u[82]||(u[82]=[l("option",{value:"single_image"},"single_image",-1),l("option",{value:"character_gradual"},"character_gradual",-1),l("option",{value:"character_fast"},"character_fast",-1),l("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[bt,it.value.workflow_type]])]),l("button",{type:"button",disabled:!!C.value||!re.value||!it.value.display_name,onClick:Pi},a(t.create),9,Id)]),l("ul",null,[(x(!0),S(Y,null,fe(v.value,r=>(x(),S("li",{key:r.workflow_id},[l("div",null,[l("strong",null,a(r.display_name),1),l("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),l("div",Od,[l("span",Ad,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>ol(r.workflow_id)},a(t.nodes),9,Ud),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ei(r.workflow_id)},a(t.start),9,$d),l("button",{type:"button",disabled:!!C.value,onClick:se=>Di(r.workflow_id)},a(t.cancel),9,Rd),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ti(r.workflow_id)},a(t.archive),9,Md)])]))),128)),v.value.length?K("",!0):(x(),S("li",Vd,a(t.emptyWorkflows),1))]),_.value?(x(),S("section",Bd,[l("header",null,[l("h2",null,a(t.branches),1),l("span",null,a(h.value.length),1)]),l("div",Ld,[l("label",null,[l("span",null,a(t.branchName),1),A(l("input",{"onUpdate:modelValue":u[18]||(u[18]=r=>We.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[$,We.value.branch_name]])]),l("button",{type:"button",disabled:!!C.value||!We.value.branch_name,onClick:Ii},a(t.create),9,Fd)]),l("ul",null,[(x(!0),S(Y,null,fe(h.value,r=>(x(),S("li",{key:r.branch_id},[l("div",null,[l("strong",null,a(r.branch_name),1),l("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),l("button",{type:"button",disabled:!!C.value,onClick:se=>Oi(r.branch_name)},a(t.switchBranch),9,Nd)]))),128))])])):K("",!0)]),l("div",jd,[l("header",null,[l("h2",null,a(t.nodes),1),l("div",Wd,[l("span",null,a(((Tn=_.value)==null?void 0:Tn.workflow.current_branch)??"main"),1),l("button",{type:"button",disabled:!!C.value||!_.value,onClick:$i},a(t.review),9,Hd)])]),l("div",Kd,[l("label",null,[l("span",null,a(t.nodeKey),1),A(l("input",{"onUpdate:modelValue":u[19]||(u[19]=r=>Q.value.node_key=r),type:"text"},null,512),[[$,Q.value.node_key]])]),l("label",null,[l("span",null,a(t.nodeTitle),1),A(l("input",{"onUpdate:modelValue":u[20]||(u[20]=r=>Q.value.title=r),type:"text"},null,512),[[$,Q.value.title]])]),l("label",null,[l("span",null,a(t.nodeType),1),A(l("input",{"onUpdate:modelValue":u[21]||(u[21]=r=>Q.value.node_type=r),type:"text"},null,512),[[$,Q.value.node_type]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[22]||(u[22]=r=>Q.value.status=r),type:"text"},null,512),[[$,Q.value.status]])]),l("label",qd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[23]||(u[23]=r=>Q.value.description=r),type:"text"},null,512),[[$,Q.value.description]])]),l("label",Jd,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[24]||(u[24]=r=>Q.value.prompt=r),type:"text"},null,512),[[$,Q.value.prompt]])]),l("label",Gd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[25]||(u[25]=r=>Q.value.negative_prompt=r),type:"text"},null,512),[[$,Q.value.negative_prompt]])]),l("label",null,[l("span",null,a(t.modelRoute),1),A(l("input",{"onUpdate:modelValue":u[26]||(u[26]=r=>Q.value.model_route=r),type:"text"},null,512),[[$,Q.value.model_route]])]),l("button",{type:"button",disabled:!!C.value||!Q.value.node_key||!Q.value.title,onClick:Ui},a(Q.value.node_id?t.update:t.create),9,zd),l("button",{type:"button",disabled:!!C.value,onClick:sl},a(t.reset),9,Yd)]),l("div",Qd,[l("label",null,[l("span",null,a(t.modelRoute),1),A(l("input",{"onUpdate:modelValue":u[27]||(u[27]=r=>Be.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[$,Be.value.model_route]])]),l("label",null,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[28]||(u[28]=r=>Be.value.prompt=r),type:"text"},null,512),[[$,Be.value.prompt]])]),l("label",Xd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[29]||(u[29]=r=>Be.value.negative_prompt=r),type:"text"},null,512),[[$,Be.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!M.value,onClick:Mi},a(t.generate),9,Zd),l("button",{type:"button",disabled:!!C.value||!M.value,onClick:Ri},a(t.review),9,ec)]),l("ul",null,[(x(!0),S(Y,null,fe(((no=_.value)==null?void 0:no.nodes)??[],r=>(x(),S("li",{key:r.node_id},[l("div",null,[l("strong",null,a(r.title),1),l("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),l("div",tc,[l("span",null,a(r.branch_name),1),l("span",nc,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ai(r)},a(t.edit),9,lc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Vi(r.node_id)},a(t.retry),9,oc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Bi(r.node_id)},a(t.complete),9,sc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ql(r.node_id)},a(t.images),9,ic)])]))),128)),(lo=_.value)!=null&&lo.nodes.length?K("",!0):(x(),S("li",rc,a(t.emptyWorkflows),1))]),l("ul",null,[(x(!0),S(Y,null,fe(ne.value,r=>(x(),S("li",{key:r.image_id},[l("div",null,[l("strong",null,a(r.image_id),1),l("small",null,a(r.thumbnail_uri??r.image_uri),1)]),l("div",ac,[r.is_selected?(x(),S("span",uc,a(t.select),1)):K("",!0),l("button",{type:"button",disabled:!!C.value||r.is_selected||r.is_archived,onClick:se=>Li(r.image_id)},a(t.select),9,dc),l("button",{type:"button",disabled:!!C.value||r.is_archived,onClick:se=>Fi(r.image_id)},a(t.adopt),9,cc),l("button",{type:"button",disabled:!!C.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:se=>dr(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,fc),l("button",{type:"button",disabled:!!C.value||!r.is_selected,onClick:se=>Ni(r.image_id)},a(t.unselect),9,pc),l("button",{type:"button",disabled:!!C.value||r.is_archived,onClick:se=>ji(r.image_id)},a(t.archive),9,vc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Wi(r.image_id)},a(t.delete),9,gc)])]))),128)),ne.value.length?K("",!0):(x(),S("li",hc,a(t.emptyImages),1))]),je.value?(x(),S("pre",_c,a(JSON.stringify(je.value,null,2)),1)):K("",!0),W.value?(x(),S("pre",mc,a(JSON.stringify(W.value,null,2)),1)):K("",!0),l("section",yc,[l("header",null,[l("h2",null,a(t.history),1),l("span",null,a(w.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(w.value,r=>(x(),S("li",{key:r.history_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.title??r.node_id??r.workflow_id),1)]),l("span",null,a(r.branch_name),1)]))),128)),w.value.length?K("",!0):(x(),S("li",bc,a(t.emptyHistory),1))])]),R.value?(x(),S("section",wc,[l("header",null,[l("h2",null,a(t.reviewResult),1),l("span",null,a(R.value.passed?t.support:t.unsupported),1)]),l("pre",null,a(JSON.stringify(R.value,null,2)),1)])):K("",!0),_.value?(x(),S("pre",kc,a(JSON.stringify(_.value.workflow,null,2)),1)):K("",!0)])])):K("",!0),s.value==="materials"?(x(),S("section",xc,[l("div",Cc,[l("header",null,[l("h2",null,a(t.materialCategories),1),l("span",null,a(he.value.length),1)]),l("div",Sc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[30]||(u[30]=r=>D.value.name=r),type:"text"},null,512),[[$,D.value.name]])]),l("label",null,[l("span",null,a(t.categoryType),1),A(l("input",{"onUpdate:modelValue":u[31]||(u[31]=r=>D.value.category_type=r),type:"text"},null,512),[[$,D.value.category_type]])]),l("label",null,[l("span",null,a(t.sortOrder),1),A(l("input",{"onUpdate:modelValue":u[32]||(u[32]=r=>D.value.sort_order=r),type:"number"},null,512),[[$,D.value.sort_order,void 0,{number:!0}]])]),l("button",{type:"button",disabled:!!C.value||!D.value.name,onClick:fr},a(D.value.category_id?t.update:t.create),9,Pc),l("button",{type:"button",disabled:!!C.value,onClick:xn},a(t.reset),9,Ec)]),l("ul",null,[(x(!0),S(Y,null,fe(he.value,r=>(x(),S("li",{key:r.category_id},[l("div",null,[l("strong",null,a(r.name),1),l("small",null,a(r.category_type),1)]),l("div",Dc,[l("span",null,a(r.sort_order),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>cr(r)},a(t.edit),9,Tc),l("button",{type:"button",disabled:!!C.value,onClick:se=>pr(r.category_id)},a(t.delete),9,Ic)])]))),128)),he.value.length?K("",!0):(x(),S("li",Oc,a(t.emptyCategories),1))])]),l("div",Ac,[l("header",null,[l("h2",null,a(t.materialItems),1),l("div",Uc,[l("span",null,a(qe.value)+" "+a(t.pendingConfirm),1),l("button",{type:"button",disabled:!!C.value,onClick:ur},a(t.signFirstImage),9,$c)])]),l("div",Rc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[33]||(u[33]=r=>y.value.display_name=r),type:"text"},null,512),[[$,y.value.display_name]])]),l("label",null,[l("span",null,a(t.imageUri),1),A(l("input",{"onUpdate:modelValue":u[34]||(u[34]=r=>y.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[$,y.value.image_uri]])]),l("label",null,[l("span",null,a(t.category),1),A(l("select",{"onUpdate:modelValue":u[35]||(u[35]=r=>y.value.category_id=r)},[l("option",Mc,a(t.allCategories),1),(x(!0),S(Y,null,fe(he.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Vc))),128))],512),[[bt,y.value.category_id]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[36]||(u[36]=r=>y.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[$,y.value.tags]])]),l("label",null,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[37]||(u[37]=r=>y.value.prompt=r),type:"text"},null,512),[[$,y.value.prompt]])]),l("label",null,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[38]||(u[38]=r=>y.value.negative_prompt=r),type:"text"},null,512),[[$,y.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!y.value.display_name,onClick:vr},a(y.value.material_id?t.update:t.create),9,Bc),l("button",{type:"button",disabled:!!C.value,onClick:al},a(t.reset),9,Lc)]),l("ul",null,[(x(!0),S(Y,null,fe(((oo=xe.value)==null?void 0:oo.items)??[],r=>(x(),S("li",{key:r.material_id},[l("div",null,[l("strong",null,a(r.display_name),1),l("small",null,a(r.image_uri??t.noImage),1)]),l("div",Fc,[l("span",Nc,a(r.recognition_status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>gr(r)},a(t.edit),9,jc),l("button",{type:"button",disabled:!!C.value,onClick:se=>_r(r)},a(r.recognition_status==="confirmed"?t.reRecognize:t.recognize),9,Wc),l("button",{type:"button",disabled:!!C.value||r.recognition_status==="confirmed",onClick:se=>mr(r)},a(t.confirm),9,Hc),l("button",{type:"button",disabled:!!C.value,onClick:se=>yr(r.material_id)},a(t.archive),9,Kc)])]))),128)),(so=xe.value)!=null&&so.items.length?K("",!0):(x(),S("li",qc,a(t.emptyMaterials),1))]),l("div",Jc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[39]||(u[39]=r=>T.value.display_name=r),type:"text"},null,512),[[$,T.value.display_name]])]),l("label",null,[l("span",null,a(t.filename),1),A(l("input",{"onUpdate:modelValue":u[40]||(u[40]=r=>T.value.filename=r),type:"text"},null,512),[[$,T.value.filename]])]),l("label",null,[l("span",null,a(t.contentType),1),A(l("input",{"onUpdate:modelValue":u[41]||(u[41]=r=>T.value.content_type=r),type:"text"},null,512),[[$,T.value.content_type]])]),l("label",null,[l("span",null,a(t.imageUri),1),A(l("input",{"onUpdate:modelValue":u[42]||(u[42]=r=>T.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[$,T.value.image_uri]])]),l("label",null,[l("span",null,a(t.category),1),A(l("select",{"onUpdate:modelValue":u[43]||(u[43]=r=>T.value.category_id=r)},[l("option",Gc,a(t.allCategories),1),(x(!0),S(Y,null,fe(he.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,zc))),128))],512),[[bt,T.value.category_id]])]),l("button",{type:"button",disabled:!!C.value||!T.value.image_uri,onClick:hr},a(t.upload),9,Yc),l("button",{type:"button",disabled:!!C.value,onClick:eo},a(t.reset),9,Qc)]),je.value?(x(),S("pre",Xc,a(JSON.stringify(je.value,null,2)),1)):K("",!0)])])):K("",!0),s.value==="wardrobe"?(x(),S("section",Zc,[l("header",null,[l("h2",null,a(we.value),1),l("button",{type:"button",disabled:!re.value||!!C.value,onClick:zi},a(t.match),9,ef)]),l("div",tf,[l("label",null,[l("span",null,a(t.selectMaterial),1),A(l("select",{"onUpdate:modelValue":u[44]||(u[44]=r=>P.value.material_id=r)},[l("option",nf,a(t.selectMaterial),1),(x(!0),S(Y,null,fe(Ut.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,lf))),128))],512),[[bt,P.value.material_id]])]),l("label",null,[l("span",null,a(t.wardrobeCategory),1),A(l("input",{"onUpdate:modelValue":u[45]||(u[45]=r=>P.value.wardrobe_category=r),type:"text"},null,512),[[$,P.value.wardrobe_category]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[46]||(u[46]=r=>P.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[$,P.value.tags]])]),l("label",null,[l("span",null,a(t.season),1),A(l("input",{"onUpdate:modelValue":u[47]||(u[47]=r=>P.value.season=r),type:"text"},null,512),[[$,P.value.season]])]),l("label",null,[l("span",null,a(t.style),1),A(l("input",{"onUpdate:modelValue":u[48]||(u[48]=r=>P.value.style=r),type:"text"},null,512),[[$,P.value.style]])]),l("button",{type:"button",disabled:!!C.value||!re.value||!P.value.material_id||!P.value.wardrobe_category,onClick:Qi},a(t.importToWardrobe),9,of)]),l("ul",null,[(x(!0),S(Y,null,fe(Ie.value,r=>(x(),S("li",{key:r.wardrobe_item_id},[l("div",null,[l("strong",null,a(r.wardrobe_category),1),l("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),l("div",sf,[l("span",null,a(r.usage_count),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Xi(r.wardrobe_item_id)},a(t.delete),9,rf)])]))),128)),Ie.value.length?K("",!0):(x(),S("li",af,a(t.emptyWardrobe),1))]),Fe.value?(x(),S("pre",uf,a(JSON.stringify(Fe.value,null,2)),1)):K("",!0),l("div",df,[l("label",null,[l("span",null,a(t.categories),1),A(l("input",{"onUpdate:modelValue":u[49]||(u[49]=r=>b.value.categories=r),type:"text"},null,512),[[$,b.value.categories]])]),l("label",null,[l("span",null,a(t.mood),1),A(l("input",{"onUpdate:modelValue":u[50]||(u[50]=r=>b.value.mood=r),type:"text"},null,512),[[$,b.value.mood]])]),l("label",null,[l("span",null,a(t.weather),1),A(l("input",{"onUpdate:modelValue":u[51]||(u[51]=r=>b.value.weather=r),type:"text"},null,512),[[$,b.value.weather]])]),l("label",null,[l("span",null,a(t.keywords),1),A(l("input",{"onUpdate:modelValue":u[52]||(u[52]=r=>b.value.keywords=r),type:"text"},null,512),[[$,b.value.keywords]])]),l("button",{type:"button",disabled:!!C.value||!re.value,onClick:Zi},a(t.dailyOutfit),9,cf)]),L.value?(x(),S("pre",ff,a(JSON.stringify(L.value,null,2)),1)):K("",!0)])):K("",!0),s.value==="jobs"?(x(),S("section",pf,[l("header",null,[l("h2",null,a(t.jobs),1),l("div",vf,[l("button",{type:"button",disabled:!!C.value,onClick:Hi},a(t.moveFailed),9,gf),l("button",{type:"button",disabled:!!C.value,onClick:Ki},a(t.retryDead),9,hf)])]),l("div",_f,[l("label",null,[u[83]||(u[83]=l("span",null,"Status",-1)),A(l("select",{"onUpdate:modelValue":u[53]||(u[53]=r=>He.value.status=r)},[l("option",mf,a(t.allStatuses),1),(x(),S(Y,null,fe(Ee,r=>l("option",{key:r,value:r},a(r),9,yf)),64))],512),[[bt,He.value.status]])]),l("label",null,[l("span",null,a(t.profiles),1),A(l("select",{"onUpdate:modelValue":u[54]||(u[54]=r=>He.value.profile_id=r)},[l("option",bf,a(t.allProfiles),1),(x(!0),S(Y,null,fe(((io=f.value)==null?void 0:io.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,wf))),128))],512),[[bt,He.value.profile_id]])]),l("label",null,[l("span",null,a(t.workflows),1),A(l("select",{"onUpdate:modelValue":u[55]||(u[55]=r=>He.value.workflow_id=r)},[l("option",kf,a(t.allWorkflows),1),(x(!0),S(Y,null,fe(v.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,xf))),128))],512),[[bt,He.value.workflow_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:pi},a(t.filter),9,Cf)]),l("ul",null,[(x(!0),S(Y,null,fe(((ro=me.value)==null?void 0:ro.items)??[],r=>(x(),S("li",{key:r.task_id},[l("div",null,[l("strong",null,a(r.task_id),1),l("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),l("div",Sf,[l("span",Pf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:se=>_i(r.task_id)},a(t.retry),9,Ef)):K("",!0),["completed","succeeded","cancelled"].includes(r.status)?K("",!0):(x(),S("button",{key:1,type:"button",onClick:se=>mi(r.task_id)},a(t.cancel),9,Df)),l("button",{type:"button",disabled:!!C.value,onClick:se=>yi(r.task_id)},a(t.detail),9,Tf)])]))),128)),(ao=me.value)!=null&&ao.items.length?K("",!0):(x(),S("li",If,a(t.emptyJobs),1))]),ie.value?(x(),S("section",Of,[l("header",null,[l("h2",null,a(t.jobDetail),1),l("span",null,a(ie.value.status),1)]),l("pre",null,a(JSON.stringify(ie.value,null,2)),1)])):K("",!0)])):K("",!0),s.value==="discovery"?(x(),S("section",Af,[l("div",Uf,[l("header",null,[l("h2",null,a(t.dialects),1),l("div",$f,[l("button",{type:"button",disabled:!!C.value,onClick:Ji},a(t.probeProvider),9,Rf),l("button",{type:"button",disabled:!!C.value,onClick:qi},a(t.safeProbe),9,Mf)])]),l("ul",null,[(x(!0),S(Y,null,fe(Re.value,r=>(x(),S("li",{key:r.dialect},[l("div",null,[l("strong",null,a(r.label),1),l("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),l("span",null,a(r.dialect),1)]))),128))]),l("div",Vf,[l("label",null,[l("span",null,a(t.provider),1),A(l("input",{"onUpdate:modelValue":u[56]||(u[56]=r=>O.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[$,O.value.provider_id]])]),l("label",null,[l("span",null,a(t.model),1),A(l("input",{"onUpdate:modelValue":u[57]||(u[57]=r=>O.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[$,O.value.model_id]])]),l("label",null,[l("span",null,a(t.requiredCapabilities),1),A(l("input",{"onUpdate:modelValue":u[58]||(u[58]=r=>O.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[$,O.value.required_capabilities]])]),l("button",{type:"button",disabled:!!C.value||!O.value.provider_id||!O.value.model_id,onClick:Gi},a(t.validatePlan),9,Bf)]),B.value?(x(),S("pre",Lf,a(JSON.stringify(B.value,null,2)),1)):K("",!0)]),l("div",Ff,[l("header",null,[l("h2",null,a(t.capabilityProfiles),1),l("span",null,a(_t.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(_t.value,r=>(x(),S("li",{key:r.capability_profile_id},[l("div",null,[l("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),l("small",null,a(r.dialect),1)]),l("div",Nf,[l("span",jf,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"confirmed_supported")},a(t.support),9,Wf),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"confirmed_unsupported")},a(t.unsupported),9,Hf),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"unconfirmed")},a(t.unconfirmed),9,Kf)])]))),128)),_t.value.length?K("",!0):(x(),S("li",qf,a(t.emptyCapabilities),1))])])])):K("",!0),s.value==="logs"?(x(),S("section",Jf,[l("div",Gf,[l("div",zf,[l("header",null,[l("h2",null,a(t.generationLogs),1),l("span",null,a(ve.value.generation.length),1)]),l("div",Yf,[l("label",null,[l("span",null,a(t.status),1),A(l("select",{"onUpdate:modelValue":u[59]||(u[59]=r=>Pe.value.status=r)},[l("option",Qf,a(t.allStatuses),1),(x(),S(Y,null,fe(Ee,r=>l("option",{key:`gen-${r}`,value:r},a(r),9,Xf)),64))],512),[[bt,Pe.value.status]])]),l("label",null,[u[84]||(u[84]=l("span",null,"ProfileId",-1)),A(l("input",{"onUpdate:modelValue":u[60]||(u[60]=r=>Pe.value.profile_id=r),type:"text"},null,512),[[$,Pe.value.profile_id]])]),l("label",null,[u[85]||(u[85]=l("span",null,"WorkflowId",-1)),A(l("input",{"onUpdate:modelValue":u[61]||(u[61]=r=>Pe.value.workflow_id=r),type:"text"},null,512),[[$,Pe.value.workflow_id]])]),l("label",null,[u[86]||(u[86]=l("span",null,"NodeId",-1)),A(l("input",{"onUpdate:modelValue":u[62]||(u[62]=r=>Pe.value.node_id=r),type:"text"},null,512),[[$,Pe.value.node_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:ri},a(t.applyFilters),9,Zf)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.generation,r=>(x(),S("li",{key:r.task_id},[l("div",null,[l("strong",null,a(r.task_id),1),l("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),l("span",null,a(r.created_at),1)]))),128)),ve.value.generation.length?K("",!0):(x(),S("li",ep,a(t.emptyGenerationLogs),1))])]),l("div",tp,[l("header",null,[l("h2",null,a(t.errorLogs),1),l("span",null,a(ve.value.errors.length),1)]),l("div",np,[l("label",null,[u[88]||(u[88]=l("span",null,"Source",-1)),A(l("select",{"onUpdate:modelValue":u[63]||(u[63]=r=>p.value.source=r)},[...u[87]||(u[87]=[l("option",{value:""},"All",-1),l("option",{value:"generation_task"},"generation_task",-1),l("option",{value:"integration"},"integration",-1)])],512),[[bt,p.value.source]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[64]||(u[64]=r=>p.value.status=r),type:"text"},null,512),[[$,p.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:ui},a(t.applyFilters),9,lp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.errors,r=>(x(),S("li",{key:`${r.source}-${r.id}`},[l("div",null,[l("strong",null,a(r.source),1),l("small",null,a(r.error_message??t.noErrorDetail),1)]),l("span",op,a(r.status),1)]))),128)),ve.value.errors.length?K("",!0):(x(),S("li",sp,a(t.emptyErrors),1))])])]),l("div",ip,[l("div",rp,[l("header",null,[l("h2",null,a(t.workflowLogs),1),l("span",null,a(ve.value.workflows.length),1)]),l("div",ap,[l("label",null,[u[89]||(u[89]=l("span",null,"WorkflowId",-1)),A(l("input",{"onUpdate:modelValue":u[65]||(u[65]=r=>Ze.value.workflow_id=r),type:"text"},null,512),[[$,Ze.value.workflow_id]])]),l("label",null,[u[90]||(u[90]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[66]||(u[66]=r=>Ze.value.action=r),type:"text"},null,512),[[$,Ze.value.action]])]),l("label",null,[u[91]||(u[91]=l("span",null,"NodeId",-1)),A(l("input",{"onUpdate:modelValue":u[67]||(u[67]=r=>Ze.value.node_id=r),type:"text"},null,512),[[$,Ze.value.node_id]])]),l("label",null,[l("span",null,a(t.currentBranch),1),A(l("input",{"onUpdate:modelValue":u[68]||(u[68]=r=>Ze.value.branch_name=r),type:"text"},null,512),[[$,Ze.value.branch_name]])]),l("button",{type:"button",disabled:!!C.value,onClick:ai},a(t.applyFilters),9,up)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.workflows,r=>(x(),S("li",{key:r.history_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.title??r.workflow_id),1)]),l("span",null,a(r.branch_name??"main"),1)]))),128)),ve.value.workflows.length?K("",!0):(x(),S("li",dp,a(t.emptyWorkflowLogs),1))])]),l("div",cp,[l("header",null,[l("h2",null,a(t.integrationLogs),1),l("span",null,a(ve.value.integrations.length),1)]),l("div",fp,[l("label",null,[u[92]||(u[92]=l("span",null,"Integration",-1)),A(l("input",{"onUpdate:modelValue":u[69]||(u[69]=r=>g.value.integration_name=r),type:"text"},null,512),[[$,g.value.integration_name]])]),l("label",null,[u[93]||(u[93]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[70]||(u[70]=r=>g.value.action=r),type:"text"},null,512),[[$,g.value.action]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[71]||(u[71]=r=>g.value.status=r),type:"text"},null,512),[[$,g.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:di},a(t.applyFilters),9,pp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.integrations,r=>(x(),S("li",{key:r.integration_log_id},[l("div",null,[l("strong",null,a(r.integration_name),1),l("small",null,a(r.action),1)]),l("span",vp,a(r.status),1)]))),128)),ve.value.integrations.length?K("",!0):(x(),S("li",gp,a(t.emptyIntegrationLogs),1))])])]),l("div",hp,[l("header",null,[l("h2",null,a(t.integrationEvents),1),l("span",null,a(Ne.value.length),1)]),l("div",_p,[l("label",null,[u[94]||(u[94]=l("span",null,"Integration",-1)),A(l("input",{"onUpdate:modelValue":u[72]||(u[72]=r=>m.value.integration_name=r),type:"text"},null,512),[[$,m.value.integration_name]])]),l("label",null,[u[95]||(u[95]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[73]||(u[73]=r=>m.value.action=r),type:"text"},null,512),[[$,m.value.action]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[74]||(u[74]=r=>m.value.status=r),type:"text"},null,512),[[$,m.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:ci},a(t.applyFilters),9,mp)]),l("ul",null,[(x(!0),S(Y,null,fe(Ne.value,r=>(x(),S("li",{key:`event-${r.integration_log_id}`},[l("div",null,[l("strong",null,a(r.integration_name),1),l("small",null,a(r.action)+" / "+a(r.created_at),1)]),l("span",yp,a(r.status),1)]))),128)),Ne.value.length?K("",!0):(x(),S("li",bp,a(t.emptyIntegrationLogs),1))]),Ne.value.length?(x(),S("pre",wp,a(JSON.stringify(Ne.value[0],null,2)),1)):K("",!0)]),l("div",kp,[l("header",null,[l("h2",null,a(t.eventStream),1),l("span",null,a(((uo=Xe.value)==null?void 0:uo.count)??0),1)]),l("div",xp,[l("label",null,[u[96]||(u[96]=l("span",null,"EventType",-1)),A(l("input",{"onUpdate:modelValue":u[75]||(u[75]=r=>E.value.event_type=r),type:"text"},null,512),[[$,E.value.event_type]])]),l("button",{type:"button",disabled:!!C.value,onClick:Yl},a(t.applyFilters),9,Cp)]),l("ul",null,[(x(!0),S(Y,null,fe(((co=Xe.value)==null?void 0:co.events)??[],r=>(x(),S("li",{key:r.event_id},[l("div",null,[l("strong",null,a(r.event_type),1),l("small",null,a(r.event_id)+" / "+a(r.created_at),1)]),l("span",null,a(Object.keys(r.data).length),1)]))),128)),(fo=Xe.value)!=null&&fo.events.length?K("",!0):(x(),S("li",Sp,a(t.emptyEvents),1))]),(po=Xe.value)!=null&&po.body?(x(),S("pre",Pp,a(Xe.value.body),1)):K("",!0)]),l("div",Ep,[l("header",null,[l("h2",null,a(t.auditLogs),1),l("span",null,a(ve.value.audit.length),1)]),l("div",Dp,[l("label",null,[u[97]||(u[97]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[76]||(u[76]=r=>k.value.action=r),type:"text"},null,512),[[$,k.value.action]])]),l("label",null,[l("span",null,a(t.targetType),1),A(l("input",{"onUpdate:modelValue":u[77]||(u[77]=r=>k.value.target_type=r),type:"text"},null,512),[[$,k.value.target_type]])]),l("label",null,[l("span",null,a(t.actor),1),A(l("input",{"onUpdate:modelValue":u[78]||(u[78]=r=>k.value.actor_id=r),type:"text"},null,512),[[$,k.value.actor_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:fi},a(t.filter),9,Tp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.audit,r=>(x(),S("li",{key:r.audit_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),l("span",null,a(r.created_at),1)]))),128)),ve.value.audit.length?K("",!0):(x(),S("li",Ip,a(t.emptyAuditLogs),1))])])])):K("",!0),s.value==="settings"?(x(),S("section",Op,[l("div",Ap,[l("button",{type:"button",disabled:!!C.value,onClick:er},a(t.reload),9,Up),l("button",{type:"button",disabled:!!C.value,onClick:u[79]||(u[79]=r=>Wt())},a(t.reset),9,$p),l("button",{type:"button",disabled:!!C.value,onClick:lr},a(t.validate),9,Rp),l("button",{type:"button",disabled:!!C.value,onClick:or},a(t.diff),9,Mp),l("button",{type:"button",disabled:!!C.value,onClick:sr},a(t.save),9,Vp),l("button",{type:"button",disabled:!!C.value,onClick:tr},a(t.exportRedacted),9,Bp),l("button",{type:"button",disabled:!!C.value,onClick:Zl},a(t.loadSnapshots),9,Lp)]),l("div",Fp,[(x(!0),S(Y,null,fe(((vo=ee.value)==null?void 0:vo.sections)??[],r=>(x(),S("article",{key:r.key},[l("h2",null,a(r.title),1),l("span",null,a(r.fields.length),1)]))),128))]),l("section",Np,[l("header",null,[l("h2",null,a(t.settingsEditor),1),l("span",null,a(((go=X.value)==null?void 0:go.config_path)??"***PATH***"),1)]),A(l("textarea",{"onUpdate:modelValue":u[80]||(u[80]=r=>At.value=r),spellcheck:"false"},null,512),[[$,At.value]])]),l("section",jp,[l("header",null,[l("h2",null,a(t.importSettings),1),l("button",{type:"button",disabled:!!C.value||!be.value,onClick:ir},a(t.importSettings),9,Wp)]),A(l("textarea",{"onUpdate:modelValue":u[81]||(u[81]=r=>be.value=r),spellcheck:"false"},null,512),[[$,be.value]])]),l("section",Hp,[l("header",null,[l("h2",null,a(t.snapshots),1),l("span",null,a(de.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(de.value,r=>(x(),S("li",{key:r.snapshot_id},[l("div",null,[l("strong",null,a(r.reason),1),l("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),l("div",Kp,[l("button",{type:"button",disabled:!!C.value,onClick:se=>rr(r.snapshot_id)},a(t.loadSnapshot),9,qp),l("button",{type:"button",disabled:!!C.value,onClick:se=>ar(r.snapshot_id)},a(t.rollback),9,Jp)])]))),128))])]),le.value?(x(),S("section",Gp,[l("header",null,[l("h2",null,a(t.snapshotPreview),1),l("span",null,a(le.value.snapshot_id),1)]),l("pre",null,a(JSON.stringify(le.value.config,null,2)),1)])):K("",!0),l("div",zp,[l("div",Yp,[l("header",null,[l("h2",null,a(t.validationResult),1),l("span",null,a(((ho=st.value)==null?void 0:ho.valid)??"-"),1)]),l("pre",null,a(JSON.stringify(st.value??{},null,2)),1)]),l("div",Qp,[l("header",null,[l("h2",null,a(t.diffResult),1),l("span",null,a(((_o=Ve.value)==null?void 0:_o.changes.length)??0),1)]),l("pre",null,a(JSON.stringify(Ve.value??{},null,2)),1)])]),Me.value?(x(),S("section",Xp,[l("header",null,[l("h2",null,a(t.exportSettings),1),l("span",null,a(Me.value.redacted),1)]),l("pre",null,a(JSON.stringify(Me.value.config,null,2)),1)])):K("",!0)])):K("",!0)],64))]),l("aside",Zp,[l("h2",null,a(t.running),1),l("dl",null,[l("div",null,[u[98]||(u[98]=l("dt",null,"Pending",-1)),l("dd",null,a(((mo=d.value)==null?void 0:mo.queue.pending)??0),1)]),l("div",null,[u[99]||(u[99]=l("dt",null,"Running",-1)),l("dd",null,a(((yo=d.value)==null?void 0:yo.queue.running)??0),1)]),l("div",null,[u[100]||(u[100]=l("dt",null,"Failed",-1)),l("dd",null,a(((bo=d.value)==null?void 0:bo.queue.failed)??0),1)]),l("div",null,[u[101]||(u[101]=l("dt",null,"Dead",-1)),l("dd",null,a(((wo=d.value)==null?void 0:wo.queue.dead_letter)??0),1)])]),l("h2",null,a(t.storage),1),l("dl",null,[l("div",null,[u[102]||(u[102]=l("dt",null,"Images",-1)),l("dd",null,a(ul(to("storage://images/"))),1)]),l("div",null,[u[103]||(u[103]=l("dt",null,"Materials",-1)),l("dd",null,a(ul(to("storage://materials/"))),1)])])])])}}}),tv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},nv=tv(ev,[["__scopeId","data-v-c56a08cb"]]);Ku(nv).mount("#app");