From 1605a7589035822f15700b621ac94e89ffb63cc8 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 5 Jul 2026 13:18:16 +0800 Subject: [PATCH] feat: add wardrobe import controls --- frontend/shared/api/endpoints.ts | 2 + frontend/standalone-web/src/App.vue | 102 +++++++++++++++++- .../{index-C4aj6dk0.js => index-BFBsCBKK.js} | 2 +- pages/imagestudio/index.html | 2 +- web/assets/index-BYQHrko-.js | 17 --- web/assets/index-CRHbO3Gr.css | 1 - web/assets/index-DJcoydnZ.js | 17 +++ web/assets/index-DQnY71w4.css | 1 + web/index.html | 4 +- 9 files changed, 125 insertions(+), 23 deletions(-) rename pages/imagestudio/assets/{index-C4aj6dk0.js => index-BFBsCBKK.js} (93%) delete mode 100644 web/assets/index-BYQHrko-.js delete mode 100644 web/assets/index-CRHbO3Gr.css create mode 100644 web/assets/index-DJcoydnZ.js create mode 100644 web/assets/index-DQnY71w4.css diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 5c7c6d1..f2f7cf5 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -25,6 +25,8 @@ export const endpoints = { materialRecognize: (materialId: string) => `materials/${materialId}/recognize`, materialConfirm: (materialId: string) => `materials/${materialId}/confirm`, wardrobe: (profileId: string) => `profiles/${profileId}/wardrobe`, + wardrobeImportMaterial: (profileId: string) => `profiles/${profileId}/wardrobe/import-material`, + wardrobeItem: (profileId: string, wardrobeItemId: string) => `profiles/${profileId}/wardrobe/${wardrobeItemId}`, wardrobeMatch: (profileId: string) => `profiles/${profileId}/wardrobe/match`, apiDiscoveryDialects: "api-discovery/dialects", apiDiscoveryProbeModel: "api-discovery/probe-model", diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 392587a..b53c639 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -44,6 +44,14 @@ const text = { allCategories: "\u5168\u90e8\u5206\u7c7b", materialCreated: "\u7d20\u6750\u5df2\u521b\u5efa", materialArchived: "\u7d20\u6750\u5df2\u5f52\u6863", + importToWardrobe: "\u52a0\u5165\u8863\u6a71", + delete: "\u5220\u9664", + wardrobeCategory: "\u8863\u6a71\u5206\u7c7b", + season: "\u5b63\u8282", + style: "\u98ce\u683c", + selectMaterial: "\u9009\u62e9\u7d20\u6750", + wardrobeImported: "\u8863\u6a71\u6761\u76ee\u5df2\u52a0\u5165", + wardrobeDeleted: "\u8863\u6a71\u6761\u76ee\u5df2\u5220\u9664", dashboard: "\u8fd0\u884c\u6982\u89c8", profiles: "\u89d2\u8272", materials: "\u7d20\u6750\u5e93", @@ -141,6 +149,13 @@ const materialDraft = ref({ tags: "", category_id: "", }) +const wardrobeDraft = ref({ + material_id: "", + wardrobe_category: "top", + tags: "", + season: "", + style: "", +}) const lastOperation = ref("") const loading = ref(true) const busy = ref("") @@ -155,6 +170,9 @@ const queueTotal = computed(() => { const pendingRecognition = computed( () => materials.value?.items.filter((item) => item.recognition_status !== "confirmed").length ?? 0, ) +const confirmedMaterials = computed(() => + (materials.value?.items ?? []).filter((item) => item.recognition_status === "confirmed"), +) const activeTitle = computed(() => { const titles: Record = { dashboard: text.dashboard, @@ -324,6 +342,49 @@ function matchWardrobe() { ) } +function resetWardrobeDraft() { + wardrobeDraft.value = { + material_id: "", + wardrobe_category: "top", + tags: "", + season: "", + style: "", + } +} + +function importWardrobeMaterial() { + const profileId = selectedProfileId.value + if (!profileId) return Promise.resolve() + return runOperation( + text.importToWardrobe, + async () => { + const item = await postJson(endpoints.wardrobeImportMaterial(profileId), { + material_id: wardrobeDraft.value.material_id, + wardrobe_category: wardrobeDraft.value.wardrobe_category, + tags: splitCsv(wardrobeDraft.value.tags), + season: wardrobeDraft.value.season || undefined, + style: wardrobeDraft.value.style || undefined, + }) + resetWardrobeDraft() + lastOperation.value = text.wardrobeImported + return item + }, + ) +} + +function deleteWardrobeItem(wardrobeItemId: string) { + const profileId = selectedProfileId.value + if (!profileId) return Promise.resolve() + return runOperation( + text.delete, + async () => { + const item = await request(endpoints.wardrobeItem(profileId, wardrobeItemId), { method: "DELETE" }) + lastOperation.value = text.wardrobeDeleted + return item + }, + ) +} + function reloadSettings() { return runOperation( text.reload, @@ -656,13 +717,52 @@ function storageRootBytes(uriPrefix: string) { {{ text.match }} +
+ + + + + + +
  • {{ item.wardrobe_category }} {{ item.material_id }} / {{ item.tags.join(", ") || text.noTags }}
    - {{ item.usage_count }} +
    + {{ item.usage_count }} + +
  • {{ text.emptyWardrobe }}
diff --git a/pages/imagestudio/assets/index-C4aj6dk0.js b/pages/imagestudio/assets/index-BFBsCBKK.js similarity index 93% rename from pages/imagestudio/assets/index-C4aj6dk0.js rename to pages/imagestudio/assets/index-BFBsCBKK.js index e8f2ca5..8161ba8 100644 --- a/pages/imagestudio/assets/index-C4aj6dk0.js +++ b/pages/imagestudio/assets/index-BFBsCBKK.js @@ -14,4 +14,4 @@ var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,config * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),zo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(Jo,e):t==="mathml"?Le.createElementNS(Yo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},ko=Symbol("_vtc");function Xo(e,t,s){const n=e[ko];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!z(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function _t(e,t,s){if(M(s))s.forEach(n=>_t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):zt(t)?kt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fn(t)&&R(s));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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fn(t)&&z(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const _l=Q({patchProp:hl},zo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return z(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Sl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function $n(e,t){return wl(e,{method:"GET",query:t})}async function wl(e,t={}){const n=await(await fetch(Cl(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(!n.ok)throw new Sl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},Fl={class:"activity"},Dl={key:0,class:"empty"},jl={key:0,class:"empty"},$l=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function f(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,w,C,j,A,G,K,I,H,O,Y,ce,fe,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll($l,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); +**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),zo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(Jo,e):t==="mathml"?Le.createElementNS(Yo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},ko=Symbol("_vtc");function Xo(e,t,s){const n=e[ko];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!z(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function _t(e,t,s){if(M(s))s.forEach(n=>_t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):zt(t)?kt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fn(t)&&R(s));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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fn(t)&&z(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const _l=Q({patchProp:hl},zo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return z(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Sl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function $n(e,t){return wl(e,{method:"GET",query:t})}async function wl(e,t={}){const n=await(await fetch(Cl(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(!n.ok)throw new Sl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},Fl={class:"activity"},Dl={key:0,class:"empty"},jl={key:0,class:"empty"},$l=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function f(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,w,C,j,A,G,K,I,H,O,Y,ce,fe,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll($l,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html index 426d2dd..a877cf7 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
diff --git a/web/assets/index-BYQHrko-.js b/web/assets/index-BYQHrko-.js deleted file mode 100644 index bd04eaf..0000000 --- a/web/assets/index-BYQHrko-.js +++ /dev/null @@ -1,17 +0,0 @@ -var _l=Object.defineProperty;var ml=(e,t,s)=>t in e?_l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Ls=(e,t,s)=>ml(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function rn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},wt=[],Ue=()=>{},ui=()=>!1,ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xs=e=>e.startsWith("onUpdate:"),pe=Object.assign,on=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},vl=Object.prototype.hasOwnProperty,J=(e,t)=>vl.call(e,t),k=Array.isArray,St=e=>Yt(e)==="[object Map]",ws=e=>Yt(e)==="[object Set]",In=e=>Yt(e)==="[object Date]",j=e=>typeof e=="function",ae=e=>typeof e=="string",We=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",fi=e=>(G(e)||j(e))&&j(e.then)&&j(e.catch),di=Object.prototype.toString,Yt=e=>di.call(e),bl=e=>Yt(e).slice(8,-1),hi=e=>Yt(e)==="[object Object]",an=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=rn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ss=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},yl=/-\w/g,Ie=Ss(e=>e.replace(yl,t=>t.slice(1).toUpperCase())),xl=/\B([A-Z])/g,gt=Ss(e=>e.replace(xl,"-$1").toLowerCase()),pi=Ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=Ss(e=>e?`on${pi(e)}`:""),Ve=(e,t)=>!Object.is(e,t),as=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Rn;const Es=()=>Rn||(Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cn(e){if(k(e)){const t={};for(let s=0;s{if(s){const n=s.split(Sl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ts(e){let t="";if(ae(e))t=e;else if(k(e))for(let s=0;sXt(s,t))}const mi=e=>!!(e&&e.__v_isRef===!0),g=e=>ae(e)?e:e==null?"":k(e)||G(e)&&(e.toString===di||!j(e.toString))?mi(e)?g(e.value):JSON.stringify(e,vi,2):String(e),vi=(e,t)=>mi(t)?vi(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[$s(n,l)+" =>"]=i,s),{})}:ws(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>$s(s))}:We(t)?$s(t):G(t)&&!k(t)&&!hi(t)?String(t):t,$s=(e,t="")=>{var s;return We(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let he;class Ml{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&&he&&(he.active?(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(he===this)he=this.prevScope;else{let t=he;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 s,n;for(s=0,n=this.effects.length;s0)return;if(Bt){let t=Bt;for(Bt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Nt;){let t=Nt;for(Nt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function wi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Si(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),dn(n),Il(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Gs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt)||(e.globalVersion=Kt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gs(e))))return;e.flags|=2;const t=e.dep,s=Z,n=Re;Z=e,Re=!0;try{wi(e);const i=e.fn(e._value);(t.version===0||Ve(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Z=s,Re=n,Si(e),e.flags&=-3}}function dn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)dn(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Il(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Ei=[];function Ke(){Ei.push(Re),Re=!1}function qe(){const e=Ei.pop();Re=e===void 0?!0:e}function Fn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Z;Z=void 0;try{t()}finally{Z=s}}}let Kt=0;class Rl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hn{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(!Z||!Re||Z===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Z)s=this.activeLink=new Rl(Z,this),Z.deps?(s.prevDep=Z.depsTail,Z.depsTail.nextDep=s,Z.depsTail=s):Z.deps=Z.depsTail=s,Ti(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Z.depsTail,s.nextDep=void 0,Z.depsTail.nextDep=s,Z.depsTail=s,Z.deps===s&&(Z.deps=n)}return s}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){un();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{fn()}}}function Ti(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Ti(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const zs=new WeakMap,ht=Symbol(""),Ys=Symbol(""),qt=Symbol("");function ge(e,t,s){if(Re&&Z){let n=zs.get(e);n||zs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new hn),i.map=n,i.key=s),i.track()}}function Qe(e,t,s,n,i,l){const r=zs.get(e);if(!r){Kt++;return}const o=c=>{c&&c.trigger()};if(un(),t==="clear")r.forEach(o);else{const c=k(e),p=c&&an(s);if(c&&s==="length"){const d=Number(n);r.forEach((v,A)=>{(A==="length"||A===qt||!We(A)&&A>=d)&&o(v)})}else switch((s!==void 0||r.has(void 0))&&o(r.get(s)),p&&o(r.get(qt)),t){case"add":c?p&&o(r.get("length")):(o(r.get(ht)),St(e)&&o(r.get(Ys)));break;case"delete":c||(o(r.get(ht)),St(e)&&o(r.get(Ys)));break;case"set":St(e)&&o(r.get(ht));break}}fn()}function bt(e){const t=q(e);return t===e?t:(ge(t,"iterate",qt),De(e)?t:t.map(Fe))}function Os(e){return ge(e=q(e),"iterate",qt),e}function Be(e,t){return st(e)?Ot(pt(e)?Fe(t):t):Fe(t)}const Fl={__proto__:null,[Symbol.iterator](){return Ns(this,Symbol.iterator,e=>Be(this,e))},concat(...e){return bt(this).concat(...e.map(t=>k(t)?bt(t):t))},entries(){return Ns(this,"entries",e=>(e[1]=Be(this,e[1]),e))},every(e,t){return Ye(this,"every",e,t,void 0,arguments)},filter(e,t){return Ye(this,"filter",e,t,s=>s.map(n=>Be(this,n)),arguments)},find(e,t){return Ye(this,"find",e,t,s=>Be(this,s),arguments)},findIndex(e,t){return Ye(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ye(this,"findLast",e,t,s=>Be(this,s),arguments)},findLastIndex(e,t){return Ye(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ye(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bs(this,"includes",e)},indexOf(...e){return Bs(this,"indexOf",e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Bs(this,"lastIndexOf",e)},map(e,t){return Ye(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return Ln(this,"reduce",e,t)},reduceRight(e,...t){return Ln(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return Ye(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return Ns(this,"values",e=>Be(this,e))}};function Ns(e,t,s){const n=Os(e),i=n[t]();return n!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=s(l.value)),l}),i}const Ll=Array.prototype;function Ye(e,t,s,n,i,l){const r=Os(e),o=r!==e&&!De(e),c=r[t];if(c!==Ll[t]){const v=c.apply(e,l);return o?Fe(v):v}let p=s;r!==e&&(o?p=function(v,A){return s.call(this,Be(e,v),A,e)}:s.length>2&&(p=function(v,A){return s.call(this,v,A,e)}));const d=c.call(r,p,n);return o&&i?i(d):d}function Ln(e,t,s,n){const i=Os(e),l=i!==e&&!De(e);let r=s,o=!1;i!==e&&(l?(o=n.length===0,r=function(p,d,v){return o&&(o=!1,p=Be(e,p)),s.call(this,p,Be(e,d),v,e)}):s.length>3&&(r=function(p,d,v){return s.call(this,p,d,v,e)}));const c=i[t](r,...n);return o?Be(e,c):c}function Bs(e,t,s){const n=q(e);ge(n,"iterate",qt);const i=n[t](...s);return(i===-1||i===!1)&&mn(s[0])?(s[0]=q(s[0]),n[t](...s)):i}function Rt(e,t,s=[]){Ke(),un();const n=q(e)[t].apply(e,s);return fn(),qe(),n}const kl=rn("__proto__,__v_isRef,__isVue"),Oi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function $l(e){We(e)||(e=String(e));const t=q(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Ai{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(i?l?Jl:Ii:l?Di:Mi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=k(t);if(!i){let c;if(r&&(c=Fl[s]))return c;if(s==="hasOwnProperty")return $l}const o=Reflect.get(t,s,_e(t)?t:n);if((We(s)?Oi.has(s):kl(s))||(i||ge(t,"get",s),l))return o;if(_e(o)){const c=r&&an(s)?o:o.value;return i&&G(c)?Zs(c):c}return G(o)?i?Zs(o):gn(o):o}}class Pi extends Ai{constructor(t=!1){super(!1,t)}set(t,s,n,i){let l=t[s];const r=k(t)&&an(s);if(!this._isShallow){const p=st(l);if(!De(n)&&!st(n)&&(l=q(l),n=q(n)),!r&&_e(l)&&!_e(n))return p||(l.value=n),!0}const o=r?Number(s)e,is=e=>Reflect.getPrototypeOf(e);function Vl(e,t,s){return function(...n){const i=this.__v_raw,l=q(i),r=St(l),o=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,p=i[e](...n),d=s?Xs:t?Ot:Fe;return!t&&ge(l,"iterate",c?Ys:ht),pe(Object.create(p),{next(){const{value:v,done:A}=p.next();return A?{value:v,done:A}:{value:o?[d(v[0]),d(v[1])]:d(v),done:A}}})}}function ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ul(e,t){const s={get(i){const l=this.__v_raw,r=q(l),o=q(i);e||(Ve(i,o)&&ge(r,"get",i),ge(r,"get",o));const{has:c}=is(r),p=t?Xs:e?Ot:Fe;if(c.call(r,i))return p(l.get(i));if(c.call(r,o))return p(l.get(o));l!==r&&l.get(i)},get size(){const i=this.__v_raw;return!e&&ge(q(i),"iterate",ht),i.size},has(i){const l=this.__v_raw,r=q(l),o=q(i);return e||(Ve(i,o)&&ge(r,"has",i),ge(r,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const r=this,o=r.__v_raw,c=q(o),p=t?Xs:e?Ot:Fe;return!e&&ge(c,"iterate",ht),o.forEach((d,v)=>i.call(l,p(d),p(v),r))}};return pe(s,e?{add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear")}:{add(i){const l=q(this),r=is(l),o=q(i),c=!t&&!De(i)&&!st(i)?o:i;return r.has.call(l,c)||Ve(i,c)&&r.has.call(l,i)||Ve(o,c)&&r.has.call(l,o)||(l.add(c),Qe(l,"add",c,c)),this},set(i,l){!t&&!De(l)&&!st(l)&&(l=q(l));const r=q(this),{has:o,get:c}=is(r);let p=o.call(r,i);p||(i=q(i),p=o.call(r,i));const d=c.call(r,i);return r.set(i,l),p?Ve(l,d)&&Qe(r,"set",i,l):Qe(r,"add",i,l),this},delete(i){const l=q(this),{has:r,get:o}=is(l);let c=r.call(l,i);c||(i=q(i),c=r.call(l,i)),o&&o.call(l,i);const p=l.delete(i);return c&&Qe(l,"delete",i,void 0),p},clear(){const i=q(this),l=i.size!==0,r=i.clear();return l&&Qe(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Vl(i,e,t)}),s}function pn(e,t){const s=Ul(e,t);return(n,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(J(s,i)&&i in n?s:n,i,l)}const Wl={get:pn(!1,!1)},Kl={get:pn(!1,!0)},ql={get:pn(!0,!1)};const Mi=new WeakMap,Di=new WeakMap,Ii=new WeakMap,Jl=new WeakMap;function Gl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gn(e){return st(e)?e:_n(e,!1,Nl,Wl,Mi)}function zl(e){return _n(e,!1,Hl,Kl,Di)}function Zs(e){return _n(e,!0,Bl,ql,Ii)}function _n(e,t,s,n,i){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=i.get(e);if(l)return l;const r=Gl(bl(e));if(r===0)return e;const o=new Proxy(e,r===2?n:s);return i.set(e,o),o}function pt(e){return st(e)?pt(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Yl(e){return!J(e,"__v_skip")&&Object.isExtensible(e)&&gi(e,"__v_skip",!0),e}const Fe=e=>G(e)?gn(e):e,Ot=e=>G(e)?Zs(e):e;function _e(e){return e?e.__v_isRef===!0:!1}function ie(e){return Xl(e,!1)}function Xl(e,t){return _e(e)?e:new Zl(e,t)}class Zl{constructor(t,s){this.dep=new hn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:q(t),this._value=s?t:Fe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||De(t)||st(t);t=n?t:q(t),Ve(t,s)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function Ql(e){return _e(e)?e.value:e}const er={get:(e,t,s)=>t==="__v_raw"?e:Ql(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return _e(i)&&!_e(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ri(e){return pt(e)?e:new Proxy(e,er)}class tr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new hn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return xi(this,!0),!0}get value(){const t=this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sr(e,t,s=!1){let n,i;return j(e)?n=e:(n=e.get,i=e.set),new tr(n,i,s)}const rs={},fs=new WeakMap;let ft;function nr(e,t=!1,s=ft){if(s){let n=fs.get(s);n||fs.set(s,n=[]),n.push(e)}}function ir(e,t,s=X){const{immediate:n,deep:i,once:l,scheduler:r,augmentJob:o,call:c}=s,p=R=>i?R:De(R)||i===!1||i===0?et(R,1):et(R);let d,v,A,P,U=!1,F=!1;if(_e(e)?(v=()=>e.value,U=De(e)):pt(e)?(v=()=>p(e),U=!0):k(e)?(F=!0,U=e.some(R=>pt(R)||De(R)),v=()=>e.map(R=>{if(_e(R))return R.value;if(pt(R))return p(R);if(j(R))return c?c(R,2):R()})):j(e)?t?v=c?()=>c(e,2):e:v=()=>{if(A){Ke();try{A()}finally{qe()}}const R=ft;ft=d;try{return c?c(e,3,[P]):e(P)}finally{ft=R}}:v=Ue,t&&i){const R=v,ee=i===!0?1/0:i;v=()=>et(R(),ee)}const Q=Dl(),N=()=>{d.stop(),Q&&Q.active&&on(Q.effects,d)};if(l&&t){const R=t;t=(...ee)=>{const z=R(...ee);return N(),z}}let H=F?new Array(e.length).fill(rs):rs;const K=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(t){const ee=d.run();if(R||i||U||(F?ee.some((z,fe)=>Ve(z,H[fe])):Ve(ee,H))){A&&A();const z=ft;ft=d;try{const fe=[ee,H===rs?void 0:F&&H[0]===rs?[]:H,P];H=ee,c?c(t,3,fe):t(...fe)}finally{ft=z}}}else d.run()};return o&&o(K),d=new bi(v),d.scheduler=r?()=>r(K,!1):K,P=R=>nr(R,!1,d),A=d.onStop=()=>{const R=fs.get(d);if(R){if(c)c(R,4);else for(const ee of R)ee();fs.delete(d)}},t?n?K(!0):H=d.run():r?r(K.bind(null,!0),!0):d.run(),N.pause=d.pause.bind(d),N.resume=d.resume.bind(d),N.stop=N,N}function et(e,t=1/0,s){if(t<=0||!G(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,_e(e))et(e.value,t,s);else if(k(e))for(let n=0;n{et(n,t,s)});else if(hi(e)){for(const n in e)et(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&et(e[n],t,s)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Zt(e,t,s,n){try{return n?e(...n):e()}catch(i){As(i,t,s)}}function Le(e,t,s,n){if(j(e)){const i=Zt(e,t,s,n);return i&&fi(i)&&i.catch(l=>{As(l,t,s)}),i}if(k(e)){const i=[];for(let l=0;l>>1,i=xe[n],l=Jt(i);l=Jt(s)?xe.push(e):xe.splice(rr(t),0,e),e.flags|=1,ki()}}function ki(){ds||(ds=Fi.then(ji))}function or(e){k(e)?Ct.push(...e):rt&&e.id===-1?rt.splice(yt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),ki()}function kn(e,t,s=Ne+1){for(;sJt(s)-Jt(n));if(Ct.length=0,rt){rt.push(...t);return}for(rt=t,yt=0;yte.id==null?e.flags&2?-1:1/0:e.id;function ji(e){try{for(Ne=0;Ne{n._d&&Jn(-1);const l=hs(t);let r;try{r=e(...i)}finally{hs(l),n._d&&Jn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Ft(e,t){if(Me===null)return e;const s=Is(Me),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&j(t)?t.call(n&&n.proxy):t}}const ur=Symbol.for("v-scx"),fr=()=>cs(ur);function Hs(e,t,s){return Bi(e,t,s)}function Bi(e,t,s=X){const{immediate:n,deep:i,flush:l,once:r}=s,o=pe({},s),c=t&&n||!t&&l!=="post";let p;if(zt){if(l==="sync"){const P=fr();p=P.__watcherHandles||(P.__watcherHandles=[])}else if(!c){const P=()=>{};return P.stop=Ue,P.resume=Ue,P.pause=Ue,P}}const d=we;o.call=(P,U,F)=>Le(P,d,U,F);let v=!1;l==="post"?o.scheduler=P=>{Ee(P,d&&d.suspense)}:l!=="sync"&&(v=!0,o.scheduler=(P,U)=>{U?P():vn(P)}),o.augmentJob=P=>{t&&(P.flags|=4),v&&(P.flags|=2,d&&(P.id=d.uid,P.i=d))};const A=ir(e,t,o);return zt&&(p?p.push(A):c&&A()),A}function dr(e,t,s){const n=this.proxy,i=ae(e)?e.includes(".")?Hi(n,e):()=>n[e]:e.bind(n,n);let l;j(t)?l=t:(l=t.handler,s=t);const r=Qt(this),o=Bi(i,l.bind(n),s);return r(),o}function Hi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Vs=Symbol("_leaveCb");function bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,bn(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 gr(e,t){return j(e)?pe({name:e.name},t,{setup:e}):e}function Vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $n(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ps=new WeakMap;function Ht(e,t,s,n,i=!1){if(k(e)){e.forEach((F,Q)=>Ht(F,t&&(k(t)?t[Q]:t),s,n,i));return}if(Vt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ht(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?Is(n.component):n.el,r=i?null:l,{i:o,r:c}=e,p=t&&t.r,d=o.refs===X?o.refs={}:o.refs,v=o.setupState,A=q(v),P=v===X?ui:F=>$n(d,F)?!1:J(A,F),U=(F,Q)=>!(Q&&$n(d,Q));if(p!=null&&p!==c){if(jn(t),ae(p))d[p]=null,P(p)&&(v[p]=null);else if(_e(p)){const F=t;U(p,F.k)&&(p.value=null),F.k&&(d[F.k]=null)}}if(j(c)){Ke();try{Zt(c,o,12,[r,d])}finally{qe()}}else{const F=ae(c),Q=_e(c);if(F||Q){const N=()=>{if(e.f){const H=F?P(c)?v[c]:d[c]:U()||!e.k?c.value:d[e.k];if(i)k(H)&&on(H,l);else if(k(H))H.includes(l)||H.push(l);else if(F)d[c]=[l],P(c)&&(v[c]=d[c]);else{const K=[l];U(c,e.k)&&(c.value=K),e.k&&(d[e.k]=K)}}else F?(d[c]=r,P(c)&&(v[c]=r)):Q&&(U(c,e.k)&&(c.value=r),e.k&&(d[e.k]=r))};if(r){const H=()=>{N(),ps.delete(e)};H.id=-1,ps.set(e,H),Ee(H,s)}else jn(e),N()}}}function jn(e){const t=ps.get(e);t&&(t.flags|=8,ps.delete(e))}Es().requestIdleCallback;Es().cancelIdleCallback;const Vt=e=>!!e.type.__asyncLoader,Ui=e=>e.type.__isKeepAlive;function _r(e,t){Wi(e,"a",t)}function mr(e,t){Wi(e,"da",t)}function Wi(e,t,s=we){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ps(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Ui(i.parent.vnode)&&vr(n,t,s,i),i=i.parent}}function vr(e,t,s,n){const i=Ps(t,e,n,!0);qi(()=>{on(n[t],i)},s)}function Ps(e,t,s=we,n=!1){if(s){const i=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...r)=>{Ke();const o=Qt(s),c=Le(t,s,e,r);return o(),qe(),c});return n?i.unshift(l):i.push(l),l}}const nt=e=>(t,s=we)=>{(!zt||e==="sp")&&Ps(e,(...n)=>t(...n),s)},br=nt("bm"),Ki=nt("m"),yr=nt("bu"),xr=nt("u"),wr=nt("bum"),qi=nt("um"),Sr=nt("sp"),Cr=nt("rtg"),Er=nt("rtc");function Tr(e,t=we){Ps("ec",e,t)}const Or=Symbol.for("v-ndc");function be(e,t,s,n){let i;const l=s,r=k(e);if(r||ae(e)){const o=r&&pt(e);let c=!1,p=!1;o&&(c=!De(e),p=st(e),e=Os(e)),i=new Array(e.length);for(let d=0,v=e.length;dt(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,p=o.length;ce?hl(e)?Is(e):Qs(e.parent):null,Ut=pe(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=>Qs(e.parent),$root:e=>Qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gi(e),$forceUpdate:e=>e.f||(e.f=()=>{vn(e.update)}),$nextTick:e=>e.n||(e.n=Li.bind(e.proxy)),$watch:e=>dr.bind(e)}),Us=(e,t)=>e!==X&&!e.__isScriptSetup&&J(e,t),Ar={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:l,accessCache:r,type:o,appContext:c}=e;if(t[0]!=="$"){const A=r[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return l[t]}else{if(Us(n,t))return r[t]=1,n[t];if(i!==X&&J(i,t))return r[t]=2,i[t];if(J(l,t))return r[t]=3,l[t];if(s!==X&&J(s,t))return r[t]=4,s[t];en&&(r[t]=0)}}const p=Ut[t];let d,v;if(p)return t==="$attrs"&&ge(e.attrs,"get",""),p(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(s!==X&&J(s,t))return r[t]=4,s[t];if(v=c.config.globalProperties,J(v,t))return v[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:l}=e;return Us(i,t)?(i[t]=s,!0):n!==X&&J(n,t)?(n[t]=s,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:l,type:r}},o){let c;return!!(s[o]||e!==X&&o[0]!=="$"&&J(e,o)||Us(t,o)||J(l,o)||J(n,o)||J(Ut,o)||J(i.config.globalProperties,o)||(c=r.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:J(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Nn(e){return k(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let en=!0;function Pr(e){const t=Gi(e),s=e.proxy,n=e.ctx;en=!1,t.beforeCreate&&Bn(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:r,watch:o,provide:c,inject:p,created:d,beforeMount:v,mounted:A,beforeUpdate:P,updated:U,activated:F,deactivated:Q,beforeDestroy:N,beforeUnmount:H,destroyed:K,unmounted:R,render:ee,renderTracked:z,renderTriggered:fe,errorCaptured:Ae,serverPrefetch:Y,expose:Se,inheritAttrs:it,components:_t,directives:mt,filters:Pt}=t;if(p&&Mr(p,n,null),r)for(const te in r){const W=r[te];j(W)&&(n[te]=W.bind(s))}if(i){const te=i.call(s,s);G(te)&&(e.data=gn(te))}if(en=!0,l)for(const te in l){const W=l[te],Je=j(W)?W.bind(s,s):j(W.get)?W.get.bind(s,s):Ue,oe=!j(W)&&j(W.set)?W.set.bind(s):Ue,Ge=xt({get:Je,set:oe});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:Pe=>Ge.value=Pe})}if(o)for(const te in o)Ji(o[te],n,s,te);if(c){const te=j(c)?c.call(s):c;Reflect.ownKeys(te).forEach(W=>{cr(W,te[W])})}d&&Bn(d,e,"c");function ce(te,W){k(W)?W.forEach(Je=>te(Je.bind(s))):W&&te(W.bind(s))}if(ce(br,v),ce(Ki,A),ce(yr,P),ce(xr,U),ce(_r,F),ce(mr,Q),ce(Tr,Ae),ce(Er,z),ce(Cr,fe),ce(wr,H),ce(qi,R),ce(Sr,Y),k(Se))if(Se.length){const te=e.exposed||(e.exposed={});Se.forEach(W=>{Object.defineProperty(te,W,{get:()=>s[W],set:Je=>s[W]=Je,enumerable:!0})})}else e.exposed||(e.exposed={});ee&&e.render===Ue&&(e.render=ee),it!=null&&(e.inheritAttrs=it),_t&&(e.components=_t),mt&&(e.directives=mt),Y&&Vi(e)}function Mr(e,t,s=Ue){k(e)&&(e=tn(e));for(const n in e){const i=e[n];let l;G(i)?"default"in i?l=cs(i.from||n,i.default,!0):l=cs(i.from||n):l=cs(i),_e(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[n]=l}}function Bn(e,t,s){Le(k(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ji(e,t,s,n){let i=n.includes(".")?Hi(s,n):()=>s[n];if(ae(e)){const l=t[e];j(l)&&Hs(i,l)}else if(j(e))Hs(i,e.bind(s));else if(G(e))if(k(e))e.forEach(l=>Ji(l,t,s,n));else{const l=j(e.handler)?e.handler.bind(s):t[e.handler];j(l)&&Hs(i,l,e)}}function Gi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,o=l.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(p=>gs(c,p,r,!0)),gs(c,t,r)),G(t)&&l.set(t,c),c}function gs(e,t,s,n=!1){const{mixins:i,extends:l}=t;l&&gs(e,l,s,!0),i&&i.forEach(r=>gs(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const o=Dr[r]||s&&s[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Dr={data:Hn,props:Vn,emits:Vn,methods:kt,computed:kt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:kt,directives:kt,watch:Rr,provide:Hn,inject:Ir};function Hn(e,t){return t?e?function(){return pe(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Ir(e,t){return kt(tn(e),tn(t))}function tn(e){if(k(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${gt(t)}Modifiers`];function $r(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let i=s;const l=t.startsWith("update:"),r=l&&kr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>ae(d)?d.trim():d)),r.number&&(i=s.map(Cs)));let o,c=n[o=ks(t)]||n[o=ks(Ie(t))];!c&&l&&(c=n[o=ks(gt(t))]),c&&Le(c,e,6,i);const p=n[o+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Le(p,e,6,i)}}const jr=new WeakMap;function Yi(e,t,s=!1){const n=s?jr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const l=e.emits;let r={},o=!1;if(!j(e)){const c=p=>{const d=Yi(p,t,!0);d&&(o=!0,pe(r,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(G(e)&&n.set(e,null),null):(k(l)?l.forEach(c=>r[c]=null):pe(r,l),G(e)&&n.set(e,r),r)}function Ms(e,t){return!e||!ys(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,gt(t))||J(e,t))}function Un(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[l],slots:r,attrs:o,emit:c,render:p,renderCache:d,props:v,data:A,setupState:P,ctx:U,inheritAttrs:F}=e,Q=hs(e);let N,H;try{if(s.shapeFlag&4){const R=i||n,ee=R;N=He(p.call(ee,R,d,v,P,A,U)),H=o}else{const R=t;N=He(R.length>1?R(v,{attrs:o,slots:r,emit:c}):R(v,null)),H=t.props?o:Nr(o)}}catch(R){Wt.length=0,As(R,e,1),N=tt(ot)}let K=N;if(H&&F!==!1){const R=Object.keys(H),{shapeFlag:ee}=K;R.length&&ee&7&&(l&&R.some(xs)&&(H=Br(H,l)),K=At(K,H,!1,!0))}return s.dirs&&(K=At(K,null,!1,!0),K.dirs=K.dirs?K.dirs.concat(s.dirs):s.dirs),s.transition&&bn(K,s.transition),N=K,hs(Q),N}const Nr=e=>{let t;for(const s in e)(s==="class"||s==="style"||ys(s))&&((t||(t={}))[s]=e[s]);return t},Br=(e,t)=>{const s={};for(const n in e)(!xs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Hr(e,t,s){const{props:n,children:i,component:l}=e,{props:r,children:o,patchFlag:c}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Wn(n,r,p):!!r;if(c&8){const d=t.dynamicProps;for(let v=0;vObject.create(Zi),el=e=>Object.getPrototypeOf(e)===Zi;function Ur(e,t,s,n=!1){const i={},l=Qi();e.propsDefaults=Object.create(null),tl(e,t,i,l);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:zl(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Wr(e,t,s,n){const{props:i,attrs:l,vnode:{patchFlag:r}}=e,o=q(i),[c]=e.propsOptions;let p=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let v=0;v{c=!0;const[A,P]=sl(v,t,!0);pe(r,A),P&&o.push(...P)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return G(e)&&n.set(e,wt),wt;if(k(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",xn=e=>k(e)?e.map(He):[He(e)],qr=(e,t,s)=>{if(t._n)return t;const n=ar((...i)=>xn(t(...i)),s);return n._c=!1,n},nl=(e,t,s)=>{const n=e._ctx;for(const i in e){if(yn(i))continue;const l=e[i];if(j(l))t[i]=qr(i,l,n);else if(l!=null){const r=xn(l);t[i]=()=>r}}},il=(e,t)=>{const s=xn(t);e.slots.default=()=>s},ll=(e,t,s)=>{for(const n in t)(s||!yn(n))&&(e[n]=t[n])},Jr=(e,t,s)=>{const n=e.slots=Qi();if(e.vnode.shapeFlag&32){const i=t._;i?(ll(n,t,s),s&&gi(n,"_",i,!0)):nl(t,n)}else t&&il(e,t)},Gr=(e,t,s)=>{const{vnode:n,slots:i}=e;let l=!0,r=X;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:ll(i,t,s):(l=!t.$stable,nl(t,i)),r=t}else t&&(il(e,t),r={default:1});if(l)for(const o in i)!yn(o)&&r[o]==null&&delete i[o]},Ee=Qr;function zr(e){return Yr(e)}function Yr(e,t){const s=Es();s.__VUE__=!0;const{insert:n,remove:i,patchProp:l,createElement:r,createText:o,createComment:c,setText:p,setElementText:d,parentNode:v,nextSibling:A,setScopeId:P=Ue,insertStaticContent:U}=e,F=(a,f,_,S=null,x=null,b=null,T=void 0,E=null,C=!!f.dynamicChildren)=>{if(a===f)return;a&&!Lt(a,f)&&(S=vt(a),Pe(a,x,b,!0),a=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:y,ref:I,shapeFlag:O}=f;switch(y){case Ds:Q(a,f,_,S);break;case ot:N(a,f,_,S);break;case Ks:a==null&&H(f,_,S,T);break;case ne:_t(a,f,_,S,x,b,T,E,C);break;default:O&1?ee(a,f,_,S,x,b,T,E,C):O&6?mt(a,f,_,S,x,b,T,E,C):(O&64||O&128)&&y.process(a,f,_,S,x,b,T,E,C,ke)}I!=null&&x?Ht(I,a&&a.ref,b,f||a,!f):I==null&&a&&a.ref!=null&&Ht(a.ref,null,b,a,!0)},Q=(a,f,_,S)=>{if(a==null)n(f.el=o(f.children),_,S);else{const x=f.el=a.el;f.children!==a.children&&p(x,f.children)}},N=(a,f,_,S)=>{a==null?n(f.el=c(f.children||""),_,S):f.el=a.el},H=(a,f,_,S)=>{[a.el,a.anchor]=U(a.children,f,_,S,a.el,a.anchor)},K=({el:a,anchor:f},_,S)=>{let x;for(;a&&a!==f;)x=A(a),n(a,_,S),a=x;n(f,_,S)},R=({el:a,anchor:f})=>{let _;for(;a&&a!==f;)_=A(a),i(a),a=_;i(f)},ee=(a,f,_,S,x,b,T,E,C)=>{if(f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),a==null)z(f,_,S,x,b,T,E,C);else{const y=a.el&&a.el._isVueCE?a.el:null;try{y&&y._beginPatch(),Y(a,f,x,b,T,E,C)}finally{y&&y._endPatch()}}},z=(a,f,_,S,x,b,T,E)=>{let C,y;const{props:I,shapeFlag:O,transition:h,dirs:m}=a;if(C=a.el=r(a.type,b,I&&I.is,I),O&8?d(C,a.children):O&16&&Ae(a.children,C,null,S,x,Ws(a,b),T,E),m&&ct(a,null,S,"created"),fe(C,a,a.scopeId,T,S),I){for(const $ in I)$!=="value"&&!jt($)&&l(C,$,null,I[$],b,S);"value"in I&&l(C,"value",null,I.value,b),(y=I.onVnodeBeforeMount)&&je(y,S,a)}m&&ct(a,null,S,"beforeMount");const L=Xr(x,h);L&&h.beforeEnter(C),n(C,f,_),((y=I&&I.onVnodeMounted)||L||m)&&Ee(()=>{try{y&&je(y,S,a),L&&h.enter(C),m&&ct(a,null,S,"mounted")}finally{}},x)},fe=(a,f,_,S,x)=>{if(_&&P(a,_),S)for(let b=0;b{for(let y=C;y{const E=f.el=a.el;let{patchFlag:C,dynamicChildren:y,dirs:I}=f;C|=a.patchFlag&16;const O=a.props||X,h=f.props||X;let m;if(_&&ut(_,!1),(m=h.onVnodeBeforeUpdate)&&je(m,_,f,a),I&&ct(f,a,_,"beforeUpdate"),_&&ut(_,!0),y&&(!a.dynamicChildren||a.dynamicChildren.length!==y.length)&&(C=0,T=!1,y=null),(O.innerHTML&&h.innerHTML==null||O.textContent&&h.textContent==null)&&d(E,""),y?Se(a.dynamicChildren,y,E,_,S,Ws(f,x),b):T||W(a,f,E,null,_,S,Ws(f,x),b,!1),C>0){if(C&16)it(E,O,h,_,x);else if(C&2&&O.class!==h.class&&l(E,"class",null,h.class,x),C&4&&l(E,"style",O.style,h.style,x),C&8){const L=f.dynamicProps;for(let $=0;${m&&je(m,_,f,a),I&&ct(f,a,_,"updated")},S)},Se=(a,f,_,S,x,b,T)=>{for(let E=0;E{if(f!==_){if(f!==X)for(const b in f)!jt(b)&&!(b in _)&&l(a,b,f[b],null,x,S);for(const b in _){if(jt(b))continue;const T=_[b],E=f[b];T!==E&&b!=="value"&&l(a,b,E,T,x,S)}"value"in _&&l(a,"value",f.value,_.value,x)}},_t=(a,f,_,S,x,b,T,E,C)=>{const y=f.el=a?a.el:o(""),I=f.anchor=a?a.anchor:o("");let{patchFlag:O,dynamicChildren:h,slotScopeIds:m}=f;m&&(E=E?E.concat(m):m),a==null?(n(y,_,S),n(I,_,S),Ae(f.children||[],_,I,x,b,T,E,C)):O>0&&O&64&&h&&a.dynamicChildren&&a.dynamicChildren.length===h.length?(Se(a.dynamicChildren,h,_,x,b,T,E),(f.key!=null||x&&f===x.subTree)&&rl(a,f,!0)):W(a,f,_,I,x,b,T,E,C)},mt=(a,f,_,S,x,b,T,E,C)=>{f.slotScopeIds=E,a==null?f.shapeFlag&512?x.ctx.activate(f,_,S,T,C):Pt(f,_,S,x,b,T,C):es(a,f,C)},Pt=(a,f,_,S,x,b,T)=>{const E=a.component=ao(a,S,x);if(Ui(a)&&(E.ctx.renderer=ke),uo(E,!1,T),E.asyncDep){if(x&&x.registerDep(E,ce,T),!a.el){const C=E.subTree=tt(ot);N(null,C,f,_),a.placeholder=C.el}}else ce(E,a,f,_,x,b,T)},es=(a,f,_)=>{const S=f.component=a.component;if(Hr(a,f,_))if(S.asyncDep&&!S.asyncResolved){te(S,f,_);return}else S.next=f,S.update();else f.el=a.el,S.vnode=f},ce=(a,f,_,S,x,b,T)=>{const E=()=>{if(a.isMounted){let{next:O,bu:h,u:m,parent:L,vnode:$}=a;{const ve=ol(a);if(ve){O&&(O.el=$.el,te(a,O,T)),ve.asyncDep.then(()=>{Ee(()=>{a.isUnmounted||y()},x)});return}}let B=O,se;ut(a,!1),O?(O.el=$.el,te(a,O,T)):O=$,h&&as(h),(se=O.props&&O.props.onVnodeBeforeUpdate)&&je(se,L,O,$),ut(a,!0);const le=Un(a),me=a.subTree;a.subTree=le,F(me,le,v(me.el),vt(me),a,x,b),O.el=le.el,B===null&&Vr(a,le.el),m&&Ee(m,x),(se=O.props&&O.props.onVnodeUpdated)&&Ee(()=>je(se,L,O,$),x)}else{let O;const{el:h,props:m}=f,{bm:L,m:$,parent:B,root:se,type:le}=a,me=Vt(f);ut(a,!1),L&&as(L),!me&&(O=m&&m.onVnodeBeforeMount)&&je(O,B,f),ut(a,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(le,a.parent?a.parent.type:void 0);const ve=a.subTree=Un(a);F(null,ve,_,S,a,x,b),f.el=ve.el}if($&&Ee($,x),!me&&(O=m&&m.onVnodeMounted)){const ve=f;Ee(()=>je(O,B,ve),x)}(f.shapeFlag&256||B&&Vt(B.vnode)&&B.vnode.shapeFlag&256)&&a.a&&Ee(a.a,x),a.isMounted=!0,f=_=S=null}};a.scope.on();const C=a.effect=new bi(E);a.scope.off();const y=a.update=C.run.bind(C),I=a.job=C.runIfDirty.bind(C);I.i=a,I.id=a.uid,C.scheduler=()=>vn(I),ut(a,!0),y()},te=(a,f,_)=>{f.component=a;const S=a.vnode.props;a.vnode=f,a.next=null,Wr(a,f.props,S,_),Gr(a,f.children,_),Ke(),kn(a),qe()},W=(a,f,_,S,x,b,T,E,C=!1)=>{const y=a&&a.children,I=a?a.shapeFlag:0,O=f.children,{patchFlag:h,shapeFlag:m}=f;if(h>0){if(h&128){oe(y,O,_,S,x,b,T,E,C);return}else if(h&256){Je(y,O,_,S,x,b,T,E,C);return}}m&8?(I&16&&ze(y,x,b),O!==y&&d(_,O)):I&16?m&16?oe(y,O,_,S,x,b,T,E,C):ze(y,x,b,!0):(I&8&&d(_,""),m&16&&Ae(O,_,S,x,b,T,E,C))},Je=(a,f,_,S,x,b,T,E,C)=>{a=a||wt,f=f||wt;const y=a.length,I=f.length,O=Math.min(y,I);let h;for(h=0;hI?ze(a,x,b,!0,!1,O):Ae(f,_,S,x,b,T,E,C,O)},oe=(a,f,_,S,x,b,T,E,C)=>{let y=0;const I=f.length;let O=a.length-1,h=I-1;for(;y<=O&&y<=h;){const m=a[y],L=f[y]=C?Ze(f[y]):He(f[y]);if(Lt(m,L))F(m,L,_,null,x,b,T,E,C);else break;y++}for(;y<=O&&y<=h;){const m=a[O],L=f[h]=C?Ze(f[h]):He(f[h]);if(Lt(m,L))F(m,L,_,null,x,b,T,E,C);else break;O--,h--}if(y>O){if(y<=h){const m=h+1,L=mh)for(;y<=O;)Pe(a[y],x,b,!0),y++;else{const m=y,L=y,$=new Map;for(y=L;y<=h;y++){const de=f[y]=C?Ze(f[y]):He(f[y]);de.key!=null&&$.set(de.key,y)}let B,se=0;const le=h-L+1;let me=!1,ve=0;const $e=new Array(le);for(y=0;y=le){Pe(de,x,b,!0);continue}let Te;if(de.key!=null)Te=$.get(de.key);else for(B=L;B<=h;B++)if($e[B-L]===0&&Lt(de,f[B])){Te=B;break}Te===void 0?Pe(de,x,b,!0):($e[Te-L]=y+1,Te>=ve?ve=Te:me=!0,F(de,f[Te],_,null,x,b,T,E,C),se++)}const at=me?Zr($e):wt;for(B=at.length-1,y=le-1;y>=0;y--){const de=L+y,Te=f[de],Dt=f[de+1],It=de+1{const{el:b,type:T,transition:E,children:C,shapeFlag:y}=a;if(y&6){Ge(a.component.subTree,f,_,S);return}if(y&128){a.suspense.move(f,_,S);return}if(y&64){T.move(a,f,_,ke);return}if(T===ne){n(b,f,_);for(let O=0;OE.enter(b),x));else{const{leave:O,delayLeave:h,afterLeave:m}=E,L=()=>{a.ctx.isUnmounted?i(b):n(b,f,_)},$=()=>{const B=b._isLeaving||!!b[Vs];b._isLeaving&&b[Vs](!0),E.persisted&&!B?L():O(b,()=>{L(),m&&m()})};h?h(b,L,$):$()}else n(b,f,_)},Pe=(a,f,_,S=!1,x=!1)=>{const{type:b,props:T,ref:E,children:C,dynamicChildren:y,shapeFlag:I,patchFlag:O,dirs:h,cacheIndex:m,memo:L}=a;if(O===-2&&(x=!1),E!=null&&(Ke(),Ht(E,null,_,a,!0),qe()),m!=null&&(f.renderCache[m]=void 0),I&256){f.ctx.deactivate(a);return}const $=I&1&&h,B=!Vt(a);let se;if(B&&(se=T&&T.onVnodeBeforeUnmount)&&je(se,f,a),I&6)Fs(a.component,_,S);else{if(I&128){a.suspense.unmount(_,S);return}$&&ct(a,null,f,"beforeUnmount"),I&64?a.type.remove(a,f,_,ke,S):y&&!y.hasOnce&&(b!==ne||O>0&&O&64)?ze(y,f,_,!1,!0):(b===ne&&O&384||!x&&I&16)&&ze(C,f,_),S&&ts(a)}const le=L!=null&&m==null;(B&&(se=T&&T.onVnodeUnmounted)||$||le)&&Ee(()=>{se&&je(se,f,a),$&&ct(a,null,f,"unmounted"),le&&(a.el=null)},_)},ts=a=>{const{type:f,el:_,anchor:S,transition:x}=a;if(f===ne){Rs(_,S);return}if(f===Ks){R(a);return}const b=()=>{i(_),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(a.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:E}=x,C=()=>T(_,b);E?E(a.el,b,C):C()}else b()},Rs=(a,f)=>{let _;for(;a!==f;)_=A(a),i(a),a=_;i(f)},Fs=(a,f,_)=>{const{bum:S,scope:x,job:b,subTree:T,um:E,m:C,a:y}=a;qn(C),qn(y),S&&as(S),x.stop(),b&&(b.flags|=8,Pe(T,a,f,_)),E&&Ee(E,f),Ee(()=>{a.isUnmounted=!0},f)},ze=(a,f,_,S=!1,x=!1,b=0)=>{for(let T=b;T{if(a.shapeFlag&6)return vt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const f=A(a.anchor||a.el),_=f&&f[hr];return _?A(_):f};let Mt=!1;const ss=(a,f,_)=>{let S;a==null?f._vnode&&(Pe(f._vnode,null,null,!0),S=f._vnode.component):F(f._vnode||null,a,f,null,null,null,_),f._vnode=a,Mt||(Mt=!0,kn(S),$i(),Mt=!1)},ke={p:F,um:Pe,m:Ge,r:ts,mt:Pt,mc:Ae,pc:W,pbc:Se,n:vt,o:e};return{render:ss,hydrate:void 0,createApp:Lr(ss)}}function Ws({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ut({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rl(e,t,s=!1){const n=e.children,i=t.children;if(k(n)&&k(i))for(let l=0;l>1,e[s[o]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,r=s[l-1];l-- >0;)s[l]=r,r=t[r];return s}function ol(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ol(t)}function qn(e){if(e)for(let t=0;te.__isSuspense;function Qr(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):or(e)}const ne=Symbol.for("v-fgt"),Ds=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Ks=Symbol.for("v-stc"),Wt=[];let Oe=null;function M(e=!1){Wt.push(Oe=e?null:[])}function eo(){Wt.pop(),Oe=Wt[Wt.length-1]||null}let Gt=1;function Jn(e,t=!1){Gt+=e,e<0&&Oe&&t&&(Oe.hasOnce=!0)}function ul(e){return e.dynamicChildren=Gt>0?Oe||wt:null,eo(),Gt>0&&Oe&&Oe.push(e),e}function D(e,t,s,n,i,l){return ul(u(e,t,s,n,i,l,!0))}function to(e,t,s,n,i){return ul(tt(e,t,s,n,i,!0))}function fl(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const dl=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||_e(e)||j(e)?{i:Me,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,i=null,l=e===ne?0:1,r=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&us(t),scopeId:Ni,slotScopeIds:null,children:s,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:l,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Me};return o?(_s(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=ae(s)?8:16),Gt>0&&!r&&Oe&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Oe.push(c),c}const tt=so;function so(e,t=null,s=null,n=0,i=null,l=!1){if((!e||e===Or)&&(e=ot),fl(e)){const o=At(e,t,!0);return s&&_s(o,s),Gt>0&&!l&&Oe&&(o.shapeFlag&6?Oe[Oe.indexOf(e)]=o:Oe.push(o)),o.patchFlag=-2,o}if(go(e)&&(e=e.__vccOpts),t){t=no(t);let{class:o,style:c}=t;o&&!ae(o)&&(t.class=Ts(o)),G(c)&&(mn(c)&&!k(c)&&(c=pe({},c)),t.style=cn(c))}const r=ae(e)?1:cl(e)?128:pr(e)?64:G(e)?4:j(e)?2:0;return u(e,t,s,n,i,r,l,!0)}function no(e){return e?mn(e)||el(e)?pe({},e):e:null}function At(e,t,s=!1,n=!1){const{props:i,ref:l,patchFlag:r,children:o,transition:c}=e,p=t?lo(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&dl(p),ref:t&&t.ref?s&&l?k(l)?l.concat(us(t)):[l,us(t)]:us(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&bn(d,c.clone(d)),d}function io(e=" ",t=0){return tt(Ds,null,e,t)}function re(e="",t=!1){return t?(M(),to(ot,null,e)):tt(ot,null,e)}function He(e){return e==null||typeof e=="boolean"?tt(ot):k(e)?tt(ne,null,e.slice()):fl(e)?Ze(e):tt(Ds,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:At(e)}function _s(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(k(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),_s(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!el(t)?t._ctx=Me:i===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(j(t)){if(n&65){_s(e,{default:t});return}t={default:t,_ctx:Me},s=32}else t=String(t),n&64?(s=16,t=[io(t)]):s=8;e.children=t,e.shapeFlag|=s}function lo(...e){const t={};for(let s=0;swe||Me;let ms,nn;{const e=Es(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),l=>{i.length>1?i.forEach(r=>r(l)):i[0](l)}};ms=t("__VUE_INSTANCE_SETTERS__",s=>we=s),nn=t("__VUE_SSR_SETTERS__",s=>zt=s)}const Qt=e=>{const t=we;return ms(e),e.scope.on(),()=>{e.scope.off(),ms(t)}},Gn=()=>{we&&we.scope.off(),ms(null)};function hl(e){return e.vnode.shapeFlag&4}let zt=!1;function uo(e,t=!1,s=!1){t&&nn(t);const{props:n,children:i}=e.vnode,l=hl(e);Ur(e,n,l,t),Jr(e,i,s||t);const r=l?fo(e,t):void 0;return t&&nn(!1),r}function fo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ar);const{setup:n}=s;if(n){Ke();const i=e.setupContext=n.length>1?po(e):null,l=Qt(e),r=Zt(n,e,0,[e.props,i]),o=fi(r);if(qe(),l(),(o||e.sp)&&!Vt(e)&&Vi(e),o){if(r.then(Gn,Gn),t)return r.then(c=>{zn(e,c)}).catch(c=>{As(c,e,0)});e.asyncDep=r}else zn(e,r)}else pl(e)}function zn(e,t,s){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Ri(t)),pl(e)}function pl(e,t,s){const n=e.type;e.render||(e.render=n.render||Ue);{const i=Qt(e);Ke();try{Pr(e)}finally{qe(),i()}}}const ho={get(e,t){return ge(e,"get",""),e[t]}};function po(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ho),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ri(Yl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ut)return Ut[s](e)},has(t,s){return s in t||s in Ut}})):e.proxy}function go(e){return j(e)&&"__vccOpts"in e}const xt=(e,t)=>sr(e,t,zt),_o="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ln;const Yn=typeof window<"u"&&window.trustedTypes;if(Yn)try{ln=Yn.createPolicy("vue",{createHTML:e=>e})}catch{}const gl=ln?e=>ln.createHTML(e):e=>e,mo="http://www.w3.org/2000/svg",vo="http://www.w3.org/1998/Math/MathML",Xe=typeof document<"u"?document:null,Xn=Xe&&Xe.createElement("template"),bo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Xe.createElementNS(mo,e):t==="mathml"?Xe.createElementNS(vo,e):s?Xe.createElement(e,{is:s}):Xe.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Xe.createTextNode(e),createComment:e=>Xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{Xn.innerHTML=gl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Xn.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},yo=Symbol("_vtc");function xo(e,t,s){const n=e[yo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Zn=Symbol("_vod"),wo=Symbol("_vsh"),So=Symbol(""),Co=/(?:^|;)\s*display\s*:/;function Eo(e,t,s){const n=e.style,i=ae(s);let l=!1;if(s&&!i){if(t)if(ae(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&$t(n,o,"")}else for(const r in t)s[r]==null&&$t(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?Oo(e,r,!ae(t)&&t?t[r]:void 0,o)||$t(n,r,o):$t(n,r,"")}}else if(i){if(t!==s){const r=n[So];r&&(s+=";"+r),n.cssText=s,l=Co.test(s)}}else t&&e.removeAttribute("style");Zn in e&&(e[Zn]=l?n.display:"",e[wo]&&(n.display="none"))}const Qn=/\s*!important$/;function $t(e,t,s){if(k(s))s.forEach(n=>$t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=To(e,t);Qn.test(s)?e.setProperty(gt(n),s.replace(Qn,""),"important"):e[n]=s}}const ei=["Webkit","Moz","ms"],qs={};function To(e,t){const s=qs[t];if(s)return s;let n=Ie(t);if(n!=="filter"&&n in e)return qs[t]=n;n=pi(n);for(let i=0;iJs||(Ro.then(()=>Js=0),Js=Date.now());function Lo(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(k(i)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const r=i.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ko=(e,t,s,n,i,l)=>{const r=i==="svg";t==="class"?xo(e,n,r):t==="style"?Eo(e,s,n):ys(t)?xs(t)||Po(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$o(e,t,n,r))?(ni(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&si(e,t,n,r,l,t!=="value")):e._isVueCE&&(jo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(n)))?ni(e,Ie(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),si(e,t,n,r))};function $o(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&li(t)&&j(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return li(t)&&ae(s)?!1:t in e}function jo(e,t){const s=e._def.props;if(!s)return!1;const n=Ie(t);return Array.isArray(s)?s.some(i=>Ie(i)===n):Object.keys(s).some(i=>Ie(i)===n)}const vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return k(t)?s=>as(t,s):t};function No(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tt=Symbol("_assign");function oi(e,t,s){return t&&(e=e.trim()),s&&(e=Cs(e)),e}const os={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Tt]=vs(i);const l=n||i.props&&i.props.type==="number";dt(e,t?"change":"input",r=>{r.target.composing||e[Tt](oi(e.value,s,l))}),(s||l)&&dt(e,"change",()=>{e.value=oi(e.value,s,l)}),t||(dt(e,"compositionstart",No),dt(e,"compositionend",ri),dt(e,"change",ri))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:l}},r){if(e[Tt]=vs(r),e.composing)return;const o=(l||e.type==="number")&&!/^0\d/.test(e.value)?Cs(e.value):e.value,c=t??"";if(o===c)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c)}},Bo={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=ws(t);dt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?Cs(bs(r)):bs(r));e[Tt](e.multiple?i?new Set(l):l:l[0]),e._assigning=!0,Li(()=>{e._assigning=!1})}),e[Tt]=vs(n)},mounted(e,{value:t}){ai(e,t)},beforeUpdate(e,t,s){e[Tt]=vs(s)},updated(e,{value:t}){e._assigning||ai(e,t)}};function ai(e,t){const s=e.multiple,n=k(t);if(!(s&&!n&&!ws(t))){for(let i=0,l=e.options.length;iString(p)===String(o)):r.selected=Pl(t,o)>-1}else r.selected=t.has(o);else if(Xt(bs(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bs(e){return"_value"in e?e._value:e.value}const Ho=pe({patchProp:ko},bo);let ci;function Vo(){return ci||(ci=zr(Ho))}const Uo=((...e)=>{const t=Vo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Ko(n);if(!i)return;const l=t._component;!j(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Wo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function Wo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ko(e){return ae(e)?document.querySelector(e):e}const qo="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",V={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Jo extends Error{constructor(s,n,i={}){super(n);Ls(this,"code");Ls(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function ue(e,t){return wn(e,{method:"GET",query:t})}async function Ce(e,t){return wn(e,{method:"POST",body:t})}async function wn(e,t={}){const n=await(await fetch(Go(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(!n.ok)throw new Jo(n.error_code,n.message,n.details);return n.data}function Go(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${qo}/${s}`,window.location.origin);for(const[i,l]of Object.entries(t??{}))l!==void 0&&n.searchParams.set(i,String(l));return`${n.pathname}${n.search}`}const zo={class:"web-shell"},Yo={class:"sidebar"},Xo={class:"brand"},Zo=["onClick"],Qo={class:"workspace"},ea={class:"topbar"},ta={class:"actions"},sa=["disabled"],na={key:0,class:"notice error"},ia={key:1,class:"notice"},la={key:0,class:"dashboard-grid"},ra={key:1,class:"list-view"},oa={class:"badge"},aa={key:0,class:"empty"},ca={key:2,class:"split-view"},ua={class:"list-view"},fa={key:0,class:"empty"},da={class:"list-view"},ha={class:"inline-actions"},pa=["disabled"],ga={class:"form-grid"},_a={value:""},ma=["value"],va=["disabled"],ba={class:"inline-actions"},ya={class:"badge"},xa=["disabled","onClick"],wa=["disabled","onClick"],Sa=["disabled","onClick"],Ca={key:0,class:"empty"},Ea={key:0},Ta={key:3,class:"list-view"},Oa=["disabled"],Aa={key:0,class:"empty"},Pa={key:0},Ma={key:4,class:"list-view"},Da={class:"inline-actions"},Ia=["disabled"],Ra=["disabled"],Fa={class:"inline-actions"},La={class:"badge"},ka=["onClick"],$a=["onClick"],ja={key:0,class:"empty"},Na={key:5,class:"split-view"},Ba={class:"list-view"},Ha=["disabled"],Va={class:"list-view"},Ua={class:"inline-actions"},Wa={class:"badge"},Ka=["disabled","onClick"],qa=["disabled","onClick"],Ja=["disabled","onClick"],Ga={key:0,class:"empty"},za={key:6,class:"logs-view"},Ya={class:"split-view"},Xa={class:"list-view"},Za={key:0,class:"empty"},Qa={class:"list-view"},ec={class:"badge"},tc={key:0,class:"empty"},sc={class:"split-view"},nc={class:"list-view"},ic={key:0,class:"empty"},lc={class:"list-view"},rc={class:"badge"},oc={key:0,class:"empty"},ac={class:"list-view"},cc={key:0,class:"empty"},uc={key:7,class:"settings-view"},fc={class:"toolbar"},dc=["disabled"],hc=["disabled"],pc=["disabled"],gc=["disabled"],_c=["disabled"],mc=["disabled"],vc={class:"settings-sections"},bc={class:"editor-panel"},yc={class:"split-view"},xc={class:"list-view"},wc={class:"list-view"},Sc={class:"inspector"},Cc=gr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",archive:"归档",recognize:"识别",confirm:"确认",name:"名称",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",emptyProfiles:"暂无角色",categories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},s=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],n=ie("dashboard"),i=ie(null),l=ie(null),r=ie(null),o=ie(null),c=ie(null),p=ie(null),d=ie(null),v=ie([]),A=ie(null),P=ie([]),U=ie([]),F=ie([]),Q=ie(null),N=ie({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),H=ie(null),K=ie(""),R=ie(null),ee=ie(null),z=ie({display_name:"",image_uri:"",tags:"",category_id:""}),fe=ie(""),Ae=ie(!0),Y=ie(""),Se=ie(""),it=xt(()=>{var h,m;return((m=(h=r.value)==null?void 0:h.items[0])==null?void 0:m.profile_id)??""}),_t=xt(()=>{var h,m;return((m=(h=r.value)==null?void 0:h.items[0])==null?void 0:m.name)??t.noProfile}),mt=xt(()=>{var m;const h=(m=l.value)==null?void 0:m.queue;return h?h.pending+h.running+h.failed+h.dead_letter:0}),Pt=xt(()=>{var h;return((h=A.value)==null?void 0:h.items.filter(m=>m.recognition_status!=="confirmed").length)??0}),es=xt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[n.value]);Ki(ce);async function ce(){var h;Ae.value=!0,Se.value="";try{const[m,L,$,B,se,le,me,ve,$e,at,de]=await Promise.all([ue(V.uiBootstrap),ue(V.dashboardSummary),ue(V.profiles,{page:1,page_size:20}),ue(V.jobs,{page:1,page_size:20}),ue(V.settingsSchema),ue(V.settingsCurrent),ue(V.storageStatus),ue(V.materialCategories),ue(V.materials,{page:1,page_size:24}),ue(V.apiDiscoveryDialects),ue(V.apiDiscoveryCapabilities)]);i.value=m,l.value=L,r.value=$,o.value=B,c.value=se,p.value=le,ke(le.config),d.value=me,v.value=ve,A.value=$e,U.value=at,F.value=de,await Je((h=$.items[0])==null?void 0:h.profile_id),await te()}catch(m){Se.value=m instanceof Error?m.message:t.loadFailed}finally{Ae.value=!1}}async function te(){const[h,m,L,$,B]=await Promise.allSettled([ue(V.generationLogs,{limit:12}),ue(V.workflowLogs,{limit:12}),ue(V.errorLogs,{limit:12}),ue(V.integrationLogs,{limit:12}),ue(V.auditLogs,{limit:12})]);N.value={generation:W(h),workflows:W(m),errors:W(L),integrations:W($),audit:W(B)}}function W(h){return h.status==="fulfilled"?h.value:[]}async function Je(h){if(!h){P.value=[];return}P.value=await ue(V.wardrobe(h))}async function oe(h,m,L=!0){Y.value=h,Se.value="";try{const $=await m();fe.value=`${h}${t.complete}`,h===t.exportSettings&&(fe.value=`${t.exportDone}: ${!!$.redacted}`),L&&await ce()}catch($){Se.value=$ instanceof Error?$.message:`${h}${t.failed}`}finally{Y.value=""}}function Ge(h){return oe(t.retry,()=>Ce(V.jobRetry(h)))}function Pe(h){return oe(t.cancel,()=>Ce(V.jobCancel(h)))}function ts(){return oe(t.moveFailed,()=>Ce(V.jobDeadLetterMoveFailed,{limit:20}))}function Rs(){return oe(t.retryDead,()=>Ce(V.jobDeadLetterRetry,{limit:20}))}function Fs(){var m;const h=((m=U.value[0])==null?void 0:m.dialect)??"unknown";return oe(t.safeProbe,()=>Ce(V.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:h,capabilities:{supports:["text_to_image"]}}))}function ze(h,m){return oe(t.discovery,()=>Ce(V.apiDiscoveryManualOverride,{provider_id:h.provider_id,model_id:h.model_id,dialect:h.dialect,status:m,capabilities:h.capabilities}))}function vt(){const h=it.value;return h?oe(t.matchWardrobe,async()=>(Q.value=await Ce(V.wardrobeMatch(h),{tags:["daily"]}),Q.value),!1):Promise.resolve()}function Mt(){return oe(t.reload,async()=>{var m;const h=await Ce(V.settingsReload);return p.value={config_path:((m=p.value)==null?void 0:m.config_path)??"***PATH***",config:h.config},ke(h.config),h},!1)}function ss(){return oe(t.exportSettings,()=>ue(V.settingsExport),!1)}function ke(h=(m=>(m=p.value)==null?void 0:m.config)()??{}){K.value=JSON.stringify(h,null,2),R.value=null,ee.value=null}function ns(){try{const h=JSON.parse(K.value);if(!h||Array.isArray(h)||typeof h!="object")throw new Error(t.settingsDraftInvalid);return h}catch(h){throw new Error(h instanceof Error?h.message:t.settingsDraftInvalid)}}function a(){return oe(t.validate,async()=>(R.value=await Ce(V.settingsValidate,{config:ns()}),R.value),!1)}function f(){return oe(t.diff,async()=>(ee.value=await Ce(V.settingsDiff,{config:ns()}),ee.value),!1)}function _(){return oe(t.save,async()=>{var m;const h=await Ce(V.settingsSave,{config:ns()});return p.value={config_path:((m=p.value)==null?void 0:m.config_path)??"***PATH***",config:h.config},ke(h.config),fe.value=t.settingsSaved,h},!1)}function S(){var m,L;const h=(L=(m=A.value)==null?void 0:m.items.find($=>{var B;return(B=$.image_uri)==null?void 0:B.startsWith("storage://")}))==null?void 0:L.image_uri;return h?oe(t.signMaterial,async()=>(H.value=await ue(V.mediaSign,{uri:h}),H.value),!1):(fe.value=t.noSignableMaterial,Promise.resolve())}function x(){z.value={display_name:"",image_uri:"",tags:"",category_id:""}}function b(){return oe(t.create,async()=>{const h=await Ce(V.materials,{display_name:z.value.display_name,image_uri:z.value.image_uri||void 0,thumbnail_uri:z.value.image_uri||void 0,category_id:z.value.category_id||void 0,tags:y(z.value.tags),recognition_status:z.value.image_uri?"pending_recognition":"pending_upload"});return x(),fe.value=t.materialCreated,h})}function T(h){return oe(t.recognize,()=>Ce(V.materialRecognize(h)))}function E(h){return oe(t.confirm,()=>Ce(V.materialConfirm(h.material_id),{display_name:h.display_name,prompt:h.prompt,negative_prompt:h.negative_prompt,tags:h.tags}))}function C(h){return oe(t.archive,async()=>{const m=await wn(V.material(h),{method:"DELETE"});return fe.value=t.materialArchived,m})}function y(h){return h.split(",").map(m=>m.trim()).filter(Boolean)}function I(h=0){return h<1024?`${h} B`:h<1024*1024?`${(h/1024).toFixed(1)} KB`:h<1024*1024*1024?`${(h/1024/1024).toFixed(1)} MB`:`${(h/1024/1024/1024).toFixed(1)} GB`}function O(h){var m,L;return((L=(m=d.value)==null?void 0:m.roots.find($=>$.uri_prefix===h))==null?void 0:L.bytes)??0}return(h,m)=>{var L,$,B,se,le,me,ve,$e,at,de,Te,Dt,It,Sn,Cn,En,Tn,On,An,Pn,Mn,Dn;return M(),D("main",zo,[u("aside",Yo,[u("div",Xo,[u("strong",null,g(((L=i.value)==null?void 0:L.display_name)??"ImageStudio"),1),u("span",null,g((($=i.value)==null?void 0:$.dashboard_user)??"AstrBot"),1)]),u("nav",null,[(M(),D(ne,null,be(s,w=>u("button",{key:w.key,type:"button",class:Ts({active:n.value===w.key}),onClick:lt=>n.value=w.key},g(w.label),11,Zo)),64))])]),u("section",Qo,[u("header",ea,[u("div",null,[u("h1",null,g(es.value),1),u("p",null,g(((B=l.value)==null?void 0:B.plugin_status)??"loading")+" / "+g(fe.value||t.waiting),1)]),u("div",ta,[u("button",{type:"button",disabled:!!Y.value,onClick:ce},g(Y.value||t.refresh),9,sa)])]),Se.value?(M(),D("section",na,g(Se.value),1)):Ae.value?(M(),D("section",ia,g(t.loading),1)):(M(),D(ne,{key:2},[n.value==="dashboard"?(M(),D("section",la,[u("article",null,[u("span",null,g(t.profiles),1),u("strong",null,g(((se=l.value)==null?void 0:se.active_profiles)??0),1)]),u("article",null,[u("span",null,g(t.jobs),1),u("strong",null,g(mt.value),1)]),u("article",null,[u("span",null,g(t.materials),1),u("strong",null,g(((le=A.value)==null?void 0:le.total)??0),1)]),u("article",null,[u("span",null,g(t.storage),1),u("strong",null,g(I(((me=d.value)==null?void 0:me.total_bytes)??((ve=l.value)==null?void 0:ve.storage.total_bytes))),1)])])):re("",!0),n.value==="profiles"?(M(),D("section",ra,[u("header",null,[u("h2",null,g(t.profileList),1),u("span",null,g((($e=r.value)==null?void 0:$e.total)??0),1)]),u("ul",null,[(M(!0),D(ne,null,be(((at=r.value)==null?void 0:at.items)??[],w=>(M(),D("li",{key:w.profile_id},[u("div",null,[u("strong",null,g(w.name),1),u("small",null,g(w.profile_id),1)]),u("span",oa,g(w.status),1)]))),128)),(de=r.value)!=null&&de.items.length?re("",!0):(M(),D("li",aa,g(t.emptyProfiles),1))])])):re("",!0),n.value==="materials"?(M(),D("section",ca,[u("div",ua,[u("header",null,[u("h2",null,g(t.categories),1),u("span",null,g(v.value.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(v.value,w=>(M(),D("li",{key:w.category_id},[u("div",null,[u("strong",null,g(w.name),1),u("small",null,g(w.category_type),1)]),u("span",null,g(w.sort_order),1)]))),128)),v.value.length?re("",!0):(M(),D("li",fa,g(t.emptyCategories),1))])]),u("div",da,[u("header",null,[u("h2",null,g(t.materialItems),1),u("div",ha,[u("span",null,g(Pt.value)+" "+g(t.pendingConfirm),1),u("button",{type:"button",disabled:!!Y.value,onClick:S},g(t.signFirstImage),9,pa)])]),u("div",ga,[u("label",null,[u("span",null,g(t.name),1),Ft(u("input",{"onUpdate:modelValue":m[0]||(m[0]=w=>z.value.display_name=w),type:"text"},null,512),[[os,z.value.display_name]])]),u("label",null,[u("span",null,g(t.imageUri),1),Ft(u("input",{"onUpdate:modelValue":m[1]||(m[1]=w=>z.value.image_uri=w),type:"text",placeholder:"storage://materials/example.png"},null,512),[[os,z.value.image_uri]])]),u("label",null,[u("span",null,g(t.category),1),Ft(u("select",{"onUpdate:modelValue":m[2]||(m[2]=w=>z.value.category_id=w)},[u("option",_a,g(t.allCategories),1),(M(!0),D(ne,null,be(v.value,w=>(M(),D("option",{key:w.category_id,value:w.category_id},g(w.name),9,ma))),128))],512),[[Bo,z.value.category_id]])]),u("label",null,[u("span",null,g(t.tags),1),Ft(u("input",{"onUpdate:modelValue":m[3]||(m[3]=w=>z.value.tags=w),type:"text",placeholder:"daily, top"},null,512),[[os,z.value.tags]])]),u("button",{type:"button",disabled:!!Y.value||!z.value.display_name,onClick:b},g(t.create),9,va)]),u("ul",null,[(M(!0),D(ne,null,be(((Te=A.value)==null?void 0:Te.items)??[],w=>(M(),D("li",{key:w.material_id},[u("div",null,[u("strong",null,g(w.display_name),1),u("small",null,g(w.image_uri??t.noImage),1)]),u("div",ba,[u("span",ya,g(w.recognition_status),1),u("button",{type:"button",disabled:!!Y.value,onClick:lt=>T(w.material_id)},g(t.recognize),9,xa),u("button",{type:"button",disabled:!!Y.value||w.recognition_status==="confirmed",onClick:lt=>E(w)},g(t.confirm),9,wa),u("button",{type:"button",disabled:!!Y.value,onClick:lt=>C(w.material_id)},g(t.archive),9,Sa)])]))),128)),(Dt=A.value)!=null&&Dt.items.length?re("",!0):(M(),D("li",Ca,g(t.emptyMaterials),1))]),H.value?(M(),D("pre",Ea,g(JSON.stringify(H.value,null,2)),1)):re("",!0)])])):re("",!0),n.value==="wardrobe"?(M(),D("section",Ta,[u("header",null,[u("h2",null,g(_t.value),1),u("button",{type:"button",disabled:!it.value||!!Y.value,onClick:vt},g(t.match),9,Oa)]),u("ul",null,[(M(!0),D(ne,null,be(P.value,w=>(M(),D("li",{key:w.wardrobe_item_id},[u("div",null,[u("strong",null,g(w.wardrobe_category),1),u("small",null,g(w.material_id)+" / "+g(w.tags.join(", ")||t.noTags),1)]),u("span",null,g(w.usage_count),1)]))),128)),P.value.length?re("",!0):(M(),D("li",Aa,g(t.emptyWardrobe),1))]),Q.value?(M(),D("pre",Pa,g(JSON.stringify(Q.value,null,2)),1)):re("",!0)])):re("",!0),n.value==="jobs"?(M(),D("section",Ma,[u("header",null,[u("h2",null,g(t.jobs),1),u("div",Da,[u("button",{type:"button",disabled:!!Y.value,onClick:ts},g(t.moveFailed),9,Ia),u("button",{type:"button",disabled:!!Y.value,onClick:Rs},g(t.retryDead),9,Ra)])]),u("ul",null,[(M(!0),D(ne,null,be(((It=o.value)==null?void 0:It.items)??[],w=>(M(),D("li",{key:w.task_id},[u("div",null,[u("strong",null,g(w.task_id),1),u("small",null,g(w.task_type)+" / "+g(w.progress)+"%",1)]),u("div",Fa,[u("span",La,g(w.status),1),w.status==="failed"?(M(),D("button",{key:0,type:"button",onClick:lt=>Ge(w.task_id)},g(t.retry),9,ka)):re("",!0),w.status==="pending"?(M(),D("button",{key:1,type:"button",onClick:lt=>Pe(w.task_id)},g(t.cancel),9,$a)):re("",!0)])]))),128)),(Sn=o.value)!=null&&Sn.items.length?re("",!0):(M(),D("li",ja,g(t.emptyJobs),1))])])):re("",!0),n.value==="discovery"?(M(),D("section",Na,[u("div",Ba,[u("header",null,[u("h2",null,g(t.dialects),1),u("button",{type:"button",disabled:!!Y.value,onClick:Fs},g(t.safeProbe),9,Ha)]),u("ul",null,[(M(!0),D(ne,null,be(U.value,w=>(M(),D("li",{key:w.dialect},[u("div",null,[u("strong",null,g(w.label),1),u("small",null,g(w.capabilities.join(", ")||t.unconfirmed),1)]),u("span",null,g(w.dialect),1)]))),128))])]),u("div",Va,[u("header",null,[u("h2",null,g(t.capabilityProfiles),1),u("span",null,g(F.value.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(F.value,w=>(M(),D("li",{key:w.capability_profile_id},[u("div",null,[u("strong",null,g(w.provider_id)+" / "+g(w.model_id),1),u("small",null,g(w.dialect),1)]),u("div",Ua,[u("span",Wa,g(w.status),1),u("button",{type:"button",disabled:!!Y.value,onClick:lt=>ze(w,"confirmed_supported")},g(t.support),9,Ka),u("button",{type:"button",disabled:!!Y.value,onClick:lt=>ze(w,"confirmed_unsupported")},g(t.unsupported),9,qa),u("button",{type:"button",disabled:!!Y.value,onClick:lt=>ze(w,"unconfirmed")},g(t.unconfirmed),9,Ja)])]))),128)),F.value.length?re("",!0):(M(),D("li",Ga,g(t.emptyCapabilities),1))])])])):re("",!0),n.value==="logs"?(M(),D("section",za,[u("div",Ya,[u("div",Xa,[u("header",null,[u("h2",null,g(t.generationLogs),1),u("span",null,g(N.value.generation.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(N.value.generation,w=>(M(),D("li",{key:w.task_id},[u("div",null,[u("strong",null,g(w.task_id),1),u("small",null,g(w.status)+" / "+g(w.progress)+"%",1)]),u("span",null,g(w.created_at),1)]))),128)),N.value.generation.length?re("",!0):(M(),D("li",Za,g(t.emptyGenerationLogs),1))])]),u("div",Qa,[u("header",null,[u("h2",null,g(t.errorLogs),1),u("span",null,g(N.value.errors.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(N.value.errors,w=>(M(),D("li",{key:`${w.source}-${w.id}`},[u("div",null,[u("strong",null,g(w.source),1),u("small",null,g(w.error_message??t.noErrorDetail),1)]),u("span",ec,g(w.status),1)]))),128)),N.value.errors.length?re("",!0):(M(),D("li",tc,g(t.emptyErrors),1))])])]),u("div",sc,[u("div",nc,[u("header",null,[u("h2",null,g(t.workflowLogs),1),u("span",null,g(N.value.workflows.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(N.value.workflows,w=>(M(),D("li",{key:w.history_id},[u("div",null,[u("strong",null,g(w.action),1),u("small",null,g(w.title??w.workflow_id),1)]),u("span",null,g(w.branch_name??"main"),1)]))),128)),N.value.workflows.length?re("",!0):(M(),D("li",ic,g(t.emptyWorkflowLogs),1))])]),u("div",lc,[u("header",null,[u("h2",null,g(t.integrationLogs),1),u("span",null,g(N.value.integrations.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(N.value.integrations,w=>(M(),D("li",{key:w.integration_log_id},[u("div",null,[u("strong",null,g(w.integration_name),1),u("small",null,g(w.action),1)]),u("span",rc,g(w.status),1)]))),128)),N.value.integrations.length?re("",!0):(M(),D("li",oc,g(t.emptyIntegrationLogs),1))])])]),u("div",ac,[u("header",null,[u("h2",null,g(t.auditLogs),1),u("span",null,g(N.value.audit.length),1)]),u("ul",null,[(M(!0),D(ne,null,be(N.value.audit,w=>(M(),D("li",{key:w.audit_id},[u("div",null,[u("strong",null,g(w.action),1),u("small",null,g(w.actor_type)+" / "+g(w.target_type)+" / "+g(w.target_id),1)]),u("span",null,g(w.created_at),1)]))),128)),N.value.audit.length?re("",!0):(M(),D("li",cc,g(t.emptyAuditLogs),1))])])])):re("",!0),n.value==="settings"?(M(),D("section",uc,[u("div",fc,[u("button",{type:"button",disabled:!!Y.value,onClick:Mt},g(t.reload),9,dc),u("button",{type:"button",disabled:!!Y.value,onClick:m[4]||(m[4]=w=>ke())},g(t.reset),9,hc),u("button",{type:"button",disabled:!!Y.value,onClick:a},g(t.validate),9,pc),u("button",{type:"button",disabled:!!Y.value,onClick:f},g(t.diff),9,gc),u("button",{type:"button",disabled:!!Y.value,onClick:_},g(t.save),9,_c),u("button",{type:"button",disabled:!!Y.value,onClick:ss},g(t.exportRedacted),9,mc)]),u("div",vc,[(M(!0),D(ne,null,be(((Cn=c.value)==null?void 0:Cn.sections)??[],w=>(M(),D("article",{key:w.key},[u("h2",null,g(w.title),1),u("span",null,g(w.fields.length),1)]))),128))]),u("section",bc,[u("header",null,[u("h2",null,g(t.settingsEditor),1),u("span",null,g(((En=p.value)==null?void 0:En.config_path)??"***PATH***"),1)]),Ft(u("textarea",{"onUpdate:modelValue":m[5]||(m[5]=w=>K.value=w),spellcheck:"false"},null,512),[[os,K.value]])]),u("div",yc,[u("div",xc,[u("header",null,[u("h2",null,g(t.validationResult),1),u("span",null,g(((Tn=R.value)==null?void 0:Tn.valid)??"-"),1)]),u("pre",null,g(JSON.stringify(R.value??{},null,2)),1)]),u("div",wc,[u("header",null,[u("h2",null,g(t.diffResult),1),u("span",null,g(((On=ee.value)==null?void 0:On.changes.length)??0),1)]),u("pre",null,g(JSON.stringify(ee.value??{},null,2)),1)])])])):re("",!0)],64))]),u("aside",Sc,[u("h2",null,g(t.running),1),u("dl",null,[u("div",null,[m[6]||(m[6]=u("dt",null,"Pending",-1)),u("dd",null,g(((An=l.value)==null?void 0:An.queue.pending)??0),1)]),u("div",null,[m[7]||(m[7]=u("dt",null,"Running",-1)),u("dd",null,g(((Pn=l.value)==null?void 0:Pn.queue.running)??0),1)]),u("div",null,[m[8]||(m[8]=u("dt",null,"Failed",-1)),u("dd",null,g(((Mn=l.value)==null?void 0:Mn.queue.failed)??0),1)]),u("div",null,[m[9]||(m[9]=u("dt",null,"Dead",-1)),u("dd",null,g(((Dn=l.value)==null?void 0:Dn.queue.dead_letter)??0),1)])]),u("h2",null,g(t.storage),1),u("dl",null,[u("div",null,[m[10]||(m[10]=u("dt",null,"Images",-1)),u("dd",null,g(I(O("storage://images/"))),1)]),u("div",null,[m[11]||(m[11]=u("dt",null,"Materials",-1)),u("dd",null,g(I(O("storage://materials/"))),1)])])])])}}}),Ec=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Tc=Ec(Cc,[["__scopeId","data-v-659948fb"]]);Uo(Tc).mount("#app"); diff --git a/web/assets/index-CRHbO3Gr.css b/web/assets/index-CRHbO3Gr.css deleted file mode 100644 index 438139e..0000000 --- a/web/assets/index-CRHbO3Gr.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-659948fb]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-659948fb],.inspector[data-v-659948fb]{background:#fff}.sidebar[data-v-659948fb]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-659948fb]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-659948fb]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-659948fb]{font-size:19px}.brand span[data-v-659948fb],p[data-v-659948fb],dt[data-v-659948fb],.empty[data-v-659948fb],small[data-v-659948fb]{color:#667085}nav[data-v-659948fb]{display:grid;gap:6px}button[data-v-659948fb]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-659948fb]:disabled{cursor:wait;opacity:.62}nav button[data-v-659948fb]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-659948fb]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-659948fb]{min-width:0;padding:24px}.topbar[data-v-659948fb],.list-view header[data-v-659948fb],.toolbar[data-v-659948fb],.inline-actions[data-v-659948fb]{display:flex;gap:12px;align-items:center}.topbar[data-v-659948fb],.list-view header[data-v-659948fb]{justify-content:space-between}.actions[data-v-659948fb],.inline-actions[data-v-659948fb]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-659948fb],.toolbar button[data-v-659948fb],.list-view header button[data-v-659948fb],.inline-actions button[data-v-659948fb]{padding:0 14px}h1[data-v-659948fb],h2[data-v-659948fb],p[data-v-659948fb],dl[data-v-659948fb],dd[data-v-659948fb]{margin:0}h1[data-v-659948fb]{min-height:30px;font-size:26px}h2[data-v-659948fb]{font-size:15px}.notice[data-v-659948fb],article[data-v-659948fb],.list-view[data-v-659948fb],.editor-panel[data-v-659948fb],pre[data-v-659948fb]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-659948fb]{margin-top:18px;padding:14px}.error[data-v-659948fb]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-659948fb],.split-view[data-v-659948fb]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-659948fb]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-659948fb]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-659948fb]{display:grid;gap:8px;padding:16px}article span[data-v-659948fb]{color:#667085;font-size:13px}article strong[data-v-659948fb]{font-size:24px}.list-view[data-v-659948fb],.logs-view[data-v-659948fb],.settings-view[data-v-659948fb]{margin-top:18px}.split-view .list-view[data-v-659948fb],.logs-view .list-view[data-v-659948fb]{margin-top:0}.list-view[data-v-659948fb]{padding:16px}.editor-panel[data-v-659948fb]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-659948fb]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-659948fb]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-659948fb]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-659948fb]{display:grid;gap:5px;min-width:0}label span[data-v-659948fb]{color:#667085;font-size:12px}input[data-v-659948fb],select[data-v-659948fb]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-659948fb]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-659948fb]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-659948fb]:first-child{border-top:0}li>div[data-v-659948fb]{display:grid;gap:3px;min-width:0}li strong[data-v-659948fb],li span[data-v-659948fb],li small[data-v-659948fb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-659948fb]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-659948fb]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-659948fb]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-659948fb]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-659948fb]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-659948fb]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-659948fb]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-659948fb]{display:none}}@media(max-width:820px){.web-shell[data-v-659948fb]{grid-template-columns:1fr}.sidebar[data-v-659948fb]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-659948fb]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-659948fb]{text-align:center}.dashboard-grid[data-v-659948fb],.split-view[data-v-659948fb],.settings-sections[data-v-659948fb]{grid-template-columns:1fr}.topbar[data-v-659948fb],.list-view header[data-v-659948fb]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DJcoydnZ.js b/web/assets/index-DJcoydnZ.js new file mode 100644 index 0000000..37e56d7 --- /dev/null +++ b/web/assets/index-DJcoydnZ.js @@ -0,0 +1,17 @@ +var xl=Object.defineProperty;var Sl=(e,t,s)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var $s=(e,t,s)=>Sl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function an(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ne={},Ot=[],We=()=>{},_i=()=>!1,xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ss=e=>e.startsWith("onUpdate:"),me=Object.assign,un=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Cl=Object.prototype.hasOwnProperty,X=(e,t)=>Cl.call(e,t),$=Array.isArray,Pt=e=>Xt(e)==="[object Map]",Cs=e=>Xt(e)==="[object Set]",$n=e=>Xt(e)==="[object Date]",j=e=>typeof e=="function",fe=e=>typeof e=="string",Ke=e=>typeof e=="symbol",Q=e=>e!==null&&typeof e=="object",mi=e=>(Q(e)||j(e))&&j(e.then)&&j(e.catch),vi=Object.prototype.toString,Xt=e=>vi.call(e),El=e=>Xt(e).slice(8,-1),bi=e=>Xt(e)==="[object Object]",cn=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=an(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Es=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Tl=/-\w/g,Ie=Es(e=>e.replace(Tl,t=>t.slice(1).toUpperCase())),Ol=/\B([A-Z])/g,xt=Es(e=>e.replace(Ol,"-$1").toLowerCase()),yi=Es(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Es(e=>e?`on${yi(e)}`:""),Ue=(e,t)=>!Object.is(e,t),us=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ts=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let jn;const Os=()=>jn||(jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fn(e){if($(e)){const t={};for(let s=0;s{if(s){const n=s.split(Al);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ps(e){let t="";if(fe(e))t=e;else if($(e))for(let s=0;sZt(s,t))}const Si=e=>!!(e&&e.__v_isRef===!0),p=e=>fe(e)?e:e==null?"":$(e)||Q(e)&&(e.toString===vi||!j(e.toString))?Si(e)?p(e.value):JSON.stringify(e,Ci,2):String(e),Ci=(e,t)=>Si(t)?Ci(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[Ns(n,l)+" =>"]=i,s),{})}:Cs(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ns(s))}:Ke(t)?Ns(t):Q(t)&&!$(t)&&!bi(t)?String(t):t,Ns=(e,t="")=>{var s;return Ke(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let _e;class kl{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&&_e&&(_e.active?(this.parent=_e,this.index=(_e.scopes||(_e.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(_e===this)_e=this.prevScope;else{let t=_e;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 s,n;for(s=0,n=this.effects.length;s0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Bt;){let t=Bt;for(Bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Pi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ai(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),hn(n),jl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Mi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Mi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qt)||(e.globalVersion=qt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ys(e))))return;e.flags|=2;const t=e.dep,s=le,n=Re;le=e,Re=!0;try{Pi(e);const i=e.fn(e._value);(t.version===0||Ue(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{le=s,Re=n,Ai(e),e.flags&=-3}}function hn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)hn(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function jl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Di=[];function qe(){Di.push(Re),Re=!1}function Je(){const e=Di.pop();Re=e===void 0?!0:e}function Nn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=le;le=void 0;try{t()}finally{le=s}}}let qt=0;class Nl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class gn{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(!le||!Re||le===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==le)s=this.activeLink=new Nl(le,this),le.deps?(s.prevDep=le.depsTail,le.depsTail.nextDep=s,le.depsTail=s):le.deps=le.depsTail=s,Ii(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=le.depsTail,s.nextDep=void 0,le.depsTail.nextDep=s,le.depsTail=s,le.deps===s&&(le.deps=n)}return s}trigger(t){this.version++,qt++,this.notify(t)}notify(t){dn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{pn()}}}function Ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Ii(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Xs=new WeakMap,yt=Symbol(""),Zs=Symbol(""),Jt=Symbol("");function be(e,t,s){if(Re&&le){let n=Xs.get(e);n||Xs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new gn),i.map=n,i.key=s),i.track()}}function et(e,t,s,n,i,l){const r=Xs.get(e);if(!r){qt++;return}const o=c=>{c&&c.trigger()};if(dn(),t==="clear")r.forEach(o);else{const c=$(e),h=c&&cn(s);if(c&&s==="length"){const d=Number(n);r.forEach((v,P)=>{(P==="length"||P===Jt||!Ke(P)&&P>=d)&&o(v)})}else switch((s!==void 0||r.has(void 0))&&o(r.get(s)),h&&o(r.get(Jt)),t){case"add":c?h&&o(r.get("length")):(o(r.get(yt)),Pt(e)&&o(r.get(Zs)));break;case"delete":c||(o(r.get(yt)),Pt(e)&&o(r.get(Zs)));break;case"set":Pt(e)&&o(r.get(yt));break}}pn()}function Et(e){const t=Y(e);return t===e?t:(be(t,"iterate",Jt),De(e)?t:t.map(Fe))}function As(e){return be(e=Y(e),"iterate",Jt),e}function He(e,t){return nt(e)?It(wt(e)?Fe(t):t):Fe(t)}const Bl={__proto__:null,[Symbol.iterator](){return Hs(this,Symbol.iterator,e=>He(this,e))},concat(...e){return Et(this).concat(...e.map(t=>$(t)?Et(t):t))},entries(){return Hs(this,"entries",e=>(e[1]=He(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(n=>He(this,n)),arguments)},find(e,t){return Xe(this,"find",e,t,s=>He(this,s),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,s=>He(this,s),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vs(this,"includes",e)},indexOf(...e){return Vs(this,"indexOf",e)},join(e){return Et(this).join(e)},lastIndexOf(...e){return Vs(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Lt(this,"pop")},push(...e){return Lt(this,"push",e)},reduce(e,...t){return Bn(this,"reduce",e,t)},reduceRight(e,...t){return Bn(this,"reduceRight",e,t)},shift(){return Lt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Lt(this,"splice",e)},toReversed(){return Et(this).toReversed()},toSorted(e){return Et(this).toSorted(e)},toSpliced(...e){return Et(this).toSpliced(...e)},unshift(...e){return Lt(this,"unshift",e)},values(){return Hs(this,"values",e=>He(this,e))}};function Hs(e,t,s){const n=As(e),i=n[t]();return n!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=s(l.value)),l}),i}const Hl=Array.prototype;function Xe(e,t,s,n,i,l){const r=As(e),o=r!==e&&!De(e),c=r[t];if(c!==Hl[t]){const v=c.apply(e,l);return o?Fe(v):v}let h=s;r!==e&&(o?h=function(v,P){return s.call(this,He(e,v),P,e)}:s.length>2&&(h=function(v,P){return s.call(this,v,P,e)}));const d=c.call(r,h,n);return o&&i?i(d):d}function Bn(e,t,s,n){const i=As(e),l=i!==e&&!De(e);let r=s,o=!1;i!==e&&(l?(o=n.length===0,r=function(h,d,v){return o&&(o=!1,h=He(e,h)),s.call(this,h,He(e,d),v,e)}):s.length>3&&(r=function(h,d,v){return s.call(this,h,d,v,e)}));const c=i[t](r,...n);return o?He(e,c):c}function Vs(e,t,s){const n=Y(e);be(n,"iterate",Jt);const i=n[t](...s);return(i===-1||i===!1)&&bn(s[0])?(s[0]=Y(s[0]),n[t](...s)):i}function Lt(e,t,s=[]){qe(),dn();const n=Y(e)[t].apply(e,s);return pn(),Je(),n}const Vl=an("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function Ul(e){Ke(e)||(e=String(e));const t=Y(this);return be(t,"has",e),t.hasOwnProperty(e)}class Fi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(i?l?Ql:ji:l?$i:ki).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=$(t);if(!i){let c;if(r&&(c=Bl[s]))return c;if(s==="hasOwnProperty")return Ul}const o=Reflect.get(t,s,ye(t)?t:n);if((Ke(s)?Ri.has(s):Vl(s))||(i||be(t,"get",s),l))return o;if(ye(o)){const c=r&&cn(s)?o:o.value;return i&&Q(c)?en(c):c}return Q(o)?i?en(o):mn(o):o}}class Li extends Fi{constructor(t=!1){super(!1,t)}set(t,s,n,i){let l=t[s];const r=$(t)&&cn(s);if(!this._isShallow){const h=nt(l);if(!De(n)&&!nt(n)&&(l=Y(l),n=Y(n)),!r&&ye(l)&&!ye(n))return h||(l.value=n),!0}const o=r?Number(s)e,rs=e=>Reflect.getPrototypeOf(e);function Gl(e,t,s){return function(...n){const i=this.__v_raw,l=Y(i),r=Pt(l),o=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,h=i[e](...n),d=s?Qs:t?It:Fe;return!t&&be(l,"iterate",c?Zs:yt),me(Object.create(h),{next(){const{value:v,done:P}=h.next();return P?{value:v,done:P}:{value:o?[d(v[0]),d(v[1])]:d(v),done:P}}})}}function os(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(e,t){const s={get(i){const l=this.__v_raw,r=Y(l),o=Y(i);e||(Ue(i,o)&&be(r,"get",i),be(r,"get",o));const{has:c}=rs(r),h=t?Qs:e?It:Fe;if(c.call(r,i))return h(l.get(i));if(c.call(r,o))return h(l.get(o));l!==r&&l.get(i)},get size(){const i=this.__v_raw;return!e&&be(Y(i),"iterate",yt),i.size},has(i){const l=this.__v_raw,r=Y(l),o=Y(i);return e||(Ue(i,o)&&be(r,"has",i),be(r,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const r=this,o=r.__v_raw,c=Y(o),h=t?Qs:e?It:Fe;return!e&&be(c,"iterate",yt),o.forEach((d,v)=>i.call(l,h(d),h(v),r))}};return me(s,e?{add:os("add"),set:os("set"),delete:os("delete"),clear:os("clear")}:{add(i){const l=Y(this),r=rs(l),o=Y(i),c=!t&&!De(i)&&!nt(i)?o:i;return r.has.call(l,c)||Ue(i,c)&&r.has.call(l,i)||Ue(o,c)&&r.has.call(l,o)||(l.add(c),et(l,"add",c,c)),this},set(i,l){!t&&!De(l)&&!nt(l)&&(l=Y(l));const r=Y(this),{has:o,get:c}=rs(r);let h=o.call(r,i);h||(i=Y(i),h=o.call(r,i));const d=c.call(r,i);return r.set(i,l),h?Ue(l,d)&&et(r,"set",i,l):et(r,"add",i,l),this},delete(i){const l=Y(this),{has:r,get:o}=rs(l);let c=r.call(l,i);c||(i=Y(i),c=r.call(l,i)),o&&o.call(l,i);const h=l.delete(i);return c&&et(l,"delete",i,void 0),h},clear(){const i=Y(this),l=i.size!==0,r=i.clear();return l&&et(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Gl(i,e,t)}),s}function _n(e,t){const s=zl(e,t);return(n,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(X(s,i)&&i in n?s:n,i,l)}const Yl={get:_n(!1,!1)},Xl={get:_n(!1,!0)},Zl={get:_n(!0,!1)};const ki=new WeakMap,$i=new WeakMap,ji=new WeakMap,Ql=new WeakMap;function er(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mn(e){return nt(e)?e:vn(e,!1,Kl,Yl,ki)}function tr(e){return vn(e,!1,Jl,Xl,$i)}function en(e){return vn(e,!0,ql,Zl,ji)}function vn(e,t,s,n,i){if(!Q(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=i.get(e);if(l)return l;const r=er(El(e));if(r===0)return e;const o=new Proxy(e,r===2?n:s);return i.set(e,o),o}function wt(e){return nt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function bn(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function sr(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&wi(e,"__v_skip",!0),e}const Fe=e=>Q(e)?mn(e):e,It=e=>Q(e)?en(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function ue(e){return nr(e,!1)}function nr(e,t){return ye(e)?e:new ir(e,t)}class ir{constructor(t,s){this.dep=new gn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Y(t),this._value=s?t:Fe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||De(t)||nt(t);t=n?t:Y(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function lr(e){return ye(e)?e.value:e}const rr={get:(e,t,s)=>t==="__v_raw"?e:lr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ye(i)&&!ye(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ni(e){return wt(e)?e:new Proxy(e,rr)}class or{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&le!==this)return Oi(this,!0),!0}get value(){const t=this.dep.track();return Mi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ar(e,t,s=!1){let n,i;return j(e)?n=e:(n=e.get,i=e.set),new or(n,i,s)}const as={},ds=new WeakMap;let mt;function ur(e,t=!1,s=mt){if(s){let n=ds.get(s);n||ds.set(s,n=[]),n.push(e)}}function cr(e,t,s=ne){const{immediate:n,deep:i,once:l,scheduler:r,augmentJob:o,call:c}=s,h=R=>i?R:De(R)||i===!1||i===0?tt(R,1):tt(R);let d,v,P,A,U=!1,L=!1;if(ye(e)?(v=()=>e.value,U=De(e)):wt(e)?(v=()=>h(e),U=!0):$(e)?(L=!0,U=e.some(R=>wt(R)||De(R)),v=()=>e.map(R=>{if(ye(R))return R.value;if(wt(R))return h(R);if(j(R))return c?c(R,2):R()})):j(e)?t?v=c?()=>c(e,2):e:v=()=>{if(P){qe();try{P()}finally{Je()}}const R=mt;mt=d;try{return c?c(e,3,[A]):e(A)}finally{mt=R}}:v=We,t&&i){const R=v,oe=i===!0?1/0:i;v=()=>tt(R(),oe)}const re=$l(),N=()=>{d.stop(),re&&re.active&&un(re.effects,d)};if(l&&t){const R=t;t=(...oe)=>{const ee=R(...oe);return N(),ee}}let B=L?new Array(e.length).fill(as):as;const J=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(t){const oe=d.run();if(R||i||U||(L?oe.some((ee,Z)=>Ue(ee,B[Z])):Ue(oe,B))){P&&P();const ee=mt;mt=d;try{const Z=[oe,B===as?void 0:L&&B[0]===as?[]:B,A];B=oe,c?c(t,3,Z):t(...Z)}finally{mt=ee}}}else d.run()};return o&&o(J),d=new Ei(v),d.scheduler=r?()=>r(J,!1):J,A=R=>ur(R,!1,d),P=d.onStop=()=>{const R=ds.get(d);if(R){if(c)c(R,4);else for(const oe of R)oe();ds.delete(d)}},t?n?J(!0):B=d.run():r?r(J.bind(null,!0),!0):d.run(),N.pause=d.pause.bind(d),N.resume=d.resume.bind(d),N.stop=N,N}function tt(e,t=1/0,s){if(t<=0||!Q(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ye(e))tt(e.value,t,s);else if($(e))for(let n=0;n{tt(n,t,s)});else if(bi(e)){for(const n in e)tt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&tt(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Qt(e,t,s,n){try{return n?e(...n):e()}catch(i){Ms(i,t,s)}}function Le(e,t,s,n){if(j(e)){const i=Qt(e,t,s,n);return i&&mi(i)&&i.catch(l=>{Ms(l,t,s)}),i}if($(e)){const i=[];for(let l=0;l>>1,i=Ee[n],l=Gt(i);l=Gt(s)?Ee.push(e):Ee.splice(dr(t),0,e),e.flags|=1,Vi()}}function Vi(){ps||(ps=Bi.then(Wi))}function pr(e){$(e)?At.push(...e):ot&&e.id===-1?ot.splice(Tt+1,0,e):e.flags&1||(At.push(e),e.flags|=1),Vi()}function Hn(e,t,s=Be+1){for(;sGt(s)-Gt(n));if(At.length=0,ot){ot.push(...t);return}for(ot=t,Tt=0;Tte.id==null?e.flags&2?-1:1/0:e.id;function Wi(e){try{for(Be=0;Be{n._d&&Zn(-1);const l=hs(t);let r;try{r=e(...i)}finally{hs(l),n._d&&Zn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function je(e,t){if(Me===null)return e;const s=Fs(Me),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&j(t)?t.call(n&&n.proxy):t}}const _r=Symbol.for("v-scx"),mr=()=>cs(_r);function Us(e,t,s){return qi(e,t,s)}function qi(e,t,s=ne){const{immediate:n,deep:i,flush:l,once:r}=s,o=me({},s),c=t&&n||!t&&l!=="post";let h;if(Yt){if(l==="sync"){const A=mr();h=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=We,A.resume=We,A.pause=We,A}}const d=Te;o.call=(A,U,L)=>Le(A,d,U,L);let v=!1;l==="post"?o.scheduler=A=>{Oe(A,d&&d.suspense)}:l!=="sync"&&(v=!0,o.scheduler=(A,U)=>{U?A():yn(A)}),o.augmentJob=A=>{t&&(A.flags|=4),v&&(A.flags|=2,d&&(A.id=d.uid,A.i=d))};const P=cr(e,t,o);return Yt&&(h?h.push(P):c&&P()),P}function vr(e,t,s){const n=this.proxy,i=fe(e)?e.includes(".")?Ji(n,e):()=>n[e]:e.bind(n,n);let l;j(t)?l=t:(l=t.handler,s=t);const r=es(this),o=qi(i,l.bind(n),s);return r(),o}function Ji(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Ws=Symbol("_leaveCb");function wn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,wn(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 wr(e,t){return j(e)?me({name:e.name},t,{setup:e}):e}function Gi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const gs=new WeakMap;function Vt(e,t,s,n,i=!1){if($(e)){e.forEach((L,re)=>Vt(L,t&&($(t)?t[re]:t),s,n,i));return}if(Ut(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vt(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?Fs(n.component):n.el,r=i?null:l,{i:o,r:c}=e,h=t&&t.r,d=o.refs===ne?o.refs={}:o.refs,v=o.setupState,P=Y(v),A=v===ne?_i:L=>Vn(d,L)?!1:X(P,L),U=(L,re)=>!(re&&Vn(d,re));if(h!=null&&h!==c){if(Un(t),fe(h))d[h]=null,A(h)&&(v[h]=null);else if(ye(h)){const L=t;U(h,L.k)&&(h.value=null),L.k&&(d[L.k]=null)}}if(j(c)){qe();try{Qt(c,o,12,[r,d])}finally{Je()}}else{const L=fe(c),re=ye(c);if(L||re){const N=()=>{if(e.f){const B=L?A(c)?v[c]:d[c]:U()||!e.k?c.value:d[e.k];if(i)$(B)&&un(B,l);else if($(B))B.includes(l)||B.push(l);else if(L)d[c]=[l],A(c)&&(v[c]=d[c]);else{const J=[l];U(c,e.k)&&(c.value=J),e.k&&(d[e.k]=J)}}else L?(d[c]=r,A(c)&&(v[c]=r)):re&&(U(c,e.k)&&(c.value=r),e.k&&(d[e.k]=r))};if(r){const B=()=>{N(),gs.delete(e)};B.id=-1,gs.set(e,B),Oe(B,s)}else Un(e),N()}}}function Un(e){const t=gs.get(e);t&&(t.flags|=8,gs.delete(e))}Os().requestIdleCallback;Os().cancelIdleCallback;const Ut=e=>!!e.type.__asyncLoader,zi=e=>e.type.__isKeepAlive;function xr(e,t){Yi(e,"a",t)}function Sr(e,t){Yi(e,"da",t)}function Yi(e,t,s=Te){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ds(t,n,s),s){let i=s.parent;for(;i&&i.parent;)zi(i.parent.vnode)&&Cr(n,t,s,i),i=i.parent}}function Cr(e,t,s,n){const i=Ds(t,e,n,!0);Zi(()=>{un(n[t],i)},s)}function Ds(e,t,s=Te,n=!1){if(s){const i=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...r)=>{qe();const o=es(s),c=Le(t,s,e,r);return o(),Je(),c});return n?i.unshift(l):i.push(l),l}}const it=e=>(t,s=Te)=>{(!Yt||e==="sp")&&Ds(e,(...n)=>t(...n),s)},Er=it("bm"),Xi=it("m"),Tr=it("bu"),Or=it("u"),Pr=it("bum"),Zi=it("um"),Ar=it("sp"),Mr=it("rtg"),Dr=it("rtc");function Ir(e,t=Te){Ds("ec",e,t)}const Rr=Symbol.for("v-ndc");function ve(e,t,s,n){let i;const l=s,r=$(e);if(r||fe(e)){const o=r&&wt(e);let c=!1,h=!1;o&&(c=!De(e),h=nt(e),e=As(e)),i=new Array(e.length);for(let d=0,v=e.length;dt(o,c,void 0,l));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,h=o.length;ce?bl(e)?Fs(e):tn(e.parent):null,Wt=me(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=>el(e),$forceUpdate:e=>e.f||(e.f=()=>{yn(e.update)}),$nextTick:e=>e.n||(e.n=Hi.bind(e.proxy)),$watch:e=>vr.bind(e)}),Ks=(e,t)=>e!==ne&&!e.__isScriptSetup&&X(e,t),Fr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:l,accessCache:r,type:o,appContext:c}=e;if(t[0]!=="$"){const P=r[t];if(P!==void 0)switch(P){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return l[t]}else{if(Ks(n,t))return r[t]=1,n[t];if(i!==ne&&X(i,t))return r[t]=2,i[t];if(X(l,t))return r[t]=3,l[t];if(s!==ne&&X(s,t))return r[t]=4,s[t];sn&&(r[t]=0)}}const h=Wt[t];let d,v;if(h)return t==="$attrs"&&be(e.attrs,"get",""),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(s!==ne&&X(s,t))return r[t]=4,s[t];if(v=c.config.globalProperties,X(v,t))return v[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:l}=e;return Ks(i,t)?(i[t]=s,!0):n!==ne&&X(n,t)?(n[t]=s,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:l,type:r}},o){let c;return!!(s[o]||e!==ne&&o[0]!=="$"&&X(e,o)||Ks(t,o)||X(l,o)||X(n,o)||X(Wt,o)||X(i.config.globalProperties,o)||(c=r.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:X(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Wn(e){return $(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sn=!0;function Lr(e){const t=el(e),s=e.proxy,n=e.ctx;sn=!1,t.beforeCreate&&Kn(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:r,watch:o,provide:c,inject:h,created:d,beforeMount:v,mounted:P,beforeUpdate:A,updated:U,activated:L,deactivated:re,beforeDestroy:N,beforeUnmount:B,destroyed:J,unmounted:R,render:oe,renderTracked:ee,renderTriggered:Z,errorCaptured:he,serverPrefetch:lt,expose:W,inheritAttrs:Ae,components:ke,directives:St,filters:Ft}=t;if(h&&kr(h,n,null),r)for(const ae in r){const G=r[ae];j(G)&&(n[ae]=G.bind(s))}if(i){const ae=i.call(s,s);Q(ae)&&(e.data=mn(ae))}if(sn=!0,l)for(const ae in l){const G=l[ae],Ge=j(G)?G.bind(s,s):j(G.get)?G.get.bind(s,s):We,$e=!j(G)&&j(G.set)?G.set.bind(s):We,ze=vt({get:Ge,set:$e});Object.defineProperty(n,ae,{enumerable:!0,configurable:!0,get:()=>ze.value,set:z=>ze.value=z})}if(o)for(const ae in o)Qi(o[ae],n,s,ae);if(c){const ae=j(c)?c.call(s):c;Reflect.ownKeys(ae).forEach(G=>{gr(G,ae[G])})}d&&Kn(d,e,"c");function ge(ae,G){$(G)?G.forEach(Ge=>ae(Ge.bind(s))):G&&ae(G.bind(s))}if(ge(Er,v),ge(Xi,P),ge(Tr,A),ge(Or,U),ge(xr,L),ge(Sr,re),ge(Ir,he),ge(Dr,ee),ge(Mr,Z),ge(Pr,B),ge(Zi,R),ge(Ar,lt),$(W))if(W.length){const ae=e.exposed||(e.exposed={});W.forEach(G=>{Object.defineProperty(ae,G,{get:()=>s[G],set:Ge=>s[G]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});oe&&e.render===We&&(e.render=oe),Ae!=null&&(e.inheritAttrs=Ae),ke&&(e.components=ke),St&&(e.directives=St),lt&&Gi(e)}function kr(e,t,s=We){$(e)&&(e=nn(e));for(const n in e){const i=e[n];let l;Q(i)?"default"in i?l=cs(i.from||n,i.default,!0):l=cs(i.from||n):l=cs(i),ye(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[n]=l}}function Kn(e,t,s){Le($(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Qi(e,t,s,n){let i=n.includes(".")?Ji(s,n):()=>s[n];if(fe(e)){const l=t[e];j(l)&&Us(i,l)}else if(j(e))Us(i,e.bind(s));else if(Q(e))if($(e))e.forEach(l=>Qi(l,t,s,n));else{const l=j(e.handler)?e.handler.bind(s):t[e.handler];j(l)&&Us(i,l,e)}}function el(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,o=l.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>_s(c,h,r,!0)),_s(c,t,r)),Q(t)&&l.set(t,c),c}function _s(e,t,s,n=!1){const{mixins:i,extends:l}=t;l&&_s(e,l,s,!0),i&&i.forEach(r=>_s(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const o=$r[r]||s&&s[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const $r={data:qn,props:Jn,emits:Jn,methods:$t,computed:$t,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:$t,directives:$t,watch:Nr,provide:qn,inject:jr};function qn(e,t){return t?e?function(){return me(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function jr(e,t){return $t(nn(e),nn(t))}function nn(e){if($(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${xt(t)}Modifiers`];function Ur(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ne;let i=s;const l=t.startsWith("update:"),r=l&&Vr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>fe(d)?d.trim():d)),r.number&&(i=s.map(Ts)));let o,c=n[o=js(t)]||n[o=js(Ie(t))];!c&&l&&(c=n[o=js(xt(t))]),c&&Le(c,e,6,i);const h=n[o+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Le(h,e,6,i)}}const Wr=new WeakMap;function sl(e,t,s=!1){const n=s?Wr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const l=e.emits;let r={},o=!1;if(!j(e)){const c=h=>{const d=sl(h,t,!0);d&&(o=!0,me(r,d))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(Q(e)&&n.set(e,null),null):($(l)?l.forEach(c=>r[c]=null):me(r,l),Q(e)&&n.set(e,r),r)}function Is(e,t){return!e||!xs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,xt(t))||X(e,t))}function Gn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[l],slots:r,attrs:o,emit:c,render:h,renderCache:d,props:v,data:P,setupState:A,ctx:U,inheritAttrs:L}=e,re=hs(e);let N,B;try{if(s.shapeFlag&4){const R=i||n,oe=R;N=Ve(h.call(oe,R,d,v,A,P,U)),B=o}else{const R=t;N=Ve(R.length>1?R(v,{attrs:o,slots:r,emit:c}):R(v,null)),B=t.props?o:Kr(o)}}catch(R){Kt.length=0,Ms(R,e,1),N=st(at)}let J=N;if(B&&L!==!1){const R=Object.keys(B),{shapeFlag:oe}=J;R.length&&oe&7&&(l&&R.some(Ss)&&(B=qr(B,l)),J=Rt(J,B,!1,!0))}return s.dirs&&(J=Rt(J,null,!1,!0),J.dirs=J.dirs?J.dirs.concat(s.dirs):s.dirs),s.transition&&wn(J,s.transition),N=J,hs(re),N}const Kr=e=>{let t;for(const s in e)(s==="class"||s==="style"||xs(s))&&((t||(t={}))[s]=e[s]);return t},qr=(e,t)=>{const s={};for(const n in e)(!Ss(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Jr(e,t,s){const{props:n,children:i,component:l}=e,{props:r,children:o,patchFlag:c}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?zn(n,r,h):!!r;if(c&8){const d=t.dynamicProps;for(let v=0;vObject.create(il),rl=e=>Object.getPrototypeOf(e)===il;function zr(e,t,s,n=!1){const i={},l=ll();e.propsDefaults=Object.create(null),ol(e,t,i,l);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:tr(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Yr(e,t,s,n){const{props:i,attrs:l,vnode:{patchFlag:r}}=e,o=Y(i),[c]=e.propsOptions;let h=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let v=0;v{c=!0;const[P,A]=al(v,t,!0);me(r,P),A&&o.push(...A)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return Q(e)&&n.set(e,Ot),Ot;if($(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Sn=e=>$(e)?e.map(Ve):[Ve(e)],Zr=(e,t,s)=>{if(t._n)return t;const n=hr((...i)=>Sn(t(...i)),s);return n._c=!1,n},ul=(e,t,s)=>{const n=e._ctx;for(const i in e){if(xn(i))continue;const l=e[i];if(j(l))t[i]=Zr(i,l,n);else if(l!=null){const r=Sn(l);t[i]=()=>r}}},cl=(e,t)=>{const s=Sn(t);e.slots.default=()=>s},fl=(e,t,s)=>{for(const n in t)(s||!xn(n))&&(e[n]=t[n])},Qr=(e,t,s)=>{const n=e.slots=ll();if(e.vnode.shapeFlag&32){const i=t._;i?(fl(n,t,s),s&&wi(n,"_",i,!0)):ul(t,n)}else t&&cl(e,t)},eo=(e,t,s)=>{const{vnode:n,slots:i}=e;let l=!0,r=ne;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:fl(i,t,s):(l=!t.$stable,ul(t,i)),r=t}else t&&(cl(e,t),r={default:1});if(l)for(const o in i)!xn(o)&&r[o]==null&&delete i[o]},Oe=lo;function to(e){return so(e)}function so(e,t){const s=Os();s.__VUE__=!0;const{insert:n,remove:i,patchProp:l,createElement:r,createText:o,createComment:c,setText:h,setElementText:d,parentNode:v,nextSibling:P,setScopeId:A=We,insertStaticContent:U}=e,L=(u,f,g,S=null,b=null,y=null,T=void 0,E=null,C=!!f.dynamicChildren)=>{if(u===f)return;u&&!kt(u,f)&&(S=Ct(u),z(u,b,y,!0),u=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:w,ref:F,shapeFlag:O}=f;switch(w){case Rs:re(u,f,g,S);break;case at:N(u,f,g,S);break;case Js:u==null&&B(f,g,S,T);break;case ie:ke(u,f,g,S,b,y,T,E,C);break;default:O&1?oe(u,f,g,S,b,y,T,E,C):O&6?St(u,f,g,S,b,y,T,E,C):(O&64||O&128)&&w.process(u,f,g,S,b,y,T,E,C,ft)}F!=null&&b?Vt(F,u&&u.ref,y,f||u,!f):F==null&&u&&u.ref!=null&&Vt(u.ref,null,y,u,!0)},re=(u,f,g,S)=>{if(u==null)n(f.el=o(f.children),g,S);else{const b=f.el=u.el;f.children!==u.children&&h(b,f.children)}},N=(u,f,g,S)=>{u==null?n(f.el=c(f.children||""),g,S):f.el=u.el},B=(u,f,g,S)=>{[u.el,u.anchor]=U(u.children,f,g,S,u.el,u.anchor)},J=({el:u,anchor:f},g,S)=>{let b;for(;u&&u!==f;)b=P(u),n(u,g,S),u=b;n(f,g,S)},R=({el:u,anchor:f})=>{let g;for(;u&&u!==f;)g=P(u),i(u),u=g;i(f)},oe=(u,f,g,S,b,y,T,E,C)=>{if(f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),u==null)ee(f,g,S,b,y,T,E,C);else{const w=u.el&&u.el._isVueCE?u.el:null;try{w&&w._beginPatch(),lt(u,f,b,y,T,E,C)}finally{w&&w._endPatch()}}},ee=(u,f,g,S,b,y,T,E)=>{let C,w;const{props:F,shapeFlag:O,transition:I,dirs:k}=u;if(C=u.el=r(u.type,y,F&&F.is,F),O&8?d(C,u.children):O&16&&he(u.children,C,null,S,b,qs(u,y),T,E),k&>(u,null,S,"created"),Z(C,u,u.scopeId,T,S),F){for(const K in F)K!=="value"&&!Nt(K)&&l(C,K,null,F[K],y,S);"value"in F&&l(C,"value",null,F.value,y),(w=F.onVnodeBeforeMount)&&Ne(w,S,u)}k&>(u,null,S,"beforeMount");const H=no(b,I);H&&I.beforeEnter(C),n(C,f,g),((w=F&&F.onVnodeMounted)||H||k)&&Oe(()=>{try{w&&Ne(w,S,u),H&&I.enter(C),k&>(u,null,S,"mounted")}finally{}},b)},Z=(u,f,g,S,b)=>{if(g&&A(u,g),S)for(let y=0;y{for(let w=C;w{const E=f.el=u.el;let{patchFlag:C,dynamicChildren:w,dirs:F}=f;C|=u.patchFlag&16;const O=u.props||ne,I=f.props||ne;let k;if(g&&_t(g,!1),(k=I.onVnodeBeforeUpdate)&&Ne(k,g,f,u),F&>(f,u,g,"beforeUpdate"),g&&_t(g,!0),w&&(!u.dynamicChildren||u.dynamicChildren.length!==w.length)&&(C=0,T=!1,w=null),(O.innerHTML&&I.innerHTML==null||O.textContent&&I.textContent==null)&&d(E,""),w?W(u.dynamicChildren,w,E,g,S,qs(f,b),y):T||G(u,f,E,null,g,S,qs(f,b),y,!1),C>0){if(C&16)Ae(E,O,I,g,b);else if(C&2&&O.class!==I.class&&l(E,"class",null,I.class,b),C&4&&l(E,"style",O.style,I.style,b),C&8){const H=f.dynamicProps;for(let K=0;K{k&&Ne(k,g,f,u),F&>(f,u,g,"updated")},S)},W=(u,f,g,S,b,y,T)=>{for(let E=0;E{if(f!==g){if(f!==ne)for(const y in f)!Nt(y)&&!(y in g)&&l(u,y,f[y],null,b,S);for(const y in g){if(Nt(y))continue;const T=g[y],E=f[y];T!==E&&y!=="value"&&l(u,y,E,T,b,S)}"value"in g&&l(u,"value",f.value,g.value,b)}},ke=(u,f,g,S,b,y,T,E,C)=>{const w=f.el=u?u.el:o(""),F=f.anchor=u?u.anchor:o("");let{patchFlag:O,dynamicChildren:I,slotScopeIds:k}=f;k&&(E=E?E.concat(k):k),u==null?(n(w,g,S),n(F,g,S),he(f.children||[],g,F,b,y,T,E,C)):O>0&&O&64&&I&&u.dynamicChildren&&u.dynamicChildren.length===I.length?(W(u.dynamicChildren,I,g,b,y,T,E),(f.key!=null||b&&f===b.subTree)&&dl(u,f,!0)):G(u,f,g,F,b,y,T,E,C)},St=(u,f,g,S,b,y,T,E,C)=>{f.slotScopeIds=E,u==null?f.shapeFlag&512?b.ctx.activate(f,g,S,T,C):Ft(f,g,S,b,y,T,C):ts(u,f,C)},Ft=(u,f,g,S,b,y,T)=>{const E=u.component=go(u,S,b);if(zi(u)&&(E.ctx.renderer=ft),mo(E,!1,T),E.asyncDep){if(b&&b.registerDep(E,ge,T),!u.el){const C=E.subTree=st(at);N(null,C,f,g),u.placeholder=C.el}}else ge(E,u,f,g,b,y,T)},ts=(u,f,g)=>{const S=f.component=u.component;if(Jr(u,f,g))if(S.asyncDep&&!S.asyncResolved){ae(S,f,g);return}else S.next=f,S.update();else f.el=u.el,S.vnode=f},ge=(u,f,g,S,b,y,T)=>{const E=()=>{if(u.isMounted){let{next:O,bu:I,u:k,parent:H,vnode:K}=u;{const se=pl(u);if(se){O&&(O.el=K.el,ae(u,O,T)),se.asyncDep.then(()=>{Oe(()=>{u.isUnmounted||w()},b)});return}}let q=O,_;_t(u,!1),O?(O.el=K.el,ae(u,O,T)):O=K,I&&us(I),(_=O.props&&O.props.onVnodeBeforeUpdate)&&Ne(_,H,O,K),_t(u,!0);const x=Gn(u),te=u.subTree;u.subTree=x,L(te,x,v(te.el),Ct(te),u,b,y),O.el=x.el,q===null&&Gr(u,x.el),k&&Oe(k,b),(_=O.props&&O.props.onVnodeUpdated)&&Oe(()=>Ne(_,H,O,K),b)}else{let O;const{el:I,props:k}=f,{bm:H,m:K,parent:q,root:_,type:x}=u,te=Ut(f);_t(u,!1),H&&us(H),!te&&(O=k&&k.onVnodeBeforeMount)&&Ne(O,q,f),_t(u,!0);{_.ce&&_.ce._hasShadowRoot()&&_.ce._injectChildStyle(x,u.parent?u.parent.type:void 0);const se=u.subTree=Gn(u);L(null,se,g,S,u,b,y),f.el=se.el}if(K&&Oe(K,b),!te&&(O=k&&k.onVnodeMounted)){const se=f;Oe(()=>Ne(O,q,se),b)}(f.shapeFlag&256||q&&Ut(q.vnode)&&q.vnode.shapeFlag&256)&&u.a&&Oe(u.a,b),u.isMounted=!0,f=g=S=null}};u.scope.on();const C=u.effect=new Ei(E);u.scope.off();const w=u.update=C.run.bind(C),F=u.job=C.runIfDirty.bind(C);F.i=u,F.id=u.uid,C.scheduler=()=>yn(F),_t(u,!0),w()},ae=(u,f,g)=>{f.component=u;const S=u.vnode.props;u.vnode=f,u.next=null,Yr(u,f.props,S,g),eo(u,f.children,g),qe(),Hn(u),Je()},G=(u,f,g,S,b,y,T,E,C=!1)=>{const w=u&&u.children,F=u?u.shapeFlag:0,O=f.children,{patchFlag:I,shapeFlag:k}=f;if(I>0){if(I&128){$e(w,O,g,S,b,y,T,E,C);return}else if(I&256){Ge(w,O,g,S,b,y,T,E,C);return}}k&8?(F&16&&ut(w,b,y),O!==w&&d(g,O)):F&16?k&16?$e(w,O,g,S,b,y,T,E,C):ut(w,b,y,!0):(F&8&&d(g,""),k&16&&he(O,g,S,b,y,T,E,C))},Ge=(u,f,g,S,b,y,T,E,C)=>{u=u||Ot,f=f||Ot;const w=u.length,F=f.length,O=Math.min(w,F);let I;for(I=0;IF?ut(u,b,y,!0,!1,O):he(f,g,S,b,y,T,E,C,O)},$e=(u,f,g,S,b,y,T,E,C)=>{let w=0;const F=f.length;let O=u.length-1,I=F-1;for(;w<=O&&w<=I;){const k=u[w],H=f[w]=C?Qe(f[w]):Ve(f[w]);if(kt(k,H))L(k,H,g,null,b,y,T,E,C);else break;w++}for(;w<=O&&w<=I;){const k=u[O],H=f[I]=C?Qe(f[I]):Ve(f[I]);if(kt(k,H))L(k,H,g,null,b,y,T,E,C);else break;O--,I--}if(w>O){if(w<=I){const k=I+1,H=kI)for(;w<=O;)z(u[w],b,y,!0),w++;else{const k=w,H=w,K=new Map;for(w=H;w<=I;w++){const de=f[w]=C?Qe(f[w]):Ve(f[w]);de.key!=null&&K.set(de.key,w)}let q,_=0;const x=I-H+1;let te=!1,se=0;const we=new Array(x);for(w=0;w=x){z(de,b,y,!0);continue}let xe;if(de.key!=null)xe=K.get(de.key);else for(q=H;q<=I;q++)if(we[q-H]===0&&kt(de,f[q])){xe=q;break}xe===void 0?z(de,b,y,!0):(we[xe-H]=w+1,xe>=se?se=xe:te=!0,L(de,f[xe],g,null,b,y,T,E,C),_++)}const dt=te?io(we):Ot;for(q=dt.length-1,w=x-1;w>=0;w--){const de=H+w,xe=f[de],pt=f[de+1],ht=de+1{const{el:y,type:T,transition:E,children:C,shapeFlag:w}=u;if(w&6){ze(u.component.subTree,f,g,S);return}if(w&128){u.suspense.move(f,g,S);return}if(w&64){T.move(u,f,g,ft);return}if(T===ie){n(y,f,g);for(let O=0;OE.enter(y),b));else{const{leave:O,delayLeave:I,afterLeave:k}=E,H=()=>{u.ctx.isUnmounted?i(y):n(y,f,g)},K=()=>{const q=y._isLeaving||!!y[Ws];y._isLeaving&&y[Ws](!0),E.persisted&&!q?H():O(y,()=>{H(),k&&k()})};I?I(y,H,K):K()}else n(y,f,g)},z=(u,f,g,S=!1,b=!1)=>{const{type:y,props:T,ref:E,children:C,dynamicChildren:w,shapeFlag:F,patchFlag:O,dirs:I,cacheIndex:k,memo:H}=u;if(O===-2&&(b=!1),E!=null&&(qe(),Vt(E,null,g,u,!0),Je()),k!=null&&(f.renderCache[k]=void 0),F&256){f.ctx.deactivate(u);return}const K=F&1&&I,q=!Ut(u);let _;if(q&&(_=T&&T.onVnodeBeforeUnmount)&&Ne(_,f,u),F&6)ks(u.component,g,S);else{if(F&128){u.suspense.unmount(g,S);return}K&>(u,null,f,"beforeUnmount"),F&64?u.type.remove(u,f,g,ft,S):w&&!w.hasOnce&&(y!==ie||O>0&&O&64)?ut(w,f,g,!1,!0):(y===ie&&O&384||!b&&F&16)&&ut(C,f,g),S&&ss(u)}const x=H!=null&&k==null;(q&&(_=T&&T.onVnodeUnmounted)||K||x)&&Oe(()=>{_&&Ne(_,f,u),K&>(u,null,f,"unmounted"),x&&(u.el=null)},g)},ss=u=>{const{type:f,el:g,anchor:S,transition:b}=u;if(f===ie){Ls(g,S);return}if(f===Js){R(u);return}const y=()=>{i(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:T,delayLeave:E}=b,C=()=>T(g,y);E?E(u.el,y,C):C()}else y()},Ls=(u,f)=>{let g;for(;u!==f;)g=P(u),i(u),u=g;i(f)},ks=(u,f,g)=>{const{bum:S,scope:b,job:y,subTree:T,um:E,m:C,a:w}=u;Xn(C),Xn(w),S&&us(S),b.stop(),y&&(y.flags|=8,z(T,u,f,g)),E&&Oe(E,f),Oe(()=>{u.isUnmounted=!0},f)},ut=(u,f,g,S=!1,b=!1,y=0)=>{for(let T=y;T{if(u.shapeFlag&6)return Ct(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=P(u.anchor||u.el),g=f&&f[br];return g?P(g):f};let ct=!1;const ns=(u,f,g)=>{let S;u==null?f._vnode&&(z(f._vnode,null,null,!0),S=f._vnode.component):L(f._vnode||null,u,f,null,null,null,g),f._vnode=u,ct||(ct=!0,Hn(S),Ui(),ct=!1)},ft={p:L,um:z,m:ze,r:ss,mt:Ft,mc:he,pc:G,pbc:W,n:Ct,o:e};return{render:ns,hydrate:void 0,createApp:Hr(ns)}}function qs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function _t({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function no(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dl(e,t,s=!1){const n=e.children,i=t.children;if($(n)&&$(i))for(let l=0;l>1,e[s[o]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,r=s[l-1];l-- >0;)s[l]=r,r=t[r];return s}function pl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pl(t)}function Xn(e){if(e)for(let t=0;te.__isSuspense;function lo(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):pr(e)}const ie=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Js=Symbol.for("v-stc"),Kt=[];let Pe=null;function M(e=!1){Kt.push(Pe=e?null:[])}function ro(){Kt.pop(),Pe=Kt[Kt.length-1]||null}let zt=1;function Zn(e,t=!1){zt+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function _l(e){return e.dynamicChildren=zt>0?Pe||Ot:null,ro(),zt>0&&Pe&&Pe.push(e),e}function D(e,t,s,n,i,l){return _l(a(e,t,s,n,i,l,!0))}function oo(e,t,s,n,i){return _l(st(e,t,s,n,i,!0))}function ml(e){return e?e.__v_isVNode===!0:!1}function kt(e,t){return e.type===t.type&&e.key===t.key}const vl=({key:e})=>e??null,fs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||ye(e)||j(e)?{i:Me,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,l=e===ie?0:1,r=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vl(t),ref:t&&fs(t),scopeId:Ki,slotScopeIds:null,children:s,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:l,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Me};return o?(ms(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=fe(s)?8:16),zt>0&&!r&&Pe&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Pe.push(c),c}const st=ao;function ao(e,t=null,s=null,n=0,i=null,l=!1){if((!e||e===Rr)&&(e=at),ml(e)){const o=Rt(e,t,!0);return s&&ms(o,s),zt>0&&!l&&Pe&&(o.shapeFlag&6?Pe[Pe.indexOf(e)]=o:Pe.push(o)),o.patchFlag=-2,o}if(wo(e)&&(e=e.__vccOpts),t){t=uo(t);let{class:o,style:c}=t;o&&!fe(o)&&(t.class=Ps(o)),Q(c)&&(bn(c)&&!$(c)&&(c=me({},c)),t.style=fn(c))}const r=fe(e)?1:gl(e)?128:yr(e)?64:Q(e)?4:j(e)?2:0;return a(e,t,s,n,i,r,l,!0)}function uo(e){return e?bn(e)||rl(e)?me({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:i,ref:l,patchFlag:r,children:o,transition:c}=e,h=t?fo(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&vl(h),ref:t&&t.ref?s&&l?$(l)?l.concat(fs(t)):[l,fs(t)]:fs(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&wn(d,c.clone(d)),d}function co(e=" ",t=0){return st(Rs,null,e,t)}function ce(e="",t=!1){return t?(M(),oo(at,null,e)):st(at,null,e)}function Ve(e){return e==null||typeof e=="boolean"?st(at):$(e)?st(ie,null,e.slice()):ml(e)?Qe(e):st(Rs,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function ms(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if($(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ms(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!rl(t)?t._ctx=Me:i===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(j(t)){if(n&65){ms(e,{default:t});return}t={default:t,_ctx:Me},s=32}else t=String(t),n&64?(s=16,t=[co(t)]):s=8;e.children=t,e.shapeFlag|=s}function fo(...e){const t={};for(let s=0;sTe||Me;let vs,rn;{const e=Os(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),l=>{i.length>1?i.forEach(r=>r(l)):i[0](l)}};vs=t("__VUE_INSTANCE_SETTERS__",s=>Te=s),rn=t("__VUE_SSR_SETTERS__",s=>Yt=s)}const es=e=>{const t=Te;return vs(e),e.scope.on(),()=>{e.scope.off(),vs(t)}},Qn=()=>{Te&&Te.scope.off(),vs(null)};function bl(e){return e.vnode.shapeFlag&4}let Yt=!1;function mo(e,t=!1,s=!1){t&&rn(t);const{props:n,children:i}=e.vnode,l=bl(e);zr(e,n,l,t),Qr(e,i,s||t);const r=l?vo(e,t):void 0;return t&&rn(!1),r}function vo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fr);const{setup:n}=s;if(n){qe();const i=e.setupContext=n.length>1?yo(e):null,l=es(e),r=Qt(n,e,0,[e.props,i]),o=mi(r);if(Je(),l(),(o||e.sp)&&!Ut(e)&&Gi(e),o){if(r.then(Qn,Qn),t)return r.then(c=>{ei(e,c)}).catch(c=>{Ms(c,e,0)});e.asyncDep=r}else ei(e,r)}else yl(e)}function ei(e,t,s){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=Ni(t)),yl(e)}function yl(e,t,s){const n=e.type;e.render||(e.render=n.render||We);{const i=es(e);qe();try{Lr(e)}finally{Je(),i()}}}const bo={get(e,t){return be(e,"get",""),e[t]}};function yo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,bo),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ni(sr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Wt)return Wt[s](e)},has(t,s){return s in t||s in Wt}})):e.proxy}function wo(e){return j(e)&&"__vccOpts"in e}const vt=(e,t)=>ar(e,t,Yt),xo="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let on;const ti=typeof window<"u"&&window.trustedTypes;if(ti)try{on=ti.createPolicy("vue",{createHTML:e=>e})}catch{}const wl=on?e=>on.createHTML(e):e=>e,So="http://www.w3.org/2000/svg",Co="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,si=Ze&&Ze.createElement("template"),Eo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ze.createElementNS(So,e):t==="mathml"?Ze.createElementNS(Co,e):s?Ze.createElement(e,{is:s}):Ze.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{si.innerHTML=wl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=si.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},To=Symbol("_vtc");function Oo(e,t,s){const n=e[To];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ni=Symbol("_vod"),Po=Symbol("_vsh"),Ao=Symbol(""),Mo=/(?:^|;)\s*display\s*:/;function Do(e,t,s){const n=e.style,i=fe(s);let l=!1;if(s&&!i){if(t)if(fe(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&jt(n,o,"")}else for(const r in t)s[r]==null&&jt(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?Ro(e,r,!fe(t)&&t?t[r]:void 0,o)||jt(n,r,o):jt(n,r,"")}}else if(i){if(t!==s){const r=n[Ao];r&&(s+=";"+r),n.cssText=s,l=Mo.test(s)}}else t&&e.removeAttribute("style");ni in e&&(e[ni]=l?n.display:"",e[Po]&&(n.display="none"))}const ii=/\s*!important$/;function jt(e,t,s){if($(s))s.forEach(n=>jt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Io(e,t);ii.test(s)?e.setProperty(xt(n),s.replace(ii,""),"important"):e[n]=s}}const li=["Webkit","Moz","ms"],Gs={};function Io(e,t){const s=Gs[t];if(s)return s;let n=Ie(t);if(n!=="filter"&&n in e)return Gs[t]=n;n=yi(n);for(let i=0;izs||(No.then(()=>zs=0),zs=Date.now());function Ho(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if($(i)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const r=i.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vo=(e,t,s,n,i,l)=>{const r=i==="svg";t==="class"?Oo(e,n,r):t==="style"?Do(e,s,n):xs(t)?Ss(t)||Lo(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uo(e,t,n,r))?(ai(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oi(e,t,n,r,l,t!=="value")):e._isVueCE&&(Wo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!fe(n)))?ai(e,Ie(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),oi(e,t,n,r))};function Uo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ci(t)&&j(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ci(t)&&fe(s)?!1:t in e}function Wo(e,t){const s=e._def.props;if(!s)return!1;const n=Ie(t);return Array.isArray(s)?s.some(i=>Ie(i)===n):Object.keys(s).some(i=>Ie(i)===n)}const bs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?s=>us(t,s):t};function Ko(e){e.target.composing=!0}function fi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dt=Symbol("_assign");function di(e,t,s){return t&&(e=e.trim()),s&&(e=Ts(e)),e}const rt={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Dt]=bs(i);const l=n||i.props&&i.props.type==="number";bt(e,t?"change":"input",r=>{r.target.composing||e[Dt](di(e.value,s,l))}),(s||l)&&bt(e,"change",()=>{e.value=di(e.value,s,l)}),t||(bt(e,"compositionstart",Ko),bt(e,"compositionend",fi),bt(e,"change",fi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:l}},r){if(e[Dt]=bs(r),e.composing)return;const o=(l||e.type==="number")&&!/^0\d/.test(e.value)?Ts(e.value):e.value,c=t??"";if(o===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c)}},pi={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Cs(t);bt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?Ts(ys(r)):ys(r));e[Dt](e.multiple?i?new Set(l):l:l[0]),e._assigning=!0,Hi(()=>{e._assigning=!1})}),e[Dt]=bs(n)},mounted(e,{value:t}){hi(e,t)},beforeUpdate(e,t,s){e[Dt]=bs(s)},updated(e,{value:t}){e._assigning||hi(e,t)}};function hi(e,t){const s=e.multiple,n=$(t);if(!(s&&!n&&!Cs(t))){for(let i=0,l=e.options.length;iString(h)===String(o)):r.selected=Ll(t,o)>-1}else r.selected=t.has(o);else if(Zt(ys(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ys(e){return"_value"in e?e._value:e.value}const qo=me({patchProp:Vo},Eo);let gi;function Jo(){return gi||(gi=to(qo))}const Go=((...e)=>{const t=Jo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Yo(n);if(!i)return;const l=t._component;!j(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,zo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function zo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yo(e){return fe(e)?document.querySelector(e):e}const Xo="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",V={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Zo extends Error{constructor(s,n,i={}){super(n);$s(this,"code");$s(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function pe(e,t){return ws(e,{method:"GET",query:t})}async function Se(e,t){return ws(e,{method:"POST",body:t})}async function ws(e,t={}){const n=await(await fetch(Qo(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(!n.ok)throw new Zo(n.error_code,n.message,n.details);return n.data}function Qo(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${Xo}/${s}`,window.location.origin);for(const[i,l]of Object.entries(t??{}))l!==void 0&&n.searchParams.set(i,String(l));return`${n.pathname}${n.search}`}const ea={class:"web-shell"},ta={class:"sidebar"},sa={class:"brand"},na=["onClick"],ia={class:"workspace"},la={class:"topbar"},ra={class:"actions"},oa=["disabled"],aa={key:0,class:"notice error"},ua={key:1,class:"notice"},ca={key:0,class:"dashboard-grid"},fa={key:1,class:"list-view"},da={class:"badge"},pa={key:0,class:"empty"},ha={key:2,class:"split-view"},ga={class:"list-view"},_a={key:0,class:"empty"},ma={class:"list-view"},va={class:"inline-actions"},ba=["disabled"],ya={class:"form-grid"},wa={value:""},xa=["value"],Sa=["disabled"],Ca={class:"inline-actions"},Ea={class:"badge"},Ta=["disabled","onClick"],Oa=["disabled","onClick"],Pa=["disabled","onClick"],Aa={key:0,class:"empty"},Ma={key:0},Da={key:3,class:"list-view"},Ia=["disabled"],Ra={class:"form-grid"},Fa={value:""},La=["value"],ka=["disabled"],$a={class:"inline-actions"},ja=["disabled","onClick"],Na={key:0,class:"empty"},Ba={key:0},Ha={key:4,class:"list-view"},Va={class:"inline-actions"},Ua=["disabled"],Wa=["disabled"],Ka={class:"inline-actions"},qa={class:"badge"},Ja=["onClick"],Ga=["onClick"],za={key:0,class:"empty"},Ya={key:5,class:"split-view"},Xa={class:"list-view"},Za=["disabled"],Qa={class:"list-view"},eu={class:"inline-actions"},tu={class:"badge"},su=["disabled","onClick"],nu=["disabled","onClick"],iu=["disabled","onClick"],lu={key:0,class:"empty"},ru={key:6,class:"logs-view"},ou={class:"split-view"},au={class:"list-view"},uu={key:0,class:"empty"},cu={class:"list-view"},fu={class:"badge"},du={key:0,class:"empty"},pu={class:"split-view"},hu={class:"list-view"},gu={key:0,class:"empty"},_u={class:"list-view"},mu={class:"badge"},vu={key:0,class:"empty"},bu={class:"list-view"},yu={key:0,class:"empty"},wu={key:7,class:"settings-view"},xu={class:"toolbar"},Su=["disabled"],Cu=["disabled"],Eu=["disabled"],Tu=["disabled"],Ou=["disabled"],Pu=["disabled"],Au={class:"settings-sections"},Mu={class:"editor-panel"},Du={class:"split-view"},Iu={class:"list-view"},Ru={class:"list-view"},Fu={class:"inspector"},Lu=wr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",archive:"归档",recognize:"识别",confirm:"确认",name:"名称",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",emptyProfiles:"暂无角色",categories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},s=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],n=ue("dashboard"),i=ue(null),l=ue(null),r=ue(null),o=ue(null),c=ue(null),h=ue(null),d=ue(null),v=ue([]),P=ue(null),A=ue([]),U=ue([]),L=ue([]),re=ue(null),N=ue({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),B=ue(null),J=ue(""),R=ue(null),oe=ue(null),ee=ue({display_name:"",image_uri:"",tags:"",category_id:""}),Z=ue({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),he=ue(""),lt=ue(!0),W=ue(""),Ae=ue(""),ke=vt(()=>{var _,x;return((x=(_=r.value)==null?void 0:_.items[0])==null?void 0:x.profile_id)??""}),St=vt(()=>{var _,x;return((x=(_=r.value)==null?void 0:_.items[0])==null?void 0:x.name)??t.noProfile}),Ft=vt(()=>{var x;const _=(x=l.value)==null?void 0:x.queue;return _?_.pending+_.running+_.failed+_.dead_letter:0}),ts=vt(()=>{var _;return((_=P.value)==null?void 0:_.items.filter(x=>x.recognition_status!=="confirmed").length)??0}),ge=vt(()=>{var _;return(((_=P.value)==null?void 0:_.items)??[]).filter(x=>x.recognition_status==="confirmed")}),ae=vt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[n.value]);Xi(G);async function G(){var _;lt.value=!0,Ae.value="";try{const[x,te,se,we,dt,de,xe,pt,ht,is,ls]=await Promise.all([pe(V.uiBootstrap),pe(V.dashboardSummary),pe(V.profiles,{page:1,page_size:20}),pe(V.jobs,{page:1,page_size:20}),pe(V.settingsSchema),pe(V.settingsCurrent),pe(V.storageStatus),pe(V.materialCategories),pe(V.materials,{page:1,page_size:24}),pe(V.apiDiscoveryDialects),pe(V.apiDiscoveryCapabilities)]);i.value=x,l.value=te,r.value=se,o.value=we,c.value=dt,h.value=de,S(de.config),d.value=xe,v.value=pt,P.value=ht,U.value=is,L.value=ls,await ze((_=se.items[0])==null?void 0:_.profile_id),await Ge()}catch(x){Ae.value=x instanceof Error?x.message:t.loadFailed}finally{lt.value=!1}}async function Ge(){const[_,x,te,se,we]=await Promise.allSettled([pe(V.generationLogs,{limit:12}),pe(V.workflowLogs,{limit:12}),pe(V.errorLogs,{limit:12}),pe(V.integrationLogs,{limit:12}),pe(V.auditLogs,{limit:12})]);N.value={generation:$e(_),workflows:$e(x),errors:$e(te),integrations:$e(se),audit:$e(we)}}function $e(_){return _.status==="fulfilled"?_.value:[]}async function ze(_){if(!_){A.value=[];return}A.value=await pe(V.wardrobe(_))}async function z(_,x,te=!0){W.value=_,Ae.value="";try{const se=await x();he.value=`${_}${t.complete}`,_===t.exportSettings&&(he.value=`${t.exportDone}: ${!!se.redacted}`),te&&await G()}catch(se){Ae.value=se instanceof Error?se.message:`${_}${t.failed}`}finally{W.value=""}}function ss(_){return z(t.retry,()=>Se(V.jobRetry(_)))}function Ls(_){return z(t.cancel,()=>Se(V.jobCancel(_)))}function ks(){return z(t.moveFailed,()=>Se(V.jobDeadLetterMoveFailed,{limit:20}))}function ut(){return z(t.retryDead,()=>Se(V.jobDeadLetterRetry,{limit:20}))}function Ct(){var x;const _=((x=U.value[0])==null?void 0:x.dialect)??"unknown";return z(t.safeProbe,()=>Se(V.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:_,capabilities:{supports:["text_to_image"]}}))}function ct(_,x){return z(t.discovery,()=>Se(V.apiDiscoveryManualOverride,{provider_id:_.provider_id,model_id:_.model_id,dialect:_.dialect,status:x,capabilities:_.capabilities}))}function ns(){const _=ke.value;return _?z(t.matchWardrobe,async()=>(re.value=await Se(V.wardrobeMatch(_),{tags:["daily"]}),re.value),!1):Promise.resolve()}function ft(){Z.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Cn(){const _=ke.value;return _?z(t.importToWardrobe,async()=>{const x=await Se(V.wardrobeImportMaterial(_),{material_id:Z.value.material_id,wardrobe_category:Z.value.wardrobe_category,tags:H(Z.value.tags),season:Z.value.season||void 0,style:Z.value.style||void 0});return ft(),he.value=t.wardrobeImported,x}):Promise.resolve()}function u(_){const x=ke.value;return x?z(t.delete,async()=>{const te=await ws(V.wardrobeItem(x,_),{method:"DELETE"});return he.value=t.wardrobeDeleted,te}):Promise.resolve()}function f(){return z(t.reload,async()=>{var x;const _=await Se(V.settingsReload);return h.value={config_path:((x=h.value)==null?void 0:x.config_path)??"***PATH***",config:_.config},S(_.config),_},!1)}function g(){return z(t.exportSettings,()=>pe(V.settingsExport),!1)}function S(_=(x=>(x=h.value)==null?void 0:x.config)()??{}){J.value=JSON.stringify(_,null,2),R.value=null,oe.value=null}function b(){try{const _=JSON.parse(J.value);if(!_||Array.isArray(_)||typeof _!="object")throw new Error(t.settingsDraftInvalid);return _}catch(_){throw new Error(_ instanceof Error?_.message:t.settingsDraftInvalid)}}function y(){return z(t.validate,async()=>(R.value=await Se(V.settingsValidate,{config:b()}),R.value),!1)}function T(){return z(t.diff,async()=>(oe.value=await Se(V.settingsDiff,{config:b()}),oe.value),!1)}function E(){return z(t.save,async()=>{var x;const _=await Se(V.settingsSave,{config:b()});return h.value={config_path:((x=h.value)==null?void 0:x.config_path)??"***PATH***",config:_.config},S(_.config),he.value=t.settingsSaved,_},!1)}function C(){var x,te;const _=(te=(x=P.value)==null?void 0:x.items.find(se=>{var we;return(we=se.image_uri)==null?void 0:we.startsWith("storage://")}))==null?void 0:te.image_uri;return _?z(t.signMaterial,async()=>(B.value=await pe(V.mediaSign,{uri:_}),B.value),!1):(he.value=t.noSignableMaterial,Promise.resolve())}function w(){ee.value={display_name:"",image_uri:"",tags:"",category_id:""}}function F(){return z(t.create,async()=>{const _=await Se(V.materials,{display_name:ee.value.display_name,image_uri:ee.value.image_uri||void 0,thumbnail_uri:ee.value.image_uri||void 0,category_id:ee.value.category_id||void 0,tags:H(ee.value.tags),recognition_status:ee.value.image_uri?"pending_recognition":"pending_upload"});return w(),he.value=t.materialCreated,_})}function O(_){return z(t.recognize,()=>Se(V.materialRecognize(_)))}function I(_){return z(t.confirm,()=>Se(V.materialConfirm(_.material_id),{display_name:_.display_name,prompt:_.prompt,negative_prompt:_.negative_prompt,tags:_.tags}))}function k(_){return z(t.archive,async()=>{const x=await ws(V.material(_),{method:"DELETE"});return he.value=t.materialArchived,x})}function H(_){return _.split(",").map(x=>x.trim()).filter(Boolean)}function K(_=0){return _<1024?`${_} B`:_<1024*1024?`${(_/1024).toFixed(1)} KB`:_<1024*1024*1024?`${(_/1024/1024).toFixed(1)} MB`:`${(_/1024/1024/1024).toFixed(1)} GB`}function q(_){var x,te;return((te=(x=d.value)==null?void 0:x.roots.find(se=>se.uri_prefix===_))==null?void 0:te.bytes)??0}return(_,x)=>{var te,se,we,dt,de,xe,pt,ht,is,ls,En,Tn,On,Pn,An,Mn,Dn,In,Rn,Fn,Ln,kn;return M(),D("main",ea,[a("aside",ta,[a("div",sa,[a("strong",null,p(((te=i.value)==null?void 0:te.display_name)??"ImageStudio"),1),a("span",null,p(((se=i.value)==null?void 0:se.dashboard_user)??"AstrBot"),1)]),a("nav",null,[(M(),D(ie,null,ve(s,m=>a("button",{key:m.key,type:"button",class:Ps({active:n.value===m.key}),onClick:Ye=>n.value=m.key},p(m.label),11,na)),64))])]),a("section",ia,[a("header",la,[a("div",null,[a("h1",null,p(ae.value),1),a("p",null,p(((we=l.value)==null?void 0:we.plugin_status)??"loading")+" / "+p(he.value||t.waiting),1)]),a("div",ra,[a("button",{type:"button",disabled:!!W.value,onClick:G},p(W.value||t.refresh),9,oa)])]),Ae.value?(M(),D("section",aa,p(Ae.value),1)):lt.value?(M(),D("section",ua,p(t.loading),1)):(M(),D(ie,{key:2},[n.value==="dashboard"?(M(),D("section",ca,[a("article",null,[a("span",null,p(t.profiles),1),a("strong",null,p(((dt=l.value)==null?void 0:dt.active_profiles)??0),1)]),a("article",null,[a("span",null,p(t.jobs),1),a("strong",null,p(Ft.value),1)]),a("article",null,[a("span",null,p(t.materials),1),a("strong",null,p(((de=P.value)==null?void 0:de.total)??0),1)]),a("article",null,[a("span",null,p(t.storage),1),a("strong",null,p(K(((xe=d.value)==null?void 0:xe.total_bytes)??((pt=l.value)==null?void 0:pt.storage.total_bytes))),1)])])):ce("",!0),n.value==="profiles"?(M(),D("section",fa,[a("header",null,[a("h2",null,p(t.profileList),1),a("span",null,p(((ht=r.value)==null?void 0:ht.total)??0),1)]),a("ul",null,[(M(!0),D(ie,null,ve(((is=r.value)==null?void 0:is.items)??[],m=>(M(),D("li",{key:m.profile_id},[a("div",null,[a("strong",null,p(m.name),1),a("small",null,p(m.profile_id),1)]),a("span",da,p(m.status),1)]))),128)),(ls=r.value)!=null&&ls.items.length?ce("",!0):(M(),D("li",pa,p(t.emptyProfiles),1))])])):ce("",!0),n.value==="materials"?(M(),D("section",ha,[a("div",ga,[a("header",null,[a("h2",null,p(t.categories),1),a("span",null,p(v.value.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(v.value,m=>(M(),D("li",{key:m.category_id},[a("div",null,[a("strong",null,p(m.name),1),a("small",null,p(m.category_type),1)]),a("span",null,p(m.sort_order),1)]))),128)),v.value.length?ce("",!0):(M(),D("li",_a,p(t.emptyCategories),1))])]),a("div",ma,[a("header",null,[a("h2",null,p(t.materialItems),1),a("div",va,[a("span",null,p(ts.value)+" "+p(t.pendingConfirm),1),a("button",{type:"button",disabled:!!W.value,onClick:C},p(t.signFirstImage),9,ba)])]),a("div",ya,[a("label",null,[a("span",null,p(t.name),1),je(a("input",{"onUpdate:modelValue":x[0]||(x[0]=m=>ee.value.display_name=m),type:"text"},null,512),[[rt,ee.value.display_name]])]),a("label",null,[a("span",null,p(t.imageUri),1),je(a("input",{"onUpdate:modelValue":x[1]||(x[1]=m=>ee.value.image_uri=m),type:"text",placeholder:"storage://materials/example.png"},null,512),[[rt,ee.value.image_uri]])]),a("label",null,[a("span",null,p(t.category),1),je(a("select",{"onUpdate:modelValue":x[2]||(x[2]=m=>ee.value.category_id=m)},[a("option",wa,p(t.allCategories),1),(M(!0),D(ie,null,ve(v.value,m=>(M(),D("option",{key:m.category_id,value:m.category_id},p(m.name),9,xa))),128))],512),[[pi,ee.value.category_id]])]),a("label",null,[a("span",null,p(t.tags),1),je(a("input",{"onUpdate:modelValue":x[3]||(x[3]=m=>ee.value.tags=m),type:"text",placeholder:"daily, top"},null,512),[[rt,ee.value.tags]])]),a("button",{type:"button",disabled:!!W.value||!ee.value.display_name,onClick:F},p(t.create),9,Sa)]),a("ul",null,[(M(!0),D(ie,null,ve(((En=P.value)==null?void 0:En.items)??[],m=>(M(),D("li",{key:m.material_id},[a("div",null,[a("strong",null,p(m.display_name),1),a("small",null,p(m.image_uri??t.noImage),1)]),a("div",Ca,[a("span",Ea,p(m.recognition_status),1),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>O(m.material_id)},p(t.recognize),9,Ta),a("button",{type:"button",disabled:!!W.value||m.recognition_status==="confirmed",onClick:Ye=>I(m)},p(t.confirm),9,Oa),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>k(m.material_id)},p(t.archive),9,Pa)])]))),128)),(Tn=P.value)!=null&&Tn.items.length?ce("",!0):(M(),D("li",Aa,p(t.emptyMaterials),1))]),B.value?(M(),D("pre",Ma,p(JSON.stringify(B.value,null,2)),1)):ce("",!0)])])):ce("",!0),n.value==="wardrobe"?(M(),D("section",Da,[a("header",null,[a("h2",null,p(St.value),1),a("button",{type:"button",disabled:!ke.value||!!W.value,onClick:ns},p(t.match),9,Ia)]),a("div",Ra,[a("label",null,[a("span",null,p(t.selectMaterial),1),je(a("select",{"onUpdate:modelValue":x[4]||(x[4]=m=>Z.value.material_id=m)},[a("option",Fa,p(t.selectMaterial),1),(M(!0),D(ie,null,ve(ge.value,m=>(M(),D("option",{key:m.material_id,value:m.material_id},p(m.display_name),9,La))),128))],512),[[pi,Z.value.material_id]])]),a("label",null,[a("span",null,p(t.wardrobeCategory),1),je(a("input",{"onUpdate:modelValue":x[5]||(x[5]=m=>Z.value.wardrobe_category=m),type:"text"},null,512),[[rt,Z.value.wardrobe_category]])]),a("label",null,[a("span",null,p(t.tags),1),je(a("input",{"onUpdate:modelValue":x[6]||(x[6]=m=>Z.value.tags=m),type:"text",placeholder:"daily, top"},null,512),[[rt,Z.value.tags]])]),a("label",null,[a("span",null,p(t.season),1),je(a("input",{"onUpdate:modelValue":x[7]||(x[7]=m=>Z.value.season=m),type:"text"},null,512),[[rt,Z.value.season]])]),a("label",null,[a("span",null,p(t.style),1),je(a("input",{"onUpdate:modelValue":x[8]||(x[8]=m=>Z.value.style=m),type:"text"},null,512),[[rt,Z.value.style]])]),a("button",{type:"button",disabled:!!W.value||!ke.value||!Z.value.material_id||!Z.value.wardrobe_category,onClick:Cn},p(t.importToWardrobe),9,ka)]),a("ul",null,[(M(!0),D(ie,null,ve(A.value,m=>(M(),D("li",{key:m.wardrobe_item_id},[a("div",null,[a("strong",null,p(m.wardrobe_category),1),a("small",null,p(m.material_id)+" / "+p(m.tags.join(", ")||t.noTags),1)]),a("div",$a,[a("span",null,p(m.usage_count),1),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>u(m.wardrobe_item_id)},p(t.delete),9,ja)])]))),128)),A.value.length?ce("",!0):(M(),D("li",Na,p(t.emptyWardrobe),1))]),re.value?(M(),D("pre",Ba,p(JSON.stringify(re.value,null,2)),1)):ce("",!0)])):ce("",!0),n.value==="jobs"?(M(),D("section",Ha,[a("header",null,[a("h2",null,p(t.jobs),1),a("div",Va,[a("button",{type:"button",disabled:!!W.value,onClick:ks},p(t.moveFailed),9,Ua),a("button",{type:"button",disabled:!!W.value,onClick:ut},p(t.retryDead),9,Wa)])]),a("ul",null,[(M(!0),D(ie,null,ve(((On=o.value)==null?void 0:On.items)??[],m=>(M(),D("li",{key:m.task_id},[a("div",null,[a("strong",null,p(m.task_id),1),a("small",null,p(m.task_type)+" / "+p(m.progress)+"%",1)]),a("div",Ka,[a("span",qa,p(m.status),1),m.status==="failed"?(M(),D("button",{key:0,type:"button",onClick:Ye=>ss(m.task_id)},p(t.retry),9,Ja)):ce("",!0),m.status==="pending"?(M(),D("button",{key:1,type:"button",onClick:Ye=>Ls(m.task_id)},p(t.cancel),9,Ga)):ce("",!0)])]))),128)),(Pn=o.value)!=null&&Pn.items.length?ce("",!0):(M(),D("li",za,p(t.emptyJobs),1))])])):ce("",!0),n.value==="discovery"?(M(),D("section",Ya,[a("div",Xa,[a("header",null,[a("h2",null,p(t.dialects),1),a("button",{type:"button",disabled:!!W.value,onClick:Ct},p(t.safeProbe),9,Za)]),a("ul",null,[(M(!0),D(ie,null,ve(U.value,m=>(M(),D("li",{key:m.dialect},[a("div",null,[a("strong",null,p(m.label),1),a("small",null,p(m.capabilities.join(", ")||t.unconfirmed),1)]),a("span",null,p(m.dialect),1)]))),128))])]),a("div",Qa,[a("header",null,[a("h2",null,p(t.capabilityProfiles),1),a("span",null,p(L.value.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(L.value,m=>(M(),D("li",{key:m.capability_profile_id},[a("div",null,[a("strong",null,p(m.provider_id)+" / "+p(m.model_id),1),a("small",null,p(m.dialect),1)]),a("div",eu,[a("span",tu,p(m.status),1),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>ct(m,"confirmed_supported")},p(t.support),9,su),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>ct(m,"confirmed_unsupported")},p(t.unsupported),9,nu),a("button",{type:"button",disabled:!!W.value,onClick:Ye=>ct(m,"unconfirmed")},p(t.unconfirmed),9,iu)])]))),128)),L.value.length?ce("",!0):(M(),D("li",lu,p(t.emptyCapabilities),1))])])])):ce("",!0),n.value==="logs"?(M(),D("section",ru,[a("div",ou,[a("div",au,[a("header",null,[a("h2",null,p(t.generationLogs),1),a("span",null,p(N.value.generation.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(N.value.generation,m=>(M(),D("li",{key:m.task_id},[a("div",null,[a("strong",null,p(m.task_id),1),a("small",null,p(m.status)+" / "+p(m.progress)+"%",1)]),a("span",null,p(m.created_at),1)]))),128)),N.value.generation.length?ce("",!0):(M(),D("li",uu,p(t.emptyGenerationLogs),1))])]),a("div",cu,[a("header",null,[a("h2",null,p(t.errorLogs),1),a("span",null,p(N.value.errors.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(N.value.errors,m=>(M(),D("li",{key:`${m.source}-${m.id}`},[a("div",null,[a("strong",null,p(m.source),1),a("small",null,p(m.error_message??t.noErrorDetail),1)]),a("span",fu,p(m.status),1)]))),128)),N.value.errors.length?ce("",!0):(M(),D("li",du,p(t.emptyErrors),1))])])]),a("div",pu,[a("div",hu,[a("header",null,[a("h2",null,p(t.workflowLogs),1),a("span",null,p(N.value.workflows.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(N.value.workflows,m=>(M(),D("li",{key:m.history_id},[a("div",null,[a("strong",null,p(m.action),1),a("small",null,p(m.title??m.workflow_id),1)]),a("span",null,p(m.branch_name??"main"),1)]))),128)),N.value.workflows.length?ce("",!0):(M(),D("li",gu,p(t.emptyWorkflowLogs),1))])]),a("div",_u,[a("header",null,[a("h2",null,p(t.integrationLogs),1),a("span",null,p(N.value.integrations.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(N.value.integrations,m=>(M(),D("li",{key:m.integration_log_id},[a("div",null,[a("strong",null,p(m.integration_name),1),a("small",null,p(m.action),1)]),a("span",mu,p(m.status),1)]))),128)),N.value.integrations.length?ce("",!0):(M(),D("li",vu,p(t.emptyIntegrationLogs),1))])])]),a("div",bu,[a("header",null,[a("h2",null,p(t.auditLogs),1),a("span",null,p(N.value.audit.length),1)]),a("ul",null,[(M(!0),D(ie,null,ve(N.value.audit,m=>(M(),D("li",{key:m.audit_id},[a("div",null,[a("strong",null,p(m.action),1),a("small",null,p(m.actor_type)+" / "+p(m.target_type)+" / "+p(m.target_id),1)]),a("span",null,p(m.created_at),1)]))),128)),N.value.audit.length?ce("",!0):(M(),D("li",yu,p(t.emptyAuditLogs),1))])])])):ce("",!0),n.value==="settings"?(M(),D("section",wu,[a("div",xu,[a("button",{type:"button",disabled:!!W.value,onClick:f},p(t.reload),9,Su),a("button",{type:"button",disabled:!!W.value,onClick:x[9]||(x[9]=m=>S())},p(t.reset),9,Cu),a("button",{type:"button",disabled:!!W.value,onClick:y},p(t.validate),9,Eu),a("button",{type:"button",disabled:!!W.value,onClick:T},p(t.diff),9,Tu),a("button",{type:"button",disabled:!!W.value,onClick:E},p(t.save),9,Ou),a("button",{type:"button",disabled:!!W.value,onClick:g},p(t.exportRedacted),9,Pu)]),a("div",Au,[(M(!0),D(ie,null,ve(((An=c.value)==null?void 0:An.sections)??[],m=>(M(),D("article",{key:m.key},[a("h2",null,p(m.title),1),a("span",null,p(m.fields.length),1)]))),128))]),a("section",Mu,[a("header",null,[a("h2",null,p(t.settingsEditor),1),a("span",null,p(((Mn=h.value)==null?void 0:Mn.config_path)??"***PATH***"),1)]),je(a("textarea",{"onUpdate:modelValue":x[10]||(x[10]=m=>J.value=m),spellcheck:"false"},null,512),[[rt,J.value]])]),a("div",Du,[a("div",Iu,[a("header",null,[a("h2",null,p(t.validationResult),1),a("span",null,p(((Dn=R.value)==null?void 0:Dn.valid)??"-"),1)]),a("pre",null,p(JSON.stringify(R.value??{},null,2)),1)]),a("div",Ru,[a("header",null,[a("h2",null,p(t.diffResult),1),a("span",null,p(((In=oe.value)==null?void 0:In.changes.length)??0),1)]),a("pre",null,p(JSON.stringify(oe.value??{},null,2)),1)])])])):ce("",!0)],64))]),a("aside",Fu,[a("h2",null,p(t.running),1),a("dl",null,[a("div",null,[x[11]||(x[11]=a("dt",null,"Pending",-1)),a("dd",null,p(((Rn=l.value)==null?void 0:Rn.queue.pending)??0),1)]),a("div",null,[x[12]||(x[12]=a("dt",null,"Running",-1)),a("dd",null,p(((Fn=l.value)==null?void 0:Fn.queue.running)??0),1)]),a("div",null,[x[13]||(x[13]=a("dt",null,"Failed",-1)),a("dd",null,p(((Ln=l.value)==null?void 0:Ln.queue.failed)??0),1)]),a("div",null,[x[14]||(x[14]=a("dt",null,"Dead",-1)),a("dd",null,p(((kn=l.value)==null?void 0:kn.queue.dead_letter)??0),1)])]),a("h2",null,p(t.storage),1),a("dl",null,[a("div",null,[x[15]||(x[15]=a("dt",null,"Images",-1)),a("dd",null,p(K(q("storage://images/"))),1)]),a("div",null,[x[16]||(x[16]=a("dt",null,"Materials",-1)),a("dd",null,p(K(q("storage://materials/"))),1)])])])])}}}),ku=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},$u=ku(Lu,[["__scopeId","data-v-d8984f01"]]);Go($u).mount("#app"); diff --git a/web/assets/index-DQnY71w4.css b/web/assets/index-DQnY71w4.css new file mode 100644 index 0000000..379a600 --- /dev/null +++ b/web/assets/index-DQnY71w4.css @@ -0,0 +1 @@ +.web-shell[data-v-d8984f01]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-d8984f01],.inspector[data-v-d8984f01]{background:#fff}.sidebar[data-v-d8984f01]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-d8984f01]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-d8984f01]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-d8984f01]{font-size:19px}.brand span[data-v-d8984f01],p[data-v-d8984f01],dt[data-v-d8984f01],.empty[data-v-d8984f01],small[data-v-d8984f01]{color:#667085}nav[data-v-d8984f01]{display:grid;gap:6px}button[data-v-d8984f01]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-d8984f01]:disabled{cursor:wait;opacity:.62}nav button[data-v-d8984f01]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-d8984f01]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-d8984f01]{min-width:0;padding:24px}.topbar[data-v-d8984f01],.list-view header[data-v-d8984f01],.toolbar[data-v-d8984f01],.inline-actions[data-v-d8984f01]{display:flex;gap:12px;align-items:center}.topbar[data-v-d8984f01],.list-view header[data-v-d8984f01]{justify-content:space-between}.actions[data-v-d8984f01],.inline-actions[data-v-d8984f01]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-d8984f01],.toolbar button[data-v-d8984f01],.list-view header button[data-v-d8984f01],.inline-actions button[data-v-d8984f01]{padding:0 14px}h1[data-v-d8984f01],h2[data-v-d8984f01],p[data-v-d8984f01],dl[data-v-d8984f01],dd[data-v-d8984f01]{margin:0}h1[data-v-d8984f01]{min-height:30px;font-size:26px}h2[data-v-d8984f01]{font-size:15px}.notice[data-v-d8984f01],article[data-v-d8984f01],.list-view[data-v-d8984f01],.editor-panel[data-v-d8984f01],pre[data-v-d8984f01]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-d8984f01]{margin-top:18px;padding:14px}.error[data-v-d8984f01]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-d8984f01],.split-view[data-v-d8984f01]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-d8984f01]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-d8984f01]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-d8984f01]{display:grid;gap:8px;padding:16px}article span[data-v-d8984f01]{color:#667085;font-size:13px}article strong[data-v-d8984f01]{font-size:24px}.list-view[data-v-d8984f01],.logs-view[data-v-d8984f01],.settings-view[data-v-d8984f01]{margin-top:18px}.split-view .list-view[data-v-d8984f01],.logs-view .list-view[data-v-d8984f01]{margin-top:0}.list-view[data-v-d8984f01]{padding:16px}.editor-panel[data-v-d8984f01]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-d8984f01]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-d8984f01]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-d8984f01]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-d8984f01]{display:grid;gap:5px;min-width:0}label span[data-v-d8984f01]{color:#667085;font-size:12px}input[data-v-d8984f01],select[data-v-d8984f01]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-d8984f01]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-d8984f01]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-d8984f01]:first-child{border-top:0}li>div[data-v-d8984f01]{display:grid;gap:3px;min-width:0}li strong[data-v-d8984f01],li span[data-v-d8984f01],li small[data-v-d8984f01]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-d8984f01]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-d8984f01]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-d8984f01]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-d8984f01]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-d8984f01]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-d8984f01]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-d8984f01]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-d8984f01]{display:none}}@media(max-width:820px){.web-shell[data-v-d8984f01]{grid-template-columns:1fr}.sidebar[data-v-d8984f01]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-d8984f01]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-d8984f01]{text-align:center}.dashboard-grid[data-v-d8984f01],.split-view[data-v-d8984f01],.settings-sections[data-v-d8984f01]{grid-template-columns:1fr}.topbar[data-v-d8984f01],.list-view header[data-v-d8984f01]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index 0867a41..f4ab6e8 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +