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