astrbot_plugin_imagestudio/web/assets/index-BTjymfnK.js

17 行
105 KiB
JavaScript

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