diff --git "a/assets/index-iH_BHO_3.js" "b/assets/index-iH_BHO_3.js" new file mode 100644--- /dev/null +++ "b/assets/index-iH_BHO_3.js" @@ -0,0 +1,29 @@ +var ki=Object.defineProperty;var Ni=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Me=(e,t,n)=>(Ni(e,typeof t!="symbol"?t+"":t,n),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"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ks(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Q={},vt=[],Se=()=>{},Ui=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ns=e=>e.startsWith("onUpdate:"),ue=Object.assign,Us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hi=Object.prototype.hasOwnProperty,W=(e,t)=>Hi.call(e,t),H=Array.isArray,wt=e=>Pn(e)==="[object Map]",fo=e=>Pn(e)==="[object Set]",V=e=>typeof e=="function",oe=e=>typeof e=="string",At=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",ho=e=>(se(e)||V(e))&&V(e.then)&&V(e.catch),po=Object.prototype.toString,Pn=e=>po.call(e),Vi=e=>Pn(e).slice(8,-1),mo=e=>Pn(e)==="[object Object]",Hs=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bi=/-(\w)/g,ct=Ln(e=>e.replace(Bi,(t,n)=>n?n.toUpperCase():"")),Di=/\B([A-Z])/g,dt=Ln(e=>e.replace(Di,"-$1").toLowerCase()),go=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),es=Ln(e=>e?`on${go(e)}`:""),He=(e,t)=>!Object.is(e,t),mn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ps=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yr;const yo=()=>yr||(yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(Wi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function De(e){let t="";if(oe(e))t=e;else if(H(e))for(let n=0;noe(e)?e:e==null?"":H(e)||se(e)&&(e.toString===po||!V(e.toString))?JSON.stringify(e,_o,2):String(e),_o=(e,t)=>t&&t.__v_isRef?_o(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ts(s,o)+" =>"]=r,n),{})}:fo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ts(n))}:At(t)?ts(t):se(t)&&!H(t)&&!mo(t)?String(t):t,ts=(e,t="")=>{var n;return At(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Oe;class Ji{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Oe,!t&&Oe&&(this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Oe;try{return Oe=this,t()}finally{Oe=n}}}on(){Oe=this}off(){Oe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ye,n=lt;try{return Ye=!0,lt=this,this._runnings++,br(this),this.fn()}finally{_r(this),this._runnings--,lt=n,Ye=t}}stop(){var t;this.active&&(br(this),_r(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Xi(e){return e.value}function br(e){e._trackId++,e._depsLength=0}function _r(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ys=new WeakMap,at=Symbol(""),bs=Symbol("");function be(e,t,n){if(Ye&<){let s=ys.get(e);s||ys.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=To(()=>s.delete(n))),xo(lt,r)}}function je(e,t,n,s,r,o){const i=ys.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&H(e)){const a=Number(s);i.forEach((c,f)=>{(f==="length"||!At(f)&&f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":H(e)?Hs(n)&&l.push(i.get("length")):(l.push(i.get(at)),wt(e)&&l.push(i.get(bs)));break;case"delete":H(e)||(l.push(i.get(at)),wt(e)&&l.push(i.get(bs)));break;case"set":wt(e)&&l.push(i.get(at));break}Bs();for(const a of l)a&&Eo(a,2);Ds()}const Qi=ks("__proto__,__v_isRef,__isVue"),Co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(At)),vr=el();function el(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=K(this);for(let o=0,i=this.length;o{e[t]=function(...n){ht(),Bs();const s=K(this)[t].apply(this,n);return Ds(),pt(),s}}),e}function tl(e){const t=K(this);return be(t,"has",e),t.hasOwnProperty(e)}class Ao{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?pl:Po:o?Ro:Io).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=H(t);if(!r){if(i&&W(vr,n))return Reflect.get(vr,n,s);if(n==="hasOwnProperty")return tl}const l=Reflect.get(t,n,s);return(At(n)?Co.has(n):Qi(n))||(r||be(t,"get",n),o)?l:Y(l)?i&&Hs(n)?l:l.value:se(l)?r?Lo(l):qs(l):l}}class Oo extends Ao{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const a=St(o);if(!Sn(s)&&!St(s)&&(o=K(o),s=K(s)),!H(t)&&Y(o)&&!Y(s))return a?!1:(o.value=s,!0)}const i=H(t)&&Hs(n)?Number(n)e,Fn=e=>Reflect.getPrototypeOf(e);function sn(e,t,n=!1,s=!1){e=e.__v_raw;const r=K(e),o=K(t);n||(He(t,o)&&be(r,"get",t),be(r,"get",o));const{has:i}=Fn(r),l=s?js:n?Ks:Wt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function rn(e,t=!1){const n=this.__v_raw,s=K(n),r=K(e);return t||(He(e,r)&&be(s,"has",e),be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function on(e,t=!1){return e=e.__v_raw,!t&&be(K(e),"iterate",at),Reflect.get(e,"size",e)}function wr(e){e=K(e);const t=K(this);return Fn(t).has.call(t,e)||(t.add(e),je(t,"add",e,e)),this}function xr(e,t){t=K(t);const n=K(this),{has:s,get:r}=Fn(n);let o=s.call(n,e);o||(e=K(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?He(t,i)&&je(n,"set",e,t):je(n,"add",e,t),this}function Er(e){const t=K(this),{has:n,get:s}=Fn(t);let r=n.call(t,e);r||(e=K(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&je(t,"delete",e,void 0),o}function Sr(){const e=K(this),t=e.size!==0,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ln(e,t){return function(s,r){const o=this,i=o.__v_raw,l=K(i),a=t?js:e?Ks:Wt;return!e&&be(l,"iterate",at),i.forEach((c,f)=>s.call(r,a(c),a(f),o))}}function an(e,t,n){return function(...s){const r=this.__v_raw,o=K(r),i=wt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),f=n?js:t?Ks:Wt;return!t&&be(o,"iterate",a?bs:at),{next(){const{value:d,done:g}=c.next();return g?{value:d,done:g}:{value:l?[f(d[0]),f(d[1])]:f(d),done:g}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function il(){const e={get(o){return sn(this,o)},get size(){return on(this)},has:rn,add:wr,set:xr,delete:Er,clear:Sr,forEach:ln(!1,!1)},t={get(o){return sn(this,o,!1,!0)},get size(){return on(this)},has:rn,add:wr,set:xr,delete:Er,clear:Sr,forEach:ln(!1,!0)},n={get(o){return sn(this,o,!0)},get size(){return on(this,!0)},has(o){return rn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:ln(!0,!1)},s={get(o){return sn(this,o,!0,!0)},get size(){return on(this,!0)},has(o){return rn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=an(o,!1,!1),n[o]=an(o,!0,!1),t[o]=an(o,!1,!0),s[o]=an(o,!0,!0)}),[e,n,t,s]}const[ll,al,cl,ul]=il();function Ws(e,t){const n=t?e?ul:cl:e?al:ll;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(W(n,r)&&r in s?n:s,r,o)}const fl={get:Ws(!1,!1)},dl={get:Ws(!1,!0)},hl={get:Ws(!0,!1)},Io=new WeakMap,Ro=new WeakMap,Po=new WeakMap,pl=new WeakMap;function ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gl(e){return e.__v_skip||!Object.isExtensible(e)?0:ml(Vi(e))}function qs(e){return St(e)?e:zs(e,!1,sl,fl,Io)}function yl(e){return zs(e,!1,ol,dl,Ro)}function Lo(e){return zs(e,!0,rl,hl,Po)}function zs(e,t,n,s,r){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=gl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function xt(e){return St(e)?xt(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function Mo(e){return xt(e)||St(e)}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function Fo(e){return En(e,"__v_skip",!0),e}const Wt=e=>se(e)?qs(e):e,Ks=e=>se(e)?Lo(e):e;class $o{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Vs(()=>t(this._value),()=>Bt(this,1),()=>this.dep&&So(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=K(this);return(!t._cacheable||t.effect.dirty)&&He(t._value,t._value=t.effect.run())&&Bt(t,2),Gs(t),t.effect._dirtyLevel>=1&&Bt(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function bl(e,t,n=!1){let s,r;const o=V(e);return o?(s=e,r=Se):(s=e.get,r=e.set),new $o(s,r,o||!r,n)}function Gs(e){Ye&<&&(e=K(e),xo(lt,e.dep||(e.dep=To(()=>e.dep=void 0,e instanceof $o?e:void 0))))}function Bt(e,t=2,n){e=K(e);const s=e.dep;s&&Eo(s,t)}function Y(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return _l(e,!1)}function _l(e,t){return Y(e)?e:new vl(e,t)}class vl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:K(t),this._value=n?t:Wt(t)}get value(){return Gs(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||St(t);t=n?t:K(t),He(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Wt(t),Bt(this,2))}}function z(e){return Y(e)?e.value:e}const wl={get:(e,t,n)=>z(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Y(r)&&!Y(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ko(e){return xt(e)?e:new Proxy(e,wl)}class xl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Gs(this),()=>Bt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function El(e){return new xl(e)}/** +* @vue/runtime-core v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Xe(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){$n(o,t,n)}return r}function Re(e,t,n,s){if(V(e)){const o=Xe(e,t,n,s);return o&&ho(o)&&o.catch(i=>{$n(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=ae[s],o=zt(r);oke&&ae.splice(t,1)}function Al(e){H(e)?Et.push(...e):(!Ge||!Ge.includes(e,e.allowRecurse?rt+1:rt))&&Et.push(e),Uo()}function Tr(e,t,n=qt?ke+1:0){for(;nzt(n)-zt(s));if(Et.length=0,Ge){Ge.push(...t);return}for(Ge=t,rt=0;rte.id==null?1/0:e.id,Ol=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Vo(e){_s=!1,qt=!0,ae.sort(Ol);try{for(ke=0;keoe(I)?I.trim():I)),d&&(r=n.map(ps))}let l,a=s[l=es(t)]||s[l=es(ct(t))];!a&&o&&(a=s[l=es(dt(t))]),a&&Re(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Re(c,e,6,r)}}function Bo(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!V(e)){const a=c=>{const f=Bo(c,t,!0);f&&(l=!0,ue(i,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(se(e)&&s.set(e,null),null):(H(o)?o.forEach(a=>i[a]=null):ue(i,o),se(e)&&s.set(e,i),i)}function kn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,dt(t))||W(e,t))}let ge=null,Nn=null;function Tn(e){const t=ge;return ge=e,Nn=e&&e.type.__scopeId||null,t}function Ys(e){Nn=e}function Xs(){Nn=null}function Rl(e,t=ge,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&$r(-1);const o=Tn(t);let i;try{i=e(...r)}finally{Tn(o),s._d&&$r(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ns(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:a,emit:c,render:f,renderCache:d,data:g,setupState:I,ctx:A,inheritAttrs:E}=e;let F,$;const B=Tn(e);try{if(n.shapeFlag&4){const S=r||s,G=S;F=$e(f.call(G,S,d,o,I,g,A)),$=a}else{const S=t;F=$e(S.length>1?S(o,{attrs:a,slots:l,emit:c}):S(o,null)),$=t.props?a:Pl(a)}}catch(S){jt.length=0,$n(S,e,1),F=re(ft)}let m=F;if($&&E!==!1){const S=Object.keys($),{shapeFlag:G}=m;S.length&&G&7&&(i&&S.some(Ns)&&($=Ll($,i)),m=Tt(m,$))}return n.dirs&&(m=Tt(m),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),F=m,Tn(B),F}const Pl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rn(n))&&((t||(t={}))[n]=e[n]);return t},Ll=(e,t)=>{const n={};for(const s in e)(!Ns(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ml(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Cr(s,i,c):!!i;if(a&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function Nl(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Al(e)}const Ul=Symbol.for("v-scx"),Hl=()=>yn(Ul);function Vl(e,t){return Un(e,null,{flush:"post"})}function Bl(e,t){return Un(e,null,{flush:"sync"})}const cn={};function Ue(e,t,n){return Un(e,t,n)}function Un(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=Q){if(t&&o){const x=t;t=(...P)=>{x(...P),G()}}const a=ce,c=x=>s===!0?x:ot(x,s===!1?1:void 0);let f,d=!1,g=!1;if(Y(e)?(f=()=>e.value,d=Sn(e)):xt(e)?(f=()=>c(e),d=!0):H(e)?(g=!0,d=e.some(x=>xt(x)||Sn(x)),f=()=>e.map(x=>{if(Y(x))return x.value;if(xt(x))return c(x);if(V(x))return Xe(x,a,2)})):V(e)?t?f=()=>Xe(e,a,2):f=()=>(I&&I(),Re(e,a,3,[A])):f=Se,t&&s){const x=f;f=()=>ot(x())}let I,A=x=>{I=m.onStop=()=>{Xe(x,a,4),I=m.onStop=void 0}},E;if(Dn)if(A=Se,t?n&&Re(t,a,3,[f(),g?[]:void 0,A]):f(),r==="sync"){const x=Hl();E=x.__watcherHandles||(x.__watcherHandles=[])}else return Se;let F=g?new Array(e.length).fill(cn):cn;const $=()=>{if(!(!m.active||!m.dirty))if(t){const x=m.run();(s||d||(g?x.some((P,T)=>He(P,F[T])):He(x,F)))&&(I&&I(),Re(t,a,3,[x,F===cn?void 0:g&&F[0]===cn?[]:F,A]),F=x)}else m.run()};$.allowRecurse=!!t;let B;r==="sync"?B=$:r==="post"?B=()=>he($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),B=()=>Zs($));const m=new Vs(f,Se,B),S=Yi(),G=()=>{m.stop(),S&&Us(S.effects,m)};return t?n?$():F=m.run():r==="post"?he(m.run.bind(m),a&&a.suspense):m.run(),E&&E.push(G),G}function Dl(e,t,n){const s=this.proxy,r=oe(e)?e.includes(".")?Do(s,e):()=>s[e]:e.bind(s,s);let o;V(t)?o=t:(o=t.handler,n=t);const i=Jt(this),l=Un(r,o.bind(s),n);return i(),l}function Do(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),Y(e))ot(e.value,t,n,s);else if(H(e))for(let r=0;r{ot(r,t,n,s)});else if(mo(e))for(const r in e)ot(e[r],t,n,s);return e}function le(e,t){if(ge===null)return e;const n=jn(ge)||ge.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,jo=e=>e.type.__isKeepAlive;function jl(e,t){Wo(e,"a",t)}function Wl(e,t){Wo(e,"da",t)}function Wo(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Hn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)jo(r.parent.vnode)&&ql(s,t,n,r),r=r.parent}}function ql(e,t,n,s){const r=Hn(t,e,s,!0);Ot(()=>{Us(s[t],r)},n)}function Hn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ht();const l=Jt(n),a=Re(t,n,e,i);return l(),pt(),a});return s?r.unshift(o):r.push(o),o}}const qe=e=>(t,n=ce)=>(!Dn||e==="sp")&&Hn(e,(...s)=>t(...s),n),zl=qe("bm"),mt=qe("m"),Kl=qe("bu"),Gl=qe("u"),Jl=qe("bum"),Ot=qe("um"),Zl=qe("sp"),Yl=qe("rtg"),Xl=qe("rtc");function Ql(e,t=ce){Hn("ec",e,t)}function Qs(e,t,n,s){let r;const o=n&&n[s];if(H(e)||oe(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;le?si(e)?jn(e)||e.proxy:vs(e.parent):null,Dt=ue(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=>vs(e.parent),$root:e=>vs(e.root),$emit:e=>e.emit,$options:e=>er(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Zs(e.update)}),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>Dl.bind(e)}),ss=(e,t)=>e!==Q&&!e.__isScriptSetup&&W(e,t),ea={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const I=i[t];if(I!==void 0)switch(I){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ss(s,t))return i[t]=1,s[t];if(r!==Q&&W(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&W(c,t))return i[t]=3,o[t];if(n!==Q&&W(n,t))return i[t]=4,n[t];ws&&(i[t]=0)}}const f=Dt[t];let d,g;if(f)return t==="$attrs"&&be(e,"get",t),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Q&&W(n,t))return i[t]=4,n[t];if(g=a.config.globalProperties,W(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ss(r,t)?(r[t]=n,!0):s!==Q&&W(s,t)?(s[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==Q&&W(e,i)||ss(t,i)||(l=o[0])&&W(l,i)||W(s,i)||W(Dt,i)||W(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ar(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ws=!0;function ta(e){const t=er(e),n=e.proxy,s=e.ctx;ws=!1,t.beforeCreate&&Or(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:f,beforeMount:d,mounted:g,beforeUpdate:I,updated:A,activated:E,deactivated:F,beforeDestroy:$,beforeUnmount:B,destroyed:m,unmounted:S,render:G,renderTracked:x,renderTriggered:P,errorCaptured:T,serverPrefetch:Ee,expose:Qe,inheritAttrs:Rt,components:Qt,directives:en,filters:Zn}=t;if(c&&na(c,s,null),i)for(const ne in i){const X=i[ne];V(X)&&(s[ne]=X.bind(n))}if(r){const ne=r.call(n,n);se(ne)&&(e.data=qs(ne))}if(ws=!0,o)for(const ne in o){const X=o[ne],et=V(X)?X.bind(n,n):V(X.get)?X.get.bind(n,n):Se,tn=!V(X)&&V(X.set)?X.set.bind(n):Se,tt=oi({get:et,set:tn});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Pe=>tt.value=Pe})}if(l)for(const ne in l)qo(l[ne],s,n,ne);if(a){const ne=V(a)?a.call(n):a;Reflect.ownKeys(ne).forEach(X=>{aa(X,ne[X])})}f&&Or(f,e,"c");function fe(ne,X){H(X)?X.forEach(et=>ne(et.bind(n))):X&&ne(X.bind(n))}if(fe(zl,d),fe(mt,g),fe(Kl,I),fe(Gl,A),fe(jl,E),fe(Wl,F),fe(Ql,T),fe(Xl,x),fe(Yl,P),fe(Jl,B),fe(Ot,S),fe(Zl,Ee),H(Qe))if(Qe.length){const ne=e.exposed||(e.exposed={});Qe.forEach(X=>{Object.defineProperty(ne,X,{get:()=>n[X],set:et=>n[X]=et})})}else e.exposed||(e.exposed={});G&&e.render===Se&&(e.render=G),Rt!=null&&(e.inheritAttrs=Rt),Qt&&(e.components=Qt),en&&(e.directives=en)}function na(e,t,n=Se){H(e)&&(e=xs(e));for(const s in e){const r=e[s];let o;se(r)?"default"in r?o=yn(r.from||s,r.default,!0):o=yn(r.from||s):o=yn(r),Y(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Or(e,t,n){Re(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function qo(e,t,n,s){const r=s.includes(".")?Do(n,s):()=>n[s];if(oe(e)){const o=t[e];V(o)&&Ue(r,o)}else if(V(e))Ue(r,e.bind(n));else if(se(e))if(H(e))e.forEach(o=>qo(o,t,n,s));else{const o=V(e.handler)?e.handler.bind(n):t[e.handler];V(o)&&Ue(r,o,e)}}function er(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Cn(a,c,i,!0)),Cn(a,t,i)),se(t)&&o.set(t,a),a}function Cn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Cn(e,o,n,!0),r&&r.forEach(i=>Cn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=sa[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const sa={data:Ir,props:Rr,emits:Rr,methods:Vt,computed:Vt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Vt,directives:Vt,watch:oa,provide:Ir,inject:ra};function Ir(e,t){return t?e?function(){return ue(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function ra(e,t){return Vt(xs(e),xs(t))}function xs(e){if(H(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function ca(e,t,n,s=!1){const r={},o={};En(o,Bn,1),e.propsDefaults=Object.create(null),Ko(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:yl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ua(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=K(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[g,I]=Go(d,t,!0);ue(i,g),I&&l.push(...I)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return se(e)&&s.set(e,vt),vt;if(H(o))for(let f=0;f-1,I[1]=E<0||A-1||W(I,"default"))&&l.push(d)}}}const c=[i,l];return se(e)&&s.set(e,c),c}function Pr(e){return e[0]!=="$"}function Lr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mr(e,t){return Lr(e)===Lr(t)}function Fr(e,t){return H(t)?t.findIndex(n=>Mr(n,e)):V(t)&&Mr(t,e)?0:-1}const Jo=e=>e[0]==="_"||e==="$stable",tr=e=>H(e)?e.map($e):[$e(e)],fa=(e,t,n)=>{if(t._n)return t;const s=Rl((...r)=>tr(t(...r)),n);return s._c=!1,s},Zo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Jo(r))continue;const o=e[r];if(V(o))t[r]=fa(r,o,s);else if(o!=null){const i=tr(o);t[r]=()=>i}}},Yo=(e,t)=>{const n=tr(t);e.slots.default=()=>n},da=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=K(t),En(t,"_",n)):Zo(t,e.slots={})}else e.slots={},t&&Yo(e,t);En(e.slots,Bn,1)},ha=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=Q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ue(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Zo(t,r)),i=t}else t&&(Yo(e,t),i={default:1});if(o)for(const l in r)!Jo(l)&&i[l]==null&&delete r[l]};function Ss(e,t,n,s,r=!1){if(H(e)){e.forEach((g,I)=>Ss(g,t&&(H(t)?t[I]:t),n,s,r));return}if(gn(s)&&!r)return;const o=s.shapeFlag&4?jn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,f=l.refs===Q?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(oe(c)?(f[c]=null,W(d,c)&&(d[c]=null)):Y(c)&&(c.value=null)),V(a))Xe(a,l,12,[i,f]);else{const g=oe(a),I=Y(a),A=e.f;if(g||I){const E=()=>{if(A){const F=g?W(d,a)?d[a]:f[a]:a.value;r?H(F)&&Us(F,o):H(F)?F.includes(o)||F.push(o):g?(f[a]=[o],W(d,a)&&(d[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else g?(f[a]=i,W(d,a)&&(d[a]=i)):I&&(a.value=i,e.k&&(f[e.k]=i))};r||A?E():(E.id=-1,he(E,n))}}}const he=Nl;function pa(e){return ma(e)}function ma(e,t){const n=yo();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:g,setScopeId:I=Se,insertStaticContent:A}=e,E=(u,h,p,b=null,_=null,O=null,L=void 0,C=null,R=!!h.dynamicChildren)=>{if(u===h)return;u&&!Lt(u,h)&&(b=nn(u),Pe(u,_,O,!0),u=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:v,ref:M,shapeFlag:N}=h;switch(v){case Vn:F(u,h,p,b);break;case ft:$(u,h,p,b);break;case bn:u==null&&B(h,p,b,L);break;case me:Qt(u,h,p,b,_,O,L,C,R);break;default:N&1?G(u,h,p,b,_,O,L,C,R):N&6?en(u,h,p,b,_,O,L,C,R):(N&64||N&128)&&v.process(u,h,p,b,_,O,L,C,R,gt)}M!=null&&_&&Ss(M,u&&u.ref,O,h||u,!h)},F=(u,h,p,b)=>{if(u==null)s(h.el=l(h.children),p,b);else{const _=h.el=u.el;h.children!==u.children&&c(_,h.children)}},$=(u,h,p,b)=>{u==null?s(h.el=a(h.children||""),p,b):h.el=u.el},B=(u,h,p,b)=>{[u.el,u.anchor]=A(u.children,h,p,b,u.el,u.anchor)},m=({el:u,anchor:h},p,b)=>{let _;for(;u&&u!==h;)_=g(u),s(u,p,b),u=_;s(h,p,b)},S=({el:u,anchor:h})=>{let p;for(;u&&u!==h;)p=g(u),r(u),u=p;r(h)},G=(u,h,p,b,_,O,L,C,R)=>{h.type==="svg"?L="svg":h.type==="math"&&(L="mathml"),u==null?x(h,p,b,_,O,L,C,R):Ee(u,h,_,O,L,C,R)},x=(u,h,p,b,_,O,L,C)=>{let R,v;const{props:M,shapeFlag:N,transition:k,dirs:U}=u;if(R=u.el=i(u.type,O,M&&M.is,M),N&8?f(R,u.children):N&16&&T(u.children,R,null,b,_,rs(u,O),L,C),U&&nt(u,null,b,"created"),P(R,u,u.scopeId,L,b),M){for(const J in M)J!=="value"&&!pn(J)&&o(R,J,null,M[J],O,u.children,b,_,Be);"value"in M&&o(R,"value",null,M.value,O),(v=M.onVnodeBeforeMount)&&Fe(v,b,u)}U&&nt(u,null,b,"beforeMount");const D=ga(_,k);D&&k.beforeEnter(R),s(R,h,p),((v=M&&M.onVnodeMounted)||D||U)&&he(()=>{v&&Fe(v,b,u),D&&k.enter(R),U&&nt(u,null,b,"mounted")},_)},P=(u,h,p,b,_)=>{if(p&&I(u,p),b)for(let O=0;O{for(let v=R;v{const C=h.el=u.el;let{patchFlag:R,dynamicChildren:v,dirs:M}=h;R|=u.patchFlag&16;const N=u.props||Q,k=h.props||Q;let U;if(p&&st(p,!1),(U=k.onVnodeBeforeUpdate)&&Fe(U,p,h,u),M&&nt(h,u,p,"beforeUpdate"),p&&st(p,!0),v?Qe(u.dynamicChildren,v,C,p,b,rs(h,_),O):L||X(u,h,C,null,p,b,rs(h,_),O,!1),R>0){if(R&16)Rt(C,h,N,k,p,b,_);else if(R&2&&N.class!==k.class&&o(C,"class",null,k.class,_),R&4&&o(C,"style",N.style,k.style,_),R&8){const D=h.dynamicProps;for(let J=0;J{U&&Fe(U,p,h,u),M&&nt(h,u,p,"updated")},b)},Qe=(u,h,p,b,_,O,L)=>{for(let C=0;C{if(p!==b){if(p!==Q)for(const C in p)!pn(C)&&!(C in b)&&o(u,C,p[C],null,L,h.children,_,O,Be);for(const C in b){if(pn(C))continue;const R=b[C],v=p[C];R!==v&&C!=="value"&&o(u,C,v,R,L,h.children,_,O,Be)}"value"in b&&o(u,"value",p.value,b.value,L)}},Qt=(u,h,p,b,_,O,L,C,R)=>{const v=h.el=u?u.el:l(""),M=h.anchor=u?u.anchor:l("");let{patchFlag:N,dynamicChildren:k,slotScopeIds:U}=h;U&&(C=C?C.concat(U):U),u==null?(s(v,p,b),s(M,p,b),T(h.children||[],p,M,_,O,L,C,R)):N>0&&N&64&&k&&u.dynamicChildren?(Qe(u.dynamicChildren,k,p,_,O,L,C),(h.key!=null||_&&h===_.subTree)&&Xo(u,h,!0)):X(u,h,p,M,_,O,L,C,R)},en=(u,h,p,b,_,O,L,C,R)=>{h.slotScopeIds=C,u==null?h.shapeFlag&512?_.ctx.activate(h,p,b,L,R):Zn(h,p,b,_,O,L,R):fr(u,h,R)},Zn=(u,h,p,b,_,O,L)=>{const C=u.component=Aa(u,b,_);if(jo(u)&&(C.ctx.renderer=gt),Oa(C),C.asyncDep){if(_&&_.registerDep(C,fe),!u.el){const R=C.subTree=re(ft);$(null,R,h,p)}}else fe(C,u,h,p,_,O,L)},fr=(u,h,p)=>{const b=h.component=u.component;if(Ml(u,h,p))if(b.asyncDep&&!b.asyncResolved){ne(b,h,p);return}else b.next=h,Cl(b.update),b.effect.dirty=!0,b.update();else h.el=u.el,b.vnode=h},fe=(u,h,p,b,_,O,L)=>{const C=()=>{if(u.isMounted){let{next:M,bu:N,u:k,parent:U,vnode:D}=u;{const yt=Qo(u);if(yt){M&&(M.el=D.el,ne(u,M,L)),yt.asyncDep.then(()=>{u.isUnmounted||C()});return}}let J=M,ee;st(u,!1),M?(M.el=D.el,ne(u,M,L)):M=D,N&&mn(N),(ee=M.props&&M.props.onVnodeBeforeUpdate)&&Fe(ee,U,M,D),st(u,!0);const ie=ns(u),Ae=u.subTree;u.subTree=ie,E(Ae,ie,d(Ae.el),nn(Ae),u,_,O),M.el=ie.el,J===null&&Fl(u,ie.el),k&&he(k,_),(ee=M.props&&M.props.onVnodeUpdated)&&he(()=>Fe(ee,U,M,D),_)}else{let M;const{el:N,props:k}=h,{bm:U,m:D,parent:J}=u,ee=gn(h);if(st(u,!1),U&&mn(U),!ee&&(M=k&&k.onVnodeBeforeMount)&&Fe(M,J,h),st(u,!0),N&&Qn){const ie=()=>{u.subTree=ns(u),Qn(N,u.subTree,u,_,null)};ee?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ie()):ie()}else{const ie=u.subTree=ns(u);E(null,ie,p,b,u,_,O),h.el=ie.el}if(D&&he(D,_),!ee&&(M=k&&k.onVnodeMounted)){const ie=h;he(()=>Fe(M,J,ie),_)}(h.shapeFlag&256||J&&gn(J.vnode)&&J.vnode.shapeFlag&256)&&u.a&&he(u.a,_),u.isMounted=!0,h=p=b=null}},R=u.effect=new Vs(C,Se,()=>Zs(v),u.scope),v=u.update=()=>{R.dirty&&R.run()};v.id=u.uid,st(u,!0),v()},ne=(u,h,p)=>{h.component=u;const b=u.vnode.props;u.vnode=h,u.next=null,ua(u,h.props,b,p),ha(u,h.children,p),ht(),Tr(u),pt()},X=(u,h,p,b,_,O,L,C,R=!1)=>{const v=u&&u.children,M=u?u.shapeFlag:0,N=h.children,{patchFlag:k,shapeFlag:U}=h;if(k>0){if(k&128){tn(v,N,p,b,_,O,L,C,R);return}else if(k&256){et(v,N,p,b,_,O,L,C,R);return}}U&8?(M&16&&Be(v,_,O),N!==v&&f(p,N)):M&16?U&16?tn(v,N,p,b,_,O,L,C,R):Be(v,_,O,!0):(M&8&&f(p,""),U&16&&T(N,p,b,_,O,L,C,R))},et=(u,h,p,b,_,O,L,C,R)=>{u=u||vt,h=h||vt;const v=u.length,M=h.length,N=Math.min(v,M);let k;for(k=0;kM?Be(u,_,O,!0,!1,N):T(h,p,b,_,O,L,C,R,N)},tn=(u,h,p,b,_,O,L,C,R)=>{let v=0;const M=h.length;let N=u.length-1,k=M-1;for(;v<=N&&v<=k;){const U=u[v],D=h[v]=R?Je(h[v]):$e(h[v]);if(Lt(U,D))E(U,D,p,null,_,O,L,C,R);else break;v++}for(;v<=N&&v<=k;){const U=u[N],D=h[k]=R?Je(h[k]):$e(h[k]);if(Lt(U,D))E(U,D,p,null,_,O,L,C,R);else break;N--,k--}if(v>N){if(v<=k){const U=k+1,D=Uk)for(;v<=N;)Pe(u[v],_,O,!0),v++;else{const U=v,D=v,J=new Map;for(v=D;v<=k;v++){const ve=h[v]=R?Je(h[v]):$e(h[v]);ve.key!=null&&J.set(ve.key,v)}let ee,ie=0;const Ae=k-D+1;let yt=!1,pr=0;const Pt=new Array(Ae);for(v=0;v=Ae){Pe(ve,_,O,!0);continue}let Le;if(ve.key!=null)Le=J.get(ve.key);else for(ee=D;ee<=k;ee++)if(Pt[ee-D]===0&&Lt(ve,h[ee])){Le=ee;break}Le===void 0?Pe(ve,_,O,!0):(Pt[Le-D]=v+1,Le>=pr?pr=Le:yt=!0,E(ve,h[Le],p,null,_,O,L,C,R),ie++)}const mr=yt?ya(Pt):vt;for(ee=mr.length-1,v=Ae-1;v>=0;v--){const ve=D+v,Le=h[ve],gr=ve+1{const{el:O,type:L,transition:C,children:R,shapeFlag:v}=u;if(v&6){tt(u.component.subTree,h,p,b);return}if(v&128){u.suspense.move(h,p,b);return}if(v&64){L.move(u,h,p,gt);return}if(L===me){s(O,h,p);for(let N=0;NC.enter(O),_);else{const{leave:N,delayLeave:k,afterLeave:U}=C,D=()=>s(O,h,p),J=()=>{N(O,()=>{D(),U&&U()})};k?k(O,D,J):J()}else s(O,h,p)},Pe=(u,h,p,b=!1,_=!1)=>{const{type:O,props:L,ref:C,children:R,dynamicChildren:v,shapeFlag:M,patchFlag:N,dirs:k}=u;if(C!=null&&Ss(C,null,p,u,!0),M&256){h.ctx.deactivate(u);return}const U=M&1&&k,D=!gn(u);let J;if(D&&(J=L&&L.onVnodeBeforeUnmount)&&Fe(J,h,u),M&6)$i(u.component,p,b);else{if(M&128){u.suspense.unmount(p,b);return}U&&nt(u,null,h,"beforeUnmount"),M&64?u.type.remove(u,h,p,_,gt,b):v&&(O!==me||N>0&&N&64)?Be(v,h,p,!1,!0):(O===me&&N&384||!_&&M&16)&&Be(R,h,p),b&&dr(u)}(D&&(J=L&&L.onVnodeUnmounted)||U)&&he(()=>{J&&Fe(J,h,u),U&&nt(u,null,h,"unmounted")},p)},dr=u=>{const{type:h,el:p,anchor:b,transition:_}=u;if(h===me){Fi(p,b);return}if(h===bn){S(u);return}const O=()=>{r(p),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:L,delayLeave:C}=_,R=()=>L(p,O);C?C(u.el,O,R):R()}else O()},Fi=(u,h)=>{let p;for(;u!==h;)p=g(u),r(u),u=p;r(h)},$i=(u,h,p)=>{const{bum:b,scope:_,update:O,subTree:L,um:C}=u;b&&mn(b),_.stop(),O&&(O.active=!1,Pe(L,u,h,p)),C&&he(C,h),he(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Be=(u,h,p,b=!1,_=!1,O=0)=>{for(let L=O;Lu.shapeFlag&6?nn(u.component.subTree):u.shapeFlag&128?u.suspense.next():g(u.anchor||u.el);let Yn=!1;const hr=(u,h,p)=>{u==null?h._vnode&&Pe(h._vnode,null,null,!0):E(h._vnode||null,u,h,null,null,null,p),Yn||(Yn=!0,Tr(),Ho(),Yn=!1),h._vnode=u},gt={p:E,um:Pe,m:tt,r:dr,mt:Zn,mc:T,pc:X,pbc:Qe,n:nn,o:e};let Xn,Qn;return t&&([Xn,Qn]=t(gt)),{render:hr,hydrate:Xn,createApp:la(hr,Xn)}}function rs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function st({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ga(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xo(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Qo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}const ba=e=>e.__isTeleport,me=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),bn=Symbol.for("v-stc"),jt=[];let Ie=null;function ye(e=!1){jt.push(Ie=e?null:[])}function _a(){jt.pop(),Ie=jt[jt.length-1]||null}let Kt=1;function $r(e){Kt+=e}function ei(e){return e.dynamicChildren=Kt>0?Ie||vt:null,_a(),Kt>0&&Ie&&Ie.push(e),e}function xe(e,t,n,s,r,o){return ei(w(e,t,n,s,r,o,!0))}function va(e,t,n,s,r){return ei(re(e,t,n,s,r,!0))}function wa(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Bn="__vInternal",ti=({key:e})=>e??null,_n=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||Y(e)||V(e)?{i:ge,r:e,k:t,f:!!n}:e:null);function w(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ti(t),ref:t&&_n(t),scopeId:Nn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ge};return l?(sr(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=oe(n)?8:16),Kt>0&&!i&&Ie&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ie.push(a),a}const re=xa;function xa(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===$l)&&(e=ft),wa(e)){const l=Tt(e,t,!0);return n&&sr(l,n),Kt>0&&!o&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag|=-2,l}if(La(e)&&(e=e.__vccOpts),t){t=Ea(t);let{class:l,style:a}=t;l&&!oe(l)&&(t.class=De(l)),se(a)&&(Mo(a)&&!H(a)&&(a=ue({},a)),t.style=Mn(a))}const i=oe(e)?1:kl(e)?128:ba(e)?64:se(e)?4:V(e)?2:0;return w(e,t,n,s,r,i,o,!0)}function Ea(e){return e?Mo(e)||Bn in e?ue({},e):e:null}function Tt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?Sa(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ti(l),ref:t&&t.ref?n&&r?H(r)?r.concat(_n(t)):[r,_n(t)]:_n(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function nr(e=" ",t=0){return re(Vn,null,e,t)}function Ts(e="",t=!1){return t?(ye(),va(ft,null,e)):re(ft,null,e)}function $e(e){return e==null||typeof e=="boolean"?re(ft):H(e)?re(me,null,e.slice()):typeof e=="object"?Je(e):re(Vn,null,String(e))}function Je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function sr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),sr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Bn in t)?t._ctx=ge:r===3&&ge&&(ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ge},n=32):(t=String(t),s&64?(n=16,t=[nr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sa(...e){const t={};for(let n=0;nce||ge;let On,Cs;{const e=yo(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};On=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),Cs=t("__VUE_SSR_SETTERS__",n=>Dn=n)}const Jt=e=>{const t=ce;return On(e),e.scope.on(),()=>{e.scope.off(),On(t)}},kr=()=>{ce&&ce.scope.off(),On(null)};function si(e){return e.vnode.shapeFlag&4}let Dn=!1;function Oa(e,t=!1){t&&Cs(t);const{props:n,children:s}=e.vnode,r=si(e);ca(e,n,r,t),da(e,s);const o=r?Ia(e,t):void 0;return t&&Cs(!1),o}function Ia(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fo(new Proxy(e.ctx,ea));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Pa(e):null,o=Jt(e);ht();const i=Xe(s,e,0,[e.props,r]);if(pt(),o(),ho(i)){if(i.then(kr,kr),t)return i.then(l=>{Nr(e,l,t)}).catch(l=>{$n(l,e,0)});e.asyncDep=i}else Nr(e,i,t)}else ri(e,t)}function Nr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=ko(t)),ri(e,n)}let Ur;function ri(e,t,n){const s=e.type;if(!e.render){if(!t&&Ur&&!s.render){const r=s.template||er(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=ue(ue({isCustomElement:o,delimiters:l},i),a);s.render=Ur(r,c)}}e.render=s.render||Se}{const r=Jt(e);ht();try{ta(e)}finally{pt(),r()}}}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return be(e,"get","$attrs"),t[n]}}))}function Pa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ra(e)},slots:e.slots,emit:e.emit,expose:t}}function jn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ko(Fo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dt)return Dt[n](e)},has(t,n){return n in t||n in Dt}}))}function La(e){return V(e)&&"__vccOpts"in e}const oi=(e,t)=>bl(e,t,Dn);function pe(e,t,n=Q){const s=ni(),r=ct(t),o=dt(t),i=El((a,c)=>{let f;return Bl(()=>{const d=e[t];He(f,d)&&(f=d,c())}),{get(){return a(),n.get?n.get(f):f},set(d){const g=s.vnode.props;!(g&&(t in g||r in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${o}`in g))&&He(d,f)&&(f=d,c()),s.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:i,done:!1}:{done:!0}}}},i}const Ma="3.4.15";/** +* @vue/runtime-dom v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Fa="http://www.w3.org/2000/svg",$a="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,Hr=Ze&&Ze.createElement("template"),ka={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ze.createElementNS(Fa,e):t==="mathml"?Ze.createElementNS($a,e):Ze.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},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,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Hr.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Hr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Na=Symbol("_vtc");function Ua(e,t,n){const s=e[Na];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rr=Symbol("_vod"),As={beforeMount(e,{value:t},{transition:n}){e[rr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Mt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Mt(e,!0),s.enter(e)):s.leave(e,()=>{Mt(e,!1)}):Mt(e,t))},beforeUnmount(e,{value:t}){Mt(e,t)}};function Mt(e,t){e.style.display=t?e[rr]:"none"}const ii=Symbol("");function Ha(e){const t=ni();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Is(o,r))},s=()=>{const r=e(t.proxy);Os(t.subTree,r),n(r)};Vl(s),mt(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Ot(()=>r.disconnect())})}function Os(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Os(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Is(e.el,t);else if(e.type===me)e.children.forEach(n=>Os(n,t));else if(e.type===bn){let{el:n,anchor:s}=e;for(;n&&(Is(n,t),n!==s);)n=n.nextSibling}}function Is(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[ii]=s}}function Va(e,t,n){const s=e.style,r=s.display,o=oe(n);if(n&&!o){if(t&&!oe(t))for(const i in t)n[i]==null&&Rs(s,i,"");for(const i in n)Rs(s,i,n[i])}else if(o){if(t!==n){const i=s[ii];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");rr in e&&(s.display=r)}const Vr=/\s*!important$/;function Rs(e,t,n){if(H(n))n.forEach(s=>Rs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ba(e,t);Vr.test(n)?e.setProperty(dt(s),n.replace(Vr,""),"important"):e[s]=n}}const Br=["Webkit","Moz","ms"],os={};function Ba(e,t){const n=os[t];if(n)return n;let s=ct(t);if(s!=="filter"&&s in e)return os[t]=s;s=go(s);for(let r=0;ris||(Ka.then(()=>is=0),is=Date.now());function Ja(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Re(Za(s,n.value),t,5,[s])};return n.value=e,n.attached=Ga(),n}function Za(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const qr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ya=(e,t,n,s,r,o,i,l,a)=>{const c=r==="svg";t==="class"?Ua(e,s,c):t==="style"?Va(e,n,s):Rn(t)?Ns(t)||qa(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xa(e,t,s,c))?ja(e,t,s,o,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Da(e,t,s,c))};function Xa(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&qr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 qr(t)&&oe(n)?!1:t in e}const zr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>mn(t,n):t};function Qa(e){e.target.composing=!0}function Kr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ls=Symbol("_assign"),we={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ls]=zr(r);const o=s||r.props&&r.props.type==="number";_t(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=ps(l)),e[ls](l)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Qa),_t(e,"compositionend",Kr),_t(e,"change",Kr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[ls]=zr(o),e.composing)return;const i=r||e.type==="number"?ps(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},ec=ue({patchProp:Ya},ka);let Gr;function tc(){return Gr||(Gr=pa(ec))}const nc=(...e)=>{const t=tc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=rc(s);if(!r)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,sc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rc(e){return oe(e)?document.querySelector(e):e}function oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var li={exports:{}};(function(e){(function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",s=n&&window.mozInnerScreenX!=null;function r(o,i,l){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=l&&l.debug||!1;if(a){var c=document.querySelector("#input-textarea-caret-position-mirror-div");c&&c.parentNode.removeChild(c)}var f=document.createElement("div");f.id="input-textarea-caret-position-mirror-div",document.body.appendChild(f);var d=f.style,g=window.getComputedStyle?window.getComputedStyle(o):o.currentStyle,I=o.nodeName==="INPUT";d.whiteSpace="pre-wrap",I||(d.wordWrap="break-word"),d.position="absolute",a||(d.visibility="hidden"),t.forEach(function(F){if(I&&F==="lineHeight")if(g.boxSizing==="border-box"){var $=parseInt(g.height),B=parseInt(g.paddingTop)+parseInt(g.paddingBottom)+parseInt(g.borderTopWidth)+parseInt(g.borderBottomWidth),m=B+parseInt(g.lineHeight);$>m?d.lineHeight=$-B+"px":$===m?d.lineHeight=g.lineHeight:d.lineHeight=0}else d.lineHeight=g.height;else d[F]=g[F]}),s?o.scrollHeight>parseInt(g.height)&&(d.overflowY="scroll"):d.overflow="hidden",f.textContent=o.value.substring(0,i),I&&(f.textContent=f.textContent.replace(/\s/g," "));var A=document.createElement("span");A.textContent=o.value.substring(i)||".",f.appendChild(A);var E={top:A.offsetTop+parseInt(g.borderTopWidth),left:A.offsetLeft+parseInt(g.borderLeftWidth),height:parseInt(g.lineHeight)};return a?A.style.backgroundColor="#aaa":document.body.removeChild(f),E}e.exports=r})()})(li);var ic=li.exports;const lc=oc(ic);function ai(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ci(e){const t=[];let n=!1;for(let s=0,r=0,o=0;oe.text()).then(e=>{ui.value=ci(e.replaceAll("_"," ").replaceAll("(","\\(").replaceAll(")","\\)"))});fetch(cc).then(e=>e.text()).then(e=>{fi.value=ci(e.replaceAll("_"," ").replaceAll("(","\\(").replaceAll(")","\\)"))});class q{constructor(t){if(Jr!=t)throw new Error("Use DataManager.getInstance()");Ue([Ft,un,fn,dn,hn,$t,kt,Nt],([n,s,r,o,i,l,a,c])=>{$t.value=Math.max(10,Math.min(30,l)),kt.value=a==""?a:Math.max(1,Math.min(120,a)),Nt.value=c==""?c:Math.max(1,Math.min(50,c)),s||localStorage.removeItem("chibi.generationInfo"),document.documentElement.style.fontSize=`${l}px`,localStorage.setItem("chibi.settings",[Ft.value,un.value,fn.value,dn.value,hn.value,$t.value,kt.value,Nt.value])}),localStorage.getItem("chibi.settings")&&([Ft.value,un.value,fn.value,dn.value,hn.value,$t.value,kt.value,Nt.value]=localStorage.getItem("chibi.settings").split(","))}static getInstance(){return as||(as=new q(Jr)),as}get url(){return Ft}get theme(){return dn}get historyWidth(){return hn}get fontSize(){return $t}get maxSteps(){return kt}get maxCfg(){return Nt}get keepGenerationInfo(){return un}get useTagautocomplete(){return fn}get controller(){return cs}get message(){return uc}get isGenerating(){return fc}get taglist(){return ui}get extraTaglist(){return fi}isExtension(){return cs.value!=null&&Ft.value.includes(window.location.host)}isConnected(){return cs.value!=null}getThemeList(){return["radio-black","radio-white","novellus"]}resetSettings(){localStorage.removeItem("chibi.settings"),location.reload()}saveGenerationInfo(t){t!=null&&localStorage.setItem("chibi.generationInfo",JSON.stringify(t))}loadGenerationInfo(){const t=localStorage.getItem("chibi.generationInfo");return!t||t=="null"?null:JSON.parse(t)}saveHistory(t){t!=null&&localStorage.setItem("chibi.history",t)}loadHistory(){const t=localStorage.getItem("chibi.history");return!t||t=="null"?[]:t.split(",")}clearHistory(){localStorage.removeItem("chibi.history"),location.reload()}}const Zt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},dc=["onClick"],hc={class:"tag-item"},pc={__name:"TagAutocomplete",props:{modelValue:{default:""},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Z(null),n=Z(null),s=Z(null),r=pe(e,"modelValue"),o=q.getInstance().useTagautocomplete,i=q.getInstance().taglist,l=q.getInstance().extraTaglist;let a=Z(null),c=Z(-1),f=null,d=Z(!1);Ue(r,()=>Ht(()=>A()));const g=new ResizeObserver(m=>m.forEach(()=>Ht(()=>A())));mt(()=>{g.observe(n.value),document.addEventListener("click",I)}),Ot(()=>{document.removeEventListener("click",I)}),Ue(a,(m,S)=>{m!=S&&(c.value=-1,d.value=!1)});function I(m){(!m||!t.value.contains(m.target))&&(a.value=null,f=null,c.value=-1)}function A(){n.value.style.height="auto",n.value.style.height=`${n.value.scrollHeight+(n.value.offsetHeight-n.value.clientHeight)}px`}async function E(m){a.value=[];for(let S=0;S=5));S++);for(let S=0;S=10));S++);if(a.value.length==1&&a.value[0][0]==f){I();return}}function F(m){var P;if(!o.value)return;const S=n.value.value;let G=S.length;for(let T=n.value.selectionStart;T{f==x[0]&&E(x[0]).then(async()=>{await Ht();const T=lc(n.value,x.index),Ee=Math.min(T.left,n.value.offsetWidth-s.value.offsetWidth);s.value.style.left=`${Ee}px`})},200)))}function $(m){if(!(a.value==null||a.value.length==0||d.value))switch(m.key){case"ArrowDown":c.value=Math.min(a.value.length-1,Math.max(0,c.value+1)),m.preventDefault();break;case"ArrowUp":c.value=Math.min(a.value.length-1,Math.max(0,c.value-1)),m.preventDefault();break;case"Enter":B(c.value),m.preventDefault();break;case"Tab":m.preventDefault();break;case"Escape":d.value=!0,m.preventDefault();break}}function B(m){let S=r.value.length;for(let Ee=n.value.selectionStart;Een.value.setSelectionRange(T,T)),I(),n.value.focus()}return(m,S)=>{var G;return ye(),xe("div",{ref_key:"rootEl",ref:t,class:"autocomplete-wrapper"},[le(w("textarea",{ref_key:"textareaEl",ref:n,class:"autocomplete",rows:"3","onUpdate:modelValue":S[0]||(S[0]=x=>r.value=x),onInput:A,onKeydown:$,onKeyup:F,onMouseup:F},` + `,544),[[we,r.value]]),le(w("ul",{ref_key:"autocompleteEl",ref:s,class:"autocomplete"},[(ye(!0),xe(me,null,Qs(z(a),(x,P)=>(ye(),xe("li",{class:De({selected:z(c)==P}),onClick:T=>B(P),style:Mn(`color: var(--color-tag${x[1]})`)},[w("div",hc,[nr(ut(x[0])+" ",1),le(w("sub",null,ut(x[2]),513),[[As,!Number.isInteger(Number(x[2]))]])])],14,dc))),256))],512),[[As,((G=z(a))==null?void 0:G.length)&&!z(d)]])],512)}}},Zr=Zt(pc,[["__scopeId","data-v-52afce8d"]]),mc={class:"dropdown-list"},gc=["onClick"],yc={__name:"Dropdown",props:{modelValue:{default:""},modelModifiers:{},datalist:{default:[]},datalistModifiers:{}},emits:["update:modelValue","update:datalist"],setup(e){const t=pe(e,"modelValue"),n=pe(e,"datalist"),s=Z(null),r=Z(!1);mt(()=>{document.addEventListener("click",o)}),Ot(()=>{document.removeEventListener("click",o)});function o(i){s.value.contains(i.target)||(r.value=!1)}return(i,l)=>(ye(),xe("div",{ref_key:"rootEl",ref:s,class:"dropdown-wrapper"},[w("div",{class:De(["dropdown-selected",{open:r.value}]),tabindex:"0",onClick:l[0]||(l[0]=a=>r.value=!r.value)},ut(t.value),3),le(w("ul",mc,[(ye(!0),xe(me,null,Qs(n.value,a=>(ye(),xe("li",{class:De(["dropdown-item",{selected:a==t.value}]),onClick:c=>{t.value=a,r.value=!1}},ut(a),11,gc))),256))],512),[[As,r.value]])],512))}},it=Zt(yc,[["__scopeId","data-v-256b7644"]]),Ce=e=>(Ys("data-v-eea5c227"),e=e(),Xs(),e),bc={class:"generator-wrapper"},_c=Ce(()=>w("summary",null,"Models",-1)),vc=Ce(()=>w("label",{for:"checkpoint"},"Checkpoint",-1)),wc=Ce(()=>w("label",{for:"vae"},"VAE",-1)),xc=Ce(()=>w("label",{for:"prompt"},"Prompt",-1)),Ec=Ce(()=>w("label",{for:"negative-prompt"},"Negative prompt",-1)),Sc=Ce(()=>w("label",{for:"image-size"},"Image size",-1)),Tc={class:"row"},Cc={class:"size"},Ac=Ce(()=>w("div",null,"✕",-1)),Oc={class:"row"},Ic=Ce(()=>w("label",{for:"steps"},"Steps: ",-1)),Rc=["max"],Pc={class:"row"},Lc=Ce(()=>w("label",{for:"cfg_scale"},"CFG Scale:",-1)),Mc=["max"],Fc={class:"row"},$c=Ce(()=>w("label",{for:"sampler_index"},"Sampler",-1)),kc={key:0},Nc=Ce(()=>w("label",{for:"scheduler"},"Scheduler",-1)),Uc={class:"row"},Hc=Ce(()=>w("label",{for:"seed"},"Seed",-1)),Vc=["disabled"],Bc={__name:"Generator",props:{ckpt:{default:null},ckptModifiers:{},vae:{default:null},vaeModifiers:{},prompt:{default:` + +highly detailed, masterpiece, best quality`},promptModifiers:{},negative_prompt:{default:"lowres, bad anatomy, bad hands, text, error, missing fingers, extra digits, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name, coryright name,"},negative_promptModifiers:{},width:{default:832},widthModifiers:{},height:{default:1216},heightModifiers:{},steps:{default:28},stepsModifiers:{},cfg_scale:{default:5},cfg_scaleModifiers:{},seed:{default:-1},seedModifiers:{},sampler_index:{default:null},sampler_indexModifiers:{},scheduler:{default:null},schedulerModifiers:{}},emits:["update:ckpt","update:vae","update:prompt","update:negative_prompt","update:width","update:height","update:steps","update:cfg_scale","update:seed","update:sampler_index","update:scheduler"],setup(e){const t=q.getInstance().controller,n=q.getInstance().isGenerating,s=pe(e,"ckpt"),r=pe(e,"vae"),o=pe(e,"prompt"),i=pe(e,"negative_prompt"),l=pe(e,"width"),a=pe(e,"height"),c=pe(e,"steps"),f=pe(e,"cfg_scale"),d=pe(e,"seed"),g=pe(e,"sampler_index"),I=pe(e,"scheduler"),A=q.getInstance().maxSteps,E=q.getInstance().maxCfg;Ue([c,f],([x,P])=>{c.value=Math.max(1,Math.min(120,x)),f.value=P.toString().slice(-1)=="."?P:Math.max(0,Math.min(50,P))});let F=null,$=null,B=null,m=null;Ue(t,async(x,P)=>{if(q.getInstance().keepGenerationInfo.value){const T=q.getInstance().loadGenerationInfo();T&&(s.value=T.checkpoint,r.value=T.vae,o.value=T.prompt,i.value=T.negative_prompt,l.value=T.width,a.value=T.height,c.value=T.steps,f.value=T.cfg_scale,d.value=T.seed,g.value=T.sampler_index,I.value=T.scheduler)}F=x.getCheckpoints(),(!s.value||!F.includes(s.value))&&(s.value=F[0]),$=["< none >",...x.getVAEs()],(!r.value||!$.includes(r.value))&&(r.value=$[0]),B=x.getSamplers(),(!g.value||!B.includes(g.value))&&(g.value=B[0]),m=x.getSchedulers(),(!I.value||!m.includes(I.value))&&(I.value=m[0])}),mt(()=>{window.addEventListener("keydown",S)}),Ot(()=>{window.removeEventListener("keydown",S)});function S(x){x.key=="Enter"&&x.ctrlKey&&!n.value&&G()}async function G(){const x={checkpoint:s.value,vae:r.value=="< none >"?null:r.value,prompt:o.value,negative_prompt:i.value,width:l.value,height:a.value,steps:c.value,cfg_scale:f.value,seed:d.value,sampler_index:g.value};I.value&&(x.scheduler=I.value),t.value.generate(x)}return(x,P)=>(ye(),xe("div",bc,[w("div",null,[w("details",null,[_c,vc,re(it,{id:"checkpoint",modelValue:s.value,"onUpdate:modelValue":P[0]||(P[0]=T=>s.value=T),datalist:z(F),"onUpdate:datalist":P[1]||(P[1]=T=>Y(F)?F.value=T:F=T)},null,8,["modelValue","datalist"]),wc,re(it,{id:"vae",modelValue:r.value,"onUpdate:modelValue":P[2]||(P[2]=T=>r.value=T),datalist:z($),"onUpdate:datalist":P[3]||(P[3]=T=>Y($)?$.value=T:$=T)},null,8,["modelValue","datalist"])]),xc,re(Zr,{id:"prompt",modelValue:o.value,"onUpdate:modelValue":P[4]||(P[4]=T=>o.value=T)},null,8,["modelValue"]),Ec,re(Zr,{id:"negative-prompt",modelValue:i.value,"onUpdate:modelValue":P[5]||(P[5]=T=>i.value=T)},null,8,["modelValue"]),Sc,w("div",Tc,[w("div",Cc,[le(w("input",{"onUpdate:modelValue":P[6]||(P[6]=T=>l.value=T)},null,512),[[we,l.value]]),Ac,le(w("input",{"onUpdate:modelValue":P[7]||(P[7]=T=>a.value=T)},null,512),[[we,a.value]])])]),w("div",Oc,[Ic,le(w("input",{style:{width:"4rem"},"onUpdate:modelValue":P[8]||(P[8]=T=>c.value=T)},null,512),[[we,c.value]])]),le(w("input",{type:"range",id:"steps",min:"1",max:z(A),step:"1","onUpdate:modelValue":P[9]||(P[9]=T=>c.value=T)},null,8,Rc),[[we,c.value]]),w("div",Pc,[Lc,le(w("input",{style:{width:"4rem"},"onUpdate:modelValue":P[10]||(P[10]=T=>f.value=T)},null,512),[[we,f.value]])]),le(w("input",{type:"range",id:"cfg_scale",min:"0",max:z(E),step:"0.1","onUpdate:modelValue":P[11]||(P[11]=T=>f.value=T)},null,8,Mc),[[we,f.value]]),w("div",Fc,[w("div",null,[$c,re(it,{id:"sampler_index",modelValue:g.value,"onUpdate:modelValue":P[12]||(P[12]=T=>g.value=T),datalist:z(B),"onUpdate:datalist":P[13]||(P[13]=T=>Y(B)?B.value=T:B=T)},null,8,["modelValue","datalist"])]),z(m)?(ye(),xe("div",kc,[Nc,re(it,{id:"scheduler",modelValue:I.value,"onUpdate:modelValue":P[14]||(P[14]=T=>I.value=T),datalist:z(m),"onUpdate:datalist":P[15]||(P[15]=T=>Y(m)?m.value=T:m=T)},null,8,["modelValue","datalist"])])):Ts("",!0)]),w("div",Uc,[w("div",null,[Hc,le(w("input",{id:"seed","onUpdate:modelValue":P[16]||(P[16]=T=>d.value=T)},null,512),[[we,d.value]])])])]),w("button",{class:"generate-button",onClick:G,disabled:!z(t)||z(n)},"Generate",8,Vc)]))}},Dc=Zt(Bc,[["__scopeId","data-v-eea5c227"]]),_e=e=>(Ys("data-v-1129fa47"),e=e(),Xs(),e),jc={key:0,class:"section"},Wc=_e(()=>w("h1",null,"Connection",-1)),qc=_e(()=>w("label",{for:"url"},"API URL",-1)),zc={class:"row"},Kc={class:"section"},Gc=_e(()=>w("h1",null,"Generator",-1)),Jc={class:"row"},Zc=_e(()=>w("label",{for:"keep-generator-info"},"Keep generator infomation",-1)),Yc={class:"row"},Xc=_e(()=>w("label",{for:"enable-danbooru-tags"},"Enable danbooru tag autocomplete",-1)),Qc={class:"row"},eu=_e(()=>w("label",{for:"max-steps"},"Maximum steps",-1)),tu={class:"row"},nu=_e(()=>w("label",{for:"max-cfg"},"Maximum CFG scale",-1)),su={class:"section"},ru=_e(()=>w("h1",null,"UI",-1)),ou={class:"row reverse-size"},iu=_e(()=>w("label",{for:"theme"},"Theme",-1)),lu={class:"row"},au=_e(()=>w("label",{for:"history-width"},"History width",-1)),cu={class:"row"},uu=_e(()=>w("label",{for:"font-size"},"Font size",-1)),fu={class:"section"},du=_e(()=>w("h1",null,[nr("Reset settings "),w("sup",{class:"note"},"*keep the button pressed")],-1)),hu={class:"row"},pu=_e(()=>w("label",{for:"reset"},"Reset settings",-1)),mu={class:"row"},gu=_e(()=>w("label",{for:"clear-history"},"Clear history",-1)),yu={__name:"Settings",setup(e){const t=q.getInstance().url,n=q.getInstance().theme,s=q.getInstance().historyWidth,r=q.getInstance().fontSize,o=q.getInstance().maxSteps,i=q.getInstance().maxCfg,l=q.getInstance().keepGenerationInfo,a=q.getInstance().useTagautocomplete,c=[!0,!1],f=q.getInstance().getThemeList(),d=Z(null),g=Z(null);let I=null;mt(()=>{});function A(){location.reload()}function E(){d.value.classList.add("pressing"),I=setTimeout(()=>{q.getInstance().resetSettings(),resetCount=-1},2e3)}function F(){g.value.classList.add("pressing"),I=setTimeout(()=>{q.getInstance().clearHistory(),resetCount=-1},2e3)}function $(){I&&(clearTimeout(I),d.value.classList.remove("pressing"),g.value.classList.remove("pressing")),I=null}return(B,m)=>(ye(),xe("div",{class:"settings-wrapper",onContextmenu:m[23]||(m[23]=()=>{})},[z(q).getInstance().isExtension()?Ts("",!0):(ye(),xe("div",jc,[Wc,qc,w("div",zc,[le(w("input",{id:"url","onUpdate:modelValue":m[0]||(m[0]=S=>Y(t)?t.value=S:null)},null,512),[[we,z(t)]]),w("button",{onClick:m[1]||(m[1]=S=>A())},"connect")])])),Ts("",!0),w("div",Kc,[Gc,w("div",Jc,[Zc,re(it,{id:"keep-generator-info",modelValue:z(l),"onUpdate:modelValue":m[3]||(m[3]=S=>Y(l)?l.value=S:null),datalist:c,"onUpdate:datalist":m[4]||(m[4]=S=>c=S)},null,8,["modelValue"])]),w("div",Yc,[Xc,re(it,{id:"enable-danbooru-tags",modelValue:z(a),"onUpdate:modelValue":m[5]||(m[5]=S=>Y(a)?a.value=S:null),datalist:c,"onUpdate:datalist":m[6]||(m[6]=S=>c=S)},null,8,["modelValue"])]),w("div",Qc,[eu,le(w("input",{id:"max-steps",type:"number",min:"20",max:"100","onUpdate:modelValue":m[7]||(m[7]=S=>Y(o)?o.value=S:null)},null,512),[[we,z(o)]])]),w("div",tu,[nu,le(w("input",{id:"max-cfg",type:"number",maxlength:"4",step:"0.1",min:"0",max:"50","onUpdate:modelValue":m[8]||(m[8]=S=>Y(i)?i.value=S:null)},null,512),[[we,z(i)]])])]),w("div",su,[ru,w("div",ou,[iu,re(it,{id:"theme",modelValue:z(n),"onUpdate:modelValue":m[9]||(m[9]=S=>Y(n)?n.value=S:null),datalist:z(f),"onUpdate:datalist":m[10]||(m[10]=S=>Y(f)?f.value=S:null)},null,8,["modelValue","datalist"])]),w("div",lu,[au,w("span",null,ut(z(s))+"px",1),le(w("input",{id:"history-width",type:"range",min:"100",max:"200",step:"25","onUpdate:modelValue":m[11]||(m[11]=S=>Y(s)?s.value=S:null)},null,512),[[we,z(s)]])]),w("div",cu,[uu,w("span",null,ut(z(r))+"px",1),le(w("input",{id:"font-size",type:"range",min:"12",max:"24",step:"1","onUpdate:modelValue":m[12]||(m[12]=S=>Y(r)?r.value=S:null)},null,512),[[we,z(r)]])])]),w("div",fu,[du,w("div",hu,[pu,w("button",{id:"reset",ref_key:"resetButtonEl",ref:d,class:"reset-button",onMousedown:m[13]||(m[13]=S=>E()),onMouseup:m[14]||(m[14]=S=>$()),onMouseout:m[15]||(m[15]=S=>$()),onTouchstart:m[16]||(m[16]=S=>E()),onTouchend:m[17]||(m[17]=S=>$())},"RESET",544)]),w("div",mu,[gu,w("button",{id:"clear-history",ref_key:"clearHistoryButtonEl",ref:g,class:"reset-button",onMousedown:m[18]||(m[18]=S=>F()),onMouseup:m[19]||(m[19]=S=>$()),onMouseout:m[20]||(m[20]=S=>$()),onTouchstart:m[21]||(m[21]=S=>F()),onTouchend:m[22]||(m[22]=S=>$())},"CLEAR",544)])])],32))}},bu=Zt(yu,[["__scopeId","data-v-1129fa47"]]),_u="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%20-960%20960%20960'%20width='24'%3e%3cpath%20d='M480-120q-138%200-240.5-91.5T122-440h82q14%20104%2092.5%20172T480-200q117%200%20198.5-81.5T760-480q0-117-81.5-198.5T480-760q-69%200-129%2032t-101%2088h110v80H120v-240h80v94q51-64%20124.5-99T480-840q75%200%20140.5%2028.5t114%2077q48.5%2048.5%2077%20114T840-480q0%2075-28.5%20140.5t-77%20114q-48.5%2048.5-114%2077T480-120Zm112-192L440-464v-216h80v184l128%20128-56%2056Z'/%3e%3c/svg%3e",vu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%20-960%20960%20960'%20width='24'%3e%3cpath%20d='m370-80-16-128q-13-5-24.5-12T307-235l-119%2050L78-375l103-78q-1-7-1-13.5v-27q0-6.5%201-13.5L78-585l110-190%20119%2050q11-8%2023-15t24-12l16-128h220l16%20128q13%205%2024.5%2012t22.5%2015l119-50%20110%20190-103%2078q1%207%201%2013.5v27q0%206.5-2%2013.5l103%2078-110%20190-118-50q-11%208-23%2015t-24%2012L590-80H370Zm112-260q58%200%2099-41t41-99q0-58-41-99t-99-41q-59%200-99.5%2041T342-480q0%2058%2040.5%2099t99.5%2041Z'/%3e%3c/svg%3e",wu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='96'%20viewBox='0%20-960%20960%20960'%20width='96'%20fill='%23aaaaaa'%3e%3cpath%20d='M840-234%20234-840h526q33%200%2056.5%2023.5T840-760v526ZM792-56l-64-64H200q-33%200-56.5-23.5T120-200v-528l-64-64%2056-56%20736%20736-56%2056ZM240-280h327l-84-84-33%2044-90-120-120%20160Z'/%3e%3c/svg%3e",Yr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iNjAiPgo8dGV4dCB4PSI1MCUiIHk9IjUwJSIgYWxpZ25tZW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHN0eWxlPSJmaWxsOiNiMmIyYjI7IGZvbnQtZmFtaWx5OlJvYm90bzsgZm9udC1zaXplOjQyOyBmb250LXdlaWdodDo3MDA7IGZvbnQtc3R5bGU6bm9ybWFsOyBzdHJva2Utd2lkdGg6MDsgZm9udC1zdHJldGNoOm5vcm1hbCI+Q2hpYmk8L3RleHQ+Cjwvc3ZnPgo=";class Wn{constructor(t,n){Me(this,"listener",null);Me(this,"url",null);if(this.constructor===Wn)throw new TypeError("abstract class");this.url=t,this.setOnFinishListener(n)}static async checkUrl(t){}async prepare(){}getCheckpoints(){}getSamplers(){}getSchedulers(){}async generate(){}setOnFinishListener(t){this.listener=t}}function di(e,t){return function(){return e.apply(t,arguments)}}const{toString:xu}=Object.prototype,{getPrototypeOf:or}=Object,qn=(e=>t=>{const n=xu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ve=e=>(e=e.toLowerCase(),t=>qn(t)===e),zn=e=>t=>typeof t===e,{isArray:It}=Array,Gt=zn("undefined");function Eu(e){return e!==null&&!Gt(e)&&e.constructor!==null&&!Gt(e.constructor)&&Te(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hi=Ve("ArrayBuffer");function Su(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hi(e.buffer),t}const Tu=zn("string"),Te=zn("function"),pi=zn("number"),Kn=e=>e!==null&&typeof e=="object",Cu=e=>e===!0||e===!1,vn=e=>{if(qn(e)!=="object")return!1;const t=or(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Au=Ve("Date"),Ou=Ve("File"),Iu=Ve("Blob"),Ru=Ve("FileList"),Pu=e=>Kn(e)&&Te(e.pipe),Lu=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Te(e.append)&&((t=qn(e))==="formdata"||t==="object"&&Te(e.toString)&&e.toString()==="[object FormData]"))},Mu=Ve("URLSearchParams"),Fu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),It(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yi=e=>!Gt(e)&&e!==gi;function Ps(){const{caseless:e}=yi(this)&&this||{},t={},n=(s,r)=>{const o=e&&mi(t,r)||r;vn(t[o])&&vn(s)?t[o]=Ps(t[o],s):vn(s)?t[o]=Ps({},s):It(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(Yt(t,(r,o)=>{n&&Te(r)?e[o]=di(r,n):e[o]=r},{allOwnKeys:s}),e),ku=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nu=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Uu=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&or(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hu=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Vu=e=>{if(!e)return null;if(It(e))return e;let t=e.length;if(!pi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&or(Uint8Array)),Du=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},ju=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Wu=Ve("HTMLFormElement"),qu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Xr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zu=Ve("RegExp"),bi=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Yt(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},Ku=e=>{bi(e,(t,n)=>{if(Te(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Te(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Gu=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return It(e)?s(e):s(String(e).split(t)),n},Ju=()=>{},Zu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),us="abcdefghijklmnopqrstuvwxyz",Qr="0123456789",_i={DIGIT:Qr,ALPHA:us,ALPHA_DIGIT:us+us.toUpperCase()+Qr},Yu=(e=16,t=_i.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function Xu(e){return!!(e&&Te(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qu=e=>{const t=new Array(10),n=(s,r)=>{if(Kn(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=It(s)?[]:{};return Yt(s,(i,l)=>{const a=n(i,r+1);!Gt(a)&&(o[l]=a)}),t[r]=void 0,o}}return s};return n(e,0)},ef=Ve("AsyncFunction"),tf=e=>e&&(Kn(e)||Te(e))&&Te(e.then)&&Te(e.catch),y={isArray:It,isArrayBuffer:hi,isBuffer:Eu,isFormData:Lu,isArrayBufferView:Su,isString:Tu,isNumber:pi,isBoolean:Cu,isObject:Kn,isPlainObject:vn,isUndefined:Gt,isDate:Au,isFile:Ou,isBlob:Iu,isRegExp:zu,isFunction:Te,isStream:Pu,isURLSearchParams:Mu,isTypedArray:Bu,isFileList:Ru,forEach:Yt,merge:Ps,extend:$u,trim:Fu,stripBOM:ku,inherits:Nu,toFlatObject:Uu,kindOf:qn,kindOfTest:Ve,endsWith:Hu,toArray:Vu,forEachEntry:Du,matchAll:ju,isHTMLForm:Wu,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:bi,freezeMethods:Ku,toObjectSet:Gu,toCamelCase:qu,noop:Ju,toFiniteNumber:Zu,findKey:mi,global:gi,isContextDefined:yi,ALPHABET:_i,generateString:Yu,isSpecCompliantForm:Xu,toJSONObject:Qu,isAsyncFn:ef,isThenable:tf};function j(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}y.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vi=j.prototype,wi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wi[e]={value:e}});Object.defineProperties(j,wi);Object.defineProperty(vi,"isAxiosError",{value:!0});j.from=(e,t,n,s,r,o)=>{const i=Object.create(vi);return y.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),j.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const nf=null;function Ls(e){return y.isPlainObject(e)||y.isArray(e)}function xi(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(r,o){return r=xi(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function sf(e){return y.isArray(e)&&!e.some(Ls)}const rf=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Gn(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,F){return!y.isUndefined(F[E])});const s=n.metaTokens,r=n.visitor||f,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function c(A){if(A===null)return"";if(y.isDate(A))return A.toISOString();if(!a&&y.isBlob(A))throw new j("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(A)||y.isTypedArray(A)?a&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function f(A,E,F){let $=A;if(A&&!F&&typeof A=="object"){if(y.endsWith(E,"{}"))E=s?E:E.slice(0,-2),A=JSON.stringify(A);else if(y.isArray(A)&&sf(A)||(y.isFileList(A)||y.endsWith(E,"[]"))&&($=y.toArray(A)))return E=xi(E),$.forEach(function(m,S){!(y.isUndefined(m)||m===null)&&t.append(i===!0?eo([E],S,o):i===null?E:E+"[]",c(m))}),!1}return Ls(A)?!0:(t.append(eo(F,E,o),c(A)),!1)}const d=[],g=Object.assign(rf,{defaultVisitor:f,convertValue:c,isVisitable:Ls});function I(A,E){if(!y.isUndefined(A)){if(d.indexOf(A)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(A),y.forEach(A,function($,B){(!(y.isUndefined($)||$===null)&&r.call(t,$,y.isString(B)?B.trim():B,E,g))===!0&&I($,E?E.concat(B):[B])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return I(e),t}function to(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ir(e,t){this._pairs=[],e&&Gn(e,this,t)}const Ei=ir.prototype;Ei.append=function(t,n){this._pairs.push([t,n])};Ei.toString=function(t){const n=t?function(s){return t.call(this,s,to)}:to;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function of(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Si(e,t,n){if(!t)return e;const s=n&&n.encode||of,r=n&&n.serialize;let o;if(r?o=r(t,n):o=y.isURLSearchParams(t)?t.toString():new ir(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class no{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ti={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lf=typeof URLSearchParams<"u"?URLSearchParams:ir,af=typeof FormData<"u"?FormData:null,cf=typeof Blob<"u"?Blob:null,uf={isBrowser:!0,classes:{URLSearchParams:lf,FormData:af,Blob:cf},protocols:["http","https","file","blob","url","data"]},Ci=typeof window<"u"&&typeof document<"u",ff=(e=>Ci&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),df=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ci,hasStandardBrowserEnv:ff,hasStandardBrowserWebWorkerEnv:df},Symbol.toStringTag,{value:"Module"})),Ne={...hf,...uf};function pf(e,t){return Gn(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Ne.isNode&&y.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function mf(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&y.isArray(r)?r.length:i,a?(y.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!y.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&y.isArray(r[i])&&(r[i]=gf(r[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(s,r)=>{t(mf(s),r,n,0)}),n}return null}function yf(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const lr={transitional:Ti,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return r?JSON.stringify(Ai(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return pf(t,this.formSerializer).toString();if((l=y.isFileList(t))||s.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Gn(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),yf(t)):t}],transformResponse:[function(t){const n=this.transitional||lr.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&y.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?j.from(l,j.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{lr.headers[e]={}});const ar=lr,bf=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_f=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&bf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},so=Symbol("internals");function Ut(e){return e&&String(e).trim().toLowerCase()}function wn(e){return e===!1||e==null?e:y.isArray(e)?e.map(wn):String(e)}function vf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const wf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fs(e,t,n,s,r){if(y.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!y.isString(t)){if(y.isString(s))return t.indexOf(s)!==-1;if(y.isRegExp(s))return s.test(t)}}function xf(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Ef(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Jn{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,a,c){const f=Ut(a);if(!f)throw new Error("header name must be a non-empty string");const d=y.findKey(r,f);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||a]=wn(l))}const i=(l,a)=>y.forEach(l,(c,f)=>o(c,f,a));return y.isPlainObject(t)||t instanceof this.constructor?i(t,n):y.isString(t)&&(t=t.trim())&&!wf(t)?i(_f(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=Ut(t),t){const s=y.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return vf(r);if(y.isFunction(n))return n.call(this,r,s);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ut(t),t){const s=y.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||fs(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=Ut(i),i){const l=y.findKey(s,i);l&&(!n||fs(s,s[l],l,n))&&(delete s[l],r=!0)}}return y.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||fs(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return y.forEach(this,(r,o)=>{const i=y.findKey(s,o);if(i){n[i]=wn(r),delete n[o];return}const l=t?xf(o):String(o).trim();l!==o&&delete n[o],n[l]=wn(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&y.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[so]=this[so]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Ut(i);s[l]||(Ef(r,i),s[l]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}}Jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Jn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});y.freezeMethods(Jn);const We=Jn;function ds(e,t){const n=this||ar,s=t||n,r=We.from(s.headers);let o=s.data;return y.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Oi(e){return!!(e&&e.__CANCEL__)}function Xt(e,t,n){j.call(this,e??"canceled",j.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(Xt,j,{__CANCEL__:!0});function Sf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new j("Request failed with status code "+n.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Tf=Ne.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(s)&&i.push("path="+s),y.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Cf(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Af(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ii(e,t){return e&&!Cf(t)?Af(e,t):t}const Of=Ne.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const l=y.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}();function If(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rf(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),f=s[o];i||(i=c),n[r]=a,s[r]=c;let d=o,g=0;for(;d!==r;)g+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),c-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,l=o-n,a=s(l),c=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:a||void 0,estimated:a&&i&&c?(i-o)/a:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const Pf=typeof XMLHttpRequest<"u",Lf=Pf&&function(e){return new Promise(function(n,s){let r=e.data;const o=We.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(y.isFormData(r)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[E,...F]=f?f.split(";").map($=>$.trim()).filter(Boolean):[];o.setContentType([E||"multipart/form-data",...F].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",F=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(E+":"+F))}const g=Ii(e.baseURL,e.url);d.open(e.method.toUpperCase(),Si(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function I(){if(!d)return;const E=We.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),$={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:E,config:e,request:d};Sf(function(m){n(m),c()},function(m){s(m),c()},$),d=null}if("onloadend"in d?d.onloadend=I:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(I)},d.onabort=function(){d&&(s(new j("Request aborted",j.ECONNABORTED,e,d)),d=null)},d.onerror=function(){s(new j("Network Error",j.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let F=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const $=e.transitional||Ti;e.timeoutErrorMessage&&(F=e.timeoutErrorMessage),s(new j(F,$.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,d)),d=null},Ne.hasStandardBrowserEnv&&(l&&y.isFunction(l)&&(l=l(e)),l||l!==!1&&Of(g))){const E=e.xsrfHeaderName&&e.xsrfCookieName&&Tf.read(e.xsrfCookieName);E&&o.set(e.xsrfHeaderName,E)}r===void 0&&o.setContentType(null),"setRequestHeader"in d&&y.forEach(o.toJSON(),function(F,$){d.setRequestHeader($,F)}),y.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",ro(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",ro(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=E=>{d&&(s(!E||E.type?new Xt(null,e,d):E),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const A=If(g);if(A&&Ne.protocols.indexOf(A)===-1){s(new j("Unsupported protocol "+A+":",j.ERR_BAD_REQUEST,e));return}d.send(r||null)})},Ms={http:nf,xhr:Lf};y.forEach(Ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oo=e=>`- ${e}`,Mf=e=>y.isFunction(e)||e===null||e===!1,Ri={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(oo).join(` +`):" "+oo(o[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Ms};function hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function io(e){return hs(e),e.headers=We.from(e.headers),e.data=ds.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ri.getAdapter(e.adapter||ar.adapter)(e).then(function(s){return hs(e),s.data=ds.call(e,e.transformResponse,s),s.headers=We.from(s.headers),s},function(s){return Oi(s)||(hs(e),s&&s.response&&(s.response.data=ds.call(e,e.transformResponse,s.response),s.response.headers=We.from(s.response.headers))),Promise.reject(s)})}const lo=e=>e instanceof We?e.toJSON():e;function Ct(e,t){t=t||{};const n={};function s(c,f,d){return y.isPlainObject(c)&&y.isPlainObject(f)?y.merge.call({caseless:d},c,f):y.isPlainObject(f)?y.merge({},f):y.isArray(f)?f.slice():f}function r(c,f,d){if(y.isUndefined(f)){if(!y.isUndefined(c))return s(void 0,c,d)}else return s(c,f,d)}function o(c,f){if(!y.isUndefined(f))return s(void 0,f)}function i(c,f){if(y.isUndefined(f)){if(!y.isUndefined(c))return s(void 0,c)}else return s(void 0,f)}function l(c,f,d){if(d in t)return s(c,f);if(d in e)return s(void 0,c)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,f)=>r(lo(c),lo(f),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(f){const d=a[f]||r,g=d(e[f],t[f],f);y.isUndefined(g)&&d!==l||(n[f]=g)}),n}const Pi="1.6.7",cr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ao={};cr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Pi+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new j(r(i," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!ao[i]&&(ao[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Ff(e,t,n){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new j("option "+o+" must be "+a,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+o,j.ERR_BAD_OPTION)}}const Fs={assertOptions:Ff,validators:cr},Ke=Fs.validators;class In{constructor(t){this.defaults=t,this.interceptors={request:new no,response:new no}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+o):s.stack=o}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ct(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Fs.assertOptions(s,{silentJSONParsing:Ke.transitional(Ke.boolean),forcedJSONParsing:Ke.transitional(Ke.boolean),clarifyTimeoutError:Ke.transitional(Ke.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:Fs.assertOptions(r,{encode:Ke.function,serialize:Ke.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],A=>{delete o[A]}),n.headers=We.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(a=a&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let f,d=0,g;if(!a){const A=[io.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,c),g=A.length,f=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new Xt(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ur(function(r){t=r}),cancel:t}}}const $f=ur;function kf(e){return function(n){return e.apply(null,n)}}function Nf(e){return y.isObject(e)&&e.isAxiosError===!0}const $s={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($s).forEach(([e,t])=>{$s[t]=e});const Uf=$s;function Li(e){const t=new xn(e),n=di(xn.prototype.request,t);return y.extend(n,xn.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Li(Ct(e,r))},n}const te=Li(ar);te.Axios=xn;te.CanceledError=Xt;te.CancelToken=$f;te.isCancel=Oi;te.VERSION=Pi;te.toFormData=Gn;te.AxiosError=j;te.Cancel=te.CanceledError;te.all=function(t){return Promise.all(t)};te.spread=kf;te.isAxiosError=Nf;te.mergeConfig=Ct;te.AxiosHeaders=We;te.formToJSON=e=>Ai(y.isHTMLForm(e)?new FormData(e):e);te.getAdapter=Ri.getAdapter;te.HttpStatusCode=Uf;te.default=te;function Hf(e){let t={},n={};Object.keys(e).forEach(r=>{Object.values(e[r].input).forEach(o=>{o!=e[r].input.hidden&&Object.keys(o).forEach(i=>{const l=o[i];Array.isArray(l)||console.err(`inputType ${l} for ${r} is not array`);const a=["*","INT","FLOAT","STRING"],c=l[0];Array.isArray(c)?(n[r]||(n[r]={}),n[r][i]=c):!a.includes(c)&&!t[c]&&(t[c]=class{})})})}),console.log("type created");let s={};return Object.keys(e).forEach(r=>{s[r]=class{constructor(){this.name=r,this.id=`${this.name}-${ai()}`;let o=0;if(e[r].input.required&&(this.required=e[r].input.required,Object.keys(e[r].input.required).forEach(i=>{this.set(i,arguments[o]),++o})),e[r].input.optional&&(this.optional=e[r].input.optional,Object.keys(e[r].input.optional).forEach(i=>{this.set(i,arguments[o]),++o})),e[r].output){this.output=e[r].output;for(let i=0;i{a&&Object.keys(a).forEach(c=>{if(this[c]==null)throw Error(`Missing argument: ${c} on ${this.id}`);i[this.id].inputs[c]=Array.isArray(this[c])?this[c].slice():this[c],Array.isArray(this[c])&&Object.keys(s).includes(this[c][0].name)&&(o.push(this[c][0]),i[this.id].inputs[c][0]=this[c][0].id)})}),i[this.id].class_type=this.name,o.forEach(a=>{i=Object.assign(i,a.toWorkflow())}),i}},Object.defineProperty(s[r],"name",{value:r})}),console.log("created node"),[s,t,n]}const bt=q.getInstance();class co extends Wn{constructor(){super(...arguments);Me(this,"clientId",null);Me(this,"websocket",null);Me(this,"timeoutWS",null);Me(this,"node",null);Me(this,"type",null);Me(this,"arrayType",null);Me(this,"prompt_id",null)}static async checkUrl(n){try{const s=await te.get(`${n}/system_stats`,{timeout:3e3});if(s.status==200&&s.data.system!=null)return!0}catch(s){console.log(s)}return!1}async getHistory(n){return await te.get(`${this.url}/history/${n}`)}async getheringImages(n){var o;const r=(o=(await this.getHistory(n)).data[n])==null?void 0:o.outputs;r&&Object.values(r).forEach(i=>{Object.values(i.images).forEach(async l=>{this.listener(`${this.url}/view?filename=${l.filename}&subfolder=${l.subfolder}&type=${l.type}`),bt.isGenerating.value=!1,this.prompt_id=null})})}async messageListener(n){console.log(Date()+" ws : message",n);const s=JSON.parse(n.data);bt.message.value=s.type.toUpperCase()+(s.data.node?`: ${s.data.node.split("-")[0]}`:"")+(s.type=="progress"?` ${s.data.value} / ${s.data.max}`:""),this.timeoutWS&&(this.timeoutWS=clearTimeout(this.timeoutWS)),s.data.node===null&&s.data.prompt_id!=null&&this.getheringImages(s.data.prompt_id)}async createWebSocket(){const n=this.url.replaceAll("http","ws");this.websocket=new WebSocket(`${n}/ws?clientId=${this.clientId}`),this.websocket.onmessage=this.messageListener.bind(this),this.websocket.onopen=s=>{console.log(Date()+" ws: open",s),bt.isGenerating&&this.prompt_id&&this.getheringImages(this.prompt_id)},this.websocket.onclose=s=>{console.log(Date()+" ws: closed",s),setTimeout(()=>this.createWebSocket(),1e3)},this.websocket.onerror=s=>{console.log(Date()+" ws: error",s),this.websocket.close(1002,"error occured")}}async prepare(){this.clientId=ai(),this.createWebSocket();const n=await te.get(`${this.url}/object_info`);[this.node,this.type,this.arrayType]=Hf(n.data),console.log(this.node,this.type,this.arrayType)}getCheckpoints(){return this.arrayType.CheckpointLoaderSimple.ckpt_name}getVAEs(){return this.arrayType.VAELoader.vae_name}getSamplers(){return this.arrayType.KSampler.sampler_name}getSchedulers(){return this.arrayType.KSampler.scheduler}async generate(n){bt.keepGenerationInfo.value&&bt.saveGenerationInfo(n);const s=new this.node.CheckpointLoaderSimple(n.checkpoint),r=new this.node.CLIPTextEncode(n.prompt,s.CLIP),o=new this.node.CLIPTextEncode(n.negative_prompt,s.CLIP),i=n.seed>0?n.seed:Math.floor(Math.random()*9999999998+1),l=new this.node.KSampler(s,i,n.steps,n.cfg_scale,n.sampler_index,n.scheduler,r,o,new this.node.EmptyLatentImage(n.width,n.height,1),1),a=new this.node.VAEDecode(l,s),c=new this.node.SaveImage(a,"CHIBI");n.vae&&a.set("vae",new this.node.VAELoader(n.vae)),bt.isGenerating.value=!0;const f=await te.post(`${this.url}/prompt`,JSON.stringify({prompt:c.toWorkflow(),client_id:this.clientId}));this.prompt_id=f.data.prompt_id,this.timeoutWS=setTimeout(()=>this.createWebSocket(),1e3)}}class uo extends Wn{static async checkUrl(t){try{const n=await te.get(`${t}/sdapi/v1/progress?skip_current_image=true`,{timeout:3e3});if(n.status==200&&n.data.progress!=null)return!0}catch(n){console.log(n)}return!1}async prepare(){}async generate(){}}const Mi=e=>(Ys("data-v-acc5cb8a"),e=e(),Xs(),e),Vf={class:"left"},Bf=Mi(()=>w("h1",{class:"title"},"Chibi",-1)),Df=["src"],jf={class:"right"},Wf=["src"],qf=Mi(()=>w("span",null,"|||",-1)),zf=[qf],Kf=["src"],Gf={class:"sidebar-wrapper"},Jf={class:"history"},Zf=["src","onClick"],Yf={__name:"App",setup(e){Ha(x=>({c14cd168:d.value}));const t=Z(),n=Z(),s=Z(),r=Z(Yr),o=Z([]),i=q.getInstance().controller,l=q.getInstance().isGenerating,a=q.getInstance().message,c=q.getInstance().url,f=q.getInstance().theme,d=oi(()=>q.getInstance().historyWidth.value+"px");Ue(f,x=>{q.getInstance().getThemeList().forEach(T=>{T==x?document.querySelector(":root").classList.add(T):document.querySelector(":root").classList.remove(T)})}),document.querySelector(":root").classList.add(f.value),mt(()=>{A(),o.value=q.getInstance().loadHistory()}),Ue(l,(x,P)=>{x&&!P&&(t.value.classList.add("shirink"),r.value=Yr)});function g(x){r.value=x,o.value.push(x),q.getInstance().saveHistory(o.value)}function I(x){r.value=x}async function A(){let x=c.value;x=x.replaceAll(/^http:\/\//g,"").replaceAll(/^https:\/\//g,"").replaceAll(/\/$/g,"");const P=`${window.location.protocol}//${x}`;if(await uo.checkUrl(P))console.log("use webui-controller"),i.value=new uo(P,g);else if(await co.checkUrl(P)){console.log("use comfyui-controller");const T=new co(P,g);await T.prepare(),i.value=T}}function E(x){x.target.src=wu}function F(){t.value.classList.toggle("shirink")}let $=[];function B(x){if(x.type=="touchend"){const P=$.at(-1)-$.at(-2);P>1?t.value.classList.add("shirink"):P<1&&t.value.classList.remove("shirink"),t.value.style.height=null,$=[]}x.touches.length==1&&(t.value.style.height=Math.max(80,window.innerHeight-x.touches[0].pageY)+"px",$.push(x.touches[0].pageY),x.preventDefault())}function m(){n.value.classList.add("shirink")}function S(){n.value.classList.toggle("shirink")}function G(x){s.value!=x.target&&!x.target.classList.contains("icon")||s.value.classList.toggle("shirink")}return(x,P)=>(ye(),xe(me,null,[w("header",null,[w("div",Vf,[Bf,w("img",{class:"icon-settings icon",src:z(vu),onClick:G},null,8,Df)]),w("div",jf,[w("img",{class:"icon-history icon",src:z(_u),onClick:S},null,8,Wf)])]),w("main",null,[w("div",{ref_key:"generatorEl",ref:t,class:"generator"},[w("div",{class:"generator-slider",onClick:F,onTouchmove:B,onTouchend:B},zf,32),re(Dc,{class:"generator-component"})],512),w("div",{class:De(["preview",{generating:z(l)}]),onClick:P[0]||(P[0]=T=>m())},[w("img",{alt:"Preview",class:"preview-image",src:r.value,onError:E},null,40,Kf)],2),w("div",Gf,[w("div",{ref_key:"sidebarEl",ref:n,class:"sidebar shirink"},[w("div",Jf,[(ye(!0),xe(me,null,Qs(o.value,T=>(ye(),xe("img",{class:De({selected:r.value===T}),loading:"lazy",src:T,onClick:Ee=>I(T)},null,10,Zf))),256))])],512)])]),w("div",{ref_key:"settingsEl",ref:s,class:"modal shirink",onMousedown:G},[re(bu)],544),w("div",{class:De(["toaster",{shirink:!z(l)}])},ut(z(a)),3)],64))}},Xf=Zt(Yf,[["__scopeId","data-v-acc5cb8a"]]);nc(Xf).mount("#app");