astrbot_plugin_imagestudio/web/assets/index-tce9D-Z6.js

18 行
125 KiB
JavaScript

2026-07-05 15:18:41 +08:00
var Qi=Object.defineProperty;var Xi=(e,t,n)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>Xi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ve={},Ht=[],dt=()=>{},Wo=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Te=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zi=Object.prototype.hasOwnProperty,re=(e,t)=>Zi.call(e,t),W=Array.isArray,Kt=e=>hn(e)==="[object Map]",Wn=e=>hn(e)==="[object Set]",co=e=>hn(e)==="[object Date]",q=e=>typeof e=="function",we=e=>typeof e=="string",ft=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ho=e=>(ce(e)||q(e))&&q(e.then)&&q(e.catch),Ko=Object.prototype.toString,hn=e=>Ko.call(e),er=e=>hn(e).slice(8,-1),qo=e=>hn(e)==="[object Object]",Il=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nn=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},tr=/-\w/g,tt=Hn(e=>e.replace(tr,t=>t.slice(1).toUpperCase())),nr=/\B([A-Z])/g,Lt=Hn(e=>e.replace(nr,"-$1").toLowerCase()),Jo=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),il=Hn(e=>e?`on${Jo(e)}`:""),ct=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Go=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fo;const qn=()=>fo||(fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Al(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],s=we(l)?ir(l):Al(l);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||ce(e))return e}const lr=/;(?![^(]*\))/g,or=/:([^]+)/,sr=/\/\*[^]*?\*\//g;function ir(e){const t={};return e.replace(sr,"").split(lr).forEach(n=>{if(n){const l=n.split(or);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const l=Jn(e[n]);l&&(t+=l+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ar=El(rr);function zo(e){return!!e||e===""}function ur(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=gn(e[l],t[l]);return n}function gn(e,t){if(e===t)return!0;let n=co(e),l=co(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=ft(e),l=ft(t),n||l)return e===t;if(n=W(e),l=W(t),n||l)return n&&l?ur(e,t):!1;if(n=ce(e),l=ce(t),n||l){if(!n||!l)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const u in e){const d=e.hasOwnProperty(u),v=t.hasOwnProperty(u);if(d&&!v||!d&&v||!gn(e[u],t[u]))return!1}}return String(e)===String(t)}function cr(e,t){return e.findIndex(n=>gn(n,t))}const Yo=e=>!!(e&&e.__v_isRef===!0),a=e=>we(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===Ko||!q(e.toString))?Yo(e)?a(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Yo(t)?Qo(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[rl(l,i)+" =>"]=s,n),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rl(n))}:ft(t)?rl(t):ce(t)&&!W(t)&&!qo(t)?String(t):t,rl=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let De;class dr{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&&De&&(De.active?(this.parent=De,this.index=(De.scopes||(De.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){++this._on===1&&(this.prevScope=De,De=this)}off(){if(this._on>0&&--this._on===0){if(De===this)De=this.prevScope;else{let t=De;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function fr(){return De}let ge;const al=new WeakSet;class Xo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,De&&(De.active?De.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,al.has(this)&&(al.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||es(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,po(this),ts(this);const t=ge,n=nt;ge=this,nt=!0;try{return this.fn()}finally{ns(this),ge=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Rl(t);this.deps=this.depsTail=void 0,po(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?al.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ml(this)&&this.run()}get dirty(){return ml(this)}}let Zo=0,ln,on;function es(e,t=!1){if(e.flags|=8,t){e.next=on,on=e;return}e.next=ln,ln=e}function Ml(){Zo++}function $l(){if(--Zo>0)return;if(on){let t=on;for(on=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function ts(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ns(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),pr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function ml(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ls(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ls(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ml(e))))return;e.flags|=2;const t=e.dep,n=ge,l=nt;ge=e,nt=!0;try{ts(e);const s=e.fn(e._value);(t.version===0||ct(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,nt=l,ns(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const os=[];function pt(){os.push(nt),nt=!1}function vt(){const e=os.pop();nt=e===void 0?!0:
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function _n(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function ot(e,t,n,l){if(q(e)){const s=_n(e,t,n,l);return s&&Ho(s)&&s.catch(i=>{zn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ot(e[i],t,n,l));return s}}function zn(e,t,n,l=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||ve;if(t){let d=t.parent;const v=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${n}`;for(;d;){const _=d.ec;if(_){for(let w=0;w<_.length;w++)if(_[w](e,v,m)===!1)return}d=d.parent}if(i){pt(),_n(i,null,10,[e,v,m]),vt();return}}Fr(e,n,s,l,u)}function Fr(e,t,n,l=!0,s=!1){if(s)throw e;console.error(e)}const Ve=[];let rt=-1;const qt=[];let Tt=null,Wt=0;const ps=Promise.resolve();let Mn=null;function vs(e){const t=Mn||ps;return e?t.then(this?e.bind(this):e):t}function Nr(e){let t=rt+1,n=Ve.length;for(;t<n;){const l=t+n>>>1,s=Ve[l],i=fn(s);i<e||i===e&&s.flags&2?t=l+1:n=l}return t}function Nl(e){if(!(e.flags&1)){const t=fn(e),n=Ve[Ve.length-1];!n||!(e.flags&2)&&t>=fn(n)?Ve.push(e):Ve.splice(Nr(t),0,e),e.flags|=1,hs()}}function hs(){Mn||(Mn=ps.then(_s))}function jr(e){W(e)?qt.push(...e):Tt&&e.id===-1?Tt.splice(Wt+1,0,e):e.flags&1||(qt.push(e),e.flags|=1),hs()}function ho(e,t,n=rt+1){for(;n<Ve.length;n++){const l=Ve[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function gs(e){if(qt.length){const t=[...new Set(qt)].sort((n,l)=>fn(n)-fn(l));if(qt.length=0,Tt){Tt.push(...t);return}for(Tt=t,Wt=0;Wt<Tt.length;Wt++){const n=Tt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Tt=null,Wt=0}}const fn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _s(e){try{for(rt=0;rt<Ve.length;rt++){const t=Ve[rt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_n(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rt<Ve.length;rt++){const t=Ve[rt];t&&(t.flags&=-2)}rt=-1,Ve.length=0,gs(),Mn=null,(Ve.length||qt.length)&&_s()}}let Ye=null,ms=null;function $n(e){const t=Ye;return Ye=e,ms=e&&e.type.__scopeId||null,t}function Wr(e,t=Ye,n){if(!t||e._n)return e;const l=(...s)=>{l._d&&Po(-1);const i=$n(t);let u;try{u=e(...s)}finally{$n(i),l._d&&Po(1)}return u};return l._n=!0,l._c=!0,l._d=!0,l}function A(e,t){if(Ye===null)return e;const n=Zn(Ye),l=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,u,d,v=ve]=t[s];i&&(q(i)&&(i={mounted:i,updated:i}),i.deep&&kt(u),l.push({dir:i,instance:n,value:u,oldValue:void 0,arg:d,modifiers:v}))}return e}function At(e,t,n,l){const s=e.dirs,i=t&&t.dirs;for(let u=0;u<s.length;u++){const d=s[u];i&&(d.oldValue=i[u].value);let v=d.dir[l];v&&(pt(),ot(v,n,8,[e.el,d,e,t]),vt())}}function Hr(e,t){if(Le){let n=Le.provides;const l=Le.parent&&Le.parent.provides;l===n&&(n=Le.provides=Object.create(l)),n[e]=t}}function On(e,t,n=!1){const l=Ha();if(l||Jt){let s=Jt?Jt._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&q(t)?t.call(l&&l.proxy):t}}const Kr=Symbol.for("v-scx"),qr=()=>On(Kr);function dl(e,t,n){return ys(e,t,n)}function ys(e,t,n=ve){const{immediate:l,deep:s,flush:i,once:u}=n,d=Te({},n),v=t&&l||!t&&i!=="post";let m;if(vn){if(i==="sync"){const M=qr();m=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=dt,M.resume=dt,M.pause=dt,M}}const _=Le;d.call=(M,X,N)=>ot(M,_,X,N);let w=!1;i==="post"?d.scheduler=M=>{Ne(M,_&&_.suspense)}:i!=="sync"&&(w=!0,d.scheduler=(M,X)=>{X?M():Nl(M)}),d.augmentJob=M=>{t&&(M.flags|=4),w&&(M.flags|=2,_&&(M.id=_.uid,M.i=_))};const O=Lr(e,t,d);return vn&&(m?m.push(O):v&&O()),O}function Jr(e,t,n){const l=this.proxy,s=we(e)?e.includes(".")?bs(l,e):()=>l[e]:e.bind(l,l);let i;q(t)?i=t:(i=t.handler,n=t);const u=mn(this),d=ys(s,i.bind(l),n);return u(),d}function bs(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;s<n.length&&l;s++)l=l[n[s]];return l}}const Gr=Symbol("_vte"),zr=e=>e.__isTeleport,fl=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(e.component.subTree,t)):e.shapeFlag&128
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Tl;const Eo=typeof window<"u"&&window.trustedTypes;if(Eo)try{Tl=Eo.createPolicy("vue",{createHTML:e=>e})}catch{}const Gs=Tl?e=>Tl.createHTML(e):e=>e,Qa="http://www.w3.org/2000/svg",Xa="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Oo=yt&&yt.createElement("template"),Za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?yt.createElementNS(Qa,e):t==="mathml"?yt.createElementNS(Xa,e):n?yt.createElement(e,{is:n}):yt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const u=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Oo.innerHTML=Gs(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const d=Oo.content;if(l==="svg"||l==="mathml"){const v=d.firstChild;for(;v.firstChild;)d.appendChild(v.firstChild);d.removeChild(v)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},eu=Symbol("_vtc");function tu(e,t,n){const l=e[eu];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),nu=Symbol("_vsh"),lu=Symbol(""),ou=/(?:^|;)\s*display\s*:/;function su(e,t,n){const l=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&tn(l,d,"")}else for(const u in t)n[u]==null&&tn(l,u,"");for(const u in n){u==="display"&&(i=!0);const d=n[u];d!=null?ru(e,u,!we(t)&&t?t[u]:void 0,d)||tn(l,u,d):tn(l,u,"")}}else if(s){if(t!==n){const u=l[lu];u&&(n+=";"+u),l.cssText=n,i=ou.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=i?l.display:"",e[nu]&&(l.display="none"))}const Ao=/\s*!important$/;function tn(e,t,n){if(W(n))n.forEach(l=>tn(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=iu(e,t);Ao.test(n)?e.setProperty(Lt(l),n.replace(Ao,""),"important"):e[l]=n}}const Mo=["Webkit","Moz","ms"],gl={};function iu(e,t){const n=gl[t];if(n)return n;let l=tt(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Jo(l);for(let s=0;s<Mo.length;s++){const i=Mo[s]+l;if(i in e)return gl[t]=i}return t}function ru(e,t,n,l){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&we(l)&&n===l}const $o="http://www.w3.org/1999/xlink";function Ro(e,t,n,l,s,i=ar(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS($o,t.slice(6,t.length)):e.setAttributeNS($o,t,n):n==null||i&&!zo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":ft(n)?String(n):n)}function Uo(e,t,n,l,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Gs(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const d=i==="OPTION"?e.getAttribute("value")||"":e.value,v=n==null?e.type==="checkbox"?"on":"":String(n);(d!==v||!("_value"in e))&&(e.value=v),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=zo(n):n==null&&d==="string"?(n="",u=!0):d==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(s||t)}function Ut(e,t,n,l){e.addEventListener(t,n,l)}function au(e,t,n,l){e.removeEventListener(t,n,l)}const Bo=Symbol("_vei");function uu(e,t,n,l,s=null){const i=e[Bo]||(e[Bo]={}),u=i[t];if(l&&u)u.value=l;else{const[d,v]=fu(t);if(l){const m=i[t]=hu(l,s);Ut(e,d,m,v)}else u&&(au(e,d,u,v),i[t]=void 0)}}const cu=/(Once|Passive|Capture)$/,du=/^on:?(?:Once|Passive|Capture)$/;function fu(e){let t,n;for(;(n=e.match(cu))&&!du.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let _l=0;const pu=Promise.resolve(),vu=()=>_l||(pu.then(()=>_l=0),_l=Dat