45 行
186 KiB
JavaScript
45 行
186 KiB
JavaScript
|
|
var Hu=Object.defineProperty;var Bu=(e,t,n)=>t in e?Hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Al=(e,t,n)=>Bu(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();/**
|
||
|
|
* @vue/shared v3.5.39
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/function ls(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ye={},qn=[],Rt=()=>{},Ui=()=>!1,Zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),el=e=>e.startsWith("onUpdate:"),Le=Object.assign,ss=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ju=Object.prototype.hasOwnProperty,pe=(e,t)=>ju.call(e,t),W=Array.isArray,On=e=>mo(e)==="[object Map]",tl=e=>mo(e)==="[object Set]",oi=e=>mo(e)==="[object Date]",J=e=>typeof e=="function",Ae=e=>typeof e=="string",Lt=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Wi=e=>(me(e)||J(e))&&J(e.then)&&J(e.catch),Ki=Object.prototype.toString,mo=e=>Ki.call(e),Uu=e=>mo(e).slice(8,-1),Gi=e=>mo(e)==="[object Object]",is=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,eo=ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nl=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Wu=/-\w/g,It=nl(e=>e.replace(Wu,t=>t.slice(1).toUpperCase())),Ku=/\B([A-Z])/g,rn=nl(e=>e.replace(Ku,"-$1").toLowerCase()),Qi=nl(e=>e.charAt(0).toUpperCase()+e.slice(1)),El=nl(e=>e?`on${Qi(e)}`:""),Ot=(e,t)=>!Object.is(e,t),No=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},zi=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},ol=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gu=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let li;const ll=()=>li||(li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fe(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],r=Ae(l)?Ju(l):Fe(l);if(r)for(const a in r)t[a]=r[a]}return t}else if(Ae(e)||me(e))return e}const Qu=/;(?![^(]*\))/g,zu=/:([^]+)/,Yu=/\/\*[^]*?\*\//g;function Ju(e){const t={};return e.replace(Yu,"").split(Qu).forEach(n=>{if(n){const l=n.split(zu);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function ee(e){let t="";if(Ae(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const l=ee(e[n]);l&&(t+=l+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Xu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zu=ls(Xu);function Yi(e){return!!e||e===""}function ec(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=go(e[l],t[l]);return n}function go(e,t){if(e===t)return!0;let n=oi(e),l=oi(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=Lt(e),l=Lt(t),n||l)return e===t;if(n=W(e),l=W(t),n||l)return n&&l?ec(e,t):!1;if(n=me(e),l=me(t),n||l){if(!n||!l)return!1;const r=Object.keys(e).length,a=Object.keys(t).length;if(r!==a)return!1;for(const u in e){const c=e.hasOwnProperty(u),d=t.hasOwnProperty(u);if(c&&!d||!c&&d||!go(e[u],t[u]))return!1}}return String(e)===String(t)}function tc(e,t){return e.findIndex(n=>go(n,t))}const Ji=e=>!!(e&&e.__v_isRef===!0),h=e=>Ae(e)?e:e==null?"":W(e)||me(e)&&(e.toString===Ki||!J(e.toString))?Ji(e)?h(e.value):JSON.stringify(e,Xi,2):String(e),Xi=(e,t)=>Ji(t)?Xi(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,r],a)=>(n[ql(l,a)+" =>"]=r,n),{})}:tl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ql(n))}:Lt(t)?ql(t):me(t)&&!W(t)&&!Gi(t)?String(t):t,ql=(e,t="")=>{var n;return Lt(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 Ve;class nc{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&&Ve&&(Ve.active?(this.parent=Ve,this.index=(Ve.scopes||(Ve.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=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){++this._on===1&&(this.prevScope=Ve,Ve=this)}off(){if(this._on>0&&--this._on===0){if(Ve===this)Ve=this.prevScope;else{let t=Ve;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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function oc(){return Ve}let we;const Ol=new WeakSet;class Zi{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,Ve&&(Ve.active?Ve.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ol.has(this)&&(Ol.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,si(this),nr(this);const t=we,n=xt;we=this,xt=!0;try{return this.fn()}finally{or(this),we=t,xt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)us(t);this.deps=this.depsTail=void 0,si(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ol.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wl(this)&&this.run()}get dirty(){return Wl(this)}}let er=0,to,no;function tr(e,t=!1){if(e.flags|=8,t){e.next=no,no=e;return}e.next=to,to=e}function rs(){er++}function as(){if(--er>0)return;if(no){let t=no;for(no=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;to;){let t=to;for(to=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 nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function or(e){let t,n=e.depsTail,l=n;for(;l;){const r=l.prevDep;l.version===-1?(l===n&&(n=r),us(l),lc(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=r}e.deps=t,e.depsTail=n}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ro)||(e.globalVersion=ro,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,n=we,l=xt;we=e,xt=!0;try{nr(e);const r=e.fn(e._value);(t.version===0||Ot(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{we=n,xt=l,or(e),e.flags&=-3}}function us(e,t=!1){const{dep:n,prevSub:l,nextSub:r}=e;if(l&&(l.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)us(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xt=!0;const sr=[];function Nt(){sr.push(xt),xt=!1}function Dt(){const e=sr.pop();xt=e===void 0?!0:
|
||
|
|
* @vue/runtime-core v3.5.39
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/function vo(e,t,n,l){try{return l?e(...l):e()}catch(r){il(r,t,n)}}function vt(e,t,n,l){if(J(e)){const r=vo(e,t,n,l);return r&&Wi(r)&&r.catch(a=>{il(a,t,n)}),r}if(W(e)){const r=[];for(let a=0;a<e.length;a++)r.push(vt(e[a],t,n,l));return r}}function il(e,t,n,l=!0){const r=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||ye;if(t){let c=t.parent;const d=t.proxy,v=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const p=c.ec;if(p){for(let C=0;C<p.length;C++)if(p[C](e,d,v)===!1)return}c=c.parent}if(a){Nt(),vo(a,null,10,[e,d,v]),Dt();return}}Ac(e,n,r,l,u)}function Ac(e,t,n,l=!0,r=!1){if(r)throw e;console.error(e)}const Je=[];let Tt=-1;const Rn=[];let ln=null,En=0;const mr=Promise.resolve();let Ho=null;function Bo(e){const t=Ho||mr;return e?t.then(this?e.bind(this):e):t}function Ec(e){let t=Tt+1,n=Je.length;for(;t<n;){const l=t+n>>>1,r=Je[l],a=uo(r);a<e||a===e&&r.flags&2?t=l+1:n=l}return t}function gs(e){if(!(e.flags&1)){const t=uo(e),n=Je[Je.length-1];!n||!(e.flags&2)&&t>=uo(n)?Je.push(e):Je.splice(Ec(t),0,e),e.flags|=1,gr()}}function gr(){Ho||(Ho=mr.then(hr))}function qc(e){W(e)?Rn.push(...e):ln&&e.id===-1?ln.splice(En+1,0,e):e.flags&1||(Rn.push(e),e.flags|=1),gr()}function ri(e,t,n=Tt+1){for(;n<Je.length;n++){const l=Je[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Je.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function vr(e){if(Rn.length){const t=[...new Set(Rn)].sort((n,l)=>uo(n)-uo(l));if(Rn.length=0,ln){ln.push(...t);return}for(ln=t,En=0;En<ln.length;En++){const n=ln[En];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ln=null,En=0}}const uo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hr(e){try{for(Tt=0;Tt<Je.length;Tt++){const t=Je[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tt<Je.length;Tt++){const t=Je[Tt];t&&(t.flags&=-2)}Tt=-1,Je.length=0,vr(),Ho=null,(Je.length||Rn.length)&&hr()}}let mt=null,br=null;function jo(e){const t=mt;return mt=e,br=e&&e.type.__scopeId||null,t}function ze(e,t=mt,n){if(!t||e._n)return e;const l=(...r)=>{l._d&&Ko(-1);const a=jo(t);let u;try{u=e(...r)}finally{jo(a),l._d&&Ko(1)}return u};return l._n=!0,l._c=!0,l._d=!0,l}function it(e,t){if(mt===null)return e;const n=dl(mt),l=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[a,u,c,d=ye]=t[r];a&&(J(a)&&(a={mounted:a,updated:a}),a.deep&&Gt(u),l.push({dir:a,instance:n,value:u,oldValue:void 0,arg:c,modifiers:d}))}return e}function vn(e,t,n,l){const r=e.dirs,a=t&&t.dirs;for(let u=0;u<r.length;u++){const c=r[u];a&&(c.oldValue=a[u].value);let d=c.dir[l];d&&(Nt(),vt(d,n,8,[e.el,c,e,t]),Dt())}}function Oc(e,t){if(Ze){let n=Ze.provides;const l=Ze.parent&&Ze.parent.provides;l===n&&(n=Ze.provides=Object.create(l)),n[e]=t}}function Do(e,t,n=!1){const l=ws();if(l||Ln){let r=Ln?Ln._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&J(t)?t.call(l&&l.proxy):t}}const Rc=Symbol.for("v-scx"),Lc=()=>Do(Rc);function At(e,t,n){return yr(e,t,n)}function yr(e,t,n=ye){const{immediate:l,deep:r,flush:a,once:u}=n,c=Le({},n),d=t&&l||!t&&a!=="post";let v;if(po){if(a==="sync"){const T=Lc();v=T.__watcherHandles||(T.__watcherHandles=[])}else if(!d){const T=()=>{};return T.stop=Rt,T.resume=Rt,T.pause=Rt,T}}const p=Ze;c.call=(T,Q,B)=>vt(T,p,Q,B);let C=!1;a==="post"?c.scheduler=T=>{lt(T,p&&p.suspense)}:a!=="sync"&&(C=!0,c.scheduler=(T,Q)=>{Q?T():gs(T)}),c.augmentJob=T=>{t&&(T.flags|=4),C&&(T.flags|=2,p&&(T.id=p.uid,T.i=p))};const $=Tc(e,t,c);return po&&(v?v.push($):d&&$()),$}function Nc(e,t,n){const l=this.proxy,r=Ae(e)?e.includes(".")?_r(l,e):()=>l[e]:e.bind(l,l);let a;J(t)?a=t:(a=t.handler,n=t);const u=ho(this),c=yr(r,a.bind(l),n);return u(),c}function _r(e,t){const n=t.split(".");return()=>{let l=e;for(let r=0;r<n.length&&l;r++)l=l[n[r]];return l}}const Dc=Symbol("_vte"),wr=e=>e.__isTeleport,pt=Symbol("_leaveCb"),Yn=Symbol("_enterCb");function kr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:
|
||
|
|
* @vue/runtime-dom v3.5.39
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/let ns;const wi=typeof window<"u"&&window.trustedTypes;if(wi)try{ns=wi.createPolicy("vue",{createHTML:e=>e})}catch{}const Zr=ns?e=>ns.createHTML(e):e=>e,Dd="http://www.w3.org/2000/svg",Fd="http://www.w3.org/1998/Math/MathML",Ut=typeof document<"u"?document:null,ki=Ut&&Ut.createElement("template"),Vd={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 r=t==="svg"?Ut.createElementNS(Dd,e):t==="mathml"?Ut.createElementNS(Fd,e):n?Ut.createElement(e,{is:n}):Ut.createElement(e);return e==="select"&&l&&l.multiple!=null&&r.setAttribute("multiple",l.multiple),r},createText:e=>Ut.createTextNode(e),createComment:e=>Ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,r,a){const u=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===a||!(r=r.nextSibling)););else{ki.innerHTML=Zr(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const c=ki.content;if(l==="svg"||l==="mathml"){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}t.insertBefore(c,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},nn="transition",Jn="animation",Fn=Symbol("_vtc"),ea={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ta=Le({},Cr,ea),Hd=e=>(e.displayName="Transition",e.props=ta,e),kt=Hd((e,{slots:t})=>Ld(Vc,na(e),t)),bn=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ci=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function na(e){const t={};for(const L in e)L in ea||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:l,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:d=a,appearActiveClass:v=u,appearToClass:p=c,leaveFromClass:C=`${n}-leave-from`,leaveActiveClass:$=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,Q=Bd(r),B=Q&&Q[0],ie=Q&&Q[1],{onBeforeEnter:re,onEnter:z,onEnterCancelled:Y,onLeave:V,onLeaveCancelled:se,onBeforeAppear:xe=re,onAppear:Ne=z,onAppearCancelled:ke=Y}=t,K=(L,de,qe,at)=>{L._enterCancelled=at,on(L,de?p:c),on(L,de?v:u),qe&&qe()},le=(L,de)=>{L._isLeaving=!1,on(L,C),on(L,T),on(L,$),de&&de()},ae=L=>(de,qe)=>{const at=L?Ne:z,Pe=()=>K(de,L,qe);bn(at,[de,Pe]),Ii(()=>{on(de,L?d:a),Mt(de,L?p:c),Ci(at)||xi(de,l,B,Pe)})};return Le(t,{onBeforeEnter(L){bn(re,[L]),Mt(L,a),Mt(L,u)},onBeforeAppear(L){bn(xe,[L]),Mt(L,d),Mt(L,v)},onEnter:ae(!1),onAppear:ae(!0),onLeave(L,de){L._isLeaving=!0;const qe=()=>le(L,de);Mt(L,C),L._enterCancelled?(Mt(L,$),os(L)):(os(L),Mt(L,$)),Ii(()=>{L._isLeaving&&(on(L,C),Mt(L,T),Ci(V)||xi(L,l,ie,qe))}),bn(V,[L,qe])},onEnterCancelled(L){K(L,!1,void 0,!0),bn(Y,[L])},onAppearCancelled(L){K(L,!0,void 0,!0),bn(ke,[L])},onLeaveCancelled(L){le(L),bn(se,[L])}})}function Bd(e){if(e==null)return null;if(me(e))return[Hl(e.enter),Hl(e.leave)];{const t=Hl(e);return[t,t]}}function Hl(e){return Gu(e)}function Mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Fn]||(e[Fn]=new Set)).add(t)}function on(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Fn];n&&(n.delete(t),n.size||(e[Fn]=void 0))}function Ii(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jd=0;function xi(e,t,n,l){const r=e._endId=++jd,a=()=>{r===e._endId&&l()};if(n!=null)return setTimeout(a,n);const{type:u,timeout:c,propCount:d}=oa(e,t);if(!u)return l();const v=u+"end";let p=0;const C=()=>{e.removeEventListener(v,$),a()},$=T=>{T.target===e&&++p>=d&&C()};setTimeout(()=>{p<d&&C()},c+1),e.addEventListener(v,$)}function oa(e,t){const n=window.getComputedStyle(e),l=Q=>(n[Q]||"").split(", "),r=l(`${nn}Delay`),a=l(`${nn}Duration`
|
||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="${ot}" height="${st}" viewBox="0 0 ${ot} ${st}" preserveAspectRatio="xMidYMid meet">
|
||
|
|
<defs>
|
||
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||
|
|
<stop offset="0%" stop-color="${G}" />
|
||
|
|
<stop offset="58%" stop-color="${Z}" />
|
||
|
|
<stop offset="100%" stop-color="#111827" />
|
||
|
|
</linearGradient>
|
||
|
|
<radialGradient id="halo" cx="72%" cy="22%" r="55%">
|
||
|
|
<stop offset="0%" stop-color="${y}" stop-opacity="0.82" />
|
||
|
|
<stop offset="100%" stop-color="${y}" stop-opacity="0" />
|
||
|
|
</radialGradient>
|
||
|
|
<pattern id="grid" width="${qo}" height="${qo}" patternUnits="userSpaceOnUse">
|
||
|
|
<path d="M${qo} 0H0V${qo}" fill="none" stroke="#ffffff" stroke-opacity="0.13" stroke-width="2" />
|
||
|
|
</pattern>
|
||
|
|
</defs>
|
||
|
|
<rect width="${ot}" height="${st}" fill="url(#bg)" />
|
||
|
|
<rect width="${ot}" height="${st}" fill="url(#grid)" />
|
||
|
|
<circle cx="${Eu}" cy="${qu}" r="${Ou}" fill="url(#halo)" />
|
||
|
|
<circle cx="${Ru}" cy="${Lu}" r="${Nu}" fill="#ffffff" opacity="0.11" />
|
||
|
|
<rect x="${wt}" y="${wt}" width="${Pu}" height="${Mu}" rx="${ei}" fill="#ffffff" opacity="0.14" />
|
||
|
|
<rect x="${gn}" y="${gn}" width="${Tu}" height="${Au}" rx="${Math.round(ei*.72)}" fill="#0f172a" opacity="0.24" />
|
||
|
|
<text x="${gn+Math.round(Be*.035)}" y="${ni}" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Su}" font-weight="700">IMAGESTUDIO TEST ${m}</text>
|
||
|
|
<text x="${gn+Math.round(Be*.035)}" y="${ti}" fill="#ffffff" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Iu}" font-weight="800">${he}</text>
|
||
|
|
<text x="${gn+Math.round(Be*.035)}" y="${Cu}" fill="#ffffff" opacity="0.78" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${xu}">${Ie}</text>
|
||
|
|
<text x="${Du}" y="${ni+Math.round(Be*.02)}" text-anchor="middle" fill="#ffffff" opacity="0.86" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${$u}" font-weight="900">${m}</text>
|
||
|
|
<text x="${ot-wt}" y="${st-Math.round(wt*.35)}" text-anchor="end" fill="#ffffff" opacity="0.72" font-family="Inter, Microsoft YaHei, sans-serif" font-size="${Math.max(18,Math.round(Be*.027))}" font-weight="800">${Fu}</text>
|
||
|
|
</svg>`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(Vu)}`}function du(o){const s=o.match(/(\d+)\s*x\s*(\d+)/i);if(!s)return[4,3];const b=Number(s[1]),M=Number(s[2]);if(!Number.isFinite(b)||!Number.isFinite(M)||b<=0||M<=0)return[4,3];const q=fu(b,M);return[Math.round(b/q),Math.round(M/q)]}function fu(o,s){let b=Math.abs(Math.round(o)),M=Math.abs(Math.round(s));for(;M;){const q=b%M;b=M,M=q}return b||1}function Ys(o){return o.replace(/[&<>"']/g,s=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[s]??s)}function Te(o){return"title"in o&&o.title?o.title:o.node_id||o.workflow_id||o.profile_id||Sl(o.image_id)}function Re(o){return o.thumbnail_url||o.image_url||""}function pu(o){if(o.status==="confirmed_unsupported")return!1;if(o.dialect==="openai_images"||o.dialect==="comfyui")return!0;const s=o.capabilities||{};return!!(s.text_to_image||s.image_generation||s.workflow_graph||Object.keys(s).some(b=>["text_to_image","image_generation","workflow_graph"].includes(b)))}function Sl(o){return o.length>10?`${o.slice(0,6)}...${o.slice(-4)}`:o}function mu(o){const s=Number(o.progress);return Number.isFinite(s)?Math.max(0,Math.min(100,s)):0}function gu(o,s,b){return Math.max(s,Math.min(b,o))}function $n(o){return String(o||"").trim().toLowerCase()}function vu(o){const s=$n(o);return["failed","dead_letter","cancelled"].includes(s)?"is-bad":["running","queued","created","pending"].includes(s)?"is-warn":["completed","succeeded"].includes(s)?"is-good":"is-idle"}function pn(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:o<1024*1024*1024?`${(o/1024/1024).toFixed(1)} MB`:`${(o/1024/1024/1024).toFixed(1)} GB`}function Mo(o){if(!o)return"-";const s=new Date(o);return Number.isNaN(s.getTime())?o:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(s)}function hu(o){const s=Tl(o.created_at);if(!s)return"-";const b=Math.max(0,Math.round((Date.now()-s)/6e4));return b<1?"刚刚":b<60?`${b} 分钟`:`${Math.round(b/60)} 小时`}function bu(){const o=localStorage.getItem(He.theme);(o==="light"||o==="dark")&&(et.value=o),yt.value=localStorage.getItem(He.primary)||yt.value,tt.value=localStorage.getItem(He.accent)||tt.value,D.value=Js(localStorage.getItem(He.readNotifications)),R.value=Js(localStorage.getItem(He.dismissedNotifications))}function yu(){localStorage.setItem(He.theme,et.value),localStorage.setItem(He.primary,yt.value),localStorage.setItem(He.accent,tt.value),localStorage.setItem(He.readNotifications,JSON.stringify(D.value)),localStorage.setItem(He.dismissedNotifications,JSON.stringify(R.value))}function Js(o){if(!o)return[];try{const s=JSON.parse(o);return Array.isArray(s)?s.filter(b=>typeof b=="string"):[]}catch{return[]}}function Ht(o,s){const b=Ml(o);return b?`rgba(${b.r}, ${b.g}, ${b.b}, ${s})`:`rgba(118, 104, 232, ${s})`}function $l(o,s,b){const M=Ml(o),q=Ml(s);if(!M||!q)return o;const G=Math.min(1,Math.max(0,b));return`#${Pl(M.r*(1-G)+q.r*G)}${Pl(M.g*(1-G)+q.g*G)}${Pl(M.b*(1-G)+q.b*G)}`}function Pl(o){return Math.round(o).toString(16).padStart(2,"0")}function Ml(o){const s=o.replace("#","");return/^[0-9a-fA-F]{6}$/.test(s)?{r:Number.parseInt(s.slice(0,2),16),g:Number.parseInt(s.slice(2,4),16),b:Number.parseInt(s.slice(4,6),16)}:null}function Xs(o,s){const b=o==null?void 0:o[s];return typeof b=="string"?b:""}function _u(o){return!To(o)||typeof o.task_id!="string"?null:{task_id:o.task_id,task_type:typeof o.task_type=="string"?o.task_type:"generation",status:typeof o.status=="string"?o.status:"created",progress:typeof o.progress=="number"?o.progress:0,created_at:typeof o.created_at=="string"?o.created_at:"",updated_at:typeof o.updated_at=="string"?o.updated_at:"",profile_id:typeof o.profile_id=="string"?o.profile_id:null,workflow_id:typeof o.workflow_id=="string"?o.workflow_id:null,node_id:typeof o.node_id=="string"?o.node_id:null,model_route:typeof o.model_route=="string"?o.model_route:null,idempotency_key:typeof o.idempotency_key=="string"?o.idempotency_key:null,request:To(o.request)?o.request:void 0,result:To(o.result)?o.result:void 0,met
|