astrbot_plugin_imagestudio/web/assets/index-DvLE7l5o.js

17 行
124 KiB
JavaScript

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