astrbot_plugin_imagestudio/web/assets/index-CkUduyZP.js

17 行
136 KiB
JavaScript

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