From a5e7dace3d3a00634951bad08f431f7179194b86 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 20 Nov 2024 23:24:31 +0100 Subject: [PATCH] Enhanced ui --- app.py | 2 +- endpoints/lollms_webui_infos.py | 7 + endpoints/news/current.html | 18 ++ lollms_core | 2 +- .../{index-CQZS3dTu.js => index-CxhUr7VR.js} | 46 ++-- web/dist/assets/index-DaywzZaA.css | 8 - web/dist/assets/index-gzgffzab.css | 8 + web/dist/index.html | 4 +- web/src/components/WelcomeComponent.vue | 198 ++++++++++-------- web/src/views/DiscussionsView.vue | 1 - 10 files changed, 168 insertions(+), 126 deletions(-) create mode 100644 endpoints/news/current.html rename web/dist/assets/{index-CQZS3dTu.js => index-CxhUr7VR.js} (97%) delete mode 100644 web/dist/assets/index-DaywzZaA.css create mode 100644 web/dist/assets/index-gzgffzab.css diff --git a/app.py b/app.py index 4ac7fe1e..8bf4ff52 100644 --- a/app.py +++ b/app.py @@ -69,7 +69,7 @@ def check_and_install_package(package: str, version: str): packages: List[Tuple[str, str]] = [ ("freedom_search", "0.1.9"), ("scrapemaster", "0.2.1"), - ("lollms_client", "0.7.6"), + ("lollms_client", "0.7.7"), ("lollmsvectordb", "1.1.6"), ] diff --git a/endpoints/lollms_webui_infos.py b/endpoints/lollms_webui_infos.py index c8b046d6..1e754b7f 100644 --- a/endpoints/lollms_webui_infos.py +++ b/endpoints/lollms_webui_infos.py @@ -43,6 +43,13 @@ async def get_lollms_version(): return infos +@router.get("/get_news") +async def get_lollms_version(): + """Get the changelog.""" + base_path = Path(__file__).parent + infos = base_path/"news"/"current.html" + return infos.read_text() + @router.get("/get_lollms_webui_version") async def get_lollms_webui_version(): """Get the version of the LoLLMs Web UI application.""" diff --git a/endpoints/news/current.html b/endpoints/news/current.html new file mode 100644 index 00000000..b274a4db --- /dev/null +++ b/endpoints/news/current.html @@ -0,0 +1,18 @@ +
+

New Feature Alert!

+

LoLLMs UI now has a new theming system, allowing for more personalized and visually appealing interactions.

+
+ +
+

Latest Music Highlight

+
+ +
+
diff --git a/lollms_core b/lollms_core index 55862e38..9eae059a 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 55862e388295bc1c093cf56ce68ef8c9a305d8ad +Subproject commit 9eae059a43644fa3b8e947ddb1a2bef4b452c8f5 diff --git a/web/dist/assets/index-CQZS3dTu.js b/web/dist/assets/index-CxhUr7VR.js similarity index 97% rename from web/dist/assets/index-CQZS3dTu.js rename to web/dist/assets/index-CxhUr7VR.js index 70ec222e..1f2cb5b8 100644 --- a/web/dist/assets/index-CQZS3dTu.js +++ b/web/dist/assets/index-CxhUr7VR.js @@ -3,23 +3,23 @@ var ZO=Object.defineProperty;var JO=(n,e,t)=>e in n?ZO(n,e,{enumerable:!0,config * @vue/shared v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function kb(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const $t={},Qo=[],rr=()=>{},eI=()=>!1,xu=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Db=n=>n.startsWith("onUpdate:"),ln=Object.assign,Lb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},tI=Object.prototype.hasOwnProperty,Lt=(n,e)=>tI.call(n,e),it=Array.isArray,Xo=n=>Da(n)==="[object Map]",ka=n=>Da(n)==="[object Set]",qy=n=>Da(n)==="[object Date]",nI=n=>Da(n)==="[object RegExp]",ft=n=>typeof n=="function",Xt=n=>typeof n=="string",ar=n=>typeof n=="symbol",zt=n=>n!==null&&typeof n=="object",d2=n=>(zt(n)||ft(n))&&ft(n.then)&&ft(n.catch),u2=Object.prototype.toString,Da=n=>u2.call(n),sI=n=>Da(n).slice(8,-1),p2=n=>Da(n)==="[object Object]",Pb=n=>Xt(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,yl=kb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cu=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},rI=/-(\w)/g,ws=Cu(n=>n.replace(rI,(e,t)=>t?t.toUpperCase():"")),iI=/\B([A-Z])/g,Ti=Cu(n=>n.replace(iI,"-$1").toLowerCase()),wu=Cu(n=>n.charAt(0).toUpperCase()+n.slice(1)),yd=Cu(n=>n?`on${wu(n)}`:""),vi=(n,e)=>!Object.is(n,e),Zo=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:s,value:t})},Fd=n=>{const e=parseFloat(n);return isNaN(e)?n:e},oI=n=>{const e=Xt(n)?Number(n):NaN;return isNaN(e)?n:e};let Yy;const _2=()=>Yy||(Yy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bt(n){if(it(n)){const e={};for(let t=0;t{if(t){const s=t.split(lI);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Le(n){let e="";if(Xt(n))e=n;else if(it(n))for(let t=0;too(t,e))}const h2=n=>!!(n&&n.__v_isRef===!0),Y=n=>Xt(n)?n:n==null?"":it(n)||zt(n)&&(n.toString===u2||!ft(n.toString))?h2(n)?Y(n.value):JSON.stringify(n,g2,2):String(n),g2=(n,e)=>h2(e)?g2(n,e.value):Xo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,r],i)=>(t[Rp(s,i)+" =>"]=r,t),{})}:ka(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Rp(t))}:ar(e)?Rp(e):zt(e)&&!it(e)&&!p2(e)?String(e):e,Rp=(n,e="")=>{var t;return ar(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** +**//*! #__NO_SIDE_EFFECTS__ */function kb(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const $t={},Qo=[],ir=()=>{},eI=()=>!1,xu=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Db=n=>n.startsWith("onUpdate:"),ln=Object.assign,Lb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},tI=Object.prototype.hasOwnProperty,Lt=(n,e)=>tI.call(n,e),ot=Array.isArray,Xo=n=>Da(n)==="[object Map]",ka=n=>Da(n)==="[object Set]",qy=n=>Da(n)==="[object Date]",nI=n=>Da(n)==="[object RegExp]",ft=n=>typeof n=="function",Xt=n=>typeof n=="string",lr=n=>typeof n=="symbol",zt=n=>n!==null&&typeof n=="object",d2=n=>(zt(n)||ft(n))&&ft(n.then)&&ft(n.catch),u2=Object.prototype.toString,Da=n=>u2.call(n),sI=n=>Da(n).slice(8,-1),p2=n=>Da(n)==="[object Object]",Pb=n=>Xt(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,yl=kb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cu=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},rI=/-(\w)/g,ws=Cu(n=>n.replace(rI,(e,t)=>t?t.toUpperCase():"")),iI=/\B([A-Z])/g,Ti=Cu(n=>n.replace(iI,"-$1").toLowerCase()),wu=Cu(n=>n.charAt(0).toUpperCase()+n.slice(1)),yd=Cu(n=>n?`on${wu(n)}`:""),vi=(n,e)=>!Object.is(n,e),Zo=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:s,value:t})},Fd=n=>{const e=parseFloat(n);return isNaN(e)?n:e},oI=n=>{const e=Xt(n)?Number(n):NaN;return isNaN(e)?n:e};let Yy;const _2=()=>Yy||(Yy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bt(n){if(ot(n)){const e={};for(let t=0;t{if(t){const s=t.split(lI);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Le(n){let e="";if(Xt(n))e=n;else if(ot(n))for(let t=0;too(t,e))}const h2=n=>!!(n&&n.__v_isRef===!0),Y=n=>Xt(n)?n:n==null?"":ot(n)||zt(n)&&(n.toString===u2||!ft(n.toString))?h2(n)?Y(n.value):JSON.stringify(n,g2,2):String(n),g2=(n,e)=>h2(e)?g2(n,e.value):Xo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,r],i)=>(t[Rp(s,i)+" =>"]=r,t),{})}:ka(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Rp(t))}:lr(e)?Rp(e):zt(e)&&!ot(e)&&!p2(e)?String(e):e,Rp=(n,e="")=>{var t;return lr(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** * @vue/reactivity v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Un;class b2{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Un,!e&&Un&&(this.index=(Un.scopes||(Un.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;$o;){let e=$o,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=$o,$o=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){n||(n=s)}e=t}}if(n)throw n}function T2(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function x2(n){let e,t=n.depsTail,s=t;for(;s;){const r=s.prevDep;s.version===-1?(s===t&&(t=r),Gb(s),hI(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}n.deps=e,n.depsTail=t}function wg(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(C2(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function C2(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Pl))return;n.globalVersion=Pl;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!wg(n)){n.flags&=-3;return}const t=Kt,s=Us;Kt=n,Us=!0;try{T2(n);const r=n.fn(n._value);(e.version===0||vi(r,n._value))&&(n._value=r,e.version++)}catch(r){throw e.version++,r}finally{Kt=t,Us=s,x2(n),n.flags&=-3}}function Gb(n,e=!1){const{dep:t,prevSub:s,nextSub:r}=n;if(s&&(s.nextSub=r,n.prevSub=void 0),r&&(r.prevSub=s,n.nextSub=void 0),t.subs===n&&(t.subs=s),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Gb(i,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function hI(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Us=!0;const w2=[];function xi(){w2.push(Us),Us=!1}function Ci(){const n=w2.pop();Us=n===void 0?!0:n}function $y(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=Kt;Kt=void 0;try{e()}finally{Kt=t}}}let Pl=0;class gI{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ru{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Kt||!Us||Kt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Kt)t=this.activeLink=new gI(Kt,this),Kt.deps?(t.prevDep=Kt.depsTail,Kt.depsTail.nextDep=t,Kt.depsTail=t):Kt.deps=Kt.depsTail=t,R2(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const s=t.nextDep;s.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=s),t.prevDep=Kt.depsTail,t.nextDep=void 0,Kt.depsTail.nextDep=t,Kt.depsTail=t,Kt.deps===t&&(Kt.deps=s)}return t}trigger(e){this.version++,Pl++,this.notify(e)}notify(e){Ub();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Bb()}}}function R2(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)R2(s)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const Ud=new WeakMap,Qi=Symbol(""),Rg=Symbol(""),Fl=Symbol("");function Dn(n,e,t){if(Us&&Kt){let s=Ud.get(n);s||Ud.set(n,s=new Map);let r=s.get(t);r||(s.set(t,r=new Ru),r.target=n,r.map=s,r.key=t),r.track()}}function Or(n,e,t,s,r,i){const o=Ud.get(n);if(!o){Pl++;return}const a=c=>{c&&c.trigger()};if(Ub(),e==="clear")o.forEach(a);else{const c=it(n),d=c&&Pb(t);if(c&&t==="length"){const u=Number(s);o.forEach((_,m)=>{(m==="length"||m===Fl||!ar(m)&&m>=u)&&a(_)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(Fl)),e){case"add":c?d&&a(o.get("length")):(a(o.get(Qi)),Xo(n)&&a(o.get(Rg)));break;case"delete":c||(a(o.get(Qi)),Xo(n)&&a(o.get(Rg)));break;case"set":Xo(n)&&a(o.get(Qi));break}}Bb()}function bI(n,e){const t=Ud.get(n);return t&&t.get(e)}function So(n){const e=It(n);return e===n?e:(Dn(e,"iterate",Fl),Ts(n)?e:e.map(Nn))}function Au(n){return Dn(n=It(n),"iterate",Fl),n}const yI={__proto__:null,[Symbol.iterator](){return Mp(this,Symbol.iterator,Nn)},concat(...n){return So(this).concat(...n.map(e=>it(e)?So(e):e))},entries(){return Mp(this,"entries",n=>(n[1]=Nn(n[1]),n))},every(n,e){return hr(this,"every",n,e,void 0,arguments)},filter(n,e){return hr(this,"filter",n,e,t=>t.map(Nn),arguments)},find(n,e){return hr(this,"find",n,e,Nn,arguments)},findIndex(n,e){return hr(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return hr(this,"findLast",n,e,Nn,arguments)},findLastIndex(n,e){return hr(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return hr(this,"forEach",n,e,void 0,arguments)},includes(...n){return Np(this,"includes",n)},indexOf(...n){return Np(this,"indexOf",n)},join(n){return So(this).join(n)},lastIndexOf(...n){return Np(this,"lastIndexOf",n)},map(n,e){return hr(this,"map",n,e,void 0,arguments)},pop(){return Xa(this,"pop")},push(...n){return Xa(this,"push",n)},reduce(n,...e){return Wy(this,"reduce",n,e)},reduceRight(n,...e){return Wy(this,"reduceRight",n,e)},shift(){return Xa(this,"shift")},some(n,e){return hr(this,"some",n,e,void 0,arguments)},splice(...n){return Xa(this,"splice",n)},toReversed(){return So(this).toReversed()},toSorted(n){return So(this).toSorted(n)},toSpliced(...n){return So(this).toSpliced(...n)},unshift(...n){return Xa(this,"unshift",n)},values(){return Mp(this,"values",Nn)}};function Mp(n,e,t){const s=Au(n),r=s[e]();return s!==n&&!Ts(n)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=t(i.value)),i}),r}const vI=Array.prototype;function hr(n,e,t,s,r,i){const o=Au(n),a=o!==n&&!Ts(n),c=o[e];if(c!==vI[e]){const _=c.apply(n,i);return a?Nn(_):_}let d=t;o!==n&&(a?d=function(_,m){return t.call(this,Nn(_),m,n)}:t.length>2&&(d=function(_,m){return t.call(this,_,m,n)}));const u=c.call(o,d,s);return a&&r?r(u):u}function Wy(n,e,t,s){const r=Au(n);let i=t;return r!==n&&(Ts(n)?t.length>3&&(i=function(o,a,c){return t.call(this,o,a,c,n)}):i=function(o,a,c){return t.call(this,o,Nn(a),c,n)}),r[e](i,...s)}function Np(n,e,t){const s=It(n);Dn(s,"iterate",Fl);const r=s[e](...t);return(r===-1||r===!1)&&zb(t[0])?(t[0]=It(t[0]),s[e](...t)):r}function Xa(n,e,t=[]){xi(),Ub();const s=It(n)[e].apply(n,t);return Bb(),Ci(),s}const EI=kb("__proto__,__v_isRef,__isVue"),A2=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(ar));function SI(n){ar(n)||(n=String(n));const e=It(this);return Dn(e,"has",n),e.hasOwnProperty(n)}class M2{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const r=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return i;if(t==="__v_raw")return s===(r?i?L2:D2:i?k2:I2).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=it(e);if(!r){let c;if(o&&(c=yI[t]))return c;if(t==="hasOwnProperty")return SI}const a=Reflect.get(e,t,pn(e)?e:s);return(ar(t)?A2.has(t):EI(t))||(r||Dn(e,"get",t),i)?a:pn(a)?o&&Pb(t)?a:a.value:zt(a)?r?F2(a):Hn(a):a}}class N2 extends M2{constructor(e=!1){super(!1,e)}set(e,t,s,r){let i=e[t];if(!this._isShallow){const c=ao(i);if(!Ts(s)&&!ao(s)&&(i=It(i),s=It(s)),!it(e)&&pn(i)&&!pn(s))return c?!1:(i.value=s,!0)}const o=it(e)&&Pb(t)?Number(t)n,Mu=n=>Reflect.getPrototypeOf(n);function Ec(n,e,t=!1,s=!1){n=n.__v_raw;const r=It(n),i=It(e);t||(vi(e,i)&&Dn(r,"get",e),Dn(r,"get",i));const{has:o}=Mu(r),a=s?Vb:t?Hb:Nn;if(o.call(r,e))return a(n.get(e));if(o.call(r,i))return a(n.get(i));n!==r&&n.get(e)}function Sc(n,e=!1){const t=this.__v_raw,s=It(t),r=It(n);return e||(vi(n,r)&&Dn(s,"has",n),Dn(s,"has",r)),n===r?t.has(n):t.has(n)||t.has(r)}function Tc(n,e=!1){return n=n.__v_raw,!e&&Dn(It(n),"iterate",Qi),Reflect.get(n,"size",n)}function Ky(n,e=!1){!e&&!Ts(n)&&!ao(n)&&(n=It(n));const t=It(this);return Mu(t).has.call(t,n)||(t.add(n),Or(t,"add",n,n)),this}function jy(n,e,t=!1){!t&&!Ts(e)&&!ao(e)&&(e=It(e));const s=It(this),{has:r,get:i}=Mu(s);let o=r.call(s,n);o||(n=It(n),o=r.call(s,n));const a=i.call(s,n);return s.set(n,e),o?vi(e,a)&&Or(s,"set",n,e):Or(s,"add",n,e),this}function Qy(n){const e=It(this),{has:t,get:s}=Mu(e);let r=t.call(e,n);r||(n=It(n),r=t.call(e,n)),s&&s.call(e,n);const i=e.delete(n);return r&&Or(e,"delete",n,void 0),i}function Xy(){const n=It(this),e=n.size!==0,t=n.clear();return e&&Or(n,"clear",void 0,void 0),t}function xc(n,e){return function(s,r){const i=this,o=i.__v_raw,a=It(o),c=e?Vb:n?Hb:Nn;return!n&&Dn(a,"iterate",Qi),o.forEach((d,u)=>s.call(r,c(d),c(u),i))}}function Cc(n,e,t){return function(...s){const r=this.__v_raw,i=It(r),o=Xo(i),a=n==="entries"||n===Symbol.iterator&&o,c=n==="keys"&&o,d=r[n](...s),u=t?Vb:e?Hb:Nn;return!e&&Dn(i,"iterate",c?Rg:Qi),{next(){const{value:_,done:m}=d.next();return m?{value:_,done:m}:{value:a?[u(_[0]),u(_[1])]:u(_),done:m}},[Symbol.iterator](){return this}}}}function qr(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function RI(){const n={get(i){return Ec(this,i)},get size(){return Tc(this)},has:Sc,add:Ky,set:jy,delete:Qy,clear:Xy,forEach:xc(!1,!1)},e={get(i){return Ec(this,i,!1,!0)},get size(){return Tc(this)},has:Sc,add(i){return Ky.call(this,i,!0)},set(i,o){return jy.call(this,i,o,!0)},delete:Qy,clear:Xy,forEach:xc(!1,!0)},t={get(i){return Ec(this,i,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!1)},s={get(i){return Ec(this,i,!0,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Cc(i,!1,!1),t[i]=Cc(i,!0,!1),e[i]=Cc(i,!1,!0),s[i]=Cc(i,!0,!0)}),[n,t,e,s]}const[AI,MI,NI,OI]=RI();function Nu(n,e){const t=e?n?OI:NI:n?MI:AI;return(s,r,i)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?s:Reflect.get(Lt(t,r)&&r in s?t:s,r,i)}const II={get:Nu(!1,!1)},kI={get:Nu(!1,!0)},DI={get:Nu(!0,!1)},LI={get:Nu(!0,!0)},I2=new WeakMap,k2=new WeakMap,D2=new WeakMap,L2=new WeakMap;function PI(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FI(n){return n.__v_skip||!Object.isExtensible(n)?0:PI(sI(n))}function Hn(n){return ao(n)?n:Ou(n,!1,TI,II,I2)}function P2(n){return Ou(n,!1,CI,kI,k2)}function F2(n){return Ou(n,!0,xI,DI,D2)}function UI(n){return Ou(n,!0,wI,LI,L2)}function Ou(n,e,t,s,r){if(!zt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const i=r.get(n);if(i)return i;const o=FI(n);if(o===0)return n;const a=new Proxy(n,o===2?s:t);return r.set(n,a),a}function Jo(n){return ao(n)?Jo(n.__v_raw):!!(n&&n.__v_isReactive)}function ao(n){return!!(n&&n.__v_isReadonly)}function Ts(n){return!!(n&&n.__v_isShallow)}function zb(n){return n?!!n.__v_raw:!1}function It(n){const e=n&&n.__v_raw;return e?It(e):n}function Iu(n){return!Lt(n,"__v_skip")&&Object.isExtensible(n)&&f2(n,"__v_skip",!0),n}const Nn=n=>zt(n)?Hn(n):n,Hb=n=>zt(n)?F2(n):n;function pn(n){return n?n.__v_isRef===!0:!1}function ot(n){return U2(n,!1)}function BI(n){return U2(n,!0)}function U2(n,e){return pn(n)?n:new GI(n,e)}class GI{constructor(e,t){this.dep=new Ru,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:It(e),this._value=t?e:Nn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,s=this.__v_isShallow||Ts(e)||ao(e);e=s?e:It(e),vi(e,t)&&(this._rawValue=e,this._value=s?e:Nn(e),this.dep.trigger())}}function bt(n){return pn(n)?n.value:n}const VI={get:(n,e,t)=>e==="__v_raw"?n:bt(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const r=n[e];return pn(r)&&!pn(t)?(r.value=t,!0):Reflect.set(n,e,t,s)}};function B2(n){return Jo(n)?n:new Proxy(n,VI)}class zI{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ru,{get:s,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function HI(n){return new zI(n)}function qI(n){const e=it(n)?new Array(n.length):{};for(const t in n)e[t]=G2(n,t);return e}class YI{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return bI(It(this._object),this._key)}}class $I{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bd(n,e,t){return pn(n)?n:ft(n)?new $I(n):zt(n)&&arguments.length>1?G2(n,e,t):ot(n)}function G2(n,e,t){const s=n[e];return pn(s)?s:new YI(n,e,t)}class WI{constructor(e,t,s){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ru(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Kt!==this)return S2(this),!0}get value(){const e=this.dep.track();return C2(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function KI(n,e,t=!1){let s,r;return ft(n)?s=n:(s=n.get,r=n.set),new WI(s,r,t)}const wc={},Gd=new WeakMap;let Bi;function jI(n,e=!1,t=Bi){if(t){let s=Gd.get(t);s||Gd.set(t,s=[]),s.push(n)}}function QI(n,e,t=$t){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:a,call:c}=t,d=S=>r?S:Ts(S)||r===!1||r===0?Rr(S,1):Rr(S);let u,_,m,h,g=!1,f=!1;if(pn(n)?(_=()=>n.value,g=Ts(n)):Jo(n)?(_=()=>d(n),g=!0):it(n)?(f=!0,g=n.some(S=>Jo(S)||Ts(S)),_=()=>n.map(S=>{if(pn(S))return S.value;if(Jo(S))return d(S);if(ft(S))return c?c(S,2):S()})):ft(n)?e?_=c?()=>c(n,2):n:_=()=>{if(m){xi();try{m()}finally{Ci()}}const S=Bi;Bi=u;try{return c?c(n,3,[h]):n(h)}finally{Bi=S}}:_=rr,e&&r){const S=_,R=r===!0?1/0:r;_=()=>Rr(S(),R)}const y=y2(),b=()=>{u.stop(),y&&Lb(y.effects,u)};if(i&&e){const S=e;e=(...R)=>{S(...R),b()}}let v=f?new Array(n.length).fill(wc):wc;const E=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(e){const R=u.run();if(r||g||(f?R.some((w,A)=>vi(w,v[A])):vi(R,v))){m&&m();const w=Bi;Bi=u;try{const A=[R,v===wc?void 0:f&&v[0]===wc?[]:v,h];c?c(e,3,A):e(...A),v=R}finally{Bi=w}}}else u.run()};return a&&a(E),u=new v2(_),u.scheduler=o?()=>o(E,!1):E,h=S=>jI(S,!1,u),m=u.onStop=()=>{const S=Gd.get(u);if(S){if(c)c(S,4);else for(const R of S)R();Gd.delete(u)}},e?s?E(!0):v=u.run():o?o(E.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Rr(n,e=1/0,t){if(e<=0||!zt(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,pn(n))Rr(n.value,e,t);else if(it(n))for(let s=0;s{Rr(s,e,t)});else if(p2(n)){for(const s in n)Rr(n[s],e,t);for(const s of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,s)&&Rr(n[s],e,t)}return n}/** +**/let Un;class b2{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Un,!e&&Un&&(this.index=(Un.scopes||(Un.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;$o;){let e=$o,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=$o,$o=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){n||(n=s)}e=t}}if(n)throw n}function T2(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function x2(n){let e,t=n.depsTail,s=t;for(;s;){const r=s.prevDep;s.version===-1?(s===t&&(t=r),Gb(s),hI(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}n.deps=e,n.depsTail=t}function wg(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(C2(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function C2(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Pl))return;n.globalVersion=Pl;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!wg(n)){n.flags&=-3;return}const t=Kt,s=Us;Kt=n,Us=!0;try{T2(n);const r=n.fn(n._value);(e.version===0||vi(r,n._value))&&(n._value=r,e.version++)}catch(r){throw e.version++,r}finally{Kt=t,Us=s,x2(n),n.flags&=-3}}function Gb(n,e=!1){const{dep:t,prevSub:s,nextSub:r}=n;if(s&&(s.nextSub=r,n.prevSub=void 0),r&&(r.prevSub=s,n.nextSub=void 0),t.subs===n&&(t.subs=s),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Gb(i,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function hI(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Us=!0;const w2=[];function xi(){w2.push(Us),Us=!1}function Ci(){const n=w2.pop();Us=n===void 0?!0:n}function $y(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=Kt;Kt=void 0;try{e()}finally{Kt=t}}}let Pl=0;class gI{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ru{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Kt||!Us||Kt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Kt)t=this.activeLink=new gI(Kt,this),Kt.deps?(t.prevDep=Kt.depsTail,Kt.depsTail.nextDep=t,Kt.depsTail=t):Kt.deps=Kt.depsTail=t,R2(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const s=t.nextDep;s.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=s),t.prevDep=Kt.depsTail,t.nextDep=void 0,Kt.depsTail.nextDep=t,Kt.depsTail=t,Kt.deps===t&&(Kt.deps=s)}return t}trigger(e){this.version++,Pl++,this.notify(e)}notify(e){Ub();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Bb()}}}function R2(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)R2(s)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const Ud=new WeakMap,Qi=Symbol(""),Rg=Symbol(""),Fl=Symbol("");function Dn(n,e,t){if(Us&&Kt){let s=Ud.get(n);s||Ud.set(n,s=new Map);let r=s.get(t);r||(s.set(t,r=new Ru),r.target=n,r.map=s,r.key=t),r.track()}}function Or(n,e,t,s,r,i){const o=Ud.get(n);if(!o){Pl++;return}const a=c=>{c&&c.trigger()};if(Ub(),e==="clear")o.forEach(a);else{const c=ot(n),d=c&&Pb(t);if(c&&t==="length"){const u=Number(s);o.forEach((_,m)=>{(m==="length"||m===Fl||!lr(m)&&m>=u)&&a(_)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(Fl)),e){case"add":c?d&&a(o.get("length")):(a(o.get(Qi)),Xo(n)&&a(o.get(Rg)));break;case"delete":c||(a(o.get(Qi)),Xo(n)&&a(o.get(Rg)));break;case"set":Xo(n)&&a(o.get(Qi));break}}Bb()}function bI(n,e){const t=Ud.get(n);return t&&t.get(e)}function So(n){const e=It(n);return e===n?e:(Dn(e,"iterate",Fl),Ts(n)?e:e.map(Nn))}function Au(n){return Dn(n=It(n),"iterate",Fl),n}const yI={__proto__:null,[Symbol.iterator](){return Mp(this,Symbol.iterator,Nn)},concat(...n){return So(this).concat(...n.map(e=>ot(e)?So(e):e))},entries(){return Mp(this,"entries",n=>(n[1]=Nn(n[1]),n))},every(n,e){return hr(this,"every",n,e,void 0,arguments)},filter(n,e){return hr(this,"filter",n,e,t=>t.map(Nn),arguments)},find(n,e){return hr(this,"find",n,e,Nn,arguments)},findIndex(n,e){return hr(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return hr(this,"findLast",n,e,Nn,arguments)},findLastIndex(n,e){return hr(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return hr(this,"forEach",n,e,void 0,arguments)},includes(...n){return Np(this,"includes",n)},indexOf(...n){return Np(this,"indexOf",n)},join(n){return So(this).join(n)},lastIndexOf(...n){return Np(this,"lastIndexOf",n)},map(n,e){return hr(this,"map",n,e,void 0,arguments)},pop(){return Xa(this,"pop")},push(...n){return Xa(this,"push",n)},reduce(n,...e){return Wy(this,"reduce",n,e)},reduceRight(n,...e){return Wy(this,"reduceRight",n,e)},shift(){return Xa(this,"shift")},some(n,e){return hr(this,"some",n,e,void 0,arguments)},splice(...n){return Xa(this,"splice",n)},toReversed(){return So(this).toReversed()},toSorted(n){return So(this).toSorted(n)},toSpliced(...n){return So(this).toSpliced(...n)},unshift(...n){return Xa(this,"unshift",n)},values(){return Mp(this,"values",Nn)}};function Mp(n,e,t){const s=Au(n),r=s[e]();return s!==n&&!Ts(n)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=t(i.value)),i}),r}const vI=Array.prototype;function hr(n,e,t,s,r,i){const o=Au(n),a=o!==n&&!Ts(n),c=o[e];if(c!==vI[e]){const _=c.apply(n,i);return a?Nn(_):_}let d=t;o!==n&&(a?d=function(_,m){return t.call(this,Nn(_),m,n)}:t.length>2&&(d=function(_,m){return t.call(this,_,m,n)}));const u=c.call(o,d,s);return a&&r?r(u):u}function Wy(n,e,t,s){const r=Au(n);let i=t;return r!==n&&(Ts(n)?t.length>3&&(i=function(o,a,c){return t.call(this,o,a,c,n)}):i=function(o,a,c){return t.call(this,o,Nn(a),c,n)}),r[e](i,...s)}function Np(n,e,t){const s=It(n);Dn(s,"iterate",Fl);const r=s[e](...t);return(r===-1||r===!1)&&zb(t[0])?(t[0]=It(t[0]),s[e](...t)):r}function Xa(n,e,t=[]){xi(),Ub();const s=It(n)[e].apply(n,t);return Bb(),Ci(),s}const EI=kb("__proto__,__v_isRef,__isVue"),A2=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(lr));function SI(n){lr(n)||(n=String(n));const e=It(this);return Dn(e,"has",n),e.hasOwnProperty(n)}class M2{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const r=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return i;if(t==="__v_raw")return s===(r?i?L2:D2:i?k2:I2).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=ot(e);if(!r){let c;if(o&&(c=yI[t]))return c;if(t==="hasOwnProperty")return SI}const a=Reflect.get(e,t,pn(e)?e:s);return(lr(t)?A2.has(t):EI(t))||(r||Dn(e,"get",t),i)?a:pn(a)?o&&Pb(t)?a:a.value:zt(a)?r?F2(a):Hn(a):a}}class N2 extends M2{constructor(e=!1){super(!1,e)}set(e,t,s,r){let i=e[t];if(!this._isShallow){const c=ao(i);if(!Ts(s)&&!ao(s)&&(i=It(i),s=It(s)),!ot(e)&&pn(i)&&!pn(s))return c?!1:(i.value=s,!0)}const o=ot(e)&&Pb(t)?Number(t)n,Mu=n=>Reflect.getPrototypeOf(n);function Ec(n,e,t=!1,s=!1){n=n.__v_raw;const r=It(n),i=It(e);t||(vi(e,i)&&Dn(r,"get",e),Dn(r,"get",i));const{has:o}=Mu(r),a=s?Vb:t?Hb:Nn;if(o.call(r,e))return a(n.get(e));if(o.call(r,i))return a(n.get(i));n!==r&&n.get(e)}function Sc(n,e=!1){const t=this.__v_raw,s=It(t),r=It(n);return e||(vi(n,r)&&Dn(s,"has",n),Dn(s,"has",r)),n===r?t.has(n):t.has(n)||t.has(r)}function Tc(n,e=!1){return n=n.__v_raw,!e&&Dn(It(n),"iterate",Qi),Reflect.get(n,"size",n)}function Ky(n,e=!1){!e&&!Ts(n)&&!ao(n)&&(n=It(n));const t=It(this);return Mu(t).has.call(t,n)||(t.add(n),Or(t,"add",n,n)),this}function jy(n,e,t=!1){!t&&!Ts(e)&&!ao(e)&&(e=It(e));const s=It(this),{has:r,get:i}=Mu(s);let o=r.call(s,n);o||(n=It(n),o=r.call(s,n));const a=i.call(s,n);return s.set(n,e),o?vi(e,a)&&Or(s,"set",n,e):Or(s,"add",n,e),this}function Qy(n){const e=It(this),{has:t,get:s}=Mu(e);let r=t.call(e,n);r||(n=It(n),r=t.call(e,n)),s&&s.call(e,n);const i=e.delete(n);return r&&Or(e,"delete",n,void 0),i}function Xy(){const n=It(this),e=n.size!==0,t=n.clear();return e&&Or(n,"clear",void 0,void 0),t}function xc(n,e){return function(s,r){const i=this,o=i.__v_raw,a=It(o),c=e?Vb:n?Hb:Nn;return!n&&Dn(a,"iterate",Qi),o.forEach((d,u)=>s.call(r,c(d),c(u),i))}}function Cc(n,e,t){return function(...s){const r=this.__v_raw,i=It(r),o=Xo(i),a=n==="entries"||n===Symbol.iterator&&o,c=n==="keys"&&o,d=r[n](...s),u=t?Vb:e?Hb:Nn;return!e&&Dn(i,"iterate",c?Rg:Qi),{next(){const{value:_,done:m}=d.next();return m?{value:_,done:m}:{value:a?[u(_[0]),u(_[1])]:u(_),done:m}},[Symbol.iterator](){return this}}}}function qr(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function RI(){const n={get(i){return Ec(this,i)},get size(){return Tc(this)},has:Sc,add:Ky,set:jy,delete:Qy,clear:Xy,forEach:xc(!1,!1)},e={get(i){return Ec(this,i,!1,!0)},get size(){return Tc(this)},has:Sc,add(i){return Ky.call(this,i,!0)},set(i,o){return jy.call(this,i,o,!0)},delete:Qy,clear:Xy,forEach:xc(!1,!0)},t={get(i){return Ec(this,i,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!1)},s={get(i){return Ec(this,i,!0,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Cc(i,!1,!1),t[i]=Cc(i,!0,!1),e[i]=Cc(i,!1,!0),s[i]=Cc(i,!0,!0)}),[n,t,e,s]}const[AI,MI,NI,OI]=RI();function Nu(n,e){const t=e?n?OI:NI:n?MI:AI;return(s,r,i)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?s:Reflect.get(Lt(t,r)&&r in s?t:s,r,i)}const II={get:Nu(!1,!1)},kI={get:Nu(!1,!0)},DI={get:Nu(!0,!1)},LI={get:Nu(!0,!0)},I2=new WeakMap,k2=new WeakMap,D2=new WeakMap,L2=new WeakMap;function PI(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FI(n){return n.__v_skip||!Object.isExtensible(n)?0:PI(sI(n))}function Hn(n){return ao(n)?n:Ou(n,!1,TI,II,I2)}function P2(n){return Ou(n,!1,CI,kI,k2)}function F2(n){return Ou(n,!0,xI,DI,D2)}function UI(n){return Ou(n,!0,wI,LI,L2)}function Ou(n,e,t,s,r){if(!zt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const i=r.get(n);if(i)return i;const o=FI(n);if(o===0)return n;const a=new Proxy(n,o===2?s:t);return r.set(n,a),a}function Jo(n){return ao(n)?Jo(n.__v_raw):!!(n&&n.__v_isReactive)}function ao(n){return!!(n&&n.__v_isReadonly)}function Ts(n){return!!(n&&n.__v_isShallow)}function zb(n){return n?!!n.__v_raw:!1}function It(n){const e=n&&n.__v_raw;return e?It(e):n}function Iu(n){return!Lt(n,"__v_skip")&&Object.isExtensible(n)&&f2(n,"__v_skip",!0),n}const Nn=n=>zt(n)?Hn(n):n,Hb=n=>zt(n)?F2(n):n;function pn(n){return n?n.__v_isRef===!0:!1}function it(n){return U2(n,!1)}function BI(n){return U2(n,!0)}function U2(n,e){return pn(n)?n:new GI(n,e)}class GI{constructor(e,t){this.dep=new Ru,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:It(e),this._value=t?e:Nn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,s=this.__v_isShallow||Ts(e)||ao(e);e=s?e:It(e),vi(e,t)&&(this._rawValue=e,this._value=s?e:Nn(e),this.dep.trigger())}}function bt(n){return pn(n)?n.value:n}const VI={get:(n,e,t)=>e==="__v_raw"?n:bt(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const r=n[e];return pn(r)&&!pn(t)?(r.value=t,!0):Reflect.set(n,e,t,s)}};function B2(n){return Jo(n)?n:new Proxy(n,VI)}class zI{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ru,{get:s,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function HI(n){return new zI(n)}function qI(n){const e=ot(n)?new Array(n.length):{};for(const t in n)e[t]=G2(n,t);return e}class YI{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return bI(It(this._object),this._key)}}class $I{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bd(n,e,t){return pn(n)?n:ft(n)?new $I(n):zt(n)&&arguments.length>1?G2(n,e,t):it(n)}function G2(n,e,t){const s=n[e];return pn(s)?s:new YI(n,e,t)}class WI{constructor(e,t,s){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ru(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Kt!==this)return S2(this),!0}get value(){const e=this.dep.track();return C2(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function KI(n,e,t=!1){let s,r;return ft(n)?s=n:(s=n.get,r=n.set),new WI(s,r,t)}const wc={},Gd=new WeakMap;let Bi;function jI(n,e=!1,t=Bi){if(t){let s=Gd.get(t);s||Gd.set(t,s=[]),s.push(n)}}function QI(n,e,t=$t){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:a,call:c}=t,d=S=>r?S:Ts(S)||r===!1||r===0?Rr(S,1):Rr(S);let u,_,m,h,g=!1,f=!1;if(pn(n)?(_=()=>n.value,g=Ts(n)):Jo(n)?(_=()=>d(n),g=!0):ot(n)?(f=!0,g=n.some(S=>Jo(S)||Ts(S)),_=()=>n.map(S=>{if(pn(S))return S.value;if(Jo(S))return d(S);if(ft(S))return c?c(S,2):S()})):ft(n)?e?_=c?()=>c(n,2):n:_=()=>{if(m){xi();try{m()}finally{Ci()}}const S=Bi;Bi=u;try{return c?c(n,3,[h]):n(h)}finally{Bi=S}}:_=ir,e&&r){const S=_,R=r===!0?1/0:r;_=()=>Rr(S(),R)}const y=y2(),b=()=>{u.stop(),y&&Lb(y.effects,u)};if(i&&e){const S=e;e=(...R)=>{S(...R),b()}}let v=f?new Array(n.length).fill(wc):wc;const E=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(e){const R=u.run();if(r||g||(f?R.some((w,A)=>vi(w,v[A])):vi(R,v))){m&&m();const w=Bi;Bi=u;try{const A=[R,v===wc?void 0:f&&v[0]===wc?[]:v,h];c?c(e,3,A):e(...A),v=R}finally{Bi=w}}}else u.run()};return a&&a(E),u=new v2(_),u.scheduler=o?()=>o(E,!1):E,h=S=>jI(S,!1,u),m=u.onStop=()=>{const S=Gd.get(u);if(S){if(c)c(S,4);else for(const R of S)R();Gd.delete(u)}},e?s?E(!0):v=u.run():o?o(E.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Rr(n,e=1/0,t){if(e<=0||!zt(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,pn(n))Rr(n.value,e,t);else if(ot(n))for(let s=0;s{Rr(s,e,t)});else if(p2(n)){for(const s in n)Rr(n[s],e,t);for(const s of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,s)&&Rr(n[s],e,t)}return n}/** * @vue/runtime-core v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function tc(n,e,t,s){try{return s?n(...s):n()}catch(r){ku(r,e,t)}}function zs(n,e,t,s){if(ft(n)){const r=tc(n,e,t,s);return r&&d2(r)&&r.catch(i=>{ku(i,e,t)}),r}if(it(n)){const r=[];for(let i=0;i>>1,r=Bn[s],i=Bl(r);i=Bl(t)?Bn.push(n):Bn.splice(ZI(e),0,n),n.flags|=1,z2()}}function z2(){!Ul&&!Ag&&(Ag=!0,qb=V2.then(q2))}function JI(n){it(n)?ea.push(...n):ti&&n.id===-1?ti.splice(qo+1,0,n):n.flags&1||(ea.push(n),n.flags|=1),z2()}function Zy(n,e,t=Ul?js+1:0){for(;tBl(t)-Bl(s));if(ea.length=0,ti){ti.push(...e);return}for(ti=e,qo=0;qon.id==null?n.flags&2?-1:1/0:n.id;function q2(n){Ag=!1,Ul=!0;try{for(js=0;js{s._d&&cv(-1);const i=Vd(e);let o;try{o=n(...r)}finally{Vd(i),s._d&&cv(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function k(n,e){if(bn===null)return n;const t=Gu(bn),s=n.dirs||(n.dirs=[]);for(let r=0;rn.__isTeleport,vl=n=>n&&(n.disabled||n.disabled===""),ek=n=>n&&(n.defer||n.defer===""),Jy=n=>typeof SVGElement<"u"&&n instanceof SVGElement,ev=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Mg=(n,e)=>{const t=n&&n.to;return Xt(t)?e?e(t):null:t},tk={name:"Teleport",__isTeleport:!0,process(n,e,t,s,r,i,o,a,c,d){const{mc:u,pc:_,pbc:m,o:{insert:h,querySelector:g,createText:f,createComment:y}}=d,b=vl(e.props);let{shapeFlag:v,children:E,dynamicChildren:S}=e;if(n==null){const R=e.el=f(""),w=e.anchor=f("");h(R,t,s),h(w,t,s);const A=(C,M)=>{v&16&&(r&&r.isCE&&(r.ce._teleportTarget=C),u(E,C,M,r,i,o,a,c))},I=()=>{const C=e.target=Mg(e.props,g),M=K2(C,e,f,h);C&&(o!=="svg"&&Jy(C)?o="svg":o!=="mathml"&&ev(C)&&(o="mathml"),b||(A(C,M),vd(e)))};b&&(A(t,w),vd(e)),ek(e.props)?hn(I,i):I()}else{e.el=n.el,e.targetStart=n.targetStart;const R=e.anchor=n.anchor,w=e.target=n.target,A=e.targetAnchor=n.targetAnchor,I=vl(n.props),C=I?t:w,M=I?R:A;if(o==="svg"||Jy(w)?o="svg":(o==="mathml"||ev(w))&&(o="mathml"),S?(m(n.dynamicChildren,S,C,r,i,o,a),jb(n,e,!0)):c||_(n,e,C,M,r,i,o,a,!1),b)I?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Rc(e,t,R,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const G=e.target=Mg(e.props,g);G&&Rc(e,G,null,d,0)}else I&&Rc(e,w,A,d,1);vd(e)}},remove(n,e,t,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:d,targetAnchor:u,target:_,props:m}=n;if(_&&(r(d),r(u)),i&&r(c),o&16){const h=i||!vl(m);for(let g=0;g{n.isMounted=!0}),La(()=>{n.isUnmounting=!0}),n}const ps=[Function,Array],Q2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ps,onEnter:ps,onAfterEnter:ps,onEnterCancelled:ps,onBeforeLeave:ps,onLeave:ps,onAfterLeave:ps,onLeaveCancelled:ps,onBeforeAppear:ps,onAppear:ps,onAfterAppear:ps,onAppearCancelled:ps},X2=n=>{const e=n.subTree;return e.component?X2(e.component):e},rk={name:"BaseTransition",props:Q2,setup(n,{slots:e}){const t=Xb(),s=j2();return()=>{const r=e.default&&$b(e.default(),!0);if(!r||!r.length)return;const i=Z2(r),o=It(n),{mode:a}=o;if(s.isLeaving)return Op(i);const c=tv(i);if(!c)return Op(i);let d=Gl(c,o,s,t,m=>d=m);c.type!==In&&Ei(c,d);const u=t.subTree,_=u&&tv(u);if(_&&_.type!==In&&!ui(c,_)&&X2(t).type!==In){const m=Gl(_,o,s,t);if(Ei(_,m),a==="out-in"&&c.type!==In)return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,t.job.flags&8||t.update(),delete m.afterLeave},Op(i);a==="in-out"&&c.type!==In&&(m.delayLeave=(h,g,f)=>{const y=J2(s,_);y[String(_.key)]=_,h[ni]=()=>{g(),h[ni]=void 0,delete d.delayedLeave},d.delayedLeave=f})}return i}}};function Z2(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==In){e=t;break}}return e}const ik=rk;function J2(n,e){const{leavingVNodes:t}=n;let s=t.get(e.type);return s||(s=Object.create(null),t.set(e.type,s)),s}function Gl(n,e,t,s,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:_,onBeforeLeave:m,onLeave:h,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:y,onAppear:b,onAfterAppear:v,onAppearCancelled:E}=e,S=String(n.key),R=J2(t,n),w=(C,M)=>{C&&zs(C,s,9,M)},A=(C,M)=>{const G=M[1];w(C,M),it(C)?C.every(V=>V.length<=1)&&G():C.length<=1&&G()},I={mode:o,persisted:a,beforeEnter(C){let M=c;if(!t.isMounted)if(i)M=y||c;else return;C[ni]&&C[ni](!0);const G=R[S];G&&ui(n,G)&&G.el[ni]&&G.el[ni](),w(M,[C])},enter(C){let M=d,G=u,V=_;if(!t.isMounted)if(i)M=b||d,G=v||u,V=E||_;else return;let ee=!1;const O=C[Ac]=H=>{ee||(ee=!0,H?w(V,[C]):w(G,[C]),I.delayedLeave&&I.delayedLeave(),C[Ac]=void 0)};M?A(M,[C,O]):O()},leave(C,M){const G=String(n.key);if(C[Ac]&&C[Ac](!0),t.isUnmounting)return M();w(m,[C]);let V=!1;const ee=C[ni]=O=>{V||(V=!0,M(),O?w(f,[C]):w(g,[C]),C[ni]=void 0,R[G]===n&&delete R[G])};R[G]=n,h?A(h,[C,ee]):ee()},clone(C){const M=Gl(C,e,t,s,r);return r&&r(M),M}};return I}function Op(n){if(Du(n))return n=Lr(n),n.children=null,n}function tv(n){if(!Du(n))return W2(n.type)&&n.children?Z2(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&ft(t.default))return t.default()}}function Ei(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Ei(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function $b(n,e=!1,t){let s=[],r=0;for(let i=0;i1)for(let i=0;iNg(g,e&&(it(e)?e[f]:e),t,s,r));return}if(Xi(s)&&!r)return;const i=s.shapeFlag&4?Gu(s.component):s.el,o=r?null:i,{i:a,r:c}=n,d=e&&e.r,u=a.refs===$t?a.refs={}:a.refs,_=a.setupState,m=It(_),h=_===$t?()=>!1:g=>Lt(m,g);if(d!=null&&d!==c&&(Xt(d)?(u[d]=null,h(d)&&(_[d]=null)):pn(d)&&(d.value=null)),ft(c))tc(c,a,12,[o,u]);else{const g=Xt(c),f=pn(c);if(g||f){const y=()=>{if(n.f){const b=g?h(c)?_[c]:u[c]:c.value;r?it(b)&&Lb(b,i):it(b)?b.includes(i)||b.push(i):g?(u[c]=[i],h(c)&&(_[c]=u[c])):(c.value=[i],n.k&&(u[n.k]=c.value))}else g?(u[c]=o,h(c)&&(_[c]=o)):f&&(c.value=o,n.k&&(u[n.k]=o))};o?(y.id=-1,hn(y,t)):y()}}}const Xi=n=>!!n.type.__asyncLoader,Du=n=>n.type.__isKeepAlive,ok={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=Xb(),s=t.ctx;if(!s.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const r=new Map,i=new Set;let o=null;const a=t.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:_}}}=s,m=_("div");s.activate=(v,E,S,R,w)=>{const A=v.component;d(v,E,S,0,a),c(A.vnode,v,E,S,A,a,R,v.slotScopeIds,w),hn(()=>{A.isDeactivated=!1,A.a&&Zo(A.a);const I=v.props&&v.props.onVnodeMounted;I&&_s(I,A.parent,v)},a)},s.deactivate=v=>{const E=v.component;Hd(E.m),Hd(E.a),d(v,m,null,1,a),hn(()=>{E.da&&Zo(E.da);const S=v.props&&v.props.onVnodeUnmounted;S&&_s(S,E.parent,v),E.isDeactivated=!0},a)};function h(v){Ip(v),u(v,t,a,!0)}function g(v){r.forEach((E,S)=>{const R=Pg(E.type);R&&!v(R)&&f(S)})}function f(v){const E=r.get(v);E&&(!o||!ui(E,o))?h(E):o&&Ip(o),r.delete(v),i.delete(v)}Tn(()=>[n.include,n.exclude],([v,E])=>{v&&g(S=>_l(v,S)),E&&g(S=>!_l(E,S))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(qd(t.subTree.type)?hn(()=>{r.set(y,Mc(t.subTree))},t.subTree.suspense):r.set(y,Mc(t.subTree)))};return dr(b),nc(b),La(()=>{r.forEach(v=>{const{subTree:E,suspense:S}=t,R=Mc(E);if(v.type===R.type&&v.key===R.key){Ip(R);const w=R.component.da;w&&hn(w,S);return}h(v)})}),()=>{if(y=null,!e.default)return o=null;const v=e.default(),E=v[0];if(v.length>1)return o=null,v;if(!la(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let S=Mc(E);if(S.type===In)return o=null,S;const R=S.type,w=Pg(Xi(S)?S.type.__asyncResolved||{}:R),{include:A,exclude:I,max:C}=n;if(A&&(!w||!_l(A,w))||I&&w&&_l(I,w))return S.shapeFlag&=-257,o=S,E;const M=S.key==null?R:S.key,G=r.get(M);return S.el&&(S=Lr(S),E.shapeFlag&128&&(E.ssContent=S)),y=M,G?(S.el=G.el,S.component=G.component,S.transition&&Ei(S,S.transition),S.shapeFlag|=512,i.delete(M),i.add(M)):(i.add(M),C&&i.size>parseInt(C,10)&&f(i.values().next().value)),S.shapeFlag|=256,o=S,qd(E.type)?E:S}}},ak=ok;function _l(n,e){return it(n)?n.some(t=>_l(t,e)):Xt(n)?n.split(",").includes(e):nI(n)?(n.lastIndex=0,n.test(e)):!1}function lk(n,e){tR(n,"a",e)}function ck(n,e){tR(n,"da",e)}function tR(n,e,t=Sn){const s=n.__wdc||(n.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return n()});if(Lu(e,s,t),t){let r=t.parent;for(;r&&r.parent;)Du(r.parent.vnode)&&dk(s,e,t,r),r=r.parent}}function dk(n,e,t,s){const r=Lu(e,n,s,!0);nR(()=>{Lb(s[e],r)},t)}function Ip(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Mc(n){return n.shapeFlag&128?n.ssContent:n}function Lu(n,e,t=Sn,s=!1){if(t){const r=t[n]||(t[n]=[]),i=e.__weh||(e.__weh=(...o)=>{xi();const a=sc(t),c=zs(e,t,n,o);return a(),Ci(),c});return s?r.unshift(i):r.push(i),i}}const Ur=n=>(e,t=Sn)=>{(!Bu||n==="sp")&&Lu(n,(...s)=>e(...s),t)},uk=Ur("bm"),dr=Ur("m"),pk=Ur("bu"),nc=Ur("u"),La=Ur("bum"),nR=Ur("um"),fk=Ur("sp"),_k=Ur("rtg"),mk=Ur("rtc");function hk(n,e=Sn){Lu("ec",n,e)}const sR="components";function Je(n,e){return iR(sR,n,!0,e)||n}const rR=Symbol.for("v-ndc");function Pu(n){return Xt(n)?iR(sR,n,!1)||n:n||rR}function iR(n,e,t=!0,s=!1){const r=bn||Sn;if(r){const i=r.type;{const a=Pg(i,!1);if(a&&(a===e||a===ws(e)||a===wu(ws(e))))return i}const o=nv(r[n]||i[n],e)||nv(r.appContext[n],e);return!o&&s?i:o}}function nv(n,e){return n&&(n[e]||n[ws(e)]||n[wu(ws(e))])}function We(n,e,t,s){let r;const i=t,o=it(n);if(o||Xt(n)){const a=o&&Jo(n);let c=!1;a&&(c=!Ts(n),n=Au(n)),r=new Array(n.length);for(let d=0,u=n.length;de(a,c,void 0,i));else{const a=Object.keys(n);r=new Array(a.length);for(let c=0,d=a.length;cla(e)?!(e.type===In||e.type===Fe&&!oR(e.children)):!0)?n:null}function gk(n,e){const t={};for(const s in n)t[/[A-Z]/.test(s)?`on:${s}`:yd(s)]=n[s];return t}const Og=n=>n?CR(n)?Gu(n):Og(n.parent):null,El=ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Og(n.parent),$root:n=>Og(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>Wb(n),$forceUpdate:n=>n.f||(n.f=()=>{Yb(n.update)}),$nextTick:n=>n.n||(n.n=Ue.bind(n.proxy)),$watch:n=>Uk.bind(n)}),kp=(n,e)=>n!==$t&&!n.__isScriptSetup&&Lt(n,e),bk={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:c}=n;let d;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return s[e];case 2:return r[e];case 4:return t[e];case 3:return i[e]}else{if(kp(s,e))return o[e]=1,s[e];if(r!==$t&&Lt(r,e))return o[e]=2,r[e];if((d=n.propsOptions[0])&&Lt(d,e))return o[e]=3,i[e];if(t!==$t&&Lt(t,e))return o[e]=4,t[e];Ig&&(o[e]=0)}}const u=El[e];let _,m;if(u)return e==="$attrs"&&Dn(n.attrs,"get",""),u(n);if((_=a.__cssModules)&&(_=_[e]))return _;if(t!==$t&&Lt(t,e))return o[e]=4,t[e];if(m=c.config.globalProperties,Lt(m,e))return m[e]},set({_:n},e,t){const{data:s,setupState:r,ctx:i}=n;return kp(r,e)?(r[e]=t,!0):s!==$t&&Lt(s,e)?(s[e]=t,!0):Lt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(i[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!t[o]||n!==$t&&Lt(n,o)||kp(e,o)||(a=i[0])&&Lt(a,o)||Lt(s,o)||Lt(El,o)||Lt(r.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Lt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function sv(n){return it(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Ig=!0;function yk(n){const e=Wb(n),t=n.proxy,s=n.ctx;Ig=!1,e.beforeCreate&&rv(e.beforeCreate,n,"bc");const{data:r,computed:i,methods:o,watch:a,provide:c,inject:d,created:u,beforeMount:_,mounted:m,beforeUpdate:h,updated:g,activated:f,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:E,unmounted:S,render:R,renderTracked:w,renderTriggered:A,errorCaptured:I,serverPrefetch:C,expose:M,inheritAttrs:G,components:V,directives:ee,filters:O}=e;if(d&&vk(d,s,null),o)for(const L in o){const W=o[L];ft(W)&&(s[L]=W.bind(t))}if(r){const L=r.call(t,t);zt(L)&&(n.data=Hn(L))}if(Ig=!0,i)for(const L in i){const W=i[L],se=ft(W)?W.bind(t,t):ft(W.get)?W.get.bind(t,t):rr,oe=!ft(W)&&ft(W.set)?W.set.bind(t):rr,ye=et({get:se,set:oe});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>ye.value,set:xe=>ye.value=xe})}if(a)for(const L in a)aR(a[L],s,t,L);if(c){const L=ft(c)?c.call(t):c;Reflect.ownKeys(L).forEach(W=>{na(W,L[W])})}u&&rv(u,n,"c");function q(L,W){it(W)?W.forEach(se=>L(se.bind(t))):W&&L(W.bind(t))}if(q(uk,_),q(dr,m),q(pk,h),q(nc,g),q(lk,f),q(ck,y),q(hk,I),q(mk,w),q(_k,A),q(La,v),q(nR,S),q(fk,C),it(M))if(M.length){const L=n.exposed||(n.exposed={});M.forEach(W=>{Object.defineProperty(L,W,{get:()=>t[W],set:se=>t[W]=se})})}else n.exposed||(n.exposed={});R&&n.render===rr&&(n.render=R),G!=null&&(n.inheritAttrs=G),V&&(n.components=V),ee&&(n.directives=ee),C&&eR(n)}function vk(n,e,t=rr){it(n)&&(n=kg(n));for(const s in n){const r=n[s];let i;zt(r)?"default"in r?i=os(r.from||s,r.default,!0):i=os(r.from||s):i=os(r),pn(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function rv(n,e,t){zs(it(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function aR(n,e,t,s){let r=s.includes(".")?vR(t,s):()=>t[s];if(Xt(n)){const i=e[n];ft(i)&&Tn(r,i)}else if(ft(n))Tn(r,n.bind(t));else if(zt(n))if(it(n))n.forEach(i=>aR(i,e,t,s));else{const i=ft(n.handler)?n.handler.bind(t):e[n.handler];ft(i)&&Tn(r,i,n)}}function Wb(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=n.appContext,a=i.get(e);let c;return a?c=a:!r.length&&!t&&!s?c=e:(c={},r.length&&r.forEach(d=>zd(c,d,o,!0)),zd(c,e,o)),zt(e)&&i.set(e,c),c}function zd(n,e,t,s=!1){const{mixins:r,extends:i}=e;i&&zd(n,i,t,!0),r&&r.forEach(o=>zd(n,o,t,!0));for(const o in e)if(!(s&&o==="expose")){const a=Ek[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const Ek={data:iv,props:ov,emits:ov,methods:ml,computed:ml,beforeCreate:Pn,created:Pn,beforeMount:Pn,mounted:Pn,beforeUpdate:Pn,updated:Pn,beforeDestroy:Pn,beforeUnmount:Pn,destroyed:Pn,unmounted:Pn,activated:Pn,deactivated:Pn,errorCaptured:Pn,serverPrefetch:Pn,components:ml,directives:ml,watch:Tk,provide:iv,inject:Sk};function iv(n,e){return e?n?function(){return ln(ft(n)?n.call(this,this):n,ft(e)?e.call(this,this):e)}:e:n}function Sk(n,e){return ml(kg(n),kg(e))}function kg(n){if(it(n)){const e={};for(let t=0;t1)return t&&ft(e)?e.call(s&&s.proxy):e}}const cR={},dR=()=>Object.create(cR),uR=n=>Object.getPrototypeOf(n)===cR;function wk(n,e,t,s=!1){const r={},i=dR();n.propsDefaults=Object.create(null),pR(n,e,r,i);for(const o in n.propsOptions[0])o in r||(r[o]=void 0);t?n.props=s?r:P2(r):n.type.props?n.props=r:n.props=i,n.attrs=i}function Rk(n,e,t,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=n,a=It(r),[c]=n.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let _=0;_{c=!0;const[m,h]=fR(_,e,!0);ln(o,m),h&&a.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!i&&!c)return zt(n)&&s.set(n,Qo),Qo;if(it(i))for(let u=0;un[0]==="_"||n==="$stable",Kb=n=>it(n)?n.map(Xs):[Xs(n)],Mk=(n,e,t)=>{if(e._n)return e;const s=Ie((...r)=>Kb(e(...r)),t);return s._c=!1,s},mR=(n,e,t)=>{const s=n._ctx;for(const r in n){if(_R(r))continue;const i=n[r];if(ft(i))e[r]=Mk(r,i,s);else if(i!=null){const o=Kb(i);e[r]=()=>o}}},hR=(n,e)=>{const t=Kb(e);n.slots.default=()=>t},gR=(n,e,t)=>{for(const s in e)(t||s!=="_")&&(n[s]=e[s])},Nk=(n,e,t)=>{const s=n.slots=dR();if(n.vnode.shapeFlag&32){const r=e._;r?(gR(s,e,t),t&&f2(s,"_",r,!0)):mR(e,s)}else e&&hR(n,e)},Ok=(n,e,t)=>{const{vnode:s,slots:r}=n;let i=!0,o=$t;if(s.shapeFlag&32){const a=e._;a?t&&a===1?i=!1:gR(r,e,t):(i=!e.$stable,mR(e,r)),o=e}else e&&(hR(n,e),o={default:1});if(i)for(const a in r)!_R(a)&&o[a]==null&&delete r[a]},hn=Yk;function Ik(n){return kk(n)}function kk(n,e){const t=_2();t.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:c,setText:d,setElementText:u,parentNode:_,nextSibling:m,setScopeId:h=rr,insertStaticContent:g}=n,f=(U,P,Z,de=null,pe=null,he=null,le=void 0,Me=null,Re=!!P.dynamicChildren)=>{if(U===P)return;U&&!ui(U,P)&&(de=Q(U),xe(U,pe,he,!0),U=null),P.patchFlag===-2&&(Re=!1,P.dynamicChildren=null);const{type:ge,ref:D,shapeFlag:N}=P;switch(ge){case Uu:y(U,P,Z,de);break;case In:b(U,P,Z,de);break;case Ed:U==null&&v(P,Z,de,le);break;case Fe:V(U,P,Z,de,pe,he,le,Me,Re);break;default:N&1?R(U,P,Z,de,pe,he,le,Me,Re):N&6?ee(U,P,Z,de,pe,he,le,Me,Re):(N&64||N&128)&&ge.process(U,P,Z,de,pe,he,le,Me,Re,Ae)}D!=null&&pe&&Ng(D,U&&U.ref,he,P||U,!P)},y=(U,P,Z,de)=>{if(U==null)s(P.el=a(P.children),Z,de);else{const pe=P.el=U.el;P.children!==U.children&&d(pe,P.children)}},b=(U,P,Z,de)=>{U==null?s(P.el=c(P.children||""),Z,de):P.el=U.el},v=(U,P,Z,de)=>{[U.el,U.anchor]=g(U.children,P,Z,de,U.el,U.anchor)},E=({el:U,anchor:P},Z,de)=>{let pe;for(;U&&U!==P;)pe=m(U),s(U,Z,de),U=pe;s(P,Z,de)},S=({el:U,anchor:P})=>{let Z;for(;U&&U!==P;)Z=m(U),r(U),U=Z;r(P)},R=(U,P,Z,de,pe,he,le,Me,Re)=>{P.type==="svg"?le="svg":P.type==="math"&&(le="mathml"),U==null?w(P,Z,de,pe,he,le,Me,Re):C(U,P,pe,he,le,Me,Re)},w=(U,P,Z,de,pe,he,le,Me)=>{let Re,ge;const{props:D,shapeFlag:N,transition:K,dirs:me}=U;if(Re=U.el=o(U.type,he,D&&D.is,D),N&8?u(Re,U.children):N&16&&I(U.children,Re,null,de,pe,Dp(U,he),le,Me),me&&Ni(U,null,de,"created"),A(Re,U,U.scopeId,le,de),D){for(const re in D)re!=="value"&&!yl(re)&&i(Re,re,null,D[re],he,de);"value"in D&&i(Re,"value",null,D.value,he),(ge=D.onVnodeBeforeMount)&&_s(ge,de,U)}me&&Ni(U,null,de,"beforeMount");const j=Dk(pe,K);j&&K.beforeEnter(Re),s(Re,P,Z),((ge=D&&D.onVnodeMounted)||j||me)&&hn(()=>{ge&&_s(ge,de,U),j&&K.enter(Re),me&&Ni(U,null,de,"mounted")},pe)},A=(U,P,Z,de,pe)=>{if(Z&&h(U,Z),de)for(let he=0;he{for(let ge=Re;ge{const Me=P.el=U.el;let{patchFlag:Re,dynamicChildren:ge,dirs:D}=P;Re|=U.patchFlag&16;const N=U.props||$t,K=P.props||$t;let me;if(Z&&Oi(Z,!1),(me=K.onVnodeBeforeUpdate)&&_s(me,Z,P,U),D&&Ni(P,U,Z,"beforeUpdate"),Z&&Oi(Z,!0),(N.innerHTML&&K.innerHTML==null||N.textContent&&K.textContent==null)&&u(Me,""),ge?M(U.dynamicChildren,ge,Me,Z,de,Dp(P,pe),he):le||W(U,P,Me,null,Z,de,Dp(P,pe),he,!1),Re>0){if(Re&16)G(Me,N,K,Z,pe);else if(Re&2&&N.class!==K.class&&i(Me,"class",null,K.class,pe),Re&4&&i(Me,"style",N.style,K.style,pe),Re&8){const j=P.dynamicProps;for(let re=0;re{me&&_s(me,Z,P,U),D&&Ni(P,U,Z,"updated")},de)},M=(U,P,Z,de,pe,he,le)=>{for(let Me=0;Me{if(P!==Z){if(P!==$t)for(const he in P)!yl(he)&&!(he in Z)&&i(U,he,P[he],null,pe,de);for(const he in Z){if(yl(he))continue;const le=Z[he],Me=P[he];le!==Me&&he!=="value"&&i(U,he,Me,le,pe,de)}"value"in Z&&i(U,"value",P.value,Z.value,pe)}},V=(U,P,Z,de,pe,he,le,Me,Re)=>{const ge=P.el=U?U.el:a(""),D=P.anchor=U?U.anchor:a("");let{patchFlag:N,dynamicChildren:K,slotScopeIds:me}=P;me&&(Me=Me?Me.concat(me):me),U==null?(s(ge,Z,de),s(D,Z,de),I(P.children||[],Z,D,pe,he,le,Me,Re)):N>0&&N&64&&K&&U.dynamicChildren?(M(U.dynamicChildren,K,Z,pe,he,le,Me),(P.key!=null||pe&&P===pe.subTree)&&jb(U,P,!0)):W(U,P,Z,D,pe,he,le,Me,Re)},ee=(U,P,Z,de,pe,he,le,Me,Re)=>{P.slotScopeIds=Me,U==null?P.shapeFlag&512?pe.ctx.activate(P,Z,de,le,Re):O(P,Z,de,pe,he,le,Re):H(U,P,Re)},O=(U,P,Z,de,pe,he,le)=>{const Me=U.component=Xk(U,de,pe);if(Du(U)&&(Me.ctx.renderer=Ae),Zk(Me,!1,le),Me.asyncDep){if(pe&&pe.registerDep(Me,q,le),!U.el){const Re=Me.subTree=z(In);b(null,Re,P,Z)}}else q(Me,U,P,Z,pe,he,le)},H=(U,P,Z)=>{const de=P.component=U.component;if(Hk(U,P,Z))if(de.asyncDep&&!de.asyncResolved){L(de,P,Z);return}else de.next=P,de.update();else P.el=U.el,de.vnode=P},q=(U,P,Z,de,pe,he,le)=>{const Me=()=>{if(U.isMounted){let{next:N,bu:K,u:me,parent:j,vnode:re}=U;{const lt=bR(U);if(lt){N&&(N.el=re.el,L(U,N,le)),lt.asyncDep.then(()=>{U.isUnmounted||Me()});return}}let Ce=N,we;Oi(U,!1),N?(N.el=re.el,L(U,N,le)):N=re,K&&Zo(K),(we=N.props&&N.props.onVnodeBeforeUpdate)&&_s(we,j,N,re),Oi(U,!0);const ke=Lp(U),Ke=U.subTree;U.subTree=ke,f(Ke,ke,_(Ke.el),Q(Ke),U,pe,he),N.el=ke.el,Ce===null&&qk(U,ke.el),me&&hn(me,pe),(we=N.props&&N.props.onVnodeUpdated)&&hn(()=>_s(we,j,N,re),pe)}else{let N;const{el:K,props:me}=P,{bm:j,m:re,parent:Ce,root:we,type:ke}=U,Ke=Xi(P);if(Oi(U,!1),j&&Zo(j),!Ke&&(N=me&&me.onVnodeBeforeMount)&&_s(N,Ce,P),Oi(U,!0),K&&te){const lt=()=>{U.subTree=Lp(U),te(K,U.subTree,U,pe,null)};Ke&&ke.__asyncHydrate?ke.__asyncHydrate(K,U,lt):lt()}else{we.ce&&we.ce._injectChildStyle(ke);const lt=U.subTree=Lp(U);f(null,lt,Z,de,U,pe,he),P.el=lt.el}if(re&&hn(re,pe),!Ke&&(N=me&&me.onVnodeMounted)){const lt=P;hn(()=>_s(N,Ce,lt),pe)}(P.shapeFlag&256||Ce&&Xi(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&U.a&&hn(U.a,pe),U.isMounted=!0,P=Z=de=null}};U.scope.on();const Re=U.effect=new v2(Me);U.scope.off();const ge=U.update=Re.run.bind(Re),D=U.job=Re.runIfDirty.bind(Re);D.i=U,D.id=U.uid,Re.scheduler=()=>Yb(D),Oi(U,!0),ge()},L=(U,P,Z)=>{P.component=U;const de=U.vnode.props;U.vnode=P,U.next=null,Rk(U,P.props,de,Z),Ok(U,P.children,Z),xi(),Zy(U),Ci()},W=(U,P,Z,de,pe,he,le,Me,Re=!1)=>{const ge=U&&U.children,D=U?U.shapeFlag:0,N=P.children,{patchFlag:K,shapeFlag:me}=P;if(K>0){if(K&128){oe(ge,N,Z,de,pe,he,le,Me,Re);return}else if(K&256){se(ge,N,Z,de,pe,he,le,Me,Re);return}}me&8?(D&16&&De(ge,pe,he),N!==ge&&u(Z,N)):D&16?me&16?oe(ge,N,Z,de,pe,he,le,Me,Re):De(ge,pe,he,!0):(D&8&&u(Z,""),me&16&&I(N,Z,de,pe,he,le,Me,Re))},se=(U,P,Z,de,pe,he,le,Me,Re)=>{U=U||Qo,P=P||Qo;const ge=U.length,D=P.length,N=Math.min(ge,D);let K;for(K=0;KD?De(U,pe,he,!0,!1,N):I(P,Z,de,pe,he,le,Me,Re,N)},oe=(U,P,Z,de,pe,he,le,Me,Re)=>{let ge=0;const D=P.length;let N=U.length-1,K=D-1;for(;ge<=N&&ge<=K;){const me=U[ge],j=P[ge]=Re?si(P[ge]):Xs(P[ge]);if(ui(me,j))f(me,j,Z,null,pe,he,le,Me,Re);else break;ge++}for(;ge<=N&&ge<=K;){const me=U[N],j=P[K]=Re?si(P[K]):Xs(P[K]);if(ui(me,j))f(me,j,Z,null,pe,he,le,Me,Re);else break;N--,K--}if(ge>N){if(ge<=K){const me=K+1,j=meK)for(;ge<=N;)xe(U[ge],pe,he,!0),ge++;else{const me=ge,j=ge,re=new Map;for(ge=j;ge<=K;ge++){const tt=P[ge]=Re?si(P[ge]):Xs(P[ge]);tt.key!=null&&re.set(tt.key,ge)}let Ce,we=0;const ke=K-j+1;let Ke=!1,lt=0;const Pe=new Array(ke);for(ge=0;ge=ke){xe(tt,pe,he,!0);continue}let nt;if(tt.key!=null)nt=re.get(tt.key);else for(Ce=j;Ce<=K;Ce++)if(Pe[Ce-j]===0&&ui(tt,P[Ce])){nt=Ce;break}nt===void 0?xe(tt,pe,he,!0):(Pe[nt-j]=ge+1,nt>=lt?lt=nt:Ke=!0,f(tt,P[nt],Z,null,pe,he,le,Me,Re),we++)}const Mt=Ke?Lk(Pe):Qo;for(Ce=Mt.length-1,ge=ke-1;ge>=0;ge--){const tt=j+ge,nt=P[tt],ze=tt+1{const{el:he,type:le,transition:Me,children:Re,shapeFlag:ge}=U;if(ge&6){ye(U.component.subTree,P,Z,de);return}if(ge&128){U.suspense.move(P,Z,de);return}if(ge&64){le.move(U,P,Z,Ae);return}if(le===Fe){s(he,P,Z);for(let N=0;NMe.enter(he),pe);else{const{leave:N,delayLeave:K,afterLeave:me}=Me,j=()=>s(he,P,Z),re=()=>{N(he,()=>{j(),me&&me()})};K?K(he,j,re):re()}else s(he,P,Z)},xe=(U,P,Z,de=!1,pe=!1)=>{const{type:he,props:le,ref:Me,children:Re,dynamicChildren:ge,shapeFlag:D,patchFlag:N,dirs:K,cacheIndex:me}=U;if(N===-2&&(pe=!1),Me!=null&&Ng(Me,null,Z,U,!0),me!=null&&(P.renderCache[me]=void 0),D&256){P.ctx.deactivate(U);return}const j=D&1&&K,re=!Xi(U);let Ce;if(re&&(Ce=le&&le.onVnodeBeforeUnmount)&&_s(Ce,P,U),D&6)Oe(U.component,Z,de);else{if(D&128){U.suspense.unmount(Z,de);return}j&&Ni(U,null,P,"beforeUnmount"),D&64?U.type.remove(U,P,Z,Ae,de):ge&&!ge.hasOnce&&(he!==Fe||N>0&&N&64)?De(ge,P,Z,!1,!0):(he===Fe&&N&384||!pe&&D&16)&&De(Re,P,Z),de&&ce(U)}(re&&(Ce=le&&le.onVnodeUnmounted)||j)&&hn(()=>{Ce&&_s(Ce,P,U),j&&Ni(U,null,P,"unmounted")},Z)},ce=U=>{const{type:P,el:Z,anchor:de,transition:pe}=U;if(P===Fe){Ee(Z,de);return}if(P===Ed){S(U);return}const he=()=>{r(Z),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(U.shapeFlag&1&&pe&&!pe.persisted){const{leave:le,delayLeave:Me}=pe,Re=()=>le(Z,he);Me?Me(U.el,he,Re):Re()}else he()},Ee=(U,P)=>{let Z;for(;U!==P;)Z=m(U),r(U),U=Z;r(P)},Oe=(U,P,Z)=>{const{bum:de,scope:pe,job:he,subTree:le,um:Me,m:Re,a:ge}=U;Hd(Re),Hd(ge),de&&Zo(de),pe.stop(),he&&(he.flags|=8,xe(le,U,P,Z)),Me&&hn(Me,P),hn(()=>{U.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},De=(U,P,Z,de=!1,pe=!1,he=0)=>{for(let le=he;le{if(U.shapeFlag&6)return Q(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const P=m(U.anchor||U.el),Z=P&&P[$2];return Z?m(Z):P};let fe=!1;const _e=(U,P,Z)=>{U==null?P._vnode&&xe(P._vnode,null,null,!0):f(P._vnode||null,U,P,null,null,null,Z),P._vnode=U,fe||(fe=!0,Zy(),H2(),fe=!1)},Ae={p:f,um:xe,m:ye,r:ce,mt:O,mc:I,pc:W,pbc:M,n:Q,o:n};let Be,te;return{render:_e,hydrate:Be,createApp:Ck(_e,Be)}}function Dp({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Oi({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function Dk(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function jb(n,e,t=!1){const s=n.children,r=e.children;if(it(s)&&it(r))for(let i=0;i>1,n[t[a]]0&&(e[s]=t[i-1]),t[i]=s)}}for(i=t.length,o=t[i-1];i-- >0;)t[i]=o,o=e[o];return t}function bR(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:bR(e)}function Hd(n){if(n)for(let e=0;eos(Pk);function Tn(n,e,t){return yR(n,e,t)}function yR(n,e,t=$t){const{immediate:s,deep:r,flush:i,once:o}=t,a=ln({},t);let c;if(Bu)if(i==="sync"){const m=Fk();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!e||s)a.once=!0;else{const m=()=>{};return m.stop=rr,m.resume=rr,m.pause=rr,m}const d=Sn;a.call=(m,h,g)=>zs(m,d,h,g);let u=!1;i==="post"?a.scheduler=m=>{hn(m,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(m,h)=>{h?m():Yb(m)}),a.augmentJob=m=>{e&&(m.flags|=4),u&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const _=QI(n,e,a);return c&&c.push(_),_}function Uk(n,e,t){const s=this.proxy,r=Xt(n)?n.includes(".")?vR(s,n):()=>s[n]:n.bind(s,s);let i;ft(e)?i=e:(i=e.handler,t=e);const o=sc(this),a=yR(r,i.bind(s),t);return o(),a}function vR(n,e){const t=e.split(".");return()=>{let s=n;for(let r=0;re==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${ws(e)}Modifiers`]||n[`${Ti(e)}Modifiers`];function Gk(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||$t;let r=t;const i=e.startsWith("update:"),o=i&&Bk(s,e.slice(7));o&&(o.trim&&(r=t.map(u=>Xt(u)?u.trim():u)),o.number&&(r=t.map(Fd)));let a,c=s[a=yd(e)]||s[a=yd(ws(e))];!c&&i&&(c=s[a=yd(Ti(e))]),c&&zs(c,n,6,r);const d=s[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,zs(d,n,6,r)}}function ER(n,e,t=!1){const s=e.emitsCache,r=s.get(n);if(r!==void 0)return r;const i=n.emits;let o={},a=!1;if(!ft(n)){const c=d=>{const u=ER(d,e,!0);u&&(a=!0,ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}return!i&&!a?(zt(n)&&s.set(n,null),null):(it(i)?i.forEach(c=>o[c]=null):ln(o,i),zt(n)&&s.set(n,o),o)}function Fu(n,e){return!n||!xu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Lt(n,e[0].toLowerCase()+e.slice(1))||Lt(n,Ti(e))||Lt(n,e))}function Lp(n){const{type:e,vnode:t,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:c,render:d,renderCache:u,props:_,data:m,setupState:h,ctx:g,inheritAttrs:f}=n,y=Vd(n);let b,v;try{if(t.shapeFlag&4){const S=r||s,R=S;b=Xs(d.call(R,S,u,_,h,m,g)),v=a}else{const S=e;b=Xs(S.length>1?S(_,{attrs:a,slots:o,emit:c}):S(_,null)),v=e.props?a:Vk(a)}}catch(S){Sl.length=0,ku(S,n,1),b=z(In)}let E=b;if(v&&f!==!1){const S=Object.keys(v),{shapeFlag:R}=E;S.length&&R&7&&(i&&S.some(Db)&&(v=zk(v,i)),E=Lr(E,v,!1,!0))}return t.dirs&&(E=Lr(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Ei(E,t.transition),b=E,Vd(y),b}const Vk=n=>{let e;for(const t in n)(t==="class"||t==="style"||xu(t))&&((e||(e={}))[t]=n[t]);return e},zk=(n,e)=>{const t={};for(const s in n)(!Db(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t};function Hk(n,e,t){const{props:s,children:r,component:i}=n,{props:o,children:a,patchFlag:c}=e,d=i.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&c>=0){if(c&1024)return!0;if(c&16)return s?lv(s,o,d):!!o;if(c&8){const u=e.dynamicProps;for(let _=0;_n.__isSuspense;function Yk(n,e){e&&e.pendingBranch?it(n)?e.effects.push(...n):e.effects.push(n):JI(n)}const Fe=Symbol.for("v-fgt"),Uu=Symbol.for("v-txt"),In=Symbol.for("v-cmt"),Ed=Symbol.for("v-stc"),Sl=[];let is=null;function T(n=!1){Sl.push(is=n?null:[])}function $k(){Sl.pop(),is=Sl[Sl.length-1]||null}let Vl=1;function cv(n){Vl+=n,n<0&&is&&(is.hasOnce=!0)}function SR(n){return n.dynamicChildren=Vl>0?is||Qo:null,$k(),Vl>0&&is&&is.push(n),n}function x(n,e,t,s,r,i){return SR(l(n,e,t,s,r,i,!0))}function at(n,e,t,s,r){return SR(z(n,e,t,s,r,!0))}function la(n){return n?n.__v_isVNode===!0:!1}function ui(n,e){return n.type===e.type&&n.key===e.key}const TR=({key:n})=>n??null,Sd=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?Xt(n)||pn(n)||ft(n)?{i:bn,r:n,k:e,f:!!t}:n:null);function l(n,e=null,t=null,s=0,r=null,i=n===Fe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&TR(e),ref:e&&Sd(e),scopeId:Y2,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:bn};return a?(Qb(c,t),i&128&&n.normalize(c)):t&&(c.shapeFlag|=Xt(t)?8:16),Vl>0&&!o&&is&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&is.push(c),c}const z=Wk;function Wk(n,e=null,t=null,s=0,r=null,i=!1){if((!n||n===rR)&&(n=In),la(n)){const a=Lr(n,e,!0);return t&&Qb(a,t),Vl>0&&!i&&is&&(a.shapeFlag&6?is[is.indexOf(n)]=a:is.push(a)),a.patchFlag=-2,a}if(nD(n)&&(n=n.__vccOpts),e){e=Kk(e);let{class:a,style:c}=e;a&&!Xt(a)&&(e.class=Le(a)),zt(c)&&(zb(c)&&!it(c)&&(c=ln({},c)),e.style=Bt(c))}const o=Xt(n)?1:qd(n)?128:W2(n)?64:zt(n)?4:ft(n)?2:0;return l(n,e,t,s,r,o,i,!0)}function Kk(n){return n?zb(n)||uR(n)?ln({},n):n:null}function Lr(n,e,t=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=n,d=e?xR(r||{},e):r,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&TR(d),ref:e&&e.ref?t&&i?it(i)?i.concat(Sd(e)):[i,Sd(e)]:Sd(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Fe?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:c,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Lr(n.ssContent),ssFallback:n.ssFallback&&Lr(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return c&&s&&Ei(u,c.clone(u)),u}function Ze(n=" ",e=0){return z(Uu,null,n,e)}function Zi(n,e){const t=z(Ed,null,n);return t.staticCount=e,t}function B(n="",e=!1){return e?(T(),at(In,null,n)):z(In,null,n)}function Xs(n){return n==null||typeof n=="boolean"?z(In):it(n)?z(Fe,null,n.slice()):la(n)?si(n):z(Uu,null,String(n))}function si(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Lr(n)}function Qb(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(it(e))t=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),Qb(n,r()),r._c&&(r._d=!0));return}else{t=32;const r=e._;!r&&!uR(e)?e._ctx=bn:r===3&&bn&&(bn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:bn},t=32):(e=String(e),s&64?(t=16,e=[Ze(e)]):t=8);n.children=e,n.shapeFlag|=t}function xR(...n){const e={};for(let t=0;tSn||bn;let Yd,Lg;{const n=_2(),e=(t,s)=>{let r;return(r=n[t])||(r=n[t]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Yd=e("__VUE_INSTANCE_SETTERS__",t=>Sn=t),Lg=e("__VUE_SSR_SETTERS__",t=>Bu=t)}const sc=n=>{const e=Sn;return Yd(n),n.scope.on(),()=>{n.scope.off(),Yd(e)}},dv=()=>{Sn&&Sn.scope.off(),Yd(null)};function CR(n){return n.vnode.shapeFlag&4}let Bu=!1;function Zk(n,e=!1,t=!1){e&&Lg(e);const{props:s,children:r}=n.vnode,i=CR(n);wk(n,s,i,e),Nk(n,r,t);const o=i?Jk(n,e):void 0;return e&&Lg(!1),o}function Jk(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,bk);const{setup:s}=t;if(s){const r=n.setupContext=s.length>1?tD(n):null,i=sc(n);xi();const o=tc(s,n,0,[n.props,r]);if(Ci(),i(),d2(o)){if(Xi(n)||eR(n),o.then(dv,dv),e)return o.then(a=>{uv(n,a,e)}).catch(a=>{ku(a,n,0)});n.asyncDep=o}else uv(n,o,e)}else wR(n,e)}function uv(n,e,t){ft(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:zt(e)&&(n.setupState=B2(e)),wR(n,t)}let pv;function wR(n,e,t){const s=n.type;if(!n.render){if(!e&&pv&&!s.render){const r=s.template||Wb(n).template;if(r){const{isCustomElement:i,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:c}=s,d=ln(ln({isCustomElement:i,delimiters:a},o),c);s.render=pv(r,d)}}n.render=s.render||rr}{const r=sc(n);xi();try{yk(n)}finally{Ci(),r()}}}const eD={get(n,e){return Dn(n,"get",""),n[e]}};function tD(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,eD),slots:n.slots,emit:n.emit,expose:e}}function Gu(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(B2(Iu(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in El)return El[t](n)},has(e,t){return t in e||t in El}})):n.proxy}function Pg(n,e=!0){return ft(n)?n.displayName||n.name:n.name||e&&n.__name}function nD(n){return ft(n)&&"__vccOpts"in n}const et=(n,e)=>KI(n,e,Bu);function Zb(n,e,t){const s=arguments.length;return s===2?zt(e)&&!it(e)?la(e)?z(n,null,[e]):z(n,e):z(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&la(t)&&(t=[t]),z(n,e,t))}const sD="3.5.10";/** +**/function tc(n,e,t,s){try{return s?n(...s):n()}catch(r){ku(r,e,t)}}function zs(n,e,t,s){if(ft(n)){const r=tc(n,e,t,s);return r&&d2(r)&&r.catch(i=>{ku(i,e,t)}),r}if(ot(n)){const r=[];for(let i=0;i>>1,r=Bn[s],i=Bl(r);i=Bl(t)?Bn.push(n):Bn.splice(ZI(e),0,n),n.flags|=1,z2()}}function z2(){!Ul&&!Ag&&(Ag=!0,qb=V2.then(q2))}function JI(n){ot(n)?ea.push(...n):ti&&n.id===-1?ti.splice(qo+1,0,n):n.flags&1||(ea.push(n),n.flags|=1),z2()}function Zy(n,e,t=Ul?Qs+1:0){for(;tBl(t)-Bl(s));if(ea.length=0,ti){ti.push(...e);return}for(ti=e,qo=0;qon.id==null?n.flags&2?-1:1/0:n.id;function q2(n){Ag=!1,Ul=!0;try{for(Qs=0;Qs{s._d&&cv(-1);const i=Vd(e);let o;try{o=n(...r)}finally{Vd(i),s._d&&cv(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function k(n,e){if(bn===null)return n;const t=Gu(bn),s=n.dirs||(n.dirs=[]);for(let r=0;rn.__isTeleport,vl=n=>n&&(n.disabled||n.disabled===""),ek=n=>n&&(n.defer||n.defer===""),Jy=n=>typeof SVGElement<"u"&&n instanceof SVGElement,ev=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Mg=(n,e)=>{const t=n&&n.to;return Xt(t)?e?e(t):null:t},tk={name:"Teleport",__isTeleport:!0,process(n,e,t,s,r,i,o,a,c,d){const{mc:u,pc:_,pbc:m,o:{insert:h,querySelector:g,createText:f,createComment:y}}=d,b=vl(e.props);let{shapeFlag:v,children:E,dynamicChildren:S}=e;if(n==null){const R=e.el=f(""),w=e.anchor=f("");h(R,t,s),h(w,t,s);const A=(C,M)=>{v&16&&(r&&r.isCE&&(r.ce._teleportTarget=C),u(E,C,M,r,i,o,a,c))},I=()=>{const C=e.target=Mg(e.props,g),M=K2(C,e,f,h);C&&(o!=="svg"&&Jy(C)?o="svg":o!=="mathml"&&ev(C)&&(o="mathml"),b||(A(C,M),vd(e)))};b&&(A(t,w),vd(e)),ek(e.props)?hn(I,i):I()}else{e.el=n.el,e.targetStart=n.targetStart;const R=e.anchor=n.anchor,w=e.target=n.target,A=e.targetAnchor=n.targetAnchor,I=vl(n.props),C=I?t:w,M=I?R:A;if(o==="svg"||Jy(w)?o="svg":(o==="mathml"||ev(w))&&(o="mathml"),S?(m(n.dynamicChildren,S,C,r,i,o,a),jb(n,e,!0)):c||_(n,e,C,M,r,i,o,a,!1),b)I?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Rc(e,t,R,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const G=e.target=Mg(e.props,g);G&&Rc(e,G,null,d,0)}else I&&Rc(e,w,A,d,1);vd(e)}},remove(n,e,t,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:d,targetAnchor:u,target:_,props:m}=n;if(_&&(r(d),r(u)),i&&r(c),o&16){const h=i||!vl(m);for(let g=0;g{n.isMounted=!0}),La(()=>{n.isUnmounting=!0}),n}const ps=[Function,Array],Q2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ps,onEnter:ps,onAfterEnter:ps,onEnterCancelled:ps,onBeforeLeave:ps,onLeave:ps,onAfterLeave:ps,onLeaveCancelled:ps,onBeforeAppear:ps,onAppear:ps,onAfterAppear:ps,onAppearCancelled:ps},X2=n=>{const e=n.subTree;return e.component?X2(e.component):e},rk={name:"BaseTransition",props:Q2,setup(n,{slots:e}){const t=Xb(),s=j2();return()=>{const r=e.default&&$b(e.default(),!0);if(!r||!r.length)return;const i=Z2(r),o=It(n),{mode:a}=o;if(s.isLeaving)return Op(i);const c=tv(i);if(!c)return Op(i);let d=Gl(c,o,s,t,m=>d=m);c.type!==In&&Ei(c,d);const u=t.subTree,_=u&&tv(u);if(_&&_.type!==In&&!ui(c,_)&&X2(t).type!==In){const m=Gl(_,o,s,t);if(Ei(_,m),a==="out-in"&&c.type!==In)return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,t.job.flags&8||t.update(),delete m.afterLeave},Op(i);a==="in-out"&&c.type!==In&&(m.delayLeave=(h,g,f)=>{const y=J2(s,_);y[String(_.key)]=_,h[ni]=()=>{g(),h[ni]=void 0,delete d.delayedLeave},d.delayedLeave=f})}return i}}};function Z2(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==In){e=t;break}}return e}const ik=rk;function J2(n,e){const{leavingVNodes:t}=n;let s=t.get(e.type);return s||(s=Object.create(null),t.set(e.type,s)),s}function Gl(n,e,t,s,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:_,onBeforeLeave:m,onLeave:h,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:y,onAppear:b,onAfterAppear:v,onAppearCancelled:E}=e,S=String(n.key),R=J2(t,n),w=(C,M)=>{C&&zs(C,s,9,M)},A=(C,M)=>{const G=M[1];w(C,M),ot(C)?C.every(V=>V.length<=1)&&G():C.length<=1&&G()},I={mode:o,persisted:a,beforeEnter(C){let M=c;if(!t.isMounted)if(i)M=y||c;else return;C[ni]&&C[ni](!0);const G=R[S];G&&ui(n,G)&&G.el[ni]&&G.el[ni](),w(M,[C])},enter(C){let M=d,G=u,V=_;if(!t.isMounted)if(i)M=b||d,G=v||u,V=E||_;else return;let ee=!1;const O=C[Ac]=H=>{ee||(ee=!0,H?w(V,[C]):w(G,[C]),I.delayedLeave&&I.delayedLeave(),C[Ac]=void 0)};M?A(M,[C,O]):O()},leave(C,M){const G=String(n.key);if(C[Ac]&&C[Ac](!0),t.isUnmounting)return M();w(m,[C]);let V=!1;const ee=C[ni]=O=>{V||(V=!0,M(),O?w(f,[C]):w(g,[C]),C[ni]=void 0,R[G]===n&&delete R[G])};R[G]=n,h?A(h,[C,ee]):ee()},clone(C){const M=Gl(C,e,t,s,r);return r&&r(M),M}};return I}function Op(n){if(Du(n))return n=Lr(n),n.children=null,n}function tv(n){if(!Du(n))return W2(n.type)&&n.children?Z2(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&ft(t.default))return t.default()}}function Ei(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Ei(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function $b(n,e=!1,t){let s=[],r=0;for(let i=0;i1)for(let i=0;iNg(g,e&&(ot(e)?e[f]:e),t,s,r));return}if(Xi(s)&&!r)return;const i=s.shapeFlag&4?Gu(s.component):s.el,o=r?null:i,{i:a,r:c}=n,d=e&&e.r,u=a.refs===$t?a.refs={}:a.refs,_=a.setupState,m=It(_),h=_===$t?()=>!1:g=>Lt(m,g);if(d!=null&&d!==c&&(Xt(d)?(u[d]=null,h(d)&&(_[d]=null)):pn(d)&&(d.value=null)),ft(c))tc(c,a,12,[o,u]);else{const g=Xt(c),f=pn(c);if(g||f){const y=()=>{if(n.f){const b=g?h(c)?_[c]:u[c]:c.value;r?ot(b)&&Lb(b,i):ot(b)?b.includes(i)||b.push(i):g?(u[c]=[i],h(c)&&(_[c]=u[c])):(c.value=[i],n.k&&(u[n.k]=c.value))}else g?(u[c]=o,h(c)&&(_[c]=o)):f&&(c.value=o,n.k&&(u[n.k]=o))};o?(y.id=-1,hn(y,t)):y()}}}const Xi=n=>!!n.type.__asyncLoader,Du=n=>n.type.__isKeepAlive,ok={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=Xb(),s=t.ctx;if(!s.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const r=new Map,i=new Set;let o=null;const a=t.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:_}}}=s,m=_("div");s.activate=(v,E,S,R,w)=>{const A=v.component;d(v,E,S,0,a),c(A.vnode,v,E,S,A,a,R,v.slotScopeIds,w),hn(()=>{A.isDeactivated=!1,A.a&&Zo(A.a);const I=v.props&&v.props.onVnodeMounted;I&&_s(I,A.parent,v)},a)},s.deactivate=v=>{const E=v.component;Hd(E.m),Hd(E.a),d(v,m,null,1,a),hn(()=>{E.da&&Zo(E.da);const S=v.props&&v.props.onVnodeUnmounted;S&&_s(S,E.parent,v),E.isDeactivated=!0},a)};function h(v){Ip(v),u(v,t,a,!0)}function g(v){r.forEach((E,S)=>{const R=Pg(E.type);R&&!v(R)&&f(S)})}function f(v){const E=r.get(v);E&&(!o||!ui(E,o))?h(E):o&&Ip(o),r.delete(v),i.delete(v)}Tn(()=>[n.include,n.exclude],([v,E])=>{v&&g(S=>_l(v,S)),E&&g(S=>!_l(E,S))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(qd(t.subTree.type)?hn(()=>{r.set(y,Mc(t.subTree))},t.subTree.suspense):r.set(y,Mc(t.subTree)))};return qs(b),nc(b),La(()=>{r.forEach(v=>{const{subTree:E,suspense:S}=t,R=Mc(E);if(v.type===R.type&&v.key===R.key){Ip(R);const w=R.component.da;w&&hn(w,S);return}h(v)})}),()=>{if(y=null,!e.default)return o=null;const v=e.default(),E=v[0];if(v.length>1)return o=null,v;if(!la(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let S=Mc(E);if(S.type===In)return o=null,S;const R=S.type,w=Pg(Xi(S)?S.type.__asyncResolved||{}:R),{include:A,exclude:I,max:C}=n;if(A&&(!w||!_l(A,w))||I&&w&&_l(I,w))return S.shapeFlag&=-257,o=S,E;const M=S.key==null?R:S.key,G=r.get(M);return S.el&&(S=Lr(S),E.shapeFlag&128&&(E.ssContent=S)),y=M,G?(S.el=G.el,S.component=G.component,S.transition&&Ei(S,S.transition),S.shapeFlag|=512,i.delete(M),i.add(M)):(i.add(M),C&&i.size>parseInt(C,10)&&f(i.values().next().value)),S.shapeFlag|=256,o=S,qd(E.type)?E:S}}},ak=ok;function _l(n,e){return ot(n)?n.some(t=>_l(t,e)):Xt(n)?n.split(",").includes(e):nI(n)?(n.lastIndex=0,n.test(e)):!1}function lk(n,e){tR(n,"a",e)}function ck(n,e){tR(n,"da",e)}function tR(n,e,t=Sn){const s=n.__wdc||(n.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return n()});if(Lu(e,s,t),t){let r=t.parent;for(;r&&r.parent;)Du(r.parent.vnode)&&dk(s,e,t,r),r=r.parent}}function dk(n,e,t,s){const r=Lu(e,n,s,!0);nR(()=>{Lb(s[e],r)},t)}function Ip(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Mc(n){return n.shapeFlag&128?n.ssContent:n}function Lu(n,e,t=Sn,s=!1){if(t){const r=t[n]||(t[n]=[]),i=e.__weh||(e.__weh=(...o)=>{xi();const a=sc(t),c=zs(e,t,n,o);return a(),Ci(),c});return s?r.unshift(i):r.push(i),i}}const Ur=n=>(e,t=Sn)=>{(!Bu||n==="sp")&&Lu(n,(...s)=>e(...s),t)},uk=Ur("bm"),qs=Ur("m"),pk=Ur("bu"),nc=Ur("u"),La=Ur("bum"),nR=Ur("um"),fk=Ur("sp"),_k=Ur("rtg"),mk=Ur("rtc");function hk(n,e=Sn){Lu("ec",n,e)}const sR="components";function Je(n,e){return iR(sR,n,!0,e)||n}const rR=Symbol.for("v-ndc");function Pu(n){return Xt(n)?iR(sR,n,!1)||n:n||rR}function iR(n,e,t=!0,s=!1){const r=bn||Sn;if(r){const i=r.type;{const a=Pg(i,!1);if(a&&(a===e||a===ws(e)||a===wu(ws(e))))return i}const o=nv(r[n]||i[n],e)||nv(r.appContext[n],e);return!o&&s?i:o}}function nv(n,e){return n&&(n[e]||n[ws(e)]||n[wu(ws(e))])}function We(n,e,t,s){let r;const i=t,o=ot(n);if(o||Xt(n)){const a=o&&Jo(n);let c=!1;a&&(c=!Ts(n),n=Au(n)),r=new Array(n.length);for(let d=0,u=n.length;de(a,c,void 0,i));else{const a=Object.keys(n);r=new Array(a.length);for(let c=0,d=a.length;cla(e)?!(e.type===In||e.type===Fe&&!oR(e.children)):!0)?n:null}function gk(n,e){const t={};for(const s in n)t[/[A-Z]/.test(s)?`on:${s}`:yd(s)]=n[s];return t}const Og=n=>n?CR(n)?Gu(n):Og(n.parent):null,El=ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Og(n.parent),$root:n=>Og(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>Wb(n),$forceUpdate:n=>n.f||(n.f=()=>{Yb(n.update)}),$nextTick:n=>n.n||(n.n=Ue.bind(n.proxy)),$watch:n=>Uk.bind(n)}),kp=(n,e)=>n!==$t&&!n.__isScriptSetup&&Lt(n,e),bk={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:c}=n;let d;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return s[e];case 2:return r[e];case 4:return t[e];case 3:return i[e]}else{if(kp(s,e))return o[e]=1,s[e];if(r!==$t&&Lt(r,e))return o[e]=2,r[e];if((d=n.propsOptions[0])&&Lt(d,e))return o[e]=3,i[e];if(t!==$t&&Lt(t,e))return o[e]=4,t[e];Ig&&(o[e]=0)}}const u=El[e];let _,m;if(u)return e==="$attrs"&&Dn(n.attrs,"get",""),u(n);if((_=a.__cssModules)&&(_=_[e]))return _;if(t!==$t&&Lt(t,e))return o[e]=4,t[e];if(m=c.config.globalProperties,Lt(m,e))return m[e]},set({_:n},e,t){const{data:s,setupState:r,ctx:i}=n;return kp(r,e)?(r[e]=t,!0):s!==$t&&Lt(s,e)?(s[e]=t,!0):Lt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(i[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!t[o]||n!==$t&&Lt(n,o)||kp(e,o)||(a=i[0])&&Lt(a,o)||Lt(s,o)||Lt(El,o)||Lt(r.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Lt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function sv(n){return ot(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Ig=!0;function yk(n){const e=Wb(n),t=n.proxy,s=n.ctx;Ig=!1,e.beforeCreate&&rv(e.beforeCreate,n,"bc");const{data:r,computed:i,methods:o,watch:a,provide:c,inject:d,created:u,beforeMount:_,mounted:m,beforeUpdate:h,updated:g,activated:f,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:E,unmounted:S,render:R,renderTracked:w,renderTriggered:A,errorCaptured:I,serverPrefetch:C,expose:M,inheritAttrs:G,components:V,directives:ee,filters:O}=e;if(d&&vk(d,s,null),o)for(const L in o){const W=o[L];ft(W)&&(s[L]=W.bind(t))}if(r){const L=r.call(t,t);zt(L)&&(n.data=Hn(L))}if(Ig=!0,i)for(const L in i){const W=i[L],se=ft(W)?W.bind(t,t):ft(W.get)?W.get.bind(t,t):ir,oe=!ft(W)&&ft(W.set)?W.set.bind(t):ir,ye=et({get:se,set:oe});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>ye.value,set:xe=>ye.value=xe})}if(a)for(const L in a)aR(a[L],s,t,L);if(c){const L=ft(c)?c.call(t):c;Reflect.ownKeys(L).forEach(W=>{na(W,L[W])})}u&&rv(u,n,"c");function q(L,W){ot(W)?W.forEach(se=>L(se.bind(t))):W&&L(W.bind(t))}if(q(uk,_),q(qs,m),q(pk,h),q(nc,g),q(lk,f),q(ck,y),q(hk,I),q(mk,w),q(_k,A),q(La,v),q(nR,S),q(fk,C),ot(M))if(M.length){const L=n.exposed||(n.exposed={});M.forEach(W=>{Object.defineProperty(L,W,{get:()=>t[W],set:se=>t[W]=se})})}else n.exposed||(n.exposed={});R&&n.render===ir&&(n.render=R),G!=null&&(n.inheritAttrs=G),V&&(n.components=V),ee&&(n.directives=ee),C&&eR(n)}function vk(n,e,t=ir){ot(n)&&(n=kg(n));for(const s in n){const r=n[s];let i;zt(r)?"default"in r?i=os(r.from||s,r.default,!0):i=os(r.from||s):i=os(r),pn(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function rv(n,e,t){zs(ot(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function aR(n,e,t,s){let r=s.includes(".")?vR(t,s):()=>t[s];if(Xt(n)){const i=e[n];ft(i)&&Tn(r,i)}else if(ft(n))Tn(r,n.bind(t));else if(zt(n))if(ot(n))n.forEach(i=>aR(i,e,t,s));else{const i=ft(n.handler)?n.handler.bind(t):e[n.handler];ft(i)&&Tn(r,i,n)}}function Wb(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=n.appContext,a=i.get(e);let c;return a?c=a:!r.length&&!t&&!s?c=e:(c={},r.length&&r.forEach(d=>zd(c,d,o,!0)),zd(c,e,o)),zt(e)&&i.set(e,c),c}function zd(n,e,t,s=!1){const{mixins:r,extends:i}=e;i&&zd(n,i,t,!0),r&&r.forEach(o=>zd(n,o,t,!0));for(const o in e)if(!(s&&o==="expose")){const a=Ek[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const Ek={data:iv,props:ov,emits:ov,methods:ml,computed:ml,beforeCreate:Pn,created:Pn,beforeMount:Pn,mounted:Pn,beforeUpdate:Pn,updated:Pn,beforeDestroy:Pn,beforeUnmount:Pn,destroyed:Pn,unmounted:Pn,activated:Pn,deactivated:Pn,errorCaptured:Pn,serverPrefetch:Pn,components:ml,directives:ml,watch:Tk,provide:iv,inject:Sk};function iv(n,e){return e?n?function(){return ln(ft(n)?n.call(this,this):n,ft(e)?e.call(this,this):e)}:e:n}function Sk(n,e){return ml(kg(n),kg(e))}function kg(n){if(ot(n)){const e={};for(let t=0;t1)return t&&ft(e)?e.call(s&&s.proxy):e}}const cR={},dR=()=>Object.create(cR),uR=n=>Object.getPrototypeOf(n)===cR;function wk(n,e,t,s=!1){const r={},i=dR();n.propsDefaults=Object.create(null),pR(n,e,r,i);for(const o in n.propsOptions[0])o in r||(r[o]=void 0);t?n.props=s?r:P2(r):n.type.props?n.props=r:n.props=i,n.attrs=i}function Rk(n,e,t,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=n,a=It(r),[c]=n.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let _=0;_{c=!0;const[m,h]=fR(_,e,!0);ln(o,m),h&&a.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!i&&!c)return zt(n)&&s.set(n,Qo),Qo;if(ot(i))for(let u=0;un[0]==="_"||n==="$stable",Kb=n=>ot(n)?n.map(Zs):[Zs(n)],Mk=(n,e,t)=>{if(e._n)return e;const s=Ie((...r)=>Kb(e(...r)),t);return s._c=!1,s},mR=(n,e,t)=>{const s=n._ctx;for(const r in n){if(_R(r))continue;const i=n[r];if(ft(i))e[r]=Mk(r,i,s);else if(i!=null){const o=Kb(i);e[r]=()=>o}}},hR=(n,e)=>{const t=Kb(e);n.slots.default=()=>t},gR=(n,e,t)=>{for(const s in e)(t||s!=="_")&&(n[s]=e[s])},Nk=(n,e,t)=>{const s=n.slots=dR();if(n.vnode.shapeFlag&32){const r=e._;r?(gR(s,e,t),t&&f2(s,"_",r,!0)):mR(e,s)}else e&&hR(n,e)},Ok=(n,e,t)=>{const{vnode:s,slots:r}=n;let i=!0,o=$t;if(s.shapeFlag&32){const a=e._;a?t&&a===1?i=!1:gR(r,e,t):(i=!e.$stable,mR(e,r)),o=e}else e&&(hR(n,e),o={default:1});if(i)for(const a in r)!_R(a)&&o[a]==null&&delete r[a]},hn=Yk;function Ik(n){return kk(n)}function kk(n,e){const t=_2();t.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:c,setText:d,setElementText:u,parentNode:_,nextSibling:m,setScopeId:h=ir,insertStaticContent:g}=n,f=(U,P,Z,de=null,pe=null,he=null,le=void 0,Me=null,Re=!!P.dynamicChildren)=>{if(U===P)return;U&&!ui(U,P)&&(de=Q(U),xe(U,pe,he,!0),U=null),P.patchFlag===-2&&(Re=!1,P.dynamicChildren=null);const{type:ge,ref:D,shapeFlag:N}=P;switch(ge){case Uu:y(U,P,Z,de);break;case In:b(U,P,Z,de);break;case Ed:U==null&&v(P,Z,de,le);break;case Fe:V(U,P,Z,de,pe,he,le,Me,Re);break;default:N&1?R(U,P,Z,de,pe,he,le,Me,Re):N&6?ee(U,P,Z,de,pe,he,le,Me,Re):(N&64||N&128)&&ge.process(U,P,Z,de,pe,he,le,Me,Re,Ae)}D!=null&&pe&&Ng(D,U&&U.ref,he,P||U,!P)},y=(U,P,Z,de)=>{if(U==null)s(P.el=a(P.children),Z,de);else{const pe=P.el=U.el;P.children!==U.children&&d(pe,P.children)}},b=(U,P,Z,de)=>{U==null?s(P.el=c(P.children||""),Z,de):P.el=U.el},v=(U,P,Z,de)=>{[U.el,U.anchor]=g(U.children,P,Z,de,U.el,U.anchor)},E=({el:U,anchor:P},Z,de)=>{let pe;for(;U&&U!==P;)pe=m(U),s(U,Z,de),U=pe;s(P,Z,de)},S=({el:U,anchor:P})=>{let Z;for(;U&&U!==P;)Z=m(U),r(U),U=Z;r(P)},R=(U,P,Z,de,pe,he,le,Me,Re)=>{P.type==="svg"?le="svg":P.type==="math"&&(le="mathml"),U==null?w(P,Z,de,pe,he,le,Me,Re):C(U,P,pe,he,le,Me,Re)},w=(U,P,Z,de,pe,he,le,Me)=>{let Re,ge;const{props:D,shapeFlag:N,transition:K,dirs:me}=U;if(Re=U.el=o(U.type,he,D&&D.is,D),N&8?u(Re,U.children):N&16&&I(U.children,Re,null,de,pe,Dp(U,he),le,Me),me&&Ni(U,null,de,"created"),A(Re,U,U.scopeId,le,de),D){for(const re in D)re!=="value"&&!yl(re)&&i(Re,re,null,D[re],he,de);"value"in D&&i(Re,"value",null,D.value,he),(ge=D.onVnodeBeforeMount)&&_s(ge,de,U)}me&&Ni(U,null,de,"beforeMount");const j=Dk(pe,K);j&&K.beforeEnter(Re),s(Re,P,Z),((ge=D&&D.onVnodeMounted)||j||me)&&hn(()=>{ge&&_s(ge,de,U),j&&K.enter(Re),me&&Ni(U,null,de,"mounted")},pe)},A=(U,P,Z,de,pe)=>{if(Z&&h(U,Z),de)for(let he=0;he{for(let ge=Re;ge{const Me=P.el=U.el;let{patchFlag:Re,dynamicChildren:ge,dirs:D}=P;Re|=U.patchFlag&16;const N=U.props||$t,K=P.props||$t;let me;if(Z&&Oi(Z,!1),(me=K.onVnodeBeforeUpdate)&&_s(me,Z,P,U),D&&Ni(P,U,Z,"beforeUpdate"),Z&&Oi(Z,!0),(N.innerHTML&&K.innerHTML==null||N.textContent&&K.textContent==null)&&u(Me,""),ge?M(U.dynamicChildren,ge,Me,Z,de,Dp(P,pe),he):le||W(U,P,Me,null,Z,de,Dp(P,pe),he,!1),Re>0){if(Re&16)G(Me,N,K,Z,pe);else if(Re&2&&N.class!==K.class&&i(Me,"class",null,K.class,pe),Re&4&&i(Me,"style",N.style,K.style,pe),Re&8){const j=P.dynamicProps;for(let re=0;re{me&&_s(me,Z,P,U),D&&Ni(P,U,Z,"updated")},de)},M=(U,P,Z,de,pe,he,le)=>{for(let Me=0;Me{if(P!==Z){if(P!==$t)for(const he in P)!yl(he)&&!(he in Z)&&i(U,he,P[he],null,pe,de);for(const he in Z){if(yl(he))continue;const le=Z[he],Me=P[he];le!==Me&&he!=="value"&&i(U,he,Me,le,pe,de)}"value"in Z&&i(U,"value",P.value,Z.value,pe)}},V=(U,P,Z,de,pe,he,le,Me,Re)=>{const ge=P.el=U?U.el:a(""),D=P.anchor=U?U.anchor:a("");let{patchFlag:N,dynamicChildren:K,slotScopeIds:me}=P;me&&(Me=Me?Me.concat(me):me),U==null?(s(ge,Z,de),s(D,Z,de),I(P.children||[],Z,D,pe,he,le,Me,Re)):N>0&&N&64&&K&&U.dynamicChildren?(M(U.dynamicChildren,K,Z,pe,he,le,Me),(P.key!=null||pe&&P===pe.subTree)&&jb(U,P,!0)):W(U,P,Z,D,pe,he,le,Me,Re)},ee=(U,P,Z,de,pe,he,le,Me,Re)=>{P.slotScopeIds=Me,U==null?P.shapeFlag&512?pe.ctx.activate(P,Z,de,le,Re):O(P,Z,de,pe,he,le,Re):H(U,P,Re)},O=(U,P,Z,de,pe,he,le)=>{const Me=U.component=Xk(U,de,pe);if(Du(U)&&(Me.ctx.renderer=Ae),Zk(Me,!1,le),Me.asyncDep){if(pe&&pe.registerDep(Me,q,le),!U.el){const Re=Me.subTree=z(In);b(null,Re,P,Z)}}else q(Me,U,P,Z,pe,he,le)},H=(U,P,Z)=>{const de=P.component=U.component;if(Hk(U,P,Z))if(de.asyncDep&&!de.asyncResolved){L(de,P,Z);return}else de.next=P,de.update();else P.el=U.el,de.vnode=P},q=(U,P,Z,de,pe,he,le)=>{const Me=()=>{if(U.isMounted){let{next:N,bu:K,u:me,parent:j,vnode:re}=U;{const lt=bR(U);if(lt){N&&(N.el=re.el,L(U,N,le)),lt.asyncDep.then(()=>{U.isUnmounted||Me()});return}}let Ce=N,we;Oi(U,!1),N?(N.el=re.el,L(U,N,le)):N=re,K&&Zo(K),(we=N.props&&N.props.onVnodeBeforeUpdate)&&_s(we,j,N,re),Oi(U,!0);const ke=Lp(U),Ke=U.subTree;U.subTree=ke,f(Ke,ke,_(Ke.el),Q(Ke),U,pe,he),N.el=ke.el,Ce===null&&qk(U,ke.el),me&&hn(me,pe),(we=N.props&&N.props.onVnodeUpdated)&&hn(()=>_s(we,j,N,re),pe)}else{let N;const{el:K,props:me}=P,{bm:j,m:re,parent:Ce,root:we,type:ke}=U,Ke=Xi(P);if(Oi(U,!1),j&&Zo(j),!Ke&&(N=me&&me.onVnodeBeforeMount)&&_s(N,Ce,P),Oi(U,!0),K&&te){const lt=()=>{U.subTree=Lp(U),te(K,U.subTree,U,pe,null)};Ke&&ke.__asyncHydrate?ke.__asyncHydrate(K,U,lt):lt()}else{we.ce&&we.ce._injectChildStyle(ke);const lt=U.subTree=Lp(U);f(null,lt,Z,de,U,pe,he),P.el=lt.el}if(re&&hn(re,pe),!Ke&&(N=me&&me.onVnodeMounted)){const lt=P;hn(()=>_s(N,Ce,lt),pe)}(P.shapeFlag&256||Ce&&Xi(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&U.a&&hn(U.a,pe),U.isMounted=!0,P=Z=de=null}};U.scope.on();const Re=U.effect=new v2(Me);U.scope.off();const ge=U.update=Re.run.bind(Re),D=U.job=Re.runIfDirty.bind(Re);D.i=U,D.id=U.uid,Re.scheduler=()=>Yb(D),Oi(U,!0),ge()},L=(U,P,Z)=>{P.component=U;const de=U.vnode.props;U.vnode=P,U.next=null,Rk(U,P.props,de,Z),Ok(U,P.children,Z),xi(),Zy(U),Ci()},W=(U,P,Z,de,pe,he,le,Me,Re=!1)=>{const ge=U&&U.children,D=U?U.shapeFlag:0,N=P.children,{patchFlag:K,shapeFlag:me}=P;if(K>0){if(K&128){oe(ge,N,Z,de,pe,he,le,Me,Re);return}else if(K&256){se(ge,N,Z,de,pe,he,le,Me,Re);return}}me&8?(D&16&&De(ge,pe,he),N!==ge&&u(Z,N)):D&16?me&16?oe(ge,N,Z,de,pe,he,le,Me,Re):De(ge,pe,he,!0):(D&8&&u(Z,""),me&16&&I(N,Z,de,pe,he,le,Me,Re))},se=(U,P,Z,de,pe,he,le,Me,Re)=>{U=U||Qo,P=P||Qo;const ge=U.length,D=P.length,N=Math.min(ge,D);let K;for(K=0;KD?De(U,pe,he,!0,!1,N):I(P,Z,de,pe,he,le,Me,Re,N)},oe=(U,P,Z,de,pe,he,le,Me,Re)=>{let ge=0;const D=P.length;let N=U.length-1,K=D-1;for(;ge<=N&&ge<=K;){const me=U[ge],j=P[ge]=Re?si(P[ge]):Zs(P[ge]);if(ui(me,j))f(me,j,Z,null,pe,he,le,Me,Re);else break;ge++}for(;ge<=N&&ge<=K;){const me=U[N],j=P[K]=Re?si(P[K]):Zs(P[K]);if(ui(me,j))f(me,j,Z,null,pe,he,le,Me,Re);else break;N--,K--}if(ge>N){if(ge<=K){const me=K+1,j=meK)for(;ge<=N;)xe(U[ge],pe,he,!0),ge++;else{const me=ge,j=ge,re=new Map;for(ge=j;ge<=K;ge++){const tt=P[ge]=Re?si(P[ge]):Zs(P[ge]);tt.key!=null&&re.set(tt.key,ge)}let Ce,we=0;const ke=K-j+1;let Ke=!1,lt=0;const Pe=new Array(ke);for(ge=0;ge=ke){xe(tt,pe,he,!0);continue}let nt;if(tt.key!=null)nt=re.get(tt.key);else for(Ce=j;Ce<=K;Ce++)if(Pe[Ce-j]===0&&ui(tt,P[Ce])){nt=Ce;break}nt===void 0?xe(tt,pe,he,!0):(Pe[nt-j]=ge+1,nt>=lt?lt=nt:Ke=!0,f(tt,P[nt],Z,null,pe,he,le,Me,Re),we++)}const Mt=Ke?Lk(Pe):Qo;for(Ce=Mt.length-1,ge=ke-1;ge>=0;ge--){const tt=j+ge,nt=P[tt],ze=tt+1{const{el:he,type:le,transition:Me,children:Re,shapeFlag:ge}=U;if(ge&6){ye(U.component.subTree,P,Z,de);return}if(ge&128){U.suspense.move(P,Z,de);return}if(ge&64){le.move(U,P,Z,Ae);return}if(le===Fe){s(he,P,Z);for(let N=0;NMe.enter(he),pe);else{const{leave:N,delayLeave:K,afterLeave:me}=Me,j=()=>s(he,P,Z),re=()=>{N(he,()=>{j(),me&&me()})};K?K(he,j,re):re()}else s(he,P,Z)},xe=(U,P,Z,de=!1,pe=!1)=>{const{type:he,props:le,ref:Me,children:Re,dynamicChildren:ge,shapeFlag:D,patchFlag:N,dirs:K,cacheIndex:me}=U;if(N===-2&&(pe=!1),Me!=null&&Ng(Me,null,Z,U,!0),me!=null&&(P.renderCache[me]=void 0),D&256){P.ctx.deactivate(U);return}const j=D&1&&K,re=!Xi(U);let Ce;if(re&&(Ce=le&&le.onVnodeBeforeUnmount)&&_s(Ce,P,U),D&6)Oe(U.component,Z,de);else{if(D&128){U.suspense.unmount(Z,de);return}j&&Ni(U,null,P,"beforeUnmount"),D&64?U.type.remove(U,P,Z,Ae,de):ge&&!ge.hasOnce&&(he!==Fe||N>0&&N&64)?De(ge,P,Z,!1,!0):(he===Fe&&N&384||!pe&&D&16)&&De(Re,P,Z),de&&ce(U)}(re&&(Ce=le&&le.onVnodeUnmounted)||j)&&hn(()=>{Ce&&_s(Ce,P,U),j&&Ni(U,null,P,"unmounted")},Z)},ce=U=>{const{type:P,el:Z,anchor:de,transition:pe}=U;if(P===Fe){Ee(Z,de);return}if(P===Ed){S(U);return}const he=()=>{r(Z),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(U.shapeFlag&1&&pe&&!pe.persisted){const{leave:le,delayLeave:Me}=pe,Re=()=>le(Z,he);Me?Me(U.el,he,Re):Re()}else he()},Ee=(U,P)=>{let Z;for(;U!==P;)Z=m(U),r(U),U=Z;r(P)},Oe=(U,P,Z)=>{const{bum:de,scope:pe,job:he,subTree:le,um:Me,m:Re,a:ge}=U;Hd(Re),Hd(ge),de&&Zo(de),pe.stop(),he&&(he.flags|=8,xe(le,U,P,Z)),Me&&hn(Me,P),hn(()=>{U.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},De=(U,P,Z,de=!1,pe=!1,he=0)=>{for(let le=he;le{if(U.shapeFlag&6)return Q(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const P=m(U.anchor||U.el),Z=P&&P[$2];return Z?m(Z):P};let fe=!1;const _e=(U,P,Z)=>{U==null?P._vnode&&xe(P._vnode,null,null,!0):f(P._vnode||null,U,P,null,null,null,Z),P._vnode=U,fe||(fe=!0,Zy(),H2(),fe=!1)},Ae={p:f,um:xe,m:ye,r:ce,mt:O,mc:I,pc:W,pbc:M,n:Q,o:n};let Be,te;return{render:_e,hydrate:Be,createApp:Ck(_e,Be)}}function Dp({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Oi({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function Dk(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function jb(n,e,t=!1){const s=n.children,r=e.children;if(ot(s)&&ot(r))for(let i=0;i>1,n[t[a]]0&&(e[s]=t[i-1]),t[i]=s)}}for(i=t.length,o=t[i-1];i-- >0;)t[i]=o,o=e[o];return t}function bR(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:bR(e)}function Hd(n){if(n)for(let e=0;eos(Pk);function Tn(n,e,t){return yR(n,e,t)}function yR(n,e,t=$t){const{immediate:s,deep:r,flush:i,once:o}=t,a=ln({},t);let c;if(Bu)if(i==="sync"){const m=Fk();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!e||s)a.once=!0;else{const m=()=>{};return m.stop=ir,m.resume=ir,m.pause=ir,m}const d=Sn;a.call=(m,h,g)=>zs(m,d,h,g);let u=!1;i==="post"?a.scheduler=m=>{hn(m,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(m,h)=>{h?m():Yb(m)}),a.augmentJob=m=>{e&&(m.flags|=4),u&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const _=QI(n,e,a);return c&&c.push(_),_}function Uk(n,e,t){const s=this.proxy,r=Xt(n)?n.includes(".")?vR(s,n):()=>s[n]:n.bind(s,s);let i;ft(e)?i=e:(i=e.handler,t=e);const o=sc(this),a=yR(r,i.bind(s),t);return o(),a}function vR(n,e){const t=e.split(".");return()=>{let s=n;for(let r=0;re==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${ws(e)}Modifiers`]||n[`${Ti(e)}Modifiers`];function Gk(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||$t;let r=t;const i=e.startsWith("update:"),o=i&&Bk(s,e.slice(7));o&&(o.trim&&(r=t.map(u=>Xt(u)?u.trim():u)),o.number&&(r=t.map(Fd)));let a,c=s[a=yd(e)]||s[a=yd(ws(e))];!c&&i&&(c=s[a=yd(Ti(e))]),c&&zs(c,n,6,r);const d=s[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,zs(d,n,6,r)}}function ER(n,e,t=!1){const s=e.emitsCache,r=s.get(n);if(r!==void 0)return r;const i=n.emits;let o={},a=!1;if(!ft(n)){const c=d=>{const u=ER(d,e,!0);u&&(a=!0,ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}return!i&&!a?(zt(n)&&s.set(n,null),null):(ot(i)?i.forEach(c=>o[c]=null):ln(o,i),zt(n)&&s.set(n,o),o)}function Fu(n,e){return!n||!xu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Lt(n,e[0].toLowerCase()+e.slice(1))||Lt(n,Ti(e))||Lt(n,e))}function Lp(n){const{type:e,vnode:t,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:c,render:d,renderCache:u,props:_,data:m,setupState:h,ctx:g,inheritAttrs:f}=n,y=Vd(n);let b,v;try{if(t.shapeFlag&4){const S=r||s,R=S;b=Zs(d.call(R,S,u,_,h,m,g)),v=a}else{const S=e;b=Zs(S.length>1?S(_,{attrs:a,slots:o,emit:c}):S(_,null)),v=e.props?a:Vk(a)}}catch(S){Sl.length=0,ku(S,n,1),b=z(In)}let E=b;if(v&&f!==!1){const S=Object.keys(v),{shapeFlag:R}=E;S.length&&R&7&&(i&&S.some(Db)&&(v=zk(v,i)),E=Lr(E,v,!1,!0))}return t.dirs&&(E=Lr(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Ei(E,t.transition),b=E,Vd(y),b}const Vk=n=>{let e;for(const t in n)(t==="class"||t==="style"||xu(t))&&((e||(e={}))[t]=n[t]);return e},zk=(n,e)=>{const t={};for(const s in n)(!Db(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t};function Hk(n,e,t){const{props:s,children:r,component:i}=n,{props:o,children:a,patchFlag:c}=e,d=i.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&c>=0){if(c&1024)return!0;if(c&16)return s?lv(s,o,d):!!o;if(c&8){const u=e.dynamicProps;for(let _=0;_n.__isSuspense;function Yk(n,e){e&&e.pendingBranch?ot(n)?e.effects.push(...n):e.effects.push(n):JI(n)}const Fe=Symbol.for("v-fgt"),Uu=Symbol.for("v-txt"),In=Symbol.for("v-cmt"),Ed=Symbol.for("v-stc"),Sl=[];let is=null;function T(n=!1){Sl.push(is=n?null:[])}function $k(){Sl.pop(),is=Sl[Sl.length-1]||null}let Vl=1;function cv(n){Vl+=n,n<0&&is&&(is.hasOnce=!0)}function SR(n){return n.dynamicChildren=Vl>0?is||Qo:null,$k(),Vl>0&&is&&is.push(n),n}function x(n,e,t,s,r,i){return SR(l(n,e,t,s,r,i,!0))}function at(n,e,t,s,r){return SR(z(n,e,t,s,r,!0))}function la(n){return n?n.__v_isVNode===!0:!1}function ui(n,e){return n.type===e.type&&n.key===e.key}const TR=({key:n})=>n??null,Sd=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?Xt(n)||pn(n)||ft(n)?{i:bn,r:n,k:e,f:!!t}:n:null);function l(n,e=null,t=null,s=0,r=null,i=n===Fe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&TR(e),ref:e&&Sd(e),scopeId:Y2,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:bn};return a?(Qb(c,t),i&128&&n.normalize(c)):t&&(c.shapeFlag|=Xt(t)?8:16),Vl>0&&!o&&is&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&is.push(c),c}const z=Wk;function Wk(n,e=null,t=null,s=0,r=null,i=!1){if((!n||n===rR)&&(n=In),la(n)){const a=Lr(n,e,!0);return t&&Qb(a,t),Vl>0&&!i&&is&&(a.shapeFlag&6?is[is.indexOf(n)]=a:is.push(a)),a.patchFlag=-2,a}if(nD(n)&&(n=n.__vccOpts),e){e=Kk(e);let{class:a,style:c}=e;a&&!Xt(a)&&(e.class=Le(a)),zt(c)&&(zb(c)&&!ot(c)&&(c=ln({},c)),e.style=Bt(c))}const o=Xt(n)?1:qd(n)?128:W2(n)?64:zt(n)?4:ft(n)?2:0;return l(n,e,t,s,r,o,i,!0)}function Kk(n){return n?zb(n)||uR(n)?ln({},n):n:null}function Lr(n,e,t=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=n,d=e?xR(r||{},e):r,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&TR(d),ref:e&&e.ref?t&&i?ot(i)?i.concat(Sd(e)):[i,Sd(e)]:Sd(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Fe?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:c,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Lr(n.ssContent),ssFallback:n.ssFallback&&Lr(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return c&&s&&Ei(u,c.clone(u)),u}function Ze(n=" ",e=0){return z(Uu,null,n,e)}function Zi(n,e){const t=z(Ed,null,n);return t.staticCount=e,t}function B(n="",e=!1){return e?(T(),at(In,null,n)):z(In,null,n)}function Zs(n){return n==null||typeof n=="boolean"?z(In):ot(n)?z(Fe,null,n.slice()):la(n)?si(n):z(Uu,null,String(n))}function si(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Lr(n)}function Qb(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(ot(e))t=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),Qb(n,r()),r._c&&(r._d=!0));return}else{t=32;const r=e._;!r&&!uR(e)?e._ctx=bn:r===3&&bn&&(bn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:bn},t=32):(e=String(e),s&64?(t=16,e=[Ze(e)]):t=8);n.children=e,n.shapeFlag|=t}function xR(...n){const e={};for(let t=0;tSn||bn;let Yd,Lg;{const n=_2(),e=(t,s)=>{let r;return(r=n[t])||(r=n[t]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Yd=e("__VUE_INSTANCE_SETTERS__",t=>Sn=t),Lg=e("__VUE_SSR_SETTERS__",t=>Bu=t)}const sc=n=>{const e=Sn;return Yd(n),n.scope.on(),()=>{n.scope.off(),Yd(e)}},dv=()=>{Sn&&Sn.scope.off(),Yd(null)};function CR(n){return n.vnode.shapeFlag&4}let Bu=!1;function Zk(n,e=!1,t=!1){e&&Lg(e);const{props:s,children:r}=n.vnode,i=CR(n);wk(n,s,i,e),Nk(n,r,t);const o=i?Jk(n,e):void 0;return e&&Lg(!1),o}function Jk(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,bk);const{setup:s}=t;if(s){const r=n.setupContext=s.length>1?tD(n):null,i=sc(n);xi();const o=tc(s,n,0,[n.props,r]);if(Ci(),i(),d2(o)){if(Xi(n)||eR(n),o.then(dv,dv),e)return o.then(a=>{uv(n,a,e)}).catch(a=>{ku(a,n,0)});n.asyncDep=o}else uv(n,o,e)}else wR(n,e)}function uv(n,e,t){ft(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:zt(e)&&(n.setupState=B2(e)),wR(n,t)}let pv;function wR(n,e,t){const s=n.type;if(!n.render){if(!e&&pv&&!s.render){const r=s.template||Wb(n).template;if(r){const{isCustomElement:i,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:c}=s,d=ln(ln({isCustomElement:i,delimiters:a},o),c);s.render=pv(r,d)}}n.render=s.render||ir}{const r=sc(n);xi();try{yk(n)}finally{Ci(),r()}}}const eD={get(n,e){return Dn(n,"get",""),n[e]}};function tD(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,eD),slots:n.slots,emit:n.emit,expose:e}}function Gu(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(B2(Iu(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in El)return El[t](n)},has(e,t){return t in e||t in El}})):n.proxy}function Pg(n,e=!0){return ft(n)?n.displayName||n.name:n.name||e&&n.__name}function nD(n){return ft(n)&&"__vccOpts"in n}const et=(n,e)=>KI(n,e,Bu);function Zb(n,e,t){const s=arguments.length;return s===2?zt(e)&&!ot(e)?la(e)?z(n,null,[e]):z(n,e):z(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&la(t)&&(t=[t]),z(n,e,t))}const sD="3.5.10";/** * @vue/runtime-dom v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Fg;const fv=typeof window<"u"&&window.trustedTypes;if(fv)try{Fg=fv.createPolicy("vue",{createHTML:n=>n})}catch{}const RR=Fg?n=>Fg.createHTML(n):n=>n,rD="http://www.w3.org/2000/svg",iD="http://www.w3.org/1998/Math/MathML",wr=typeof document<"u"?document:null,_v=wr&&wr.createElement("template"),oD={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const r=e==="svg"?wr.createElementNS(rD,n):e==="mathml"?wr.createElementNS(iD,n):t?wr.createElement(n,{is:t}):wr.createElement(n);return n==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:n=>wr.createTextNode(n),createComment:n=>wr.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>wr.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,r,i){const o=t?t.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),t),!(r===i||!(r=r.nextSibling)););else{_v.innerHTML=RR(s==="svg"?`${n}`:s==="mathml"?`${n}`:n);const a=_v.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Yr="transition",Za="animation",ca=Symbol("_vtc"),AR={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},MR=ln({},Q2,AR),aD=n=>(n.displayName="Transition",n.props=MR,n),ir=aD((n,{slots:e})=>Zb(ik,NR(n),e)),Ii=(n,e=[])=>{it(n)?n.forEach(t=>t(...e)):n&&n(...e)},mv=n=>n?it(n)?n.some(e=>e.length>1):n.length>1:!1;function NR(n){const e={};for(const V in n)V in AR||(e[V]=n[V]);if(n.css===!1)return e;const{name:t="v",type:s,duration:r,enterFromClass:i=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=i,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:_=`${t}-leave-from`,leaveActiveClass:m=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,g=lD(r),f=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:E,onLeave:S,onLeaveCancelled:R,onBeforeAppear:w=b,onAppear:A=v,onAppearCancelled:I=E}=e,C=(V,ee,O)=>{ei(V,ee?u:a),ei(V,ee?d:o),O&&O()},M=(V,ee)=>{V._isLeaving=!1,ei(V,_),ei(V,h),ei(V,m),ee&&ee()},G=V=>(ee,O)=>{const H=V?A:v,q=()=>C(ee,V,O);Ii(H,[ee,q]),hv(()=>{ei(ee,V?c:i),xr(ee,V?u:a),mv(H)||gv(ee,s,f,q)})};return ln(e,{onBeforeEnter(V){Ii(b,[V]),xr(V,i),xr(V,o)},onBeforeAppear(V){Ii(w,[V]),xr(V,c),xr(V,d)},onEnter:G(!1),onAppear:G(!0),onLeave(V,ee){V._isLeaving=!0;const O=()=>M(V,ee);xr(V,_),xr(V,m),IR(),hv(()=>{V._isLeaving&&(ei(V,_),xr(V,h),mv(S)||gv(V,s,y,O))}),Ii(S,[V,O])},onEnterCancelled(V){C(V,!1),Ii(E,[V])},onAppearCancelled(V){C(V,!0),Ii(I,[V])},onLeaveCancelled(V){M(V),Ii(R,[V])}})}function lD(n){if(n==null)return null;if(zt(n))return[Pp(n.enter),Pp(n.leave)];{const e=Pp(n);return[e,e]}}function Pp(n){return oI(n)}function xr(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[ca]||(n[ca]=new Set)).add(e)}function ei(n,e){e.split(/\s+/).forEach(s=>s&&n.classList.remove(s));const t=n[ca];t&&(t.delete(e),t.size||(n[ca]=void 0))}function hv(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let cD=0;function gv(n,e,t,s){const r=n._endId=++cD,i=()=>{r===n._endId&&s()};if(t!=null)return setTimeout(i,t);const{type:o,timeout:a,propCount:c}=OR(n,e);if(!o)return s();const d=o+"end";let u=0;const _=()=>{n.removeEventListener(d,m),i()},m=h=>{h.target===n&&++u>=c&&_()};setTimeout(()=>{u(t[g]||"").split(", "),r=s(`${Yr}Delay`),i=s(`${Yr}Duration`),o=bv(r,i),a=s(`${Za}Delay`),c=s(`${Za}Duration`),d=bv(a,c);let u=null,_=0,m=0;e===Yr?o>0&&(u=Yr,_=o,m=i.length):e===Za?d>0&&(u=Za,_=d,m=c.length):(_=Math.max(o,d),u=_>0?o>d?Yr:Za:null,m=u?u===Yr?i.length:c.length:0);const h=u===Yr&&/\b(transform|all)(,|$)/.test(s(`${Yr}Property`).toString());return{type:u,timeout:_,propCount:m,hasTransform:h}}function bv(n,e){for(;n.lengthyv(t)+yv(n[s])))}function yv(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function IR(){return document.body.offsetHeight}function dD(n,e,t){const s=n[ca];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const $d=Symbol("_vod"),kR=Symbol("_vsh"),ht={beforeMount(n,{value:e},{transition:t}){n[$d]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ja(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Ja(n,!0),s.enter(n)):s.leave(n,()=>{Ja(n,!1)}):Ja(n,e))},beforeUnmount(n,{value:e}){Ja(n,e)}};function Ja(n,e){n.style.display=e?n[$d]:"none",n[kR]=!e}const uD=Symbol(""),pD=/(^|;)\s*display\s*:/;function fD(n,e,t){const s=n.style,r=Xt(t);let i=!1;if(t&&!r){if(e)if(Xt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&Td(s,a,"")}else for(const o in e)t[o]==null&&Td(s,o,"");for(const o in t)o==="display"&&(i=!0),Td(s,o,t[o])}else if(r){if(e!==t){const o=s[uD];o&&(t+=";"+o),s.cssText=t,i=pD.test(t)}}else e&&n.removeAttribute("style");$d in n&&(n[$d]=i?s.display:"",n[kR]&&(s.display="none"))}const vv=/\s*!important$/;function Td(n,e,t){if(it(t))t.forEach(s=>Td(n,e,s));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const s=_D(n,e);vv.test(t)?n.setProperty(Ti(s),t.replace(vv,""),"important"):n[s]=t}}const Ev=["Webkit","Moz","ms"],Fp={};function _D(n,e){const t=Fp[e];if(t)return t;let s=ws(e);if(s!=="filter"&&s in n)return Fp[e]=s;s=wu(s);for(let r=0;rUp||(bD.then(()=>Up=0),Up=Date.now());function vD(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;zs(ED(s,t.value),e,5,[s])};return t.value=n,t.attached=yD(),t}function ED(n,e){if(it(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const Rv=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,SD=(n,e,t,s,r,i)=>{const o=r==="svg";e==="class"?dD(n,s,o):e==="style"?fD(n,t,s):xu(e)?Db(e)||hD(n,e,t,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):TD(n,e,s,o))?(xv(n,e,s),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Tv(n,e,s,o,i,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!Xt(s))?xv(n,ws(e),s):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),Tv(n,e,s,o))};function TD(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&Rv(e)&&ft(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=n.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rv(e)&&Xt(t)?!1:e in n}const DR=new WeakMap,LR=new WeakMap,Wd=Symbol("_moveCb"),Av=Symbol("_enterCb"),xD=n=>(delete n.props.mode,n),CD=xD({name:"TransitionGroup",props:ln({},MR,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=Xb(),s=j2();let r,i;return nc(()=>{if(!r.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!MD(r[0].el,t.vnode.el,o))return;r.forEach(wD),r.forEach(RD);const a=r.filter(AD);IR(),a.forEach(c=>{const d=c.el,u=d.style;xr(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const _=d[Wd]=m=>{m&&m.target!==d||(!m||/transform$/.test(m.propertyName))&&(d.removeEventListener("transitionend",_),d[Wd]=null,ei(d,o))};d.addEventListener("transitionend",_)})}),()=>{const o=It(n),a=NR(o);let c=o.tag||Fe;if(r=[],i)for(let d=0;d{a.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),t.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:o}=OR(s);return i.removeChild(s),o}const Si=n=>{const e=n.props["onUpdate:modelValue"]||!1;return it(e)?t=>Zo(e,t):e};function ND(n){n.target.composing=!0}function Mv(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),ae={created(n,{modifiers:{lazy:e,trim:t,number:s}},r){n[xs]=Si(r);const i=s||r.props&&r.props.type==="number";Ar(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),i&&(a=Fd(a)),n[xs](a)}),t&&Ar(n,"change",()=>{n.value=n.value.trim()}),e||(Ar(n,"compositionstart",ND),Ar(n,"compositionend",Mv),Ar(n,"change",Mv))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:s,trim:r,number:i}},o){if(n[xs]=Si(o),n.composing)return;const a=(i||n.type==="number")&&!/^0\d/.test(n.value)?Fd(n.value):n.value,c=e??"";a!==c&&(document.activeElement===n&&n.type!=="range"&&(s&&e===t||r&&n.value.trim()===c)||(n.value=c))}},He={deep:!0,created(n,e,t){n[xs]=Si(t),Ar(n,"change",()=>{const s=n._modelValue,r=da(n),i=n.checked,o=n[xs];if(it(s)){const a=Fb(s,r),c=a!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const d=[...s];d.splice(a,1),o(d)}}else if(ka(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(PR(n,i))})},mounted:Nv,beforeUpdate(n,e,t){n[xs]=Si(t),Nv(n,e,t)}};function Nv(n,{value:e},t){n._modelValue=e;let s;it(e)?s=Fb(e,t.props.value)>-1:ka(e)?s=e.has(t.props.value):s=oo(e,PR(n,!0)),n.checked!==s&&(n.checked=s)}const OD={created(n,{value:e},t){n.checked=oo(e,t.props.value),n[xs]=Si(t),Ar(n,"change",()=>{n[xs](da(n))})},beforeUpdate(n,{value:e,oldValue:t},s){n[xs]=Si(s),e!==t&&(n.checked=oo(e,s.props.value))}},Ot={deep:!0,created(n,{value:e,modifiers:{number:t}},s){const r=ka(e);Ar(n,"change",()=>{const i=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Fd(da(o)):da(o));n[xs](n.multiple?r?new Set(i):i:i[0]),n._assigning=!0,Ue(()=>{n._assigning=!1})}),n[xs]=Si(s)},mounted(n,{value:e}){Ov(n,e)},beforeUpdate(n,e,t){n[xs]=Si(t)},updated(n,{value:e}){n._assigning||Ov(n,e)}};function Ov(n,e){const t=n.multiple,s=it(e);if(!(t&&!s&&!ka(e))){for(let r=0,i=n.options.length;rString(d)===String(a)):o.selected=Fb(e,a)>-1}else o.selected=e.has(a);else if(oo(da(o),e)){n.selectedIndex!==r&&(n.selectedIndex=r);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function da(n){return"_value"in n?n._value:n.value}function PR(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const ID=["ctrl","shift","alt","meta"],kD={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>ID.some(t=>n[`${t}Key`]&&!e.includes(t))},$=(n,e)=>{const t=n._withMods||(n._withMods={}),s=e.join(".");return t[s]||(t[s]=(r,...i)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),s=e.join(".");return t[s]||(t[s]=r=>{if(!("key"in r))return;const i=Ti(r.key);if(e.some(o=>o===i||DD[o]===i))return n(r)})},LD=ln({patchProp:SD},oD);let Iv;function PD(){return Iv||(Iv=Ik(LD))}const FD=(...n)=>{const e=PD().createApp(...n),{mount:t}=e;return e.mount=s=>{const r=BD(s);if(!r)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=t(r,!1,UD(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function UD(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function BD(n){return Xt(n)?document.querySelector(n):n}function GD(){return FR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function FR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const VD=typeof Proxy=="function",zD="devtools-plugin:setup",HD="plugin:settings:set";let To,Ug;function qD(){var n;return To!==void 0||(typeof window<"u"&&window.performance?(To=!0,Ug=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(To=!0,Ug=globalThis.perf_hooks.performance):To=!1),To}function YD(){return qD()?Ug.now():Date.now()}class $D{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const s={};if(e.settings)for(const o in e.settings){const a=e.settings[o];s[o]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},s);try{const o=localStorage.getItem(r),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(r,JSON.stringify(o))}catch{}i=o},now(){return YD()}},t&&t.on(HD,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:a,args:c,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function WD(n,e){const t=n,s=FR(),r=GD(),i=VD&&t.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(zD,n,e);else{const o=i?new $D(t,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! +**/let Fg;const fv=typeof window<"u"&&window.trustedTypes;if(fv)try{Fg=fv.createPolicy("vue",{createHTML:n=>n})}catch{}const RR=Fg?n=>Fg.createHTML(n):n=>n,rD="http://www.w3.org/2000/svg",iD="http://www.w3.org/1998/Math/MathML",wr=typeof document<"u"?document:null,_v=wr&&wr.createElement("template"),oD={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const r=e==="svg"?wr.createElementNS(rD,n):e==="mathml"?wr.createElementNS(iD,n):t?wr.createElement(n,{is:t}):wr.createElement(n);return n==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:n=>wr.createTextNode(n),createComment:n=>wr.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>wr.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,r,i){const o=t?t.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),t),!(r===i||!(r=r.nextSibling)););else{_v.innerHTML=RR(s==="svg"?`${n}`:s==="mathml"?`${n}`:n);const a=_v.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Yr="transition",Za="animation",ca=Symbol("_vtc"),AR={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},MR=ln({},Q2,AR),aD=n=>(n.displayName="Transition",n.props=MR,n),or=aD((n,{slots:e})=>Zb(ik,NR(n),e)),Ii=(n,e=[])=>{ot(n)?n.forEach(t=>t(...e)):n&&n(...e)},mv=n=>n?ot(n)?n.some(e=>e.length>1):n.length>1:!1;function NR(n){const e={};for(const V in n)V in AR||(e[V]=n[V]);if(n.css===!1)return e;const{name:t="v",type:s,duration:r,enterFromClass:i=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=i,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:_=`${t}-leave-from`,leaveActiveClass:m=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,g=lD(r),f=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:E,onLeave:S,onLeaveCancelled:R,onBeforeAppear:w=b,onAppear:A=v,onAppearCancelled:I=E}=e,C=(V,ee,O)=>{ei(V,ee?u:a),ei(V,ee?d:o),O&&O()},M=(V,ee)=>{V._isLeaving=!1,ei(V,_),ei(V,h),ei(V,m),ee&&ee()},G=V=>(ee,O)=>{const H=V?A:v,q=()=>C(ee,V,O);Ii(H,[ee,q]),hv(()=>{ei(ee,V?c:i),xr(ee,V?u:a),mv(H)||gv(ee,s,f,q)})};return ln(e,{onBeforeEnter(V){Ii(b,[V]),xr(V,i),xr(V,o)},onBeforeAppear(V){Ii(w,[V]),xr(V,c),xr(V,d)},onEnter:G(!1),onAppear:G(!0),onLeave(V,ee){V._isLeaving=!0;const O=()=>M(V,ee);xr(V,_),xr(V,m),IR(),hv(()=>{V._isLeaving&&(ei(V,_),xr(V,h),mv(S)||gv(V,s,y,O))}),Ii(S,[V,O])},onEnterCancelled(V){C(V,!1),Ii(E,[V])},onAppearCancelled(V){C(V,!0),Ii(I,[V])},onLeaveCancelled(V){M(V),Ii(R,[V])}})}function lD(n){if(n==null)return null;if(zt(n))return[Pp(n.enter),Pp(n.leave)];{const e=Pp(n);return[e,e]}}function Pp(n){return oI(n)}function xr(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[ca]||(n[ca]=new Set)).add(e)}function ei(n,e){e.split(/\s+/).forEach(s=>s&&n.classList.remove(s));const t=n[ca];t&&(t.delete(e),t.size||(n[ca]=void 0))}function hv(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let cD=0;function gv(n,e,t,s){const r=n._endId=++cD,i=()=>{r===n._endId&&s()};if(t!=null)return setTimeout(i,t);const{type:o,timeout:a,propCount:c}=OR(n,e);if(!o)return s();const d=o+"end";let u=0;const _=()=>{n.removeEventListener(d,m),i()},m=h=>{h.target===n&&++u>=c&&_()};setTimeout(()=>{u(t[g]||"").split(", "),r=s(`${Yr}Delay`),i=s(`${Yr}Duration`),o=bv(r,i),a=s(`${Za}Delay`),c=s(`${Za}Duration`),d=bv(a,c);let u=null,_=0,m=0;e===Yr?o>0&&(u=Yr,_=o,m=i.length):e===Za?d>0&&(u=Za,_=d,m=c.length):(_=Math.max(o,d),u=_>0?o>d?Yr:Za:null,m=u?u===Yr?i.length:c.length:0);const h=u===Yr&&/\b(transform|all)(,|$)/.test(s(`${Yr}Property`).toString());return{type:u,timeout:_,propCount:m,hasTransform:h}}function bv(n,e){for(;n.lengthyv(t)+yv(n[s])))}function yv(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function IR(){return document.body.offsetHeight}function dD(n,e,t){const s=n[ca];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const $d=Symbol("_vod"),kR=Symbol("_vsh"),ht={beforeMount(n,{value:e},{transition:t}){n[$d]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ja(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Ja(n,!0),s.enter(n)):s.leave(n,()=>{Ja(n,!1)}):Ja(n,e))},beforeUnmount(n,{value:e}){Ja(n,e)}};function Ja(n,e){n.style.display=e?n[$d]:"none",n[kR]=!e}const uD=Symbol(""),pD=/(^|;)\s*display\s*:/;function fD(n,e,t){const s=n.style,r=Xt(t);let i=!1;if(t&&!r){if(e)if(Xt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&Td(s,a,"")}else for(const o in e)t[o]==null&&Td(s,o,"");for(const o in t)o==="display"&&(i=!0),Td(s,o,t[o])}else if(r){if(e!==t){const o=s[uD];o&&(t+=";"+o),s.cssText=t,i=pD.test(t)}}else e&&n.removeAttribute("style");$d in n&&(n[$d]=i?s.display:"",n[kR]&&(s.display="none"))}const vv=/\s*!important$/;function Td(n,e,t){if(ot(t))t.forEach(s=>Td(n,e,s));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const s=_D(n,e);vv.test(t)?n.setProperty(Ti(s),t.replace(vv,""),"important"):n[s]=t}}const Ev=["Webkit","Moz","ms"],Fp={};function _D(n,e){const t=Fp[e];if(t)return t;let s=ws(e);if(s!=="filter"&&s in n)return Fp[e]=s;s=wu(s);for(let r=0;rUp||(bD.then(()=>Up=0),Up=Date.now());function vD(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;zs(ED(s,t.value),e,5,[s])};return t.value=n,t.attached=yD(),t}function ED(n,e){if(ot(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const Rv=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,SD=(n,e,t,s,r,i)=>{const o=r==="svg";e==="class"?dD(n,s,o):e==="style"?fD(n,t,s):xu(e)?Db(e)||hD(n,e,t,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):TD(n,e,s,o))?(xv(n,e,s),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Tv(n,e,s,o,i,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!Xt(s))?xv(n,ws(e),s):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),Tv(n,e,s,o))};function TD(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&Rv(e)&&ft(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=n.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rv(e)&&Xt(t)?!1:e in n}const DR=new WeakMap,LR=new WeakMap,Wd=Symbol("_moveCb"),Av=Symbol("_enterCb"),xD=n=>(delete n.props.mode,n),CD=xD({name:"TransitionGroup",props:ln({},MR,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=Xb(),s=j2();let r,i;return nc(()=>{if(!r.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!MD(r[0].el,t.vnode.el,o))return;r.forEach(wD),r.forEach(RD);const a=r.filter(AD);IR(),a.forEach(c=>{const d=c.el,u=d.style;xr(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const _=d[Wd]=m=>{m&&m.target!==d||(!m||/transform$/.test(m.propertyName))&&(d.removeEventListener("transitionend",_),d[Wd]=null,ei(d,o))};d.addEventListener("transitionend",_)})}),()=>{const o=It(n),a=NR(o);let c=o.tag||Fe;if(r=[],i)for(let d=0;d{a.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),t.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:o}=OR(s);return i.removeChild(s),o}const Si=n=>{const e=n.props["onUpdate:modelValue"]||!1;return ot(e)?t=>Zo(e,t):e};function ND(n){n.target.composing=!0}function Mv(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),ae={created(n,{modifiers:{lazy:e,trim:t,number:s}},r){n[xs]=Si(r);const i=s||r.props&&r.props.type==="number";Ar(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),i&&(a=Fd(a)),n[xs](a)}),t&&Ar(n,"change",()=>{n.value=n.value.trim()}),e||(Ar(n,"compositionstart",ND),Ar(n,"compositionend",Mv),Ar(n,"change",Mv))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:s,trim:r,number:i}},o){if(n[xs]=Si(o),n.composing)return;const a=(i||n.type==="number")&&!/^0\d/.test(n.value)?Fd(n.value):n.value,c=e??"";a!==c&&(document.activeElement===n&&n.type!=="range"&&(s&&e===t||r&&n.value.trim()===c)||(n.value=c))}},He={deep:!0,created(n,e,t){n[xs]=Si(t),Ar(n,"change",()=>{const s=n._modelValue,r=da(n),i=n.checked,o=n[xs];if(ot(s)){const a=Fb(s,r),c=a!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const d=[...s];d.splice(a,1),o(d)}}else if(ka(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(PR(n,i))})},mounted:Nv,beforeUpdate(n,e,t){n[xs]=Si(t),Nv(n,e,t)}};function Nv(n,{value:e},t){n._modelValue=e;let s;ot(e)?s=Fb(e,t.props.value)>-1:ka(e)?s=e.has(t.props.value):s=oo(e,PR(n,!0)),n.checked!==s&&(n.checked=s)}const OD={created(n,{value:e},t){n.checked=oo(e,t.props.value),n[xs]=Si(t),Ar(n,"change",()=>{n[xs](da(n))})},beforeUpdate(n,{value:e,oldValue:t},s){n[xs]=Si(s),e!==t&&(n.checked=oo(e,s.props.value))}},Ot={deep:!0,created(n,{value:e,modifiers:{number:t}},s){const r=ka(e);Ar(n,"change",()=>{const i=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Fd(da(o)):da(o));n[xs](n.multiple?r?new Set(i):i:i[0]),n._assigning=!0,Ue(()=>{n._assigning=!1})}),n[xs]=Si(s)},mounted(n,{value:e}){Ov(n,e)},beforeUpdate(n,e,t){n[xs]=Si(t)},updated(n,{value:e}){n._assigning||Ov(n,e)}};function Ov(n,e){const t=n.multiple,s=ot(e);if(!(t&&!s&&!ka(e))){for(let r=0,i=n.options.length;rString(d)===String(a)):o.selected=Fb(e,a)>-1}else o.selected=e.has(a);else if(oo(da(o),e)){n.selectedIndex!==r&&(n.selectedIndex=r);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function da(n){return"_value"in n?n._value:n.value}function PR(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const ID=["ctrl","shift","alt","meta"],kD={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>ID.some(t=>n[`${t}Key`]&&!e.includes(t))},$=(n,e)=>{const t=n._withMods||(n._withMods={}),s=e.join(".");return t[s]||(t[s]=(r,...i)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),s=e.join(".");return t[s]||(t[s]=r=>{if(!("key"in r))return;const i=Ti(r.key);if(e.some(o=>o===i||DD[o]===i))return n(r)})},LD=ln({patchProp:SD},oD);let Iv;function PD(){return Iv||(Iv=Ik(LD))}const FD=(...n)=>{const e=PD().createApp(...n),{mount:t}=e;return e.mount=s=>{const r=BD(s);if(!r)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=t(r,!1,UD(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function UD(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function BD(n){return Xt(n)?document.querySelector(n):n}function GD(){return FR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function FR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const VD=typeof Proxy=="function",zD="devtools-plugin:setup",HD="plugin:settings:set";let To,Ug;function qD(){var n;return To!==void 0||(typeof window<"u"&&window.performance?(To=!0,Ug=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(To=!0,Ug=globalThis.perf_hooks.performance):To=!1),To}function YD(){return qD()?Ug.now():Date.now()}class $D{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const s={};if(e.settings)for(const o in e.settings){const a=e.settings[o];s[o]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},s);try{const o=localStorage.getItem(r),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(r,JSON.stringify(o))}catch{}i=o},now(){return YD()}},t&&t.on(HD,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:a,args:c,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function WD(n,e){const t=n,s=FR(),r=GD(),i=VD&&t.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(zD,n,e);else{const o=i?new $D(t,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT - */var UR="store";function KD(n){return n===void 0&&(n=null),os(n!==null?n:UR)}function Pa(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function BR(n){return n!==null&&typeof n=="object"}function jD(n){return n&&typeof n.then=="function"}function QD(n,e){return function(){return n(e)}}function GR(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var s=e.indexOf(n);s>-1&&e.splice(s,1)}}function VR(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;Vu(n,t,[],n._modules.root,!0),Jb(n,t,e)}function Jb(n,e,t){var s=n._state,r=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var i=n._wrappedGetters,o={},a={},c=_I(!0);c.run(function(){Pa(i,function(d,u){o[u]=QD(d,n),a[u]=et(function(){return o[u]()}),Object.defineProperty(n.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),n._state=Hn({data:e}),n._scope=c,n.strict&&tL(n),s&&t&&n._withCommit(function(){s.data=null}),r&&r.stop()}function Vu(n,e,t,s,r){var i=!t.length,o=n._modules.getNamespace(t);if(s.namespaced&&(n._modulesNamespaceMap[o],n._modulesNamespaceMap[o]=s),!i&&!r){var a=e0(e,t.slice(0,-1)),c=t[t.length-1];n._withCommit(function(){a[c]=s.state})}var d=s.context=XD(n,o,t);s.forEachMutation(function(u,_){var m=o+_;ZD(n,m,u,d)}),s.forEachAction(function(u,_){var m=u.root?_:o+_,h=u.handler||u;JD(n,m,h,d)}),s.forEachGetter(function(u,_){var m=o+_;eL(n,m,u,d)}),s.forEachChild(function(u,_){Vu(n,e,t.concat(_),u,r)})}function XD(n,e,t){var s=e==="",r={dispatch:s?n.dispatch:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;return(!u||!u.root)&&(_=e+_),n.dispatch(_,d)},commit:s?n.commit:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;(!u||!u.root)&&(_=e+_),n.commit(_,d,u)}};return Object.defineProperties(r,{getters:{get:s?function(){return n.getters}:function(){return zR(n,e)}},state:{get:function(){return e0(n.state,t)}}}),r}function zR(n,e){if(!n._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(n.getters).forEach(function(r){if(r.slice(0,s)===e){var i=r.slice(s);Object.defineProperty(t,i,{get:function(){return n.getters[r]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ZD(n,e,t,s){var r=n._mutations[e]||(n._mutations[e]=[]);r.push(function(o){t.call(n,s.state,o)})}function JD(n,e,t,s){var r=n._actions[e]||(n._actions[e]=[]);r.push(function(o){var a=t.call(n,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:n.getters,rootState:n.state},o);return jD(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(c){throw n._devtoolHook.emit("vuex:error",c),c}):a})}function eL(n,e,t,s){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(i){return t(s.state,s.getters,i.state,i.getters)})}function tL(n){Tn(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function e0(n,e){return e.reduce(function(t,s){return t[s]},n)}function Kd(n,e,t){return BR(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var nL="vuex bindings",kv="vuex:mutations",Bp="vuex:actions",xo="vuex",sL=0;function rL(n,e){WD({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[nL]},function(t){t.addTimelineLayer({id:kv,label:"Vuex Mutations",color:Dv}),t.addTimelineLayer({id:Bp,label:"Vuex Actions",color:Dv}),t.addInspector({id:xo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(s){if(s.app===n&&s.inspectorId===xo)if(s.filter){var r=[];$R(r,e._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[YR(e._modules.root,"")]}),t.on.getInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId;zR(e,r),s.state=aL(cL(e._modules,r),r==="root"?e.getters:e._makeLocalGettersCache,r)}}),t.on.editInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId,i=s.path;r!=="root"&&(i=r.split("/").filter(Boolean).concat(i)),e._withCommit(function(){s.set(e._state.data,i,s.state.value)})}}),e.subscribe(function(s,r){var i={};s.payload&&(i.payload=s.payload),i.state=r,t.notifyComponentUpdate(),t.sendInspectorTree(xo),t.sendInspectorState(xo),t.addTimelineEvent({layerId:kv,event:{time:Date.now(),title:s.type,data:i}})}),e.subscribeAction({before:function(s,r){var i={};s.payload&&(i.payload=s.payload),s._id=sL++,s._time=Date.now(),i.state=r,t.addTimelineEvent({layerId:Bp,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,r){var i={},o=Date.now()-s._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},s.payload&&(i.payload=s.payload),i.state=r,t.addTimelineEvent({layerId:Bp,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var Dv=8702998,iL=6710886,oL=16777215,HR={label:"namespaced",textColor:oL,backgroundColor:iL};function qR(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function YR(n,e){return{id:e||"root",label:qR(e),tags:n.namespaced?[HR]:[],children:Object.keys(n._children).map(function(t){return YR(n._children[t],e+t+"/")})}}function $R(n,e,t,s){s.includes(t)&&n.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[HR]:[]}),Object.keys(e._children).forEach(function(r){$R(n,e._children[r],t,s+r+"/")})}function aL(n,e,t){e=t==="root"?e:e[t];var s=Object.keys(e),r={state:Object.keys(n.state).map(function(o){return{key:o,editable:!0,value:n.state[o]}})};if(s.length){var i=lL(e);r.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?qR(o):o,editable:!1,value:Bg(function(){return i[o]})}})}return r}function lL(n){var e={};return Object.keys(n).forEach(function(t){var s=t.split("/");if(s.length>1){var r=e,i=s.pop();s.forEach(function(o){r[o]||(r[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),r=r[o]._custom.value}),r[i]=Bg(function(){return n[t]})}else e[t]=Bg(function(){return n[t]})}),e}function cL(n,e){var t=e.split("/").filter(function(s){return s});return t.reduce(function(s,r,i){var o=s[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+e+'".');return i===t.length-1?o:o._children},e==="root"?n:n.root._children)}function Bg(n){try{return n()}catch(e){return e}}var qs=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},WR={namespaced:{configurable:!0}};WR.namespaced.get=function(){return!!this._rawModule.namespaced};qs.prototype.addChild=function(e,t){this._children[e]=t};qs.prototype.removeChild=function(e){delete this._children[e]};qs.prototype.getChild=function(e){return this._children[e]};qs.prototype.hasChild=function(e){return e in this._children};qs.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};qs.prototype.forEachChild=function(e){Pa(this._children,e)};qs.prototype.forEachGetter=function(e){this._rawModule.getters&&Pa(this._rawModule.getters,e)};qs.prototype.forEachAction=function(e){this._rawModule.actions&&Pa(this._rawModule.actions,e)};qs.prototype.forEachMutation=function(e){this._rawModule.mutations&&Pa(this._rawModule.mutations,e)};Object.defineProperties(qs.prototype,WR);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};bo.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,r){return t=t.getChild(r),s+(t.namespaced?r+"/":"")},"")};bo.prototype.update=function(e){KR([],this.root,e)};bo.prototype.register=function(e,t,s){var r=this;s===void 0&&(s=!0);var i=new qs(t,s);if(e.length===0)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&Pa(t.modules,function(a,c){r.register(e.concat(c),a,s)})};bo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],r=t.getChild(s);r&&r.runtime&&t.removeChild(s)};bo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function KR(n,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;KR(n.concat(s),e.getChild(s),t.modules[s])}}function dL(n){return new es(n)}var es=function(e){var t=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var r=e.strict;r===void 0&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,c=a.dispatch,d=a.commit;this.dispatch=function(m,h){return c.call(o,m,h)},this.commit=function(m,h,g){return d.call(o,m,h,g)},this.strict=r;var u=this._modules.root.state;Vu(this,u,[],this._modules.root),Jb(this,u),s.forEach(function(_){return _(t)})},t0={state:{configurable:!0}};es.prototype.install=function(e,t){e.provide(t||UR,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&rL(e,this)};t0.state.get=function(){return this._state.data};t0.state.set=function(n){};es.prototype.commit=function(e,t,s){var r=this,i=Kd(e,t,s),o=i.type,a=i.payload,c={type:o,payload:a},d=this._mutations[o];d&&(this._withCommit(function(){d.forEach(function(_){_(a)})}),this._subscribers.slice().forEach(function(u){return u(c,r.state)}))};es.prototype.dispatch=function(e,t){var s=this,r=Kd(e,t),i=r.type,o=r.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,s.state)})}catch{}var d=c.length>1?Promise.all(c.map(function(u){return u(o)})):c[0](o);return new Promise(function(u,_){d.then(function(m){try{s._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(a,s.state)})}catch{}u(m)},function(m){try{s._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(a,s.state,m)})}catch{}_(m)})})}};es.prototype.subscribe=function(e,t){return GR(e,this._subscribers,t)};es.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return GR(s,this._actionSubscribers,t)};es.prototype.watch=function(e,t,s){var r=this;return Tn(function(){return e(r.state,r.getters)},t,Object.assign({},s))};es.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})};es.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),Vu(this,this.state,e,this._modules.get(e),s.preserveState),Jb(this,this.state)};es.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=e0(t.state,e.slice(0,-1));delete s[e[e.length-1]]}),VR(this)};es.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};es.prototype.hotUpdate=function(e){this._modules.update(e),VR(this,!0)};es.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(es.prototype,t0);var uL=_L(function(n,e){var t={};return pL(e).forEach(function(s){var r=s.key,i=s.val;t[r]=function(){var a=this.$store.state,c=this.$store.getters;if(n){var d=mL(this.$store,"mapState",n);if(!d)return;a=d.context.state,c=d.context.getters}return typeof i=="function"?i.call(this,a,c):a[i]},t[r].vuex=!0}),t});function pL(n){return fL(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function fL(n){return Array.isArray(n)||BR(n)}function _L(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function mL(n,e,t){var s=n._modulesNamespaceMap[t];return s}function jR(n,e){return function(){return n.apply(e,arguments)}}const{toString:hL}=Object.prototype,{getPrototypeOf:n0}=Object,zu=(n=>e=>{const t=hL.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ys=n=>(n=n.toLowerCase(),e=>zu(e)===n),Hu=n=>e=>typeof e===n,{isArray:Fa}=Array,zl=Hu("undefined");function gL(n){return n!==null&&!zl(n)&&n.constructor!==null&&!zl(n.constructor)&&as(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const QR=Ys("ArrayBuffer");function bL(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&QR(n.buffer),e}const yL=Hu("string"),as=Hu("function"),XR=Hu("number"),qu=n=>n!==null&&typeof n=="object",vL=n=>n===!0||n===!1,xd=n=>{if(zu(n)!=="object")return!1;const e=n0(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},EL=Ys("Date"),SL=Ys("File"),TL=Ys("Blob"),xL=Ys("FileList"),CL=n=>qu(n)&&as(n.pipe),wL=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||as(n.append)&&((e=zu(n))==="formdata"||e==="object"&&as(n.toString)&&n.toString()==="[object FormData]"))},RL=Ys("URLSearchParams"),[AL,ML,NL,OL]=["ReadableStream","Request","Response","Headers"].map(Ys),IL=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rc(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let s,r;if(typeof n!="object"&&(n=[n]),Fa(n))for(s=0,r=n.length;s0;)if(r=t[s],e===r.toLowerCase())return r;return null}const Wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,JR=n=>!zl(n)&&n!==Wi;function Gg(){const{caseless:n}=JR(this)&&this||{},e={},t=(s,r)=>{const i=n&&ZR(e,r)||r;xd(e[i])&&xd(s)?e[i]=Gg(e[i],s):xd(s)?e[i]=Gg({},s):Fa(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s(rc(e,(r,i)=>{t&&as(r)?n[i]=jR(r,t):n[i]=r},{allOwnKeys:s}),n),DL=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),LL=(n,e,t,s)=>{n.prototype=Object.create(e.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},PL=(n,e,t,s)=>{let r,i,o;const a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),i=r.length;i-- >0;)o=r[i],(!s||s(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&n0(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},FL=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const s=n.indexOf(e,t);return s!==-1&&s===t},UL=n=>{if(!n)return null;if(Fa(n))return n;let e=n.length;if(!XR(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},BL=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&n0(Uint8Array)),GL=(n,e)=>{const s=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},VL=(n,e)=>{let t;const s=[];for(;(t=n.exec(e))!==null;)s.push(t);return s},zL=Ys("HTMLFormElement"),HL=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,r){return s.toUpperCase()+r}),Lv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),qL=Ys("RegExp"),eA=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),s={};rc(t,(r,i)=>{let o;(o=e(r,i,n))!==!1&&(s[i]=o||r)}),Object.defineProperties(n,s)},YL=n=>{eA(n,(e,t)=>{if(as(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=n[t];if(as(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},$L=(n,e)=>{const t={},s=r=>{r.forEach(i=>{t[i]=!0})};return Fa(n)?s(n):s(String(n).split(e)),t},WL=()=>{},KL=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Gp="abcdefghijklmnopqrstuvwxyz",Pv="0123456789",tA={DIGIT:Pv,ALPHA:Gp,ALPHA_DIGIT:Gp+Gp.toUpperCase()+Pv},jL=(n=16,e=tA.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;n--;)t+=e[Math.random()*s|0];return t};function QL(n){return!!(n&&as(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const XL=n=>{const e=new Array(10),t=(s,r)=>{if(qu(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Fa(s)?[]:{};return rc(s,(o,a)=>{const c=t(o,r+1);!zl(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return t(n,0)},ZL=Ys("AsyncFunction"),JL=n=>n&&(qu(n)||as(n))&&as(n.then)&&as(n.catch),nA=((n,e)=>n?setImmediate:e?((t,s)=>(Wi.addEventListener("message",({source:r,data:i})=>{r===Wi&&i===t&&s.length&&s.shift()()},!1),r=>{s.push(r),Wi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",as(Wi.postMessage)),eP=typeof queueMicrotask<"u"?queueMicrotask.bind(Wi):typeof process<"u"&&process.nextTick||nA,Te={isArray:Fa,isArrayBuffer:QR,isBuffer:gL,isFormData:wL,isArrayBufferView:bL,isString:yL,isNumber:XR,isBoolean:vL,isObject:qu,isPlainObject:xd,isReadableStream:AL,isRequest:ML,isResponse:NL,isHeaders:OL,isUndefined:zl,isDate:EL,isFile:SL,isBlob:TL,isRegExp:qL,isFunction:as,isStream:CL,isURLSearchParams:RL,isTypedArray:BL,isFileList:xL,forEach:rc,merge:Gg,extend:kL,trim:IL,stripBOM:DL,inherits:LL,toFlatObject:PL,kindOf:zu,kindOfTest:Ys,endsWith:FL,toArray:UL,forEachEntry:GL,matchAll:VL,isHTMLForm:zL,hasOwnProperty:Lv,hasOwnProp:Lv,reduceDescriptors:eA,freezeMethods:YL,toObjectSet:$L,toCamelCase:HL,noop:WL,toFiniteNumber:KL,findKey:ZR,global:Wi,isContextDefined:JR,ALPHABET:tA,generateString:jL,isSpecCompliantForm:QL,toJSONObject:XL,isAsyncFn:ZL,isThenable:JL,setImmediate:nA,asap:eP};function yt(n,e,t,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}Te.inherits(yt,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:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const sA=yt.prototype,rA={};["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(n=>{rA[n]={value:n}});Object.defineProperties(yt,rA);Object.defineProperty(sA,"isAxiosError",{value:!0});yt.from=(n,e,t,s,r,i)=>{const o=Object.create(sA);return Te.toFlatObject(n,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),yt.call(o,n.message,e,t,s,r),o.cause=n,o.name=n.name,i&&Object.assign(o,i),o};const tP=null;function Vg(n){return Te.isPlainObject(n)||Te.isArray(n)}function iA(n){return Te.endsWith(n,"[]")?n.slice(0,-2):n}function Fv(n,e,t){return n?n.concat(e).map(function(r,i){return r=iA(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function nP(n){return Te.isArray(n)&&!n.some(Vg)}const sP=Te.toFlatObject(Te,{},null,function(e){return/^is[A-Z]/.test(e)});function Yu(n,e,t){if(!Te.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Te.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,y){return!Te.isUndefined(y[f])});const s=t.metaTokens,r=t.visitor||u,i=t.dots,o=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(e);if(!Te.isFunction(r))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Te.isDate(g))return g.toISOString();if(!c&&Te.isBlob(g))throw new yt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(g)||Te.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,y){let b=g;if(g&&!y&&typeof g=="object"){if(Te.endsWith(f,"{}"))f=s?f:f.slice(0,-2),g=JSON.stringify(g);else if(Te.isArray(g)&&nP(g)||(Te.isFileList(g)||Te.endsWith(f,"[]"))&&(b=Te.toArray(g)))return f=iA(f),b.forEach(function(E,S){!(Te.isUndefined(E)||E===null)&&e.append(o===!0?Fv([f],S,i):o===null?f:f+"[]",d(E))}),!1}return Vg(g)?!0:(e.append(Fv(y,f,i),d(g)),!1)}const _=[],m=Object.assign(sP,{defaultVisitor:u,convertValue:d,isVisitable:Vg});function h(g,f){if(!Te.isUndefined(g)){if(_.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));_.push(g),Te.forEach(g,function(b,v){(!(Te.isUndefined(b)||b===null)&&r.call(e,b,Te.isString(v)?v.trim():v,f,m))===!0&&h(b,f?f.concat(v):[v])}),_.pop()}}if(!Te.isObject(n))throw new TypeError("data must be an object");return h(n),e}function Uv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function s0(n,e){this._pairs=[],n&&Yu(n,this,e)}const oA=s0.prototype;oA.append=function(e,t){this._pairs.push([e,t])};oA.toString=function(e){const t=e?function(s){return e.call(this,s,Uv)}:Uv;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function rP(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function aA(n,e,t){if(!e)return n;const s=t&&t.encode||rP,r=t&&t.serialize;let i;if(r?i=r(e,t):i=Te.isURLSearchParams(e)?e.toString():new s0(e,t).toString(s),i){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Bv{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Te.forEach(this.handlers,function(s){s!==null&&e(s)})}}const lA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iP=typeof URLSearchParams<"u"?URLSearchParams:s0,oP=typeof FormData<"u"?FormData:null,aP=typeof Blob<"u"?Blob:null,lP={isBrowser:!0,classes:{URLSearchParams:iP,FormData:oP,Blob:aP},protocols:["http","https","file","blob","url","data"]},r0=typeof window<"u"&&typeof document<"u",zg=typeof navigator=="object"&&navigator||void 0,cP=r0&&(!zg||["ReactNative","NativeScript","NS"].indexOf(zg.product)<0),dP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uP=r0&&window.location.href||"http://localhost",pP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:r0,hasStandardBrowserEnv:cP,hasStandardBrowserWebWorkerEnv:dP,navigator:zg,origin:uP},Symbol.toStringTag,{value:"Module"})),Kn={...pP,...lP};function fP(n,e){return Yu(n,new Kn.classes.URLSearchParams,Object.assign({visitor:function(t,s,r,i){return Kn.isNode&&Te.isBuffer(t)?(this.append(s,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function _P(n){return Te.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mP(n){const e={},t=Object.keys(n);let s;const r=t.length;let i;for(s=0;s=t.length;return o=!o&&Te.isArray(r)?r.length:o,c?(Te.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!Te.isObject(r[o]))&&(r[o]=[]),e(t,s,r[o],i)&&Te.isArray(r[o])&&(r[o]=mP(r[o])),!a)}if(Te.isFormData(n)&&Te.isFunction(n.entries)){const t={};return Te.forEachEntry(n,(s,r)=>{e(_P(s),r,t,0)}),t}return null}function hP(n,e,t){if(Te.isString(n))try{return(e||JSON.parse)(n),Te.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(n)}const ic={transitional:lA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",r=s.indexOf("application/json")>-1,i=Te.isObject(e);if(i&&Te.isHTMLForm(e)&&(e=new FormData(e)),Te.isFormData(e))return r?JSON.stringify(cA(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return fP(e,this.formSerializer).toString();if((a=Te.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Yu(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),hP(e)):e}],transformResponse:[function(e){const t=this.transitional||ic.transitional,s=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(s&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],n=>{ic.headers[n]={}});const gP=Te.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"]),bP=n=>{const e={};let t,s,r;return n&&n.split(` + */var UR="store";function KD(n){return n===void 0&&(n=null),os(n!==null?n:UR)}function Pa(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function BR(n){return n!==null&&typeof n=="object"}function jD(n){return n&&typeof n.then=="function"}function QD(n,e){return function(){return n(e)}}function GR(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var s=e.indexOf(n);s>-1&&e.splice(s,1)}}function VR(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;Vu(n,t,[],n._modules.root,!0),Jb(n,t,e)}function Jb(n,e,t){var s=n._state,r=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var i=n._wrappedGetters,o={},a={},c=_I(!0);c.run(function(){Pa(i,function(d,u){o[u]=QD(d,n),a[u]=et(function(){return o[u]()}),Object.defineProperty(n.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),n._state=Hn({data:e}),n._scope=c,n.strict&&tL(n),s&&t&&n._withCommit(function(){s.data=null}),r&&r.stop()}function Vu(n,e,t,s,r){var i=!t.length,o=n._modules.getNamespace(t);if(s.namespaced&&(n._modulesNamespaceMap[o],n._modulesNamespaceMap[o]=s),!i&&!r){var a=e0(e,t.slice(0,-1)),c=t[t.length-1];n._withCommit(function(){a[c]=s.state})}var d=s.context=XD(n,o,t);s.forEachMutation(function(u,_){var m=o+_;ZD(n,m,u,d)}),s.forEachAction(function(u,_){var m=u.root?_:o+_,h=u.handler||u;JD(n,m,h,d)}),s.forEachGetter(function(u,_){var m=o+_;eL(n,m,u,d)}),s.forEachChild(function(u,_){Vu(n,e,t.concat(_),u,r)})}function XD(n,e,t){var s=e==="",r={dispatch:s?n.dispatch:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;return(!u||!u.root)&&(_=e+_),n.dispatch(_,d)},commit:s?n.commit:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;(!u||!u.root)&&(_=e+_),n.commit(_,d,u)}};return Object.defineProperties(r,{getters:{get:s?function(){return n.getters}:function(){return zR(n,e)}},state:{get:function(){return e0(n.state,t)}}}),r}function zR(n,e){if(!n._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(n.getters).forEach(function(r){if(r.slice(0,s)===e){var i=r.slice(s);Object.defineProperty(t,i,{get:function(){return n.getters[r]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ZD(n,e,t,s){var r=n._mutations[e]||(n._mutations[e]=[]);r.push(function(o){t.call(n,s.state,o)})}function JD(n,e,t,s){var r=n._actions[e]||(n._actions[e]=[]);r.push(function(o){var a=t.call(n,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:n.getters,rootState:n.state},o);return jD(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(c){throw n._devtoolHook.emit("vuex:error",c),c}):a})}function eL(n,e,t,s){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(i){return t(s.state,s.getters,i.state,i.getters)})}function tL(n){Tn(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function e0(n,e){return e.reduce(function(t,s){return t[s]},n)}function Kd(n,e,t){return BR(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var nL="vuex bindings",kv="vuex:mutations",Bp="vuex:actions",xo="vuex",sL=0;function rL(n,e){WD({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[nL]},function(t){t.addTimelineLayer({id:kv,label:"Vuex Mutations",color:Dv}),t.addTimelineLayer({id:Bp,label:"Vuex Actions",color:Dv}),t.addInspector({id:xo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(s){if(s.app===n&&s.inspectorId===xo)if(s.filter){var r=[];$R(r,e._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[YR(e._modules.root,"")]}),t.on.getInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId;zR(e,r),s.state=aL(cL(e._modules,r),r==="root"?e.getters:e._makeLocalGettersCache,r)}}),t.on.editInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId,i=s.path;r!=="root"&&(i=r.split("/").filter(Boolean).concat(i)),e._withCommit(function(){s.set(e._state.data,i,s.state.value)})}}),e.subscribe(function(s,r){var i={};s.payload&&(i.payload=s.payload),i.state=r,t.notifyComponentUpdate(),t.sendInspectorTree(xo),t.sendInspectorState(xo),t.addTimelineEvent({layerId:kv,event:{time:Date.now(),title:s.type,data:i}})}),e.subscribeAction({before:function(s,r){var i={};s.payload&&(i.payload=s.payload),s._id=sL++,s._time=Date.now(),i.state=r,t.addTimelineEvent({layerId:Bp,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,r){var i={},o=Date.now()-s._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},s.payload&&(i.payload=s.payload),i.state=r,t.addTimelineEvent({layerId:Bp,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var Dv=8702998,iL=6710886,oL=16777215,HR={label:"namespaced",textColor:oL,backgroundColor:iL};function qR(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function YR(n,e){return{id:e||"root",label:qR(e),tags:n.namespaced?[HR]:[],children:Object.keys(n._children).map(function(t){return YR(n._children[t],e+t+"/")})}}function $R(n,e,t,s){s.includes(t)&&n.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[HR]:[]}),Object.keys(e._children).forEach(function(r){$R(n,e._children[r],t,s+r+"/")})}function aL(n,e,t){e=t==="root"?e:e[t];var s=Object.keys(e),r={state:Object.keys(n.state).map(function(o){return{key:o,editable:!0,value:n.state[o]}})};if(s.length){var i=lL(e);r.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?qR(o):o,editable:!1,value:Bg(function(){return i[o]})}})}return r}function lL(n){var e={};return Object.keys(n).forEach(function(t){var s=t.split("/");if(s.length>1){var r=e,i=s.pop();s.forEach(function(o){r[o]||(r[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),r=r[o]._custom.value}),r[i]=Bg(function(){return n[t]})}else e[t]=Bg(function(){return n[t]})}),e}function cL(n,e){var t=e.split("/").filter(function(s){return s});return t.reduce(function(s,r,i){var o=s[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+e+'".');return i===t.length-1?o:o._children},e==="root"?n:n.root._children)}function Bg(n){try{return n()}catch(e){return e}}var Ys=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},WR={namespaced:{configurable:!0}};WR.namespaced.get=function(){return!!this._rawModule.namespaced};Ys.prototype.addChild=function(e,t){this._children[e]=t};Ys.prototype.removeChild=function(e){delete this._children[e]};Ys.prototype.getChild=function(e){return this._children[e]};Ys.prototype.hasChild=function(e){return e in this._children};Ys.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Ys.prototype.forEachChild=function(e){Pa(this._children,e)};Ys.prototype.forEachGetter=function(e){this._rawModule.getters&&Pa(this._rawModule.getters,e)};Ys.prototype.forEachAction=function(e){this._rawModule.actions&&Pa(this._rawModule.actions,e)};Ys.prototype.forEachMutation=function(e){this._rawModule.mutations&&Pa(this._rawModule.mutations,e)};Object.defineProperties(Ys.prototype,WR);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};bo.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,r){return t=t.getChild(r),s+(t.namespaced?r+"/":"")},"")};bo.prototype.update=function(e){KR([],this.root,e)};bo.prototype.register=function(e,t,s){var r=this;s===void 0&&(s=!0);var i=new Ys(t,s);if(e.length===0)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&Pa(t.modules,function(a,c){r.register(e.concat(c),a,s)})};bo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],r=t.getChild(s);r&&r.runtime&&t.removeChild(s)};bo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function KR(n,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;KR(n.concat(s),e.getChild(s),t.modules[s])}}function dL(n){return new es(n)}var es=function(e){var t=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var r=e.strict;r===void 0&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,c=a.dispatch,d=a.commit;this.dispatch=function(m,h){return c.call(o,m,h)},this.commit=function(m,h,g){return d.call(o,m,h,g)},this.strict=r;var u=this._modules.root.state;Vu(this,u,[],this._modules.root),Jb(this,u),s.forEach(function(_){return _(t)})},t0={state:{configurable:!0}};es.prototype.install=function(e,t){e.provide(t||UR,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&rL(e,this)};t0.state.get=function(){return this._state.data};t0.state.set=function(n){};es.prototype.commit=function(e,t,s){var r=this,i=Kd(e,t,s),o=i.type,a=i.payload,c={type:o,payload:a},d=this._mutations[o];d&&(this._withCommit(function(){d.forEach(function(_){_(a)})}),this._subscribers.slice().forEach(function(u){return u(c,r.state)}))};es.prototype.dispatch=function(e,t){var s=this,r=Kd(e,t),i=r.type,o=r.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,s.state)})}catch{}var d=c.length>1?Promise.all(c.map(function(u){return u(o)})):c[0](o);return new Promise(function(u,_){d.then(function(m){try{s._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(a,s.state)})}catch{}u(m)},function(m){try{s._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(a,s.state,m)})}catch{}_(m)})})}};es.prototype.subscribe=function(e,t){return GR(e,this._subscribers,t)};es.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return GR(s,this._actionSubscribers,t)};es.prototype.watch=function(e,t,s){var r=this;return Tn(function(){return e(r.state,r.getters)},t,Object.assign({},s))};es.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})};es.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),Vu(this,this.state,e,this._modules.get(e),s.preserveState),Jb(this,this.state)};es.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=e0(t.state,e.slice(0,-1));delete s[e[e.length-1]]}),VR(this)};es.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};es.prototype.hotUpdate=function(e){this._modules.update(e),VR(this,!0)};es.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(es.prototype,t0);var uL=_L(function(n,e){var t={};return pL(e).forEach(function(s){var r=s.key,i=s.val;t[r]=function(){var a=this.$store.state,c=this.$store.getters;if(n){var d=mL(this.$store,"mapState",n);if(!d)return;a=d.context.state,c=d.context.getters}return typeof i=="function"?i.call(this,a,c):a[i]},t[r].vuex=!0}),t});function pL(n){return fL(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function fL(n){return Array.isArray(n)||BR(n)}function _L(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function mL(n,e,t){var s=n._modulesNamespaceMap[t];return s}function jR(n,e){return function(){return n.apply(e,arguments)}}const{toString:hL}=Object.prototype,{getPrototypeOf:n0}=Object,zu=(n=>e=>{const t=hL.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),$s=n=>(n=n.toLowerCase(),e=>zu(e)===n),Hu=n=>e=>typeof e===n,{isArray:Fa}=Array,zl=Hu("undefined");function gL(n){return n!==null&&!zl(n)&&n.constructor!==null&&!zl(n.constructor)&&as(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const QR=$s("ArrayBuffer");function bL(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&QR(n.buffer),e}const yL=Hu("string"),as=Hu("function"),XR=Hu("number"),qu=n=>n!==null&&typeof n=="object",vL=n=>n===!0||n===!1,xd=n=>{if(zu(n)!=="object")return!1;const e=n0(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},EL=$s("Date"),SL=$s("File"),TL=$s("Blob"),xL=$s("FileList"),CL=n=>qu(n)&&as(n.pipe),wL=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||as(n.append)&&((e=zu(n))==="formdata"||e==="object"&&as(n.toString)&&n.toString()==="[object FormData]"))},RL=$s("URLSearchParams"),[AL,ML,NL,OL]=["ReadableStream","Request","Response","Headers"].map($s),IL=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rc(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let s,r;if(typeof n!="object"&&(n=[n]),Fa(n))for(s=0,r=n.length;s0;)if(r=t[s],e===r.toLowerCase())return r;return null}const Wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,JR=n=>!zl(n)&&n!==Wi;function Gg(){const{caseless:n}=JR(this)&&this||{},e={},t=(s,r)=>{const i=n&&ZR(e,r)||r;xd(e[i])&&xd(s)?e[i]=Gg(e[i],s):xd(s)?e[i]=Gg({},s):Fa(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s(rc(e,(r,i)=>{t&&as(r)?n[i]=jR(r,t):n[i]=r},{allOwnKeys:s}),n),DL=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),LL=(n,e,t,s)=>{n.prototype=Object.create(e.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},PL=(n,e,t,s)=>{let r,i,o;const a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),i=r.length;i-- >0;)o=r[i],(!s||s(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&n0(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},FL=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const s=n.indexOf(e,t);return s!==-1&&s===t},UL=n=>{if(!n)return null;if(Fa(n))return n;let e=n.length;if(!XR(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},BL=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&n0(Uint8Array)),GL=(n,e)=>{const s=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},VL=(n,e)=>{let t;const s=[];for(;(t=n.exec(e))!==null;)s.push(t);return s},zL=$s("HTMLFormElement"),HL=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,r){return s.toUpperCase()+r}),Lv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),qL=$s("RegExp"),eA=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),s={};rc(t,(r,i)=>{let o;(o=e(r,i,n))!==!1&&(s[i]=o||r)}),Object.defineProperties(n,s)},YL=n=>{eA(n,(e,t)=>{if(as(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=n[t];if(as(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},$L=(n,e)=>{const t={},s=r=>{r.forEach(i=>{t[i]=!0})};return Fa(n)?s(n):s(String(n).split(e)),t},WL=()=>{},KL=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Gp="abcdefghijklmnopqrstuvwxyz",Pv="0123456789",tA={DIGIT:Pv,ALPHA:Gp,ALPHA_DIGIT:Gp+Gp.toUpperCase()+Pv},jL=(n=16,e=tA.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;n--;)t+=e[Math.random()*s|0];return t};function QL(n){return!!(n&&as(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const XL=n=>{const e=new Array(10),t=(s,r)=>{if(qu(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Fa(s)?[]:{};return rc(s,(o,a)=>{const c=t(o,r+1);!zl(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return t(n,0)},ZL=$s("AsyncFunction"),JL=n=>n&&(qu(n)||as(n))&&as(n.then)&&as(n.catch),nA=((n,e)=>n?setImmediate:e?((t,s)=>(Wi.addEventListener("message",({source:r,data:i})=>{r===Wi&&i===t&&s.length&&s.shift()()},!1),r=>{s.push(r),Wi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",as(Wi.postMessage)),eP=typeof queueMicrotask<"u"?queueMicrotask.bind(Wi):typeof process<"u"&&process.nextTick||nA,Te={isArray:Fa,isArrayBuffer:QR,isBuffer:gL,isFormData:wL,isArrayBufferView:bL,isString:yL,isNumber:XR,isBoolean:vL,isObject:qu,isPlainObject:xd,isReadableStream:AL,isRequest:ML,isResponse:NL,isHeaders:OL,isUndefined:zl,isDate:EL,isFile:SL,isBlob:TL,isRegExp:qL,isFunction:as,isStream:CL,isURLSearchParams:RL,isTypedArray:BL,isFileList:xL,forEach:rc,merge:Gg,extend:kL,trim:IL,stripBOM:DL,inherits:LL,toFlatObject:PL,kindOf:zu,kindOfTest:$s,endsWith:FL,toArray:UL,forEachEntry:GL,matchAll:VL,isHTMLForm:zL,hasOwnProperty:Lv,hasOwnProp:Lv,reduceDescriptors:eA,freezeMethods:YL,toObjectSet:$L,toCamelCase:HL,noop:WL,toFiniteNumber:KL,findKey:ZR,global:Wi,isContextDefined:JR,ALPHABET:tA,generateString:jL,isSpecCompliantForm:QL,toJSONObject:XL,isAsyncFn:ZL,isThenable:JL,setImmediate:nA,asap:eP};function yt(n,e,t,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}Te.inherits(yt,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:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const sA=yt.prototype,rA={};["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(n=>{rA[n]={value:n}});Object.defineProperties(yt,rA);Object.defineProperty(sA,"isAxiosError",{value:!0});yt.from=(n,e,t,s,r,i)=>{const o=Object.create(sA);return Te.toFlatObject(n,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),yt.call(o,n.message,e,t,s,r),o.cause=n,o.name=n.name,i&&Object.assign(o,i),o};const tP=null;function Vg(n){return Te.isPlainObject(n)||Te.isArray(n)}function iA(n){return Te.endsWith(n,"[]")?n.slice(0,-2):n}function Fv(n,e,t){return n?n.concat(e).map(function(r,i){return r=iA(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function nP(n){return Te.isArray(n)&&!n.some(Vg)}const sP=Te.toFlatObject(Te,{},null,function(e){return/^is[A-Z]/.test(e)});function Yu(n,e,t){if(!Te.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Te.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,y){return!Te.isUndefined(y[f])});const s=t.metaTokens,r=t.visitor||u,i=t.dots,o=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(e);if(!Te.isFunction(r))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Te.isDate(g))return g.toISOString();if(!c&&Te.isBlob(g))throw new yt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(g)||Te.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,y){let b=g;if(g&&!y&&typeof g=="object"){if(Te.endsWith(f,"{}"))f=s?f:f.slice(0,-2),g=JSON.stringify(g);else if(Te.isArray(g)&&nP(g)||(Te.isFileList(g)||Te.endsWith(f,"[]"))&&(b=Te.toArray(g)))return f=iA(f),b.forEach(function(E,S){!(Te.isUndefined(E)||E===null)&&e.append(o===!0?Fv([f],S,i):o===null?f:f+"[]",d(E))}),!1}return Vg(g)?!0:(e.append(Fv(y,f,i),d(g)),!1)}const _=[],m=Object.assign(sP,{defaultVisitor:u,convertValue:d,isVisitable:Vg});function h(g,f){if(!Te.isUndefined(g)){if(_.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));_.push(g),Te.forEach(g,function(b,v){(!(Te.isUndefined(b)||b===null)&&r.call(e,b,Te.isString(v)?v.trim():v,f,m))===!0&&h(b,f?f.concat(v):[v])}),_.pop()}}if(!Te.isObject(n))throw new TypeError("data must be an object");return h(n),e}function Uv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function s0(n,e){this._pairs=[],n&&Yu(n,this,e)}const oA=s0.prototype;oA.append=function(e,t){this._pairs.push([e,t])};oA.toString=function(e){const t=e?function(s){return e.call(this,s,Uv)}:Uv;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function rP(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function aA(n,e,t){if(!e)return n;const s=t&&t.encode||rP,r=t&&t.serialize;let i;if(r?i=r(e,t):i=Te.isURLSearchParams(e)?e.toString():new s0(e,t).toString(s),i){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Bv{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Te.forEach(this.handlers,function(s){s!==null&&e(s)})}}const lA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iP=typeof URLSearchParams<"u"?URLSearchParams:s0,oP=typeof FormData<"u"?FormData:null,aP=typeof Blob<"u"?Blob:null,lP={isBrowser:!0,classes:{URLSearchParams:iP,FormData:oP,Blob:aP},protocols:["http","https","file","blob","url","data"]},r0=typeof window<"u"&&typeof document<"u",zg=typeof navigator=="object"&&navigator||void 0,cP=r0&&(!zg||["ReactNative","NativeScript","NS"].indexOf(zg.product)<0),dP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uP=r0&&window.location.href||"http://localhost",pP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:r0,hasStandardBrowserEnv:cP,hasStandardBrowserWebWorkerEnv:dP,navigator:zg,origin:uP},Symbol.toStringTag,{value:"Module"})),Kn={...pP,...lP};function fP(n,e){return Yu(n,new Kn.classes.URLSearchParams,Object.assign({visitor:function(t,s,r,i){return Kn.isNode&&Te.isBuffer(t)?(this.append(s,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function _P(n){return Te.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mP(n){const e={},t=Object.keys(n);let s;const r=t.length;let i;for(s=0;s=t.length;return o=!o&&Te.isArray(r)?r.length:o,c?(Te.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!Te.isObject(r[o]))&&(r[o]=[]),e(t,s,r[o],i)&&Te.isArray(r[o])&&(r[o]=mP(r[o])),!a)}if(Te.isFormData(n)&&Te.isFunction(n.entries)){const t={};return Te.forEachEntry(n,(s,r)=>{e(_P(s),r,t,0)}),t}return null}function hP(n,e,t){if(Te.isString(n))try{return(e||JSON.parse)(n),Te.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(n)}const ic={transitional:lA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",r=s.indexOf("application/json")>-1,i=Te.isObject(e);if(i&&Te.isHTMLForm(e)&&(e=new FormData(e)),Te.isFormData(e))return r?JSON.stringify(cA(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return fP(e,this.formSerializer).toString();if((a=Te.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Yu(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),hP(e)):e}],transformResponse:[function(e){const t=this.transitional||ic.transitional,s=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(s&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],n=>{ic.headers[n]={}});const gP=Te.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"]),bP=n=>{const e={};let t,s,r;return n&&n.split(` `).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!t||e[t]&&gP[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},Gv=Symbol("internals");function el(n){return n&&String(n).trim().toLowerCase()}function Cd(n){return n===!1||n==null?n:Te.isArray(n)?n.map(Cd):String(n)}function yP(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(n);)e[s[1]]=s[2];return e}const vP=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Vp(n,e,t,s,r){if(Te.isFunction(s))return s.call(this,e,t);if(r&&(e=t),!!Te.isString(e)){if(Te.isString(s))return e.indexOf(s)!==-1;if(Te.isRegExp(s))return s.test(e)}}function EP(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function SP(n,e){const t=Te.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{value:function(r,i,o){return this[s].call(this,e,r,i,o)},configurable:!0})})}class jn{constructor(e){e&&this.set(e)}set(e,t,s){const r=this;function i(a,c,d){const u=el(c);if(!u)throw new Error("header name must be a non-empty string");const _=Te.findKey(r,u);(!_||r[_]===void 0||d===!0||d===void 0&&r[_]!==!1)&&(r[_||c]=Cd(a))}const o=(a,c)=>Te.forEach(a,(d,u)=>i(d,u,c));if(Te.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Te.isString(e)&&(e=e.trim())&&!vP(e))o(bP(e),t);else if(Te.isHeaders(e))for(const[a,c]of e.entries())i(c,a,s);else e!=null&&i(t,e,s);return this}get(e,t){if(e=el(e),e){const s=Te.findKey(this,e);if(s){const r=this[s];if(!t)return r;if(t===!0)return yP(r);if(Te.isFunction(t))return t.call(this,r,s);if(Te.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=el(e),e){const s=Te.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||Vp(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let r=!1;function i(o){if(o=el(o),o){const a=Te.findKey(s,o);a&&(!t||Vp(s,s[a],a,t))&&(delete s[a],r=!0)}}return Te.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let s=t.length,r=!1;for(;s--;){const i=t[s];(!e||Vp(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,s={};return Te.forEach(this,(r,i)=>{const o=Te.findKey(s,i);if(o){t[o]=Cd(r),delete t[i];return}const a=e?EP(i):String(i).trim();a!==i&&delete t[i],t[a]=Cd(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Te.forEach(this,(s,r)=>{s!=null&&s!==!1&&(t[r]=e&&Te.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[Gv]=this[Gv]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=el(o);s[a]||(SP(r,o),s[a]=!0)}return Te.isArray(e)?e.forEach(i):i(e),this}}jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors(jn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}});Te.freezeMethods(jn);function zp(n,e){const t=this||ic,s=e||t,r=jn.from(s.headers);let i=s.data;return Te.forEach(n,function(a){i=a.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function dA(n){return!!(n&&n.__CANCEL__)}function Ua(n,e,t){yt.call(this,n??"canceled",yt.ERR_CANCELED,e,t),this.name="CanceledError"}Te.inherits(Ua,yt,{__CANCEL__:!0});function uA(n,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?n(t):e(new yt("Request failed with status code "+t.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function TP(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function xP(n,e){n=n||10;const t=new Array(n),s=new Array(n);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=s[i];o||(o=d),t[r]=c,s[r]=d;let _=i,m=0;for(;_!==r;)m+=t[_++],_=_%n;if(r=(r+1)%n,r===i&&(i=(i+1)%n),d-o{t=u,r=null,i&&(clearTimeout(i),i=null),n.apply(null,d)};return[(...d)=>{const u=Date.now(),_=u-t;_>=s?o(d,u):(r=d,i||(i=setTimeout(()=>{i=null,o(r)},s-_)))},()=>r&&o(r)]}const jd=(n,e,t=3)=>{let s=0;const r=xP(50,250);return CP(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,d=r(c),u=o<=a;s=o;const _={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&u?(a-o)/d:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(_)},t)},Vv=(n,e)=>{const t=n!=null;return[s=>e[0]({lengthComputable:t,total:n,loaded:s}),e[1]]},zv=n=>(...e)=>Te.asap(()=>n(...e)),wP=Kn.hasStandardBrowserEnv?function(){const e=Kn.navigator&&/(msie|trident)/i.test(Kn.navigator.userAgent),t=document.createElement("a");let s;function r(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return s=r(window.location.href),function(o){const a=Te.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}(),RP=Kn.hasStandardBrowserEnv?{write(n,e,t,s,r,i){const o=[n+"="+encodeURIComponent(e)];Te.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Te.isString(s)&&o.push("path="+s),Te.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AP(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function MP(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function pA(n,e){return n&&!AP(e)?MP(n,e):e}const Hv=n=>n instanceof jn?{...n}:n;function lo(n,e){e=e||{};const t={};function s(d,u,_){return Te.isPlainObject(d)&&Te.isPlainObject(u)?Te.merge.call({caseless:_},d,u):Te.isPlainObject(u)?Te.merge({},u):Te.isArray(u)?u.slice():u}function r(d,u,_){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return s(void 0,d,_)}else return s(d,u,_)}function i(d,u){if(!Te.isUndefined(u))return s(void 0,u)}function o(d,u){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return s(void 0,d)}else return s(void 0,u)}function a(d,u,_){if(_ in e)return s(d,u);if(_ in n)return s(void 0,d)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,u)=>r(Hv(d),Hv(u),!0)};return Te.forEach(Object.keys(Object.assign({},n,e)),function(u){const _=c[u]||r,m=_(n[u],e[u],u);Te.isUndefined(m)&&_!==a||(t[u]=m)}),t}const fA=n=>{const e=lo({},n);let{data:t,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=jn.from(o),e.url=aA(pA(e.baseURL,e.url),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(Te.isFormData(t)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[d,...u]=c?c.split(";").map(_=>_.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Kn.hasStandardBrowserEnv&&(s&&Te.isFunction(s)&&(s=s(e)),s||s!==!1&&wP(e.url))){const d=r&&i&&RP.read(i);d&&o.set(r,d)}return e},NP=typeof XMLHttpRequest<"u",OP=NP&&function(n){return new Promise(function(t,s){const r=fA(n);let i=r.data;const o=jn.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=r,u,_,m,h,g;function f(){h&&h(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function b(){if(!y)return;const E=jn.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:E,config:n,request:y};uA(function(A){t(A),f()},function(A){s(A),f()},R),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(s(new yt("Request aborted",yt.ECONNABORTED,n,y)),y=null)},y.onerror=function(){s(new yt("Network Error",yt.ERR_NETWORK,n,y)),y=null},y.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||lA;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),s(new yt(S,R.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,n,y)),y=null},i===void 0&&o.setContentType(null),"setRequestHeader"in y&&Te.forEach(o.toJSON(),function(S,R){y.setRequestHeader(R,S)}),Te.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),a&&a!=="json"&&(y.responseType=r.responseType),d&&([m,g]=jd(d,!0),y.addEventListener("progress",m)),c&&y.upload&&([_,h]=jd(c),y.upload.addEventListener("progress",_),y.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=E=>{y&&(s(!E||E.type?new Ua(null,n,y):E),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const v=TP(r.url);if(v&&Kn.protocols.indexOf(v)===-1){s(new yt("Unsupported protocol "+v+":",yt.ERR_BAD_REQUEST,n));return}y.send(i||null)})},IP=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let s=new AbortController,r;const i=function(d){if(!r){r=!0,a();const u=d instanceof Error?d:this.reason;s.abort(u instanceof yt?u:new Ua(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,i(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))},e);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),n=null)};n.forEach(d=>d.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>Te.asap(a),c}},kP=function*(n,e){let t=n.byteLength;if(t{const r=DP(n,e);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await r.next();if(d){a(),c.close();return}let _=u.byteLength;if(t){let m=i+=_;t(m)}c.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},$u=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_A=$u&&typeof ReadableStream=="function",PP=$u&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),mA=(n,...e)=>{try{return!!n(...e)}catch{return!1}},FP=_A&&mA(()=>{let n=!1;const e=new Request(Kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Yv=64*1024,Hg=_A&&mA(()=>Te.isReadableStream(new Response("").body)),Qd={stream:Hg&&(n=>n.body)};$u&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qd[e]&&(Qd[e]=Te.isFunction(n[e])?t=>t[e]():(t,s)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,s)})})})(new Response);const UP=async n=>{if(n==null)return 0;if(Te.isBlob(n))return n.size;if(Te.isSpecCompliantForm(n))return(await new Request(Kn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(n)||Te.isArrayBuffer(n))return n.byteLength;if(Te.isURLSearchParams(n)&&(n=n+""),Te.isString(n))return(await PP(n)).byteLength},BP=async(n,e)=>{const t=Te.toFiniteNumber(n.getContentLength());return t??UP(e)},GP=$u&&(async n=>{let{url:e,method:t,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:u,withCredentials:_="same-origin",fetchOptions:m}=fA(n);d=d?(d+"").toLowerCase():"text";let h=IP([r,i&&i.toAbortSignal()],o),g;const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&FP&&t!=="get"&&t!=="head"&&(y=await BP(u,s))!==0){let R=new Request(e,{method:"POST",body:s,duplex:"half"}),w;if(Te.isFormData(s)&&(w=R.headers.get("content-type"))&&u.setContentType(w),R.body){const[A,I]=Vv(y,jd(zv(c)));s=qv(R.body,Yv,A,I)}}Te.isString(_)||(_=_?"include":"omit");const b="credentials"in Request.prototype;g=new Request(e,{...m,signal:h,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:b?_:void 0});let v=await fetch(g);const E=Hg&&(d==="stream"||d==="response");if(Hg&&(a||E&&f)){const R={};["status","statusText","headers"].forEach(C=>{R[C]=v[C]});const w=Te.toFiniteNumber(v.headers.get("content-length")),[A,I]=a&&Vv(w,jd(zv(a),!0))||[];v=new Response(qv(v.body,Yv,A,()=>{I&&I(),f&&f()}),R)}d=d||"text";let S=await Qd[Te.findKey(Qd,d)||"text"](v,n);return!E&&f&&f(),await new Promise((R,w)=>{uA(R,w,{data:S,headers:jn.from(v.headers),status:v.status,statusText:v.statusText,config:n,request:g})})}catch(b){throw f&&f(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,n,g),{cause:b.cause||b}):yt.from(b,b&&b.code,n,g)}}),qg={http:tP,xhr:OP,fetch:GP};Te.forEach(qg,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const $v=n=>`- ${n}`,VP=n=>Te.isFunction(n)||n===null||n===!1,hA={getAdapter:n=>{n=Te.isArray(n)?n:[n];const{length:e}=n;let t,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since : `+i.map($v).join(` @@ -28,7 +28,7 @@ var ZO=Object.defineProperty;var JO=(n,e,t)=>e in n?ZO(n,e,{enumerable:!0,config * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Yo=typeof document<"u";function yA(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function YP(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&yA(n.default)}const Ft=Object.assign;function qp(n,e){const t={};for(const s in e){const r=e[s];t[s]=Hs(r)?r.map(n):n(r)}return t}const Tl=()=>{},Hs=Array.isArray,vA=/#/g,$P=/&/g,WP=/\//g,KP=/=/g,jP=/\?/g,EA=/\+/g,QP=/%5B/g,XP=/%5D/g,SA=/%5E/g,ZP=/%60/g,TA=/%7B/g,JP=/%7C/g,xA=/%7D/g,e3=/%20/g;function a0(n){return encodeURI(""+n).replace(JP,"|").replace(QP,"[").replace(XP,"]")}function t3(n){return a0(n).replace(TA,"{").replace(xA,"}").replace(SA,"^")}function Wg(n){return a0(n).replace(EA,"%2B").replace(e3,"+").replace(vA,"%23").replace($P,"%26").replace(ZP,"`").replace(TA,"{").replace(xA,"}").replace(SA,"^")}function n3(n){return Wg(n).replace(KP,"%3D")}function s3(n){return a0(n).replace(vA,"%23").replace(jP,"%3F")}function r3(n){return n==null?"":s3(n).replace(WP,"%2F")}function Hl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const i3=/\/$/,o3=n=>n.replace(i3,"");function Yp(n,e,t="/"){let s,r={},i="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a=0&&(c=-1),c>-1&&(s=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),r=n(i)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=d3(s??e,t),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:Hl(o)}}function a3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function jv(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function l3(n,e,t){const s=e.matched.length-1,r=t.matched.length-1;return s>-1&&s===r&&ua(e.matched[s],t.matched[r])&&CA(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function CA(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!c3(n[t],e[t]))return!1;return!0}function c3(n,e){return Hs(n)?Qv(n,e):Hs(e)?Qv(e,n):n===e}function Qv(n,e){return Hs(e)?n.length===e.length&&n.every((t,s)=>t===e[s]):n.length===1&&n[0]===e}function d3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),s=n.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=t.length-1,o,a;for(o=0;o1&&i--;else break;return t.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ql;(function(n){n.pop="pop",n.push="push"})(ql||(ql={}));var xl;(function(n){n.back="back",n.forward="forward",n.unknown=""})(xl||(xl={}));function u3(n){if(!n)if(Yo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),o3(n)}const p3=/^[^#]+#/;function f3(n,e){return n.replace(p3,"#")+e}function _3(n,e){const t=document.documentElement.getBoundingClientRect(),s=n.getBoundingClientRect();return{behavior:e.behavior,left:s.left-t.left-(e.left||0),top:s.top-t.top-(e.top||0)}}const Wu=()=>({left:window.scrollX,top:window.scrollY});function m3(n){let e;if("el"in n){const t=n.el,s=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?s?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=_3(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Xv(n,e){return(history.state?history.state.position-e:-1)+n}const Kg=new Map;function h3(n,e){Kg.set(n,e)}function g3(n){const e=Kg.get(n);return Kg.delete(n),e}let b3=()=>location.protocol+"//"+location.host;function wA(n,e){const{pathname:t,search:s,hash:r}=e,i=n.indexOf("#");if(i>-1){let a=r.includes(n.slice(i))?n.slice(i).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),jv(c,"")}return jv(t,n)+s+r}function y3(n,e,t,s){let r=[],i=[],o=null;const a=({state:m})=>{const h=wA(n,location),g=t.value,f=e.value;let y=0;if(m){if(t.value=h,e.value=m,o&&o===g){o=null;return}y=f?m.position-f.position:0}else s(h);r.forEach(b=>{b(t.value,g,{delta:y,type:ql.pop,direction:y?y>0?xl.forward:xl.back:xl.unknown})})};function c(){o=t.value}function d(m){r.push(m);const h=()=>{const g=r.indexOf(m);g>-1&&r.splice(g,1)};return i.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(Ft({},m.state,{scroll:Wu()}),"")}function _(){for(const m of i)m();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:_}}function Zv(n,e,t,s=!1,r=!1){return{back:n,current:e,forward:t,replaced:s,position:window.history.length,scroll:r?Wu():null}}function v3(n){const{history:e,location:t}=window,s={value:wA(n,t)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,d,u){const _=n.indexOf("#"),m=_>-1?(t.host&&document.querySelector("base")?n:n.slice(_))+c:b3()+n+c;try{e[u?"replaceState":"pushState"](d,"",m),r.value=d}catch(h){console.error(h),t[u?"replace":"assign"](m)}}function o(c,d){const u=Ft({},e.state,Zv(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});i(c,u,!0),s.value=c}function a(c,d){const u=Ft({},r.value,e.state,{forward:c,scroll:Wu()});i(u.current,u,!0);const _=Ft({},Zv(s.value,c,null),{position:u.position+1},d);i(c,_,!1),s.value=c}return{location:s,state:r,push:a,replace:o}}function E3(n){n=u3(n);const e=v3(n),t=y3(n,e.state,e.location,e.replace);function s(i,o=!0){o||t.pauseListeners(),history.go(i)}const r=Ft({location:"",base:n,go:s,createHref:f3.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function S3(n){return typeof n=="string"||n&&typeof n=="object"}function RA(n){return typeof n=="string"||typeof n=="symbol"}const AA=Symbol("");var Jv;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Jv||(Jv={}));function pa(n,e){return Ft(new Error,{type:n,[AA]:!0},e)}function gr(n,e){return n instanceof Error&&AA in n&&(e==null||!!(n.type&e))}const eE="[^/]+?",T3={sensitive:!1,strict:!1,start:!0,end:!0},x3=/[.+*?^${}()[\]/\\]/g;function C3(n,e){const t=Ft({},T3,e),s=[];let r=t.start?"^":"";const i=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(r+="/");for(let _=0;_e.length?e.length===1&&e[0]===80?1:-1:0}function MA(n,e){let t=0;const s=n.score,r=e.score;for(;t0&&e[e.length-1]<0}const R3={type:0,value:""},A3=/[a-zA-Z0-9_]/;function M3(n){if(!n)return[[]];if(n==="/")return[[R3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${d}": ${h}`)}let t=0,s=t;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,c,d="",u="";function _(){d&&(t===0?i.push({type:0,value:d}):t===1||t===2||t===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;a{o(E)}:Tl}function o(_){if(RA(_)){const m=s.get(_);m&&(s.delete(_),t.splice(t.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=t.indexOf(_);m>-1&&(t.splice(m,1),_.record.name&&s.delete(_.record.name),_.children.forEach(o),_.alias.forEach(o))}}function a(){return t}function c(_){const m=D3(_,t);t.splice(m,0,_),_.record.name&&!rE(_)&&s.set(_.record.name,_)}function d(_,m){let h,g={},f,y;if("name"in _&&_.name){if(h=s.get(_.name),!h)throw pa(1,{location:_});y=h.record.name,g=Ft(nE(m.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),_.params&&nE(_.params,h.keys.map(E=>E.name))),f=h.stringify(g)}else if(_.path!=null)f=_.path,h=t.find(E=>E.re.test(f)),h&&(g=h.parse(f),y=h.record.name);else{if(h=m.name?s.get(m.name):t.find(E=>E.re.test(m.path)),!h)throw pa(1,{location:_,currentLocation:m});y=h.record.name,g=Ft({},m.params,_.params),f=h.stringify(g)}const b=[];let v=h;for(;v;)b.unshift(v.record),v=v.parent;return{name:y,path:f,params:g,matched:b,meta:k3(b)}}n.forEach(_=>i(_));function u(){t.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function nE(n,e){const t={};for(const s of e)s in n&&(t[s]=n[s]);return t}function sE(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:I3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function I3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const s in n.components)e[s]=typeof t=="object"?t[s]:t;return e}function rE(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function k3(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function iE(n,e){const t={};for(const s in n)t[s]=s in e?e[s]:n[s];return t}function D3(n,e){let t=0,s=e.length;for(;t!==s;){const i=t+s>>1;MA(n,e[i])<0?s=i:t=i+1}const r=L3(n);return r&&(s=e.lastIndexOf(r,s-1)),s}function L3(n){let e=n;for(;e=e.parent;)if(NA(e)&&MA(n,e)===0)return e}function NA({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function P3(n){const e={};if(n===""||n==="?")return e;const s=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;ri&&Wg(i)):[s&&Wg(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+t,i!=null&&(e+="="+i))})}return e}function F3(n){const e={};for(const t in n){const s=n[t];s!==void 0&&(e[t]=Hs(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const U3=Symbol(""),aE=Symbol(""),l0=Symbol(""),c0=Symbol(""),jg=Symbol("");function tl(){let n=[];function e(s){return n.push(s),()=>{const r=n.indexOf(s);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ri(n,e,t,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const d=m=>{m===!1?c(pa(4,{from:t,to:e})):m instanceof Error?c(m):S3(m)?c(pa(2,{from:e,to:m})):(o&&s.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),a())},u=i(()=>n.call(s&&s.instances[r],e,t,d));let _=Promise.resolve(u);n.length<3&&(_=_.then(d)),_.catch(m=>c(m))})}function $p(n,e,t,s,r=i=>i()){const i=[];for(const o of n)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(yA(c)){const u=(c.__vccOpts||c)[e];u&&i.push(ri(u,t,s,o,a,r))}else{let d=c();i.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const _=YP(u)?u.default:u;o.mods[a]=u,o.components[a]=_;const h=(_.__vccOpts||_)[e];return h&&ri(h,t,s,o,a,r)()}))}}return i}function lE(n){const e=os(l0),t=os(c0),s=et(()=>{const c=bt(n.to);return e.resolve(c)}),r=et(()=>{const{matched:c}=s.value,{length:d}=c,u=c[d-1],_=t.matched;if(!u||!_.length)return-1;const m=_.findIndex(ua.bind(null,u));if(m>-1)return m;const h=cE(c[d-2]);return d>1&&cE(u)===h&&_[_.length-1].path!==h?_.findIndex(ua.bind(null,c[d-2])):m}),i=et(()=>r.value>-1&&V3(t.params,s.value.params)),o=et(()=>r.value>-1&&r.value===t.matched.length-1&&CA(t.params,s.value.params));function a(c={}){return G3(c)?e[bt(n.replace)?"replace":"push"](bt(n.to)).catch(Tl):Promise.resolve()}return{route:s,href:et(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const B3=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lE,setup(n,{slots:e}){const t=Hn(lE(n)),{options:s}=os(l0),r=et(()=>({[dE(n.activeClass,s.linkActiveClass,"router-link-active")]:t.isActive,[dE(n.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const i=e.default&&e.default(t);return n.custom?i:Zb("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},i)}}}),Xd=B3;function G3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function V3(n,e){for(const t in e){const s=e[t],r=n[t];if(typeof s=="string"){if(s!==r)return!1}else if(!Hs(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function cE(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const dE=(n,e,t)=>n??e??t,z3=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const s=os(jg),r=et(()=>n.route||s.value),i=os(aE,0),o=et(()=>{let d=bt(i);const{matched:u}=r.value;let _;for(;(_=u[d])&&!_.components;)d++;return d}),a=et(()=>r.value.matched[o.value]);na(aE,et(()=>o.value+1)),na(U3,a),na(jg,r);const c=ot();return Tn(()=>[c.value,a.value,n.name],([d,u,_],[m,h,g])=>{u&&(u.instances[_]=d,h&&h!==u&&d&&d===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!ua(u,h)||!m)&&(u.enterCallbacks[_]||[]).forEach(f=>f(d))},{flush:"post"}),()=>{const d=r.value,u=n.name,_=a.value,m=_&&_.components[u];if(!m)return uE(t.default,{Component:m,route:d});const h=_.props[u],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=Zb(m,Ft({},g,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(_.instances[u]=null)},ref:c}));return uE(t.default,{Component:y,route:d})||y}}});function uE(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const OA=z3;function H3(n){const e=O3(n.routes,n),t=n.parseQuery||P3,s=n.stringifyQuery||oE,r=n.history,i=tl(),o=tl(),a=tl(),c=BI(Wr);let d=Wr;Yo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=qp.bind(null,Q=>""+Q),_=qp.bind(null,r3),m=qp.bind(null,Hl);function h(Q,fe){let _e,Ae;return RA(Q)?(_e=e.getRecordMatcher(Q),Ae=fe):Ae=Q,e.addRoute(Ae,_e)}function g(Q){const fe=e.getRecordMatcher(Q);fe&&e.removeRoute(fe)}function f(){return e.getRoutes().map(Q=>Q.record)}function y(Q){return!!e.getRecordMatcher(Q)}function b(Q,fe){if(fe=Ft({},fe||c.value),typeof Q=="string"){const P=Yp(t,Q,fe.path),Z=e.resolve({path:P.path},fe),de=r.createHref(P.fullPath);return Ft(P,Z,{params:m(Z.params),hash:Hl(P.hash),redirectedFrom:void 0,href:de})}let _e;if(Q.path!=null)_e=Ft({},Q,{path:Yp(t,Q.path,fe.path).path});else{const P=Ft({},Q.params);for(const Z in P)P[Z]==null&&delete P[Z];_e=Ft({},Q,{params:_(P)}),fe.params=_(fe.params)}const Ae=e.resolve(_e,fe),Be=Q.hash||"";Ae.params=u(m(Ae.params));const te=a3(s,Ft({},Q,{hash:t3(Be),path:Ae.path})),U=r.createHref(te);return Ft({fullPath:te,hash:Be,query:s===oE?F3(Q.query):Q.query||{}},Ae,{redirectedFrom:void 0,href:U})}function v(Q){return typeof Q=="string"?Yp(t,Q,c.value.path):Ft({},Q)}function E(Q,fe){if(d!==Q)return pa(8,{from:fe,to:Q})}function S(Q){return A(Q)}function R(Q){return S(Ft(v(Q),{replace:!0}))}function w(Q){const fe=Q.matched[Q.matched.length-1];if(fe&&fe.redirect){const{redirect:_e}=fe;let Ae=typeof _e=="function"?_e(Q):_e;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=v(Ae):{path:Ae},Ae.params={}),Ft({query:Q.query,hash:Q.hash,params:Ae.path!=null?{}:Q.params},Ae)}}function A(Q,fe){const _e=d=b(Q),Ae=c.value,Be=Q.state,te=Q.force,U=Q.replace===!0,P=w(_e);if(P)return A(Ft(v(P),{state:typeof P=="object"?Ft({},Be,P.state):Be,force:te,replace:U}),fe||_e);const Z=_e;Z.redirectedFrom=fe;let de;return!te&&l3(s,Ae,_e)&&(de=pa(16,{to:Z,from:Ae}),ye(Ae,Ae,!0,!1)),(de?Promise.resolve(de):M(Z,Ae)).catch(pe=>gr(pe)?gr(pe,2)?pe:oe(pe):W(pe,Z,Ae)).then(pe=>{if(pe){if(gr(pe,2))return A(Ft({replace:U},v(pe.to),{state:typeof pe.to=="object"?Ft({},Be,pe.to.state):Be,force:te}),fe||Z)}else pe=V(Z,Ae,!0,U,Be);return G(Z,Ae,pe),pe})}function I(Q,fe){const _e=E(Q,fe);return _e?Promise.reject(_e):Promise.resolve()}function C(Q){const fe=Ee.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Q):Q()}function M(Q,fe){let _e;const[Ae,Be,te]=q3(Q,fe);_e=$p(Ae.reverse(),"beforeRouteLeave",Q,fe);for(const P of Ae)P.leaveGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});const U=I.bind(null,Q,fe);return _e.push(U),De(_e).then(()=>{_e=[];for(const P of i.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).then(()=>{_e=$p(Be,"beforeRouteUpdate",Q,fe);for(const P of Be)P.updateGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});return _e.push(U),De(_e)}).then(()=>{_e=[];for(const P of te)if(P.beforeEnter)if(Hs(P.beforeEnter))for(const Z of P.beforeEnter)_e.push(ri(Z,Q,fe));else _e.push(ri(P.beforeEnter,Q,fe));return _e.push(U),De(_e)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),_e=$p(te,"beforeRouteEnter",Q,fe,C),_e.push(U),De(_e))).then(()=>{_e=[];for(const P of o.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).catch(P=>gr(P,8)?P:Promise.reject(P))}function G(Q,fe,_e){a.list().forEach(Ae=>C(()=>Ae(Q,fe,_e)))}function V(Q,fe,_e,Ae,Be){const te=E(Q,fe);if(te)return te;const U=fe===Wr,P=Yo?history.state:{};_e&&(Ae||U?r.replace(Q.fullPath,Ft({scroll:U&&P&&P.scroll},Be)):r.push(Q.fullPath,Be)),c.value=Q,ye(Q,fe,_e,U),oe()}let ee;function O(){ee||(ee=r.listen((Q,fe,_e)=>{if(!Oe.listening)return;const Ae=b(Q),Be=w(Ae);if(Be){A(Ft(Be,{replace:!0}),Ae).catch(Tl);return}d=Ae;const te=c.value;Yo&&h3(Xv(te.fullPath,_e.delta),Wu()),M(Ae,te).catch(U=>gr(U,12)?U:gr(U,2)?(A(U.to,Ae).then(P=>{gr(P,20)&&!_e.delta&&_e.type===ql.pop&&r.go(-1,!1)}).catch(Tl),Promise.reject()):(_e.delta&&r.go(-_e.delta,!1),W(U,Ae,te))).then(U=>{U=U||V(Ae,te,!1),U&&(_e.delta&&!gr(U,8)?r.go(-_e.delta,!1):_e.type===ql.pop&&gr(U,20)&&r.go(-1,!1)),G(Ae,te,U)}).catch(Tl)}))}let H=tl(),q=tl(),L;function W(Q,fe,_e){oe(Q);const Ae=q.list();return Ae.length?Ae.forEach(Be=>Be(Q,fe,_e)):console.error(Q),Promise.reject(Q)}function se(){return L&&c.value!==Wr?Promise.resolve():new Promise((Q,fe)=>{H.add([Q,fe])})}function oe(Q){return L||(L=!Q,O(),H.list().forEach(([fe,_e])=>Q?_e(Q):fe()),H.reset()),Q}function ye(Q,fe,_e,Ae){const{scrollBehavior:Be}=n;if(!Yo||!Be)return Promise.resolve();const te=!_e&&g3(Xv(Q.fullPath,0))||(Ae||!_e)&&history.state&&history.state.scroll||null;return Ue().then(()=>Be(Q,fe,te)).then(U=>U&&m3(U)).catch(U=>W(U,Q,fe))}const xe=Q=>r.go(Q);let ce;const Ee=new Set,Oe={currentRoute:c,listening:!0,addRoute:h,removeRoute:g,clearRoutes:e.clearRoutes,hasRoute:y,getRoutes:f,resolve:b,options:n,push:S,replace:R,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:q.add,isReady:se,install(Q){const fe=this;Q.component("RouterLink",Xd),Q.component("RouterView",OA),Q.config.globalProperties.$router=fe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(c)}),Yo&&!ce&&c.value===Wr&&(ce=!0,S(r.location).catch(Be=>{}));const _e={};for(const Be in Wr)Object.defineProperty(_e,Be,{get:()=>c.value[Be],enumerable:!0});Q.provide(l0,fe),Q.provide(c0,P2(_e)),Q.provide(jg,c);const Ae=Q.unmount;Ee.add(Q),Q.unmount=function(){Ee.delete(Q),Ee.size<1&&(d=Wr,ee&&ee(),ee=null,c.value=Wr,ce=!1,L=!1),Ae()}}};function De(Q){return Q.reduce((fe,_e)=>fe.then(()=>C(_e)),Promise.resolve())}return Oe}function q3(n,e){const t=[],s=[],r=[],i=Math.max(e.matched.length,n.matched.length);for(let o=0;oua(d,a))?s.push(a):t.push(a));const c=n.matched[o];c&&(e.matched.find(d=>ua(d,c))||r.push(c))}return[t,s,r]}function Y3(n){return os(c0)}const $3="modulepreload",W3=function(n){return"/"+n},pE={},Wp=function(e,t,s){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(c=>{if(c=W3(c),c in pE)return;pE[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":$3,d||(_.as="script"),_.crossOrigin="",_.href=c,a&&_.setAttribute("nonce",a),document.head.appendChild(_),d)return new Promise((m,h)=>{_.addEventListener("load",m),_.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},K3={class:"sticky top-0 z-50 w-full bg-transparent"},j3={class:"container mx-auto px-4"},Q3={class:"flex items-center justify-between h-16"},X3={class:"hidden md:block"},Z3={class:"flex items-center space-x-4"},J3={class:"flex items-center space-x-1"},e4={key:0,class:"ml-1 text-xs","aria-hidden":"true"},t4={class:"md:hidden"},n4={class:"px-2 pt-2 pb-3 space-y-1"},s4={class:"flex items-center justify-between"},r4={key:0,class:"text-xs","aria-hidden":"true"},i4={name:"Navigation"},o4=Object.assign(i4,{setup(n){const e=Y3(),t=ot(0),s=ot([]),r=ot(!1),i=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ps.state.config.enable_sd_service||Ps.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ps.state.config.enable_comfyui_service||Ps.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ps.state.config.active_tts_service!=="None"&&Ps.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=et(()=>Ps.state.ready?i.filter(u=>u.condition?u.condition():u.active):i.filter(u=>u.active));dr(()=>{a()}),Tn(()=>e.name,a);function a(){const u=o.value.findIndex(_=>_.route===e.name);u!==-1&&(t.value=u)}function c(u){return e.name===u}function d(u){t.value=u}return(u,_)=>(T(),x("div",K3,[l("nav",j3,[l("div",Q3,[l("div",X3,[l("div",Z3,[(T(!0),x(Fe,null,We(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:g=>d(h),ref_for:!0,ref_key:"menuItems",ref:s},{default:Ie(()=>[l("div",J3,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",e4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),l("div",t4,[l("button",{onClick:_[0]||(_[0]=m=>r.value=!r.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),x("svg",{class:Le(["h-6 w-6",{hidden:r.value,block:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[1]||(_[1]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),x("svg",{class:Le(["h-6 w-6",{block:r.value,hidden:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[2]||(_[2]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),l("div",{class:Le([{block:r.value,hidden:!r.value},"md:hidden"])},[l("div",n4,[(T(!0),x(Fe,null,We(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:g=>{d(h),r.value=!1}},{default:Ie(()=>[l("div",s4,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",r4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),st=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t},a4={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},l4=["href","title"],c4=["data-feather"];function d4(n,e,t,s,r,i){return T(),x("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>i.onClick&&i.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[l("i",{"data-feather":t.icon},null,8,c4)],8,l4)}const IA=st(a4,[["render",d4]]),u4={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},p4=["href","title"],f4=["data-feather"],_4={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m4={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function h4(n,e,t,s,r,i){return T(),x("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),x("i",{key:0,"data-feather":t.icon},null,8,f4)):t.icon==="x"?(T(),x("svg",_4,e[0]||(e[0]=[l("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),x("svg",m4,e[1]||(e[1]=[l("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):B("",!0)],8,p4)}const kA=st(u4,[["render",h4]]);var DA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function g4(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return n[s]}})}),t}var LA={exports:{}};(function(n,e){(function(s,r){n.exports=r()})(typeof self<"u"?self:DA,function(){return function(t){var s={};function r(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=s,r.d=function(i,o,a){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},r.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,s,r){var i,o;/*! + */const Yo=typeof document<"u";function yA(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function YP(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&yA(n.default)}const Ft=Object.assign;function qp(n,e){const t={};for(const s in e){const r=e[s];t[s]=Hs(r)?r.map(n):n(r)}return t}const Tl=()=>{},Hs=Array.isArray,vA=/#/g,$P=/&/g,WP=/\//g,KP=/=/g,jP=/\?/g,EA=/\+/g,QP=/%5B/g,XP=/%5D/g,SA=/%5E/g,ZP=/%60/g,TA=/%7B/g,JP=/%7C/g,xA=/%7D/g,e3=/%20/g;function a0(n){return encodeURI(""+n).replace(JP,"|").replace(QP,"[").replace(XP,"]")}function t3(n){return a0(n).replace(TA,"{").replace(xA,"}").replace(SA,"^")}function Wg(n){return a0(n).replace(EA,"%2B").replace(e3,"+").replace(vA,"%23").replace($P,"%26").replace(ZP,"`").replace(TA,"{").replace(xA,"}").replace(SA,"^")}function n3(n){return Wg(n).replace(KP,"%3D")}function s3(n){return a0(n).replace(vA,"%23").replace(jP,"%3F")}function r3(n){return n==null?"":s3(n).replace(WP,"%2F")}function Hl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const i3=/\/$/,o3=n=>n.replace(i3,"");function Yp(n,e,t="/"){let s,r={},i="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a=0&&(c=-1),c>-1&&(s=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),r=n(i)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=d3(s??e,t),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:Hl(o)}}function a3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function jv(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function l3(n,e,t){const s=e.matched.length-1,r=t.matched.length-1;return s>-1&&s===r&&ua(e.matched[s],t.matched[r])&&CA(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function CA(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!c3(n[t],e[t]))return!1;return!0}function c3(n,e){return Hs(n)?Qv(n,e):Hs(e)?Qv(e,n):n===e}function Qv(n,e){return Hs(e)?n.length===e.length&&n.every((t,s)=>t===e[s]):n.length===1&&n[0]===e}function d3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),s=n.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=t.length-1,o,a;for(o=0;o1&&i--;else break;return t.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ql;(function(n){n.pop="pop",n.push="push"})(ql||(ql={}));var xl;(function(n){n.back="back",n.forward="forward",n.unknown=""})(xl||(xl={}));function u3(n){if(!n)if(Yo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),o3(n)}const p3=/^[^#]+#/;function f3(n,e){return n.replace(p3,"#")+e}function _3(n,e){const t=document.documentElement.getBoundingClientRect(),s=n.getBoundingClientRect();return{behavior:e.behavior,left:s.left-t.left-(e.left||0),top:s.top-t.top-(e.top||0)}}const Wu=()=>({left:window.scrollX,top:window.scrollY});function m3(n){let e;if("el"in n){const t=n.el,s=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?s?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=_3(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Xv(n,e){return(history.state?history.state.position-e:-1)+n}const Kg=new Map;function h3(n,e){Kg.set(n,e)}function g3(n){const e=Kg.get(n);return Kg.delete(n),e}let b3=()=>location.protocol+"//"+location.host;function wA(n,e){const{pathname:t,search:s,hash:r}=e,i=n.indexOf("#");if(i>-1){let a=r.includes(n.slice(i))?n.slice(i).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),jv(c,"")}return jv(t,n)+s+r}function y3(n,e,t,s){let r=[],i=[],o=null;const a=({state:m})=>{const h=wA(n,location),g=t.value,f=e.value;let y=0;if(m){if(t.value=h,e.value=m,o&&o===g){o=null;return}y=f?m.position-f.position:0}else s(h);r.forEach(b=>{b(t.value,g,{delta:y,type:ql.pop,direction:y?y>0?xl.forward:xl.back:xl.unknown})})};function c(){o=t.value}function d(m){r.push(m);const h=()=>{const g=r.indexOf(m);g>-1&&r.splice(g,1)};return i.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(Ft({},m.state,{scroll:Wu()}),"")}function _(){for(const m of i)m();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:_}}function Zv(n,e,t,s=!1,r=!1){return{back:n,current:e,forward:t,replaced:s,position:window.history.length,scroll:r?Wu():null}}function v3(n){const{history:e,location:t}=window,s={value:wA(n,t)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,d,u){const _=n.indexOf("#"),m=_>-1?(t.host&&document.querySelector("base")?n:n.slice(_))+c:b3()+n+c;try{e[u?"replaceState":"pushState"](d,"",m),r.value=d}catch(h){console.error(h),t[u?"replace":"assign"](m)}}function o(c,d){const u=Ft({},e.state,Zv(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});i(c,u,!0),s.value=c}function a(c,d){const u=Ft({},r.value,e.state,{forward:c,scroll:Wu()});i(u.current,u,!0);const _=Ft({},Zv(s.value,c,null),{position:u.position+1},d);i(c,_,!1),s.value=c}return{location:s,state:r,push:a,replace:o}}function E3(n){n=u3(n);const e=v3(n),t=y3(n,e.state,e.location,e.replace);function s(i,o=!0){o||t.pauseListeners(),history.go(i)}const r=Ft({location:"",base:n,go:s,createHref:f3.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function S3(n){return typeof n=="string"||n&&typeof n=="object"}function RA(n){return typeof n=="string"||typeof n=="symbol"}const AA=Symbol("");var Jv;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Jv||(Jv={}));function pa(n,e){return Ft(new Error,{type:n,[AA]:!0},e)}function gr(n,e){return n instanceof Error&&AA in n&&(e==null||!!(n.type&e))}const eE="[^/]+?",T3={sensitive:!1,strict:!1,start:!0,end:!0},x3=/[.+*?^${}()[\]/\\]/g;function C3(n,e){const t=Ft({},T3,e),s=[];let r=t.start?"^":"";const i=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(r+="/");for(let _=0;_e.length?e.length===1&&e[0]===80?1:-1:0}function MA(n,e){let t=0;const s=n.score,r=e.score;for(;t0&&e[e.length-1]<0}const R3={type:0,value:""},A3=/[a-zA-Z0-9_]/;function M3(n){if(!n)return[[]];if(n==="/")return[[R3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${d}": ${h}`)}let t=0,s=t;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,c,d="",u="";function _(){d&&(t===0?i.push({type:0,value:d}):t===1||t===2||t===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;a{o(E)}:Tl}function o(_){if(RA(_)){const m=s.get(_);m&&(s.delete(_),t.splice(t.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=t.indexOf(_);m>-1&&(t.splice(m,1),_.record.name&&s.delete(_.record.name),_.children.forEach(o),_.alias.forEach(o))}}function a(){return t}function c(_){const m=D3(_,t);t.splice(m,0,_),_.record.name&&!rE(_)&&s.set(_.record.name,_)}function d(_,m){let h,g={},f,y;if("name"in _&&_.name){if(h=s.get(_.name),!h)throw pa(1,{location:_});y=h.record.name,g=Ft(nE(m.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),_.params&&nE(_.params,h.keys.map(E=>E.name))),f=h.stringify(g)}else if(_.path!=null)f=_.path,h=t.find(E=>E.re.test(f)),h&&(g=h.parse(f),y=h.record.name);else{if(h=m.name?s.get(m.name):t.find(E=>E.re.test(m.path)),!h)throw pa(1,{location:_,currentLocation:m});y=h.record.name,g=Ft({},m.params,_.params),f=h.stringify(g)}const b=[];let v=h;for(;v;)b.unshift(v.record),v=v.parent;return{name:y,path:f,params:g,matched:b,meta:k3(b)}}n.forEach(_=>i(_));function u(){t.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function nE(n,e){const t={};for(const s of e)s in n&&(t[s]=n[s]);return t}function sE(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:I3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function I3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const s in n.components)e[s]=typeof t=="object"?t[s]:t;return e}function rE(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function k3(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function iE(n,e){const t={};for(const s in n)t[s]=s in e?e[s]:n[s];return t}function D3(n,e){let t=0,s=e.length;for(;t!==s;){const i=t+s>>1;MA(n,e[i])<0?s=i:t=i+1}const r=L3(n);return r&&(s=e.lastIndexOf(r,s-1)),s}function L3(n){let e=n;for(;e=e.parent;)if(NA(e)&&MA(n,e)===0)return e}function NA({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function P3(n){const e={};if(n===""||n==="?")return e;const s=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;ri&&Wg(i)):[s&&Wg(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+t,i!=null&&(e+="="+i))})}return e}function F3(n){const e={};for(const t in n){const s=n[t];s!==void 0&&(e[t]=Hs(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const U3=Symbol(""),aE=Symbol(""),l0=Symbol(""),c0=Symbol(""),jg=Symbol("");function tl(){let n=[];function e(s){return n.push(s),()=>{const r=n.indexOf(s);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ri(n,e,t,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const d=m=>{m===!1?c(pa(4,{from:t,to:e})):m instanceof Error?c(m):S3(m)?c(pa(2,{from:e,to:m})):(o&&s.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),a())},u=i(()=>n.call(s&&s.instances[r],e,t,d));let _=Promise.resolve(u);n.length<3&&(_=_.then(d)),_.catch(m=>c(m))})}function $p(n,e,t,s,r=i=>i()){const i=[];for(const o of n)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(yA(c)){const u=(c.__vccOpts||c)[e];u&&i.push(ri(u,t,s,o,a,r))}else{let d=c();i.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const _=YP(u)?u.default:u;o.mods[a]=u,o.components[a]=_;const h=(_.__vccOpts||_)[e];return h&&ri(h,t,s,o,a,r)()}))}}return i}function lE(n){const e=os(l0),t=os(c0),s=et(()=>{const c=bt(n.to);return e.resolve(c)}),r=et(()=>{const{matched:c}=s.value,{length:d}=c,u=c[d-1],_=t.matched;if(!u||!_.length)return-1;const m=_.findIndex(ua.bind(null,u));if(m>-1)return m;const h=cE(c[d-2]);return d>1&&cE(u)===h&&_[_.length-1].path!==h?_.findIndex(ua.bind(null,c[d-2])):m}),i=et(()=>r.value>-1&&V3(t.params,s.value.params)),o=et(()=>r.value>-1&&r.value===t.matched.length-1&&CA(t.params,s.value.params));function a(c={}){return G3(c)?e[bt(n.replace)?"replace":"push"](bt(n.to)).catch(Tl):Promise.resolve()}return{route:s,href:et(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const B3=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lE,setup(n,{slots:e}){const t=Hn(lE(n)),{options:s}=os(l0),r=et(()=>({[dE(n.activeClass,s.linkActiveClass,"router-link-active")]:t.isActive,[dE(n.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const i=e.default&&e.default(t);return n.custom?i:Zb("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},i)}}}),Xd=B3;function G3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function V3(n,e){for(const t in e){const s=e[t],r=n[t];if(typeof s=="string"){if(s!==r)return!1}else if(!Hs(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function cE(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const dE=(n,e,t)=>n??e??t,z3=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const s=os(jg),r=et(()=>n.route||s.value),i=os(aE,0),o=et(()=>{let d=bt(i);const{matched:u}=r.value;let _;for(;(_=u[d])&&!_.components;)d++;return d}),a=et(()=>r.value.matched[o.value]);na(aE,et(()=>o.value+1)),na(U3,a),na(jg,r);const c=it();return Tn(()=>[c.value,a.value,n.name],([d,u,_],[m,h,g])=>{u&&(u.instances[_]=d,h&&h!==u&&d&&d===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!ua(u,h)||!m)&&(u.enterCallbacks[_]||[]).forEach(f=>f(d))},{flush:"post"}),()=>{const d=r.value,u=n.name,_=a.value,m=_&&_.components[u];if(!m)return uE(t.default,{Component:m,route:d});const h=_.props[u],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=Zb(m,Ft({},g,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(_.instances[u]=null)},ref:c}));return uE(t.default,{Component:y,route:d})||y}}});function uE(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const OA=z3;function H3(n){const e=O3(n.routes,n),t=n.parseQuery||P3,s=n.stringifyQuery||oE,r=n.history,i=tl(),o=tl(),a=tl(),c=BI(Wr);let d=Wr;Yo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=qp.bind(null,Q=>""+Q),_=qp.bind(null,r3),m=qp.bind(null,Hl);function h(Q,fe){let _e,Ae;return RA(Q)?(_e=e.getRecordMatcher(Q),Ae=fe):Ae=Q,e.addRoute(Ae,_e)}function g(Q){const fe=e.getRecordMatcher(Q);fe&&e.removeRoute(fe)}function f(){return e.getRoutes().map(Q=>Q.record)}function y(Q){return!!e.getRecordMatcher(Q)}function b(Q,fe){if(fe=Ft({},fe||c.value),typeof Q=="string"){const P=Yp(t,Q,fe.path),Z=e.resolve({path:P.path},fe),de=r.createHref(P.fullPath);return Ft(P,Z,{params:m(Z.params),hash:Hl(P.hash),redirectedFrom:void 0,href:de})}let _e;if(Q.path!=null)_e=Ft({},Q,{path:Yp(t,Q.path,fe.path).path});else{const P=Ft({},Q.params);for(const Z in P)P[Z]==null&&delete P[Z];_e=Ft({},Q,{params:_(P)}),fe.params=_(fe.params)}const Ae=e.resolve(_e,fe),Be=Q.hash||"";Ae.params=u(m(Ae.params));const te=a3(s,Ft({},Q,{hash:t3(Be),path:Ae.path})),U=r.createHref(te);return Ft({fullPath:te,hash:Be,query:s===oE?F3(Q.query):Q.query||{}},Ae,{redirectedFrom:void 0,href:U})}function v(Q){return typeof Q=="string"?Yp(t,Q,c.value.path):Ft({},Q)}function E(Q,fe){if(d!==Q)return pa(8,{from:fe,to:Q})}function S(Q){return A(Q)}function R(Q){return S(Ft(v(Q),{replace:!0}))}function w(Q){const fe=Q.matched[Q.matched.length-1];if(fe&&fe.redirect){const{redirect:_e}=fe;let Ae=typeof _e=="function"?_e(Q):_e;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=v(Ae):{path:Ae},Ae.params={}),Ft({query:Q.query,hash:Q.hash,params:Ae.path!=null?{}:Q.params},Ae)}}function A(Q,fe){const _e=d=b(Q),Ae=c.value,Be=Q.state,te=Q.force,U=Q.replace===!0,P=w(_e);if(P)return A(Ft(v(P),{state:typeof P=="object"?Ft({},Be,P.state):Be,force:te,replace:U}),fe||_e);const Z=_e;Z.redirectedFrom=fe;let de;return!te&&l3(s,Ae,_e)&&(de=pa(16,{to:Z,from:Ae}),ye(Ae,Ae,!0,!1)),(de?Promise.resolve(de):M(Z,Ae)).catch(pe=>gr(pe)?gr(pe,2)?pe:oe(pe):W(pe,Z,Ae)).then(pe=>{if(pe){if(gr(pe,2))return A(Ft({replace:U},v(pe.to),{state:typeof pe.to=="object"?Ft({},Be,pe.to.state):Be,force:te}),fe||Z)}else pe=V(Z,Ae,!0,U,Be);return G(Z,Ae,pe),pe})}function I(Q,fe){const _e=E(Q,fe);return _e?Promise.reject(_e):Promise.resolve()}function C(Q){const fe=Ee.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Q):Q()}function M(Q,fe){let _e;const[Ae,Be,te]=q3(Q,fe);_e=$p(Ae.reverse(),"beforeRouteLeave",Q,fe);for(const P of Ae)P.leaveGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});const U=I.bind(null,Q,fe);return _e.push(U),De(_e).then(()=>{_e=[];for(const P of i.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).then(()=>{_e=$p(Be,"beforeRouteUpdate",Q,fe);for(const P of Be)P.updateGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});return _e.push(U),De(_e)}).then(()=>{_e=[];for(const P of te)if(P.beforeEnter)if(Hs(P.beforeEnter))for(const Z of P.beforeEnter)_e.push(ri(Z,Q,fe));else _e.push(ri(P.beforeEnter,Q,fe));return _e.push(U),De(_e)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),_e=$p(te,"beforeRouteEnter",Q,fe,C),_e.push(U),De(_e))).then(()=>{_e=[];for(const P of o.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).catch(P=>gr(P,8)?P:Promise.reject(P))}function G(Q,fe,_e){a.list().forEach(Ae=>C(()=>Ae(Q,fe,_e)))}function V(Q,fe,_e,Ae,Be){const te=E(Q,fe);if(te)return te;const U=fe===Wr,P=Yo?history.state:{};_e&&(Ae||U?r.replace(Q.fullPath,Ft({scroll:U&&P&&P.scroll},Be)):r.push(Q.fullPath,Be)),c.value=Q,ye(Q,fe,_e,U),oe()}let ee;function O(){ee||(ee=r.listen((Q,fe,_e)=>{if(!Oe.listening)return;const Ae=b(Q),Be=w(Ae);if(Be){A(Ft(Be,{replace:!0}),Ae).catch(Tl);return}d=Ae;const te=c.value;Yo&&h3(Xv(te.fullPath,_e.delta),Wu()),M(Ae,te).catch(U=>gr(U,12)?U:gr(U,2)?(A(U.to,Ae).then(P=>{gr(P,20)&&!_e.delta&&_e.type===ql.pop&&r.go(-1,!1)}).catch(Tl),Promise.reject()):(_e.delta&&r.go(-_e.delta,!1),W(U,Ae,te))).then(U=>{U=U||V(Ae,te,!1),U&&(_e.delta&&!gr(U,8)?r.go(-_e.delta,!1):_e.type===ql.pop&&gr(U,20)&&r.go(-1,!1)),G(Ae,te,U)}).catch(Tl)}))}let H=tl(),q=tl(),L;function W(Q,fe,_e){oe(Q);const Ae=q.list();return Ae.length?Ae.forEach(Be=>Be(Q,fe,_e)):console.error(Q),Promise.reject(Q)}function se(){return L&&c.value!==Wr?Promise.resolve():new Promise((Q,fe)=>{H.add([Q,fe])})}function oe(Q){return L||(L=!Q,O(),H.list().forEach(([fe,_e])=>Q?_e(Q):fe()),H.reset()),Q}function ye(Q,fe,_e,Ae){const{scrollBehavior:Be}=n;if(!Yo||!Be)return Promise.resolve();const te=!_e&&g3(Xv(Q.fullPath,0))||(Ae||!_e)&&history.state&&history.state.scroll||null;return Ue().then(()=>Be(Q,fe,te)).then(U=>U&&m3(U)).catch(U=>W(U,Q,fe))}const xe=Q=>r.go(Q);let ce;const Ee=new Set,Oe={currentRoute:c,listening:!0,addRoute:h,removeRoute:g,clearRoutes:e.clearRoutes,hasRoute:y,getRoutes:f,resolve:b,options:n,push:S,replace:R,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:q.add,isReady:se,install(Q){const fe=this;Q.component("RouterLink",Xd),Q.component("RouterView",OA),Q.config.globalProperties.$router=fe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(c)}),Yo&&!ce&&c.value===Wr&&(ce=!0,S(r.location).catch(Be=>{}));const _e={};for(const Be in Wr)Object.defineProperty(_e,Be,{get:()=>c.value[Be],enumerable:!0});Q.provide(l0,fe),Q.provide(c0,P2(_e)),Q.provide(jg,c);const Ae=Q.unmount;Ee.add(Q),Q.unmount=function(){Ee.delete(Q),Ee.size<1&&(d=Wr,ee&&ee(),ee=null,c.value=Wr,ce=!1,L=!1),Ae()}}};function De(Q){return Q.reduce((fe,_e)=>fe.then(()=>C(_e)),Promise.resolve())}return Oe}function q3(n,e){const t=[],s=[],r=[],i=Math.max(e.matched.length,n.matched.length);for(let o=0;oua(d,a))?s.push(a):t.push(a));const c=n.matched[o];c&&(e.matched.find(d=>ua(d,c))||r.push(c))}return[t,s,r]}function Y3(n){return os(c0)}const $3="modulepreload",W3=function(n){return"/"+n},pE={},Wp=function(e,t,s){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(c=>{if(c=W3(c),c in pE)return;pE[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":$3,d||(_.as="script"),_.crossOrigin="",_.href=c,a&&_.setAttribute("nonce",a),document.head.appendChild(_),d)return new Promise((m,h)=>{_.addEventListener("load",m),_.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},K3={class:"sticky top-0 z-50 w-full bg-transparent"},j3={class:"container mx-auto px-4"},Q3={class:"flex items-center justify-between h-16"},X3={class:"hidden md:block"},Z3={class:"flex items-center space-x-4"},J3={class:"flex items-center space-x-1"},e4={key:0,class:"ml-1 text-xs","aria-hidden":"true"},t4={class:"md:hidden"},n4={class:"px-2 pt-2 pb-3 space-y-1"},s4={class:"flex items-center justify-between"},r4={key:0,class:"text-xs","aria-hidden":"true"},i4={name:"Navigation"},o4=Object.assign(i4,{setup(n){const e=Y3(),t=it(0),s=it([]),r=it(!1),i=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ps.state.config.enable_sd_service||Ps.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ps.state.config.enable_comfyui_service||Ps.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ps.state.config.active_tts_service!=="None"&&Ps.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=et(()=>Ps.state.ready?i.filter(u=>u.condition?u.condition():u.active):i.filter(u=>u.active));qs(()=>{a()}),Tn(()=>e.name,a);function a(){const u=o.value.findIndex(_=>_.route===e.name);u!==-1&&(t.value=u)}function c(u){return e.name===u}function d(u){t.value=u}return(u,_)=>(T(),x("div",K3,[l("nav",j3,[l("div",Q3,[l("div",X3,[l("div",Z3,[(T(!0),x(Fe,null,We(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:g=>d(h),ref_for:!0,ref_key:"menuItems",ref:s},{default:Ie(()=>[l("div",J3,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",e4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),l("div",t4,[l("button",{onClick:_[0]||(_[0]=m=>r.value=!r.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),x("svg",{class:Le(["h-6 w-6",{hidden:r.value,block:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[1]||(_[1]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),x("svg",{class:Le(["h-6 w-6",{block:r.value,hidden:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[2]||(_[2]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),l("div",{class:Le([{block:r.value,hidden:!r.value},"md:hidden"])},[l("div",n4,[(T(!0),x(Fe,null,We(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:g=>{d(h),r.value=!1}},{default:Ie(()=>[l("div",s4,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",r4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),st=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t},a4={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},l4=["href","title"],c4=["data-feather"];function d4(n,e,t,s,r,i){return T(),x("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>i.onClick&&i.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[l("i",{"data-feather":t.icon},null,8,c4)],8,l4)}const IA=st(a4,[["render",d4]]),u4={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},p4=["href","title"],f4=["data-feather"],_4={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m4={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function h4(n,e,t,s,r,i){return T(),x("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),x("i",{key:0,"data-feather":t.icon},null,8,f4)):t.icon==="x"?(T(),x("svg",_4,e[0]||(e[0]=[l("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),x("svg",m4,e[1]||(e[1]=[l("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):B("",!0)],8,p4)}const kA=st(u4,[["render",h4]]);var DA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function g4(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return n[s]}})}),t}var LA={exports:{}};(function(n,e){(function(s,r){n.exports=r()})(typeof self<"u"?self:DA,function(){return function(t){var s={};function r(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=s,r.d=function(i,o,a){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},r.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,s,r){var i,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -46,9 +46,9 @@ var ZO=Object.defineProperty;var JO=(n,e,t)=>e in n?ZO(n,e,{enumerable:!0,config `};ur.text=function(n,e){return co(n[e].content)};ur.html_block=function(n,e){return n[e].content};ur.html_inline=function(n,e){return n[e].content};function Ga(){this.rules=rge({},ur)}Ga.prototype.renderAttrs=function(e){var t,s,r;if(!e.attrs)return"";for(r="",t=0,s=e.attrs.length;t `:">",i)};Ga.prototype.renderInline=function(n,e,t){for(var s,r="",i=this.rules,o=0,a=n.length;o\s]/i.test(n)}function _ge(n){return/^<\/a\s*>/i.test(n)}var mge=function(e){var t,s,r,i,o,a,c,d,u,_,m,h,g,f,y,b,v=e.tokens,E;if(e.md.options.linkify){for(s=0,r=v.length;s=0;t--){if(a=i[t],a.type==="link_close"){for(t--;i[t].level!==a.level&&i[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(fge(a.content)&&g>0&&g--,_ge(a.content)&&g++),!(g>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,E=e.md.linkify.match(u),c=[],h=a.level,m=0,E.length>0&&E[0].index===0&&t>0&&i[t-1].type==="text_special"&&(E=E.slice(1)),d=0;dm&&(o=new e.Token("text","",0),o.content=u.slice(m,_),o.level=h,c.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",y]],o.level=h++,o.markup="linkify",o.info="auto",c.push(o),o=new e.Token("text","",0),o.content=b,o.level=h,c.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",c.push(o),m=E[d].lastIndex);m=0;e--)t=n[e],t.type==="text"&&!s&&(t.content=t.content.replace(gge,yge)),t.type==="link_open"&&t.info==="auto"&&s--,t.type==="link_close"&&t.info==="auto"&&s++}function Ege(n){var e,t,s=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!s&&GA.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&s--,t.type==="link_close"&&t.info==="auto"&&s++}var Sge=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(hge.test(e.tokens[t].content)&&vge(e.tokens[t].children),GA.test(e.tokens[t].content)&&Ege(e.tokens[t].children))},wE=Dt.isWhiteSpace,RE=Dt.isPunctChar,AE=Dt.isMdAsciiPunct,Tge=/['"]/,ME=/['"]/g,NE="’";function Nc(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function xge(n,e){var t,s,r,i,o,a,c,d,u,_,m,h,g,f,y,b,v,E,S,R,w;for(S=[],t=0;t=0&&!(S[v].level<=c);v--);if(S.length=v+1,s.type==="text"){r=s.content,o=0,a=r.length;e:for(;o=0)u=r.charCodeAt(i.index-1);else for(v=t-1;v>=0&&!(n[v].type==="softbreak"||n[v].type==="hardbreak");v--)if(n[v].content){u=n[v].content.charCodeAt(n[v].content.length-1);break}if(_=32,o=48&&u<=57&&(b=y=!1),y&&b&&(y=m,b=h),!y&&!b){E&&(s.content=Nc(s.content,i.index,NE));continue}if(b){for(v=S.length-1;v>=0&&(d=S[v],!(S[v].level=0;t--)e.tokens[t].type!=="inline"||!Tge.test(e.tokens[t].content)||xge(e.tokens[t].children,e)},wge=function(e){var t,s,r,i,o,a,c=e.tokens;for(t=0,s=c.length;t=0&&(s=this.attrs[t][1]),s};Va.prototype.attrJoin=function(e,t){var s=this.attrIndex(e);s<0?this.attrPush([e,t]):this.attrs[s][1]=this.attrs[s][1]+" "+t};var p0=Va,Rge=p0;function VA(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}VA.prototype.Token=Rge;var Age=VA,Mge=u0,Zp=[["normalize",cge],["block",dge],["inline",uge],["linkify",mge],["replacements",Sge],["smartquotes",Cge],["text_join",wge]];function f0(){this.ruler=new Mge;for(var n=0;ns||(u=t+1,e.sCount[u]=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[u]||(w=e.src.charCodeAt(a++),w!==124&&w!==45&&w!==58&&!Jp(w))||R===45&&Jp(w))return!1;for(;a=4||(_=OE(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),m=_.length,m===0||m!==g.length))return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=y=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],c=0;c<_.length;c++)h=e.push("th_open","th",1),g[c]&&(h.attrs=[["style","text-align:"+g[c]]]),h=e.push("inline","",0),h.content=_[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=t+2;u=4)break;for(_=OE(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),u===t+2&&(h=e.push("tbody_open","tbody",1),h.map=b=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],c=0;c=4){r++,i=r;continue}break}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0},kge=function(e,t,s,r){var i,o,a,c,d,u,_,m=!1,h=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>g||(i=e.src.charCodeAt(h),i!==126&&i!==96)||(d=h,h=e.skipChars(h,i),o=h-d,o<3)||(_=e.src.slice(d,h),a=e.src.slice(h,g),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(c=t;c++,!(c>=s||(h=d=e.bMarks[c]+e.tShift[c],g=e.eMarks[c],h=4)&&(h=e.skipChars(h,i),!(h-d=4||e.src.charCodeAt(M)!==62)return!1;if(r)return!0;for(g=[],f=[],v=[],E=[],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",m=t;m=G));m++){if(e.src.charCodeAt(M++)===62&&!I){for(c=e.sCount[m]+1,e.src.charCodeAt(M)===32?(M++,c++,i=!1,S=!0):e.src.charCodeAt(M)===9?(S=!0,(e.bsCount[m]+c)%4===3?(M++,c++,i=!1):i=!0):S=!1,h=c,g.push(e.bMarks[m]),e.bMarks[m]=M;M=G,f.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),v.push(e.sCount[m]),e.sCount[m]=h-c,E.push(e.tShift[m]),e.tShift[m]=M-e.bMarks[m];continue}if(u)break;for(R=!1,a=0,d=w.length;a",A.map=_=[t,0],e.md.block.tokenize(e,t,m),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=C,e.parentType=b,_[1]=e.line,a=0;a=4||(i=e.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(o=1;d=i||(t=n.src.charCodeAt(r++),t<48||t>57))return-1;for(;;){if(r>=i)return-1;if(t=n.src.charCodeAt(r++),t>=48&&t<=57){if(r-s>=10)return-1;continue}if(t===41||t===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]=e.blkIndent&&(L=!0),(M=kE(e,q))>=0){if(_=!0,V=e.bMarks[q]+e.tShift[q],b=Number(e.src.slice(V,M-1)),L&&b!==1)return!1}else if((M=IE(e,q))>=0)_=!1;else return!1;if(L&&e.skipSpaces(M)>=e.eMarks[q])return!1;if(r)return!0;for(y=e.src.charCodeAt(M-1),f=e.tokens.length,_?(H=e.push("ordered_list_open","ol",1),b!==1&&(H.attrs=[["start",b]])):H=e.push("bullet_list_open","ul",1),H.map=g=[q,0],H.markup=String.fromCharCode(y),G=!1,O=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q=v?d=1:d=E-u,d>4&&(d=1),c=u+d,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(y),H.map=m=[q,0],_&&(H.info=e.src.slice(V,M-1)),I=e.tight,A=e.tShift[q],w=e.sCount[q],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[q]=o-e.bMarks[q],e.sCount[q]=E,o>=v&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,q,s,!0),(!e.tight||G)&&(W=!1),G=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=w,e.tight=I,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(y),q=e.line,m[1]=q,q>=s||e.sCount[q]=4)break;for(ee=!1,a=0,h=O.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[I]<0)){for(v=!1,u=0,_=E.length;u<_;u++)if(E[u](e,I,c,!0)){v=!0;break}if(v)break}for(b=e.getLines(t,I,e.blkIndent,!1).trim(),A=b.length,w=1;w"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:S,href:d}),e.parentType=g,e.line=t+R+1),!0)},zge=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xu={},Hge="[a-zA-Z_:][a-zA-Z0-9:._-]*",qge="[^\"'=<>`\\x00-\\x20]+",Yge="'[^']*'",$ge='"[^"]*"',Wge="(?:"+qge+"|"+Yge+"|"+$ge+")",Kge="(?:\\s+"+Hge+"(?:\\s*=\\s*"+Wge+")?)",HA="<[A-Za-z][A-Za-z0-9\\-]*"+Kge+"*\\s*\\/?>",qA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",jge="|",Qge="<[?][\\s\\S]*?[?]>",Xge="]*>",Zge="",Jge=new RegExp("^(?:"+HA+"|"+qA+"|"+jge+"|"+Qge+"|"+Xge+"|"+Zge+")"),ebe=new RegExp("^(?:"+HA+"|"+qA+")");Xu.HTML_TAG_RE=Jge;Xu.HTML_OPEN_CLOSE_TAG_RE=ebe;var tbe=zge,nbe=Xu.HTML_OPEN_CLOSE_TAG_RE,Co=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(nbe.source+"\\s*$"),/^$/,!1]],sbe=function(e,t,s,r){var i,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),i=0;i=4||(i=e.src.charCodeAt(d),i!==35||d>=u))return!1;for(o=1,i=e.src.charCodeAt(++d);i===35&&d6||dd&&DE(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[t,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[t,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},ibe=function(e,t,s){var r,i,o,a,c,d,u,_,m,h=t+1,g,f=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(g=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(d=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],d=u)))){_=m===61?1:2;break}if(!(e.sCount[h]<0)){for(i=!1,o=0,a=f.length;o3)&&!(e.sCount[u]<0)){for(i=!1,o=0,a=_.length;o0&&this.level++,this.tokens.push(s),s};pr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};pr.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Zu(this.src.charCodeAt(--e)))return e+1;return e};pr.prototype.skipChars=function(e,t){for(var s=this.src.length;es;)if(t!==this.src.charCodeAt(--e))return e+1;return e};pr.prototype.getLines=function(e,t,s,r){var i,o,a,c,d,u,_,m=e;if(e>=t)return"";for(u=new Array(t-e),i=0;ms?u[i]=new Array(o-s+1).join(" ")+this.src.slice(c,d):u[i]=this.src.slice(c,d)}return u.join("")};pr.prototype.Token=YA;var abe=pr,lbe=u0,Ic=[["table",Oge,["paragraph","reference"]],["code",Ige],["fence",kge,["paragraph","reference","blockquote","list"]],["blockquote",Lge,["paragraph","reference","blockquote","list"]],["hr",Fge,["paragraph","reference","blockquote","list"]],["list",Bge,["paragraph","reference","blockquote"]],["reference",Vge],["html_block",sbe,["paragraph","reference","blockquote"]],["heading",rbe,["paragraph","reference","blockquote"]],["lheading",ibe],["paragraph",obe]];function Ju(){this.ruler=new lbe;for(var n=0;n=t||n.sCount[c]=u){n.line=t;break}for(i=n.line,r=0;r=n.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),c=n.line,c0||(s=e.pos,r=e.posMax,s+3>r)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(i=e.pending.match(pbe),!i)||(o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(s-o.length)),!a)||(c=a.url,c.length<=o.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-o.length,!0)},_be=Dt.isSpace,mbe=function(e,t){var s,r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,r=e.posMax,!t)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(i=s-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){_0[n.charCodeAt(0)]=1});var gbe=function(e,t){var s,r,i,o,a,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(s=e.src.charCodeAt(c),s===10){for(t||e.push("hardbreak","br",0),c++;c=55296&&s<=56319&&c+1=56320&&r<=57343&&(o+=e.src[c+1],c++)),i="\\"+o,t||(a=e.push("text_special","",0),s<256&&_0[s]!==0?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0},bbe=function(e,t){var s,r,i,o,a,c,d,u,_=e.pos,m=e.src.charCodeAt(_);if(m!==96)return!1;for(s=_,_++,r=e.posMax;_=0;t--)s=e[t],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(r=e[s.end],a=t>0&&e[t-1].end===s.end+1&&e[t-1].marker===s.marker&&e[t-1].token===s.token-1&&e[s.end+1].token===r.token+1,o=String.fromCharCode(s.marker),i=n.tokens[s.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=n.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[s.end+1].token].content="",t--))}tp.postProcess=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for(FE(e,e.delimiters),t=0;t=f)return!1;if(y=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?c=d.pos:m="",y=c;c=f||e.src.charCodeAt(c)!==41)&&(b=!0),c++}if(b){if(typeof e.env.references>"u")return!1;if(c=0?i=e.src.slice(y,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),u=e.env.references[ybe(i)],!u)return e.pos=g,!1;m=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,_=e.push("link_open","a",1),_.attrs=s=[["href",m]],h&&s.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,_=e.push("link_close","a",-1)),e.pos=c,e.posMax=f,!0},Ebe=Dt.normalizeReference,nf=Dt.isSpace,Sbe=function(e,t){var s,r,i,o,a,c,d,u,_,m,h,g,f,y="",b=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=v)return!1;for(f=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok&&(y=e.md.normalizeLink(_.str),e.md.validateLink(y)?d=_.pos:y=""),f=d;d=v||e.src.charCodeAt(d)!==41)return e.pos=b,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(f,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[Ebe(o)],!u)return e.pos=b,!1;y=u.href,m=u.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,g=[]),h=e.push("image","img",0),h.attrs=s=[["src",y],["alt",""]],h.children=g,h.content=i,m&&s.push(["title",m])),e.pos=d,e.posMax=v,!0},Tbe=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,xbe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Cbe=function(e,t){var s,r,i,o,a,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,c=e.posMax;;){if(++d>=c||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return s=e.src.slice(a+1,d),xbe.test(s)?(r=e.md.normalizeLink(s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):Tbe.test(s)?(r=e.md.normalizeLink("mailto:"+s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):!1},wbe=Xu.HTML_TAG_RE;function Rbe(n){return/^\s]/i.test(n)}function Abe(n){return/^<\/a\s*>/i.test(n)}function Mbe(n){var e=n|32;return e>=97&&e<=122}var Nbe=function(e,t){var s,r,i,o,a=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Mbe(s))||(r=e.src.slice(a).match(wbe),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],Rbe(o.content)&&e.linkLevel++,Abe(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},UE=PA,Obe=Dt.has,Ibe=Dt.isValidEntityCode,BE=Dt.fromCodePoint,kbe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Dbe=/^&([a-z][a-z0-9]{1,31});/i,Lbe=function(e,t){var s,r,i,o,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=c)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(i=e.src.slice(a).match(kbe),i)return t||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0),o.content=Ibe(r)?BE(r):BE(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(Dbe),i&&Obe(UE,i[1]))return t||(o=e.push("text_special","",0),o.content=UE[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0;return!1};function GE(n){var e,t,s,r,i,o,a,c,d={},u=n.length;if(u){var _=0,m=-2,h=[];for(e=0;ei;t-=h[t]+1)if(r=n[t],r.marker===s.marker&&r.open&&r.end<0&&(a=!1,(r.close||s.open)&&(r.length+s.length)%3===0&&(r.length%3!==0||s.length%3!==0)&&(a=!0),!a)){c=t>0&&!n[t-1].open?h[t-1]+1:0,h[e]=e-t+c,h[t]=c,s.open=!1,r.end=e,r.close=!1,o=-1,m=-2;break}o!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var Pbe=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for(GE(e.delimiters),t=0;t0&&r++,i[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(r),s};oc.prototype.scanDelims=function(n,e){var t=n,s,r,i,o,a,c,d,u,_,m=!0,h=!0,g=this.posMax,f=this.src.charCodeAt(n);for(s=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[s]=n.pos};ac.prototype.tokenize=function(n){for(var e,t,s,r=this.ruler.getRules(""),i=r.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};ac.prototype.parse=function(n,e,t,s){var r,i,o,a=new this.State(n,e,t,s);for(this.tokenize(a),i=this.ruler2.getRules(""),o=i.length,r=0;r|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),of}function Qg(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(s){n[s]=t[s]})}),n}function np(n){return Object.prototype.toString.call(n)}function Vbe(n){return np(n)==="[object String]"}function zbe(n){return np(n)==="[object Object]"}function Hbe(n){return np(n)==="[object RegExp]"}function $E(n){return np(n)==="[object Function]"}function qbe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var $A={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ybe(n){return Object.keys(n||{}).reduce(function(e,t){return e||$A.hasOwnProperty(t)},!1)}var $be={"http:":{validate:function(n,e,t){var s=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(s)?s.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var s=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(s)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:s.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var s=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(s)?s.match(t.re.mailto)[0].length:0}}},Wbe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Kbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function jbe(n){n.__index__=-1,n.__text_cache__=""}function Qbe(n){return function(e,t){var s=e.slice(t);return n.test(s)?s.match(n)[0].length:0}}function WE(){return function(n,e){e.normalize(n)}}function Jd(n){var e=n.re=Gbe()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(Wbe),t.push(e.src_xn),e.src_tlds=t.join("|");function s(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var r=[];n.__compiled__={};function i(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(n.__schemas__).forEach(function(a){var c=n.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,zbe(c)){Hbe(c.validate)?d.validate=Qbe(c.validate):$E(c.validate)?d.validate=c.validate:i(a,c),$E(c.normalize)?d.normalize=c.normalize:c.normalize?i(a,c):d.normalize=WE();return}if(Vbe(c)){r.push(a);return}i(a,c)}}),r.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:WE()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(qbe).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),jbe(n)}function Xbe(n,e){var t=n.__index__,s=n.__last_index__,r=n.__text_cache__.slice(t,s);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=s+e,this.raw=r,this.text=r,this.url=r}function Xg(n,e){var t=new Xbe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function ls(n,e){if(!(this instanceof ls))return new ls(n,e);e||Ybe(n)&&(e=n,n={}),this.__opts__=Qg({},$A,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Qg({},$be,n),this.__compiled__={},this.__tlds__=Kbe,this.__tlds_replaced__=!1,this.re={},Jd(this)}ls.prototype.add=function(e,t){return this.__schemas__[e]=t,Jd(this),this};ls.prototype.set=function(e){return this.__opts__=Qg(this.__opts__,e),this};ls.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,s,r,i,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],c.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ls.prototype.pretest=function(e){return this.re.pretest.test(e)};ls.prototype.testSchemaAt=function(e,t,s){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,s,this):0};ls.prototype.match=function(e){var t=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(Xg(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)s.push(Xg(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return s.length?s:null};ls.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var s=this.testSchemaAt(e,t[2],t[0].length);return s?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s,Xg(this,0)):null};ls.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,r,i){return s!==i[r-1]}).reverse(),Jd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jd(this),this)};ls.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ls.prototype.onCompile=function(){};var Zbe=ls;const sa=2147483647,tr=36,h0=1,Yl=26,Jbe=38,e0e=700,WA=72,KA=128,jA="-",t0e=/^xn--/,n0e=/[^\0-\x7F]/,s0e=/[\x2E\u3002\uFF0E\uFF61]/g,r0e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},af=tr-h0,nr=Math.floor,lf=String.fromCharCode;function ii(n){throw new RangeError(r0e[n])}function i0e(n,e){const t=[];let s=n.length;for(;s--;)t[s]=e(n[s]);return t}function QA(n,e){const t=n.split("@");let s="";t.length>1&&(s=t[0]+"@",n=t[1]),n=n.replace(s0e,".");const r=n.split("."),i=i0e(r,e).join(".");return s+i}function g0(n){const e=[];let t=0;const s=n.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...n),o0e=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:tr},KE=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},ZA=function(n,e,t){let s=0;for(n=t?nr(n/e0e):n>>1,n+=nr(n/e);n>af*Yl>>1;s+=tr)n=nr(n/af);return nr(s+(af+1)*n/(n+Jbe))},b0=function(n){const e=[],t=n.length;let s=0,r=KA,i=WA,o=n.lastIndexOf(jA);o<0&&(o=0);for(let a=0;a=128&&ii("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&ii("invalid-input");const m=o0e(n.charCodeAt(a++));m>=tr&&ii("invalid-input"),m>nr((sa-s)/u)&&ii("overflow"),s+=m*u;const h=_<=i?h0:_>=i+Yl?Yl:_-i;if(mnr(sa/g)&&ii("overflow"),u*=g}const d=e.length+1;i=ZA(s-c,d,c==0),nr(s/d)>sa-r&&ii("overflow"),r+=nr(s/d),s%=d,e.splice(s++,0,r)}return String.fromCodePoint(...e)},y0=function(n){const e=[];n=g0(n);const t=n.length;let s=KA,r=0,i=WA;for(const c of n)c<128&&e.push(lf(c));const o=e.length;let a=o;for(o&&e.push(jA);a=s&&unr((sa-r)/d)&&ii("overflow"),r+=(c-s)*d,s=c;for(const u of n)if(usa&&ii("overflow"),u===s){let _=r;for(let m=tr;;m+=tr){const h=m<=i?h0:m>=i+Yl?Yl:m-i;if(_=0))try{e.hostname=tM.toASCII(e.hostname)}catch{}return Ki.encode(Ki.format(e))}function x0e(n){var e=Ki.parse(n,!0);if(e.hostname&&(!e.protocol||nM.indexOf(e.protocol)>=0))try{e.hostname=tM.toUnicode(e.hostname)}catch{}return Ki.decode(Ki.format(e),Ki.decode.defaultChars+"%")}function Rs(n,e){if(!(this instanceof Rs))return new Rs(n,e);e||Cl.isString(n)||(e=n||{},n="default"),this.inline=new g0e,this.block=new h0e,this.core=new m0e,this.renderer=new _0e,this.linkify=new b0e,this.validateLink=S0e,this.normalizeLink=T0e,this.normalizeLinkText=x0e,this.utils=Cl,this.helpers=Cl.assign({},f0e),this.options={},this.configure(n),e&&this.set(e)}Rs.prototype.set=function(n){return Cl.assign(this.options,n),this};Rs.prototype.configure=function(n){var e=this,t;if(Cl.isString(n)&&(t=n,n=y0e[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(s){n.components[s].rules&&e[s].ruler.enableOnly(n.components[s].rules),n.components[s].rules2&&e[s].ruler2.enableOnly(n.components[s].rules2)}),this};Rs.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Rs.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Rs.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Rs.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Rs.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Rs.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Rs.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var C0e=Rs,w0e=C0e;const R0e=wi(w0e),A0e="😀",M0e="😃",N0e="😄",O0e="😁",I0e="😆",k0e="😆",D0e="😅",L0e="🤣",P0e="😂",F0e="🙂",U0e="🙃",B0e="😉",G0e="😊",V0e="😇",z0e="🥰",H0e="😍",q0e="🤩",Y0e="😘",$0e="😗",W0e="☺️",K0e="😚",j0e="😙",Q0e="🥲",X0e="😋",Z0e="😛",J0e="😜",eye="🤪",tye="😝",nye="🤑",sye="🤗",rye="🤭",iye="🤫",oye="🤔",aye="🤐",lye="🤨",cye="😐",dye="😑",uye="😶",pye="😏",fye="😒",_ye="🙄",mye="😬",hye="🤥",gye="😌",bye="😔",yye="😪",vye="🤤",Eye="😴",Sye="😷",Tye="🤒",xye="🤕",Cye="🤢",wye="🤮",Rye="🤧",Aye="🥵",Mye="🥶",Nye="🥴",Oye="😵",Iye="🤯",kye="🤠",Dye="🥳",Lye="🥸",Pye="😎",Fye="🤓",Uye="🧐",Bye="😕",Gye="😟",Vye="🙁",zye="☹️",Hye="😮",qye="😯",Yye="😲",$ye="😳",Wye="🥺",Kye="😦",jye="😧",Qye="😨",Xye="😰",Zye="😥",Jye="😢",eve="😭",tve="😱",nve="😖",sve="😣",rve="😞",ive="😓",ove="😩",ave="😫",lve="🥱",cve="😤",dve="😡",uve="😡",pve="😠",fve="🤬",_ve="😈",mve="👿",hve="💀",gve="☠️",bve="💩",yve="💩",vve="💩",Eve="🤡",Sve="👹",Tve="👺",xve="👻",Cve="👽",wve="👾",Rve="🤖",Ave="😺",Mve="😸",Nve="😹",Ove="😻",Ive="😼",kve="😽",Dve="🙀",Lve="😿",Pve="😾",Fve="🙈",Uve="🙉",Bve="🙊",Gve="💋",Vve="💌",zve="💘",Hve="💝",qve="💖",Yve="💗",$ve="💓",Wve="💞",Kve="💕",jve="💟",Qve="❣️",Xve="💔",Zve="❤️",Jve="🧡",eEe="💛",tEe="💚",nEe="💙",sEe="💜",rEe="🤎",iEe="🖤",oEe="🤍",aEe="💢",lEe="💥",cEe="💥",dEe="💫",uEe="💦",pEe="💨",fEe="🕳️",_Ee="💣",mEe="💬",hEe="👁️‍🗨️",gEe="🗨️",bEe="🗯️",yEe="💭",vEe="💤",EEe="👋",SEe="🤚",TEe="🖐️",xEe="✋",CEe="✋",wEe="🖖",REe="👌",AEe="🤌",MEe="🤏",NEe="✌️",OEe="🤞",IEe="🤟",kEe="🤘",DEe="🤙",LEe="👈",PEe="👉",FEe="👆",UEe="🖕",BEe="🖕",GEe="👇",VEe="☝️",zEe="👍",HEe="👎",qEe="✊",YEe="✊",$Ee="👊",WEe="👊",KEe="👊",jEe="🤛",QEe="🤜",XEe="👏",ZEe="🙌",JEe="👐",eSe="🤲",tSe="🤝",nSe="🙏",sSe="✍️",rSe="💅",iSe="🤳",oSe="💪",aSe="🦾",lSe="🦿",cSe="🦵",dSe="🦶",uSe="👂",pSe="🦻",fSe="👃",_Se="🧠",mSe="🫀",hSe="🫁",gSe="🦷",bSe="🦴",ySe="👀",vSe="👁️",ESe="👅",SSe="👄",TSe="👶",xSe="🧒",CSe="👦",wSe="👧",RSe="🧑",ASe="👱",MSe="👨",NSe="🧔",OSe="👨‍🦰",ISe="👨‍🦱",kSe="👨‍🦳",DSe="👨‍🦲",LSe="👩",PSe="👩‍🦰",FSe="🧑‍🦰",USe="👩‍🦱",BSe="🧑‍🦱",GSe="👩‍🦳",VSe="🧑‍🦳",zSe="👩‍🦲",HSe="🧑‍🦲",qSe="👱‍♀️",YSe="👱‍♀️",$Se="👱‍♂️",WSe="🧓",KSe="👴",jSe="👵",QSe="🙍",XSe="🙍‍♂️",ZSe="🙍‍♀️",JSe="🙎",e1e="🙎‍♂️",t1e="🙎‍♀️",n1e="🙅",s1e="🙅‍♂️",r1e="🙅‍♂️",i1e="🙅‍♀️",o1e="🙅‍♀️",a1e="🙆",l1e="🙆‍♂️",c1e="🙆‍♀️",d1e="💁",u1e="💁",p1e="💁‍♂️",f1e="💁‍♂️",_1e="💁‍♀️",m1e="💁‍♀️",h1e="🙋",g1e="🙋‍♂️",b1e="🙋‍♀️",y1e="🧏",v1e="🧏‍♂️",E1e="🧏‍♀️",S1e="🙇",T1e="🙇‍♂️",x1e="🙇‍♀️",C1e="🤦",w1e="🤦‍♂️",R1e="🤦‍♀️",A1e="🤷",M1e="🤷‍♂️",N1e="🤷‍♀️",O1e="🧑‍⚕️",I1e="👨‍⚕️",k1e="👩‍⚕️",D1e="🧑‍🎓",L1e="👨‍🎓",P1e="👩‍🎓",F1e="🧑‍🏫",U1e="👨‍🏫",B1e="👩‍🏫",G1e="🧑‍⚖️",V1e="👨‍⚖️",z1e="👩‍⚖️",H1e="🧑‍🌾",q1e="👨‍🌾",Y1e="👩‍🌾",$1e="🧑‍🍳",W1e="👨‍🍳",K1e="👩‍🍳",j1e="🧑‍🔧",Q1e="👨‍🔧",X1e="👩‍🔧",Z1e="🧑‍🏭",J1e="👨‍🏭",eTe="👩‍🏭",tTe="🧑‍💼",nTe="👨‍💼",sTe="👩‍💼",rTe="🧑‍🔬",iTe="👨‍🔬",oTe="👩‍🔬",aTe="🧑‍💻",lTe="👨‍💻",cTe="👩‍💻",dTe="🧑‍🎤",uTe="👨‍🎤",pTe="👩‍🎤",fTe="🧑‍🎨",_Te="👨‍🎨",mTe="👩‍🎨",hTe="🧑‍✈️",gTe="👨‍✈️",bTe="👩‍✈️",yTe="🧑‍🚀",vTe="👨‍🚀",ETe="👩‍🚀",STe="🧑‍🚒",TTe="👨‍🚒",xTe="👩‍🚒",CTe="👮",wTe="👮",RTe="👮‍♂️",ATe="👮‍♀️",MTe="🕵️",NTe="🕵️‍♂️",OTe="🕵️‍♀️",ITe="💂",kTe="💂‍♂️",DTe="💂‍♀️",LTe="🥷",PTe="👷",FTe="👷‍♂️",UTe="👷‍♀️",BTe="🤴",GTe="👸",VTe="👳",zTe="👳‍♂️",HTe="👳‍♀️",qTe="👲",YTe="🧕",$Te="🤵",WTe="🤵‍♂️",KTe="🤵‍♀️",jTe="👰",QTe="👰‍♂️",XTe="👰‍♀️",ZTe="👰‍♀️",JTe="🤰",exe="🤱",txe="👩‍🍼",nxe="👨‍🍼",sxe="🧑‍🍼",rxe="👼",ixe="🎅",oxe="🤶",axe="🧑‍🎄",lxe="🦸",cxe="🦸‍♂️",dxe="🦸‍♀️",uxe="🦹",pxe="🦹‍♂️",fxe="🦹‍♀️",_xe="🧙",mxe="🧙‍♂️",hxe="🧙‍♀️",gxe="🧚",bxe="🧚‍♂️",yxe="🧚‍♀️",vxe="🧛",Exe="🧛‍♂️",Sxe="🧛‍♀️",Txe="🧜",xxe="🧜‍♂️",Cxe="🧜‍♀️",wxe="🧝",Rxe="🧝‍♂️",Axe="🧝‍♀️",Mxe="🧞",Nxe="🧞‍♂️",Oxe="🧞‍♀️",Ixe="🧟",kxe="🧟‍♂️",Dxe="🧟‍♀️",Lxe="💆",Pxe="💆‍♂️",Fxe="💆‍♀️",Uxe="💇",Bxe="💇‍♂️",Gxe="💇‍♀️",Vxe="🚶",zxe="🚶‍♂️",Hxe="🚶‍♀️",qxe="🧍",Yxe="🧍‍♂️",$xe="🧍‍♀️",Wxe="🧎",Kxe="🧎‍♂️",jxe="🧎‍♀️",Qxe="🧑‍🦯",Xxe="👨‍🦯",Zxe="👩‍🦯",Jxe="🧑‍🦼",eCe="👨‍🦼",tCe="👩‍🦼",nCe="🧑‍🦽",sCe="👨‍🦽",rCe="👩‍🦽",iCe="🏃",oCe="🏃",aCe="🏃‍♂️",lCe="🏃‍♀️",cCe="💃",dCe="💃",uCe="🕺",pCe="🕴️",fCe="👯",_Ce="👯‍♂️",mCe="👯‍♀️",hCe="🧖",gCe="🧖‍♂️",bCe="🧖‍♀️",yCe="🧗",vCe="🧗‍♂️",ECe="🧗‍♀️",SCe="🤺",TCe="🏇",xCe="⛷️",CCe="🏂",wCe="🏌️",RCe="🏌️‍♂️",ACe="🏌️‍♀️",MCe="🏄",NCe="🏄‍♂️",OCe="🏄‍♀️",ICe="🚣",kCe="🚣‍♂️",DCe="🚣‍♀️",LCe="🏊",PCe="🏊‍♂️",FCe="🏊‍♀️",UCe="⛹️",BCe="⛹️‍♂️",GCe="⛹️‍♂️",VCe="⛹️‍♀️",zCe="⛹️‍♀️",HCe="🏋️",qCe="🏋️‍♂️",YCe="🏋️‍♀️",$Ce="🚴",WCe="🚴‍♂️",KCe="🚴‍♀️",jCe="🚵",QCe="🚵‍♂️",XCe="🚵‍♀️",ZCe="🤸",JCe="🤸‍♂️",ewe="🤸‍♀️",twe="🤼",nwe="🤼‍♂️",swe="🤼‍♀️",rwe="🤽",iwe="🤽‍♂️",owe="🤽‍♀️",awe="🤾",lwe="🤾‍♂️",cwe="🤾‍♀️",dwe="🤹",uwe="🤹‍♂️",pwe="🤹‍♀️",fwe="🧘",_we="🧘‍♂️",mwe="🧘‍♀️",hwe="🛀",gwe="🛌",bwe="🧑‍🤝‍🧑",ywe="👭",vwe="👫",Ewe="👬",Swe="💏",Twe="👩‍❤️‍💋‍👨",xwe="👨‍❤️‍💋‍👨",Cwe="👩‍❤️‍💋‍👩",wwe="💑",Rwe="👩‍❤️‍👨",Awe="👨‍❤️‍👨",Mwe="👩‍❤️‍👩",Nwe="👪",Owe="👨‍👩‍👦",Iwe="👨‍👩‍👧",kwe="👨‍👩‍👧‍👦",Dwe="👨‍👩‍👦‍👦",Lwe="👨‍👩‍👧‍👧",Pwe="👨‍👨‍👦",Fwe="👨‍👨‍👧",Uwe="👨‍👨‍👧‍👦",Bwe="👨‍👨‍👦‍👦",Gwe="👨‍👨‍👧‍👧",Vwe="👩‍👩‍👦",zwe="👩‍👩‍👧",Hwe="👩‍👩‍👧‍👦",qwe="👩‍👩‍👦‍👦",Ywe="👩‍👩‍👧‍👧",$we="👨‍👦",Wwe="👨‍👦‍👦",Kwe="👨‍👧",jwe="👨‍👧‍👦",Qwe="👨‍👧‍👧",Xwe="👩‍👦",Zwe="👩‍👦‍👦",Jwe="👩‍👧",e2e="👩‍👧‍👦",t2e="👩‍👧‍👧",n2e="🗣️",s2e="👤",r2e="👥",i2e="🫂",o2e="👣",a2e="🐵",l2e="🐒",c2e="🦍",d2e="🦧",u2e="🐶",p2e="🐕",f2e="🦮",_2e="🐕‍🦺",m2e="🐩",h2e="🐺",g2e="🦊",b2e="🦝",y2e="🐱",v2e="🐈",E2e="🐈‍⬛",S2e="🦁",T2e="🐯",x2e="🐅",C2e="🐆",w2e="🐴",R2e="🐎",A2e="🦄",M2e="🦓",N2e="🦌",O2e="🦬",I2e="🐮",k2e="🐂",D2e="🐃",L2e="🐄",P2e="🐷",F2e="🐖",U2e="🐗",B2e="🐽",G2e="🐏",V2e="🐑",z2e="🐐",H2e="🐪",q2e="🐫",Y2e="🦙",$2e="🦒",W2e="🐘",K2e="🦣",j2e="🦏",Q2e="🦛",X2e="🐭",Z2e="🐁",J2e="🐀",eRe="🐹",tRe="🐰",nRe="🐇",sRe="🐿️",rRe="🦫",iRe="🦔",oRe="🦇",aRe="🐻",lRe="🐻‍❄️",cRe="🐨",dRe="🐼",uRe="🦥",pRe="🦦",fRe="🦨",_Re="🦘",mRe="🦡",hRe="🐾",gRe="🐾",bRe="🦃",yRe="🐔",vRe="🐓",ERe="🐣",SRe="🐤",TRe="🐥",xRe="🐦",CRe="🐧",wRe="🕊️",RRe="🦅",ARe="🦆",MRe="🦢",NRe="🦉",ORe="🦤",IRe="🪶",kRe="🦩",DRe="🦚",LRe="🦜",PRe="🐸",FRe="🐊",URe="🐢",BRe="🦎",GRe="🐍",VRe="🐲",zRe="🐉",HRe="🦕",qRe="🐳",YRe="🐋",$Re="🐬",WRe="🐬",KRe="🦭",jRe="🐟",QRe="🐠",XRe="🐡",ZRe="🦈",JRe="🐙",eAe="🐚",tAe="🐌",nAe="🦋",sAe="🐛",rAe="🐜",iAe="🐝",oAe="🐝",aAe="🪲",lAe="🐞",cAe="🦗",dAe="🪳",uAe="🕷️",pAe="🕸️",fAe="🦂",_Ae="🦟",mAe="🪰",hAe="🪱",gAe="🦠",bAe="💐",yAe="🌸",vAe="💮",EAe="🏵️",SAe="🌹",TAe="🥀",xAe="🌺",CAe="🌻",wAe="🌼",RAe="🌷",AAe="🌱",MAe="🪴",NAe="🌲",OAe="🌳",IAe="🌴",kAe="🌵",DAe="🌾",LAe="🌿",PAe="☘️",FAe="🍀",UAe="🍁",BAe="🍂",GAe="🍃",VAe="🍇",zAe="🍈",HAe="🍉",qAe="🍊",YAe="🍊",$Ae="🍊",WAe="🍋",KAe="🍌",jAe="🍍",QAe="🥭",XAe="🍎",ZAe="🍏",JAe="🍐",eMe="🍑",tMe="🍒",nMe="🍓",sMe="🫐",rMe="🥝",iMe="🍅",oMe="🫒",aMe="🥥",lMe="🥑",cMe="🍆",dMe="🥔",uMe="🥕",pMe="🌽",fMe="🌶️",_Me="🫑",mMe="🥒",hMe="🥬",gMe="🥦",bMe="🧄",yMe="🧅",vMe="🍄",EMe="🥜",SMe="🌰",TMe="🍞",xMe="🥐",CMe="🥖",wMe="🫓",RMe="🥨",AMe="🥯",MMe="🥞",NMe="🧇",OMe="🧀",IMe="🍖",kMe="🍗",DMe="🥩",LMe="🥓",PMe="🍔",FMe="🍟",UMe="🍕",BMe="🌭",GMe="🥪",VMe="🌮",zMe="🌯",HMe="🫔",qMe="🥙",YMe="🧆",$Me="🥚",WMe="🍳",KMe="🥘",jMe="🍲",QMe="🫕",XMe="🥣",ZMe="🥗",JMe="🍿",eNe="🧈",tNe="🧂",nNe="🥫",sNe="🍱",rNe="🍘",iNe="🍙",oNe="🍚",aNe="🍛",lNe="🍜",cNe="🍝",dNe="🍠",uNe="🍢",pNe="🍣",fNe="🍤",_Ne="🍥",mNe="🥮",hNe="🍡",gNe="🥟",bNe="🥠",yNe="🥡",vNe="🦀",ENe="🦞",SNe="🦐",TNe="🦑",xNe="🦪",CNe="🍦",wNe="🍧",RNe="🍨",ANe="🍩",MNe="🍪",NNe="🎂",ONe="🍰",INe="🧁",kNe="🥧",DNe="🍫",LNe="🍬",PNe="🍭",FNe="🍮",UNe="🍯",BNe="🍼",GNe="🥛",VNe="☕",zNe="🫖",HNe="🍵",qNe="🍶",YNe="🍾",$Ne="🍷",WNe="🍸",KNe="🍹",jNe="🍺",QNe="🍻",XNe="🥂",ZNe="🥃",JNe="🥤",eOe="🧋",tOe="🧃",nOe="🧉",sOe="🧊",rOe="🥢",iOe="🍽️",oOe="🍴",aOe="🥄",lOe="🔪",cOe="🔪",dOe="🏺",uOe="🌍",pOe="🌎",fOe="🌏",_Oe="🌐",mOe="🗺️",hOe="🗾",gOe="🧭",bOe="🏔️",yOe="⛰️",vOe="🌋",EOe="🗻",SOe="🏕️",TOe="🏖️",xOe="🏜️",COe="🏝️",wOe="🏞️",ROe="🏟️",AOe="🏛️",MOe="🏗️",NOe="🧱",OOe="🪨",IOe="🪵",kOe="🛖",DOe="🏘️",LOe="🏚️",POe="🏠",FOe="🏡",UOe="🏢",BOe="🏣",GOe="🏤",VOe="🏥",zOe="🏦",HOe="🏨",qOe="🏩",YOe="🏪",$Oe="🏫",WOe="🏬",KOe="🏭",jOe="🏯",QOe="🏰",XOe="💒",ZOe="🗼",JOe="🗽",eIe="⛪",tIe="🕌",nIe="🛕",sIe="🕍",rIe="⛩️",iIe="🕋",oIe="⛲",aIe="⛺",lIe="🌁",cIe="🌃",dIe="🏙️",uIe="🌄",pIe="🌅",fIe="🌆",_Ie="🌇",mIe="🌉",hIe="♨️",gIe="🎠",bIe="🎡",yIe="🎢",vIe="💈",EIe="🎪",SIe="🚂",TIe="🚃",xIe="🚄",CIe="🚅",wIe="🚆",RIe="🚇",AIe="🚈",MIe="🚉",NIe="🚊",OIe="🚝",IIe="🚞",kIe="🚋",DIe="🚌",LIe="🚍",PIe="🚎",FIe="🚐",UIe="🚑",BIe="🚒",GIe="🚓",VIe="🚔",zIe="🚕",HIe="🚖",qIe="🚗",YIe="🚗",$Ie="🚘",WIe="🚙",KIe="🛻",jIe="🚚",QIe="🚛",XIe="🚜",ZIe="🏎️",JIe="🏍️",eke="🛵",tke="🦽",nke="🦼",ske="🛺",rke="🚲",ike="🛴",oke="🛹",ake="🛼",lke="🚏",cke="🛣️",dke="🛤️",uke="🛢️",pke="⛽",fke="🚨",_ke="🚥",mke="🚦",hke="🛑",gke="🚧",bke="⚓",yke="⛵",vke="⛵",Eke="🛶",Ske="🚤",Tke="🛳️",xke="⛴️",Cke="🛥️",wke="🚢",Rke="✈️",Ake="🛩️",Mke="🛫",Nke="🛬",Oke="🪂",Ike="💺",kke="🚁",Dke="🚟",Lke="🚠",Pke="🚡",Fke="🛰️",Uke="🚀",Bke="🛸",Gke="🛎️",Vke="🧳",zke="⌛",Hke="⏳",qke="⌚",Yke="⏰",$ke="⏱️",Wke="⏲️",Kke="🕰️",jke="🕛",Qke="🕧",Xke="🕐",Zke="🕜",Jke="🕑",eDe="🕝",tDe="🕒",nDe="🕞",sDe="🕓",rDe="🕟",iDe="🕔",oDe="🕠",aDe="🕕",lDe="🕡",cDe="🕖",dDe="🕢",uDe="🕗",pDe="🕣",fDe="🕘",_De="🕤",mDe="🕙",hDe="🕥",gDe="🕚",bDe="🕦",yDe="🌑",vDe="🌒",EDe="🌓",SDe="🌔",TDe="🌔",xDe="🌕",CDe="🌖",wDe="🌗",RDe="🌘",ADe="🌙",MDe="🌚",NDe="🌛",ODe="🌜",IDe="🌡️",kDe="☀️",DDe="🌝",LDe="🌞",PDe="🪐",FDe="⭐",UDe="🌟",BDe="🌠",GDe="🌌",VDe="☁️",zDe="⛅",HDe="⛈️",qDe="🌤️",YDe="🌥️",$De="🌦️",WDe="🌧️",KDe="🌨️",jDe="🌩️",QDe="🌪️",XDe="🌫️",ZDe="🌬️",JDe="🌀",eLe="🌈",tLe="🌂",nLe="☂️",sLe="☔",rLe="⛱️",iLe="⚡",oLe="❄️",aLe="☃️",lLe="⛄",cLe="☄️",dLe="🔥",uLe="💧",pLe="🌊",fLe="🎃",_Le="🎄",mLe="🎆",hLe="🎇",gLe="🧨",bLe="✨",yLe="🎈",vLe="🎉",ELe="🎊",SLe="🎋",TLe="🎍",xLe="🎎",CLe="🎏",wLe="🎐",RLe="🎑",ALe="🧧",MLe="🎀",NLe="🎁",OLe="🎗️",ILe="🎟️",kLe="🎫",DLe="🎖️",LLe="🏆",PLe="🏅",FLe="⚽",ULe="⚾",BLe="🥎",GLe="🏀",VLe="🏐",zLe="🏈",HLe="🏉",qLe="🎾",YLe="🥏",$Le="🎳",WLe="🏏",KLe="🏑",jLe="🏒",QLe="🥍",XLe="🏓",ZLe="🏸",JLe="🥊",ePe="🥋",tPe="🥅",nPe="⛳",sPe="⛸️",rPe="🎣",iPe="🤿",oPe="🎽",aPe="🎿",lPe="🛷",cPe="🥌",dPe="🎯",uPe="🪀",pPe="🪁",fPe="🔮",_Pe="🪄",mPe="🧿",hPe="🎮",gPe="🕹️",bPe="🎰",yPe="🎲",vPe="🧩",EPe="🧸",SPe="🪅",TPe="🪆",xPe="♠️",CPe="♥️",wPe="♦️",RPe="♣️",APe="♟️",MPe="🃏",NPe="🀄",OPe="🎴",IPe="🎭",kPe="🖼️",DPe="🎨",LPe="🧵",PPe="🪡",FPe="🧶",UPe="🪢",BPe="👓",GPe="🕶️",VPe="🥽",zPe="🥼",HPe="🦺",qPe="👔",YPe="👕",$Pe="👕",WPe="👖",KPe="🧣",jPe="🧤",QPe="🧥",XPe="🧦",ZPe="👗",JPe="👘",e3e="🥻",t3e="🩱",n3e="🩲",s3e="🩳",r3e="👙",i3e="👚",o3e="👛",a3e="👜",l3e="👝",c3e="🛍️",d3e="🎒",u3e="🩴",p3e="👞",f3e="👞",_3e="👟",m3e="🥾",h3e="🥿",g3e="👠",b3e="👡",y3e="🩰",v3e="👢",E3e="👑",S3e="👒",T3e="🎩",x3e="🎓",C3e="🧢",w3e="🪖",R3e="⛑️",A3e="📿",M3e="💄",N3e="💍",O3e="💎",I3e="🔇",k3e="🔈",D3e="🔉",L3e="🔊",P3e="📢",F3e="📣",U3e="📯",B3e="🔔",G3e="🔕",V3e="🎼",z3e="🎵",H3e="🎶",q3e="🎙️",Y3e="🎚️",$3e="🎛️",W3e="🎤",K3e="🎧",j3e="📻",Q3e="🎷",X3e="🪗",Z3e="🎸",J3e="🎹",e4e="🎺",t4e="🎻",n4e="🪕",s4e="🥁",r4e="🪘",i4e="📱",o4e="📲",a4e="☎️",l4e="☎️",c4e="📞",d4e="📟",u4e="📠",p4e="🔋",f4e="🔌",_4e="💻",m4e="🖥️",h4e="🖨️",g4e="⌨️",b4e="🖱️",y4e="🖲️",v4e="💽",E4e="💾",S4e="💿",T4e="📀",x4e="🧮",C4e="🎥",w4e="🎞️",R4e="📽️",A4e="🎬",M4e="📺",N4e="📷",O4e="📸",I4e="📹",k4e="📼",D4e="🔍",L4e="🔎",P4e="🕯️",F4e="💡",U4e="🔦",B4e="🏮",G4e="🏮",V4e="🪔",z4e="📔",H4e="📕",q4e="📖",Y4e="📖",$4e="📗",W4e="📘",K4e="📙",j4e="📚",Q4e="📓",X4e="📒",Z4e="📃",J4e="📜",e5e="📄",t5e="📰",n5e="🗞️",s5e="📑",r5e="🔖",i5e="🏷️",o5e="💰",a5e="🪙",l5e="💴",c5e="💵",d5e="💶",u5e="💷",p5e="💸",f5e="💳",_5e="🧾",m5e="💹",h5e="✉️",g5e="📧",b5e="📨",y5e="📩",v5e="📤",E5e="📥",S5e="📫",T5e="📪",x5e="📬",C5e="📭",w5e="📮",R5e="🗳️",A5e="✏️",M5e="✒️",N5e="🖋️",O5e="🖊️",I5e="🖌️",k5e="🖍️",D5e="📝",L5e="📝",P5e="💼",F5e="📁",U5e="📂",B5e="🗂️",G5e="📅",V5e="📆",z5e="🗒️",H5e="🗓️",q5e="📇",Y5e="📈",$5e="📉",W5e="📊",K5e="📋",j5e="📌",Q5e="📍",X5e="📎",Z5e="🖇️",J5e="📏",eFe="📐",tFe="✂️",nFe="🗃️",sFe="🗄️",rFe="🗑️",iFe="🔒",oFe="🔓",aFe="🔏",lFe="🔐",cFe="🔑",dFe="🗝️",uFe="🔨",pFe="🪓",fFe="⛏️",_Fe="⚒️",mFe="🛠️",hFe="🗡️",gFe="⚔️",bFe="🔫",yFe="🪃",vFe="🏹",EFe="🛡️",SFe="🪚",TFe="🔧",xFe="🪛",CFe="🔩",wFe="⚙️",RFe="🗜️",AFe="⚖️",MFe="🦯",NFe="🔗",OFe="⛓️",IFe="🪝",kFe="🧰",DFe="🧲",LFe="🪜",PFe="⚗️",FFe="🧪",UFe="🧫",BFe="🧬",GFe="🔬",VFe="🔭",zFe="📡",HFe="💉",qFe="🩸",YFe="💊",$Fe="🩹",WFe="🩺",KFe="🚪",jFe="🛗",QFe="🪞",XFe="🪟",ZFe="🛏️",JFe="🛋️",eUe="🪑",tUe="🚽",nUe="🪠",sUe="🚿",rUe="🛁",iUe="🪤",oUe="🪒",aUe="🧴",lUe="🧷",cUe="🧹",dUe="🧺",uUe="🧻",pUe="🪣",fUe="🧼",_Ue="🪥",mUe="🧽",hUe="🧯",gUe="🛒",bUe="🚬",yUe="⚰️",vUe="🪦",EUe="⚱️",SUe="🗿",TUe="🪧",xUe="🏧",CUe="🚮",wUe="🚰",RUe="♿",AUe="🚹",MUe="🚺",NUe="🚻",OUe="🚼",IUe="🚾",kUe="🛂",DUe="🛃",LUe="🛄",PUe="🛅",FUe="⚠️",UUe="🚸",BUe="⛔",GUe="🚫",VUe="🚳",zUe="🚭",HUe="🚯",qUe="🚷",YUe="📵",$Ue="🔞",WUe="☢️",KUe="☣️",jUe="⬆️",QUe="↗️",XUe="➡️",ZUe="↘️",JUe="⬇️",eBe="↙️",tBe="⬅️",nBe="↖️",sBe="↕️",rBe="↔️",iBe="↩️",oBe="↪️",aBe="⤴️",lBe="⤵️",cBe="🔃",dBe="🔄",uBe="🔙",pBe="🔚",fBe="🔛",_Be="🔜",mBe="🔝",hBe="🛐",gBe="⚛️",bBe="🕉️",yBe="✡️",vBe="☸️",EBe="☯️",SBe="✝️",TBe="☦️",xBe="☪️",CBe="☮️",wBe="🕎",RBe="🔯",ABe="♈",MBe="♉",NBe="♊",OBe="♋",IBe="♌",kBe="♍",DBe="♎",LBe="♏",PBe="♐",FBe="♑",UBe="♒",BBe="♓",GBe="⛎",VBe="🔀",zBe="🔁",HBe="🔂",qBe="▶️",YBe="⏩",$Be="⏭️",WBe="⏯️",KBe="◀️",jBe="⏪",QBe="⏮️",XBe="🔼",ZBe="⏫",JBe="🔽",e6e="⏬",t6e="⏸️",n6e="⏹️",s6e="⏺️",r6e="⏏️",i6e="🎦",o6e="🔅",a6e="🔆",l6e="📶",c6e="📳",d6e="📴",u6e="♀️",p6e="♂️",f6e="⚧️",_6e="✖️",m6e="➕",h6e="➖",g6e="➗",b6e="♾️",y6e="‼️",v6e="⁉️",E6e="❓",S6e="❔",T6e="❕",x6e="❗",C6e="❗",w6e="〰️",R6e="💱",A6e="💲",M6e="⚕️",N6e="♻️",O6e="⚜️",I6e="🔱",k6e="📛",D6e="🔰",L6e="⭕",P6e="✅",F6e="☑️",U6e="✔️",B6e="❌",G6e="❎",V6e="➰",z6e="➿",H6e="〽️",q6e="✳️",Y6e="✴️",$6e="❇️",W6e="©️",K6e="®️",j6e="™️",Q6e="#️⃣",X6e="*️⃣",Z6e="0️⃣",J6e="1️⃣",e9e="2️⃣",t9e="3️⃣",n9e="4️⃣",s9e="5️⃣",r9e="6️⃣",i9e="7️⃣",o9e="8️⃣",a9e="9️⃣",l9e="🔟",c9e="🔠",d9e="🔡",u9e="🔣",p9e="🔤",f9e="🅰️",_9e="🆎",m9e="🅱️",h9e="🆑",g9e="🆒",b9e="🆓",y9e="ℹ️",v9e="🆔",E9e="Ⓜ️",S9e="🆖",T9e="🅾️",x9e="🆗",C9e="🅿️",w9e="🆘",R9e="🆙",A9e="🆚",M9e="🈁",N9e="🈂️",O9e="🉐",I9e="🉑",k9e="㊗️",D9e="㊙️",L9e="🈵",P9e="🔴",F9e="🟠",U9e="🟡",B9e="🟢",G9e="🔵",V9e="🟣",z9e="🟤",H9e="⚫",q9e="⚪",Y9e="🟥",$9e="🟧",W9e="🟨",K9e="🟩",j9e="🟦",Q9e="🟪",X9e="🟫",Z9e="⬛",J9e="⬜",e8e="◼️",t8e="◻️",n8e="◾",s8e="◽",r8e="▪️",i8e="▫️",o8e="🔶",a8e="🔷",l8e="🔸",c8e="🔹",d8e="🔺",u8e="🔻",p8e="💠",f8e="🔘",_8e="🔳",m8e="🔲",h8e="🏁",g8e="🚩",b8e="🎌",y8e="🏴",v8e="🏳️",E8e="🏳️‍🌈",S8e="🏳️‍⚧️",T8e="🏴‍☠️",x8e="🇦🇨",C8e="🇦🇩",w8e="🇦🇪",R8e="🇦🇫",A8e="🇦🇬",M8e="🇦🇮",N8e="🇦🇱",O8e="🇦🇲",I8e="🇦🇴",k8e="🇦🇶",D8e="🇦🇷",L8e="🇦🇸",P8e="🇦🇹",F8e="🇦🇺",U8e="🇦🇼",B8e="🇦🇽",G8e="🇦🇿",V8e="🇧🇦",z8e="🇧🇧",H8e="🇧🇩",q8e="🇧🇪",Y8e="🇧🇫",$8e="🇧🇬",W8e="🇧🇭",K8e="🇧🇮",j8e="🇧🇯",Q8e="🇧🇱",X8e="🇧🇲",Z8e="🇧🇳",J8e="🇧🇴",eGe="🇧🇶",tGe="🇧🇷",nGe="🇧🇸",sGe="🇧🇹",rGe="🇧🇻",iGe="🇧🇼",oGe="🇧🇾",aGe="🇧🇿",lGe="🇨🇦",cGe="🇨🇨",dGe="🇨🇩",uGe="🇨🇫",pGe="🇨🇬",fGe="🇨🇭",_Ge="🇨🇮",mGe="🇨🇰",hGe="🇨🇱",gGe="🇨🇲",bGe="🇨🇳",yGe="🇨🇴",vGe="🇨🇵",EGe="🇨🇷",SGe="🇨🇺",TGe="🇨🇻",xGe="🇨🇼",CGe="🇨🇽",wGe="🇨🇾",RGe="🇨🇿",AGe="🇩🇪",MGe="🇩🇬",NGe="🇩🇯",OGe="🇩🇰",IGe="🇩🇲",kGe="🇩🇴",DGe="🇩🇿",LGe="🇪🇦",PGe="🇪🇨",FGe="🇪🇪",UGe="🇪🇬",BGe="🇪🇭",GGe="🇪🇷",VGe="🇪🇸",zGe="🇪🇹",HGe="🇪🇺",qGe="🇪🇺",YGe="🇫🇮",$Ge="🇫🇯",WGe="🇫🇰",KGe="🇫🇲",jGe="🇫🇴",QGe="🇫🇷",XGe="🇬🇦",ZGe="🇬🇧",JGe="🇬🇧",e7e="🇬🇩",t7e="🇬🇪",n7e="🇬🇫",s7e="🇬🇬",r7e="🇬🇭",i7e="🇬🇮",o7e="🇬🇱",a7e="🇬🇲",l7e="🇬🇳",c7e="🇬🇵",d7e="🇬🇶",u7e="🇬🇷",p7e="🇬🇸",f7e="🇬🇹",_7e="🇬🇺",m7e="🇬🇼",h7e="🇬🇾",g7e="🇭🇰",b7e="🇭🇲",y7e="🇭🇳",v7e="🇭🇷",E7e="🇭🇹",S7e="🇭🇺",T7e="🇮🇨",x7e="🇮🇩",C7e="🇮🇪",w7e="🇮🇱",R7e="🇮🇲",A7e="🇮🇳",M7e="🇮🇴",N7e="🇮🇶",O7e="🇮🇷",I7e="🇮🇸",k7e="🇮🇹",D7e="🇯🇪",L7e="🇯🇲",P7e="🇯🇴",F7e="🇯🇵",U7e="🇰🇪",B7e="🇰🇬",G7e="🇰🇭",V7e="🇰🇮",z7e="🇰🇲",H7e="🇰🇳",q7e="🇰🇵",Y7e="🇰🇷",$7e="🇰🇼",W7e="🇰🇾",K7e="🇰🇿",j7e="🇱🇦",Q7e="🇱🇧",X7e="🇱🇨",Z7e="🇱🇮",J7e="🇱🇰",eVe="🇱🇷",tVe="🇱🇸",nVe="🇱🇹",sVe="🇱🇺",rVe="🇱🇻",iVe="🇱🇾",oVe="🇲🇦",aVe="🇲🇨",lVe="🇲🇩",cVe="🇲🇪",dVe="🇲🇫",uVe="🇲🇬",pVe="🇲🇭",fVe="🇲🇰",_Ve="🇲🇱",mVe="🇲🇲",hVe="🇲🇳",gVe="🇲🇴",bVe="🇲🇵",yVe="🇲🇶",vVe="🇲🇷",EVe="🇲🇸",SVe="🇲🇹",TVe="🇲🇺",xVe="🇲🇻",CVe="🇲🇼",wVe="🇲🇽",RVe="🇲🇾",AVe="🇲🇿",MVe="🇳🇦",NVe="🇳🇨",OVe="🇳🇪",IVe="🇳🇫",kVe="🇳🇬",DVe="🇳🇮",LVe="🇳🇱",PVe="🇳🇴",FVe="🇳🇵",UVe="🇳🇷",BVe="🇳🇺",GVe="🇳🇿",VVe="🇴🇲",zVe="🇵🇦",HVe="🇵🇪",qVe="🇵🇫",YVe="🇵🇬",$Ve="🇵🇭",WVe="🇵🇰",KVe="🇵🇱",jVe="🇵🇲",QVe="🇵🇳",XVe="🇵🇷",ZVe="🇵🇸",JVe="🇵🇹",eze="🇵🇼",tze="🇵🇾",nze="🇶🇦",sze="🇷🇪",rze="🇷🇴",ize="🇷🇸",oze="🇷🇺",aze="🇷🇼",lze="🇸🇦",cze="🇸🇧",dze="🇸🇨",uze="🇸🇩",pze="🇸🇪",fze="🇸🇬",_ze="🇸🇭",mze="🇸🇮",hze="🇸🇯",gze="🇸🇰",bze="🇸🇱",yze="🇸🇲",vze="🇸🇳",Eze="🇸🇴",Sze="🇸🇷",Tze="🇸🇸",xze="🇸🇹",Cze="🇸🇻",wze="🇸🇽",Rze="🇸🇾",Aze="🇸🇿",Mze="🇹🇦",Nze="🇹🇨",Oze="🇹🇩",Ize="🇹🇫",kze="🇹🇬",Dze="🇹🇭",Lze="🇹🇯",Pze="🇹🇰",Fze="🇹🇱",Uze="🇹🇲",Bze="🇹🇳",Gze="🇹🇴",Vze="🇹🇷",zze="🇹🇹",Hze="🇹🇻",qze="🇹🇼",Yze="🇹🇿",$ze="🇺🇦",Wze="🇺🇬",Kze="🇺🇲",jze="🇺🇳",Qze="🇺🇸",Xze="🇺🇾",Zze="🇺🇿",Jze="🇻🇦",eHe="🇻🇨",tHe="🇻🇪",nHe="🇻🇬",sHe="🇻🇮",rHe="🇻🇳",iHe="🇻🇺",oHe="🇼🇫",aHe="🇼🇸",lHe="🇽🇰",cHe="🇾🇪",dHe="🇾🇹",uHe="🇿🇦",pHe="🇿🇲",fHe="🇿🇼",_He="🏴󠁧󠁢󠁥󠁮󠁧󠁿",mHe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",hHe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",gHe={100:"💯",1234:"🔢",grinning:A0e,smiley:M0e,smile:N0e,grin:O0e,laughing:I0e,satisfied:k0e,sweat_smile:D0e,rofl:L0e,joy:P0e,slightly_smiling_face:F0e,upside_down_face:U0e,wink:B0e,blush:G0e,innocent:V0e,smiling_face_with_three_hearts:z0e,heart_eyes:H0e,star_struck:q0e,kissing_heart:Y0e,kissing:$0e,relaxed:W0e,kissing_closed_eyes:K0e,kissing_smiling_eyes:j0e,smiling_face_with_tear:Q0e,yum:X0e,stuck_out_tongue:Z0e,stuck_out_tongue_winking_eye:J0e,zany_face:eye,stuck_out_tongue_closed_eyes:tye,money_mouth_face:nye,hugs:sye,hand_over_mouth:rye,shushing_face:iye,thinking:oye,zipper_mouth_face:aye,raised_eyebrow:lye,neutral_face:cye,expressionless:dye,no_mouth:uye,smirk:pye,unamused:fye,roll_eyes:_ye,grimacing:mye,lying_face:hye,relieved:gye,pensive:bye,sleepy:yye,drooling_face:vye,sleeping:Eye,mask:Sye,face_with_thermometer:Tye,face_with_head_bandage:xye,nauseated_face:Cye,vomiting_face:wye,sneezing_face:Rye,hot_face:Aye,cold_face:Mye,woozy_face:Nye,dizzy_face:Oye,exploding_head:Iye,cowboy_hat_face:kye,partying_face:Dye,disguised_face:Lye,sunglasses:Pye,nerd_face:Fye,monocle_face:Uye,confused:Bye,worried:Gye,slightly_frowning_face:Vye,frowning_face:zye,open_mouth:Hye,hushed:qye,astonished:Yye,flushed:$ye,pleading_face:Wye,frowning:Kye,anguished:jye,fearful:Qye,cold_sweat:Xye,disappointed_relieved:Zye,cry:Jye,sob:eve,scream:tve,confounded:nve,persevere:sve,disappointed:rve,sweat:ive,weary:ove,tired_face:ave,yawning_face:lve,triumph:cve,rage:dve,pout:uve,angry:pve,cursing_face:fve,smiling_imp:_ve,imp:mve,skull:hve,skull_and_crossbones:gve,hankey:bve,poop:yve,shit:vve,clown_face:Eve,japanese_ogre:Sve,japanese_goblin:Tve,ghost:xve,alien:Cve,space_invader:wve,robot:Rve,smiley_cat:Ave,smile_cat:Mve,joy_cat:Nve,heart_eyes_cat:Ove,smirk_cat:Ive,kissing_cat:kve,scream_cat:Dve,crying_cat_face:Lve,pouting_cat:Pve,see_no_evil:Fve,hear_no_evil:Uve,speak_no_evil:Bve,kiss:Gve,love_letter:Vve,cupid:zve,gift_heart:Hve,sparkling_heart:qve,heartpulse:Yve,heartbeat:$ve,revolving_hearts:Wve,two_hearts:Kve,heart_decoration:jve,heavy_heart_exclamation:Qve,broken_heart:Xve,heart:Zve,orange_heart:Jve,yellow_heart:eEe,green_heart:tEe,blue_heart:nEe,purple_heart:sEe,brown_heart:rEe,black_heart:iEe,white_heart:oEe,anger:aEe,boom:lEe,collision:cEe,dizzy:dEe,sweat_drops:uEe,dash:pEe,hole:fEe,bomb:_Ee,speech_balloon:mEe,eye_speech_bubble:hEe,left_speech_bubble:gEe,right_anger_bubble:bEe,thought_balloon:yEe,zzz:vEe,wave:EEe,raised_back_of_hand:SEe,raised_hand_with_fingers_splayed:TEe,hand:xEe,raised_hand:CEe,vulcan_salute:wEe,ok_hand:REe,pinched_fingers:AEe,pinching_hand:MEe,v:NEe,crossed_fingers:OEe,love_you_gesture:IEe,metal:kEe,call_me_hand:DEe,point_left:LEe,point_right:PEe,point_up_2:FEe,middle_finger:UEe,fu:BEe,point_down:GEe,point_up:VEe,"+1":"👍",thumbsup:zEe,"-1":"👎",thumbsdown:HEe,fist_raised:qEe,fist:YEe,fist_oncoming:$Ee,facepunch:WEe,punch:KEe,fist_left:jEe,fist_right:QEe,clap:XEe,raised_hands:ZEe,open_hands:JEe,palms_up_together:eSe,handshake:tSe,pray:nSe,writing_hand:sSe,nail_care:rSe,selfie:iSe,muscle:oSe,mechanical_arm:aSe,mechanical_leg:lSe,leg:cSe,foot:dSe,ear:uSe,ear_with_hearing_aid:pSe,nose:fSe,brain:_Se,anatomical_heart:mSe,lungs:hSe,tooth:gSe,bone:bSe,eyes:ySe,eye:vSe,tongue:ESe,lips:SSe,baby:TSe,child:xSe,boy:CSe,girl:wSe,adult:RSe,blond_haired_person:ASe,man:MSe,bearded_person:NSe,red_haired_man:OSe,curly_haired_man:ISe,white_haired_man:kSe,bald_man:DSe,woman:LSe,red_haired_woman:PSe,person_red_hair:FSe,curly_haired_woman:USe,person_curly_hair:BSe,white_haired_woman:GSe,person_white_hair:VSe,bald_woman:zSe,person_bald:HSe,blond_haired_woman:qSe,blonde_woman:YSe,blond_haired_man:$Se,older_adult:WSe,older_man:KSe,older_woman:jSe,frowning_person:QSe,frowning_man:XSe,frowning_woman:ZSe,pouting_face:JSe,pouting_man:e1e,pouting_woman:t1e,no_good:n1e,no_good_man:s1e,ng_man:r1e,no_good_woman:i1e,ng_woman:o1e,ok_person:a1e,ok_man:l1e,ok_woman:c1e,tipping_hand_person:d1e,information_desk_person:u1e,tipping_hand_man:p1e,sassy_man:f1e,tipping_hand_woman:_1e,sassy_woman:m1e,raising_hand:h1e,raising_hand_man:g1e,raising_hand_woman:b1e,deaf_person:y1e,deaf_man:v1e,deaf_woman:E1e,bow:S1e,bowing_man:T1e,bowing_woman:x1e,facepalm:C1e,man_facepalming:w1e,woman_facepalming:R1e,shrug:A1e,man_shrugging:M1e,woman_shrugging:N1e,health_worker:O1e,man_health_worker:I1e,woman_health_worker:k1e,student:D1e,man_student:L1e,woman_student:P1e,teacher:F1e,man_teacher:U1e,woman_teacher:B1e,judge:G1e,man_judge:V1e,woman_judge:z1e,farmer:H1e,man_farmer:q1e,woman_farmer:Y1e,cook:$1e,man_cook:W1e,woman_cook:K1e,mechanic:j1e,man_mechanic:Q1e,woman_mechanic:X1e,factory_worker:Z1e,man_factory_worker:J1e,woman_factory_worker:eTe,office_worker:tTe,man_office_worker:nTe,woman_office_worker:sTe,scientist:rTe,man_scientist:iTe,woman_scientist:oTe,technologist:aTe,man_technologist:lTe,woman_technologist:cTe,singer:dTe,man_singer:uTe,woman_singer:pTe,artist:fTe,man_artist:_Te,woman_artist:mTe,pilot:hTe,man_pilot:gTe,woman_pilot:bTe,astronaut:yTe,man_astronaut:vTe,woman_astronaut:ETe,firefighter:STe,man_firefighter:TTe,woman_firefighter:xTe,police_officer:CTe,cop:wTe,policeman:RTe,policewoman:ATe,detective:MTe,male_detective:NTe,female_detective:OTe,guard:ITe,guardsman:kTe,guardswoman:DTe,ninja:LTe,construction_worker:PTe,construction_worker_man:FTe,construction_worker_woman:UTe,prince:BTe,princess:GTe,person_with_turban:VTe,man_with_turban:zTe,woman_with_turban:HTe,man_with_gua_pi_mao:qTe,woman_with_headscarf:YTe,person_in_tuxedo:$Te,man_in_tuxedo:WTe,woman_in_tuxedo:KTe,person_with_veil:jTe,man_with_veil:QTe,woman_with_veil:XTe,bride_with_veil:ZTe,pregnant_woman:JTe,breast_feeding:exe,woman_feeding_baby:txe,man_feeding_baby:nxe,person_feeding_baby:sxe,angel:rxe,santa:ixe,mrs_claus:oxe,mx_claus:axe,superhero:lxe,superhero_man:cxe,superhero_woman:dxe,supervillain:uxe,supervillain_man:pxe,supervillain_woman:fxe,mage:_xe,mage_man:mxe,mage_woman:hxe,fairy:gxe,fairy_man:bxe,fairy_woman:yxe,vampire:vxe,vampire_man:Exe,vampire_woman:Sxe,merperson:Txe,merman:xxe,mermaid:Cxe,elf:wxe,elf_man:Rxe,elf_woman:Axe,genie:Mxe,genie_man:Nxe,genie_woman:Oxe,zombie:Ixe,zombie_man:kxe,zombie_woman:Dxe,massage:Lxe,massage_man:Pxe,massage_woman:Fxe,haircut:Uxe,haircut_man:Bxe,haircut_woman:Gxe,walking:Vxe,walking_man:zxe,walking_woman:Hxe,standing_person:qxe,standing_man:Yxe,standing_woman:$xe,kneeling_person:Wxe,kneeling_man:Kxe,kneeling_woman:jxe,person_with_probing_cane:Qxe,man_with_probing_cane:Xxe,woman_with_probing_cane:Zxe,person_in_motorized_wheelchair:Jxe,man_in_motorized_wheelchair:eCe,woman_in_motorized_wheelchair:tCe,person_in_manual_wheelchair:nCe,man_in_manual_wheelchair:sCe,woman_in_manual_wheelchair:rCe,runner:iCe,running:oCe,running_man:aCe,running_woman:lCe,woman_dancing:cCe,dancer:dCe,man_dancing:uCe,business_suit_levitating:pCe,dancers:fCe,dancing_men:_Ce,dancing_women:mCe,sauna_person:hCe,sauna_man:gCe,sauna_woman:bCe,climbing:yCe,climbing_man:vCe,climbing_woman:ECe,person_fencing:SCe,horse_racing:TCe,skier:xCe,snowboarder:CCe,golfing:wCe,golfing_man:RCe,golfing_woman:ACe,surfer:MCe,surfing_man:NCe,surfing_woman:OCe,rowboat:ICe,rowing_man:kCe,rowing_woman:DCe,swimmer:LCe,swimming_man:PCe,swimming_woman:FCe,bouncing_ball_person:UCe,bouncing_ball_man:BCe,basketball_man:GCe,bouncing_ball_woman:VCe,basketball_woman:zCe,weight_lifting:HCe,weight_lifting_man:qCe,weight_lifting_woman:YCe,bicyclist:$Ce,biking_man:WCe,biking_woman:KCe,mountain_bicyclist:jCe,mountain_biking_man:QCe,mountain_biking_woman:XCe,cartwheeling:ZCe,man_cartwheeling:JCe,woman_cartwheeling:ewe,wrestling:twe,men_wrestling:nwe,women_wrestling:swe,water_polo:rwe,man_playing_water_polo:iwe,woman_playing_water_polo:owe,handball_person:awe,man_playing_handball:lwe,woman_playing_handball:cwe,juggling_person:dwe,man_juggling:uwe,woman_juggling:pwe,lotus_position:fwe,lotus_position_man:_we,lotus_position_woman:mwe,bath:hwe,sleeping_bed:gwe,people_holding_hands:bwe,two_women_holding_hands:ywe,couple:vwe,two_men_holding_hands:Ewe,couplekiss:Swe,couplekiss_man_woman:Twe,couplekiss_man_man:xwe,couplekiss_woman_woman:Cwe,couple_with_heart:wwe,couple_with_heart_woman_man:Rwe,couple_with_heart_man_man:Awe,couple_with_heart_woman_woman:Mwe,family:Nwe,family_man_woman_boy:Owe,family_man_woman_girl:Iwe,family_man_woman_girl_boy:kwe,family_man_woman_boy_boy:Dwe,family_man_woman_girl_girl:Lwe,family_man_man_boy:Pwe,family_man_man_girl:Fwe,family_man_man_girl_boy:Uwe,family_man_man_boy_boy:Bwe,family_man_man_girl_girl:Gwe,family_woman_woman_boy:Vwe,family_woman_woman_girl:zwe,family_woman_woman_girl_boy:Hwe,family_woman_woman_boy_boy:qwe,family_woman_woman_girl_girl:Ywe,family_man_boy:$we,family_man_boy_boy:Wwe,family_man_girl:Kwe,family_man_girl_boy:jwe,family_man_girl_girl:Qwe,family_woman_boy:Xwe,family_woman_boy_boy:Zwe,family_woman_girl:Jwe,family_woman_girl_boy:e2e,family_woman_girl_girl:t2e,speaking_head:n2e,bust_in_silhouette:s2e,busts_in_silhouette:r2e,people_hugging:i2e,footprints:o2e,monkey_face:a2e,monkey:l2e,gorilla:c2e,orangutan:d2e,dog:u2e,dog2:p2e,guide_dog:f2e,service_dog:_2e,poodle:m2e,wolf:h2e,fox_face:g2e,raccoon:b2e,cat:y2e,cat2:v2e,black_cat:E2e,lion:S2e,tiger:T2e,tiger2:x2e,leopard:C2e,horse:w2e,racehorse:R2e,unicorn:A2e,zebra:M2e,deer:N2e,bison:O2e,cow:I2e,ox:k2e,water_buffalo:D2e,cow2:L2e,pig:P2e,pig2:F2e,boar:U2e,pig_nose:B2e,ram:G2e,sheep:V2e,goat:z2e,dromedary_camel:H2e,camel:q2e,llama:Y2e,giraffe:$2e,elephant:W2e,mammoth:K2e,rhinoceros:j2e,hippopotamus:Q2e,mouse:X2e,mouse2:Z2e,rat:J2e,hamster:eRe,rabbit:tRe,rabbit2:nRe,chipmunk:sRe,beaver:rRe,hedgehog:iRe,bat:oRe,bear:aRe,polar_bear:lRe,koala:cRe,panda_face:dRe,sloth:uRe,otter:pRe,skunk:fRe,kangaroo:_Re,badger:mRe,feet:hRe,paw_prints:gRe,turkey:bRe,chicken:yRe,rooster:vRe,hatching_chick:ERe,baby_chick:SRe,hatched_chick:TRe,bird:xRe,penguin:CRe,dove:wRe,eagle:RRe,duck:ARe,swan:MRe,owl:NRe,dodo:ORe,feather:IRe,flamingo:kRe,peacock:DRe,parrot:LRe,frog:PRe,crocodile:FRe,turtle:URe,lizard:BRe,snake:GRe,dragon_face:VRe,dragon:zRe,sauropod:HRe,"t-rex":"🦖",whale:qRe,whale2:YRe,dolphin:$Re,flipper:WRe,seal:KRe,fish:jRe,tropical_fish:QRe,blowfish:XRe,shark:ZRe,octopus:JRe,shell:eAe,snail:tAe,butterfly:nAe,bug:sAe,ant:rAe,bee:iAe,honeybee:oAe,beetle:aAe,lady_beetle:lAe,cricket:cAe,cockroach:dAe,spider:uAe,spider_web:pAe,scorpion:fAe,mosquito:_Ae,fly:mAe,worm:hAe,microbe:gAe,bouquet:bAe,cherry_blossom:yAe,white_flower:vAe,rosette:EAe,rose:SAe,wilted_flower:TAe,hibiscus:xAe,sunflower:CAe,blossom:wAe,tulip:RAe,seedling:AAe,potted_plant:MAe,evergreen_tree:NAe,deciduous_tree:OAe,palm_tree:IAe,cactus:kAe,ear_of_rice:DAe,herb:LAe,shamrock:PAe,four_leaf_clover:FAe,maple_leaf:UAe,fallen_leaf:BAe,leaves:GAe,grapes:VAe,melon:zAe,watermelon:HAe,tangerine:qAe,orange:YAe,mandarin:$Ae,lemon:WAe,banana:KAe,pineapple:jAe,mango:QAe,apple:XAe,green_apple:ZAe,pear:JAe,peach:eMe,cherries:tMe,strawberry:nMe,blueberries:sMe,kiwi_fruit:rMe,tomato:iMe,olive:oMe,coconut:aMe,avocado:lMe,eggplant:cMe,potato:dMe,carrot:uMe,corn:pMe,hot_pepper:fMe,bell_pepper:_Me,cucumber:mMe,leafy_green:hMe,broccoli:gMe,garlic:bMe,onion:yMe,mushroom:vMe,peanuts:EMe,chestnut:SMe,bread:TMe,croissant:xMe,baguette_bread:CMe,flatbread:wMe,pretzel:RMe,bagel:AMe,pancakes:MMe,waffle:NMe,cheese:OMe,meat_on_bone:IMe,poultry_leg:kMe,cut_of_meat:DMe,bacon:LMe,hamburger:PMe,fries:FMe,pizza:UMe,hotdog:BMe,sandwich:GMe,taco:VMe,burrito:zMe,tamale:HMe,stuffed_flatbread:qMe,falafel:YMe,egg:$Me,fried_egg:WMe,shallow_pan_of_food:KMe,stew:jMe,fondue:QMe,bowl_with_spoon:XMe,green_salad:ZMe,popcorn:JMe,butter:eNe,salt:tNe,canned_food:nNe,bento:sNe,rice_cracker:rNe,rice_ball:iNe,rice:oNe,curry:aNe,ramen:lNe,spaghetti:cNe,sweet_potato:dNe,oden:uNe,sushi:pNe,fried_shrimp:fNe,fish_cake:_Ne,moon_cake:mNe,dango:hNe,dumpling:gNe,fortune_cookie:bNe,takeout_box:yNe,crab:vNe,lobster:ENe,shrimp:SNe,squid:TNe,oyster:xNe,icecream:CNe,shaved_ice:wNe,ice_cream:RNe,doughnut:ANe,cookie:MNe,birthday:NNe,cake:ONe,cupcake:INe,pie:kNe,chocolate_bar:DNe,candy:LNe,lollipop:PNe,custard:FNe,honey_pot:UNe,baby_bottle:BNe,milk_glass:GNe,coffee:VNe,teapot:zNe,tea:HNe,sake:qNe,champagne:YNe,wine_glass:$Ne,cocktail:WNe,tropical_drink:KNe,beer:jNe,beers:QNe,clinking_glasses:XNe,tumbler_glass:ZNe,cup_with_straw:JNe,bubble_tea:eOe,beverage_box:tOe,mate:nOe,ice_cube:sOe,chopsticks:rOe,plate_with_cutlery:iOe,fork_and_knife:oOe,spoon:aOe,hocho:lOe,knife:cOe,amphora:dOe,earth_africa:uOe,earth_americas:pOe,earth_asia:fOe,globe_with_meridians:_Oe,world_map:mOe,japan:hOe,compass:gOe,mountain_snow:bOe,mountain:yOe,volcano:vOe,mount_fuji:EOe,camping:SOe,beach_umbrella:TOe,desert:xOe,desert_island:COe,national_park:wOe,stadium:ROe,classical_building:AOe,building_construction:MOe,bricks:NOe,rock:OOe,wood:IOe,hut:kOe,houses:DOe,derelict_house:LOe,house:POe,house_with_garden:FOe,office:UOe,post_office:BOe,european_post_office:GOe,hospital:VOe,bank:zOe,hotel:HOe,love_hotel:qOe,convenience_store:YOe,school:$Oe,department_store:WOe,factory:KOe,japanese_castle:jOe,european_castle:QOe,wedding:XOe,tokyo_tower:ZOe,statue_of_liberty:JOe,church:eIe,mosque:tIe,hindu_temple:nIe,synagogue:sIe,shinto_shrine:rIe,kaaba:iIe,fountain:oIe,tent:aIe,foggy:lIe,night_with_stars:cIe,cityscape:dIe,sunrise_over_mountains:uIe,sunrise:pIe,city_sunset:fIe,city_sunrise:_Ie,bridge_at_night:mIe,hotsprings:hIe,carousel_horse:gIe,ferris_wheel:bIe,roller_coaster:yIe,barber:vIe,circus_tent:EIe,steam_locomotive:SIe,railway_car:TIe,bullettrain_side:xIe,bullettrain_front:CIe,train2:wIe,metro:RIe,light_rail:AIe,station:MIe,tram:NIe,monorail:OIe,mountain_railway:IIe,train:kIe,bus:DIe,oncoming_bus:LIe,trolleybus:PIe,minibus:FIe,ambulance:UIe,fire_engine:BIe,police_car:GIe,oncoming_police_car:VIe,taxi:zIe,oncoming_taxi:HIe,car:qIe,red_car:YIe,oncoming_automobile:$Ie,blue_car:WIe,pickup_truck:KIe,truck:jIe,articulated_lorry:QIe,tractor:XIe,racing_car:ZIe,motorcycle:JIe,motor_scooter:eke,manual_wheelchair:tke,motorized_wheelchair:nke,auto_rickshaw:ske,bike:rke,kick_scooter:ike,skateboard:oke,roller_skate:ake,busstop:lke,motorway:cke,railway_track:dke,oil_drum:uke,fuelpump:pke,rotating_light:fke,traffic_light:_ke,vertical_traffic_light:mke,stop_sign:hke,construction:gke,anchor:bke,boat:yke,sailboat:vke,canoe:Eke,speedboat:Ske,passenger_ship:Tke,ferry:xke,motor_boat:Cke,ship:wke,airplane:Rke,small_airplane:Ake,flight_departure:Mke,flight_arrival:Nke,parachute:Oke,seat:Ike,helicopter:kke,suspension_railway:Dke,mountain_cableway:Lke,aerial_tramway:Pke,artificial_satellite:Fke,rocket:Uke,flying_saucer:Bke,bellhop_bell:Gke,luggage:Vke,hourglass:zke,hourglass_flowing_sand:Hke,watch:qke,alarm_clock:Yke,stopwatch:$ke,timer_clock:Wke,mantelpiece_clock:Kke,clock12:jke,clock1230:Qke,clock1:Xke,clock130:Zke,clock2:Jke,clock230:eDe,clock3:tDe,clock330:nDe,clock4:sDe,clock430:rDe,clock5:iDe,clock530:oDe,clock6:aDe,clock630:lDe,clock7:cDe,clock730:dDe,clock8:uDe,clock830:pDe,clock9:fDe,clock930:_De,clock10:mDe,clock1030:hDe,clock11:gDe,clock1130:bDe,new_moon:yDe,waxing_crescent_moon:vDe,first_quarter_moon:EDe,moon:SDe,waxing_gibbous_moon:TDe,full_moon:xDe,waning_gibbous_moon:CDe,last_quarter_moon:wDe,waning_crescent_moon:RDe,crescent_moon:ADe,new_moon_with_face:MDe,first_quarter_moon_with_face:NDe,last_quarter_moon_with_face:ODe,thermometer:IDe,sunny:kDe,full_moon_with_face:DDe,sun_with_face:LDe,ringed_planet:PDe,star:FDe,star2:UDe,stars:BDe,milky_way:GDe,cloud:VDe,partly_sunny:zDe,cloud_with_lightning_and_rain:HDe,sun_behind_small_cloud:qDe,sun_behind_large_cloud:YDe,sun_behind_rain_cloud:$De,cloud_with_rain:WDe,cloud_with_snow:KDe,cloud_with_lightning:jDe,tornado:QDe,fog:XDe,wind_face:ZDe,cyclone:JDe,rainbow:eLe,closed_umbrella:tLe,open_umbrella:nLe,umbrella:sLe,parasol_on_ground:rLe,zap:iLe,snowflake:oLe,snowman_with_snow:aLe,snowman:lLe,comet:cLe,fire:dLe,droplet:uLe,ocean:pLe,jack_o_lantern:fLe,christmas_tree:_Le,fireworks:mLe,sparkler:hLe,firecracker:gLe,sparkles:bLe,balloon:yLe,tada:vLe,confetti_ball:ELe,tanabata_tree:SLe,bamboo:TLe,dolls:xLe,flags:CLe,wind_chime:wLe,rice_scene:RLe,red_envelope:ALe,ribbon:MLe,gift:NLe,reminder_ribbon:OLe,tickets:ILe,ticket:kLe,medal_military:DLe,trophy:LLe,medal_sports:PLe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:FLe,baseball:ULe,softball:BLe,basketball:GLe,volleyball:VLe,football:zLe,rugby_football:HLe,tennis:qLe,flying_disc:YLe,bowling:$Le,cricket_game:WLe,field_hockey:KLe,ice_hockey:jLe,lacrosse:QLe,ping_pong:XLe,badminton:ZLe,boxing_glove:JLe,martial_arts_uniform:ePe,goal_net:tPe,golf:nPe,ice_skate:sPe,fishing_pole_and_fish:rPe,diving_mask:iPe,running_shirt_with_sash:oPe,ski:aPe,sled:lPe,curling_stone:cPe,dart:dPe,yo_yo:uPe,kite:pPe,"8ball":"🎱",crystal_ball:fPe,magic_wand:_Pe,nazar_amulet:mPe,video_game:hPe,joystick:gPe,slot_machine:bPe,game_die:yPe,jigsaw:vPe,teddy_bear:EPe,pinata:SPe,nesting_dolls:TPe,spades:xPe,hearts:CPe,diamonds:wPe,clubs:RPe,chess_pawn:APe,black_joker:MPe,mahjong:NPe,flower_playing_cards:OPe,performing_arts:IPe,framed_picture:kPe,art:DPe,thread:LPe,sewing_needle:PPe,yarn:FPe,knot:UPe,eyeglasses:BPe,dark_sunglasses:GPe,goggles:VPe,lab_coat:zPe,safety_vest:HPe,necktie:qPe,shirt:YPe,tshirt:$Pe,jeans:WPe,scarf:KPe,gloves:jPe,coat:QPe,socks:XPe,dress:ZPe,kimono:JPe,sari:e3e,one_piece_swimsuit:t3e,swim_brief:n3e,shorts:s3e,bikini:r3e,womans_clothes:i3e,purse:o3e,handbag:a3e,pouch:l3e,shopping:c3e,school_satchel:d3e,thong_sandal:u3e,mans_shoe:p3e,shoe:f3e,athletic_shoe:_3e,hiking_boot:m3e,flat_shoe:h3e,high_heel:g3e,sandal:b3e,ballet_shoes:y3e,boot:v3e,crown:E3e,womans_hat:S3e,tophat:T3e,mortar_board:x3e,billed_cap:C3e,military_helmet:w3e,rescue_worker_helmet:R3e,prayer_beads:A3e,lipstick:M3e,ring:N3e,gem:O3e,mute:I3e,speaker:k3e,sound:D3e,loud_sound:L3e,loudspeaker:P3e,mega:F3e,postal_horn:U3e,bell:B3e,no_bell:G3e,musical_score:V3e,musical_note:z3e,notes:H3e,studio_microphone:q3e,level_slider:Y3e,control_knobs:$3e,microphone:W3e,headphones:K3e,radio:j3e,saxophone:Q3e,accordion:X3e,guitar:Z3e,musical_keyboard:J3e,trumpet:e4e,violin:t4e,banjo:n4e,drum:s4e,long_drum:r4e,iphone:i4e,calling:o4e,phone:a4e,telephone:l4e,telephone_receiver:c4e,pager:d4e,fax:u4e,battery:p4e,electric_plug:f4e,computer:_4e,desktop_computer:m4e,printer:h4e,keyboard:g4e,computer_mouse:b4e,trackball:y4e,minidisc:v4e,floppy_disk:E4e,cd:S4e,dvd:T4e,abacus:x4e,movie_camera:C4e,film_strip:w4e,film_projector:R4e,clapper:A4e,tv:M4e,camera:N4e,camera_flash:O4e,video_camera:I4e,vhs:k4e,mag:D4e,mag_right:L4e,candle:P4e,bulb:F4e,flashlight:U4e,izakaya_lantern:B4e,lantern:G4e,diya_lamp:V4e,notebook_with_decorative_cover:z4e,closed_book:H4e,book:q4e,open_book:Y4e,green_book:$4e,blue_book:W4e,orange_book:K4e,books:j4e,notebook:Q4e,ledger:X4e,page_with_curl:Z4e,scroll:J4e,page_facing_up:e5e,newspaper:t5e,newspaper_roll:n5e,bookmark_tabs:s5e,bookmark:r5e,label:i5e,moneybag:o5e,coin:a5e,yen:l5e,dollar:c5e,euro:d5e,pound:u5e,money_with_wings:p5e,credit_card:f5e,receipt:_5e,chart:m5e,envelope:h5e,email:g5e,"e-mail":"📧",incoming_envelope:b5e,envelope_with_arrow:y5e,outbox_tray:v5e,inbox_tray:E5e,package:"📦",mailbox:S5e,mailbox_closed:T5e,mailbox_with_mail:x5e,mailbox_with_no_mail:C5e,postbox:w5e,ballot_box:R5e,pencil2:A5e,black_nib:M5e,fountain_pen:N5e,pen:O5e,paintbrush:I5e,crayon:k5e,memo:D5e,pencil:L5e,briefcase:P5e,file_folder:F5e,open_file_folder:U5e,card_index_dividers:B5e,date:G5e,calendar:V5e,spiral_notepad:z5e,spiral_calendar:H5e,card_index:q5e,chart_with_upwards_trend:Y5e,chart_with_downwards_trend:$5e,bar_chart:W5e,clipboard:K5e,pushpin:j5e,round_pushpin:Q5e,paperclip:X5e,paperclips:Z5e,straight_ruler:J5e,triangular_ruler:eFe,scissors:tFe,card_file_box:nFe,file_cabinet:sFe,wastebasket:rFe,lock:iFe,unlock:oFe,lock_with_ink_pen:aFe,closed_lock_with_key:lFe,key:cFe,old_key:dFe,hammer:uFe,axe:pFe,pick:fFe,hammer_and_pick:_Fe,hammer_and_wrench:mFe,dagger:hFe,crossed_swords:gFe,gun:bFe,boomerang:yFe,bow_and_arrow:vFe,shield:EFe,carpentry_saw:SFe,wrench:TFe,screwdriver:xFe,nut_and_bolt:CFe,gear:wFe,clamp:RFe,balance_scale:AFe,probing_cane:MFe,link:NFe,chains:OFe,hook:IFe,toolbox:kFe,magnet:DFe,ladder:LFe,alembic:PFe,test_tube:FFe,petri_dish:UFe,dna:BFe,microscope:GFe,telescope:VFe,satellite:zFe,syringe:HFe,drop_of_blood:qFe,pill:YFe,adhesive_bandage:$Fe,stethoscope:WFe,door:KFe,elevator:jFe,mirror:QFe,window:XFe,bed:ZFe,couch_and_lamp:JFe,chair:eUe,toilet:tUe,plunger:nUe,shower:sUe,bathtub:rUe,mouse_trap:iUe,razor:oUe,lotion_bottle:aUe,safety_pin:lUe,broom:cUe,basket:dUe,roll_of_paper:uUe,bucket:pUe,soap:fUe,toothbrush:_Ue,sponge:mUe,fire_extinguisher:hUe,shopping_cart:gUe,smoking:bUe,coffin:yUe,headstone:vUe,funeral_urn:EUe,moyai:SUe,placard:TUe,atm:xUe,put_litter_in_its_place:CUe,potable_water:wUe,wheelchair:RUe,mens:AUe,womens:MUe,restroom:NUe,baby_symbol:OUe,wc:IUe,passport_control:kUe,customs:DUe,baggage_claim:LUe,left_luggage:PUe,warning:FUe,children_crossing:UUe,no_entry:BUe,no_entry_sign:GUe,no_bicycles:VUe,no_smoking:zUe,do_not_litter:HUe,"non-potable_water":"🚱",no_pedestrians:qUe,no_mobile_phones:YUe,underage:$Ue,radioactive:WUe,biohazard:KUe,arrow_up:jUe,arrow_upper_right:QUe,arrow_right:XUe,arrow_lower_right:ZUe,arrow_down:JUe,arrow_lower_left:eBe,arrow_left:tBe,arrow_upper_left:nBe,arrow_up_down:sBe,left_right_arrow:rBe,leftwards_arrow_with_hook:iBe,arrow_right_hook:oBe,arrow_heading_up:aBe,arrow_heading_down:lBe,arrows_clockwise:cBe,arrows_counterclockwise:dBe,back:uBe,end:pBe,on:fBe,soon:_Be,top:mBe,place_of_worship:hBe,atom_symbol:gBe,om:bBe,star_of_david:yBe,wheel_of_dharma:vBe,yin_yang:EBe,latin_cross:SBe,orthodox_cross:TBe,star_and_crescent:xBe,peace_symbol:CBe,menorah:wBe,six_pointed_star:RBe,aries:ABe,taurus:MBe,gemini:NBe,cancer:OBe,leo:IBe,virgo:kBe,libra:DBe,scorpius:LBe,sagittarius:PBe,capricorn:FBe,aquarius:UBe,pisces:BBe,ophiuchus:GBe,twisted_rightwards_arrows:VBe,repeat:zBe,repeat_one:HBe,arrow_forward:qBe,fast_forward:YBe,next_track_button:$Be,play_or_pause_button:WBe,arrow_backward:KBe,rewind:jBe,previous_track_button:QBe,arrow_up_small:XBe,arrow_double_up:ZBe,arrow_down_small:JBe,arrow_double_down:e6e,pause_button:t6e,stop_button:n6e,record_button:s6e,eject_button:r6e,cinema:i6e,low_brightness:o6e,high_brightness:a6e,signal_strength:l6e,vibration_mode:c6e,mobile_phone_off:d6e,female_sign:u6e,male_sign:p6e,transgender_symbol:f6e,heavy_multiplication_x:_6e,heavy_plus_sign:m6e,heavy_minus_sign:h6e,heavy_division_sign:g6e,infinity:b6e,bangbang:y6e,interrobang:v6e,question:E6e,grey_question:S6e,grey_exclamation:T6e,exclamation:x6e,heavy_exclamation_mark:C6e,wavy_dash:w6e,currency_exchange:R6e,heavy_dollar_sign:A6e,medical_symbol:M6e,recycle:N6e,fleur_de_lis:O6e,trident:I6e,name_badge:k6e,beginner:D6e,o:L6e,white_check_mark:P6e,ballot_box_with_check:F6e,heavy_check_mark:U6e,x:B6e,negative_squared_cross_mark:G6e,curly_loop:V6e,loop:z6e,part_alternation_mark:H6e,eight_spoked_asterisk:q6e,eight_pointed_black_star:Y6e,sparkle:$6e,copyright:W6e,registered:K6e,tm:j6e,hash:Q6e,asterisk:X6e,zero:Z6e,one:J6e,two:e9e,three:t9e,four:n9e,five:s9e,six:r9e,seven:i9e,eight:o9e,nine:a9e,keycap_ten:l9e,capital_abcd:c9e,abcd:d9e,symbols:u9e,abc:p9e,a:f9e,ab:_9e,b:m9e,cl:h9e,cool:g9e,free:b9e,information_source:y9e,id:v9e,m:E9e,new:"🆕",ng:S9e,o2:T9e,ok:x9e,parking:C9e,sos:w9e,up:R9e,vs:A9e,koko:M9e,sa:N9e,ideograph_advantage:O9e,accept:I9e,congratulations:k9e,secret:D9e,u6e80:L9e,red_circle:P9e,orange_circle:F9e,yellow_circle:U9e,green_circle:B9e,large_blue_circle:G9e,purple_circle:V9e,brown_circle:z9e,black_circle:H9e,white_circle:q9e,red_square:Y9e,orange_square:$9e,yellow_square:W9e,green_square:K9e,blue_square:j9e,purple_square:Q9e,brown_square:X9e,black_large_square:Z9e,white_large_square:J9e,black_medium_square:e8e,white_medium_square:t8e,black_medium_small_square:n8e,white_medium_small_square:s8e,black_small_square:r8e,white_small_square:i8e,large_orange_diamond:o8e,large_blue_diamond:a8e,small_orange_diamond:l8e,small_blue_diamond:c8e,small_red_triangle:d8e,small_red_triangle_down:u8e,diamond_shape_with_a_dot_inside:p8e,radio_button:f8e,white_square_button:_8e,black_square_button:m8e,checkered_flag:h8e,triangular_flag_on_post:g8e,crossed_flags:b8e,black_flag:y8e,white_flag:v8e,rainbow_flag:E8e,transgender_flag:S8e,pirate_flag:T8e,ascension_island:x8e,andorra:C8e,united_arab_emirates:w8e,afghanistan:R8e,antigua_barbuda:A8e,anguilla:M8e,albania:N8e,armenia:O8e,angola:I8e,antarctica:k8e,argentina:D8e,american_samoa:L8e,austria:P8e,australia:F8e,aruba:U8e,aland_islands:B8e,azerbaijan:G8e,bosnia_herzegovina:V8e,barbados:z8e,bangladesh:H8e,belgium:q8e,burkina_faso:Y8e,bulgaria:$8e,bahrain:W8e,burundi:K8e,benin:j8e,st_barthelemy:Q8e,bermuda:X8e,brunei:Z8e,bolivia:J8e,caribbean_netherlands:eGe,brazil:tGe,bahamas:nGe,bhutan:sGe,bouvet_island:rGe,botswana:iGe,belarus:oGe,belize:aGe,canada:lGe,cocos_islands:cGe,congo_kinshasa:dGe,central_african_republic:uGe,congo_brazzaville:pGe,switzerland:fGe,cote_divoire:_Ge,cook_islands:mGe,chile:hGe,cameroon:gGe,cn:bGe,colombia:yGe,clipperton_island:vGe,costa_rica:EGe,cuba:SGe,cape_verde:TGe,curacao:xGe,christmas_island:CGe,cyprus:wGe,czech_republic:RGe,de:AGe,diego_garcia:MGe,djibouti:NGe,denmark:OGe,dominica:IGe,dominican_republic:kGe,algeria:DGe,ceuta_melilla:LGe,ecuador:PGe,estonia:FGe,egypt:UGe,western_sahara:BGe,eritrea:GGe,es:VGe,ethiopia:zGe,eu:HGe,european_union:qGe,finland:YGe,fiji:$Ge,falkland_islands:WGe,micronesia:KGe,faroe_islands:jGe,fr:QGe,gabon:XGe,gb:ZGe,uk:JGe,grenada:e7e,georgia:t7e,french_guiana:n7e,guernsey:s7e,ghana:r7e,gibraltar:i7e,greenland:o7e,gambia:a7e,guinea:l7e,guadeloupe:c7e,equatorial_guinea:d7e,greece:u7e,south_georgia_south_sandwich_islands:p7e,guatemala:f7e,guam:_7e,guinea_bissau:m7e,guyana:h7e,hong_kong:g7e,heard_mcdonald_islands:b7e,honduras:y7e,croatia:v7e,haiti:E7e,hungary:S7e,canary_islands:T7e,indonesia:x7e,ireland:C7e,israel:w7e,isle_of_man:R7e,india:A7e,british_indian_ocean_territory:M7e,iraq:N7e,iran:O7e,iceland:I7e,it:k7e,jersey:D7e,jamaica:L7e,jordan:P7e,jp:F7e,kenya:U7e,kyrgyzstan:B7e,cambodia:G7e,kiribati:V7e,comoros:z7e,st_kitts_nevis:H7e,north_korea:q7e,kr:Y7e,kuwait:$7e,cayman_islands:W7e,kazakhstan:K7e,laos:j7e,lebanon:Q7e,st_lucia:X7e,liechtenstein:Z7e,sri_lanka:J7e,liberia:eVe,lesotho:tVe,lithuania:nVe,luxembourg:sVe,latvia:rVe,libya:iVe,morocco:oVe,monaco:aVe,moldova:lVe,montenegro:cVe,st_martin:dVe,madagascar:uVe,marshall_islands:pVe,macedonia:fVe,mali:_Ve,myanmar:mVe,mongolia:hVe,macau:gVe,northern_mariana_islands:bVe,martinique:yVe,mauritania:vVe,montserrat:EVe,malta:SVe,mauritius:TVe,maldives:xVe,malawi:CVe,mexico:wVe,malaysia:RVe,mozambique:AVe,namibia:MVe,new_caledonia:NVe,niger:OVe,norfolk_island:IVe,nigeria:kVe,nicaragua:DVe,netherlands:LVe,norway:PVe,nepal:FVe,nauru:UVe,niue:BVe,new_zealand:GVe,oman:VVe,panama:zVe,peru:HVe,french_polynesia:qVe,papua_new_guinea:YVe,philippines:$Ve,pakistan:WVe,poland:KVe,st_pierre_miquelon:jVe,pitcairn_islands:QVe,puerto_rico:XVe,palestinian_territories:ZVe,portugal:JVe,palau:eze,paraguay:tze,qatar:nze,reunion:sze,romania:rze,serbia:ize,ru:oze,rwanda:aze,saudi_arabia:lze,solomon_islands:cze,seychelles:dze,sudan:uze,sweden:pze,singapore:fze,st_helena:_ze,slovenia:mze,svalbard_jan_mayen:hze,slovakia:gze,sierra_leone:bze,san_marino:yze,senegal:vze,somalia:Eze,suriname:Sze,south_sudan:Tze,sao_tome_principe:xze,el_salvador:Cze,sint_maarten:wze,syria:Rze,swaziland:Aze,tristan_da_cunha:Mze,turks_caicos_islands:Nze,chad:Oze,french_southern_territories:Ize,togo:kze,thailand:Dze,tajikistan:Lze,tokelau:Pze,timor_leste:Fze,turkmenistan:Uze,tunisia:Bze,tonga:Gze,tr:Vze,trinidad_tobago:zze,tuvalu:Hze,taiwan:qze,tanzania:Yze,ukraine:$ze,uganda:Wze,us_outlying_islands:Kze,united_nations:jze,us:Qze,uruguay:Xze,uzbekistan:Zze,vatican_city:Jze,st_vincent_grenadines:eHe,venezuela:tHe,british_virgin_islands:nHe,us_virgin_islands:sHe,vietnam:rHe,vanuatu:iHe,wallis_futuna:oHe,samoa:aHe,kosovo:lHe,yemen:cHe,mayotte:dHe,south_africa:uHe,zambia:pHe,zimbabwe:fHe,england:_He,scotland:mHe,wales:hHe};var bHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(v[b-1])||b+y.lengthg&&(h=new m("text","",0),h.content=u.slice(g,b),f.push(h)),h=new m("emoji","",0),h.markup=E,h.content=t[E],f.push(h),g=b+y.length}),g=0;m--)y=f[m],(y.type==="link_open"||y.type==="link_close")&&y.info==="auto"&&(v-=y.nesting),y.type==="text"&&v===0&&r.test(y.content)&&(b[h].children=f=o(f,m,d(y.content,y.level,_.Token)))}};function EHe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var SHe=function(e){var t=e.defs,s;e.enabled.length&&(t=Object.keys(t).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=t[d]),c},{})),s=Object.keys(e.shortcuts).reduce(function(c,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var r=Object.keys(t),i;r.length===0?i="^$":i=r.map(function(c){return":"+c+":"}).concat(Object.keys(s)).sort().reverse().map(function(c){return EHe(c)}).join("|");var o=RegExp(i),a=RegExp(i,"g");return{defs:t,shortcuts:s,scanRE:o,replaceRE:a}},THe=yHe,xHe=vHe,CHe=SHe,wHe=function(e,t){var s={defs:{},shortcuts:{},enabled:[]},r=CHe(e.utils.assign({},s,t||{}));e.renderer.rules.emoji=THe,e.core.ruler.after("linkify","emoji",xHe(e,r.defs,r.shortcuts,r.scanRE,r.replaceRE))},RHe=gHe,AHe=bHe,MHe=wHe,NHe=function(e,t){var s={defs:RHe,shortcuts:AHe,enabled:[]},r=e.utils.assign({},s,t||{});MHe(e,r)};const OHe=wi(NHe);var jE=!1,fa={false:"push",true:"unshift",after:"push",before:"unshift"},eu={isPermalinkSymbol:!0};function Zg(n,e,t,s){var r;if(!jE){var i="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(i):console.warn(i),jE=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:eu}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[s+1].children[fa[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(r=t.tokens[s+1].children)[fa[e.permalinkBefore]].apply(r,o)}function sM(n){return"#"+n}function rM(n){return{}}var IHe={class:"header-anchor",symbol:"#",renderHref:sM,renderAttrs:rM};function lc(n){function e(t){return t=Object.assign({},e.defaults,t),function(s,r,i,o){return n(s,t,r,i,o)}}return e.defaults=Object.assign({},IHe),e.renderPermalinkImpl=n,e}var sp=lc(function(n,e,t,s,r){var i,o=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[r+1].children[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(i=s.tokens[r+1].children)[fa[e.placement]].apply(i,o)});Object.assign(sp.defaults,{space:!0,placement:"after",ariaHidden:!1});var Gi=lc(sp.renderPermalinkImpl);Gi.defaults=Object.assign({},sp.defaults,{ariaHidden:!0});var iM=lc(function(n,e,t,s,r){var i=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],Object.entries(e.renderAttrs(n,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[r+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[r+1]=Object.assign(new s.Token("inline","",0),{children:i})});Object.assign(iM.defaults,{safariReaderFix:!1});var QE=lc(function(n,e,t,s,r){var i;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=s.tokens[r+1].children.filter(function(_){return _.type==="text"||_.type==="code_inline"}).reduce(function(_,m){return _+m.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(n,s)]),c.push.apply(c,Object.entries(e.renderAttrs(n,s))),e.style==="visually-hidden"){if(a.push(Object.assign(new s.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new s.Token("text","",0),{content:e.assistiveText(o)}),new s.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[fa[e.placement]](Object.assign(new s.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,n]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:c})].concat(a,[new s.Token("link_close","a",-1)]);(i=s.tokens).splice.apply(i,[r+3,0].concat(u)),e.wrapper&&(s.tokens.splice(r,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` +`,o.map=[t,e.line],!0},kge=function(e,t,s,r){var i,o,a,c,d,u,_,m=!1,h=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>g||(i=e.src.charCodeAt(h),i!==126&&i!==96)||(d=h,h=e.skipChars(h,i),o=h-d,o<3)||(_=e.src.slice(d,h),a=e.src.slice(h,g),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(c=t;c++,!(c>=s||(h=d=e.bMarks[c]+e.tShift[c],g=e.eMarks[c],h=4)&&(h=e.skipChars(h,i),!(h-d=4||e.src.charCodeAt(M)!==62)return!1;if(r)return!0;for(g=[],f=[],v=[],E=[],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",m=t;m=G));m++){if(e.src.charCodeAt(M++)===62&&!I){for(c=e.sCount[m]+1,e.src.charCodeAt(M)===32?(M++,c++,i=!1,S=!0):e.src.charCodeAt(M)===9?(S=!0,(e.bsCount[m]+c)%4===3?(M++,c++,i=!1):i=!0):S=!1,h=c,g.push(e.bMarks[m]),e.bMarks[m]=M;M=G,f.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),v.push(e.sCount[m]),e.sCount[m]=h-c,E.push(e.tShift[m]),e.tShift[m]=M-e.bMarks[m];continue}if(u)break;for(R=!1,a=0,d=w.length;a",A.map=_=[t,0],e.md.block.tokenize(e,t,m),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=C,e.parentType=b,_[1]=e.line,a=0;a=4||(i=e.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(o=1;d=i||(t=n.src.charCodeAt(r++),t<48||t>57))return-1;for(;;){if(r>=i)return-1;if(t=n.src.charCodeAt(r++),t>=48&&t<=57){if(r-s>=10)return-1;continue}if(t===41||t===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]=e.blkIndent&&(L=!0),(M=kE(e,q))>=0){if(_=!0,V=e.bMarks[q]+e.tShift[q],b=Number(e.src.slice(V,M-1)),L&&b!==1)return!1}else if((M=IE(e,q))>=0)_=!1;else return!1;if(L&&e.skipSpaces(M)>=e.eMarks[q])return!1;if(r)return!0;for(y=e.src.charCodeAt(M-1),f=e.tokens.length,_?(H=e.push("ordered_list_open","ol",1),b!==1&&(H.attrs=[["start",b]])):H=e.push("bullet_list_open","ul",1),H.map=g=[q,0],H.markup=String.fromCharCode(y),G=!1,O=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q=v?d=1:d=E-u,d>4&&(d=1),c=u+d,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(y),H.map=m=[q,0],_&&(H.info=e.src.slice(V,M-1)),I=e.tight,A=e.tShift[q],w=e.sCount[q],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[q]=o-e.bMarks[q],e.sCount[q]=E,o>=v&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,q,s,!0),(!e.tight||G)&&(W=!1),G=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=w,e.tight=I,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(y),q=e.line,m[1]=q,q>=s||e.sCount[q]=4)break;for(ee=!1,a=0,h=O.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[I]<0)){for(v=!1,u=0,_=E.length;u<_;u++)if(E[u](e,I,c,!0)){v=!0;break}if(v)break}for(b=e.getLines(t,I,e.blkIndent,!1).trim(),A=b.length,w=1;w"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:S,href:d}),e.parentType=g,e.line=t+R+1),!0)},zge=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xu={},Hge="[a-zA-Z_:][a-zA-Z0-9:._-]*",qge="[^\"'=<>`\\x00-\\x20]+",Yge="'[^']*'",$ge='"[^"]*"',Wge="(?:"+qge+"|"+Yge+"|"+$ge+")",Kge="(?:\\s+"+Hge+"(?:\\s*=\\s*"+Wge+")?)",HA="<[A-Za-z][A-Za-z0-9\\-]*"+Kge+"*\\s*\\/?>",qA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",jge="|",Qge="<[?][\\s\\S]*?[?]>",Xge="]*>",Zge="",Jge=new RegExp("^(?:"+HA+"|"+qA+"|"+jge+"|"+Qge+"|"+Xge+"|"+Zge+")"),ebe=new RegExp("^(?:"+HA+"|"+qA+")");Xu.HTML_TAG_RE=Jge;Xu.HTML_OPEN_CLOSE_TAG_RE=ebe;var tbe=zge,nbe=Xu.HTML_OPEN_CLOSE_TAG_RE,Co=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(nbe.source+"\\s*$"),/^$/,!1]],sbe=function(e,t,s,r){var i,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),i=0;i=4||(i=e.src.charCodeAt(d),i!==35||d>=u))return!1;for(o=1,i=e.src.charCodeAt(++d);i===35&&d6||dd&&DE(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[t,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[t,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},ibe=function(e,t,s){var r,i,o,a,c,d,u,_,m,h=t+1,g,f=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(g=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(d=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],d=u)))){_=m===61?1:2;break}if(!(e.sCount[h]<0)){for(i=!1,o=0,a=f.length;o3)&&!(e.sCount[u]<0)){for(i=!1,o=0,a=_.length;o0&&this.level++,this.tokens.push(s),s};pr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};pr.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Zu(this.src.charCodeAt(--e)))return e+1;return e};pr.prototype.skipChars=function(e,t){for(var s=this.src.length;es;)if(t!==this.src.charCodeAt(--e))return e+1;return e};pr.prototype.getLines=function(e,t,s,r){var i,o,a,c,d,u,_,m=e;if(e>=t)return"";for(u=new Array(t-e),i=0;ms?u[i]=new Array(o-s+1).join(" ")+this.src.slice(c,d):u[i]=this.src.slice(c,d)}return u.join("")};pr.prototype.Token=YA;var abe=pr,lbe=u0,Ic=[["table",Oge,["paragraph","reference"]],["code",Ige],["fence",kge,["paragraph","reference","blockquote","list"]],["blockquote",Lge,["paragraph","reference","blockquote","list"]],["hr",Fge,["paragraph","reference","blockquote","list"]],["list",Bge,["paragraph","reference","blockquote"]],["reference",Vge],["html_block",sbe,["paragraph","reference","blockquote"]],["heading",rbe,["paragraph","reference","blockquote"]],["lheading",ibe],["paragraph",obe]];function Ju(){this.ruler=new lbe;for(var n=0;n=t||n.sCount[c]=u){n.line=t;break}for(i=n.line,r=0;r=n.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),c=n.line,c0||(s=e.pos,r=e.posMax,s+3>r)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(i=e.pending.match(pbe),!i)||(o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(s-o.length)),!a)||(c=a.url,c.length<=o.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-o.length,!0)},_be=Dt.isSpace,mbe=function(e,t){var s,r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,r=e.posMax,!t)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(i=s-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){_0[n.charCodeAt(0)]=1});var gbe=function(e,t){var s,r,i,o,a,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(s=e.src.charCodeAt(c),s===10){for(t||e.push("hardbreak","br",0),c++;c=55296&&s<=56319&&c+1=56320&&r<=57343&&(o+=e.src[c+1],c++)),i="\\"+o,t||(a=e.push("text_special","",0),s<256&&_0[s]!==0?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0},bbe=function(e,t){var s,r,i,o,a,c,d,u,_=e.pos,m=e.src.charCodeAt(_);if(m!==96)return!1;for(s=_,_++,r=e.posMax;_=0;t--)s=e[t],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(r=e[s.end],a=t>0&&e[t-1].end===s.end+1&&e[t-1].marker===s.marker&&e[t-1].token===s.token-1&&e[s.end+1].token===r.token+1,o=String.fromCharCode(s.marker),i=n.tokens[s.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=n.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[s.end+1].token].content="",t--))}tp.postProcess=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for(FE(e,e.delimiters),t=0;t=f)return!1;if(y=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?c=d.pos:m="",y=c;c=f||e.src.charCodeAt(c)!==41)&&(b=!0),c++}if(b){if(typeof e.env.references>"u")return!1;if(c=0?i=e.src.slice(y,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),u=e.env.references[ybe(i)],!u)return e.pos=g,!1;m=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,_=e.push("link_open","a",1),_.attrs=s=[["href",m]],h&&s.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,_=e.push("link_close","a",-1)),e.pos=c,e.posMax=f,!0},Ebe=Dt.normalizeReference,nf=Dt.isSpace,Sbe=function(e,t){var s,r,i,o,a,c,d,u,_,m,h,g,f,y="",b=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=v)return!1;for(f=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok&&(y=e.md.normalizeLink(_.str),e.md.validateLink(y)?d=_.pos:y=""),f=d;d=v||e.src.charCodeAt(d)!==41)return e.pos=b,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(f,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[Ebe(o)],!u)return e.pos=b,!1;y=u.href,m=u.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,g=[]),h=e.push("image","img",0),h.attrs=s=[["src",y],["alt",""]],h.children=g,h.content=i,m&&s.push(["title",m])),e.pos=d,e.posMax=v,!0},Tbe=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,xbe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Cbe=function(e,t){var s,r,i,o,a,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,c=e.posMax;;){if(++d>=c||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return s=e.src.slice(a+1,d),xbe.test(s)?(r=e.md.normalizeLink(s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):Tbe.test(s)?(r=e.md.normalizeLink("mailto:"+s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):!1},wbe=Xu.HTML_TAG_RE;function Rbe(n){return/^\s]/i.test(n)}function Abe(n){return/^<\/a\s*>/i.test(n)}function Mbe(n){var e=n|32;return e>=97&&e<=122}var Nbe=function(e,t){var s,r,i,o,a=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Mbe(s))||(r=e.src.slice(a).match(wbe),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],Rbe(o.content)&&e.linkLevel++,Abe(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},UE=PA,Obe=Dt.has,Ibe=Dt.isValidEntityCode,BE=Dt.fromCodePoint,kbe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Dbe=/^&([a-z][a-z0-9]{1,31});/i,Lbe=function(e,t){var s,r,i,o,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=c)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(i=e.src.slice(a).match(kbe),i)return t||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0),o.content=Ibe(r)?BE(r):BE(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(Dbe),i&&Obe(UE,i[1]))return t||(o=e.push("text_special","",0),o.content=UE[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0;return!1};function GE(n){var e,t,s,r,i,o,a,c,d={},u=n.length;if(u){var _=0,m=-2,h=[];for(e=0;ei;t-=h[t]+1)if(r=n[t],r.marker===s.marker&&r.open&&r.end<0&&(a=!1,(r.close||s.open)&&(r.length+s.length)%3===0&&(r.length%3!==0||s.length%3!==0)&&(a=!0),!a)){c=t>0&&!n[t-1].open?h[t-1]+1:0,h[e]=e-t+c,h[t]=c,s.open=!1,r.end=e,r.close=!1,o=-1,m=-2;break}o!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var Pbe=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for(GE(e.delimiters),t=0;t0&&r++,i[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(r),s};oc.prototype.scanDelims=function(n,e){var t=n,s,r,i,o,a,c,d,u,_,m=!0,h=!0,g=this.posMax,f=this.src.charCodeAt(n);for(s=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[s]=n.pos};ac.prototype.tokenize=function(n){for(var e,t,s,r=this.ruler.getRules(""),i=r.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};ac.prototype.parse=function(n,e,t,s){var r,i,o,a=new this.State(n,e,t,s);for(this.tokenize(a),i=this.ruler2.getRules(""),o=i.length,r=0;r|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),of}function Qg(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(s){n[s]=t[s]})}),n}function np(n){return Object.prototype.toString.call(n)}function Vbe(n){return np(n)==="[object String]"}function zbe(n){return np(n)==="[object Object]"}function Hbe(n){return np(n)==="[object RegExp]"}function $E(n){return np(n)==="[object Function]"}function qbe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var $A={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ybe(n){return Object.keys(n||{}).reduce(function(e,t){return e||$A.hasOwnProperty(t)},!1)}var $be={"http:":{validate:function(n,e,t){var s=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(s)?s.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var s=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(s)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:s.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var s=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(s)?s.match(t.re.mailto)[0].length:0}}},Wbe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Kbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function jbe(n){n.__index__=-1,n.__text_cache__=""}function Qbe(n){return function(e,t){var s=e.slice(t);return n.test(s)?s.match(n)[0].length:0}}function WE(){return function(n,e){e.normalize(n)}}function Jd(n){var e=n.re=Gbe()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(Wbe),t.push(e.src_xn),e.src_tlds=t.join("|");function s(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var r=[];n.__compiled__={};function i(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(n.__schemas__).forEach(function(a){var c=n.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,zbe(c)){Hbe(c.validate)?d.validate=Qbe(c.validate):$E(c.validate)?d.validate=c.validate:i(a,c),$E(c.normalize)?d.normalize=c.normalize:c.normalize?i(a,c):d.normalize=WE();return}if(Vbe(c)){r.push(a);return}i(a,c)}}),r.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:WE()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(qbe).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),jbe(n)}function Xbe(n,e){var t=n.__index__,s=n.__last_index__,r=n.__text_cache__.slice(t,s);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=s+e,this.raw=r,this.text=r,this.url=r}function Xg(n,e){var t=new Xbe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function ls(n,e){if(!(this instanceof ls))return new ls(n,e);e||Ybe(n)&&(e=n,n={}),this.__opts__=Qg({},$A,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Qg({},$be,n),this.__compiled__={},this.__tlds__=Kbe,this.__tlds_replaced__=!1,this.re={},Jd(this)}ls.prototype.add=function(e,t){return this.__schemas__[e]=t,Jd(this),this};ls.prototype.set=function(e){return this.__opts__=Qg(this.__opts__,e),this};ls.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,s,r,i,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],c.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ls.prototype.pretest=function(e){return this.re.pretest.test(e)};ls.prototype.testSchemaAt=function(e,t,s){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,s,this):0};ls.prototype.match=function(e){var t=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(Xg(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)s.push(Xg(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return s.length?s:null};ls.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var s=this.testSchemaAt(e,t[2],t[0].length);return s?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s,Xg(this,0)):null};ls.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,r,i){return s!==i[r-1]}).reverse(),Jd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jd(this),this)};ls.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ls.prototype.onCompile=function(){};var Zbe=ls;const sa=2147483647,nr=36,h0=1,Yl=26,Jbe=38,e0e=700,WA=72,KA=128,jA="-",t0e=/^xn--/,n0e=/[^\0-\x7F]/,s0e=/[\x2E\u3002\uFF0E\uFF61]/g,r0e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},af=nr-h0,sr=Math.floor,lf=String.fromCharCode;function ii(n){throw new RangeError(r0e[n])}function i0e(n,e){const t=[];let s=n.length;for(;s--;)t[s]=e(n[s]);return t}function QA(n,e){const t=n.split("@");let s="";t.length>1&&(s=t[0]+"@",n=t[1]),n=n.replace(s0e,".");const r=n.split("."),i=i0e(r,e).join(".");return s+i}function g0(n){const e=[];let t=0;const s=n.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...n),o0e=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:nr},KE=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},ZA=function(n,e,t){let s=0;for(n=t?sr(n/e0e):n>>1,n+=sr(n/e);n>af*Yl>>1;s+=nr)n=sr(n/af);return sr(s+(af+1)*n/(n+Jbe))},b0=function(n){const e=[],t=n.length;let s=0,r=KA,i=WA,o=n.lastIndexOf(jA);o<0&&(o=0);for(let a=0;a=128&&ii("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&ii("invalid-input");const m=o0e(n.charCodeAt(a++));m>=nr&&ii("invalid-input"),m>sr((sa-s)/u)&&ii("overflow"),s+=m*u;const h=_<=i?h0:_>=i+Yl?Yl:_-i;if(msr(sa/g)&&ii("overflow"),u*=g}const d=e.length+1;i=ZA(s-c,d,c==0),sr(s/d)>sa-r&&ii("overflow"),r+=sr(s/d),s%=d,e.splice(s++,0,r)}return String.fromCodePoint(...e)},y0=function(n){const e=[];n=g0(n);const t=n.length;let s=KA,r=0,i=WA;for(const c of n)c<128&&e.push(lf(c));const o=e.length;let a=o;for(o&&e.push(jA);a=s&&usr((sa-r)/d)&&ii("overflow"),r+=(c-s)*d,s=c;for(const u of n)if(usa&&ii("overflow"),u===s){let _=r;for(let m=nr;;m+=nr){const h=m<=i?h0:m>=i+Yl?Yl:m-i;if(_=0))try{e.hostname=tM.toASCII(e.hostname)}catch{}return Ki.encode(Ki.format(e))}function x0e(n){var e=Ki.parse(n,!0);if(e.hostname&&(!e.protocol||nM.indexOf(e.protocol)>=0))try{e.hostname=tM.toUnicode(e.hostname)}catch{}return Ki.decode(Ki.format(e),Ki.decode.defaultChars+"%")}function Rs(n,e){if(!(this instanceof Rs))return new Rs(n,e);e||Cl.isString(n)||(e=n||{},n="default"),this.inline=new g0e,this.block=new h0e,this.core=new m0e,this.renderer=new _0e,this.linkify=new b0e,this.validateLink=S0e,this.normalizeLink=T0e,this.normalizeLinkText=x0e,this.utils=Cl,this.helpers=Cl.assign({},f0e),this.options={},this.configure(n),e&&this.set(e)}Rs.prototype.set=function(n){return Cl.assign(this.options,n),this};Rs.prototype.configure=function(n){var e=this,t;if(Cl.isString(n)&&(t=n,n=y0e[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(s){n.components[s].rules&&e[s].ruler.enableOnly(n.components[s].rules),n.components[s].rules2&&e[s].ruler2.enableOnly(n.components[s].rules2)}),this};Rs.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Rs.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Rs.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Rs.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Rs.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Rs.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Rs.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var C0e=Rs,w0e=C0e;const R0e=wi(w0e),A0e="😀",M0e="😃",N0e="😄",O0e="😁",I0e="😆",k0e="😆",D0e="😅",L0e="🤣",P0e="😂",F0e="🙂",U0e="🙃",B0e="😉",G0e="😊",V0e="😇",z0e="🥰",H0e="😍",q0e="🤩",Y0e="😘",$0e="😗",W0e="☺️",K0e="😚",j0e="😙",Q0e="🥲",X0e="😋",Z0e="😛",J0e="😜",eye="🤪",tye="😝",nye="🤑",sye="🤗",rye="🤭",iye="🤫",oye="🤔",aye="🤐",lye="🤨",cye="😐",dye="😑",uye="😶",pye="😏",fye="😒",_ye="🙄",mye="😬",hye="🤥",gye="😌",bye="😔",yye="😪",vye="🤤",Eye="😴",Sye="😷",Tye="🤒",xye="🤕",Cye="🤢",wye="🤮",Rye="🤧",Aye="🥵",Mye="🥶",Nye="🥴",Oye="😵",Iye="🤯",kye="🤠",Dye="🥳",Lye="🥸",Pye="😎",Fye="🤓",Uye="🧐",Bye="😕",Gye="😟",Vye="🙁",zye="☹️",Hye="😮",qye="😯",Yye="😲",$ye="😳",Wye="🥺",Kye="😦",jye="😧",Qye="😨",Xye="😰",Zye="😥",Jye="😢",eve="😭",tve="😱",nve="😖",sve="😣",rve="😞",ive="😓",ove="😩",ave="😫",lve="🥱",cve="😤",dve="😡",uve="😡",pve="😠",fve="🤬",_ve="😈",mve="👿",hve="💀",gve="☠️",bve="💩",yve="💩",vve="💩",Eve="🤡",Sve="👹",Tve="👺",xve="👻",Cve="👽",wve="👾",Rve="🤖",Ave="😺",Mve="😸",Nve="😹",Ove="😻",Ive="😼",kve="😽",Dve="🙀",Lve="😿",Pve="😾",Fve="🙈",Uve="🙉",Bve="🙊",Gve="💋",Vve="💌",zve="💘",Hve="💝",qve="💖",Yve="💗",$ve="💓",Wve="💞",Kve="💕",jve="💟",Qve="❣️",Xve="💔",Zve="❤️",Jve="🧡",eEe="💛",tEe="💚",nEe="💙",sEe="💜",rEe="🤎",iEe="🖤",oEe="🤍",aEe="💢",lEe="💥",cEe="💥",dEe="💫",uEe="💦",pEe="💨",fEe="🕳️",_Ee="💣",mEe="💬",hEe="👁️‍🗨️",gEe="🗨️",bEe="🗯️",yEe="💭",vEe="💤",EEe="👋",SEe="🤚",TEe="🖐️",xEe="✋",CEe="✋",wEe="🖖",REe="👌",AEe="🤌",MEe="🤏",NEe="✌️",OEe="🤞",IEe="🤟",kEe="🤘",DEe="🤙",LEe="👈",PEe="👉",FEe="👆",UEe="🖕",BEe="🖕",GEe="👇",VEe="☝️",zEe="👍",HEe="👎",qEe="✊",YEe="✊",$Ee="👊",WEe="👊",KEe="👊",jEe="🤛",QEe="🤜",XEe="👏",ZEe="🙌",JEe="👐",eSe="🤲",tSe="🤝",nSe="🙏",sSe="✍️",rSe="💅",iSe="🤳",oSe="💪",aSe="🦾",lSe="🦿",cSe="🦵",dSe="🦶",uSe="👂",pSe="🦻",fSe="👃",_Se="🧠",mSe="🫀",hSe="🫁",gSe="🦷",bSe="🦴",ySe="👀",vSe="👁️",ESe="👅",SSe="👄",TSe="👶",xSe="🧒",CSe="👦",wSe="👧",RSe="🧑",ASe="👱",MSe="👨",NSe="🧔",OSe="👨‍🦰",ISe="👨‍🦱",kSe="👨‍🦳",DSe="👨‍🦲",LSe="👩",PSe="👩‍🦰",FSe="🧑‍🦰",USe="👩‍🦱",BSe="🧑‍🦱",GSe="👩‍🦳",VSe="🧑‍🦳",zSe="👩‍🦲",HSe="🧑‍🦲",qSe="👱‍♀️",YSe="👱‍♀️",$Se="👱‍♂️",WSe="🧓",KSe="👴",jSe="👵",QSe="🙍",XSe="🙍‍♂️",ZSe="🙍‍♀️",JSe="🙎",e1e="🙎‍♂️",t1e="🙎‍♀️",n1e="🙅",s1e="🙅‍♂️",r1e="🙅‍♂️",i1e="🙅‍♀️",o1e="🙅‍♀️",a1e="🙆",l1e="🙆‍♂️",c1e="🙆‍♀️",d1e="💁",u1e="💁",p1e="💁‍♂️",f1e="💁‍♂️",_1e="💁‍♀️",m1e="💁‍♀️",h1e="🙋",g1e="🙋‍♂️",b1e="🙋‍♀️",y1e="🧏",v1e="🧏‍♂️",E1e="🧏‍♀️",S1e="🙇",T1e="🙇‍♂️",x1e="🙇‍♀️",C1e="🤦",w1e="🤦‍♂️",R1e="🤦‍♀️",A1e="🤷",M1e="🤷‍♂️",N1e="🤷‍♀️",O1e="🧑‍⚕️",I1e="👨‍⚕️",k1e="👩‍⚕️",D1e="🧑‍🎓",L1e="👨‍🎓",P1e="👩‍🎓",F1e="🧑‍🏫",U1e="👨‍🏫",B1e="👩‍🏫",G1e="🧑‍⚖️",V1e="👨‍⚖️",z1e="👩‍⚖️",H1e="🧑‍🌾",q1e="👨‍🌾",Y1e="👩‍🌾",$1e="🧑‍🍳",W1e="👨‍🍳",K1e="👩‍🍳",j1e="🧑‍🔧",Q1e="👨‍🔧",X1e="👩‍🔧",Z1e="🧑‍🏭",J1e="👨‍🏭",eTe="👩‍🏭",tTe="🧑‍💼",nTe="👨‍💼",sTe="👩‍💼",rTe="🧑‍🔬",iTe="👨‍🔬",oTe="👩‍🔬",aTe="🧑‍💻",lTe="👨‍💻",cTe="👩‍💻",dTe="🧑‍🎤",uTe="👨‍🎤",pTe="👩‍🎤",fTe="🧑‍🎨",_Te="👨‍🎨",mTe="👩‍🎨",hTe="🧑‍✈️",gTe="👨‍✈️",bTe="👩‍✈️",yTe="🧑‍🚀",vTe="👨‍🚀",ETe="👩‍🚀",STe="🧑‍🚒",TTe="👨‍🚒",xTe="👩‍🚒",CTe="👮",wTe="👮",RTe="👮‍♂️",ATe="👮‍♀️",MTe="🕵️",NTe="🕵️‍♂️",OTe="🕵️‍♀️",ITe="💂",kTe="💂‍♂️",DTe="💂‍♀️",LTe="🥷",PTe="👷",FTe="👷‍♂️",UTe="👷‍♀️",BTe="🤴",GTe="👸",VTe="👳",zTe="👳‍♂️",HTe="👳‍♀️",qTe="👲",YTe="🧕",$Te="🤵",WTe="🤵‍♂️",KTe="🤵‍♀️",jTe="👰",QTe="👰‍♂️",XTe="👰‍♀️",ZTe="👰‍♀️",JTe="🤰",exe="🤱",txe="👩‍🍼",nxe="👨‍🍼",sxe="🧑‍🍼",rxe="👼",ixe="🎅",oxe="🤶",axe="🧑‍🎄",lxe="🦸",cxe="🦸‍♂️",dxe="🦸‍♀️",uxe="🦹",pxe="🦹‍♂️",fxe="🦹‍♀️",_xe="🧙",mxe="🧙‍♂️",hxe="🧙‍♀️",gxe="🧚",bxe="🧚‍♂️",yxe="🧚‍♀️",vxe="🧛",Exe="🧛‍♂️",Sxe="🧛‍♀️",Txe="🧜",xxe="🧜‍♂️",Cxe="🧜‍♀️",wxe="🧝",Rxe="🧝‍♂️",Axe="🧝‍♀️",Mxe="🧞",Nxe="🧞‍♂️",Oxe="🧞‍♀️",Ixe="🧟",kxe="🧟‍♂️",Dxe="🧟‍♀️",Lxe="💆",Pxe="💆‍♂️",Fxe="💆‍♀️",Uxe="💇",Bxe="💇‍♂️",Gxe="💇‍♀️",Vxe="🚶",zxe="🚶‍♂️",Hxe="🚶‍♀️",qxe="🧍",Yxe="🧍‍♂️",$xe="🧍‍♀️",Wxe="🧎",Kxe="🧎‍♂️",jxe="🧎‍♀️",Qxe="🧑‍🦯",Xxe="👨‍🦯",Zxe="👩‍🦯",Jxe="🧑‍🦼",eCe="👨‍🦼",tCe="👩‍🦼",nCe="🧑‍🦽",sCe="👨‍🦽",rCe="👩‍🦽",iCe="🏃",oCe="🏃",aCe="🏃‍♂️",lCe="🏃‍♀️",cCe="💃",dCe="💃",uCe="🕺",pCe="🕴️",fCe="👯",_Ce="👯‍♂️",mCe="👯‍♀️",hCe="🧖",gCe="🧖‍♂️",bCe="🧖‍♀️",yCe="🧗",vCe="🧗‍♂️",ECe="🧗‍♀️",SCe="🤺",TCe="🏇",xCe="⛷️",CCe="🏂",wCe="🏌️",RCe="🏌️‍♂️",ACe="🏌️‍♀️",MCe="🏄",NCe="🏄‍♂️",OCe="🏄‍♀️",ICe="🚣",kCe="🚣‍♂️",DCe="🚣‍♀️",LCe="🏊",PCe="🏊‍♂️",FCe="🏊‍♀️",UCe="⛹️",BCe="⛹️‍♂️",GCe="⛹️‍♂️",VCe="⛹️‍♀️",zCe="⛹️‍♀️",HCe="🏋️",qCe="🏋️‍♂️",YCe="🏋️‍♀️",$Ce="🚴",WCe="🚴‍♂️",KCe="🚴‍♀️",jCe="🚵",QCe="🚵‍♂️",XCe="🚵‍♀️",ZCe="🤸",JCe="🤸‍♂️",ewe="🤸‍♀️",twe="🤼",nwe="🤼‍♂️",swe="🤼‍♀️",rwe="🤽",iwe="🤽‍♂️",owe="🤽‍♀️",awe="🤾",lwe="🤾‍♂️",cwe="🤾‍♀️",dwe="🤹",uwe="🤹‍♂️",pwe="🤹‍♀️",fwe="🧘",_we="🧘‍♂️",mwe="🧘‍♀️",hwe="🛀",gwe="🛌",bwe="🧑‍🤝‍🧑",ywe="👭",vwe="👫",Ewe="👬",Swe="💏",Twe="👩‍❤️‍💋‍👨",xwe="👨‍❤️‍💋‍👨",Cwe="👩‍❤️‍💋‍👩",wwe="💑",Rwe="👩‍❤️‍👨",Awe="👨‍❤️‍👨",Mwe="👩‍❤️‍👩",Nwe="👪",Owe="👨‍👩‍👦",Iwe="👨‍👩‍👧",kwe="👨‍👩‍👧‍👦",Dwe="👨‍👩‍👦‍👦",Lwe="👨‍👩‍👧‍👧",Pwe="👨‍👨‍👦",Fwe="👨‍👨‍👧",Uwe="👨‍👨‍👧‍👦",Bwe="👨‍👨‍👦‍👦",Gwe="👨‍👨‍👧‍👧",Vwe="👩‍👩‍👦",zwe="👩‍👩‍👧",Hwe="👩‍👩‍👧‍👦",qwe="👩‍👩‍👦‍👦",Ywe="👩‍👩‍👧‍👧",$we="👨‍👦",Wwe="👨‍👦‍👦",Kwe="👨‍👧",jwe="👨‍👧‍👦",Qwe="👨‍👧‍👧",Xwe="👩‍👦",Zwe="👩‍👦‍👦",Jwe="👩‍👧",e2e="👩‍👧‍👦",t2e="👩‍👧‍👧",n2e="🗣️",s2e="👤",r2e="👥",i2e="🫂",o2e="👣",a2e="🐵",l2e="🐒",c2e="🦍",d2e="🦧",u2e="🐶",p2e="🐕",f2e="🦮",_2e="🐕‍🦺",m2e="🐩",h2e="🐺",g2e="🦊",b2e="🦝",y2e="🐱",v2e="🐈",E2e="🐈‍⬛",S2e="🦁",T2e="🐯",x2e="🐅",C2e="🐆",w2e="🐴",R2e="🐎",A2e="🦄",M2e="🦓",N2e="🦌",O2e="🦬",I2e="🐮",k2e="🐂",D2e="🐃",L2e="🐄",P2e="🐷",F2e="🐖",U2e="🐗",B2e="🐽",G2e="🐏",V2e="🐑",z2e="🐐",H2e="🐪",q2e="🐫",Y2e="🦙",$2e="🦒",W2e="🐘",K2e="🦣",j2e="🦏",Q2e="🦛",X2e="🐭",Z2e="🐁",J2e="🐀",eRe="🐹",tRe="🐰",nRe="🐇",sRe="🐿️",rRe="🦫",iRe="🦔",oRe="🦇",aRe="🐻",lRe="🐻‍❄️",cRe="🐨",dRe="🐼",uRe="🦥",pRe="🦦",fRe="🦨",_Re="🦘",mRe="🦡",hRe="🐾",gRe="🐾",bRe="🦃",yRe="🐔",vRe="🐓",ERe="🐣",SRe="🐤",TRe="🐥",xRe="🐦",CRe="🐧",wRe="🕊️",RRe="🦅",ARe="🦆",MRe="🦢",NRe="🦉",ORe="🦤",IRe="🪶",kRe="🦩",DRe="🦚",LRe="🦜",PRe="🐸",FRe="🐊",URe="🐢",BRe="🦎",GRe="🐍",VRe="🐲",zRe="🐉",HRe="🦕",qRe="🐳",YRe="🐋",$Re="🐬",WRe="🐬",KRe="🦭",jRe="🐟",QRe="🐠",XRe="🐡",ZRe="🦈",JRe="🐙",eAe="🐚",tAe="🐌",nAe="🦋",sAe="🐛",rAe="🐜",iAe="🐝",oAe="🐝",aAe="🪲",lAe="🐞",cAe="🦗",dAe="🪳",uAe="🕷️",pAe="🕸️",fAe="🦂",_Ae="🦟",mAe="🪰",hAe="🪱",gAe="🦠",bAe="💐",yAe="🌸",vAe="💮",EAe="🏵️",SAe="🌹",TAe="🥀",xAe="🌺",CAe="🌻",wAe="🌼",RAe="🌷",AAe="🌱",MAe="🪴",NAe="🌲",OAe="🌳",IAe="🌴",kAe="🌵",DAe="🌾",LAe="🌿",PAe="☘️",FAe="🍀",UAe="🍁",BAe="🍂",GAe="🍃",VAe="🍇",zAe="🍈",HAe="🍉",qAe="🍊",YAe="🍊",$Ae="🍊",WAe="🍋",KAe="🍌",jAe="🍍",QAe="🥭",XAe="🍎",ZAe="🍏",JAe="🍐",eMe="🍑",tMe="🍒",nMe="🍓",sMe="🫐",rMe="🥝",iMe="🍅",oMe="🫒",aMe="🥥",lMe="🥑",cMe="🍆",dMe="🥔",uMe="🥕",pMe="🌽",fMe="🌶️",_Me="🫑",mMe="🥒",hMe="🥬",gMe="🥦",bMe="🧄",yMe="🧅",vMe="🍄",EMe="🥜",SMe="🌰",TMe="🍞",xMe="🥐",CMe="🥖",wMe="🫓",RMe="🥨",AMe="🥯",MMe="🥞",NMe="🧇",OMe="🧀",IMe="🍖",kMe="🍗",DMe="🥩",LMe="🥓",PMe="🍔",FMe="🍟",UMe="🍕",BMe="🌭",GMe="🥪",VMe="🌮",zMe="🌯",HMe="🫔",qMe="🥙",YMe="🧆",$Me="🥚",WMe="🍳",KMe="🥘",jMe="🍲",QMe="🫕",XMe="🥣",ZMe="🥗",JMe="🍿",eNe="🧈",tNe="🧂",nNe="🥫",sNe="🍱",rNe="🍘",iNe="🍙",oNe="🍚",aNe="🍛",lNe="🍜",cNe="🍝",dNe="🍠",uNe="🍢",pNe="🍣",fNe="🍤",_Ne="🍥",mNe="🥮",hNe="🍡",gNe="🥟",bNe="🥠",yNe="🥡",vNe="🦀",ENe="🦞",SNe="🦐",TNe="🦑",xNe="🦪",CNe="🍦",wNe="🍧",RNe="🍨",ANe="🍩",MNe="🍪",NNe="🎂",ONe="🍰",INe="🧁",kNe="🥧",DNe="🍫",LNe="🍬",PNe="🍭",FNe="🍮",UNe="🍯",BNe="🍼",GNe="🥛",VNe="☕",zNe="🫖",HNe="🍵",qNe="🍶",YNe="🍾",$Ne="🍷",WNe="🍸",KNe="🍹",jNe="🍺",QNe="🍻",XNe="🥂",ZNe="🥃",JNe="🥤",eOe="🧋",tOe="🧃",nOe="🧉",sOe="🧊",rOe="🥢",iOe="🍽️",oOe="🍴",aOe="🥄",lOe="🔪",cOe="🔪",dOe="🏺",uOe="🌍",pOe="🌎",fOe="🌏",_Oe="🌐",mOe="🗺️",hOe="🗾",gOe="🧭",bOe="🏔️",yOe="⛰️",vOe="🌋",EOe="🗻",SOe="🏕️",TOe="🏖️",xOe="🏜️",COe="🏝️",wOe="🏞️",ROe="🏟️",AOe="🏛️",MOe="🏗️",NOe="🧱",OOe="🪨",IOe="🪵",kOe="🛖",DOe="🏘️",LOe="🏚️",POe="🏠",FOe="🏡",UOe="🏢",BOe="🏣",GOe="🏤",VOe="🏥",zOe="🏦",HOe="🏨",qOe="🏩",YOe="🏪",$Oe="🏫",WOe="🏬",KOe="🏭",jOe="🏯",QOe="🏰",XOe="💒",ZOe="🗼",JOe="🗽",eIe="⛪",tIe="🕌",nIe="🛕",sIe="🕍",rIe="⛩️",iIe="🕋",oIe="⛲",aIe="⛺",lIe="🌁",cIe="🌃",dIe="🏙️",uIe="🌄",pIe="🌅",fIe="🌆",_Ie="🌇",mIe="🌉",hIe="♨️",gIe="🎠",bIe="🎡",yIe="🎢",vIe="💈",EIe="🎪",SIe="🚂",TIe="🚃",xIe="🚄",CIe="🚅",wIe="🚆",RIe="🚇",AIe="🚈",MIe="🚉",NIe="🚊",OIe="🚝",IIe="🚞",kIe="🚋",DIe="🚌",LIe="🚍",PIe="🚎",FIe="🚐",UIe="🚑",BIe="🚒",GIe="🚓",VIe="🚔",zIe="🚕",HIe="🚖",qIe="🚗",YIe="🚗",$Ie="🚘",WIe="🚙",KIe="🛻",jIe="🚚",QIe="🚛",XIe="🚜",ZIe="🏎️",JIe="🏍️",eke="🛵",tke="🦽",nke="🦼",ske="🛺",rke="🚲",ike="🛴",oke="🛹",ake="🛼",lke="🚏",cke="🛣️",dke="🛤️",uke="🛢️",pke="⛽",fke="🚨",_ke="🚥",mke="🚦",hke="🛑",gke="🚧",bke="⚓",yke="⛵",vke="⛵",Eke="🛶",Ske="🚤",Tke="🛳️",xke="⛴️",Cke="🛥️",wke="🚢",Rke="✈️",Ake="🛩️",Mke="🛫",Nke="🛬",Oke="🪂",Ike="💺",kke="🚁",Dke="🚟",Lke="🚠",Pke="🚡",Fke="🛰️",Uke="🚀",Bke="🛸",Gke="🛎️",Vke="🧳",zke="⌛",Hke="⏳",qke="⌚",Yke="⏰",$ke="⏱️",Wke="⏲️",Kke="🕰️",jke="🕛",Qke="🕧",Xke="🕐",Zke="🕜",Jke="🕑",eDe="🕝",tDe="🕒",nDe="🕞",sDe="🕓",rDe="🕟",iDe="🕔",oDe="🕠",aDe="🕕",lDe="🕡",cDe="🕖",dDe="🕢",uDe="🕗",pDe="🕣",fDe="🕘",_De="🕤",mDe="🕙",hDe="🕥",gDe="🕚",bDe="🕦",yDe="🌑",vDe="🌒",EDe="🌓",SDe="🌔",TDe="🌔",xDe="🌕",CDe="🌖",wDe="🌗",RDe="🌘",ADe="🌙",MDe="🌚",NDe="🌛",ODe="🌜",IDe="🌡️",kDe="☀️",DDe="🌝",LDe="🌞",PDe="🪐",FDe="⭐",UDe="🌟",BDe="🌠",GDe="🌌",VDe="☁️",zDe="⛅",HDe="⛈️",qDe="🌤️",YDe="🌥️",$De="🌦️",WDe="🌧️",KDe="🌨️",jDe="🌩️",QDe="🌪️",XDe="🌫️",ZDe="🌬️",JDe="🌀",eLe="🌈",tLe="🌂",nLe="☂️",sLe="☔",rLe="⛱️",iLe="⚡",oLe="❄️",aLe="☃️",lLe="⛄",cLe="☄️",dLe="🔥",uLe="💧",pLe="🌊",fLe="🎃",_Le="🎄",mLe="🎆",hLe="🎇",gLe="🧨",bLe="✨",yLe="🎈",vLe="🎉",ELe="🎊",SLe="🎋",TLe="🎍",xLe="🎎",CLe="🎏",wLe="🎐",RLe="🎑",ALe="🧧",MLe="🎀",NLe="🎁",OLe="🎗️",ILe="🎟️",kLe="🎫",DLe="🎖️",LLe="🏆",PLe="🏅",FLe="⚽",ULe="⚾",BLe="🥎",GLe="🏀",VLe="🏐",zLe="🏈",HLe="🏉",qLe="🎾",YLe="🥏",$Le="🎳",WLe="🏏",KLe="🏑",jLe="🏒",QLe="🥍",XLe="🏓",ZLe="🏸",JLe="🥊",ePe="🥋",tPe="🥅",nPe="⛳",sPe="⛸️",rPe="🎣",iPe="🤿",oPe="🎽",aPe="🎿",lPe="🛷",cPe="🥌",dPe="🎯",uPe="🪀",pPe="🪁",fPe="🔮",_Pe="🪄",mPe="🧿",hPe="🎮",gPe="🕹️",bPe="🎰",yPe="🎲",vPe="🧩",EPe="🧸",SPe="🪅",TPe="🪆",xPe="♠️",CPe="♥️",wPe="♦️",RPe="♣️",APe="♟️",MPe="🃏",NPe="🀄",OPe="🎴",IPe="🎭",kPe="🖼️",DPe="🎨",LPe="🧵",PPe="🪡",FPe="🧶",UPe="🪢",BPe="👓",GPe="🕶️",VPe="🥽",zPe="🥼",HPe="🦺",qPe="👔",YPe="👕",$Pe="👕",WPe="👖",KPe="🧣",jPe="🧤",QPe="🧥",XPe="🧦",ZPe="👗",JPe="👘",e3e="🥻",t3e="🩱",n3e="🩲",s3e="🩳",r3e="👙",i3e="👚",o3e="👛",a3e="👜",l3e="👝",c3e="🛍️",d3e="🎒",u3e="🩴",p3e="👞",f3e="👞",_3e="👟",m3e="🥾",h3e="🥿",g3e="👠",b3e="👡",y3e="🩰",v3e="👢",E3e="👑",S3e="👒",T3e="🎩",x3e="🎓",C3e="🧢",w3e="🪖",R3e="⛑️",A3e="📿",M3e="💄",N3e="💍",O3e="💎",I3e="🔇",k3e="🔈",D3e="🔉",L3e="🔊",P3e="📢",F3e="📣",U3e="📯",B3e="🔔",G3e="🔕",V3e="🎼",z3e="🎵",H3e="🎶",q3e="🎙️",Y3e="🎚️",$3e="🎛️",W3e="🎤",K3e="🎧",j3e="📻",Q3e="🎷",X3e="🪗",Z3e="🎸",J3e="🎹",e4e="🎺",t4e="🎻",n4e="🪕",s4e="🥁",r4e="🪘",i4e="📱",o4e="📲",a4e="☎️",l4e="☎️",c4e="📞",d4e="📟",u4e="📠",p4e="🔋",f4e="🔌",_4e="💻",m4e="🖥️",h4e="🖨️",g4e="⌨️",b4e="🖱️",y4e="🖲️",v4e="💽",E4e="💾",S4e="💿",T4e="📀",x4e="🧮",C4e="🎥",w4e="🎞️",R4e="📽️",A4e="🎬",M4e="📺",N4e="📷",O4e="📸",I4e="📹",k4e="📼",D4e="🔍",L4e="🔎",P4e="🕯️",F4e="💡",U4e="🔦",B4e="🏮",G4e="🏮",V4e="🪔",z4e="📔",H4e="📕",q4e="📖",Y4e="📖",$4e="📗",W4e="📘",K4e="📙",j4e="📚",Q4e="📓",X4e="📒",Z4e="📃",J4e="📜",e5e="📄",t5e="📰",n5e="🗞️",s5e="📑",r5e="🔖",i5e="🏷️",o5e="💰",a5e="🪙",l5e="💴",c5e="💵",d5e="💶",u5e="💷",p5e="💸",f5e="💳",_5e="🧾",m5e="💹",h5e="✉️",g5e="📧",b5e="📨",y5e="📩",v5e="📤",E5e="📥",S5e="📫",T5e="📪",x5e="📬",C5e="📭",w5e="📮",R5e="🗳️",A5e="✏️",M5e="✒️",N5e="🖋️",O5e="🖊️",I5e="🖌️",k5e="🖍️",D5e="📝",L5e="📝",P5e="💼",F5e="📁",U5e="📂",B5e="🗂️",G5e="📅",V5e="📆",z5e="🗒️",H5e="🗓️",q5e="📇",Y5e="📈",$5e="📉",W5e="📊",K5e="📋",j5e="📌",Q5e="📍",X5e="📎",Z5e="🖇️",J5e="📏",eFe="📐",tFe="✂️",nFe="🗃️",sFe="🗄️",rFe="🗑️",iFe="🔒",oFe="🔓",aFe="🔏",lFe="🔐",cFe="🔑",dFe="🗝️",uFe="🔨",pFe="🪓",fFe="⛏️",_Fe="⚒️",mFe="🛠️",hFe="🗡️",gFe="⚔️",bFe="🔫",yFe="🪃",vFe="🏹",EFe="🛡️",SFe="🪚",TFe="🔧",xFe="🪛",CFe="🔩",wFe="⚙️",RFe="🗜️",AFe="⚖️",MFe="🦯",NFe="🔗",OFe="⛓️",IFe="🪝",kFe="🧰",DFe="🧲",LFe="🪜",PFe="⚗️",FFe="🧪",UFe="🧫",BFe="🧬",GFe="🔬",VFe="🔭",zFe="📡",HFe="💉",qFe="🩸",YFe="💊",$Fe="🩹",WFe="🩺",KFe="🚪",jFe="🛗",QFe="🪞",XFe="🪟",ZFe="🛏️",JFe="🛋️",eUe="🪑",tUe="🚽",nUe="🪠",sUe="🚿",rUe="🛁",iUe="🪤",oUe="🪒",aUe="🧴",lUe="🧷",cUe="🧹",dUe="🧺",uUe="🧻",pUe="🪣",fUe="🧼",_Ue="🪥",mUe="🧽",hUe="🧯",gUe="🛒",bUe="🚬",yUe="⚰️",vUe="🪦",EUe="⚱️",SUe="🗿",TUe="🪧",xUe="🏧",CUe="🚮",wUe="🚰",RUe="♿",AUe="🚹",MUe="🚺",NUe="🚻",OUe="🚼",IUe="🚾",kUe="🛂",DUe="🛃",LUe="🛄",PUe="🛅",FUe="⚠️",UUe="🚸",BUe="⛔",GUe="🚫",VUe="🚳",zUe="🚭",HUe="🚯",qUe="🚷",YUe="📵",$Ue="🔞",WUe="☢️",KUe="☣️",jUe="⬆️",QUe="↗️",XUe="➡️",ZUe="↘️",JUe="⬇️",eBe="↙️",tBe="⬅️",nBe="↖️",sBe="↕️",rBe="↔️",iBe="↩️",oBe="↪️",aBe="⤴️",lBe="⤵️",cBe="🔃",dBe="🔄",uBe="🔙",pBe="🔚",fBe="🔛",_Be="🔜",mBe="🔝",hBe="🛐",gBe="⚛️",bBe="🕉️",yBe="✡️",vBe="☸️",EBe="☯️",SBe="✝️",TBe="☦️",xBe="☪️",CBe="☮️",wBe="🕎",RBe="🔯",ABe="♈",MBe="♉",NBe="♊",OBe="♋",IBe="♌",kBe="♍",DBe="♎",LBe="♏",PBe="♐",FBe="♑",UBe="♒",BBe="♓",GBe="⛎",VBe="🔀",zBe="🔁",HBe="🔂",qBe="▶️",YBe="⏩",$Be="⏭️",WBe="⏯️",KBe="◀️",jBe="⏪",QBe="⏮️",XBe="🔼",ZBe="⏫",JBe="🔽",e6e="⏬",t6e="⏸️",n6e="⏹️",s6e="⏺️",r6e="⏏️",i6e="🎦",o6e="🔅",a6e="🔆",l6e="📶",c6e="📳",d6e="📴",u6e="♀️",p6e="♂️",f6e="⚧️",_6e="✖️",m6e="➕",h6e="➖",g6e="➗",b6e="♾️",y6e="‼️",v6e="⁉️",E6e="❓",S6e="❔",T6e="❕",x6e="❗",C6e="❗",w6e="〰️",R6e="💱",A6e="💲",M6e="⚕️",N6e="♻️",O6e="⚜️",I6e="🔱",k6e="📛",D6e="🔰",L6e="⭕",P6e="✅",F6e="☑️",U6e="✔️",B6e="❌",G6e="❎",V6e="➰",z6e="➿",H6e="〽️",q6e="✳️",Y6e="✴️",$6e="❇️",W6e="©️",K6e="®️",j6e="™️",Q6e="#️⃣",X6e="*️⃣",Z6e="0️⃣",J6e="1️⃣",e9e="2️⃣",t9e="3️⃣",n9e="4️⃣",s9e="5️⃣",r9e="6️⃣",i9e="7️⃣",o9e="8️⃣",a9e="9️⃣",l9e="🔟",c9e="🔠",d9e="🔡",u9e="🔣",p9e="🔤",f9e="🅰️",_9e="🆎",m9e="🅱️",h9e="🆑",g9e="🆒",b9e="🆓",y9e="ℹ️",v9e="🆔",E9e="Ⓜ️",S9e="🆖",T9e="🅾️",x9e="🆗",C9e="🅿️",w9e="🆘",R9e="🆙",A9e="🆚",M9e="🈁",N9e="🈂️",O9e="🉐",I9e="🉑",k9e="㊗️",D9e="㊙️",L9e="🈵",P9e="🔴",F9e="🟠",U9e="🟡",B9e="🟢",G9e="🔵",V9e="🟣",z9e="🟤",H9e="⚫",q9e="⚪",Y9e="🟥",$9e="🟧",W9e="🟨",K9e="🟩",j9e="🟦",Q9e="🟪",X9e="🟫",Z9e="⬛",J9e="⬜",e8e="◼️",t8e="◻️",n8e="◾",s8e="◽",r8e="▪️",i8e="▫️",o8e="🔶",a8e="🔷",l8e="🔸",c8e="🔹",d8e="🔺",u8e="🔻",p8e="💠",f8e="🔘",_8e="🔳",m8e="🔲",h8e="🏁",g8e="🚩",b8e="🎌",y8e="🏴",v8e="🏳️",E8e="🏳️‍🌈",S8e="🏳️‍⚧️",T8e="🏴‍☠️",x8e="🇦🇨",C8e="🇦🇩",w8e="🇦🇪",R8e="🇦🇫",A8e="🇦🇬",M8e="🇦🇮",N8e="🇦🇱",O8e="🇦🇲",I8e="🇦🇴",k8e="🇦🇶",D8e="🇦🇷",L8e="🇦🇸",P8e="🇦🇹",F8e="🇦🇺",U8e="🇦🇼",B8e="🇦🇽",G8e="🇦🇿",V8e="🇧🇦",z8e="🇧🇧",H8e="🇧🇩",q8e="🇧🇪",Y8e="🇧🇫",$8e="🇧🇬",W8e="🇧🇭",K8e="🇧🇮",j8e="🇧🇯",Q8e="🇧🇱",X8e="🇧🇲",Z8e="🇧🇳",J8e="🇧🇴",eGe="🇧🇶",tGe="🇧🇷",nGe="🇧🇸",sGe="🇧🇹",rGe="🇧🇻",iGe="🇧🇼",oGe="🇧🇾",aGe="🇧🇿",lGe="🇨🇦",cGe="🇨🇨",dGe="🇨🇩",uGe="🇨🇫",pGe="🇨🇬",fGe="🇨🇭",_Ge="🇨🇮",mGe="🇨🇰",hGe="🇨🇱",gGe="🇨🇲",bGe="🇨🇳",yGe="🇨🇴",vGe="🇨🇵",EGe="🇨🇷",SGe="🇨🇺",TGe="🇨🇻",xGe="🇨🇼",CGe="🇨🇽",wGe="🇨🇾",RGe="🇨🇿",AGe="🇩🇪",MGe="🇩🇬",NGe="🇩🇯",OGe="🇩🇰",IGe="🇩🇲",kGe="🇩🇴",DGe="🇩🇿",LGe="🇪🇦",PGe="🇪🇨",FGe="🇪🇪",UGe="🇪🇬",BGe="🇪🇭",GGe="🇪🇷",VGe="🇪🇸",zGe="🇪🇹",HGe="🇪🇺",qGe="🇪🇺",YGe="🇫🇮",$Ge="🇫🇯",WGe="🇫🇰",KGe="🇫🇲",jGe="🇫🇴",QGe="🇫🇷",XGe="🇬🇦",ZGe="🇬🇧",JGe="🇬🇧",e7e="🇬🇩",t7e="🇬🇪",n7e="🇬🇫",s7e="🇬🇬",r7e="🇬🇭",i7e="🇬🇮",o7e="🇬🇱",a7e="🇬🇲",l7e="🇬🇳",c7e="🇬🇵",d7e="🇬🇶",u7e="🇬🇷",p7e="🇬🇸",f7e="🇬🇹",_7e="🇬🇺",m7e="🇬🇼",h7e="🇬🇾",g7e="🇭🇰",b7e="🇭🇲",y7e="🇭🇳",v7e="🇭🇷",E7e="🇭🇹",S7e="🇭🇺",T7e="🇮🇨",x7e="🇮🇩",C7e="🇮🇪",w7e="🇮🇱",R7e="🇮🇲",A7e="🇮🇳",M7e="🇮🇴",N7e="🇮🇶",O7e="🇮🇷",I7e="🇮🇸",k7e="🇮🇹",D7e="🇯🇪",L7e="🇯🇲",P7e="🇯🇴",F7e="🇯🇵",U7e="🇰🇪",B7e="🇰🇬",G7e="🇰🇭",V7e="🇰🇮",z7e="🇰🇲",H7e="🇰🇳",q7e="🇰🇵",Y7e="🇰🇷",$7e="🇰🇼",W7e="🇰🇾",K7e="🇰🇿",j7e="🇱🇦",Q7e="🇱🇧",X7e="🇱🇨",Z7e="🇱🇮",J7e="🇱🇰",eVe="🇱🇷",tVe="🇱🇸",nVe="🇱🇹",sVe="🇱🇺",rVe="🇱🇻",iVe="🇱🇾",oVe="🇲🇦",aVe="🇲🇨",lVe="🇲🇩",cVe="🇲🇪",dVe="🇲🇫",uVe="🇲🇬",pVe="🇲🇭",fVe="🇲🇰",_Ve="🇲🇱",mVe="🇲🇲",hVe="🇲🇳",gVe="🇲🇴",bVe="🇲🇵",yVe="🇲🇶",vVe="🇲🇷",EVe="🇲🇸",SVe="🇲🇹",TVe="🇲🇺",xVe="🇲🇻",CVe="🇲🇼",wVe="🇲🇽",RVe="🇲🇾",AVe="🇲🇿",MVe="🇳🇦",NVe="🇳🇨",OVe="🇳🇪",IVe="🇳🇫",kVe="🇳🇬",DVe="🇳🇮",LVe="🇳🇱",PVe="🇳🇴",FVe="🇳🇵",UVe="🇳🇷",BVe="🇳🇺",GVe="🇳🇿",VVe="🇴🇲",zVe="🇵🇦",HVe="🇵🇪",qVe="🇵🇫",YVe="🇵🇬",$Ve="🇵🇭",WVe="🇵🇰",KVe="🇵🇱",jVe="🇵🇲",QVe="🇵🇳",XVe="🇵🇷",ZVe="🇵🇸",JVe="🇵🇹",eze="🇵🇼",tze="🇵🇾",nze="🇶🇦",sze="🇷🇪",rze="🇷🇴",ize="🇷🇸",oze="🇷🇺",aze="🇷🇼",lze="🇸🇦",cze="🇸🇧",dze="🇸🇨",uze="🇸🇩",pze="🇸🇪",fze="🇸🇬",_ze="🇸🇭",mze="🇸🇮",hze="🇸🇯",gze="🇸🇰",bze="🇸🇱",yze="🇸🇲",vze="🇸🇳",Eze="🇸🇴",Sze="🇸🇷",Tze="🇸🇸",xze="🇸🇹",Cze="🇸🇻",wze="🇸🇽",Rze="🇸🇾",Aze="🇸🇿",Mze="🇹🇦",Nze="🇹🇨",Oze="🇹🇩",Ize="🇹🇫",kze="🇹🇬",Dze="🇹🇭",Lze="🇹🇯",Pze="🇹🇰",Fze="🇹🇱",Uze="🇹🇲",Bze="🇹🇳",Gze="🇹🇴",Vze="🇹🇷",zze="🇹🇹",Hze="🇹🇻",qze="🇹🇼",Yze="🇹🇿",$ze="🇺🇦",Wze="🇺🇬",Kze="🇺🇲",jze="🇺🇳",Qze="🇺🇸",Xze="🇺🇾",Zze="🇺🇿",Jze="🇻🇦",eHe="🇻🇨",tHe="🇻🇪",nHe="🇻🇬",sHe="🇻🇮",rHe="🇻🇳",iHe="🇻🇺",oHe="🇼🇫",aHe="🇼🇸",lHe="🇽🇰",cHe="🇾🇪",dHe="🇾🇹",uHe="🇿🇦",pHe="🇿🇲",fHe="🇿🇼",_He="🏴󠁧󠁢󠁥󠁮󠁧󠁿",mHe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",hHe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",gHe={100:"💯",1234:"🔢",grinning:A0e,smiley:M0e,smile:N0e,grin:O0e,laughing:I0e,satisfied:k0e,sweat_smile:D0e,rofl:L0e,joy:P0e,slightly_smiling_face:F0e,upside_down_face:U0e,wink:B0e,blush:G0e,innocent:V0e,smiling_face_with_three_hearts:z0e,heart_eyes:H0e,star_struck:q0e,kissing_heart:Y0e,kissing:$0e,relaxed:W0e,kissing_closed_eyes:K0e,kissing_smiling_eyes:j0e,smiling_face_with_tear:Q0e,yum:X0e,stuck_out_tongue:Z0e,stuck_out_tongue_winking_eye:J0e,zany_face:eye,stuck_out_tongue_closed_eyes:tye,money_mouth_face:nye,hugs:sye,hand_over_mouth:rye,shushing_face:iye,thinking:oye,zipper_mouth_face:aye,raised_eyebrow:lye,neutral_face:cye,expressionless:dye,no_mouth:uye,smirk:pye,unamused:fye,roll_eyes:_ye,grimacing:mye,lying_face:hye,relieved:gye,pensive:bye,sleepy:yye,drooling_face:vye,sleeping:Eye,mask:Sye,face_with_thermometer:Tye,face_with_head_bandage:xye,nauseated_face:Cye,vomiting_face:wye,sneezing_face:Rye,hot_face:Aye,cold_face:Mye,woozy_face:Nye,dizzy_face:Oye,exploding_head:Iye,cowboy_hat_face:kye,partying_face:Dye,disguised_face:Lye,sunglasses:Pye,nerd_face:Fye,monocle_face:Uye,confused:Bye,worried:Gye,slightly_frowning_face:Vye,frowning_face:zye,open_mouth:Hye,hushed:qye,astonished:Yye,flushed:$ye,pleading_face:Wye,frowning:Kye,anguished:jye,fearful:Qye,cold_sweat:Xye,disappointed_relieved:Zye,cry:Jye,sob:eve,scream:tve,confounded:nve,persevere:sve,disappointed:rve,sweat:ive,weary:ove,tired_face:ave,yawning_face:lve,triumph:cve,rage:dve,pout:uve,angry:pve,cursing_face:fve,smiling_imp:_ve,imp:mve,skull:hve,skull_and_crossbones:gve,hankey:bve,poop:yve,shit:vve,clown_face:Eve,japanese_ogre:Sve,japanese_goblin:Tve,ghost:xve,alien:Cve,space_invader:wve,robot:Rve,smiley_cat:Ave,smile_cat:Mve,joy_cat:Nve,heart_eyes_cat:Ove,smirk_cat:Ive,kissing_cat:kve,scream_cat:Dve,crying_cat_face:Lve,pouting_cat:Pve,see_no_evil:Fve,hear_no_evil:Uve,speak_no_evil:Bve,kiss:Gve,love_letter:Vve,cupid:zve,gift_heart:Hve,sparkling_heart:qve,heartpulse:Yve,heartbeat:$ve,revolving_hearts:Wve,two_hearts:Kve,heart_decoration:jve,heavy_heart_exclamation:Qve,broken_heart:Xve,heart:Zve,orange_heart:Jve,yellow_heart:eEe,green_heart:tEe,blue_heart:nEe,purple_heart:sEe,brown_heart:rEe,black_heart:iEe,white_heart:oEe,anger:aEe,boom:lEe,collision:cEe,dizzy:dEe,sweat_drops:uEe,dash:pEe,hole:fEe,bomb:_Ee,speech_balloon:mEe,eye_speech_bubble:hEe,left_speech_bubble:gEe,right_anger_bubble:bEe,thought_balloon:yEe,zzz:vEe,wave:EEe,raised_back_of_hand:SEe,raised_hand_with_fingers_splayed:TEe,hand:xEe,raised_hand:CEe,vulcan_salute:wEe,ok_hand:REe,pinched_fingers:AEe,pinching_hand:MEe,v:NEe,crossed_fingers:OEe,love_you_gesture:IEe,metal:kEe,call_me_hand:DEe,point_left:LEe,point_right:PEe,point_up_2:FEe,middle_finger:UEe,fu:BEe,point_down:GEe,point_up:VEe,"+1":"👍",thumbsup:zEe,"-1":"👎",thumbsdown:HEe,fist_raised:qEe,fist:YEe,fist_oncoming:$Ee,facepunch:WEe,punch:KEe,fist_left:jEe,fist_right:QEe,clap:XEe,raised_hands:ZEe,open_hands:JEe,palms_up_together:eSe,handshake:tSe,pray:nSe,writing_hand:sSe,nail_care:rSe,selfie:iSe,muscle:oSe,mechanical_arm:aSe,mechanical_leg:lSe,leg:cSe,foot:dSe,ear:uSe,ear_with_hearing_aid:pSe,nose:fSe,brain:_Se,anatomical_heart:mSe,lungs:hSe,tooth:gSe,bone:bSe,eyes:ySe,eye:vSe,tongue:ESe,lips:SSe,baby:TSe,child:xSe,boy:CSe,girl:wSe,adult:RSe,blond_haired_person:ASe,man:MSe,bearded_person:NSe,red_haired_man:OSe,curly_haired_man:ISe,white_haired_man:kSe,bald_man:DSe,woman:LSe,red_haired_woman:PSe,person_red_hair:FSe,curly_haired_woman:USe,person_curly_hair:BSe,white_haired_woman:GSe,person_white_hair:VSe,bald_woman:zSe,person_bald:HSe,blond_haired_woman:qSe,blonde_woman:YSe,blond_haired_man:$Se,older_adult:WSe,older_man:KSe,older_woman:jSe,frowning_person:QSe,frowning_man:XSe,frowning_woman:ZSe,pouting_face:JSe,pouting_man:e1e,pouting_woman:t1e,no_good:n1e,no_good_man:s1e,ng_man:r1e,no_good_woman:i1e,ng_woman:o1e,ok_person:a1e,ok_man:l1e,ok_woman:c1e,tipping_hand_person:d1e,information_desk_person:u1e,tipping_hand_man:p1e,sassy_man:f1e,tipping_hand_woman:_1e,sassy_woman:m1e,raising_hand:h1e,raising_hand_man:g1e,raising_hand_woman:b1e,deaf_person:y1e,deaf_man:v1e,deaf_woman:E1e,bow:S1e,bowing_man:T1e,bowing_woman:x1e,facepalm:C1e,man_facepalming:w1e,woman_facepalming:R1e,shrug:A1e,man_shrugging:M1e,woman_shrugging:N1e,health_worker:O1e,man_health_worker:I1e,woman_health_worker:k1e,student:D1e,man_student:L1e,woman_student:P1e,teacher:F1e,man_teacher:U1e,woman_teacher:B1e,judge:G1e,man_judge:V1e,woman_judge:z1e,farmer:H1e,man_farmer:q1e,woman_farmer:Y1e,cook:$1e,man_cook:W1e,woman_cook:K1e,mechanic:j1e,man_mechanic:Q1e,woman_mechanic:X1e,factory_worker:Z1e,man_factory_worker:J1e,woman_factory_worker:eTe,office_worker:tTe,man_office_worker:nTe,woman_office_worker:sTe,scientist:rTe,man_scientist:iTe,woman_scientist:oTe,technologist:aTe,man_technologist:lTe,woman_technologist:cTe,singer:dTe,man_singer:uTe,woman_singer:pTe,artist:fTe,man_artist:_Te,woman_artist:mTe,pilot:hTe,man_pilot:gTe,woman_pilot:bTe,astronaut:yTe,man_astronaut:vTe,woman_astronaut:ETe,firefighter:STe,man_firefighter:TTe,woman_firefighter:xTe,police_officer:CTe,cop:wTe,policeman:RTe,policewoman:ATe,detective:MTe,male_detective:NTe,female_detective:OTe,guard:ITe,guardsman:kTe,guardswoman:DTe,ninja:LTe,construction_worker:PTe,construction_worker_man:FTe,construction_worker_woman:UTe,prince:BTe,princess:GTe,person_with_turban:VTe,man_with_turban:zTe,woman_with_turban:HTe,man_with_gua_pi_mao:qTe,woman_with_headscarf:YTe,person_in_tuxedo:$Te,man_in_tuxedo:WTe,woman_in_tuxedo:KTe,person_with_veil:jTe,man_with_veil:QTe,woman_with_veil:XTe,bride_with_veil:ZTe,pregnant_woman:JTe,breast_feeding:exe,woman_feeding_baby:txe,man_feeding_baby:nxe,person_feeding_baby:sxe,angel:rxe,santa:ixe,mrs_claus:oxe,mx_claus:axe,superhero:lxe,superhero_man:cxe,superhero_woman:dxe,supervillain:uxe,supervillain_man:pxe,supervillain_woman:fxe,mage:_xe,mage_man:mxe,mage_woman:hxe,fairy:gxe,fairy_man:bxe,fairy_woman:yxe,vampire:vxe,vampire_man:Exe,vampire_woman:Sxe,merperson:Txe,merman:xxe,mermaid:Cxe,elf:wxe,elf_man:Rxe,elf_woman:Axe,genie:Mxe,genie_man:Nxe,genie_woman:Oxe,zombie:Ixe,zombie_man:kxe,zombie_woman:Dxe,massage:Lxe,massage_man:Pxe,massage_woman:Fxe,haircut:Uxe,haircut_man:Bxe,haircut_woman:Gxe,walking:Vxe,walking_man:zxe,walking_woman:Hxe,standing_person:qxe,standing_man:Yxe,standing_woman:$xe,kneeling_person:Wxe,kneeling_man:Kxe,kneeling_woman:jxe,person_with_probing_cane:Qxe,man_with_probing_cane:Xxe,woman_with_probing_cane:Zxe,person_in_motorized_wheelchair:Jxe,man_in_motorized_wheelchair:eCe,woman_in_motorized_wheelchair:tCe,person_in_manual_wheelchair:nCe,man_in_manual_wheelchair:sCe,woman_in_manual_wheelchair:rCe,runner:iCe,running:oCe,running_man:aCe,running_woman:lCe,woman_dancing:cCe,dancer:dCe,man_dancing:uCe,business_suit_levitating:pCe,dancers:fCe,dancing_men:_Ce,dancing_women:mCe,sauna_person:hCe,sauna_man:gCe,sauna_woman:bCe,climbing:yCe,climbing_man:vCe,climbing_woman:ECe,person_fencing:SCe,horse_racing:TCe,skier:xCe,snowboarder:CCe,golfing:wCe,golfing_man:RCe,golfing_woman:ACe,surfer:MCe,surfing_man:NCe,surfing_woman:OCe,rowboat:ICe,rowing_man:kCe,rowing_woman:DCe,swimmer:LCe,swimming_man:PCe,swimming_woman:FCe,bouncing_ball_person:UCe,bouncing_ball_man:BCe,basketball_man:GCe,bouncing_ball_woman:VCe,basketball_woman:zCe,weight_lifting:HCe,weight_lifting_man:qCe,weight_lifting_woman:YCe,bicyclist:$Ce,biking_man:WCe,biking_woman:KCe,mountain_bicyclist:jCe,mountain_biking_man:QCe,mountain_biking_woman:XCe,cartwheeling:ZCe,man_cartwheeling:JCe,woman_cartwheeling:ewe,wrestling:twe,men_wrestling:nwe,women_wrestling:swe,water_polo:rwe,man_playing_water_polo:iwe,woman_playing_water_polo:owe,handball_person:awe,man_playing_handball:lwe,woman_playing_handball:cwe,juggling_person:dwe,man_juggling:uwe,woman_juggling:pwe,lotus_position:fwe,lotus_position_man:_we,lotus_position_woman:mwe,bath:hwe,sleeping_bed:gwe,people_holding_hands:bwe,two_women_holding_hands:ywe,couple:vwe,two_men_holding_hands:Ewe,couplekiss:Swe,couplekiss_man_woman:Twe,couplekiss_man_man:xwe,couplekiss_woman_woman:Cwe,couple_with_heart:wwe,couple_with_heart_woman_man:Rwe,couple_with_heart_man_man:Awe,couple_with_heart_woman_woman:Mwe,family:Nwe,family_man_woman_boy:Owe,family_man_woman_girl:Iwe,family_man_woman_girl_boy:kwe,family_man_woman_boy_boy:Dwe,family_man_woman_girl_girl:Lwe,family_man_man_boy:Pwe,family_man_man_girl:Fwe,family_man_man_girl_boy:Uwe,family_man_man_boy_boy:Bwe,family_man_man_girl_girl:Gwe,family_woman_woman_boy:Vwe,family_woman_woman_girl:zwe,family_woman_woman_girl_boy:Hwe,family_woman_woman_boy_boy:qwe,family_woman_woman_girl_girl:Ywe,family_man_boy:$we,family_man_boy_boy:Wwe,family_man_girl:Kwe,family_man_girl_boy:jwe,family_man_girl_girl:Qwe,family_woman_boy:Xwe,family_woman_boy_boy:Zwe,family_woman_girl:Jwe,family_woman_girl_boy:e2e,family_woman_girl_girl:t2e,speaking_head:n2e,bust_in_silhouette:s2e,busts_in_silhouette:r2e,people_hugging:i2e,footprints:o2e,monkey_face:a2e,monkey:l2e,gorilla:c2e,orangutan:d2e,dog:u2e,dog2:p2e,guide_dog:f2e,service_dog:_2e,poodle:m2e,wolf:h2e,fox_face:g2e,raccoon:b2e,cat:y2e,cat2:v2e,black_cat:E2e,lion:S2e,tiger:T2e,tiger2:x2e,leopard:C2e,horse:w2e,racehorse:R2e,unicorn:A2e,zebra:M2e,deer:N2e,bison:O2e,cow:I2e,ox:k2e,water_buffalo:D2e,cow2:L2e,pig:P2e,pig2:F2e,boar:U2e,pig_nose:B2e,ram:G2e,sheep:V2e,goat:z2e,dromedary_camel:H2e,camel:q2e,llama:Y2e,giraffe:$2e,elephant:W2e,mammoth:K2e,rhinoceros:j2e,hippopotamus:Q2e,mouse:X2e,mouse2:Z2e,rat:J2e,hamster:eRe,rabbit:tRe,rabbit2:nRe,chipmunk:sRe,beaver:rRe,hedgehog:iRe,bat:oRe,bear:aRe,polar_bear:lRe,koala:cRe,panda_face:dRe,sloth:uRe,otter:pRe,skunk:fRe,kangaroo:_Re,badger:mRe,feet:hRe,paw_prints:gRe,turkey:bRe,chicken:yRe,rooster:vRe,hatching_chick:ERe,baby_chick:SRe,hatched_chick:TRe,bird:xRe,penguin:CRe,dove:wRe,eagle:RRe,duck:ARe,swan:MRe,owl:NRe,dodo:ORe,feather:IRe,flamingo:kRe,peacock:DRe,parrot:LRe,frog:PRe,crocodile:FRe,turtle:URe,lizard:BRe,snake:GRe,dragon_face:VRe,dragon:zRe,sauropod:HRe,"t-rex":"🦖",whale:qRe,whale2:YRe,dolphin:$Re,flipper:WRe,seal:KRe,fish:jRe,tropical_fish:QRe,blowfish:XRe,shark:ZRe,octopus:JRe,shell:eAe,snail:tAe,butterfly:nAe,bug:sAe,ant:rAe,bee:iAe,honeybee:oAe,beetle:aAe,lady_beetle:lAe,cricket:cAe,cockroach:dAe,spider:uAe,spider_web:pAe,scorpion:fAe,mosquito:_Ae,fly:mAe,worm:hAe,microbe:gAe,bouquet:bAe,cherry_blossom:yAe,white_flower:vAe,rosette:EAe,rose:SAe,wilted_flower:TAe,hibiscus:xAe,sunflower:CAe,blossom:wAe,tulip:RAe,seedling:AAe,potted_plant:MAe,evergreen_tree:NAe,deciduous_tree:OAe,palm_tree:IAe,cactus:kAe,ear_of_rice:DAe,herb:LAe,shamrock:PAe,four_leaf_clover:FAe,maple_leaf:UAe,fallen_leaf:BAe,leaves:GAe,grapes:VAe,melon:zAe,watermelon:HAe,tangerine:qAe,orange:YAe,mandarin:$Ae,lemon:WAe,banana:KAe,pineapple:jAe,mango:QAe,apple:XAe,green_apple:ZAe,pear:JAe,peach:eMe,cherries:tMe,strawberry:nMe,blueberries:sMe,kiwi_fruit:rMe,tomato:iMe,olive:oMe,coconut:aMe,avocado:lMe,eggplant:cMe,potato:dMe,carrot:uMe,corn:pMe,hot_pepper:fMe,bell_pepper:_Me,cucumber:mMe,leafy_green:hMe,broccoli:gMe,garlic:bMe,onion:yMe,mushroom:vMe,peanuts:EMe,chestnut:SMe,bread:TMe,croissant:xMe,baguette_bread:CMe,flatbread:wMe,pretzel:RMe,bagel:AMe,pancakes:MMe,waffle:NMe,cheese:OMe,meat_on_bone:IMe,poultry_leg:kMe,cut_of_meat:DMe,bacon:LMe,hamburger:PMe,fries:FMe,pizza:UMe,hotdog:BMe,sandwich:GMe,taco:VMe,burrito:zMe,tamale:HMe,stuffed_flatbread:qMe,falafel:YMe,egg:$Me,fried_egg:WMe,shallow_pan_of_food:KMe,stew:jMe,fondue:QMe,bowl_with_spoon:XMe,green_salad:ZMe,popcorn:JMe,butter:eNe,salt:tNe,canned_food:nNe,bento:sNe,rice_cracker:rNe,rice_ball:iNe,rice:oNe,curry:aNe,ramen:lNe,spaghetti:cNe,sweet_potato:dNe,oden:uNe,sushi:pNe,fried_shrimp:fNe,fish_cake:_Ne,moon_cake:mNe,dango:hNe,dumpling:gNe,fortune_cookie:bNe,takeout_box:yNe,crab:vNe,lobster:ENe,shrimp:SNe,squid:TNe,oyster:xNe,icecream:CNe,shaved_ice:wNe,ice_cream:RNe,doughnut:ANe,cookie:MNe,birthday:NNe,cake:ONe,cupcake:INe,pie:kNe,chocolate_bar:DNe,candy:LNe,lollipop:PNe,custard:FNe,honey_pot:UNe,baby_bottle:BNe,milk_glass:GNe,coffee:VNe,teapot:zNe,tea:HNe,sake:qNe,champagne:YNe,wine_glass:$Ne,cocktail:WNe,tropical_drink:KNe,beer:jNe,beers:QNe,clinking_glasses:XNe,tumbler_glass:ZNe,cup_with_straw:JNe,bubble_tea:eOe,beverage_box:tOe,mate:nOe,ice_cube:sOe,chopsticks:rOe,plate_with_cutlery:iOe,fork_and_knife:oOe,spoon:aOe,hocho:lOe,knife:cOe,amphora:dOe,earth_africa:uOe,earth_americas:pOe,earth_asia:fOe,globe_with_meridians:_Oe,world_map:mOe,japan:hOe,compass:gOe,mountain_snow:bOe,mountain:yOe,volcano:vOe,mount_fuji:EOe,camping:SOe,beach_umbrella:TOe,desert:xOe,desert_island:COe,national_park:wOe,stadium:ROe,classical_building:AOe,building_construction:MOe,bricks:NOe,rock:OOe,wood:IOe,hut:kOe,houses:DOe,derelict_house:LOe,house:POe,house_with_garden:FOe,office:UOe,post_office:BOe,european_post_office:GOe,hospital:VOe,bank:zOe,hotel:HOe,love_hotel:qOe,convenience_store:YOe,school:$Oe,department_store:WOe,factory:KOe,japanese_castle:jOe,european_castle:QOe,wedding:XOe,tokyo_tower:ZOe,statue_of_liberty:JOe,church:eIe,mosque:tIe,hindu_temple:nIe,synagogue:sIe,shinto_shrine:rIe,kaaba:iIe,fountain:oIe,tent:aIe,foggy:lIe,night_with_stars:cIe,cityscape:dIe,sunrise_over_mountains:uIe,sunrise:pIe,city_sunset:fIe,city_sunrise:_Ie,bridge_at_night:mIe,hotsprings:hIe,carousel_horse:gIe,ferris_wheel:bIe,roller_coaster:yIe,barber:vIe,circus_tent:EIe,steam_locomotive:SIe,railway_car:TIe,bullettrain_side:xIe,bullettrain_front:CIe,train2:wIe,metro:RIe,light_rail:AIe,station:MIe,tram:NIe,monorail:OIe,mountain_railway:IIe,train:kIe,bus:DIe,oncoming_bus:LIe,trolleybus:PIe,minibus:FIe,ambulance:UIe,fire_engine:BIe,police_car:GIe,oncoming_police_car:VIe,taxi:zIe,oncoming_taxi:HIe,car:qIe,red_car:YIe,oncoming_automobile:$Ie,blue_car:WIe,pickup_truck:KIe,truck:jIe,articulated_lorry:QIe,tractor:XIe,racing_car:ZIe,motorcycle:JIe,motor_scooter:eke,manual_wheelchair:tke,motorized_wheelchair:nke,auto_rickshaw:ske,bike:rke,kick_scooter:ike,skateboard:oke,roller_skate:ake,busstop:lke,motorway:cke,railway_track:dke,oil_drum:uke,fuelpump:pke,rotating_light:fke,traffic_light:_ke,vertical_traffic_light:mke,stop_sign:hke,construction:gke,anchor:bke,boat:yke,sailboat:vke,canoe:Eke,speedboat:Ske,passenger_ship:Tke,ferry:xke,motor_boat:Cke,ship:wke,airplane:Rke,small_airplane:Ake,flight_departure:Mke,flight_arrival:Nke,parachute:Oke,seat:Ike,helicopter:kke,suspension_railway:Dke,mountain_cableway:Lke,aerial_tramway:Pke,artificial_satellite:Fke,rocket:Uke,flying_saucer:Bke,bellhop_bell:Gke,luggage:Vke,hourglass:zke,hourglass_flowing_sand:Hke,watch:qke,alarm_clock:Yke,stopwatch:$ke,timer_clock:Wke,mantelpiece_clock:Kke,clock12:jke,clock1230:Qke,clock1:Xke,clock130:Zke,clock2:Jke,clock230:eDe,clock3:tDe,clock330:nDe,clock4:sDe,clock430:rDe,clock5:iDe,clock530:oDe,clock6:aDe,clock630:lDe,clock7:cDe,clock730:dDe,clock8:uDe,clock830:pDe,clock9:fDe,clock930:_De,clock10:mDe,clock1030:hDe,clock11:gDe,clock1130:bDe,new_moon:yDe,waxing_crescent_moon:vDe,first_quarter_moon:EDe,moon:SDe,waxing_gibbous_moon:TDe,full_moon:xDe,waning_gibbous_moon:CDe,last_quarter_moon:wDe,waning_crescent_moon:RDe,crescent_moon:ADe,new_moon_with_face:MDe,first_quarter_moon_with_face:NDe,last_quarter_moon_with_face:ODe,thermometer:IDe,sunny:kDe,full_moon_with_face:DDe,sun_with_face:LDe,ringed_planet:PDe,star:FDe,star2:UDe,stars:BDe,milky_way:GDe,cloud:VDe,partly_sunny:zDe,cloud_with_lightning_and_rain:HDe,sun_behind_small_cloud:qDe,sun_behind_large_cloud:YDe,sun_behind_rain_cloud:$De,cloud_with_rain:WDe,cloud_with_snow:KDe,cloud_with_lightning:jDe,tornado:QDe,fog:XDe,wind_face:ZDe,cyclone:JDe,rainbow:eLe,closed_umbrella:tLe,open_umbrella:nLe,umbrella:sLe,parasol_on_ground:rLe,zap:iLe,snowflake:oLe,snowman_with_snow:aLe,snowman:lLe,comet:cLe,fire:dLe,droplet:uLe,ocean:pLe,jack_o_lantern:fLe,christmas_tree:_Le,fireworks:mLe,sparkler:hLe,firecracker:gLe,sparkles:bLe,balloon:yLe,tada:vLe,confetti_ball:ELe,tanabata_tree:SLe,bamboo:TLe,dolls:xLe,flags:CLe,wind_chime:wLe,rice_scene:RLe,red_envelope:ALe,ribbon:MLe,gift:NLe,reminder_ribbon:OLe,tickets:ILe,ticket:kLe,medal_military:DLe,trophy:LLe,medal_sports:PLe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:FLe,baseball:ULe,softball:BLe,basketball:GLe,volleyball:VLe,football:zLe,rugby_football:HLe,tennis:qLe,flying_disc:YLe,bowling:$Le,cricket_game:WLe,field_hockey:KLe,ice_hockey:jLe,lacrosse:QLe,ping_pong:XLe,badminton:ZLe,boxing_glove:JLe,martial_arts_uniform:ePe,goal_net:tPe,golf:nPe,ice_skate:sPe,fishing_pole_and_fish:rPe,diving_mask:iPe,running_shirt_with_sash:oPe,ski:aPe,sled:lPe,curling_stone:cPe,dart:dPe,yo_yo:uPe,kite:pPe,"8ball":"🎱",crystal_ball:fPe,magic_wand:_Pe,nazar_amulet:mPe,video_game:hPe,joystick:gPe,slot_machine:bPe,game_die:yPe,jigsaw:vPe,teddy_bear:EPe,pinata:SPe,nesting_dolls:TPe,spades:xPe,hearts:CPe,diamonds:wPe,clubs:RPe,chess_pawn:APe,black_joker:MPe,mahjong:NPe,flower_playing_cards:OPe,performing_arts:IPe,framed_picture:kPe,art:DPe,thread:LPe,sewing_needle:PPe,yarn:FPe,knot:UPe,eyeglasses:BPe,dark_sunglasses:GPe,goggles:VPe,lab_coat:zPe,safety_vest:HPe,necktie:qPe,shirt:YPe,tshirt:$Pe,jeans:WPe,scarf:KPe,gloves:jPe,coat:QPe,socks:XPe,dress:ZPe,kimono:JPe,sari:e3e,one_piece_swimsuit:t3e,swim_brief:n3e,shorts:s3e,bikini:r3e,womans_clothes:i3e,purse:o3e,handbag:a3e,pouch:l3e,shopping:c3e,school_satchel:d3e,thong_sandal:u3e,mans_shoe:p3e,shoe:f3e,athletic_shoe:_3e,hiking_boot:m3e,flat_shoe:h3e,high_heel:g3e,sandal:b3e,ballet_shoes:y3e,boot:v3e,crown:E3e,womans_hat:S3e,tophat:T3e,mortar_board:x3e,billed_cap:C3e,military_helmet:w3e,rescue_worker_helmet:R3e,prayer_beads:A3e,lipstick:M3e,ring:N3e,gem:O3e,mute:I3e,speaker:k3e,sound:D3e,loud_sound:L3e,loudspeaker:P3e,mega:F3e,postal_horn:U3e,bell:B3e,no_bell:G3e,musical_score:V3e,musical_note:z3e,notes:H3e,studio_microphone:q3e,level_slider:Y3e,control_knobs:$3e,microphone:W3e,headphones:K3e,radio:j3e,saxophone:Q3e,accordion:X3e,guitar:Z3e,musical_keyboard:J3e,trumpet:e4e,violin:t4e,banjo:n4e,drum:s4e,long_drum:r4e,iphone:i4e,calling:o4e,phone:a4e,telephone:l4e,telephone_receiver:c4e,pager:d4e,fax:u4e,battery:p4e,electric_plug:f4e,computer:_4e,desktop_computer:m4e,printer:h4e,keyboard:g4e,computer_mouse:b4e,trackball:y4e,minidisc:v4e,floppy_disk:E4e,cd:S4e,dvd:T4e,abacus:x4e,movie_camera:C4e,film_strip:w4e,film_projector:R4e,clapper:A4e,tv:M4e,camera:N4e,camera_flash:O4e,video_camera:I4e,vhs:k4e,mag:D4e,mag_right:L4e,candle:P4e,bulb:F4e,flashlight:U4e,izakaya_lantern:B4e,lantern:G4e,diya_lamp:V4e,notebook_with_decorative_cover:z4e,closed_book:H4e,book:q4e,open_book:Y4e,green_book:$4e,blue_book:W4e,orange_book:K4e,books:j4e,notebook:Q4e,ledger:X4e,page_with_curl:Z4e,scroll:J4e,page_facing_up:e5e,newspaper:t5e,newspaper_roll:n5e,bookmark_tabs:s5e,bookmark:r5e,label:i5e,moneybag:o5e,coin:a5e,yen:l5e,dollar:c5e,euro:d5e,pound:u5e,money_with_wings:p5e,credit_card:f5e,receipt:_5e,chart:m5e,envelope:h5e,email:g5e,"e-mail":"📧",incoming_envelope:b5e,envelope_with_arrow:y5e,outbox_tray:v5e,inbox_tray:E5e,package:"📦",mailbox:S5e,mailbox_closed:T5e,mailbox_with_mail:x5e,mailbox_with_no_mail:C5e,postbox:w5e,ballot_box:R5e,pencil2:A5e,black_nib:M5e,fountain_pen:N5e,pen:O5e,paintbrush:I5e,crayon:k5e,memo:D5e,pencil:L5e,briefcase:P5e,file_folder:F5e,open_file_folder:U5e,card_index_dividers:B5e,date:G5e,calendar:V5e,spiral_notepad:z5e,spiral_calendar:H5e,card_index:q5e,chart_with_upwards_trend:Y5e,chart_with_downwards_trend:$5e,bar_chart:W5e,clipboard:K5e,pushpin:j5e,round_pushpin:Q5e,paperclip:X5e,paperclips:Z5e,straight_ruler:J5e,triangular_ruler:eFe,scissors:tFe,card_file_box:nFe,file_cabinet:sFe,wastebasket:rFe,lock:iFe,unlock:oFe,lock_with_ink_pen:aFe,closed_lock_with_key:lFe,key:cFe,old_key:dFe,hammer:uFe,axe:pFe,pick:fFe,hammer_and_pick:_Fe,hammer_and_wrench:mFe,dagger:hFe,crossed_swords:gFe,gun:bFe,boomerang:yFe,bow_and_arrow:vFe,shield:EFe,carpentry_saw:SFe,wrench:TFe,screwdriver:xFe,nut_and_bolt:CFe,gear:wFe,clamp:RFe,balance_scale:AFe,probing_cane:MFe,link:NFe,chains:OFe,hook:IFe,toolbox:kFe,magnet:DFe,ladder:LFe,alembic:PFe,test_tube:FFe,petri_dish:UFe,dna:BFe,microscope:GFe,telescope:VFe,satellite:zFe,syringe:HFe,drop_of_blood:qFe,pill:YFe,adhesive_bandage:$Fe,stethoscope:WFe,door:KFe,elevator:jFe,mirror:QFe,window:XFe,bed:ZFe,couch_and_lamp:JFe,chair:eUe,toilet:tUe,plunger:nUe,shower:sUe,bathtub:rUe,mouse_trap:iUe,razor:oUe,lotion_bottle:aUe,safety_pin:lUe,broom:cUe,basket:dUe,roll_of_paper:uUe,bucket:pUe,soap:fUe,toothbrush:_Ue,sponge:mUe,fire_extinguisher:hUe,shopping_cart:gUe,smoking:bUe,coffin:yUe,headstone:vUe,funeral_urn:EUe,moyai:SUe,placard:TUe,atm:xUe,put_litter_in_its_place:CUe,potable_water:wUe,wheelchair:RUe,mens:AUe,womens:MUe,restroom:NUe,baby_symbol:OUe,wc:IUe,passport_control:kUe,customs:DUe,baggage_claim:LUe,left_luggage:PUe,warning:FUe,children_crossing:UUe,no_entry:BUe,no_entry_sign:GUe,no_bicycles:VUe,no_smoking:zUe,do_not_litter:HUe,"non-potable_water":"🚱",no_pedestrians:qUe,no_mobile_phones:YUe,underage:$Ue,radioactive:WUe,biohazard:KUe,arrow_up:jUe,arrow_upper_right:QUe,arrow_right:XUe,arrow_lower_right:ZUe,arrow_down:JUe,arrow_lower_left:eBe,arrow_left:tBe,arrow_upper_left:nBe,arrow_up_down:sBe,left_right_arrow:rBe,leftwards_arrow_with_hook:iBe,arrow_right_hook:oBe,arrow_heading_up:aBe,arrow_heading_down:lBe,arrows_clockwise:cBe,arrows_counterclockwise:dBe,back:uBe,end:pBe,on:fBe,soon:_Be,top:mBe,place_of_worship:hBe,atom_symbol:gBe,om:bBe,star_of_david:yBe,wheel_of_dharma:vBe,yin_yang:EBe,latin_cross:SBe,orthodox_cross:TBe,star_and_crescent:xBe,peace_symbol:CBe,menorah:wBe,six_pointed_star:RBe,aries:ABe,taurus:MBe,gemini:NBe,cancer:OBe,leo:IBe,virgo:kBe,libra:DBe,scorpius:LBe,sagittarius:PBe,capricorn:FBe,aquarius:UBe,pisces:BBe,ophiuchus:GBe,twisted_rightwards_arrows:VBe,repeat:zBe,repeat_one:HBe,arrow_forward:qBe,fast_forward:YBe,next_track_button:$Be,play_or_pause_button:WBe,arrow_backward:KBe,rewind:jBe,previous_track_button:QBe,arrow_up_small:XBe,arrow_double_up:ZBe,arrow_down_small:JBe,arrow_double_down:e6e,pause_button:t6e,stop_button:n6e,record_button:s6e,eject_button:r6e,cinema:i6e,low_brightness:o6e,high_brightness:a6e,signal_strength:l6e,vibration_mode:c6e,mobile_phone_off:d6e,female_sign:u6e,male_sign:p6e,transgender_symbol:f6e,heavy_multiplication_x:_6e,heavy_plus_sign:m6e,heavy_minus_sign:h6e,heavy_division_sign:g6e,infinity:b6e,bangbang:y6e,interrobang:v6e,question:E6e,grey_question:S6e,grey_exclamation:T6e,exclamation:x6e,heavy_exclamation_mark:C6e,wavy_dash:w6e,currency_exchange:R6e,heavy_dollar_sign:A6e,medical_symbol:M6e,recycle:N6e,fleur_de_lis:O6e,trident:I6e,name_badge:k6e,beginner:D6e,o:L6e,white_check_mark:P6e,ballot_box_with_check:F6e,heavy_check_mark:U6e,x:B6e,negative_squared_cross_mark:G6e,curly_loop:V6e,loop:z6e,part_alternation_mark:H6e,eight_spoked_asterisk:q6e,eight_pointed_black_star:Y6e,sparkle:$6e,copyright:W6e,registered:K6e,tm:j6e,hash:Q6e,asterisk:X6e,zero:Z6e,one:J6e,two:e9e,three:t9e,four:n9e,five:s9e,six:r9e,seven:i9e,eight:o9e,nine:a9e,keycap_ten:l9e,capital_abcd:c9e,abcd:d9e,symbols:u9e,abc:p9e,a:f9e,ab:_9e,b:m9e,cl:h9e,cool:g9e,free:b9e,information_source:y9e,id:v9e,m:E9e,new:"🆕",ng:S9e,o2:T9e,ok:x9e,parking:C9e,sos:w9e,up:R9e,vs:A9e,koko:M9e,sa:N9e,ideograph_advantage:O9e,accept:I9e,congratulations:k9e,secret:D9e,u6e80:L9e,red_circle:P9e,orange_circle:F9e,yellow_circle:U9e,green_circle:B9e,large_blue_circle:G9e,purple_circle:V9e,brown_circle:z9e,black_circle:H9e,white_circle:q9e,red_square:Y9e,orange_square:$9e,yellow_square:W9e,green_square:K9e,blue_square:j9e,purple_square:Q9e,brown_square:X9e,black_large_square:Z9e,white_large_square:J9e,black_medium_square:e8e,white_medium_square:t8e,black_medium_small_square:n8e,white_medium_small_square:s8e,black_small_square:r8e,white_small_square:i8e,large_orange_diamond:o8e,large_blue_diamond:a8e,small_orange_diamond:l8e,small_blue_diamond:c8e,small_red_triangle:d8e,small_red_triangle_down:u8e,diamond_shape_with_a_dot_inside:p8e,radio_button:f8e,white_square_button:_8e,black_square_button:m8e,checkered_flag:h8e,triangular_flag_on_post:g8e,crossed_flags:b8e,black_flag:y8e,white_flag:v8e,rainbow_flag:E8e,transgender_flag:S8e,pirate_flag:T8e,ascension_island:x8e,andorra:C8e,united_arab_emirates:w8e,afghanistan:R8e,antigua_barbuda:A8e,anguilla:M8e,albania:N8e,armenia:O8e,angola:I8e,antarctica:k8e,argentina:D8e,american_samoa:L8e,austria:P8e,australia:F8e,aruba:U8e,aland_islands:B8e,azerbaijan:G8e,bosnia_herzegovina:V8e,barbados:z8e,bangladesh:H8e,belgium:q8e,burkina_faso:Y8e,bulgaria:$8e,bahrain:W8e,burundi:K8e,benin:j8e,st_barthelemy:Q8e,bermuda:X8e,brunei:Z8e,bolivia:J8e,caribbean_netherlands:eGe,brazil:tGe,bahamas:nGe,bhutan:sGe,bouvet_island:rGe,botswana:iGe,belarus:oGe,belize:aGe,canada:lGe,cocos_islands:cGe,congo_kinshasa:dGe,central_african_republic:uGe,congo_brazzaville:pGe,switzerland:fGe,cote_divoire:_Ge,cook_islands:mGe,chile:hGe,cameroon:gGe,cn:bGe,colombia:yGe,clipperton_island:vGe,costa_rica:EGe,cuba:SGe,cape_verde:TGe,curacao:xGe,christmas_island:CGe,cyprus:wGe,czech_republic:RGe,de:AGe,diego_garcia:MGe,djibouti:NGe,denmark:OGe,dominica:IGe,dominican_republic:kGe,algeria:DGe,ceuta_melilla:LGe,ecuador:PGe,estonia:FGe,egypt:UGe,western_sahara:BGe,eritrea:GGe,es:VGe,ethiopia:zGe,eu:HGe,european_union:qGe,finland:YGe,fiji:$Ge,falkland_islands:WGe,micronesia:KGe,faroe_islands:jGe,fr:QGe,gabon:XGe,gb:ZGe,uk:JGe,grenada:e7e,georgia:t7e,french_guiana:n7e,guernsey:s7e,ghana:r7e,gibraltar:i7e,greenland:o7e,gambia:a7e,guinea:l7e,guadeloupe:c7e,equatorial_guinea:d7e,greece:u7e,south_georgia_south_sandwich_islands:p7e,guatemala:f7e,guam:_7e,guinea_bissau:m7e,guyana:h7e,hong_kong:g7e,heard_mcdonald_islands:b7e,honduras:y7e,croatia:v7e,haiti:E7e,hungary:S7e,canary_islands:T7e,indonesia:x7e,ireland:C7e,israel:w7e,isle_of_man:R7e,india:A7e,british_indian_ocean_territory:M7e,iraq:N7e,iran:O7e,iceland:I7e,it:k7e,jersey:D7e,jamaica:L7e,jordan:P7e,jp:F7e,kenya:U7e,kyrgyzstan:B7e,cambodia:G7e,kiribati:V7e,comoros:z7e,st_kitts_nevis:H7e,north_korea:q7e,kr:Y7e,kuwait:$7e,cayman_islands:W7e,kazakhstan:K7e,laos:j7e,lebanon:Q7e,st_lucia:X7e,liechtenstein:Z7e,sri_lanka:J7e,liberia:eVe,lesotho:tVe,lithuania:nVe,luxembourg:sVe,latvia:rVe,libya:iVe,morocco:oVe,monaco:aVe,moldova:lVe,montenegro:cVe,st_martin:dVe,madagascar:uVe,marshall_islands:pVe,macedonia:fVe,mali:_Ve,myanmar:mVe,mongolia:hVe,macau:gVe,northern_mariana_islands:bVe,martinique:yVe,mauritania:vVe,montserrat:EVe,malta:SVe,mauritius:TVe,maldives:xVe,malawi:CVe,mexico:wVe,malaysia:RVe,mozambique:AVe,namibia:MVe,new_caledonia:NVe,niger:OVe,norfolk_island:IVe,nigeria:kVe,nicaragua:DVe,netherlands:LVe,norway:PVe,nepal:FVe,nauru:UVe,niue:BVe,new_zealand:GVe,oman:VVe,panama:zVe,peru:HVe,french_polynesia:qVe,papua_new_guinea:YVe,philippines:$Ve,pakistan:WVe,poland:KVe,st_pierre_miquelon:jVe,pitcairn_islands:QVe,puerto_rico:XVe,palestinian_territories:ZVe,portugal:JVe,palau:eze,paraguay:tze,qatar:nze,reunion:sze,romania:rze,serbia:ize,ru:oze,rwanda:aze,saudi_arabia:lze,solomon_islands:cze,seychelles:dze,sudan:uze,sweden:pze,singapore:fze,st_helena:_ze,slovenia:mze,svalbard_jan_mayen:hze,slovakia:gze,sierra_leone:bze,san_marino:yze,senegal:vze,somalia:Eze,suriname:Sze,south_sudan:Tze,sao_tome_principe:xze,el_salvador:Cze,sint_maarten:wze,syria:Rze,swaziland:Aze,tristan_da_cunha:Mze,turks_caicos_islands:Nze,chad:Oze,french_southern_territories:Ize,togo:kze,thailand:Dze,tajikistan:Lze,tokelau:Pze,timor_leste:Fze,turkmenistan:Uze,tunisia:Bze,tonga:Gze,tr:Vze,trinidad_tobago:zze,tuvalu:Hze,taiwan:qze,tanzania:Yze,ukraine:$ze,uganda:Wze,us_outlying_islands:Kze,united_nations:jze,us:Qze,uruguay:Xze,uzbekistan:Zze,vatican_city:Jze,st_vincent_grenadines:eHe,venezuela:tHe,british_virgin_islands:nHe,us_virgin_islands:sHe,vietnam:rHe,vanuatu:iHe,wallis_futuna:oHe,samoa:aHe,kosovo:lHe,yemen:cHe,mayotte:dHe,south_africa:uHe,zambia:pHe,zimbabwe:fHe,england:_He,scotland:mHe,wales:hHe};var bHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(v[b-1])||b+y.lengthg&&(h=new m("text","",0),h.content=u.slice(g,b),f.push(h)),h=new m("emoji","",0),h.markup=E,h.content=t[E],f.push(h),g=b+y.length}),g=0;m--)y=f[m],(y.type==="link_open"||y.type==="link_close")&&y.info==="auto"&&(v-=y.nesting),y.type==="text"&&v===0&&r.test(y.content)&&(b[h].children=f=o(f,m,d(y.content,y.level,_.Token)))}};function EHe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var SHe=function(e){var t=e.defs,s;e.enabled.length&&(t=Object.keys(t).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=t[d]),c},{})),s=Object.keys(e.shortcuts).reduce(function(c,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var r=Object.keys(t),i;r.length===0?i="^$":i=r.map(function(c){return":"+c+":"}).concat(Object.keys(s)).sort().reverse().map(function(c){return EHe(c)}).join("|");var o=RegExp(i),a=RegExp(i,"g");return{defs:t,shortcuts:s,scanRE:o,replaceRE:a}},THe=yHe,xHe=vHe,CHe=SHe,wHe=function(e,t){var s={defs:{},shortcuts:{},enabled:[]},r=CHe(e.utils.assign({},s,t||{}));e.renderer.rules.emoji=THe,e.core.ruler.after("linkify","emoji",xHe(e,r.defs,r.shortcuts,r.scanRE,r.replaceRE))},RHe=gHe,AHe=bHe,MHe=wHe,NHe=function(e,t){var s={defs:RHe,shortcuts:AHe,enabled:[]},r=e.utils.assign({},s,t||{});MHe(e,r)};const OHe=wi(NHe);var jE=!1,fa={false:"push",true:"unshift",after:"push",before:"unshift"},eu={isPermalinkSymbol:!0};function Zg(n,e,t,s){var r;if(!jE){var i="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(i):console.warn(i),jE=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:eu}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[s+1].children[fa[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(r=t.tokens[s+1].children)[fa[e.permalinkBefore]].apply(r,o)}function sM(n){return"#"+n}function rM(n){return{}}var IHe={class:"header-anchor",symbol:"#",renderHref:sM,renderAttrs:rM};function lc(n){function e(t){return t=Object.assign({},e.defaults,t),function(s,r,i,o){return n(s,t,r,i,o)}}return e.defaults=Object.assign({},IHe),e.renderPermalinkImpl=n,e}var sp=lc(function(n,e,t,s,r){var i,o=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[r+1].children[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(i=s.tokens[r+1].children)[fa[e.placement]].apply(i,o)});Object.assign(sp.defaults,{space:!0,placement:"after",ariaHidden:!1});var Gi=lc(sp.renderPermalinkImpl);Gi.defaults=Object.assign({},sp.defaults,{ariaHidden:!0});var iM=lc(function(n,e,t,s,r){var i=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],Object.entries(e.renderAttrs(n,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[r+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[r+1]=Object.assign(new s.Token("inline","",0),{children:i})});Object.assign(iM.defaults,{safariReaderFix:!1});var QE=lc(function(n,e,t,s,r){var i;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=s.tokens[r+1].children.filter(function(_){return _.type==="text"||_.type==="code_inline"}).reduce(function(_,m){return _+m.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(n,s)]),c.push.apply(c,Object.entries(e.renderAttrs(n,s))),e.style==="visually-hidden"){if(a.push(Object.assign(new s.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new s.Token("text","",0),{content:e.assistiveText(o)}),new s.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[fa[e.placement]](Object.assign(new s.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,n]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:c})].concat(a,[new s.Token("link_close","a",-1)]);(i=s.tokens).splice.apply(i,[r+3,0].concat(u)),e.wrapper&&(s.tokens.splice(r,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` `})),s.tokens.splice(r+3+u.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+` `})))});function XE(n,e,t,s){var r=n,i=s;if(t&&Object.prototype.hasOwnProperty.call(e,r))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,r);)r=n+"-"+i,i+=1;return e[r]=!0,r}function Wo(n,e){e=Object.assign({},Wo.defaults,e),n.core.ruler.push("anchor",function(t){for(var s,r={},i=t.tokens,o=Array.isArray(e.level)?(s=e.level,function(_){return s.includes(_)}):function(_){return function(m){return m>=_}}(e.level),a=0;a0&&!(t&r&&this.__match_alphabets__[r].call(this,s,t,r));r>>=4);if(this.__actions__(s,t,r),r===0)break;t=this.__transitions__[t][r]||0}return!!this.__accept_states__[t]};var kHe=Br,DHe=kHe,LHe=function(e,t){var s={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},s,t||{});function r(u,_){var m=u.bMarks[_]+u.sCount[_],h=u.bMarks[_]+u.blkIndent,g=u.skipSpacesBack(u.eMarks[_],h),f=[],y,b,v=!1,E=!1,S=0;for(y=m;yy?(E||(S===0?S=b-y:S===b-y&&(S=0)),y=b):(E||!v&&!S)&&(E=!E),v=!1;break;case 124:!E&&!v&&f.push(y),v=!1;break;default:v=!1;break}return f.length===0||(f[0]>h&&f.unshift(h-1),f[f.length-1]=4||g.length===0)return!1;for(y=0;ym||(v=new u.Token("table_open","table",1),v.meta={sep:null,cap:null,tr:[]},g.set_highest_alphabet(65536),g.set_initial_state(65792),g.set_accept_states([65552,65553,0]),g.set_match_alphabets({65536:i.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:c.bind(this,u,!0)}),g.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(g.set_initial_state(69888),g.update_transition(69888,{65536:4352,4096:65552,256:4352}),E=new u.Token("tr_placeholder","tr",0),E.meta=Object()),t.multibody||g.update_transition(65552,{65536:0,16:65552}),g.set_actions(function(oe,ye,xe){switch(xe){case 65536:if(v.meta.cap)break;v.meta.cap=i(u,!1,oe),v.meta.cap.map=[oe,oe+1],v.meta.cap.first=oe===_;break;case 4096:v.meta.sep=a(u,!1,oe),v.meta.sep.map=[oe,oe+1],E.meta.grp|=1,f=16;break;case 256:case 16:E=new u.Token("tr_open","tr",1),E.map=[oe,oe+1],E.meta=o(u,!1,oe),E.meta.type=xe,E.meta.grp=f,f=0,v.meta.tr.push(E),t.multiline&&(E.meta.multiline&&y<0?y=v.meta.tr.length-1:!E.meta.multiline&&y>=0&&(b=v.meta.tr[y],b.meta.mbounds=v.meta.tr.slice(y).map(function(ce){return ce.meta.bounds}),b.map[1]=E.map[1],v.meta.tr=v.meta.tr.slice(0,y+1),y=-1));break;case 1:E.meta.grp|=1,f=16;break}}),g.execute(_,m)===!1)||!v.meta.tr.length)return!1;if(h)return!0;if(v.meta.tr[v.meta.tr.length-1].meta.grp|=1,v.map=I=[_,0],v.block=!0,v.level=u.level++,u.tokens.push(v),v.meta.cap){b=u.push("caption_open","caption",1),b.map=v.meta.cap.map;var W=[],se=v.meta.cap.first?"top":"bottom";v.meta.cap.label!==null&&W.push(["id",v.meta.cap.label]),se!=="top"&&W.push(["style","caption-side: "+se]),b.attrs=W,b=u.push("inline","",0),b.content=v.meta.cap.text,b.map=v.meta.cap.map,b.children=[],b=u.push("caption_close","caption",-1)}for(ee=0;eeE.meta.mbounds[H].length-2||(V=[E.meta.mbounds[H][O]+1,E.meta.mbounds[H][O+1]],G.push(u.src.slice.apply(u.src,V).trimRight()));for(L=new u.md.block.State(G.join(` `),u.md,u.env,[]),L.level=E.level+1,u.md.block.tokenize(L,E.map[0],L.lineMax),q=0;qm.match(_))}t.tabindex==!0&&(r.tokens[o-1].attrPush(["tabindex",i]),i++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const UHe=wi(FHe),BHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Ri={};Ri.getAttrs=function(n,e,t){const s=/[^\t\n\f />"'=]/,r=" ",i="=",o=".",a="#",c=[];let d="",u="",_=!0,m=!1;for(let h=e+t.leftDelimiter.length;h=s+1:u.length>=s}let i,o,a,c;const d=s-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),i=a===e.leftDelimiter?0:-1,o=i===-1?-1:t.indexOf(e.rightDelimiter,d),c=t.charAt(o+e.rightDelimiter.length),c&&e.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":i=t.lastIndexOf(e.leftDelimiter),o=i===-1?-1:t.indexOf(e.rightDelimiter,i+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),i=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return i!==-1&&o!==-1&&r(t.substring(i,o+e.rightDelimiter.length))}};Ri.removeDelimiter=function(n,e){const t=Jg(e.leftDelimiter),s=Jg(e.rightDelimiter),r=new RegExp("[ \\n]?"+t+"[^"+t+s+"]+"+s+"$"),i=n.search(r);return i!==-1?n.slice(0,i):n};function Jg(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Ri.escapeRegExp=Jg;Ri.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,s=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===s&&n[e].level===t)return n[e];return!1};const GHe=/[&<>"]/,VHe=/[&<>"]/g,zHe={"&":"&","<":"<",">":">",'"':"""};function HHe(n){return zHe[n]}Ri.escapeHtml=function(n){return GHe.test(n)?n.replace(VHe,HHe):n};const Ct=Ri;var qHe=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ct.escapeRegExp(n.leftDelimiter)+"[^"+Ct.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ct.hasDelimiters("end",n)}],transform:(t,s)=>{const r=t[s],i=r.info.lastIndexOf(n.leftDelimiter),o=Ct.getAttrs(r.info,i,n);Ct.addAttrs(o,r),r.info=Ct.removeDelimiter(r.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content.indexOf(n.rightDelimiter),a=t[s].children[r-1],c=Ct.getAttrs(i.content,0,n);Ct.addAttrs(c,a),i.content.length===o+n.rightDelimiter.length?t[s].children.splice(r,1):i.content=i.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n)}],transform:(t,s)=>{const r=t[s+2],i=Ct.getMatchingOpeningToken(t,s),o=Ct.getAttrs(r.content,0,n);Ct.addAttrs(o,i),t.splice(s+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content,a=Ct.getAttrs(o,0,n),c=Ct.getMatchingOpeningToken(t[s].children,r-1);Ct.addAttrs(a,c),i.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,s,r)=>{const o=t[s].children[r].content,a=Ct.getAttrs(o,0,n);let c=s-2;for(;t[c-1]&&t[c-1].type!=="ordered_list_open"&&t[c-1].type!=="bullet_list_open";)c--;Ct.addAttrs(a,t[c-1]),t[s].children=t[s].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,s)=>{const i=t[s+2].content,o=Ct.getAttrs(i,0,n),a=Ct.getMatchingOpeningToken(t,s);Ct.addAttrs(o,a),t.splice(s+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ct.hasDelimiters("end",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);Ct.addAttrs(a,t[s-2]);const c=o.slice(0,o.lastIndexOf(n.leftDelimiter));i.content=ZE(c)!==" "?c:c.slice(0,-1)}},{name:` @@ -69,13 +69,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ye=L,oe=W),se===void 0 `)),l("div",{ref:"execution_output",class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:r.executionOutput},null,8,PKe),e[18]||(e[18]=Ze(` `))]),e[20]||(e[20]=Ze(` `))])):B("",!0)])}const UKe=st(CKe,[["render",FKe]]);var bM={exports:{}};(function(n,e){(function(t,s){n.exports=s()})(DA,function(){function t(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==92)return!1;var u=a.src.slice(++d).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!u)return!1;d+=u[0].length;var _,m,h;u[0]==="\\["?(_="display_math",m="\\\\]"):u[0]==="\\("?(_="inline_math",m="\\\\)"):u[1]&&(_="math",m="\\end{"+u[1]+"}",h=!0);var g=a.src.indexOf(m,d);if(g===-1)return!1;var f=g+m.length;if(!c){var y=a.push(_,"",0);y.content=h?a.src.slice(a.pos,f):a.src.slice(d,g)}return a.pos=f,!0}function s(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",_=a.src.charCodeAt(++d);if(_===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(_===32||_===9||_===10)return!1;var m=a.src.indexOf(u,d);if(m===-1||a.src.charCodeAt(m-1)===92)return!1;var h=m+u.length;if(u.length===1){var g=a.src.charCodeAt(m-1);if(g===32||g===9||g===10)return!1;var f=a.src.charCodeAt(h);if(f>=48&&f<58)return!1}if(!c){var y=a.push(u.length===1?"inline_math":"display_math","",0);y.content=a.src.slice(d,m)}return a.pos=h,!0}function r(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const zKe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:UKe},setup(n){const e=new R0e({html:!0,breaks:!0,highlight:(i,o)=>{const a=o&&uo.getLanguage(o)?o:"plaintext";return uo.highlight(a,i).value},renderInline:!1}).use(OHe).use(Wo).use(UHe,{figcaption:!0}).use(ZHe).use(PHe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}).use(GKe),t=ot([]),s=()=>{if(n.markdownText){let i=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:VKe(i[a].info),code:i[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Ue(()=>{Ve.replace(),window.MathJax&&window.MathJax.typesetPromise()})},r=(i,o)=>{t.value[i].code=o};return Tn(()=>n.markdownText,s),dr(()=>{s()}),{markdownItems:t,updateCode:r}}},HKe={class:"break-all container w-full"},qKe={ref:"mdRender",class:"markdown-content"},YKe=["innerHTML"];function $Ke(n,e,t,s,r,i){const o=Je("code-block");return T(),x("div",HKe,[l("div",qKe,[(T(!0),x(Fe,null,We(s.markdownItems,(a,c)=>(T(),x("div",{key:c},[a.type==="code"?(T(),at(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>s.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),x("div",{key:1,innerHTML:a.html},null,8,YKe))]))),128))],512)])}const ip=st(zKe,[["render",$Ke]]),WKe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:ip},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},KKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},jKe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},QKe={class:"container max-h-500 overflow-y-auto"},XKe={class:"text-lg font-medium"},ZKe={class:"mt-4 flex justify-center"},JKe={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eje(n,e,t,s,r,i){const o=Je("MarkdownRenderer");return r.show?(T(),x("div",KKe,[l("div",jKe,[l("div",QKe,[l("div",XKe,[z(o,{ref:"mdRender",host:"","markdown-text":r.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",ZKe,[r.has_button?(T(),x("button",{key:0,onClick:e[0]||(e[0]=(...a)=>i.hide&&i.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):B("",!0),r.has_button?B("",!0):(T(),x("svg",JKe,e[1]||(e[1]=[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):B("",!0)}const tje=st(WKe,[["render",eje]]),nje={props:{progress:{type:Number,required:!0}}},sje={class:"progress-bar-container"};function rje(n,e,t,s,r,i){return T(),x("div",sje,[l("div",{class:"progress-bar",style:Bt({width:`${t.progress}%`})},null,4)])}const x0=st(nje,[["render",rje]]),ije={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ue(()=>{Ve.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,s){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let r=0;r{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=r,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Ue(()=>{Ve.replace()})}}},oje={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},aje={class:"relative w-full max-w-md max-h-[80vh]"},lje={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},cje={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},dje={class:"grow flex items-center"},uje={class:"text-lg font-semibold select-none"},pje={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},fje={class:"space-y-2"},_je={key:0},mje={key:0},hje={class:"text-base font-semibold"},gje={key:0,class:"relative inline-flex"},bje=["onUpdate:modelValue"],yje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},vje=["onUpdate:modelValue"],Eje={key:1},Sje={class:"text-base font-semibold"},Tje={key:0,class:"relative inline-flex"},xje=["onUpdate:modelValue"],Cje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},wje=["onUpdate:modelValue"],Rje=["value","selected"],Aje={key:1},Mje={class:"",onclick:"btn_clicked(item)"},Nje={key:2},Oje={key:0},Ije={class:"text-base font-semibold"},kje={key:0,class:"relative inline-flex"},Dje=["onUpdate:modelValue"],Lje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Pje=["onUpdate:modelValue"],Fje={key:1},Uje={class:"text-base font-semibold"},Bje={key:0,class:"relative inline-flex"},Gje=["onUpdate:modelValue"],Vje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zje=["onUpdate:modelValue"],Hje=["value","selected"],qje={key:3},Yje={class:"text-base font-semibold"},$je={key:0,class:"relative inline-flex"},Wje=["onUpdate:modelValue"],Kje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},jje=["onUpdate:modelValue"],Qje=["onUpdate:modelValue","min","max"],Xje={key:4},Zje={class:"text-base font-semibold"},Jje={key:0,class:"relative inline-flex"},eQe=["onUpdate:modelValue"],tQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},nQe=["onUpdate:modelValue"],sQe=["onUpdate:modelValue","min","max"],rQe={key:5},iQe={class:"mb-2 relative flex items-center gap-2"},oQe={for:"default-checkbox",class:"text-base font-semibold"},aQe=["onUpdate:modelValue"],lQe={key:0,class:"relative inline-flex"},cQe=["onUpdate:modelValue"],dQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},uQe={key:6},pQe={class:"text-base font-semibold"},fQe={key:0,class:"relative inline-flex"},_Qe=["onUpdate:modelValue"],mQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},hQe=["onUpdate:modelValue"],gQe={key:7,class:"space-y-2"},bQe={class:"flex items-center gap-2"},yQe={class:"text-base font-semibold"},vQe={key:0,class:"relative inline-flex"},EQe=["onUpdate:modelValue"],SQe={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},TQe={class:"flex gap-2"},xQe=["onUpdate:modelValue","placeholder"],CQe=["onClick"],wQe={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},RQe={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function AQe(n,e,t,s,r,i){return r.show?(T(),x("div",oje,[l("div",aje,[l("div",lje,[l("div",cje,[l("div",dje,[e[3]||(e[3]=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),l("h3",uje,Y(r.title),1)]),l("button",{onClick:e[0]||(e[0]=$(o=>i.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[l("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),l("div",pje,[l("div",fje,[(T(!0),x(Fe,null,We(r.controls_array,(o,a)=>(T(),x("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),x("div",_je,[o.options?B("",!0):(T(),x("div",mje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",hje,Y(o.name)+": ",1),o.help?(T(),x("label",gje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,bje),[[He,o.isHelp]]),e[5]||(e[5]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",yje,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,vje),[[ae,o.value]])])),o.options?(T(),x("div",Eje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Sje,Y(o.name)+": ",1),o.help?(T(),x("label",Tje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,xje),[[He,o.isHelp]]),e[6]||(e[6]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Cje,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Fe,null,We(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,Rje))),256))],8,wje),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="btn"?(T(),x("div",Aje,[l("button",Mje,Y(o.name),1)])):B("",!0),o.type=="text"?(T(),x("div",Nje,[o.options?B("",!0):(T(),x("div",Oje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Ije,Y(o.name)+": ",1),o.help?(T(),x("label",kje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Dje),[[He,o.isHelp]]),e[7]||(e[7]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Lje,Y(o.help),1)):B("",!0),k(l("textarea",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Pje),[[ae,o.value]])])),o.options?(T(),x("div",Fje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Uje,Y(o.name)+": ",1),o.help?(T(),x("label",Bje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Gje),[[He,o.isHelp]]),e[8]||(e[8]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Vje,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Fe,null,We(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,Hje))),256))],8,zje),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="int"?(T(),x("div",qje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Yje,Y(o.name)+": ",1),o.help?(T(),x("label",$je,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Wje),[[He,o.isHelp]]),e[9]||(e[9]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Kje,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,jje),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Qje)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="float"?(T(),x("div",Xje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Zje,Y(o.name)+": ",1),o.help?(T(),x("label",Jje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,eQe),[[He,o.isHelp]]),e[10]||(e[10]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",tQe,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,nQe),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,sQe)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="bool"?(T(),x("div",rQe,[l("div",iQe,[l("label",oQe,Y(o.name)+": ",1),k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.value=c,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,aQe),[[He,o.value]]),o.help?(T(),x("label",lQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,cQe),[[He,o.isHelp]]),e[11]||(e[11]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",dQe,Y(o.help),1)):B("",!0)])):B("",!0),o.type=="list"?(T(),x("div",uQe,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",pQe,Y(o.name)+": ",1),o.help?(T(),x("label",fQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,_Qe),[[He,o.isHelp]]),e[12]||(e[12]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",mQe,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,hQe),[[ae,o.value]])])):B("",!0),o.type==="file"||o.type==="folder"?(T(),x("div",gQe,[l("label",bQe,[l("span",yQe,Y(o.name)+":",1),o.help?(T(),x("label",vQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,EQe),[[He,o.isHelp]]),e[13]||(e[13]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",SQe,Y(o.help),1)):B("",!0),l("div",TQe,[k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,xQe),[[ae,o.value]]),l("button",{onClick:c=>i.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,CQe)])])):B("",!0),ai.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const yM=st(ije,[["render",AQe],["__scopeId","data-v-8a34bb65"]]),MQe={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Ue(()=>{Ve.replace()})},showToast(n,e=3,t=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),r={id:s,log_type:t,message:n,show:!0};this.toastArr.push(r),Ue(()=>{Ve.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(i=>i.id!=s)},e*1e3)}},watch:{}},NQe={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},OQe={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},IQe={class:"flex flex-row flex-grow items-center h-auto"},kQe={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},DQe={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},LQe={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},PQe={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},FQe=["title"],UQe={class:"flex"},BQe=["onClick"],GQe=["onClick"];function VQe(n,e,t,s,r,i){return T(),x("div",NQe,[z(Ir,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),x(Fe,null,We(r.toastArr,o=>(T(),x("div",{key:o.id,class:"relative"},[l("div",OQe,[l("div",IQe,[o.log_type==0?(T(),x("div",kQe,e[0]||(e[0]=[l("i",{"data-feather":"x"},null,-1),l("span",{class:"sr-only"},"Cross icon",-1)]))):B("",!0),o.log_type==1?(T(),x("div",DQe,e[1]||(e[1]=[l("i",{"data-feather":"check"},null,-1),l("span",{class:"sr-only"},"Check icon",-1)]))):B("",!0),o.log_type==2?(T(),x("div",LQe,e[2]||(e[2]=[l("i",{"data-feather":"info"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),o.log_type==3?(T(),x("div",PQe,e[3]||(e[3]=[l("i",{"data-feather":"alert-triangle"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),l("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},Y(o.message),9,FQe)]),l("div",UQe,[l("button",{type:"button",onClick:$(a=>i.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[l("span",{class:"sr-only"},"Copy message",-1),l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,BQe),l("button",{type:"button",onClick:a=>i.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[l("span",{class:"sr-only"},"Close",-1),l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,GQe)])])]))),128))]),_:1})])}const C0=st(MQe,[["render",VQe],["__scopeId","data-v-46f379e5"]]),zQe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(s=>{this.message=n,this.show=!0,this.resolve=s})}}},HQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},qQe={class:"relative w-full max-w-md max-h-full"},YQe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},$Qe={class:"p-4 text-center"},WQe={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function KQe(n,e,t,s,r,i){return r.show?(T(),x("div",HQe,[l("div",qQe,[l("div",YQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",$Qe,[e[4]||(e[4]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("h3",WQe,Y(r.message),1),l("button",{onClick:e[1]||(e[1]=o=>i.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const jQe=st(zQe,[["render",KQe]]),QQe={name:"TopBar",components:{Navigation:o4,ActionButton:IA,SocialIcon:kA,Toast:C0,MessageBox:tje,ProgressBar:x0,UniversalForm:yM,YesNoDialog:jQe},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.$store.state.toast=this.$refs.toast,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ve.replace()})},methods:{toggleThemeDropDown(){console.log("Toggling theme down:",this.themeDropdownOpen),this.themeDropdownOpen=!this.themeDropdownOpen,console.log("Toggled theme down:",this.themeDropdownOpen)},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1,console.log("Outside click detected"))},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>BHe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let t=this.$store.state.personalities.find(s=>s.full_path===e);if(console.log("personality",t),console.log("this.$store.state.language",t.language),console.log("personality.language",t.language),this.$store.state.language!=t.language){console.log("getting personality");const s=await ne.get("/get_personality");console.log(s),t=s.data,console.log(t),this.$store.commit("updatePersonality",t)}console.log("personality:",t),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ve.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ve.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ve.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{Wp(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{Wp(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},XQe={class:"topbar-content"},ZQe=["title"],JQe=["fill"],eXe={class:"relative inline-block"},tXe={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},nXe={class:"flex gap-3 flex-1 items-center justify-end"},sXe={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},rXe={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},iXe={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},oXe={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},aXe={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},lXe={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},cXe={class:"flex items-center space-x-4"},dXe={class:"relative group",title:"Lollms News"},uXe={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},pXe={class:"language-selector relative"},fXe={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},_Xe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},mXe=["onClick"],hXe=["onClick"],gXe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},bXe={class:"relative inline-flex"},yXe={class:"flex items-center space-x-2 overflow-hidden"},vXe={class:"font-medium truncate"},EXe={key:0,class:"absolute left-0 z-50 w-48 mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg"},SXe={class:"max-h-60 overflow-y-auto scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100"},TXe=["onClick"],xXe={class:"font-medium truncate"},CXe={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},wXe={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function RXe(n,e,t,s,r,i){const o=Je("Navigation"),a=Je("ActionButton"),c=Je("SocialIcon"),d=Je("ProgressBar"),u=Je("InputBox"),_=Je("Toast"),m=Je("MessageBox"),h=Je("YesNoDialog"),g=Je("UniversalForm");return T(),x(Fe,null,[l("div",{ref:"topbar-container",class:Le(["topbar-container",{"h-0":!r.isPinned}])},[l("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...f)=>i.show&&i.show(...f)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),l("div",{class:Le(["topbar",{"topbar-hidden":!r.isVisible}]),onMouseleave:e[14]||(e[14]=(...f)=>i.hide&&i.hide(...f))},[l("div",XQe,[on(n.$slots,"navigation",{},void 0,!0),l("button",{class:"pin-button",onClick:e[1]||(e[1]=(...f)=>i.togglePin&&i.togglePin(...f)),title:r.isPinned?"Unpin":"Pin"},[(T(),x("svg",{fill:r.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[l("g",null,[l("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r +`}).use(GKe),t=it([]),s=()=>{if(n.markdownText){let i=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:VKe(i[a].info),code:i[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Ue(()=>{Ve.replace(),window.MathJax&&window.MathJax.typesetPromise()})},r=(i,o)=>{t.value[i].code=o};return Tn(()=>n.markdownText,s),qs(()=>{s()}),{markdownItems:t,updateCode:r}}},HKe={class:"break-all container w-full"},qKe={ref:"mdRender",class:"markdown-content"},YKe=["innerHTML"];function $Ke(n,e,t,s,r,i){const o=Je("code-block");return T(),x("div",HKe,[l("div",qKe,[(T(!0),x(Fe,null,We(s.markdownItems,(a,c)=>(T(),x("div",{key:c},[a.type==="code"?(T(),at(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>s.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),x("div",{key:1,innerHTML:a.html},null,8,YKe))]))),128))],512)])}const ip=st(zKe,[["render",$Ke]]),WKe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:ip},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},KKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},jKe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},QKe={class:"container max-h-500 overflow-y-auto"},XKe={class:"text-lg font-medium"},ZKe={class:"mt-4 flex justify-center"},JKe={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eje(n,e,t,s,r,i){const o=Je("MarkdownRenderer");return r.show?(T(),x("div",KKe,[l("div",jKe,[l("div",QKe,[l("div",XKe,[z(o,{ref:"mdRender",host:"","markdown-text":r.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",ZKe,[r.has_button?(T(),x("button",{key:0,onClick:e[0]||(e[0]=(...a)=>i.hide&&i.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):B("",!0),r.has_button?B("",!0):(T(),x("svg",JKe,e[1]||(e[1]=[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):B("",!0)}const tje=st(WKe,[["render",eje]]),nje={props:{progress:{type:Number,required:!0}}},sje={class:"progress-bar-container"};function rje(n,e,t,s,r,i){return T(),x("div",sje,[l("div",{class:"progress-bar",style:Bt({width:`${t.progress}%`})},null,4)])}const x0=st(nje,[["render",rje]]),ije={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ue(()=>{Ve.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,s){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let r=0;r{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=r,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Ue(()=>{Ve.replace()})}}},oje={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},aje={class:"relative w-full max-w-md max-h-[80vh]"},lje={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},cje={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},dje={class:"grow flex items-center"},uje={class:"text-lg font-semibold select-none"},pje={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},fje={class:"space-y-2"},_je={key:0},mje={key:0},hje={class:"text-base font-semibold"},gje={key:0,class:"relative inline-flex"},bje=["onUpdate:modelValue"],yje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},vje=["onUpdate:modelValue"],Eje={key:1},Sje={class:"text-base font-semibold"},Tje={key:0,class:"relative inline-flex"},xje=["onUpdate:modelValue"],Cje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},wje=["onUpdate:modelValue"],Rje=["value","selected"],Aje={key:1},Mje={class:"",onclick:"btn_clicked(item)"},Nje={key:2},Oje={key:0},Ije={class:"text-base font-semibold"},kje={key:0,class:"relative inline-flex"},Dje=["onUpdate:modelValue"],Lje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Pje=["onUpdate:modelValue"],Fje={key:1},Uje={class:"text-base font-semibold"},Bje={key:0,class:"relative inline-flex"},Gje=["onUpdate:modelValue"],Vje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zje=["onUpdate:modelValue"],Hje=["value","selected"],qje={key:3},Yje={class:"text-base font-semibold"},$je={key:0,class:"relative inline-flex"},Wje=["onUpdate:modelValue"],Kje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},jje=["onUpdate:modelValue"],Qje=["onUpdate:modelValue","min","max"],Xje={key:4},Zje={class:"text-base font-semibold"},Jje={key:0,class:"relative inline-flex"},eQe=["onUpdate:modelValue"],tQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},nQe=["onUpdate:modelValue"],sQe=["onUpdate:modelValue","min","max"],rQe={key:5},iQe={class:"mb-2 relative flex items-center gap-2"},oQe={for:"default-checkbox",class:"text-base font-semibold"},aQe=["onUpdate:modelValue"],lQe={key:0,class:"relative inline-flex"},cQe=["onUpdate:modelValue"],dQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},uQe={key:6},pQe={class:"text-base font-semibold"},fQe={key:0,class:"relative inline-flex"},_Qe=["onUpdate:modelValue"],mQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},hQe=["onUpdate:modelValue"],gQe={key:7,class:"space-y-2"},bQe={class:"flex items-center gap-2"},yQe={class:"text-base font-semibold"},vQe={key:0,class:"relative inline-flex"},EQe=["onUpdate:modelValue"],SQe={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},TQe={class:"flex gap-2"},xQe=["onUpdate:modelValue","placeholder"],CQe=["onClick"],wQe={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},RQe={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function AQe(n,e,t,s,r,i){return r.show?(T(),x("div",oje,[l("div",aje,[l("div",lje,[l("div",cje,[l("div",dje,[e[3]||(e[3]=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),l("h3",uje,Y(r.title),1)]),l("button",{onClick:e[0]||(e[0]=$(o=>i.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[l("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),l("div",pje,[l("div",fje,[(T(!0),x(Fe,null,We(r.controls_array,(o,a)=>(T(),x("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),x("div",_je,[o.options?B("",!0):(T(),x("div",mje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",hje,Y(o.name)+": ",1),o.help?(T(),x("label",gje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,bje),[[He,o.isHelp]]),e[5]||(e[5]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",yje,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,vje),[[ae,o.value]])])),o.options?(T(),x("div",Eje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Sje,Y(o.name)+": ",1),o.help?(T(),x("label",Tje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,xje),[[He,o.isHelp]]),e[6]||(e[6]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Cje,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Fe,null,We(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,Rje))),256))],8,wje),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="btn"?(T(),x("div",Aje,[l("button",Mje,Y(o.name),1)])):B("",!0),o.type=="text"?(T(),x("div",Nje,[o.options?B("",!0):(T(),x("div",Oje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Ije,Y(o.name)+": ",1),o.help?(T(),x("label",kje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Dje),[[He,o.isHelp]]),e[7]||(e[7]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Lje,Y(o.help),1)):B("",!0),k(l("textarea",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Pje),[[ae,o.value]])])),o.options?(T(),x("div",Fje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Uje,Y(o.name)+": ",1),o.help?(T(),x("label",Bje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Gje),[[He,o.isHelp]]),e[8]||(e[8]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Vje,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Fe,null,We(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,Hje))),256))],8,zje),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="int"?(T(),x("div",qje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Yje,Y(o.name)+": ",1),o.help?(T(),x("label",$je,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Wje),[[He,o.isHelp]]),e[9]||(e[9]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Kje,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,jje),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Qje)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="float"?(T(),x("div",Xje,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Zje,Y(o.name)+": ",1),o.help?(T(),x("label",Jje,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,eQe),[[He,o.isHelp]]),e[10]||(e[10]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",tQe,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,nQe),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,sQe)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="bool"?(T(),x("div",rQe,[l("div",iQe,[l("label",oQe,Y(o.name)+": ",1),k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.value=c,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,aQe),[[He,o.value]]),o.help?(T(),x("label",lQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,cQe),[[He,o.isHelp]]),e[11]||(e[11]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",dQe,Y(o.help),1)):B("",!0)])):B("",!0),o.type=="list"?(T(),x("div",uQe,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",pQe,Y(o.name)+": ",1),o.help?(T(),x("label",fQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,_Qe),[[He,o.isHelp]]),e[12]||(e[12]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",mQe,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,hQe),[[ae,o.value]])])):B("",!0),o.type==="file"||o.type==="folder"?(T(),x("div",gQe,[l("label",bQe,[l("span",yQe,Y(o.name)+":",1),o.help?(T(),x("label",vQe,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,EQe),[[He,o.isHelp]]),e[13]||(e[13]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",SQe,Y(o.help),1)):B("",!0),l("div",TQe,[k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,xQe),[[ae,o.value]]),l("button",{onClick:c=>i.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,CQe)])])):B("",!0),ai.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const yM=st(ije,[["render",AQe],["__scopeId","data-v-8a34bb65"]]),MQe={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Ue(()=>{Ve.replace()})},showToast(n,e=3,t=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),r={id:s,log_type:t,message:n,show:!0};this.toastArr.push(r),Ue(()=>{Ve.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(i=>i.id!=s)},e*1e3)}},watch:{}},NQe={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},OQe={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},IQe={class:"flex flex-row flex-grow items-center h-auto"},kQe={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},DQe={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},LQe={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},PQe={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},FQe=["title"],UQe={class:"flex"},BQe=["onClick"],GQe=["onClick"];function VQe(n,e,t,s,r,i){return T(),x("div",NQe,[z(Ir,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),x(Fe,null,We(r.toastArr,o=>(T(),x("div",{key:o.id,class:"relative"},[l("div",OQe,[l("div",IQe,[o.log_type==0?(T(),x("div",kQe,e[0]||(e[0]=[l("i",{"data-feather":"x"},null,-1),l("span",{class:"sr-only"},"Cross icon",-1)]))):B("",!0),o.log_type==1?(T(),x("div",DQe,e[1]||(e[1]=[l("i",{"data-feather":"check"},null,-1),l("span",{class:"sr-only"},"Check icon",-1)]))):B("",!0),o.log_type==2?(T(),x("div",LQe,e[2]||(e[2]=[l("i",{"data-feather":"info"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),o.log_type==3?(T(),x("div",PQe,e[3]||(e[3]=[l("i",{"data-feather":"alert-triangle"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),l("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},Y(o.message),9,FQe)]),l("div",UQe,[l("button",{type:"button",onClick:$(a=>i.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[l("span",{class:"sr-only"},"Copy message",-1),l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,BQe),l("button",{type:"button",onClick:a=>i.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[l("span",{class:"sr-only"},"Close",-1),l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,GQe)])])]))),128))]),_:1})])}const C0=st(MQe,[["render",VQe],["__scopeId","data-v-46f379e5"]]),zQe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(s=>{this.message=n,this.show=!0,this.resolve=s})}}},HQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},qQe={class:"relative w-full max-w-md max-h-full"},YQe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},$Qe={class:"p-4 text-center"},WQe={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function KQe(n,e,t,s,r,i){return r.show?(T(),x("div",HQe,[l("div",qQe,[l("div",YQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",$Qe,[e[4]||(e[4]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("h3",WQe,Y(r.message),1),l("button",{onClick:e[1]||(e[1]=o=>i.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const jQe=st(zQe,[["render",KQe]]),QQe={name:"TopBar",components:{Navigation:o4,ActionButton:IA,SocialIcon:kA,Toast:C0,MessageBox:tje,ProgressBar:x0,UniversalForm:yM,YesNoDialog:jQe},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.$store.state.toast=this.$refs.toast,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ve.replace()})},methods:{toggleThemeDropDown(){console.log("Toggling theme down:",this.themeDropdownOpen),this.themeDropdownOpen=!this.themeDropdownOpen,console.log("Toggled theme down:",this.themeDropdownOpen)},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1,console.log("Outside click detected"))},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>BHe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let t=this.$store.state.personalities.find(s=>s.full_path===e);if(console.log("personality",t),console.log("this.$store.state.language",t.language),console.log("personality.language",t.language),this.$store.state.language!=t.language){console.log("getting personality");const s=await ne.get("/get_personality");console.log(s),t=s.data,console.log(t),this.$store.commit("updatePersonality",t)}console.log("personality:",t),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ve.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ve.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ve.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{Wp(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{Wp(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},XQe={class:"topbar-content"},ZQe=["title"],JQe=["fill"],eXe={class:"relative inline-block"},tXe={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},nXe={class:"flex gap-3 flex-1 items-center justify-end"},sXe={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},rXe={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},iXe={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},oXe={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},aXe={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},lXe={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},cXe={class:"flex items-center space-x-4"},dXe={class:"relative group",title:"Lollms News"},uXe={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},pXe={class:"language-selector relative"},fXe={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},_Xe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},mXe=["onClick"],hXe=["onClick"],gXe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},bXe={class:"relative inline-flex"},yXe={class:"flex items-center space-x-2 overflow-hidden"},vXe={class:"font-medium truncate"},EXe={key:0,class:"absolute left-0 z-50 w-48 mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg"},SXe={class:"max-h-60 overflow-y-auto scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100"},TXe=["onClick"],xXe={class:"font-medium truncate"},CXe={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},wXe={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function RXe(n,e,t,s,r,i){const o=Je("Navigation"),a=Je("ActionButton"),c=Je("SocialIcon"),d=Je("ProgressBar"),u=Je("InputBox"),_=Je("Toast"),m=Je("MessageBox"),h=Je("YesNoDialog"),g=Je("UniversalForm");return T(),x(Fe,null,[l("div",{ref:"topbar-container",class:Le(["topbar-container",{"h-0":!r.isPinned}])},[l("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...f)=>i.show&&i.show(...f)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),l("div",{class:Le(["topbar",{"topbar-hidden":!r.isVisible}]),onMouseleave:e[14]||(e[14]=(...f)=>i.hide&&i.hide(...f))},[l("div",XQe,[on(n.$slots,"navigation",{},void 0,!0),l("button",{class:"pin-button",onClick:e[1]||(e[1]=(...f)=>i.togglePin&&i.togglePin(...f)),title:r.isPinned?"Unpin":"Pin"},[(T(),x("svg",{fill:r.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[l("g",null,[l("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r c-3-0.3-6-0.5-8.9-0.5c-21.7,0-42.2,8.5-57.5,23.8l-20.8,20.8c-6.7,6.7-6.7,17.6,0,24.3l108.5,108.5l-132.4,132.4\r c-6.7,6.7-6.7,17.6,0,24.3c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5l132.5-132.5l108.5,108.5c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5\r l20.8-20.8c17.6-17.6,26.1-41.8,23.3-66.4l-7-63.5l40.3-40.3l16.2,16.2c6.7,6.7,17.6,6.7,24.3,0l72.6-72.6c3.2-3.2,5-7.6,5-12.1\r s-1.8-8.9-5-12.1L300.625,5.025z M400.425,250.025l-16.2-16.3c-6.4-6.4-17.8-6.4-24.3,0l-58.2,58.3c-3.7,3.7-5.5,8.8-4.9,14\r l7.9,71.6c1.6,14.3-3.3,28.3-13.5,38.4l-8.7,8.7l-217.1-217.1l8.7-8.6c10.1-10.1,24.2-15,38.4-13.5l71.7,7.9\r - c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,JQe))],8,ZQe),z(o),l("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...f)=>i.hideInfosMenu&&i.hideInfosMenu(...f))},[l("div",eXe,[r.isInfosMenuVisible?(T(),x("div",{key:0,onMouseenter:e[3]||(e[3]=(...f)=>i.showInfosMenu&&i.showInfosMenu(...f)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",tXe,[l("div",nXe,[i.isModelOK?(T(),x("div",sXe,e[16]||(e[16]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),x("div",rXe,e[17]||(e[17]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),i.isGenerating?(T(),x("div",oXe,e[19]||(e[19]=[l("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),x("div",iXe,e[18]||(e[18]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),i.isConnected?(T(),x("div",aXe,e[20]||(e[20]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),x("div",lXe,e[21]||(e[21]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),l("div",cXe,[z(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),z(a,{onClick:i.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),z(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),z(c,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),z(c,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),z(c,{href:"https://x.com/ParisNeo_AI",icon:"x"}),z(c,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),l("div",dXe,[l("div",{onClick:e[2]||(e[2]=f=>i.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[l("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):B("",!0),l("div",{onMouseenter:e[4]||(e[4]=(...f)=>i.showInfosMenu&&i.showInfosMenu(...f)),class:"infos-hover-area"},e[24]||(e[24]=[Zi('',1)]),32)])],32),i.is_fun_mode?(T(),x("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=f=>i.fun_mode_off())},e[25]||(e[25]=[Zi('',1)]))):(T(),x("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=f=>i.fun_mode_on())},e[26]||(e[26]=[Zi('',1)]))),l("span",uXe,Y(i.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),l("div",pXe,[l("button",{onClick:e[8]||(e[8]=(...f)=>i.toggleLanguageMenu&&i.toggleLanguageMenu(...f)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},Y(n.$store.state.language.slice(0,2)),1),r.isLanguageMenuVisible?(T(),x("div",fXe,[l("ul",_Xe,[(T(!0),x(Fe,null,We(i.languages,f=>(T(),x("li",{key:f,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:y=>i.deleteLanguage(f),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,mXe),l("div",{onClick:y=>i.selectLanguage(f),class:Le({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":f===n.$store.state.language,"flex-grow":!0})},Y(f),11,hXe)]))),128)),l("li",gXe,[k(l("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=f=>n.customLanguage=f),onKeyup:e[10]||(e[10]=Jn($((...f)=>i.addCustomLanguage&&i.addCustomLanguage(...f),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[ae,n.customLanguage]])])])],512)):B("",!0)]),i.isDarkMode?(T(),x("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=f=>i.themeSwitch())},e[27]||(e[27]=[l("i",{"data-feather":"sun"},null,-1)]))):(T(),x("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=f=>i.themeSwitch())},e[28]||(e[28]=[l("i",{"data-feather":"moon"},null,-1)]))),l("div",bXe,[l("button",{onClick:e[13]||(e[13]=$((...f)=>i.toggleThemeDropDown&&i.toggleThemeDropDown(...f),["stop"])),class:"inline-flex items-center justify-between w-40 px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:from-blue-500/20 hover:to-purple-500/20 dark:hover:from-blue-400/30 dark:hover:to-purple-400/30 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[l("div",yXe,[e[29]||(e[29]=l("svg",{class:"w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),l("span",vXe,Y(r.currentTheme),1)]),(T(),x("svg",{class:Le(["w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":r.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),z(ir,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Ie(()=>[r.themeDropdownOpen?(T(),x("div",EXe,[l("div",SXe,[(T(!0),x(Fe,null,We(r.availableThemes,f=>(T(),x("a",{key:f,onClick:y=>{i.loadTheme(f),r.currentTheme=f,r.themeDropdownOpen=!1},class:"flex items-center space-x-3 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=l("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),l("span",xXe,Y(f),1)],8,TXe))),128))])])):B("",!0)]),_:1})])])],34)],2),k(l("div",CXe,[z(d,{ref:"progress",progress:n.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",wXe,Y(n.loading_infos)+" ...",1)],512),[[ht,n.progress_visibility]]),z(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:n.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),z(_,{ref:"toast"},null,512),z(m,{ref:"messageBox"},null,512),z(h,{ref:"yesNoDialog",class:"z-20"},null,512),z(g,{ref:"universalForm",class:"z-20"},null,512)],64)}const AXe=st(QQe,[["render",RXe],["__scopeId","data-v-5cfc6bf7"]]),MXe={class:"flex overflow-hidden flex-grow w-full"},NXe={__name:"App",setup(n){return(e,t)=>(T(),x("div",{class:Le([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[z(AXe),l("div",MXe,[z(bt(OA),null,{default:Ie(({Component:s})=>[(T(),at(ak,null,[(T(),at(Pu(s)))],1024))]),_:1})])],2))}},lr=Object.create(null);lr.open="0";lr.close="1";lr.ping="2";lr.pong="3";lr.message="4";lr.upgrade="5";lr.noop="6";const wd=Object.create(null);Object.keys(lr).forEach(n=>{wd[lr[n]]=n});const tb={type:"error",data:"parser error"},vM=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",EM=typeof ArrayBuffer=="function",SM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,w0=({type:n,data:e},t,s)=>vM&&e instanceof Blob?t?s(e):Px(e,s):EM&&(e instanceof ArrayBuffer||SM(e))?t?s(e):Px(new Blob([e]),s):s(lr[n]+(e||"")),Px=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Fx(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Gh;function OXe(n,e){if(vM&&n.data instanceof Blob)return n.data.arrayBuffer().then(Fx).then(e);if(EM&&(n.data instanceof ArrayBuffer||SM(n.data)))return e(Fx(n.data));w0(n,!1,t=>{Gh||(Gh=new TextEncoder),e(Gh.encode(t))})}const Ux="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,r=0,i,o,a,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(s=0;s>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|c&63;return d},kXe=typeof ArrayBuffer=="function",R0=(n,e)=>{if(typeof n!="string")return{type:"message",data:TM(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:DXe(n.substring(1),e)}:wd[t]?n.length>1?{type:wd[t],data:n.substring(1)}:{type:wd[t]}:tb},DXe=(n,e)=>{if(kXe){const t=IXe(n);return TM(t,e)}else return{base64:!0,data:n}},TM=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},xM="",LXe=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((i,o)=>{w0(i,!1,a=>{s[o]=a,++r===t&&e(s.join(xM))})})},PXe=(n,e)=>{const t=n.split(xM),s=[];for(let r=0;r{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let Vh;function Dc(n){return n.reduce((e,t)=>e+t.length,0)}function Lc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;rMath.pow(2,21)-1){a.enqueue(tb);break}r=u*Math.pow(2,32)+d.getUint32(4),s=3}else{if(Dc(t)n){a.enqueue(tb);break}}}})}const CM=4;function an(n){if(n)return BXe(n)}function BXe(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;rPromise.resolve().then(e):(e,t)=>t(e,0),hs=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),GXe="arraybuffer";function wM(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const VXe=hs.setTimeout,zXe=hs.clearTimeout;function ap(n,e){e.useNativeTimers?(n.setTimeoutFn=VXe.bind(hs),n.clearTimeoutFn=zXe.bind(hs)):(n.setTimeoutFn=hs.setTimeout.bind(hs),n.clearTimeoutFn=hs.clearTimeout.bind(hs))}const HXe=1.33;function qXe(n){return typeof n=="string"?YXe(n):Math.ceil((n.byteLength||n.size)*HXe)}function YXe(n){let e=0,t=0;for(let s=0,r=n.length;s=57344?t+=3:(s++,t+=4);return t}function RM(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $Xe(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function WXe(n){let e={},t=n.split("&");for(let s=0,r=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};PXe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,LXe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=RM()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let AM=!1;try{AM=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const QXe=AM;function XXe(){}class ZXe extends jXe{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}let ra=class Rd extends an{constructor(e,t,s){super(),this.createRequest=e,ap(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=wM(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=Rd.requestsCount++,Rd.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=XXe,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Rd.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ra.requestsCount=0;ra.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bx);else if(typeof addEventListener=="function"){const n="onpagehide"in hs?"pagehide":"unload";addEventListener(n,Bx,!1)}}function Bx(){for(let n in ra.requests)ra.requests.hasOwnProperty(n)&&ra.requests[n].abort()}const JXe=function(){const n=MM({xdomain:!1});return n&&n.responseType!==null}();class eZe extends ZXe{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=JXe&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ra(MM,this.uri(),e)}}function MM(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||QXe))return new XMLHttpRequest}catch{}if(!e)try{return new hs[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const NM=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class tZe extends A0{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=NM?{}:wM(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,i)}catch{}r&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=RM()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const zh=hs.WebSocket||hs.MozWebSocket;class nZe extends tZe{createSocket(e,t,s){return NM?new zh(e,t,s):t?new zh(e,t):new zh(e)}doWrite(e,t){this.ws.send(t)}}class sZe extends A0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=UXe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=FXe();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{r&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const rZe={websocket:nZe,webtransport:sZe,polling:eZe},iZe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oZe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function nb(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=iZe.exec(n||""),i={},o=14;for(;o--;)i[oZe[o]]=r[o]||"";return t!=-1&&s!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=aZe(i,i.path),i.queryKey=lZe(i,i.query),i}function aZe(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function lZe(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(t[r]=i)}),t}const sb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ad=[];sb&&addEventListener("offline",()=>{Ad.forEach(n=>n())},!1);class mi extends an{constructor(e,t){if(super(),this.binaryType=GXe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=nb(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=nb(t.host).host);ap(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WXe(this.opts.query)),sb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ad.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=CM,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&mi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",mi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,op(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(mi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Ad.indexOf(this._offlineEventListener);s!==-1&&Ad.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}mi.protocol=CM;class cZe extends mi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;mi.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=t.name,this.emitReserved("upgradeError",m)}}))};function i(){s||(s=!0,u(),t.close(),t=null)}const o=_=>{const m=new Error("probe error: "+_);m.transport=t.name,i(),this.emitReserved("upgradeError",m)};function a(){o("transport closed")}function c(){o("socket closed")}function d(_){t&&_.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};t.once("open",r),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;srZe[r]).filter(r=>!!r)),super(e,s)}};function uZe(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=nb(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+e,s.href=s.protocol+"://"+i+(t&&t.port===s.port?"":":"+s.port),s}const pZe=typeof ArrayBuffer=="function",fZe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,OM=Object.prototype.toString,_Ze=typeof Blob=="function"||typeof Blob<"u"&&OM.call(Blob)==="[object BlobConstructor]",mZe=typeof File=="function"||typeof File<"u"&&OM.call(File)==="[object FileConstructor]";function M0(n){return pZe&&(n instanceof ArrayBuffer||fZe(n))||_Ze&&n instanceof Blob||mZe&&n instanceof File}function Md(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(i),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,r)=>{const i=(o,a)=>o?r(o):s(a);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:At.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case At.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case At.EVENT:case At.BINARY_EVENT:this.onevent(e);break;case At.ACK:case At.BINARY_ACK:this.onack(e);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:At.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:At.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}za.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};za.prototype.reset=function(){this.attempts=0};za.prototype.setMin=function(n){this.ms=n};za.prototype.setMax=function(n){this.max=n};za.prototype.setJitter=function(n){this.jitter=n};class ob extends an{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ap(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new za({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||SZe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new dZe(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Ls(t,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Ls(t,"error",i);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ls(e,"ping",this.onping.bind(this)),Ls(e,"data",this.ondata.bind(this)),Ls(e,"error",this.onerror.bind(this)),Ls(e,"close",this.onclose.bind(this)),Ls(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){op(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new IM(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const nl={};function Nd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=uZe(n,e.path||"/socket.io"),s=t.source,r=t.id,i=t.path,o=nl[r]&&i in nl[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ob(s,e):(nl[r]||(nl[r]=new ob(s,e)),c=nl[r]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(Nd,{Manager:ob,Socket:IM,io:Nd,connect:Nd});const kM="/";console.log(kM);const Ye=new Nd(kM,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),xZe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Ue(()=>{Ve.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},CZe={class:"flex items-center space-x-2"},wZe=["value","type","placeholder"],RZe=["value","min","max"],AZe=["accept"];function MZe(n,e,t,s,r,i){return T(),x("div",CZe,[n.useSlider?(T(),x("input",{key:1,type:"range",value:parseInt(r.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>i.handleSliderInput&&i.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,RZe)):(T(),x("input",{key:0,value:r.inputValue,type:t.inputType,placeholder:r.placeholderText,onInput:e[0]||(e[0]=(...o)=>i.handleInput&&i.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>i.handlePaste&&i.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,wZe)),l("button",{onClick:e[3]||(e[3]=(...o)=>i.pasteFromClipboard&&i.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[l("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),x("button",{key:2,onClick:e[4]||(e[4]=(...o)=>i.openFileInput&&i.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[l("i",{"data-feather":"upload"},null,-1)]))):B("",!0),t.inputType==="file"?(T(),x("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>i.handleFileInputChange&&i.handleFileInputChange(...o))},null,40,AZe)):B("",!0)])}const O0=st(xZe,[["render",MZe]]),NZe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},OZe={class:"w-full"},IZe={class:"break-words"},kZe={class:"break-words mt-2"},DZe={class:"mt-4"};function LZe(n,e,t,s,r,i){return T(),x("div",OZe,[l("div",IZe,[(T(!0),x(Fe,null,We(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[0]),5)]))),128))]),l("div",kZe,[(T(!0),x(Fe,null,We(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[1]),5)]))),128))]),l("div",DZe,[l("strong",null,"Total Tokens: "+Y(t.namedTokens.length),1)])])}const PZe=st(NZe,[["render",LZe]]),FZe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function UZe(n,e,t,s,r,i){return T(),x("button",xR({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,gk(n.$listeners)),[on(n.$slots,"icon"),on(n.$slots,"default")],16)}const DM=st(FZe,[["render",UZe]]),BZe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},GZe={key:1,class:"flex flex-wrap"},VZe={key:2,class:"mb-2"};function zZe(n,e,t,s,r,i){return T(),x("div",null,[r.isActive?(T(),x("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>i.toggleCard&&i.toggleCard(...o))})):B("",!0),k(l("div",{class:Le(["border-blue-300 rounded-lg shadow-lg p-2",i.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&r.isHovered,active:r.isActive}]),onMouseenter:e[2]||(e[2]=o=>r.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>r.isHovered=!1),onClick:e[4]||(e[4]=$((...o)=>i.toggleCard&&i.toggleCard(...o),["self"])),style:Bt({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),x("div",{key:0,onClick:e[1]||(e[1]=o=>r.shrink=!0),class:Le([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},Y(t.title),3)):B("",!0),t.isHorizontal?(T(),x("div",GZe,[on(n.$slots,"default")])):(T(),x("div",VZe,[on(n.$slots,"default")]))],38),[[ht,r.shrink===!1]]),t.is_subcard?k((T(),x("div",{key:1,onClick:e[5]||(e[5]=o=>r.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},Y(t.title),513)),[[ht,r.shrink===!0]]):k((T(),x("div",{key:2,onClick:e[6]||(e[6]=o=>r.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[ht,r.shrink===!0]])])}const lp=st(BZe,[["render",zZe]]),LM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",PM="/assets/python_block-Bt12VGEE.png",FM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",UM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",BM="/assets/cpp_block-kkmuBJ_E.png",GM="/assets/html5_block-beC_-Wtz.png",VM="/assets/LaTeX_block-BNFNi2yr.png",zM="/assets/bash_block-DZNRrwlz.png",HZe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",qZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",YZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",$Ze="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",WZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",HM="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",KZe={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},jZe=["title"],QZe={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},XZe=["innerHTML"];function ZZe(n,e,t,s,r,i){return T(),x("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),x("svg",QZe,[l("g",{innerHTML:i.iconPath},null,8,XZe)]))],8,jZe)}const I0=st(KZe,[["render",ZZe]]);var Qn="top",As="bottom",Ms="right",Xn="left",k0="auto",cc=[Qn,As,Ms,Xn],ma="start",Kl="end",JZe="clippingParents",qM="viewport",sl="popper",eJe="reference",Vx=cc.reduce(function(n,e){return n.concat([e+"-"+ma,e+"-"+Kl])},[]),YM=[].concat(cc,[k0]).reduce(function(n,e){return n.concat([e,e+"-"+ma,e+"-"+Kl])},[]),tJe="beforeRead",nJe="read",sJe="afterRead",rJe="beforeMain",iJe="main",oJe="afterMain",aJe="beforeWrite",lJe="write",cJe="afterWrite",dJe=[tJe,nJe,sJe,rJe,iJe,oJe,aJe,lJe,cJe];function cr(n){return n?(n.nodeName||"").toLowerCase():null}function cs(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function po(n){var e=cs(n).Element;return n instanceof e||n instanceof Element}function Cs(n){var e=cs(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D0(n){if(typeof ShadowRoot>"u")return!1;var e=cs(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function uJe(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Cs(i)||!cr(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function pJe(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(s){var r=e.elements[s],i=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),a=o.reduce(function(c,d){return c[d]="",c},{});!Cs(r)||!cr(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const fJe={name:"applyStyles",enabled:!0,phase:"write",fn:uJe,effect:pJe,requires:["computeStyles"]};function or(n){return n.split("-")[0]}var to=Math.max,nu=Math.min,ha=Math.round;function ab(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $M(){return!/^((?!chrome|android).)*safari/i.test(ab())}function ga(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=n.getBoundingClientRect(),r=1,i=1;e&&Cs(n)&&(r=n.offsetWidth>0&&ha(s.width)/n.offsetWidth||1,i=n.offsetHeight>0&&ha(s.height)/n.offsetHeight||1);var o=po(n)?cs(n):window,a=o.visualViewport,c=!$M()&&t,d=(s.left+(c&&a?a.offsetLeft:0))/r,u=(s.top+(c&&a?a.offsetTop:0))/i,_=s.width/r,m=s.height/i;return{width:_,height:m,top:u,right:d+_,bottom:u+m,left:d,x:d,y:u}}function L0(n){var e=ga(n),t=n.offsetWidth,s=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:s}}function WM(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&D0(t)){var s=e;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Pr(n){return cs(n).getComputedStyle(n)}function _Je(n){return["table","td","th"].indexOf(cr(n))>=0}function Ai(n){return((po(n)?n.ownerDocument:n.document)||window.document).documentElement}function cp(n){return cr(n)==="html"?n:n.assignedSlot||n.parentNode||(D0(n)?n.host:null)||Ai(n)}function zx(n){return!Cs(n)||Pr(n).position==="fixed"?null:n.offsetParent}function mJe(n){var e=/firefox/i.test(ab()),t=/Trident/i.test(ab());if(t&&Cs(n)){var s=Pr(n);if(s.position==="fixed")return null}var r=cp(n);for(D0(r)&&(r=r.host);Cs(r)&&["html","body"].indexOf(cr(r))<0;){var i=Pr(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function dc(n){for(var e=cs(n),t=zx(n);t&&_Je(t)&&Pr(t).position==="static";)t=zx(t);return t&&(cr(t)==="html"||cr(t)==="body"&&Pr(t).position==="static")?e:t||mJe(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function wl(n,e,t){return to(n,nu(e,t))}function hJe(n,e,t){var s=wl(n,e,t);return s>t?t:s}function KM(){return{top:0,right:0,bottom:0,left:0}}function jM(n){return Object.assign({},KM(),n)}function QM(n,e){return e.reduce(function(t,s){return t[s]=n,t},{})}var gJe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jM(typeof e!="number"?e:QM(e,cc))};function bJe(n){var e,t=n.state,s=n.name,r=n.options,i=t.elements.arrow,o=t.modifiersData.popperOffsets,a=or(t.placement),c=P0(a),d=[Xn,Ms].indexOf(a)>=0,u=d?"height":"width";if(!(!i||!o)){var _=gJe(r.padding,t),m=L0(i),h=c==="y"?Qn:Xn,g=c==="y"?As:Ms,f=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],y=o[c]-t.rects.reference[c],b=dc(i),v=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=f/2-y/2,S=_[h],R=v-m[u]-_[g],w=v/2-m[u]/2+E,A=wl(S,w,R),I=c;t.modifiersData[s]=(e={},e[I]=A,e.centerOffset=A-w,e)}}function yJe(n){var e=n.state,t=n.options,s=t.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||WM(e.elements.popper,r)&&(e.elements.arrow=r))}const vJe={name:"arrow",enabled:!0,phase:"main",fn:bJe,effect:yJe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(n){return n.split("-")[1]}var EJe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SJe(n,e){var t=n.x,s=n.y,r=e.devicePixelRatio||1;return{x:ha(t*r)/r||0,y:ha(s*r)/r||0}}function Hx(n){var e,t=n.popper,s=n.popperRect,r=n.placement,i=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,_=n.isFixed,m=o.x,h=m===void 0?0:m,g=o.y,f=g===void 0?0:g,y=typeof u=="function"?u({x:h,y:f}):{x:h,y:f};h=y.x,f=y.y;var b=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),E=Xn,S=Qn,R=window;if(d){var w=dc(t),A="clientHeight",I="clientWidth";if(w===cs(t)&&(w=Ai(t),Pr(w).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),w=w,r===Qn||(r===Xn||r===Ms)&&i===Kl){S=As;var C=_&&w===R&&R.visualViewport?R.visualViewport.height:w[A];f-=C-s.height,f*=c?1:-1}if(r===Xn||(r===Qn||r===As)&&i===Kl){E=Ms;var M=_&&w===R&&R.visualViewport?R.visualViewport.width:w[I];h-=M-s.width,h*=c?1:-1}}var G=Object.assign({position:a},d&&EJe),V=u===!0?SJe({x:h,y:f},cs(t)):{x:h,y:f};if(h=V.x,f=V.y,c){var ee;return Object.assign({},G,(ee={},ee[S]=v?"0":"",ee[E]=b?"0":"",ee.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",ee))}return Object.assign({},G,(e={},e[S]=v?f+"px":"",e[E]=b?h+"px":"",e.transform="",e))}function TJe(n){var e=n.state,t=n.options,s=t.gpuAcceleration,r=s===void 0?!0:s,i=t.adaptive,o=i===void 0?!0:i,a=t.roundOffsets,c=a===void 0?!0:a,d={placement:or(e.placement),variation:ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const xJe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:TJe,data:{}};var Pc={passive:!0};function CJe(n){var e=n.state,t=n.instance,s=n.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,a=o===void 0?!0:o,c=cs(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),a&&c.addEventListener("resize",t.update,Pc),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),a&&c.removeEventListener("resize",t.update,Pc)}}const wJe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CJe,data:{}};var RJe={left:"right",right:"left",bottom:"top",top:"bottom"};function Od(n){return n.replace(/left|right|bottom|top/g,function(e){return RJe[e]})}var AJe={start:"end",end:"start"};function qx(n){return n.replace(/start|end/g,function(e){return AJe[e]})}function F0(n){var e=cs(n),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function U0(n){return ga(Ai(n)).left+F0(n).scrollLeft}function MJe(n,e){var t=cs(n),s=Ai(n),r=t.visualViewport,i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;var d=$M();(d||!d&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a+U0(n),y:c}}function NJe(n){var e,t=Ai(n),s=F0(n),r=(e=n.ownerDocument)==null?void 0:e.body,i=to(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=to(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+U0(n),c=-s.scrollTop;return Pr(r||t).direction==="rtl"&&(a+=to(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:c}}function B0(n){var e=Pr(n),t=e.overflow,s=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+s)}function XM(n){return["html","body","#document"].indexOf(cr(n))>=0?n.ownerDocument.body:Cs(n)&&B0(n)?n:XM(cp(n))}function Rl(n,e){var t;e===void 0&&(e=[]);var s=XM(n),r=s===((t=n.ownerDocument)==null?void 0:t.body),i=cs(s),o=r?[i].concat(i.visualViewport||[],B0(s)?s:[]):s,a=e.concat(o);return r?a:a.concat(Rl(cp(o)))}function lb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function OJe(n,e){var t=ga(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Yx(n,e,t){return e===qM?lb(MJe(n,t)):po(e)?OJe(e,t):lb(NJe(Ai(n)))}function IJe(n){var e=Rl(cp(n)),t=["absolute","fixed"].indexOf(Pr(n).position)>=0,s=t&&Cs(n)?dc(n):n;return po(s)?e.filter(function(r){return po(r)&&WM(r,s)&&cr(r)!=="body"}):[]}function kJe(n,e,t,s){var r=e==="clippingParents"?IJe(n):[].concat(e),i=[].concat(r,[t]),o=i[0],a=i.reduce(function(c,d){var u=Yx(n,d,s);return c.top=to(u.top,c.top),c.right=nu(u.right,c.right),c.bottom=nu(u.bottom,c.bottom),c.left=to(u.left,c.left),c},Yx(n,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ZM(n){var e=n.reference,t=n.element,s=n.placement,r=s?or(s):null,i=s?ba(s):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(r){case Qn:c={x:o,y:e.y-t.height};break;case As:c={x:o,y:e.y+e.height};break;case Ms:c={x:e.x+e.width,y:a};break;case Xn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var d=r?P0(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case ma:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Kl:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function jl(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=s===void 0?n.placement:s,i=t.strategy,o=i===void 0?n.strategy:i,a=t.boundary,c=a===void 0?JZe:a,d=t.rootBoundary,u=d===void 0?qM:d,_=t.elementContext,m=_===void 0?sl:_,h=t.altBoundary,g=h===void 0?!1:h,f=t.padding,y=f===void 0?0:f,b=jM(typeof y!="number"?y:QM(y,cc)),v=m===sl?eJe:sl,E=n.rects.popper,S=n.elements[g?v:m],R=kJe(po(S)?S:S.contextElement||Ai(n.elements.popper),c,u,o),w=ga(n.elements.reference),A=ZM({reference:w,element:E,strategy:"absolute",placement:r}),I=lb(Object.assign({},E,A)),C=m===sl?I:w,M={top:R.top-C.top+b.top,bottom:C.bottom-R.bottom+b.bottom,left:R.left-C.left+b.left,right:C.right-R.right+b.right},G=n.modifiersData.offset;if(m===sl&&G){var V=G[r];Object.keys(M).forEach(function(ee){var O=[Ms,As].indexOf(ee)>=0?1:-1,H=[Qn,As].indexOf(ee)>=0?"y":"x";M[ee]+=V[H]*O})}return M}function DJe(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=t.boundary,i=t.rootBoundary,o=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?YM:c,u=ba(s),_=u?a?Vx:Vx.filter(function(g){return ba(g)===u}):cc,m=_.filter(function(g){return d.indexOf(g)>=0});m.length===0&&(m=_);var h=m.reduce(function(g,f){return g[f]=jl(n,{placement:f,boundary:r,rootBoundary:i,padding:o})[or(f)],g},{});return Object.keys(h).sort(function(g,f){return h[g]-h[f]})}function LJe(n){if(or(n)===k0)return[];var e=Od(n);return[qx(n),e,qx(e)]}function PJe(n){var e=n.state,t=n.options,s=n.name;if(!e.modifiersData[s]._skip){for(var r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,c=t.fallbackPlacements,d=t.padding,u=t.boundary,_=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,g=h===void 0?!0:h,f=t.allowedAutoPlacements,y=e.options.placement,b=or(y),v=b===y,E=c||(v||!g?[Od(y)]:LJe(y)),S=[y].concat(E).reduce(function(Ee,Oe){return Ee.concat(or(Oe)===k0?DJe(e,{placement:Oe,boundary:u,rootBoundary:_,padding:d,flipVariations:g,allowedAutoPlacements:f}):Oe)},[]),R=e.rects.reference,w=e.rects.popper,A=new Map,I=!0,C=S[0],M=0;M=0,H=O?"width":"height",q=jl(e,{placement:G,boundary:u,rootBoundary:_,altBoundary:m,padding:d}),L=O?ee?Ms:Xn:ee?As:Qn;R[H]>w[H]&&(L=Od(L));var W=Od(L),se=[];if(i&&se.push(q[V]<=0),a&&se.push(q[L]<=0,q[W]<=0),se.every(function(Ee){return Ee})){C=G,I=!1;break}A.set(G,se)}if(I)for(var oe=g?3:1,ye=function(Oe){var De=S.find(function(Q){var fe=A.get(Q);if(fe)return fe.slice(0,Oe).every(function(_e){return _e})});if(De)return C=De,"break"},xe=oe;xe>0;xe--){var ce=ye(xe);if(ce==="break")break}e.placement!==C&&(e.modifiersData[s]._skip=!0,e.placement=C,e.reset=!0)}}const FJe={name:"flip",enabled:!0,phase:"main",fn:PJe,requiresIfExists:["offset"],data:{_skip:!1}};function $x(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Wx(n){return[Qn,Ms,As,Xn].some(function(e){return n[e]>=0})}function UJe(n){var e=n.state,t=n.name,s=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=jl(e,{elementContext:"reference"}),a=jl(e,{altBoundary:!0}),c=$x(o,s),d=$x(a,r,i),u=Wx(c),_=Wx(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":_})}const BJe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:UJe};function GJe(n,e,t){var s=or(n),r=[Xn,Qn].indexOf(s)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=i[0],a=i[1];return o=o||0,a=(a||0)*r,[Xn,Ms].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function VJe(n){var e=n.state,t=n.options,s=n.name,r=t.offset,i=r===void 0?[0,0]:r,o=YM.reduce(function(u,_){return u[_]=GJe(_,e.rects,i),u},{}),a=o[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=o}const zJe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VJe};function HJe(n){var e=n.state,t=n.name;e.modifiersData[t]=ZM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const qJe={name:"popperOffsets",enabled:!0,phase:"read",fn:HJe,data:{}};function YJe(n){return n==="x"?"y":"x"}function $Je(n){var e=n.state,t=n.options,s=n.name,r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,_=t.padding,m=t.tether,h=m===void 0?!0:m,g=t.tetherOffset,f=g===void 0?0:g,y=jl(e,{boundary:c,rootBoundary:d,padding:_,altBoundary:u}),b=or(e.placement),v=ba(e.placement),E=!v,S=P0(b),R=YJe(S),w=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,C=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(w){if(i){var ee,O=S==="y"?Qn:Xn,H=S==="y"?As:Ms,q=S==="y"?"height":"width",L=w[S],W=L+y[O],se=L-y[H],oe=h?-I[q]/2:0,ye=v===ma?A[q]:I[q],xe=v===ma?-I[q]:-A[q],ce=e.elements.arrow,Ee=h&&ce?L0(ce):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:KM(),De=Oe[O],Q=Oe[H],fe=wl(0,A[q],Ee[q]),_e=E?A[q]/2-oe-fe-De-M.mainAxis:ye-fe-De-M.mainAxis,Ae=E?-A[q]/2+oe+fe+Q+M.mainAxis:xe+fe+Q+M.mainAxis,Be=e.elements.arrow&&dc(e.elements.arrow),te=Be?S==="y"?Be.clientTop||0:Be.clientLeft||0:0,U=(ee=G==null?void 0:G[S])!=null?ee:0,P=L+_e-U-te,Z=L+Ae-U,de=wl(h?nu(W,P):W,L,h?to(se,Z):se);w[S]=de,V[S]=de-L}if(a){var pe,he=S==="x"?Qn:Xn,le=S==="x"?As:Ms,Me=w[R],Re=R==="y"?"height":"width",ge=Me+y[he],D=Me-y[le],N=[Qn,Xn].indexOf(b)!==-1,K=(pe=G==null?void 0:G[R])!=null?pe:0,me=N?ge:Me-A[Re]-I[Re]-K+M.altAxis,j=N?Me+A[Re]+I[Re]-K-M.altAxis:D,re=h&&N?hJe(me,Me,j):wl(h?me:ge,Me,h?j:D);w[R]=re,V[R]=re-Me}e.modifiersData[s]=V}}const WJe={name:"preventOverflow",enabled:!0,phase:"main",fn:$Je,requiresIfExists:["offset"]};function KJe(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function jJe(n){return n===cs(n)||!Cs(n)?F0(n):KJe(n)}function QJe(n){var e=n.getBoundingClientRect(),t=ha(e.width)/n.offsetWidth||1,s=ha(e.height)/n.offsetHeight||1;return t!==1||s!==1}function XJe(n,e,t){t===void 0&&(t=!1);var s=Cs(e),r=Cs(e)&&QJe(e),i=Ai(e),o=ga(n,r,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!t)&&((cr(e)!=="body"||B0(i))&&(a=jJe(e)),Cs(e)?(c=ga(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=U0(i))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function ZJe(n){var e=new Map,t=new Set,s=[];n.forEach(function(i){e.set(i.name,i)});function r(i){t.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&r(c)}}),s.push(i)}return n.forEach(function(i){t.has(i.name)||r(i)}),s}function JJe(n){var e=ZJe(n);return dJe.reduce(function(t,s){return t.concat(e.filter(function(r){return r.phase===s}))},[])}function eet(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function tet(n){var e=n.reduce(function(t,s){var r=t[s.name];return t[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}var Kx={placement:"bottom",modifiers:[],strategy:"absolute"};function jx(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=dp(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},iet={class:"relative inline-block text-left"},oet={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},aet={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function cet(n,e,t,s,r,i){const o=Je("ToolbarButton");return T(),x("div",iet,[l("div",null,[z(o,{onClick:$(i.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),at(sk,{to:"body"},[r.isOpen?(T(),x("div",oet,[l("div",aet,[on(n.$slots,"default",{},void 0,!0)])],512)):B("",!0)]))])}const JM=st(ret,[["render",cet],["__scopeId","data-v-6c3ea3a5"]]);async function Qx(n,e="",t=[]){return new Promise((s,r)=>{const i=document.createElement("div");i.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?i.innerHTML=` + c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,JQe))],8,ZQe),z(o),l("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...f)=>i.hideInfosMenu&&i.hideInfosMenu(...f))},[l("div",eXe,[r.isInfosMenuVisible?(T(),x("div",{key:0,onMouseenter:e[3]||(e[3]=(...f)=>i.showInfosMenu&&i.showInfosMenu(...f)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",tXe,[l("div",nXe,[i.isModelOK?(T(),x("div",sXe,e[16]||(e[16]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),x("div",rXe,e[17]||(e[17]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),i.isGenerating?(T(),x("div",oXe,e[19]||(e[19]=[l("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),x("div",iXe,e[18]||(e[18]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),i.isConnected?(T(),x("div",aXe,e[20]||(e[20]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),x("div",lXe,e[21]||(e[21]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),l("div",cXe,[z(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),z(a,{onClick:i.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),z(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),z(c,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),z(c,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),z(c,{href:"https://x.com/ParisNeo_AI",icon:"x"}),z(c,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),l("div",dXe,[l("div",{onClick:e[2]||(e[2]=f=>i.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[l("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):B("",!0),l("div",{onMouseenter:e[4]||(e[4]=(...f)=>i.showInfosMenu&&i.showInfosMenu(...f)),class:"infos-hover-area"},e[24]||(e[24]=[Zi('',1)]),32)])],32),i.is_fun_mode?(T(),x("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=f=>i.fun_mode_off())},e[25]||(e[25]=[Zi('',1)]))):(T(),x("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=f=>i.fun_mode_on())},e[26]||(e[26]=[Zi('',1)]))),l("span",uXe,Y(i.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),l("div",pXe,[l("button",{onClick:e[8]||(e[8]=(...f)=>i.toggleLanguageMenu&&i.toggleLanguageMenu(...f)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},Y(n.$store.state.language.slice(0,2)),1),r.isLanguageMenuVisible?(T(),x("div",fXe,[l("ul",_Xe,[(T(!0),x(Fe,null,We(i.languages,f=>(T(),x("li",{key:f,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:y=>i.deleteLanguage(f),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,mXe),l("div",{onClick:y=>i.selectLanguage(f),class:Le({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":f===n.$store.state.language,"flex-grow":!0})},Y(f),11,hXe)]))),128)),l("li",gXe,[k(l("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=f=>n.customLanguage=f),onKeyup:e[10]||(e[10]=Jn($((...f)=>i.addCustomLanguage&&i.addCustomLanguage(...f),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[ae,n.customLanguage]])])])],512)):B("",!0)]),i.isDarkMode?(T(),x("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=f=>i.themeSwitch())},e[27]||(e[27]=[l("i",{"data-feather":"sun"},null,-1)]))):(T(),x("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=f=>i.themeSwitch())},e[28]||(e[28]=[l("i",{"data-feather":"moon"},null,-1)]))),l("div",bXe,[l("button",{onClick:e[13]||(e[13]=$((...f)=>i.toggleThemeDropDown&&i.toggleThemeDropDown(...f),["stop"])),class:"inline-flex items-center justify-between w-40 px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:from-blue-500/20 hover:to-purple-500/20 dark:hover:from-blue-400/30 dark:hover:to-purple-400/30 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[l("div",yXe,[e[29]||(e[29]=l("svg",{class:"w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),l("span",vXe,Y(r.currentTheme),1)]),(T(),x("svg",{class:Le(["w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":r.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),z(or,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Ie(()=>[r.themeDropdownOpen?(T(),x("div",EXe,[l("div",SXe,[(T(!0),x(Fe,null,We(r.availableThemes,f=>(T(),x("a",{key:f,onClick:y=>{i.loadTheme(f),r.currentTheme=f,r.themeDropdownOpen=!1},class:"flex items-center space-x-3 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=l("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),l("span",xXe,Y(f),1)],8,TXe))),128))])])):B("",!0)]),_:1})])])],34)],2),k(l("div",CXe,[z(d,{ref:"progress",progress:n.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",wXe,Y(n.loading_infos)+" ...",1)],512),[[ht,n.progress_visibility]]),z(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:n.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),z(_,{ref:"toast"},null,512),z(m,{ref:"messageBox"},null,512),z(h,{ref:"yesNoDialog",class:"z-20"},null,512),z(g,{ref:"universalForm",class:"z-20"},null,512)],64)}const AXe=st(QQe,[["render",RXe],["__scopeId","data-v-5cfc6bf7"]]),MXe={class:"flex overflow-hidden flex-grow w-full"},NXe={__name:"App",setup(n){return(e,t)=>(T(),x("div",{class:Le([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[z(AXe),l("div",MXe,[z(bt(OA),null,{default:Ie(({Component:s})=>[(T(),at(ak,null,[(T(),at(Pu(s)))],1024))]),_:1})])],2))}},cr=Object.create(null);cr.open="0";cr.close="1";cr.ping="2";cr.pong="3";cr.message="4";cr.upgrade="5";cr.noop="6";const wd=Object.create(null);Object.keys(cr).forEach(n=>{wd[cr[n]]=n});const tb={type:"error",data:"parser error"},vM=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",EM=typeof ArrayBuffer=="function",SM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,w0=({type:n,data:e},t,s)=>vM&&e instanceof Blob?t?s(e):Px(e,s):EM&&(e instanceof ArrayBuffer||SM(e))?t?s(e):Px(new Blob([e]),s):s(cr[n]+(e||"")),Px=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Fx(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Gh;function OXe(n,e){if(vM&&n.data instanceof Blob)return n.data.arrayBuffer().then(Fx).then(e);if(EM&&(n.data instanceof ArrayBuffer||SM(n.data)))return e(Fx(n.data));w0(n,!1,t=>{Gh||(Gh=new TextEncoder),e(Gh.encode(t))})}const Ux="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,r=0,i,o,a,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(s=0;s>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|c&63;return d},kXe=typeof ArrayBuffer=="function",R0=(n,e)=>{if(typeof n!="string")return{type:"message",data:TM(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:DXe(n.substring(1),e)}:wd[t]?n.length>1?{type:wd[t],data:n.substring(1)}:{type:wd[t]}:tb},DXe=(n,e)=>{if(kXe){const t=IXe(n);return TM(t,e)}else return{base64:!0,data:n}},TM=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},xM="",LXe=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((i,o)=>{w0(i,!1,a=>{s[o]=a,++r===t&&e(s.join(xM))})})},PXe=(n,e)=>{const t=n.split(xM),s=[];for(let r=0;r{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let Vh;function Dc(n){return n.reduce((e,t)=>e+t.length,0)}function Lc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;rMath.pow(2,21)-1){a.enqueue(tb);break}r=u*Math.pow(2,32)+d.getUint32(4),s=3}else{if(Dc(t)n){a.enqueue(tb);break}}}})}const CM=4;function an(n){if(n)return BXe(n)}function BXe(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;rPromise.resolve().then(e):(e,t)=>t(e,0),hs=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),GXe="arraybuffer";function wM(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const VXe=hs.setTimeout,zXe=hs.clearTimeout;function ap(n,e){e.useNativeTimers?(n.setTimeoutFn=VXe.bind(hs),n.clearTimeoutFn=zXe.bind(hs)):(n.setTimeoutFn=hs.setTimeout.bind(hs),n.clearTimeoutFn=hs.clearTimeout.bind(hs))}const HXe=1.33;function qXe(n){return typeof n=="string"?YXe(n):Math.ceil((n.byteLength||n.size)*HXe)}function YXe(n){let e=0,t=0;for(let s=0,r=n.length;s=57344?t+=3:(s++,t+=4);return t}function RM(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $Xe(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function WXe(n){let e={},t=n.split("&");for(let s=0,r=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};PXe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,LXe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=RM()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let AM=!1;try{AM=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const QXe=AM;function XXe(){}class ZXe extends jXe{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}let ra=class Rd extends an{constructor(e,t,s){super(),this.createRequest=e,ap(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=wM(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=Rd.requestsCount++,Rd.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=XXe,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Rd.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ra.requestsCount=0;ra.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bx);else if(typeof addEventListener=="function"){const n="onpagehide"in hs?"pagehide":"unload";addEventListener(n,Bx,!1)}}function Bx(){for(let n in ra.requests)ra.requests.hasOwnProperty(n)&&ra.requests[n].abort()}const JXe=function(){const n=MM({xdomain:!1});return n&&n.responseType!==null}();class eZe extends ZXe{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=JXe&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ra(MM,this.uri(),e)}}function MM(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||QXe))return new XMLHttpRequest}catch{}if(!e)try{return new hs[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const NM=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class tZe extends A0{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=NM?{}:wM(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,i)}catch{}r&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=RM()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const zh=hs.WebSocket||hs.MozWebSocket;class nZe extends tZe{createSocket(e,t,s){return NM?new zh(e,t,s):t?new zh(e,t):new zh(e)}doWrite(e,t){this.ws.send(t)}}class sZe extends A0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=UXe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=FXe();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{r&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const rZe={websocket:nZe,webtransport:sZe,polling:eZe},iZe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oZe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function nb(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=iZe.exec(n||""),i={},o=14;for(;o--;)i[oZe[o]]=r[o]||"";return t!=-1&&s!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=aZe(i,i.path),i.queryKey=lZe(i,i.query),i}function aZe(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function lZe(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(t[r]=i)}),t}const sb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ad=[];sb&&addEventListener("offline",()=>{Ad.forEach(n=>n())},!1);class mi extends an{constructor(e,t){if(super(),this.binaryType=GXe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=nb(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=nb(t.host).host);ap(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WXe(this.opts.query)),sb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ad.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=CM,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&mi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",mi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,op(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(mi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Ad.indexOf(this._offlineEventListener);s!==-1&&Ad.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}mi.protocol=CM;class cZe extends mi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;mi.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=t.name,this.emitReserved("upgradeError",m)}}))};function i(){s||(s=!0,u(),t.close(),t=null)}const o=_=>{const m=new Error("probe error: "+_);m.transport=t.name,i(),this.emitReserved("upgradeError",m)};function a(){o("transport closed")}function c(){o("socket closed")}function d(_){t&&_.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};t.once("open",r),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;srZe[r]).filter(r=>!!r)),super(e,s)}};function uZe(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=nb(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+e,s.href=s.protocol+"://"+i+(t&&t.port===s.port?"":":"+s.port),s}const pZe=typeof ArrayBuffer=="function",fZe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,OM=Object.prototype.toString,_Ze=typeof Blob=="function"||typeof Blob<"u"&&OM.call(Blob)==="[object BlobConstructor]",mZe=typeof File=="function"||typeof File<"u"&&OM.call(File)==="[object FileConstructor]";function M0(n){return pZe&&(n instanceof ArrayBuffer||fZe(n))||_Ze&&n instanceof Blob||mZe&&n instanceof File}function Md(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(i),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,r)=>{const i=(o,a)=>o?r(o):s(a);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:At.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case At.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case At.EVENT:case At.BINARY_EVENT:this.onevent(e);break;case At.ACK:case At.BINARY_ACK:this.onack(e);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:At.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:At.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}za.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};za.prototype.reset=function(){this.attempts=0};za.prototype.setMin=function(n){this.ms=n};za.prototype.setMax=function(n){this.max=n};za.prototype.setJitter=function(n){this.jitter=n};class ob extends an{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ap(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new za({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||SZe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new dZe(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Ls(t,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Ls(t,"error",i);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ls(e,"ping",this.onping.bind(this)),Ls(e,"data",this.ondata.bind(this)),Ls(e,"error",this.onerror.bind(this)),Ls(e,"close",this.onclose.bind(this)),Ls(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){op(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new IM(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const nl={};function Nd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=uZe(n,e.path||"/socket.io"),s=t.source,r=t.id,i=t.path,o=nl[r]&&i in nl[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ob(s,e):(nl[r]||(nl[r]=new ob(s,e)),c=nl[r]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(Nd,{Manager:ob,Socket:IM,io:Nd,connect:Nd});const kM="/";console.log(kM);const Ye=new Nd(kM,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),xZe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Ue(()=>{Ve.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},CZe={class:"flex items-center space-x-2"},wZe=["value","type","placeholder"],RZe=["value","min","max"],AZe=["accept"];function MZe(n,e,t,s,r,i){return T(),x("div",CZe,[n.useSlider?(T(),x("input",{key:1,type:"range",value:parseInt(r.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>i.handleSliderInput&&i.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,RZe)):(T(),x("input",{key:0,value:r.inputValue,type:t.inputType,placeholder:r.placeholderText,onInput:e[0]||(e[0]=(...o)=>i.handleInput&&i.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>i.handlePaste&&i.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,wZe)),l("button",{onClick:e[3]||(e[3]=(...o)=>i.pasteFromClipboard&&i.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[l("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),x("button",{key:2,onClick:e[4]||(e[4]=(...o)=>i.openFileInput&&i.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[l("i",{"data-feather":"upload"},null,-1)]))):B("",!0),t.inputType==="file"?(T(),x("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>i.handleFileInputChange&&i.handleFileInputChange(...o))},null,40,AZe)):B("",!0)])}const O0=st(xZe,[["render",MZe]]),NZe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},OZe={class:"w-full"},IZe={class:"break-words"},kZe={class:"break-words mt-2"},DZe={class:"mt-4"};function LZe(n,e,t,s,r,i){return T(),x("div",OZe,[l("div",IZe,[(T(!0),x(Fe,null,We(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[0]),5)]))),128))]),l("div",kZe,[(T(!0),x(Fe,null,We(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[1]),5)]))),128))]),l("div",DZe,[l("strong",null,"Total Tokens: "+Y(t.namedTokens.length),1)])])}const PZe=st(NZe,[["render",LZe]]),FZe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function UZe(n,e,t,s,r,i){return T(),x("button",xR({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,gk(n.$listeners)),[on(n.$slots,"icon"),on(n.$slots,"default")],16)}const DM=st(FZe,[["render",UZe]]),BZe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},GZe={key:1,class:"flex flex-wrap"},VZe={key:2,class:"mb-2"};function zZe(n,e,t,s,r,i){return T(),x("div",null,[r.isActive?(T(),x("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>i.toggleCard&&i.toggleCard(...o))})):B("",!0),k(l("div",{class:Le(["border-blue-300 rounded-lg shadow-lg p-2",i.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&r.isHovered,active:r.isActive}]),onMouseenter:e[2]||(e[2]=o=>r.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>r.isHovered=!1),onClick:e[4]||(e[4]=$((...o)=>i.toggleCard&&i.toggleCard(...o),["self"])),style:Bt({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),x("div",{key:0,onClick:e[1]||(e[1]=o=>r.shrink=!0),class:Le([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},Y(t.title),3)):B("",!0),t.isHorizontal?(T(),x("div",GZe,[on(n.$slots,"default")])):(T(),x("div",VZe,[on(n.$slots,"default")]))],38),[[ht,r.shrink===!1]]),t.is_subcard?k((T(),x("div",{key:1,onClick:e[5]||(e[5]=o=>r.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},Y(t.title),513)),[[ht,r.shrink===!0]]):k((T(),x("div",{key:2,onClick:e[6]||(e[6]=o=>r.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[ht,r.shrink===!0]])])}const lp=st(BZe,[["render",zZe]]),LM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",PM="/assets/python_block-Bt12VGEE.png",FM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",UM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",BM="/assets/cpp_block-kkmuBJ_E.png",GM="/assets/html5_block-beC_-Wtz.png",VM="/assets/LaTeX_block-BNFNi2yr.png",zM="/assets/bash_block-DZNRrwlz.png",HZe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",qZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",YZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",$Ze="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",WZe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",HM="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",KZe={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},jZe=["title"],QZe={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},XZe=["innerHTML"];function ZZe(n,e,t,s,r,i){return T(),x("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),x("svg",QZe,[l("g",{innerHTML:i.iconPath},null,8,XZe)]))],8,jZe)}const I0=st(KZe,[["render",ZZe]]);var Qn="top",As="bottom",Ms="right",Xn="left",k0="auto",cc=[Qn,As,Ms,Xn],ma="start",Kl="end",JZe="clippingParents",qM="viewport",sl="popper",eJe="reference",Vx=cc.reduce(function(n,e){return n.concat([e+"-"+ma,e+"-"+Kl])},[]),YM=[].concat(cc,[k0]).reduce(function(n,e){return n.concat([e,e+"-"+ma,e+"-"+Kl])},[]),tJe="beforeRead",nJe="read",sJe="afterRead",rJe="beforeMain",iJe="main",oJe="afterMain",aJe="beforeWrite",lJe="write",cJe="afterWrite",dJe=[tJe,nJe,sJe,rJe,iJe,oJe,aJe,lJe,cJe];function dr(n){return n?(n.nodeName||"").toLowerCase():null}function cs(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function po(n){var e=cs(n).Element;return n instanceof e||n instanceof Element}function Cs(n){var e=cs(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D0(n){if(typeof ShadowRoot>"u")return!1;var e=cs(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function uJe(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Cs(i)||!dr(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function pJe(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(s){var r=e.elements[s],i=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),a=o.reduce(function(c,d){return c[d]="",c},{});!Cs(r)||!dr(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const fJe={name:"applyStyles",enabled:!0,phase:"write",fn:uJe,effect:pJe,requires:["computeStyles"]};function ar(n){return n.split("-")[0]}var to=Math.max,nu=Math.min,ha=Math.round;function ab(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $M(){return!/^((?!chrome|android).)*safari/i.test(ab())}function ga(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=n.getBoundingClientRect(),r=1,i=1;e&&Cs(n)&&(r=n.offsetWidth>0&&ha(s.width)/n.offsetWidth||1,i=n.offsetHeight>0&&ha(s.height)/n.offsetHeight||1);var o=po(n)?cs(n):window,a=o.visualViewport,c=!$M()&&t,d=(s.left+(c&&a?a.offsetLeft:0))/r,u=(s.top+(c&&a?a.offsetTop:0))/i,_=s.width/r,m=s.height/i;return{width:_,height:m,top:u,right:d+_,bottom:u+m,left:d,x:d,y:u}}function L0(n){var e=ga(n),t=n.offsetWidth,s=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:s}}function WM(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&D0(t)){var s=e;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Pr(n){return cs(n).getComputedStyle(n)}function _Je(n){return["table","td","th"].indexOf(dr(n))>=0}function Ai(n){return((po(n)?n.ownerDocument:n.document)||window.document).documentElement}function cp(n){return dr(n)==="html"?n:n.assignedSlot||n.parentNode||(D0(n)?n.host:null)||Ai(n)}function zx(n){return!Cs(n)||Pr(n).position==="fixed"?null:n.offsetParent}function mJe(n){var e=/firefox/i.test(ab()),t=/Trident/i.test(ab());if(t&&Cs(n)){var s=Pr(n);if(s.position==="fixed")return null}var r=cp(n);for(D0(r)&&(r=r.host);Cs(r)&&["html","body"].indexOf(dr(r))<0;){var i=Pr(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function dc(n){for(var e=cs(n),t=zx(n);t&&_Je(t)&&Pr(t).position==="static";)t=zx(t);return t&&(dr(t)==="html"||dr(t)==="body"&&Pr(t).position==="static")?e:t||mJe(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function wl(n,e,t){return to(n,nu(e,t))}function hJe(n,e,t){var s=wl(n,e,t);return s>t?t:s}function KM(){return{top:0,right:0,bottom:0,left:0}}function jM(n){return Object.assign({},KM(),n)}function QM(n,e){return e.reduce(function(t,s){return t[s]=n,t},{})}var gJe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jM(typeof e!="number"?e:QM(e,cc))};function bJe(n){var e,t=n.state,s=n.name,r=n.options,i=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ar(t.placement),c=P0(a),d=[Xn,Ms].indexOf(a)>=0,u=d?"height":"width";if(!(!i||!o)){var _=gJe(r.padding,t),m=L0(i),h=c==="y"?Qn:Xn,g=c==="y"?As:Ms,f=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],y=o[c]-t.rects.reference[c],b=dc(i),v=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=f/2-y/2,S=_[h],R=v-m[u]-_[g],w=v/2-m[u]/2+E,A=wl(S,w,R),I=c;t.modifiersData[s]=(e={},e[I]=A,e.centerOffset=A-w,e)}}function yJe(n){var e=n.state,t=n.options,s=t.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||WM(e.elements.popper,r)&&(e.elements.arrow=r))}const vJe={name:"arrow",enabled:!0,phase:"main",fn:bJe,effect:yJe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(n){return n.split("-")[1]}var EJe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SJe(n,e){var t=n.x,s=n.y,r=e.devicePixelRatio||1;return{x:ha(t*r)/r||0,y:ha(s*r)/r||0}}function Hx(n){var e,t=n.popper,s=n.popperRect,r=n.placement,i=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,_=n.isFixed,m=o.x,h=m===void 0?0:m,g=o.y,f=g===void 0?0:g,y=typeof u=="function"?u({x:h,y:f}):{x:h,y:f};h=y.x,f=y.y;var b=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),E=Xn,S=Qn,R=window;if(d){var w=dc(t),A="clientHeight",I="clientWidth";if(w===cs(t)&&(w=Ai(t),Pr(w).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),w=w,r===Qn||(r===Xn||r===Ms)&&i===Kl){S=As;var C=_&&w===R&&R.visualViewport?R.visualViewport.height:w[A];f-=C-s.height,f*=c?1:-1}if(r===Xn||(r===Qn||r===As)&&i===Kl){E=Ms;var M=_&&w===R&&R.visualViewport?R.visualViewport.width:w[I];h-=M-s.width,h*=c?1:-1}}var G=Object.assign({position:a},d&&EJe),V=u===!0?SJe({x:h,y:f},cs(t)):{x:h,y:f};if(h=V.x,f=V.y,c){var ee;return Object.assign({},G,(ee={},ee[S]=v?"0":"",ee[E]=b?"0":"",ee.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",ee))}return Object.assign({},G,(e={},e[S]=v?f+"px":"",e[E]=b?h+"px":"",e.transform="",e))}function TJe(n){var e=n.state,t=n.options,s=t.gpuAcceleration,r=s===void 0?!0:s,i=t.adaptive,o=i===void 0?!0:i,a=t.roundOffsets,c=a===void 0?!0:a,d={placement:ar(e.placement),variation:ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const xJe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:TJe,data:{}};var Pc={passive:!0};function CJe(n){var e=n.state,t=n.instance,s=n.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,a=o===void 0?!0:o,c=cs(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),a&&c.addEventListener("resize",t.update,Pc),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),a&&c.removeEventListener("resize",t.update,Pc)}}const wJe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CJe,data:{}};var RJe={left:"right",right:"left",bottom:"top",top:"bottom"};function Od(n){return n.replace(/left|right|bottom|top/g,function(e){return RJe[e]})}var AJe={start:"end",end:"start"};function qx(n){return n.replace(/start|end/g,function(e){return AJe[e]})}function F0(n){var e=cs(n),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function U0(n){return ga(Ai(n)).left+F0(n).scrollLeft}function MJe(n,e){var t=cs(n),s=Ai(n),r=t.visualViewport,i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;var d=$M();(d||!d&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a+U0(n),y:c}}function NJe(n){var e,t=Ai(n),s=F0(n),r=(e=n.ownerDocument)==null?void 0:e.body,i=to(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=to(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+U0(n),c=-s.scrollTop;return Pr(r||t).direction==="rtl"&&(a+=to(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:c}}function B0(n){var e=Pr(n),t=e.overflow,s=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+s)}function XM(n){return["html","body","#document"].indexOf(dr(n))>=0?n.ownerDocument.body:Cs(n)&&B0(n)?n:XM(cp(n))}function Rl(n,e){var t;e===void 0&&(e=[]);var s=XM(n),r=s===((t=n.ownerDocument)==null?void 0:t.body),i=cs(s),o=r?[i].concat(i.visualViewport||[],B0(s)?s:[]):s,a=e.concat(o);return r?a:a.concat(Rl(cp(o)))}function lb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function OJe(n,e){var t=ga(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Yx(n,e,t){return e===qM?lb(MJe(n,t)):po(e)?OJe(e,t):lb(NJe(Ai(n)))}function IJe(n){var e=Rl(cp(n)),t=["absolute","fixed"].indexOf(Pr(n).position)>=0,s=t&&Cs(n)?dc(n):n;return po(s)?e.filter(function(r){return po(r)&&WM(r,s)&&dr(r)!=="body"}):[]}function kJe(n,e,t,s){var r=e==="clippingParents"?IJe(n):[].concat(e),i=[].concat(r,[t]),o=i[0],a=i.reduce(function(c,d){var u=Yx(n,d,s);return c.top=to(u.top,c.top),c.right=nu(u.right,c.right),c.bottom=nu(u.bottom,c.bottom),c.left=to(u.left,c.left),c},Yx(n,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ZM(n){var e=n.reference,t=n.element,s=n.placement,r=s?ar(s):null,i=s?ba(s):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(r){case Qn:c={x:o,y:e.y-t.height};break;case As:c={x:o,y:e.y+e.height};break;case Ms:c={x:e.x+e.width,y:a};break;case Xn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var d=r?P0(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case ma:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Kl:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function jl(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=s===void 0?n.placement:s,i=t.strategy,o=i===void 0?n.strategy:i,a=t.boundary,c=a===void 0?JZe:a,d=t.rootBoundary,u=d===void 0?qM:d,_=t.elementContext,m=_===void 0?sl:_,h=t.altBoundary,g=h===void 0?!1:h,f=t.padding,y=f===void 0?0:f,b=jM(typeof y!="number"?y:QM(y,cc)),v=m===sl?eJe:sl,E=n.rects.popper,S=n.elements[g?v:m],R=kJe(po(S)?S:S.contextElement||Ai(n.elements.popper),c,u,o),w=ga(n.elements.reference),A=ZM({reference:w,element:E,strategy:"absolute",placement:r}),I=lb(Object.assign({},E,A)),C=m===sl?I:w,M={top:R.top-C.top+b.top,bottom:C.bottom-R.bottom+b.bottom,left:R.left-C.left+b.left,right:C.right-R.right+b.right},G=n.modifiersData.offset;if(m===sl&&G){var V=G[r];Object.keys(M).forEach(function(ee){var O=[Ms,As].indexOf(ee)>=0?1:-1,H=[Qn,As].indexOf(ee)>=0?"y":"x";M[ee]+=V[H]*O})}return M}function DJe(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=t.boundary,i=t.rootBoundary,o=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?YM:c,u=ba(s),_=u?a?Vx:Vx.filter(function(g){return ba(g)===u}):cc,m=_.filter(function(g){return d.indexOf(g)>=0});m.length===0&&(m=_);var h=m.reduce(function(g,f){return g[f]=jl(n,{placement:f,boundary:r,rootBoundary:i,padding:o})[ar(f)],g},{});return Object.keys(h).sort(function(g,f){return h[g]-h[f]})}function LJe(n){if(ar(n)===k0)return[];var e=Od(n);return[qx(n),e,qx(e)]}function PJe(n){var e=n.state,t=n.options,s=n.name;if(!e.modifiersData[s]._skip){for(var r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,c=t.fallbackPlacements,d=t.padding,u=t.boundary,_=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,g=h===void 0?!0:h,f=t.allowedAutoPlacements,y=e.options.placement,b=ar(y),v=b===y,E=c||(v||!g?[Od(y)]:LJe(y)),S=[y].concat(E).reduce(function(Ee,Oe){return Ee.concat(ar(Oe)===k0?DJe(e,{placement:Oe,boundary:u,rootBoundary:_,padding:d,flipVariations:g,allowedAutoPlacements:f}):Oe)},[]),R=e.rects.reference,w=e.rects.popper,A=new Map,I=!0,C=S[0],M=0;M=0,H=O?"width":"height",q=jl(e,{placement:G,boundary:u,rootBoundary:_,altBoundary:m,padding:d}),L=O?ee?Ms:Xn:ee?As:Qn;R[H]>w[H]&&(L=Od(L));var W=Od(L),se=[];if(i&&se.push(q[V]<=0),a&&se.push(q[L]<=0,q[W]<=0),se.every(function(Ee){return Ee})){C=G,I=!1;break}A.set(G,se)}if(I)for(var oe=g?3:1,ye=function(Oe){var De=S.find(function(Q){var fe=A.get(Q);if(fe)return fe.slice(0,Oe).every(function(_e){return _e})});if(De)return C=De,"break"},xe=oe;xe>0;xe--){var ce=ye(xe);if(ce==="break")break}e.placement!==C&&(e.modifiersData[s]._skip=!0,e.placement=C,e.reset=!0)}}const FJe={name:"flip",enabled:!0,phase:"main",fn:PJe,requiresIfExists:["offset"],data:{_skip:!1}};function $x(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Wx(n){return[Qn,Ms,As,Xn].some(function(e){return n[e]>=0})}function UJe(n){var e=n.state,t=n.name,s=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=jl(e,{elementContext:"reference"}),a=jl(e,{altBoundary:!0}),c=$x(o,s),d=$x(a,r,i),u=Wx(c),_=Wx(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":_})}const BJe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:UJe};function GJe(n,e,t){var s=ar(n),r=[Xn,Qn].indexOf(s)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=i[0],a=i[1];return o=o||0,a=(a||0)*r,[Xn,Ms].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function VJe(n){var e=n.state,t=n.options,s=n.name,r=t.offset,i=r===void 0?[0,0]:r,o=YM.reduce(function(u,_){return u[_]=GJe(_,e.rects,i),u},{}),a=o[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=o}const zJe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VJe};function HJe(n){var e=n.state,t=n.name;e.modifiersData[t]=ZM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const qJe={name:"popperOffsets",enabled:!0,phase:"read",fn:HJe,data:{}};function YJe(n){return n==="x"?"y":"x"}function $Je(n){var e=n.state,t=n.options,s=n.name,r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,_=t.padding,m=t.tether,h=m===void 0?!0:m,g=t.tetherOffset,f=g===void 0?0:g,y=jl(e,{boundary:c,rootBoundary:d,padding:_,altBoundary:u}),b=ar(e.placement),v=ba(e.placement),E=!v,S=P0(b),R=YJe(S),w=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,C=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(w){if(i){var ee,O=S==="y"?Qn:Xn,H=S==="y"?As:Ms,q=S==="y"?"height":"width",L=w[S],W=L+y[O],se=L-y[H],oe=h?-I[q]/2:0,ye=v===ma?A[q]:I[q],xe=v===ma?-I[q]:-A[q],ce=e.elements.arrow,Ee=h&&ce?L0(ce):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:KM(),De=Oe[O],Q=Oe[H],fe=wl(0,A[q],Ee[q]),_e=E?A[q]/2-oe-fe-De-M.mainAxis:ye-fe-De-M.mainAxis,Ae=E?-A[q]/2+oe+fe+Q+M.mainAxis:xe+fe+Q+M.mainAxis,Be=e.elements.arrow&&dc(e.elements.arrow),te=Be?S==="y"?Be.clientTop||0:Be.clientLeft||0:0,U=(ee=G==null?void 0:G[S])!=null?ee:0,P=L+_e-U-te,Z=L+Ae-U,de=wl(h?nu(W,P):W,L,h?to(se,Z):se);w[S]=de,V[S]=de-L}if(a){var pe,he=S==="x"?Qn:Xn,le=S==="x"?As:Ms,Me=w[R],Re=R==="y"?"height":"width",ge=Me+y[he],D=Me-y[le],N=[Qn,Xn].indexOf(b)!==-1,K=(pe=G==null?void 0:G[R])!=null?pe:0,me=N?ge:Me-A[Re]-I[Re]-K+M.altAxis,j=N?Me+A[Re]+I[Re]-K-M.altAxis:D,re=h&&N?hJe(me,Me,j):wl(h?me:ge,Me,h?j:D);w[R]=re,V[R]=re-Me}e.modifiersData[s]=V}}const WJe={name:"preventOverflow",enabled:!0,phase:"main",fn:$Je,requiresIfExists:["offset"]};function KJe(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function jJe(n){return n===cs(n)||!Cs(n)?F0(n):KJe(n)}function QJe(n){var e=n.getBoundingClientRect(),t=ha(e.width)/n.offsetWidth||1,s=ha(e.height)/n.offsetHeight||1;return t!==1||s!==1}function XJe(n,e,t){t===void 0&&(t=!1);var s=Cs(e),r=Cs(e)&&QJe(e),i=Ai(e),o=ga(n,r,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!t)&&((dr(e)!=="body"||B0(i))&&(a=jJe(e)),Cs(e)?(c=ga(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=U0(i))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function ZJe(n){var e=new Map,t=new Set,s=[];n.forEach(function(i){e.set(i.name,i)});function r(i){t.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&r(c)}}),s.push(i)}return n.forEach(function(i){t.has(i.name)||r(i)}),s}function JJe(n){var e=ZJe(n);return dJe.reduce(function(t,s){return t.concat(e.filter(function(r){return r.phase===s}))},[])}function eet(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function tet(n){var e=n.reduce(function(t,s){var r=t[s.name];return t[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}var Kx={placement:"bottom",modifiers:[],strategy:"absolute"};function jx(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=dp(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},iet={class:"relative inline-block text-left"},oet={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},aet={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function cet(n,e,t,s,r,i){const o=Je("ToolbarButton");return T(),x("div",iet,[l("div",null,[z(o,{onClick:$(i.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),at(sk,{to:"body"},[r.isOpen?(T(),x("div",oet,[l("div",aet,[on(n.$slots,"default",{},void 0,!0)])],512)):B("",!0)]))])}const JM=st(ret,[["render",cet],["__scopeId","data-v-6c3ea3a5"]]);async function Qx(n,e="",t=[]){return new Promise((s,r)=>{const i=document.createElement("div");i.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?i.innerHTML=`

${n}

@@ -155,7 +155,7 @@ ${e} `}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:s}){const r=this.parser.parseInline(s),i=Zx(e);if(i===null)return r;e=i;let o='",o}image({href:e,title:t,text:s}){const r=Zx(e);if(r===null)return s;e=r;let i=`${s}{const d=a[c].flat(1/0);s=s.concat(this.walkTokens(d,t))}):a.tokens&&(s=s.concat(this.walkTokens(a.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=t.renderers[i.name];o?t.renderers[i.name]=function(...a){let c=i.renderer.apply(this,a);return c===!1&&(c=o.apply(this,a)),c}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),s.renderer){const i=this.defaults.renderer||new iu(this.defaults);for(const o in s.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,c=s.renderer[a],d=i[a];i[a]=(...u)=>{let _=c.apply(i,u);return _===!1&&(_=d.apply(i,u)),_||""}}r.renderer=i}if(s.tokenizer){const i=this.defaults.tokenizer||new su(this.defaults);for(const o in s.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,c=s.tokenizer[a],d=i[a];i[a]=(...u)=>{let _=c.apply(i,u);return _===!1&&(_=d.apply(i,u)),_}}r.tokenizer=i}if(s.hooks){const i=this.defaults.hooks||new Ml;for(const o in s.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,c=s.hooks[a],d=i[a];Ml.passThroughHooks.has(o)?i[a]=u=>{if(this.defaults.async)return Promise.resolve(c.call(i,u)).then(m=>d.call(i,m));const _=c.call(i,u);return d.call(i,_)}:i[a]=(...u)=>{let _=c.apply(i,u);return _===!1&&(_=d.apply(i,u)),_}}r.hooks=i}if(s.walkTokens){const i=this.defaults.walkTokens,o=s.walkTokens;r.walkTokens=function(a){let c=[];return c.push(o.call(this,a)),i&&(c=c.concat(i.call(this,a))),c}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Es.lex(e,t??this.defaults)}parser(e,t){return Ss.parse(e,t??this.defaults)}parseMarkdown(e){return(s,r)=>{const i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const c=o.hooks?o.hooks.provideLexer():e?Es.lex:Es.lexInline,d=o.hooks?o.hooks.provideParser():e?Ss.parse:Ss.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(u=>c(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let u=c(s,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let _=d(u,o);return o.hooks&&(_=o.hooks.postprocess(_)),_}catch(u){return a(u)}}}onError(e,t){return s=>{if(s.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const r="

An error occurred:

"+rs(s.message+"",!0)+"
";return t?Promise.resolve(r):r}if(t)return Promise.reject(s);throw s}}}const fo=new Ftt;function kt(n,e){return fo.parse(n,e)}kt.options=kt.setOptions=function(n){return fo.setOptions(n),kt.defaults=fo.defaults,eN(kt.defaults),kt};kt.getDefaults=G0;kt.defaults=vo;kt.use=function(...n){return fo.use(...n),kt.defaults=fo.defaults,eN(kt.defaults),kt};kt.walkTokens=function(n,e){return fo.walkTokens(n,e)};kt.parseInline=fo.parseInline;kt.Parser=Ss;kt.parser=Ss.parse;kt.Renderer=iu;kt.TextRenderer=$0;kt.Lexer=Es;kt.lexer=Es.lex;kt.Tokenizer=su;kt.Hooks=Ml;kt.parse=kt;kt.options;kt.setOptions;kt.use;kt.walkTokens;kt.parseInline;Ss.parse;Es.lex;const Utt={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return kt(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},Btt={class:"help-view background-color p-6 w-full"},Gtt={class:"big-card w-full"},Vtt={class:"help-sections-container"},ztt={class:"help-sections space-y-4"},Htt=["onClick"],qtt={class:"toggle-icon"},Ytt={key:0,class:"help-content mt-4"},$tt=["innerHTML"];function Wtt(n,e,t,s,r,i){return T(),x("div",Btt,[l("div",Gtt,[e[0]||(e[0]=l("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),l("div",Vtt,[l("div",ztt,[(T(!0),x(Fe,null,We(r.helpSections,(o,a)=>(T(),x("div",{key:a,class:"help-section message"},[l("h2",{onClick:c=>i.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[Ze(Y(o.title)+" ",1),l("span",qtt,Y(o.isOpen?"▼":"▶"),1)],8,Htt),o.isOpen?(T(),x("div",Ytt,[l("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,$tt)])):B("",!0)]))),128))])])])])}const Ktt=st(Utt,[["render",Wtt],["__scopeId","data-v-8c1798f3"]]);function sr(n,e=!0,t=1){const s=e?1e3:1024;if(Math.abs(n)=s&&i{Ve.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ue(()=>{Ve.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},Qtt={class:"menu-container"},Xtt=["title"],Ztt=["src"],Jtt=["data-feather"],ent={key:2,class:"w-5 h-5"},tnt={key:3,"data-feather":"menu"},nnt={class:"flex-grow menu-ul"},snt=["onClick"],rnt={key:0,"data-feather":"check"},int=["src","alt"],ont=["data-feather"],ant={key:3,class:"menu-icon"};function lnt(n,e,t,s,r,i){return T(),x("div",Qtt,[l("button",{onClick:e[0]||(e[0]=$((...o)=>i.toggleMenu&&i.toggleMenu(...o),["prevent"])),title:t.title,class:Le([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),x("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,Ztt)):t.icon&&t.icon.includes("feather")?(T(),x("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,Jtt)):t.icon&&t.icon.includes("#")?(T(),x("p",ent,Y(t.icon.split("#")[1]),1)):(T(),x("i",tnt))],10,Xtt),z(ir,{name:"slide"},{default:Ie(()=>[r.isMenuOpen?(T(),x("div",{key:0,class:"menu-list flex-grow",style:Bt(r.menuPosition),ref:"menu"},[l("ul",nnt,[(T(!0),x(Fe,null,We(t.commands,(o,a)=>(T(),x("li",{key:a,onClick:$(c=>i.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),x("i",rnt)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),x("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,int)):B("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),x("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,ont)):(T(),x("span",ant)),l("span",null,Y(o.name),1)],8,snt))),128))])],4)):B("",!0)]),_:1})])}const W0=st(jtt,[["render",lnt]]),cnt={components:{InteractiveMenu:W0},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Ue(()=>{Ve.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return sr(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?$n:this.model.icon},defaultImg(n){n.target.src=$n},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Ue(()=>{Ve.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return sr(this.speed)},total_size_computed(){return sr(this.total_size)},downloaded_size_computed(){return sr(this.downloaded_size)}},watch:{linkNotValid(){Ue(()=>{Ve.replace()})}}},dnt=["title"],unt={key:0,class:"flex flex-row"},pnt={class:"max-w-[300px] overflow-x-auto"},fnt={class:"flex gap-3 items-center grow"},_nt=["href"],mnt=["src"],hnt={class:"flex-1 overflow-hidden"},gnt={class:"font-bold font-large text-lg truncate"},bnt={key:1,class:"flex items-center flex-row gap-2 my-1"},ynt={class:"flex grow items-center"},vnt={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Ent={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Snt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Tnt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},xnt={class:"flex justify-between mb-1"},Cnt={class:"text-sm font-medium text-blue-700 dark:text-white"},wnt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Rnt={class:"flex justify-between mb-1"},Ant={class:"text-base font-medium text-blue-700 dark:text-white"},Mnt={class:"text-sm font-medium text-blue-700 dark:text-white"},Nnt={class:"flex flex-grow"},Ont={class:"flex flex-row flex-grow gap-3"},Int={class:"p-2 text-center grow"},knt={key:3},Dnt={class:"flex flex-row items-center gap-3"},Lnt=["src"],Pnt={class:"font-bold font-large text-lg truncate"},Fnt={class:"flex items-center flex-row-reverse gap-2 my-1"},Unt={class:"flex flex-row items-center"},Bnt={key:0,class:"text-base text-red-600 flex items-center mt-1"},Gnt=["title"],Vnt={class:""},znt={class:"flex flex-row items-center"},Hnt=["href","title"],qnt={class:"flex items-center"},Ynt={class:"flex items-center"},$nt={key:0,class:"flex items-center"},Wnt=["href"],Knt={class:"flex items-center"},jnt=["href"],Qnt={class:"flex items-center"},Xnt={class:"flex items-center"},Znt=["href"];function Jnt(n,e,t,s,r,i){const o=Je("InteractiveMenu");return T(),x("div",{class:Le(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",i.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=$(a=>i.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),x("div",unt,[l("div",pnt,[l("div",fnt,[l("a",{href:t.model.model_creator_link,target:"_blank"},[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,mnt)],8,_nt),l("div",hnt,[l("h3",gnt,Y(t.model.name),1)])])])])):B("",!0),t.model.isCustomModel?(T(),x("div",bnt,[l("div",ynt,[l("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=$(()=>{},["stop"]))},e[11]||(e[11]=[l("i",{"data-feather":"box",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=Ze(" Custom model "))]),l("div",null,[t.model.isInstalled?(T(),x("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=$((...a)=>i.uninstall&&i.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"Remove",-1)]))):B("",!0)])])):B("",!0),r.installing?(T(),x("div",vnt,[l("div",Ent,[e[15]||(e[15]=l("div",{role:"status",class:"justify-center"},[l("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)),l("div",Snt,[l("div",Tnt,[l("div",xnt,[e[14]||(e[14]=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),l("span",Cnt,Y(Math.floor(r.progress))+"%",1)]),l("div",wnt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt({width:r.progress+"%"})},null,4)]),l("div",Rnt,[l("span",Ant,"Download speed: "+Y(i.speed_computed)+"/s",1),l("span",Mnt,Y(i.downloaded_size_computed)+"/"+Y(i.total_size_computed),1)])])]),l("div",Nnt,[l("div",Ont,[l("div",Int,[l("button",{onClick:e[3]||(e[3]=$((...a)=>i.toggleCancelInstall&&i.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):B("",!0),t.model.isCustomModel?B("",!0):(T(),x("div",knt,[l("div",Dnt,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[4]||(e[4]=a=>i.defaultImg(a)),class:Le(["w-10 h-10 rounded-lg object-fill",r.linkNotValid?"grayscale":""])},null,42,Lnt),l("h3",Pnt,Y(t.model.name),1),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),z(o,{commands:i.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Fnt,[l("div",Unt,[r.linkNotValid?(T(),x("div",Bnt,e[17]||(e[17]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Ze(" Link is not valid ")]))):B("",!0)])]),l("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[l("div",Vnt,[l("div",znt,[e[19]||(e[19]=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=l("b",null,"Card: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=$(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:r.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,Hnt),e[21]||(e[21]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=$(a=>i.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",qnt,[l("div",{class:Le(["flex flex-shrink-0 items-center",r.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=l("b",null,"File size: ",-1)),Ze(" "+Y(i.fileSize),1)],2)]),l("div",Ynt,[e[24]||(e[24]=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=l("b",null,"License: ",-1)),Ze(" "+Y(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),x("div",$nt,[e[26]||(e[26]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=l("b",null,"quantizer: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.quantizer),9,Wnt)])):B("",!0),l("div",Knt,[e[28]||(e[28]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=l("b",null,"Model creator: ",-1)),l("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.model_creator),9,jnt)]),l("div",Qnt,[e[30]||(e[30]=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=l("b",null,"Release date: ",-1)),Ze(" "+Y(t.model.last_commit_time),1)]),l("div",Xnt,[e[32]||(e[32]=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=l("b",null,"Category: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.category),9,Znt)])])],8,Gnt)]))],10,dnt)}const est=st(cnt,[["render",Jnt]]),tst={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},nst={class:"p-4"},sst={class:"flex items-center mb-4"},rst=["src"],ist={class:"text-lg font-semibold"},ost={key:0};function ast(n,e,t,s,r,i){return T(),x("div",nst,[l("div",sst,[l("img",{src:r.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,rst),l("h2",ist,Y(r.personalityName),1)]),l("p",null,[e[2]||(e[2]=l("strong",null,"Author:",-1)),Ze(" "+Y(r.personalityAuthor),1)]),l("p",null,[e[3]||(e[3]=l("strong",null,"Description:",-1)),Ze(" "+Y(r.personalityDescription),1)]),l("p",null,[e[4]||(e[4]=l("strong",null,"Category:",-1)),Ze(" "+Y(r.personalityCategory),1)]),r.disclaimer?(T(),x("p",ost,[e[5]||(e[5]=l("strong",null,"Disclaimer:",-1)),Ze(" "+Y(r.disclaimer),1)])):B("",!0),l("p",null,[e[6]||(e[6]=l("strong",null,"Conditioning Text:",-1)),Ze(" "+Y(r.conditioningText),1)]),l("p",null,[e[7]||(e[7]=l("strong",null,"AI Prefix:",-1)),Ze(" "+Y(r.aiPrefix),1)]),l("p",null,[e[8]||(e[8]=l("strong",null,"User Prefix:",-1)),Ze(" "+Y(r.userPrefix),1)]),l("div",null,[e[9]||(e[9]=l("strong",null,"Antiprompts:",-1)),l("ul",null,[(T(!0),x(Fe,null,We(r.antipromptsList,o=>(T(),x("li",{key:o.id},Y(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>r.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),r.editMode?(T(),x("button",{key:1,onClick:e[1]||(e[1]=(...o)=>i.commitChanges&&i.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):B("",!0)])}const lst=st(tst,[["render",ast]]),K0="/assets/logo-CQZwS0X1.svg",cst="/",dst={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:W0},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,console.log(this.personality),Ue(()=>{Ve.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return cst+this.personality.avatar},defaultImg(n){n.target.src=K0},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)},showHelp(){this.renderedHelp=kt(this.personality.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{selected(){Ue(()=>{Ve.replace()})}}},ust=["title"],pst={class:"flex-grow"},fst={class:"flex items-center mb-4"},_st=["src"],mst={class:"text-sm text-gray-600"},hst={class:"text-sm text-gray-600"},gst={class:"text-sm text-gray-600"},bst={key:0,class:"text-sm text-gray-600"},yst={key:1,class:"text-sm text-gray-600"},vst={class:"mb-4"},Est=["innerHTML"],Sst={class:"mt-auto pt-4 border-t"},Tst={class:"flex justify-between items-center flex-wrap"},xst=["title"],Cst=["fill"],wst=["src"],Rst={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Ast={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},Mst={class:"flex justify-between items-center mb-2"},Nst={class:"flex-grow overflow-auto"},Ost=["innerHTML"];function Ist(n,e,t,s,r,i){const o=Je("InteractiveMenu");return T(),x("div",{class:Le(["app-card flex flex-col h-full",i.selected_computed?"border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[l("div",pst,[l("div",fst,[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>i.showThumbnail&&i.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>i.updateThumbnailPosition&&i.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>i.hideThumbnail&&i.hideThumbnail(...a))},null,40,_st),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>i.toggleSelected&&i.toggleSelected(...a))},Y(t.personality.name),1),l("p",mst,"Author: "+Y(t.personality.author),1),l("p",hst,"Version: "+Y(t.personality.version),1),l("p",gst,"Category: "+Y(t.personality.category),1),t.personality.creation_date?(T(),x("p",bst,"Creation Date: "+Y(i.formatDate(t.personality.creation_date)),1)):B("",!0),t.personality.last_update_date?(T(),x("p",yst,"Last update Date: "+Y(i.formatDate(t.personality.last_update_date)),1)):B("",!0)]),t.personality.help?(T(),x("button",{key:0,onClick:e[6]||(e[6]=(...a)=>i.showHelp&&i.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[12]||(e[12]=[l("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):B("",!0)]),l("div",vst,[e[13]||(e[13]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,Est)])]),l("div",Sst,[l("div",Tst,[l("button",{onClick:e[7]||(e[7]=(...a)=>i.toggleFavorite&&i.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[14]||(e[14]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Cst))],8,xst),r.isMounted?(T(),x("button",{key:0,onClick:e[8]||(e[8]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[15]||(e[15]=[l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):B("",!0),r.isMounted?(T(),x("button",{key:1,onClick:e[9]||(e[9]=(...a)=>i.toggleTalk&&i.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[16]||(e[16]=[l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):B("",!0),l("button",{onClick:e[10]||(e[10]=(...a)=>i.showFolder&&i.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[17]||(e[17]=[l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),z(o,{commands:i.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),r.thumbnailVisible?(T(),x("div",{key:0,style:Bt({top:r.thumbnailPosition.y+"px",left:r.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:i.getImgUrl(),class:"w-full h-full object-fill"},null,8,wst)],4)):B("",!0),r.showHelpPopup?(T(),x("div",Rst,[l("div",Ast,[l("div",Mst,[e[18]||(e[18]=l("h2",{class:"text-lg font-bold"},"Help",-1)),l("button",{onClick:e[11]||(e[11]=(...a)=>i.closeHelp&&i.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),l("div",Nst,[l("div",{innerHTML:r.renderedHelp},null,8,Ost)])])])):B("",!0)],10,ust)}const dN=st(dst,[["render",Ist]]),kst={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),s=t.getElementsByTagName("style");Array.from(s).forEach(i=>{const o=document.createElement("style");o.textContent=this.scopeCSS(i.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const r=t.getElementsByTagName("script");Array.from(r).forEach(i=>{const o=document.createElement("script");o.textContent=i.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Dst=["id"];function Lst(n,e,t,s,r,i){return T(),x("div",{id:r.containerId,ref:"container"},null,8,Dst)}const uN=st(kst,[["render",Lst]]),Pst="/",Fst={components:{DynamicUIRenderer:uN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ue(()=>{Ve.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return Pst+this.binding.icon},defaultImg(n){n.target.src=K0},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Ue(()=>{Ve.replace()})}}},Ust=["title"],Bst={class:"flex flex-row items-center gap-3"},Gst=["src"],Vst={class:"font-bold font-large text-lg truncate"},zst={class:"flex-none gap-1"},Hst={class:"flex items-center flex-row-reverse gap-2 my-1"},qst={class:""},Yst={class:""},$st={class:"flex items-center"},Wst={class:"flex items-center"},Kst={class:"flex items-center"},jst={class:"flex items-center"},Qst=["href"],Xst=["title","innerHTML"];function Zst(n,e,t,s,r,i){const o=Je("DynamicUIRenderer");return T(),x("div",{class:Le(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=$((...a)=>i.toggleSelected&&i.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[l("div",null,[l("div",Bst,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Gst),l("h3",Vst,Y(t.binding.name),1),e[10]||(e[10]=l("div",{class:"grow"},null,-1)),l("div",zst,[t.selected?(T(),x("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>i.toggleReloadBinding&&i.toggleReloadBinding(...a)),e[2]||(e[2]=$(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Help",-1)]))):B("",!0)])]),l("div",Hst,[t.binding.installed?B("",!0):(T(),x("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=$((...a)=>i.toggleInstall&&i.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[Ze(" Install "),l("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),x("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=$((...a)=>i.toggleReinstall&&i.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[Ze(" Reinstall "),l("span",{class:"sr-only"},"Reinstall",-1)]))):B("",!0),t.binding.installed?(T(),x("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=$((...a)=>i.toggleUnInstall&&i.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"UnInstall",-1)]))):B("",!0),t.selected?(T(),x("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=$((...a)=>i.toggleSettings&&i.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[Ze(" Settings "),l("span",{class:"sr-only"},"Settings",-1)]))):B("",!0)]),t.binding.ui?(T(),at(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):B("",!0),l("div",qst,[l("div",Yst,[l("div",$st,[e[15]||(e[15]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=l("b",null,"Author: ",-1)),Ze(" "+Y(t.binding.author),1)]),l("div",Wst,[e[18]||(e[18]=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=l("b",null,"Folder: ",-1)),Ze(" "+Y(t.binding.folder)+" ",1),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=$(a=>i.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Kst,[e[21]||(e[21]=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=l("b",null,"Version: ",-1)),Ze(" "+Y(t.binding.version),1)]),l("div",jst,[e[23]||(e[23]=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=l("b",null,"Link: ",-1)),l("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},Y(t.binding.link),9,Qst)])]),e[25]||(e[25]=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1)),l("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Xst)])])],10,Ust)}const Jst=st(Fst,[["render",Zst]]),Bs="/assets/logo-B22RoIQ8.png",ert={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},trt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},nrt={class:"relative w-full max-w-md max-h-full"},srt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},rrt={class:"p-4 text-center"},irt={class:"p-4 text-center mx-auto mb-4"};function ort(n,e,t,s,r,i){return r.show?(T(),x("div",trt,[l("div",nrt,[l("div",srt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",rrt,[e[6]||(e[6]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",irt,[e[5]||(e[5]=l("label",{class:"mr-2"},"Model path",-1)),k(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>r.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[ae,r.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),l("button",{onClick:e[3]||(e[3]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):B("",!0)}const art=st(ert,[["render",ort]]),lrt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),x("div",crt,[l("div",drt,[l("h2",urt,[e[5]||(e[5]=l("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),Ze(" "+Y(t.title),1)]),l("div",prt,[l("ul",null,[(T(!0),x(Fe,null,We(t.choices,(o,a)=>(T(),x("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[l("div",frt,[l("div",_rt,[o.isEditing?k((T(),x("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>i.finishEditing(o),onKeyup:Jn(c=>i.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,hrt)),[[ae,o.editName]]):(T(),x("span",{key:0,onClick:c=>i.selectChoice(o),class:Le([{"font-semibold":o===r.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},Y(i.displayName(o)),11,mrt)),o.size?(T(),x("span",grt,Y(i.formatSize(o.size)),1)):B("",!0)]),l("div",brt,[l("button",{onClick:c=>i.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,yrt),t.can_remove?(T(),x("button",{key:0,onClick:c=>i.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,vrt)):B("",!0)])])]))),128))])]),r.showInput?(T(),x("div",Ert,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[ae,r.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>i.addNewFilename&&i.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):B("",!0),l("div",Srt,[l("button",{onClick:e[2]||(e[2]=(...o)=>i.closeDialog&&i.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),l("button",{onClick:e[3]||(e[3]=(...o)=>i.validateChoice&&i.validateChoice(...o)),disabled:!r.selectedChoice,class:Le([{"bg-blue-500 hover:bg-blue-600":r.selectedChoice,"bg-gray-400 cursor-not-allowed":!r.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Trt),l("button",{onClick:e[4]||(e[4]=(...o)=>i.toggleInput&&i.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):B("",!0)]),_:1})}const j0=st(lrt,[["render",xrt],["__scopeId","data-v-f43216be"]]),Crt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},wrt={class:"flex space-x-4"},Rrt=["value","aria-checked"],Art={class:"text-gray-700"};function Mrt(n,e,t,s,r,i){return T(),x("div",wrt,[(T(!0),x(Fe,null,We(t.radioOptions,(o,a)=>(T(),x("label",{key:o.value,class:"flex items-center space-x-2"},[k(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>i.handleRadioChange&&i.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":r.selectedValue===o.value.toString(),role:"radio"},null,40,Rrt),[[OD,r.selectedValue]]),l("span",Art,Y(o.label),1)]))),128))])}const Nrt=st(Crt,[["render",Mrt]]),Ort="/assets/gpu-BWVOYg-D.svg",Irt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,s)=>s!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(nr.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Drt),[[ae,r.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>i.addItem&&i.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),x("ul",Lrt,[(T(!0),x(Fe,null,We(t.modelValue,(o,a)=>(T(),x("li",{key:a,class:Le(["flex items-center mb-2 relative",{"bg-gray-200":r.draggingIndex===a}])},[l("span",Prt,Y(o),1),l("div",Frt,[l("button",{onClick:c=>i.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,Urt),a>0?(T(),x("button",{key:0,onClick:c=>i.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,Brt)):B("",!0),ai.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Grt)):B("",!0)]),r.draggingIndex===a?(T(),x("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>i.startDragging(a),onMousemove:c=>i.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>i.stopDragging&&i.stopDragging(...c))},null,40,Vrt)):B("",!0)],2))),128))])):B("",!0),t.modelValue.length>0?(T(),x("div",zrt,[l("button",{onClick:e[4]||(e[4]=(...o)=>i.removeAll&&i.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):B("",!0)])}const qrt=st(Irt,[["render",Hrt]]),Yrt={name:"DictionaryManager",props:{modelValue:{type:Object,default:()=>({})},keyName:{type:String,default:"Key"},valueName:{type:String,default:"Value"}},emits:["update:modelValue","change"],data(){return{newKey:"",newValue:"",draggingKey:null}},methods:{addItem(){if(this.newKey.trim()){const n={...this.modelValue};n[this.newKey.trim()]=this.newValue,this.$emit("update:modelValue",n),this.$emit("change"),this.newKey="",this.newValue=""}},removeItem(n){const e={...this.modelValue};delete e[n],this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",{}),this.$emit("change")},updateKey(n,e){if(e.trim()&&e!==n){const t={...this.modelValue};t[e.trim()]=t[n],delete t[n],this.$emit("update:modelValue",t),this.$emit("change")}},updateValue(n,e){const t={...this.modelValue};t[n]=e,this.$emit("update:modelValue",t),this.$emit("change")},moveUp(n){const e=Object.keys(this.modelValue),t=e.indexOf(n);if(t>0){const s={};e.forEach((r,i)=>{i===t-1&&(s[n]=this.modelValue[n]),r!==n&&(s[r]=this.modelValue[r])}),this.$emit("update:modelValue",s),this.$emit("change")}},moveDown(n){const e=Object.keys(this.modelValue),t=e.indexOf(n);if(t{r!==n&&(s[r]=this.modelValue[r]),i===t+1&&(s[n]=this.modelValue[n])}),this.$emit("update:modelValue",s),this.$emit("change")}}}},$rt={class:"max-w-4xl mx-auto p-4"},Wrt={class:"flex flex-col sm:flex-row mb-4 gap-2"},Krt=["placeholder"],jrt=["placeholder"],Qrt={key:0,class:"space-y-4"},Xrt={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},Zrt=["for"],Jrt=["id","value","onInput"],eit={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},tit=["for"],nit=["id","value","onInput"],sit={class:"flex items-center space-x-2"},rit=["onClick"],iit=["onClick"],oit=["onClick"],ait={key:1,class:"mt-6"};function lit(n,e,t,s,r,i){return T(),x("div",$rt,[l("div",Wrt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>r.newKey=o),placeholder:t.keyName,onKeyup:e[1]||(e[1]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,Krt),[[ae,r.newKey]]),k(l("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=o=>r.newValue=o),placeholder:t.valueName,onKeyup:e[3]||(e[3]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,jrt),[[ae,r.newValue]]),l("button",{onClick:e[4]||(e[4]=(...o)=>i.addItem&&i.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg transition duration-300 ease-in-out"},"Add")]),Object.keys(t.modelValue).length>0?(T(),x("ul",Qrt,[(T(!0),x(Fe,null,We(t.modelValue,(o,a)=>(T(),x("li",{key:a,class:Le(["flex flex-col sm:flex-row items-center p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out",{"bg-gray-100 dark:bg-gray-700":r.draggingKey===a}])},[l("div",Xrt,[l("label",{for:"key-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},Y(t.keyName),9,Zrt),l("input",{id:"key-"+a,value:a,onInput:c=>i.updateKey(a,c.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,Jrt)]),l("div",eit,[l("label",{for:"value-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},Y(t.valueName),9,tit),l("input",{id:"value-"+a,value:o,onInput:c=>i.updateValue(a,c.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,nit)]),l("div",sit,[l("button",{onClick:c=>i.removeItem(a),class:"text-red-500 hover:text-red-700 p-2 rounded-full hover:bg-red-100 dark:hover:bg-red-900 transition duration-300 ease-in-out"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,rit),l("button",{onClick:c=>i.moveUp(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,iit),l("button",{onClick:c=>i.moveDown(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[8]||(e[8]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,oit)])],2))),128))])):B("",!0),Object.keys(t.modelValue).length>0?(T(),x("div",ait,[l("button",{onClick:e[5]||(e[5]=(...o)=>i.removeAll&&i.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg transition duration-300 ease-in-out"},"Remove All")])):B("",!0)])}const cit=st(Yrt,[["render",lit]]),dit="/";ne.defaults.baseURL="/";const uit={components:{AddModelDialog:art,ModelEntry:est,PersonalityViewer:lst,PersonalityEntry:dN,BindingEntry:Jst,ChoiceDialog:j0,Card:lp,StringListManager:qrt,DictManager:cit,RadioOptions:Nrt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:$n,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Bs,binding_changed:!1,SVGGPU:Ort,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:dit,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}Ye.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await ne.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{Ye.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ne.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +Please report this to https://github.com/markedjs/marked.`,e){const r="

An error occurred:

"+rs(s.message+"",!0)+"
";return t?Promise.resolve(r):r}if(t)return Promise.reject(s);throw s}}}const fo=new Ftt;function kt(n,e){return fo.parse(n,e)}kt.options=kt.setOptions=function(n){return fo.setOptions(n),kt.defaults=fo.defaults,eN(kt.defaults),kt};kt.getDefaults=G0;kt.defaults=vo;kt.use=function(...n){return fo.use(...n),kt.defaults=fo.defaults,eN(kt.defaults),kt};kt.walkTokens=function(n,e){return fo.walkTokens(n,e)};kt.parseInline=fo.parseInline;kt.Parser=Ss;kt.parser=Ss.parse;kt.Renderer=iu;kt.TextRenderer=$0;kt.Lexer=Es;kt.lexer=Es.lex;kt.Tokenizer=su;kt.Hooks=Ml;kt.parse=kt;kt.options;kt.setOptions;kt.use;kt.walkTokens;kt.parseInline;Ss.parse;Es.lex;const Utt={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return kt(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},Btt={class:"help-view background-color p-6 w-full"},Gtt={class:"big-card w-full"},Vtt={class:"help-sections-container"},ztt={class:"help-sections space-y-4"},Htt=["onClick"],qtt={class:"toggle-icon"},Ytt={key:0,class:"help-content mt-4"},$tt=["innerHTML"];function Wtt(n,e,t,s,r,i){return T(),x("div",Btt,[l("div",Gtt,[e[0]||(e[0]=l("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),l("div",Vtt,[l("div",ztt,[(T(!0),x(Fe,null,We(r.helpSections,(o,a)=>(T(),x("div",{key:a,class:"help-section message"},[l("h2",{onClick:c=>i.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[Ze(Y(o.title)+" ",1),l("span",qtt,Y(o.isOpen?"▼":"▶"),1)],8,Htt),o.isOpen?(T(),x("div",Ytt,[l("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,$tt)])):B("",!0)]))),128))])])])])}const Ktt=st(Utt,[["render",Wtt],["__scopeId","data-v-8c1798f3"]]);function rr(n,e=!0,t=1){const s=e?1e3:1024;if(Math.abs(n)=s&&i{Ve.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ue(()=>{Ve.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},Qtt={class:"menu-container"},Xtt=["title"],Ztt=["src"],Jtt=["data-feather"],ent={key:2,class:"w-5 h-5"},tnt={key:3,"data-feather":"menu"},nnt={class:"flex-grow menu-ul"},snt=["onClick"],rnt={key:0,"data-feather":"check"},int=["src","alt"],ont=["data-feather"],ant={key:3,class:"menu-icon"};function lnt(n,e,t,s,r,i){return T(),x("div",Qtt,[l("button",{onClick:e[0]||(e[0]=$((...o)=>i.toggleMenu&&i.toggleMenu(...o),["prevent"])),title:t.title,class:Le([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),x("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,Ztt)):t.icon&&t.icon.includes("feather")?(T(),x("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,Jtt)):t.icon&&t.icon.includes("#")?(T(),x("p",ent,Y(t.icon.split("#")[1]),1)):(T(),x("i",tnt))],10,Xtt),z(or,{name:"slide"},{default:Ie(()=>[r.isMenuOpen?(T(),x("div",{key:0,class:"menu-list flex-grow",style:Bt(r.menuPosition),ref:"menu"},[l("ul",nnt,[(T(!0),x(Fe,null,We(t.commands,(o,a)=>(T(),x("li",{key:a,onClick:$(c=>i.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),x("i",rnt)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),x("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,int)):B("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),x("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,ont)):(T(),x("span",ant)),l("span",null,Y(o.name),1)],8,snt))),128))])],4)):B("",!0)]),_:1})])}const W0=st(jtt,[["render",lnt]]),cnt={components:{InteractiveMenu:W0},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Ue(()=>{Ve.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return rr(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?$n:this.model.icon},defaultImg(n){n.target.src=$n},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Ue(()=>{Ve.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return rr(this.speed)},total_size_computed(){return rr(this.total_size)},downloaded_size_computed(){return rr(this.downloaded_size)}},watch:{linkNotValid(){Ue(()=>{Ve.replace()})}}},dnt=["title"],unt={key:0,class:"flex flex-row"},pnt={class:"max-w-[300px] overflow-x-auto"},fnt={class:"flex gap-3 items-center grow"},_nt=["href"],mnt=["src"],hnt={class:"flex-1 overflow-hidden"},gnt={class:"font-bold font-large text-lg truncate"},bnt={key:1,class:"flex items-center flex-row gap-2 my-1"},ynt={class:"flex grow items-center"},vnt={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Ent={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Snt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Tnt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},xnt={class:"flex justify-between mb-1"},Cnt={class:"text-sm font-medium text-blue-700 dark:text-white"},wnt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Rnt={class:"flex justify-between mb-1"},Ant={class:"text-base font-medium text-blue-700 dark:text-white"},Mnt={class:"text-sm font-medium text-blue-700 dark:text-white"},Nnt={class:"flex flex-grow"},Ont={class:"flex flex-row flex-grow gap-3"},Int={class:"p-2 text-center grow"},knt={key:3},Dnt={class:"flex flex-row items-center gap-3"},Lnt=["src"],Pnt={class:"font-bold font-large text-lg truncate"},Fnt={class:"flex items-center flex-row-reverse gap-2 my-1"},Unt={class:"flex flex-row items-center"},Bnt={key:0,class:"text-base text-red-600 flex items-center mt-1"},Gnt=["title"],Vnt={class:""},znt={class:"flex flex-row items-center"},Hnt=["href","title"],qnt={class:"flex items-center"},Ynt={class:"flex items-center"},$nt={key:0,class:"flex items-center"},Wnt=["href"],Knt={class:"flex items-center"},jnt=["href"],Qnt={class:"flex items-center"},Xnt={class:"flex items-center"},Znt=["href"];function Jnt(n,e,t,s,r,i){const o=Je("InteractiveMenu");return T(),x("div",{class:Le(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",i.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=$(a=>i.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),x("div",unt,[l("div",pnt,[l("div",fnt,[l("a",{href:t.model.model_creator_link,target:"_blank"},[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,mnt)],8,_nt),l("div",hnt,[l("h3",gnt,Y(t.model.name),1)])])])])):B("",!0),t.model.isCustomModel?(T(),x("div",bnt,[l("div",ynt,[l("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=$(()=>{},["stop"]))},e[11]||(e[11]=[l("i",{"data-feather":"box",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=Ze(" Custom model "))]),l("div",null,[t.model.isInstalled?(T(),x("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=$((...a)=>i.uninstall&&i.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"Remove",-1)]))):B("",!0)])])):B("",!0),r.installing?(T(),x("div",vnt,[l("div",Ent,[e[15]||(e[15]=l("div",{role:"status",class:"justify-center"},[l("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)),l("div",Snt,[l("div",Tnt,[l("div",xnt,[e[14]||(e[14]=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),l("span",Cnt,Y(Math.floor(r.progress))+"%",1)]),l("div",wnt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt({width:r.progress+"%"})},null,4)]),l("div",Rnt,[l("span",Ant,"Download speed: "+Y(i.speed_computed)+"/s",1),l("span",Mnt,Y(i.downloaded_size_computed)+"/"+Y(i.total_size_computed),1)])])]),l("div",Nnt,[l("div",Ont,[l("div",Int,[l("button",{onClick:e[3]||(e[3]=$((...a)=>i.toggleCancelInstall&&i.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):B("",!0),t.model.isCustomModel?B("",!0):(T(),x("div",knt,[l("div",Dnt,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[4]||(e[4]=a=>i.defaultImg(a)),class:Le(["w-10 h-10 rounded-lg object-fill",r.linkNotValid?"grayscale":""])},null,42,Lnt),l("h3",Pnt,Y(t.model.name),1),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),z(o,{commands:i.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Fnt,[l("div",Unt,[r.linkNotValid?(T(),x("div",Bnt,e[17]||(e[17]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Ze(" Link is not valid ")]))):B("",!0)])]),l("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[l("div",Vnt,[l("div",znt,[e[19]||(e[19]=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=l("b",null,"Card: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=$(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:r.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,Hnt),e[21]||(e[21]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=$(a=>i.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",qnt,[l("div",{class:Le(["flex flex-shrink-0 items-center",r.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=l("b",null,"File size: ",-1)),Ze(" "+Y(i.fileSize),1)],2)]),l("div",Ynt,[e[24]||(e[24]=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=l("b",null,"License: ",-1)),Ze(" "+Y(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),x("div",$nt,[e[26]||(e[26]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=l("b",null,"quantizer: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.quantizer),9,Wnt)])):B("",!0),l("div",Knt,[e[28]||(e[28]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=l("b",null,"Model creator: ",-1)),l("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.model_creator),9,jnt)]),l("div",Qnt,[e[30]||(e[30]=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=l("b",null,"Release date: ",-1)),Ze(" "+Y(t.model.last_commit_time),1)]),l("div",Xnt,[e[32]||(e[32]=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=l("b",null,"Category: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.category),9,Znt)])])],8,Gnt)]))],10,dnt)}const est=st(cnt,[["render",Jnt]]),tst={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},nst={class:"p-4"},sst={class:"flex items-center mb-4"},rst=["src"],ist={class:"text-lg font-semibold"},ost={key:0};function ast(n,e,t,s,r,i){return T(),x("div",nst,[l("div",sst,[l("img",{src:r.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,rst),l("h2",ist,Y(r.personalityName),1)]),l("p",null,[e[2]||(e[2]=l("strong",null,"Author:",-1)),Ze(" "+Y(r.personalityAuthor),1)]),l("p",null,[e[3]||(e[3]=l("strong",null,"Description:",-1)),Ze(" "+Y(r.personalityDescription),1)]),l("p",null,[e[4]||(e[4]=l("strong",null,"Category:",-1)),Ze(" "+Y(r.personalityCategory),1)]),r.disclaimer?(T(),x("p",ost,[e[5]||(e[5]=l("strong",null,"Disclaimer:",-1)),Ze(" "+Y(r.disclaimer),1)])):B("",!0),l("p",null,[e[6]||(e[6]=l("strong",null,"Conditioning Text:",-1)),Ze(" "+Y(r.conditioningText),1)]),l("p",null,[e[7]||(e[7]=l("strong",null,"AI Prefix:",-1)),Ze(" "+Y(r.aiPrefix),1)]),l("p",null,[e[8]||(e[8]=l("strong",null,"User Prefix:",-1)),Ze(" "+Y(r.userPrefix),1)]),l("div",null,[e[9]||(e[9]=l("strong",null,"Antiprompts:",-1)),l("ul",null,[(T(!0),x(Fe,null,We(r.antipromptsList,o=>(T(),x("li",{key:o.id},Y(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>r.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),r.editMode?(T(),x("button",{key:1,onClick:e[1]||(e[1]=(...o)=>i.commitChanges&&i.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):B("",!0)])}const lst=st(tst,[["render",ast]]),K0="/assets/logo-CQZwS0X1.svg",cst="/",dst={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:W0},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,console.log(this.personality),Ue(()=>{Ve.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return cst+this.personality.avatar},defaultImg(n){n.target.src=K0},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)},showHelp(){this.renderedHelp=kt(this.personality.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{selected(){Ue(()=>{Ve.replace()})}}},ust=["title"],pst={class:"flex-grow"},fst={class:"flex items-center mb-4"},_st=["src"],mst={class:"text-sm text-gray-600"},hst={class:"text-sm text-gray-600"},gst={class:"text-sm text-gray-600"},bst={key:0,class:"text-sm text-gray-600"},yst={key:1,class:"text-sm text-gray-600"},vst={class:"mb-4"},Est=["innerHTML"],Sst={class:"mt-auto pt-4 border-t"},Tst={class:"flex justify-between items-center flex-wrap"},xst=["title"],Cst=["fill"],wst=["src"],Rst={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Ast={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},Mst={class:"flex justify-between items-center mb-2"},Nst={class:"flex-grow overflow-auto"},Ost=["innerHTML"];function Ist(n,e,t,s,r,i){const o=Je("InteractiveMenu");return T(),x("div",{class:Le(["app-card flex flex-col h-full",i.selected_computed?"border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[l("div",pst,[l("div",fst,[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>i.showThumbnail&&i.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>i.updateThumbnailPosition&&i.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>i.hideThumbnail&&i.hideThumbnail(...a))},null,40,_st),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>i.toggleSelected&&i.toggleSelected(...a))},Y(t.personality.name),1),l("p",mst,"Author: "+Y(t.personality.author),1),l("p",hst,"Version: "+Y(t.personality.version),1),l("p",gst,"Category: "+Y(t.personality.category),1),t.personality.creation_date?(T(),x("p",bst,"Creation Date: "+Y(i.formatDate(t.personality.creation_date)),1)):B("",!0),t.personality.last_update_date?(T(),x("p",yst,"Last update Date: "+Y(i.formatDate(t.personality.last_update_date)),1)):B("",!0)]),t.personality.help?(T(),x("button",{key:0,onClick:e[6]||(e[6]=(...a)=>i.showHelp&&i.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[12]||(e[12]=[l("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):B("",!0)]),l("div",vst,[e[13]||(e[13]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,Est)])]),l("div",Sst,[l("div",Tst,[l("button",{onClick:e[7]||(e[7]=(...a)=>i.toggleFavorite&&i.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[14]||(e[14]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Cst))],8,xst),r.isMounted?(T(),x("button",{key:0,onClick:e[8]||(e[8]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[15]||(e[15]=[l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):B("",!0),r.isMounted?(T(),x("button",{key:1,onClick:e[9]||(e[9]=(...a)=>i.toggleTalk&&i.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[16]||(e[16]=[l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):B("",!0),l("button",{onClick:e[10]||(e[10]=(...a)=>i.showFolder&&i.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[17]||(e[17]=[l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),z(o,{commands:i.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),r.thumbnailVisible?(T(),x("div",{key:0,style:Bt({top:r.thumbnailPosition.y+"px",left:r.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:i.getImgUrl(),class:"w-full h-full object-fill"},null,8,wst)],4)):B("",!0),r.showHelpPopup?(T(),x("div",Rst,[l("div",Ast,[l("div",Mst,[e[18]||(e[18]=l("h2",{class:"text-lg font-bold"},"Help",-1)),l("button",{onClick:e[11]||(e[11]=(...a)=>i.closeHelp&&i.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),l("div",Nst,[l("div",{innerHTML:r.renderedHelp},null,8,Ost)])])])):B("",!0)],10,ust)}const dN=st(dst,[["render",Ist]]),kst={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),s=t.getElementsByTagName("style");Array.from(s).forEach(i=>{const o=document.createElement("style");o.textContent=this.scopeCSS(i.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const r=t.getElementsByTagName("script");Array.from(r).forEach(i=>{const o=document.createElement("script");o.textContent=i.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Dst=["id"];function Lst(n,e,t,s,r,i){return T(),x("div",{id:r.containerId,ref:"container"},null,8,Dst)}const uN=st(kst,[["render",Lst]]),Pst="/",Fst={components:{DynamicUIRenderer:uN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ue(()=>{Ve.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return Pst+this.binding.icon},defaultImg(n){n.target.src=K0},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Ue(()=>{Ve.replace()})}}},Ust=["title"],Bst={class:"flex flex-row items-center gap-3"},Gst=["src"],Vst={class:"font-bold font-large text-lg truncate"},zst={class:"flex-none gap-1"},Hst={class:"flex items-center flex-row-reverse gap-2 my-1"},qst={class:""},Yst={class:""},$st={class:"flex items-center"},Wst={class:"flex items-center"},Kst={class:"flex items-center"},jst={class:"flex items-center"},Qst=["href"],Xst=["title","innerHTML"];function Zst(n,e,t,s,r,i){const o=Je("DynamicUIRenderer");return T(),x("div",{class:Le(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=$((...a)=>i.toggleSelected&&i.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[l("div",null,[l("div",Bst,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Gst),l("h3",Vst,Y(t.binding.name),1),e[10]||(e[10]=l("div",{class:"grow"},null,-1)),l("div",zst,[t.selected?(T(),x("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>i.toggleReloadBinding&&i.toggleReloadBinding(...a)),e[2]||(e[2]=$(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Help",-1)]))):B("",!0)])]),l("div",Hst,[t.binding.installed?B("",!0):(T(),x("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=$((...a)=>i.toggleInstall&&i.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[Ze(" Install "),l("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),x("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=$((...a)=>i.toggleReinstall&&i.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[Ze(" Reinstall "),l("span",{class:"sr-only"},"Reinstall",-1)]))):B("",!0),t.binding.installed?(T(),x("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=$((...a)=>i.toggleUnInstall&&i.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"UnInstall",-1)]))):B("",!0),t.selected?(T(),x("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=$((...a)=>i.toggleSettings&&i.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[Ze(" Settings "),l("span",{class:"sr-only"},"Settings",-1)]))):B("",!0)]),t.binding.ui?(T(),at(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):B("",!0),l("div",qst,[l("div",Yst,[l("div",$st,[e[15]||(e[15]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=l("b",null,"Author: ",-1)),Ze(" "+Y(t.binding.author),1)]),l("div",Wst,[e[18]||(e[18]=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=l("b",null,"Folder: ",-1)),Ze(" "+Y(t.binding.folder)+" ",1),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=$(a=>i.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Kst,[e[21]||(e[21]=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=l("b",null,"Version: ",-1)),Ze(" "+Y(t.binding.version),1)]),l("div",jst,[e[23]||(e[23]=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=l("b",null,"Link: ",-1)),l("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},Y(t.binding.link),9,Qst)])]),e[25]||(e[25]=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1)),l("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Xst)])])],10,Ust)}const Jst=st(Fst,[["render",Zst]]),Bs="/assets/logo-B22RoIQ8.png",ert={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},trt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},nrt={class:"relative w-full max-w-md max-h-full"},srt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},rrt={class:"p-4 text-center"},irt={class:"p-4 text-center mx-auto mb-4"};function ort(n,e,t,s,r,i){return r.show?(T(),x("div",trt,[l("div",nrt,[l("div",srt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",rrt,[e[6]||(e[6]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",irt,[e[5]||(e[5]=l("label",{class:"mr-2"},"Model path",-1)),k(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>r.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[ae,r.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),l("button",{onClick:e[3]||(e[3]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):B("",!0)}const art=st(ert,[["render",ort]]),lrt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),x("div",crt,[l("div",drt,[l("h2",urt,[e[5]||(e[5]=l("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),Ze(" "+Y(t.title),1)]),l("div",prt,[l("ul",null,[(T(!0),x(Fe,null,We(t.choices,(o,a)=>(T(),x("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[l("div",frt,[l("div",_rt,[o.isEditing?k((T(),x("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>i.finishEditing(o),onKeyup:Jn(c=>i.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,hrt)),[[ae,o.editName]]):(T(),x("span",{key:0,onClick:c=>i.selectChoice(o),class:Le([{"font-semibold":o===r.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},Y(i.displayName(o)),11,mrt)),o.size?(T(),x("span",grt,Y(i.formatSize(o.size)),1)):B("",!0)]),l("div",brt,[l("button",{onClick:c=>i.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,yrt),t.can_remove?(T(),x("button",{key:0,onClick:c=>i.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,vrt)):B("",!0)])])]))),128))])]),r.showInput?(T(),x("div",Ert,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[ae,r.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>i.addNewFilename&&i.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):B("",!0),l("div",Srt,[l("button",{onClick:e[2]||(e[2]=(...o)=>i.closeDialog&&i.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),l("button",{onClick:e[3]||(e[3]=(...o)=>i.validateChoice&&i.validateChoice(...o)),disabled:!r.selectedChoice,class:Le([{"bg-blue-500 hover:bg-blue-600":r.selectedChoice,"bg-gray-400 cursor-not-allowed":!r.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Trt),l("button",{onClick:e[4]||(e[4]=(...o)=>i.toggleInput&&i.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):B("",!0)]),_:1})}const j0=st(lrt,[["render",xrt],["__scopeId","data-v-f43216be"]]),Crt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},wrt={class:"flex space-x-4"},Rrt=["value","aria-checked"],Art={class:"text-gray-700"};function Mrt(n,e,t,s,r,i){return T(),x("div",wrt,[(T(!0),x(Fe,null,We(t.radioOptions,(o,a)=>(T(),x("label",{key:o.value,class:"flex items-center space-x-2"},[k(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>i.handleRadioChange&&i.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":r.selectedValue===o.value.toString(),role:"radio"},null,40,Rrt),[[OD,r.selectedValue]]),l("span",Art,Y(o.label),1)]))),128))])}const Nrt=st(Crt,[["render",Mrt]]),Ort="/assets/gpu-BWVOYg-D.svg",Irt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,s)=>s!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(nr.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Drt),[[ae,r.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>i.addItem&&i.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),x("ul",Lrt,[(T(!0),x(Fe,null,We(t.modelValue,(o,a)=>(T(),x("li",{key:a,class:Le(["flex items-center mb-2 relative",{"bg-gray-200":r.draggingIndex===a}])},[l("span",Prt,Y(o),1),l("div",Frt,[l("button",{onClick:c=>i.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,Urt),a>0?(T(),x("button",{key:0,onClick:c=>i.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,Brt)):B("",!0),ai.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Grt)):B("",!0)]),r.draggingIndex===a?(T(),x("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>i.startDragging(a),onMousemove:c=>i.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>i.stopDragging&&i.stopDragging(...c))},null,40,Vrt)):B("",!0)],2))),128))])):B("",!0),t.modelValue.length>0?(T(),x("div",zrt,[l("button",{onClick:e[4]||(e[4]=(...o)=>i.removeAll&&i.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):B("",!0)])}const qrt=st(Irt,[["render",Hrt]]),Yrt={name:"DictionaryManager",props:{modelValue:{type:Object,default:()=>({})},keyName:{type:String,default:"Key"},valueName:{type:String,default:"Value"}},emits:["update:modelValue","change"],data(){return{newKey:"",newValue:"",draggingKey:null}},methods:{addItem(){if(this.newKey.trim()){const n={...this.modelValue};n[this.newKey.trim()]=this.newValue,this.$emit("update:modelValue",n),this.$emit("change"),this.newKey="",this.newValue=""}},removeItem(n){const e={...this.modelValue};delete e[n],this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",{}),this.$emit("change")},updateKey(n,e){if(e.trim()&&e!==n){const t={...this.modelValue};t[e.trim()]=t[n],delete t[n],this.$emit("update:modelValue",t),this.$emit("change")}},updateValue(n,e){const t={...this.modelValue};t[n]=e,this.$emit("update:modelValue",t),this.$emit("change")},moveUp(n){const e=Object.keys(this.modelValue),t=e.indexOf(n);if(t>0){const s={};e.forEach((r,i)=>{i===t-1&&(s[n]=this.modelValue[n]),r!==n&&(s[r]=this.modelValue[r])}),this.$emit("update:modelValue",s),this.$emit("change")}},moveDown(n){const e=Object.keys(this.modelValue),t=e.indexOf(n);if(t{r!==n&&(s[r]=this.modelValue[r]),i===t+1&&(s[n]=this.modelValue[n])}),this.$emit("update:modelValue",s),this.$emit("change")}}}},$rt={class:"max-w-4xl mx-auto p-4"},Wrt={class:"flex flex-col sm:flex-row mb-4 gap-2"},Krt=["placeholder"],jrt=["placeholder"],Qrt={key:0,class:"space-y-4"},Xrt={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},Zrt=["for"],Jrt=["id","value","onInput"],eit={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},tit=["for"],nit=["id","value","onInput"],sit={class:"flex items-center space-x-2"},rit=["onClick"],iit=["onClick"],oit=["onClick"],ait={key:1,class:"mt-6"};function lit(n,e,t,s,r,i){return T(),x("div",$rt,[l("div",Wrt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>r.newKey=o),placeholder:t.keyName,onKeyup:e[1]||(e[1]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,Krt),[[ae,r.newKey]]),k(l("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=o=>r.newValue=o),placeholder:t.valueName,onKeyup:e[3]||(e[3]=Jn((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,jrt),[[ae,r.newValue]]),l("button",{onClick:e[4]||(e[4]=(...o)=>i.addItem&&i.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg transition duration-300 ease-in-out"},"Add")]),Object.keys(t.modelValue).length>0?(T(),x("ul",Qrt,[(T(!0),x(Fe,null,We(t.modelValue,(o,a)=>(T(),x("li",{key:a,class:Le(["flex flex-col sm:flex-row items-center p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out",{"bg-gray-100 dark:bg-gray-700":r.draggingKey===a}])},[l("div",Xrt,[l("label",{for:"key-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},Y(t.keyName),9,Zrt),l("input",{id:"key-"+a,value:a,onInput:c=>i.updateKey(a,c.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,Jrt)]),l("div",eit,[l("label",{for:"value-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},Y(t.valueName),9,tit),l("input",{id:"value-"+a,value:o,onInput:c=>i.updateValue(a,c.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,nit)]),l("div",sit,[l("button",{onClick:c=>i.removeItem(a),class:"text-red-500 hover:text-red-700 p-2 rounded-full hover:bg-red-100 dark:hover:bg-red-900 transition duration-300 ease-in-out"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,rit),l("button",{onClick:c=>i.moveUp(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,iit),l("button",{onClick:c=>i.moveDown(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[8]||(e[8]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,oit)])],2))),128))])):B("",!0),Object.keys(t.modelValue).length>0?(T(),x("div",ait,[l("button",{onClick:e[5]||(e[5]=(...o)=>i.removeAll&&i.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg transition duration-300 ease-in-out"},"Remove All")])):B("",!0)])}const cit=st(Yrt,[["render",lit]]),dit="/";ne.defaults.baseURL="/";const uit={components:{AddModelDialog:art,ModelEntry:est,PersonalityViewer:lst,PersonalityEntry:dN,BindingEntry:Jst,ChoiceDialog:j0,Card:lp,StringListManager:qrt,DictManager:cit,RadioOptions:Nrt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:$n,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Bs,binding_changed:!1,SVGGPU:Ort,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:dit,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}Ye.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await ne.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{Ye.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ne.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="bare"?(console.log("Using lollms template"),this.configFile.start_header_id_template="",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"?(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` @@ -209,7 +209,7 @@ Page will refresh in 5s.`),setTimeout(()=>{window.location.href="/"},5e3)):this. Endpoint error: `+s.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Personality has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},onMessageBoxOk(){console.log("OK button clicked")},update_personality_category(n,e){this.personality_category=n,e()},refresh(){console.log("Refreshing"),this.$store.dispatch("refreshConfig").then(()=>{console.log(this.personality_category),this.api_get_req("list_personalities_categories").then(n=>{console.log("cats",n),this.persCatgArr=n,this.personalitiesFiltered=this.$store.state.personalities.filter(e=>e.category===this.personality_category),this.personalitiesFiltered.sort()})})},toggleAccordion(){this.showAccordion=!this.showAccordion},async update_setting(n,e,t){this.isLoading=!0;const s={client_id:this.$store.state.client_id,setting_name:n,setting_value:e};console.log("Updating setting",n,":",e);let r=await ne.post("/update_setting",s,{headers:this.posts_headers});if(r)return this.isLoading=!1,console.log("update_setting",r),r.status?this.$store.state.toast.showToast(`Setting updated successfully. `,4,!0):this.$store.state.toast.showToast(`Setting update failed. Please view the console for more details.`,4,!1),t!==void 0&&t(r),r.data;this.isLoading=!1},async refreshModelsZoo(){this.models_zoo=[],console.log("refreshing models"),this.is_loading_zoo=!0,await this.$store.dispatch("refreshModelsZoo"),console.log("ModelsZoo refreshed"),await this.$store.dispatch("refreshModels"),console.log("Models refreshed"),this.updateModelsZoo(),console.log("Models updated"),this.is_loading_zoo=!1},async updateModelsZoo(){let n=this.$store.state.modelsZoo;if(n.length!=0){console.log(`REFRESHING models using sorting ${this.sort_type}`),n.length>1?(this.sort_type==0?(n.sort((e,t)=>{const s=new Date(e.last_commit_time);return new Date(t.last_commit_time)-s}),console.log("Sorted")):this.sort_type==1?n.sort((e,t)=>t.rank-e.rank):this.sort_type==2?n.sort((e,t)=>e.name.localeCompare(t.name)):this.sort_type==3&&n.sort((e,t)=>e.name.localeCompare(t.name)),console.log("Sorted")):console.log("No sorting needed"),n.forEach(e=>{e.name==this.$store.state.config.model_name?e.selected=!0:e.selected=!1}),console.log("Selected models");for(let e=0;er.name==t);if(s==-1)for(let r=0;ro.name==t),s!=-1)){s=r,console.log(`Found ${t} at index ${s}`);break}}if(s==-1){let r={};r.name=t,r.icon=this.imgBinding,r.isCustomModel=!0,r.isInstalled=!0,n.push(r)}else n[s].isInstalled=!0}console.log("Determined models"),n.sort((e,t)=>e.isInstalled&&!t.isInstalled?-1:!e.isInstalled&&t.isInstalled?1:0),console.log("Done"),this.models_zoo=this.$store.state.modelsZoo}},update_binding(n){this.isLoading=!0,this.$store.state.modelsZoo=[],this.configFile.model_name=null,this.$store.state.config.model_name=null,console.log("updating binding_name"),this.update_setting("binding_name",n,async e=>{console.log("updated binding_name"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.mzc_collapsed=!0;const t=this.bindingsZoo.findIndex(r=>r.folder==n),s=this.bindingsZoo[t];s?s.installed=!0:s.installed=!1,this.settingsChanged=!0,this.isLoading=!1,Ue(()=>{Ve.replace()}),console.log("updating model"),this.update_model(null).then(()=>{}),Ue(()=>{Ve.replace()})}),Ue(()=>{Ve.replace()})},async update_model(n){n||(this.isModelSelected=!1),this.isLoading=!0;let e=await this.update_setting("model_name",n);return this.isLoading=!1,Ue(()=>{Ve.replace()}),e},async cancelConfiguration(){await this.$store.dispatch("refreshConfig"),this.settingsChanged=!1},applyConfiguration(){this.isLoading=!0,ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.configFile},{headers:this.posts_headers}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ue(()=>{Ve.replace()})})},save_configuration(){this.showConfirmation=!1,ne.post("/save_settings",{},{headers:this.posts_headers}).then(n=>{if(n)return n.status||this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),n.data}).catch(n=>(console.log(n.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$store.state.yesNoDialog.askQuestion(`Are you sure? -This will delete all your configurations and get back to default configuration.`).then(n=>{n&&ne.post("/reset_settings",{},{headers:this.posts_headers}).then(e=>{if(e)return e.status?this.$store.state.messageBox.showMessage("Settings have been reset correctly"):this.$store.state.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$store.state.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},async api_post_req(n){try{const e=await ne.post("/"+n,{client_id:this.$store.state.client_id});if(e)return e.data}catch(e){console.log(e.message,"api_post_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.$store.state.personalities=[];const n=await this.api_get_req("get_all_personalities"),e=this.$store.state.config;console.log("recovering all_personalities");const t=Object.keys(n);for(let s=0;s{const c=e.personalities.includes(r+"/"+a.folder);let d={};return d=a,d.category=r,d.language="",d.full_path=r+"/"+a.folder,d.isMounted=c,d});this.$store.state.personalities.length==0?this.$store.state.personalities=o:this.$store.state.personalities=this.$store.state.personalities.concat(o)}this.$store.state.personalities.sort((s,r)=>s.name.localeCompare(r.name)),this.personalitiesFiltered=this.$store.state.personalities.filter(s=>s.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const n=this.searchPersonality.toLowerCase(),e=this.$store.state.personalities.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.full_path&&t.full_path.toLowerCase().includes(n))return t});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){const n=this.searchModel.toLowerCase();this.is_loading_zoo=!0,console.log("filtering models"),console.log(this.models_zoo);const e=this.models_zoo.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.category&&t.category.toLowerCase().includes(n))return t});this.is_loading_zoo=!1,e.length>0?this.modelsFiltered=e:this.modelsFiltered=[],this.searchModelInProgress=!1},computedFileSize(n){return sr(n)},async mount_personality(n){if(!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await ne.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(n){if(!n)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,language:n.language,category:n.category,folder:n.folder};try{const t=await ne.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(r=>r===e),s={client_id:this.$store.state.client_id,id:t};try{const r=await ne.post("/select_personality",s,{headers:this.posts_headers});if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: +This will delete all your configurations and get back to default configuration.`).then(n=>{n&&ne.post("/reset_settings",{},{headers:this.posts_headers}).then(e=>{if(e)return e.status?this.$store.state.messageBox.showMessage("Settings have been reset correctly"):this.$store.state.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$store.state.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},async api_post_req(n){try{const e=await ne.post("/"+n,{client_id:this.$store.state.client_id});if(e)return e.data}catch(e){console.log(e.message,"api_post_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.$store.state.personalities=[];const n=await this.api_get_req("get_all_personalities"),e=this.$store.state.config;console.log("recovering all_personalities");const t=Object.keys(n);for(let s=0;s{const c=e.personalities.includes(r+"/"+a.folder);let d={};return d=a,d.category=r,d.language="",d.full_path=r+"/"+a.folder,d.isMounted=c,d});this.$store.state.personalities.length==0?this.$store.state.personalities=o:this.$store.state.personalities=this.$store.state.personalities.concat(o)}this.$store.state.personalities.sort((s,r)=>s.name.localeCompare(r.name)),this.personalitiesFiltered=this.$store.state.personalities.filter(s=>s.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const n=this.searchPersonality.toLowerCase(),e=this.$store.state.personalities.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.full_path&&t.full_path.toLowerCase().includes(n))return t});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){const n=this.searchModel.toLowerCase();this.is_loading_zoo=!0,console.log("filtering models"),console.log(this.models_zoo);const e=this.models_zoo.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.category&&t.category.toLowerCase().includes(n))return t});this.is_loading_zoo=!1,e.length>0?this.modelsFiltered=e:this.modelsFiltered=[],this.searchModelInProgress=!1},computedFileSize(n){return rr(n)},async mount_personality(n){if(!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await ne.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(n){if(!n)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,language:n.language,category:n.category,folder:n.folder};try{const t=await ne.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(r=>r===e),s={client_id:this.$store.state.client_id,id:t};try{const r=await ne.post("/select_personality",s,{headers:this.posts_headers});if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: `+n.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities")):(n.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality Error: `+e.error+` Response: @@ -223,7 +223,7 @@ The possibilities are endless, they are now yours to mold and customize as you s Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ne.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(n){n.target.src=Bs},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){this.filterModels()}},async mounted(){console.log("Getting voices"),this.getVoices(),console.log("Constructing"),this.load_everything(),this.getSeviceVoices();try{console.log("Loading input devices list");const n=await ne.get("/get_snd_input_devices");this.snd_input_devices=n.data.device_names,this.snd_input_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const n=await ne.get("/get_snd_output_devices");this.snd_output_devices=n.data.device_names,this.snd_output_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list output devices")}try{if(console.log("Getting comfyui models"),this.configFile.activate_lollms_tti_server&&this.configFile.active_tti_service=="comfyui"){const n=await ne.get("/list_comfyui_models");n.data.status&&(this.comfyui_models=n.data.models)}}catch{console.log("Couldin't list output devices")}this.fetchElevenLabsVoices()},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(` -`,"
")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[n].icon}`),this.$store.state.modelsZoo[n].icon):$n}catch{console.log("error")}if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Bs},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(n){console.log("Current xtts voice set to ",n),this.$store.state.config.xtts_current_language=n}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.xtts_current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(n){this.$store.state.config.discussion_db_name=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return sr(this.addModel.speed)},total_size_computed(){return sr(this.addModel.total_size)},downloaded_size_computed(){return sr(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Ue(()=>{Ve.replace()})},pc_collapsed(){Ue(()=>{Ve.replace()})},mc_collapsed(){Ue(()=>{Ve.replace()})},sc_collapsed(){Ue(()=>{Ve.replace()})},showConfirmation(){Ue(()=>{Ve.replace()})},mzl_collapsed(){Ue(()=>{Ve.replace()})},pzl_collapsed(){Ue(()=>{Ve.replace()})},ezl_collapsed(){Ue(()=>{Ve.replace()})},bzl_collapsed(){Ue(()=>{Ve.replace()})},all_collapsed(n){this.collapseAll(n),Ue(()=>{Ve.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Ue(()=>{Ve.replace()})},isLoading(){Ue(()=>{Ve.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Ue(()=>{Ve.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},pit={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},fit={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},_it={key:0,class:"flex gap-3 flex-1 items-center duration-75"},mit={key:1,class:"flex gap-3 flex-1 items-center"},hit={class:"flex gap-3 flex-1 items-center justify-end"},git={class:"flex gap-3 items-center"},bit={key:0,class:"flex gap-3 items-center"},yit={key:1,role:"status"},vit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Eit={class:"flex flex-row p-3"},Sit={class:"text-base font-semibold cursor-pointer select-none items-center"},Tit={class:"flex gap-2 items-center"},xit={key:0},Cit=["src"],wit={class:"font-bold font-large text-lg"},Rit={key:1},Ait={class:"flex gap-2 items-center"},Mit=["src"],Nit={class:"font-bold font-large text-lg"},Oit={class:"font-bold font-large text-lg"},Iit={class:"font-bold font-large text-lg"},kit={class:"mb-2"},Dit={class:"flex flex-col mx-2"},Lit={class:"p-2"},Pit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Fit={class:"mb-2"},Uit={class:"flex flex-col mx-2"},Bit={class:"p-2"},Git={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Vit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},zit=["src"],Hit={class:"flex flex-col mx-2"},qit={class:"p-2"},Yit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},$it={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wit={class:"flex flex-row p-3"},Kit={class:"flex flex-col mb-2 px-3 pb-2"},jit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qit={class:"flex flex-col space-y-4"},Xit={class:"flex items-center"},Zit={class:"flex items-center"},Jit={class:"flex items-center"},eot={class:"flex items-start"},tot={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},not={class:"flex flex-row p-3"},sot={class:"flex flex-col mb-2 px-3 pb-2"},rot={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},iot={for:"logo-upload"},oot=["src"],aot={style:{width:"10%"}},lot={class:"text-center items-center"},cot={class:"flex flex-row"},dot={style:{width:"100%"}},uot={class:"flex flex-row"},pot={class:"flex flex-row"},fot={class:"flex flex-row"},_ot={class:"flex flex-row"},mot={class:"flex flex-row"},hot={class:"flex flex-row"},got={class:"flex flex-row"},bot={class:"flex flex-row"},yot={class:"flex flex-row"},vot={class:"flex flex-row"},Eot={class:"flex flex-row"},Sot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Tot=["innerHTML"],xot={style:{width:"100%"}},Cot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wot={style:{width:"100%"}},Rot={style:{width:"100%"}},Aot={style:{width:"100%"}},Mot={style:{width:"100%"}},Not={for:"avatar-upload"},Oot=["src"],Iot={style:{width:"10%"}},kot={class:"flex flex-row"},Dot={style:{width:"100%"}},Lot={style:{width:"100%"}},Pot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fot={style:{width:"100%"}},Uot={style:{width:"100%"}},Bot={style:{width:"100%"}},Got={style:{width:"100%"}},Vot={style:{width:"100%"}},zot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hot={class:"flex flex-row"},qot={style:{width:"100%"}},Yot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},$ot={class:"flex flex-row"},Wot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Kot={class:"flex flex-row"},jot={class:"flex flex-row"},Qot={class:"flex flex-row"},Xot={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Zot={class:"flex flex-row p-3"},Jot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},eat={style:{width:"100%"}},tat=["onUpdate:modelValue"],nat=["onClick"],sat=["onClick"],rat=["onClick"],iat=["disabled"],oat={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},aat={key:1,value:"bert-base-uncased"},lat={key:2,value:"bert-base-multilingual-uncased"},cat={key:3,value:"bert-large-uncased"},dat={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},uat={key:5,value:"distilbert-base-uncased"},pat={key:6,value:"roberta-base"},fat={key:7,value:"roberta-large"},_at={key:8,value:"xlm-roberta-base"},mat={key:9,value:"xlm-roberta-large"},hat={key:10,value:"albert-base-v2"},gat={key:11,value:"albert-large-v2"},bat={key:12,value:"albert-xlarge-v2"},yat={key:13,value:"albert-xxlarge-v2"},vat={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},Eat={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},Sat={key:16,value:"sentence-transformers/all-distilroberta-v1"},Tat={key:17,value:"sentence-transformers/all-mpnet-base-v2"},xat={key:18,value:"text-embedding-ada-002"},Cat={key:19,value:"text-embedding-babbage-001"},wat={key:20,value:"text-embedding-curie-001"},Rat={key:21,value:"text-embedding-davinci-001"},Aat={key:22,disabled:""},Mat={class:"flex flex-row"},Nat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Oat={class:"flex flex-row"},Iat={class:"flex flex-row"},kat={class:"flex flex-row"},Dat={class:"flex flex-row"},Lat={class:"flex flex-row"},Pat={style:{width:"100%"}},Fat={class:"flex flex-row"},Uat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Bat={class:"flex flex-row p-3"},Gat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Vat={class:"flex flex-row"},zat={class:"flex flex-row"},Hat={class:"flex flex-row"},qat={class:"flex flex-row"},Yat={class:"flex flex-col"},$at={class:"flex flex-col"},Wat={class:"flex flex-col"},Kat={class:"flex flex-col"},jat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Qat={class:"flex flex-row p-3"},Xat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Zat={style:{width:"100%"}},Jat={style:{width:"100%"}},elt={style:{width:"100%"}},tlt={style:{width:"100%"}},nlt={style:{width:"100%"}},slt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rlt={class:"flex flex-row"},ilt={class:"flex flex-row"},olt={class:"flex flex-row"},alt={class:"flex flex-row"},llt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},clt={style:{width:"100%"}},dlt={style:{width:"100%"}},ult={style:{width:"100%"}},plt={style:{width:"100%"}},flt={style:{width:"100%"}},_lt={style:{width:"100%"}},mlt={style:{width:"100%"}},hlt={class:"flex flex-row"},glt={class:"flex flex-row"},blt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ylt={style:{width:"100%"}},vlt=["value"],Elt={style:{width:"100%"}},Slt=["value"],Tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xlt={style:{width:"100%"}},Clt={style:{width:"100%"}},wlt={style:{width:"100%"}},Rlt={style:{width:"100%"}},Alt={style:{width:"100%"}},Mlt={style:{width:"100%"}},Nlt={style:{width:"100%"}},Olt={style:{width:"100%"}},Ilt={style:{width:"100%"}},klt={style:{width:"100%"}},Dlt={style:{width:"100%"}},Llt={style:{width:"100%"}},Plt={style:{width:"100%"}},Flt={style:{width:"100%"}},Ult={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Blt={class:"flex flex-row"},Glt={class:"flex flex-row"},Vlt=["value"],zlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hlt={class:"flex flex-row"},qlt={class:"flex flex-row"},Ylt=["value"],$lt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Wlt={class:"flex flex-row"},Klt={class:"flex flex-row"},jlt=["value"],Qlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xlt={class:"flex flex-row"},Zlt=["value"],Jlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ect={class:"flex flex-row"},tct=["value"],nct={class:"flex flex-row"},sct=["value"],rct={class:"flex flex-row"},ict={class:"flex flex-row"},oct={class:"flex flex-row"},act={class:"flex flex-row"},lct={class:"flex flex-row"},cct={class:"flex flex-row"},dct={class:"flex flex-row"},uct={class:"flex flex-row"},pct={class:"flex flex-row"},fct={class:"flex flex-row"},_ct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},mct={class:"flex flex-row"},hct={class:"flex flex-row"},gct={class:"flex flex-row"},bct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},yct={class:"flex flex-row"},vct={class:"flex flex-row"},Ect={class:"flex flex-row"},Sct={class:"flex flex-row"},Tct={class:"flex flex-row"},xct=["value"],Cct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wct={class:"flex flex-row"},Rct={class:"flex flex-row"},Act={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Mct={class:"flex flex-row"},Nct={class:"flex flex-row"},Oct={class:"flex flex-row"},Ict={class:"flex flex-row"},kct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Dct={class:"flex flex-row"},Lct={class:"flex flex-row"},Pct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fct={class:"flex flex-row"},Uct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Bct={class:"flex flex-row"},Gct={class:"flex flex-row"},Vct={class:"flex flex-row"},zct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hct={class:"flex flex-row"},qct={class:"flex flex-row"},Yct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},$ct={class:"flex flex-row"},Wct={class:"flex flex-row"},Kct=["value"],jct={class:"flex flex-row"},Qct={class:"flex flex-row"},Xct={class:"flex flex-row"},Zct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Jct={class:"flex flex-row"},edt={class:"flex flex-row"},tdt={class:"flex flex-row"},ndt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},sdt={class:"flex flex-row"},rdt={class:"flex flex-row"},idt={class:"flex flex-row"},odt={class:"flex flex-col align-bottom"},adt={class:"relative"},ldt={class:"absolute right-0"},cdt={class:"flex flex-row"},ddt={class:"flex flex-row"},udt={class:"flex flex-row"},pdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fdt={class:"flex flex-row"},_dt={class:"flex flex-row"},mdt={class:"flex flex-row"},hdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},gdt={class:"flex flex-row"},bdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ydt={class:"flex flex-row"},vdt={class:"flex flex-row"},Edt={class:"flex flex-row"},Sdt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Tdt={class:"flex flex-row p-3"},xdt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Cdt={key:1,class:"mr-2"},wdt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Rdt={class:"flex gap-1 items-center"},Adt=["src"],Mdt={class:"font-bold font-large text-lg line-clamp-1"},Ndt={key:0,class:"mb-2"},Odt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Idt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},kdt={class:"flex flex-row p-3"},Ddt={class:"flex flex-row items-center"},Ldt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pdt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Fdt={key:2,class:"mr-2"},Udt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Bdt={class:"flex gap-1 items-center"},Gdt=["src"],Vdt={class:"font-bold font-large text-lg line-clamp-1"},zdt={class:"mx-2 mb-4"},Hdt={class:"relative"},qdt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Ydt={key:0},$dt={key:1},Wdt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Kdt={key:1,class:"mb-2"},jdt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Qdt={class:"mb-2"},Xdt={class:"p-2"},Zdt={class:"mb-3"},Jdt={key:0},eut={class:"mb-3"},tut={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},nut={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},sut={class:"w-full p-2"},rut={class:"flex justify-between mb-1"},iut={class:"text-sm font-medium text-blue-700 dark:text-white"},out=["title"],aut={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},lut={class:"flex justify-between mb-1"},cut={class:"text-base font-medium text-blue-700 dark:text-white"},dut={class:"text-sm font-medium text-blue-700 dark:text-white"},uut={class:"flex flex-grow"},put={class:"flex flex-row flex-grow gap-3"},fut={class:"p-2 text-center grow"},_ut={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},mut={class:"flex flex-row p-3 items-center"},hut={key:0,class:"mr-2"},gut={class:"mr-2 font-bold font-large text-lg line-clamp-1"},but={key:1,class:"mr-2"},yut={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},vut={key:0,class:"flex -space-x-4 items-center"},Eut={class:"group items-center flex flex-row"},Sut=["onClick"],Tut=["src","title"],xut=["onClick"],Cut={class:"mx-2 mb-4"},wut={class:"relative"},Rut={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Aut={key:0},Mut={key:1},Nut={key:0,class:"mx-2 mb-4"},Out={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iut=["selected"],kut={key:0,class:"mb-2"},Dut={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Lut={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Put={class:"flex flex-row"},Fut={class:"m-2"},Uut={class:"flex flex-row gap-2 items-center"},But={class:"m-2"},Gut={class:"m-2"},Vut={class:"flex flex-col align-bottom"},zut={class:"relative"},Hut={class:"absolute right-0"},qut={class:"m-2"},Yut={class:"flex flex-col align-bottom"},$ut={class:"relative"},Wut={class:"absolute right-0"},Kut={class:"m-2"},jut={class:"flex flex-col align-bottom"},Qut={class:"relative"},Xut={class:"absolute right-0"},Zut={class:"m-2"},Jut={class:"flex flex-col align-bottom"},ept={class:"relative"},tpt={class:"absolute right-0"},npt={class:"m-2"},spt={class:"flex flex-col align-bottom"},rpt={class:"relative"},ipt={class:"absolute right-0"},opt={class:"m-2"},apt={class:"flex flex-col align-bottom"},lpt={class:"relative"},cpt={class:"absolute right-0"};function dpt(n,e,t,s,r,i){const o=Je("DictManager"),a=Je("Card"),c=Je("StringListManager"),d=Je("BindingEntry"),u=Je("RadioOptions"),_=Je("model-entry"),m=Je("personality-entry"),h=Je("AddModelDialog"),g=Je("ChoiceDialog");return T(),x(Fe,null,[l("div",pit,[l("div",fit,[r.showConfirmation?(T(),x("div",_it,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=$(f=>r.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=$(f=>i.save_configuration(),["stop"]))},e[472]||(e[472]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),r.showConfirmation?B("",!0):(T(),x("div",mit,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>i.reset_configuration())},e[473]||(e[473]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=$(f=>r.all_collapsed=!r.all_collapsed,["stop"]))},e[474]||(e[474]=[l("i",{"data-feather":"list"},null,-1)]))])),l("div",hit,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=f=>i.api_get_req("clear_uploads").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>i.api_post_req("restart_program").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),r.has_updates?(T(),x("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>i.api_post_req("update_software").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[l("i",{"data-feather":"arrow-up-circle"},null,-1),l("i",{"data-feather":"alert-circle"},null,-1)]))):B("",!0),l("div",git,[r.settingsChanged?(T(),x("div",bit,[r.isLoading?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=$(f=>i.applyConfiguration(),["stop"]))},e[478]||(e[478]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),l("i",{"data-feather":"check"})],-1)]))),r.isLoading?B("",!0):(T(),x("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=$(f=>i.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),l("i",{"data-feather":"x"})],-1)])))])):B("",!0),r.isLoading?(T(),x("div",yit,[l("p",null,Y(r.loading_text),1),e[480]||(e[480]=l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[481]||(e[481]=l("span",{class:"sr-only"},"Loading...",-1))])):B("",!0)])])]),l("div",{class:Le(r.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",vit,[l("div",Eit,[l("button",{onClick:e[9]||(e[9]=$(f=>r.sc_collapsed=!r.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[482]||(e[482]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.sc_collapsed]]),k(l("div",null,e[483]||(e[483]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.sc_collapsed]]),e[486]||(e[486]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=l("div",{class:"mr-2"},"|",-1)),l("div",Sit,[l("div",Tit,[l("div",null,[i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length==1?(T(),x("div",xit,[(T(!0),x(Fe,null,We(i.vramUsage.gpus,f=>(T(),x("div",{class:"flex gap-2 items-center",key:f},[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Cit),l("p",wit,[l("div",null,Y(i.computedFileSize(f.used_vram))+" / "+Y(i.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%) ",1)])]))),128))])):B("",!0),i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length>1?(T(),x("div",Rit,[l("div",Ait,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Mit),l("p",Nit,[l("div",null,Y(i.vramUsage.gpus.length)+"x ",1)])])])):B("",!0)]),e[484]||(e[484]=l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Oit,[l("div",null,Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Iit,[l("div",null,Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Le([{hidden:r.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",kit,[e[490]||(e[490]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[l("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),Ze(" CPU Ram usage: ")],-1)),l("div",Dit,[l("div",null,[e[488]||(e[488]=l("b",null,"Avaliable ram: ",-1)),Ze(Y(i.ram_available_space),1)]),l("div",null,[e[489]||(e[489]=l("b",null,"Ram usage: ",-1)),Ze(" "+Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+")% ",1)])]),l("div",Lit,[l("div",Pit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.ram_percent_usage+"%;")},null,4)])])]),l("div",Fit,[e[493]||(e[493]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ze(" Disk usage: ")],-1)),l("div",Uit,[l("div",null,[e[491]||(e[491]=l("b",null,"Avaliable disk space: ",-1)),Ze(Y(i.disk_available_space),1)]),l("div",null,[e[492]||(e[492]=l("b",null,"Disk usage: ",-1)),Ze(" "+Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])]),l("div",Bit,[l("div",Git,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.disk_percent_usage+"%;")},null,4)])])]),(T(!0),x(Fe,null,We(i.vramUsage.gpus,f=>(T(),x("div",{class:"mb-2",key:f},[l("label",Vit,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,zit),e[494]||(e[494]=Ze(" GPU usage: "))]),l("div",Hit,[l("div",null,[e[495]||(e[495]=l("b",null,"Model: ",-1)),Ze(Y(f.gpu_model),1)]),l("div",null,[e[496]||(e[496]=l("b",null,"Avaliable vram: ",-1)),Ze(Y(this.computedFileSize(f.available_space)),1)]),l("div",null,[e[497]||(e[497]=l("b",null,"GPU usage: ",-1)),Ze(" "+Y(this.computedFileSize(f.used_vram))+" / "+Y(this.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%)",1)])]),l("div",qit,[l("div",Yit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",$it,[l("div",Wit,[l("button",{onClick:e[10]||(e[10]=$(f=>r.smartrouterconf_collapsed=!r.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[498]||(e[498]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.smartrouterconf_collapsed]]),k(l("div",null,e[499]||(e[499]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.smartrouterconf_collapsed]]),e[500]||(e[500]=l("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),l("div",{class:Le([{hidden:r.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Kit,[z(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("div",jit,[l("div",Qit,[l("div",Xit,[e[501]||(e[501]=l("label",{for:"use_smart_routing",class:"text-sm font-bold w-64"},"Use Smart Routing:",-1)),k(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=f=>i.configFile.use_smart_routing=f),onChange:e[12]||(e[12]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_smart_routing]])]),l("div",Zit,[e[502]||(e[502]=l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold w-64"},"Restore model after smart routing:",-1)),k(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=f=>i.configFile.restore_model_after_smart_routing=f),onChange:e[14]||(e[14]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.restore_model_after_smart_routing]])]),l("div",Jit,[e[503]||(e[503]=l("label",{for:"smart_routing_router_model",class:"text-sm font-bold w-64"},"Router Model:",-1)),k(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=f=>i.configFile.smart_routing_router_model=f),onChange:e[16]||(e[16]=f=>r.settingsChanged=!0),class:"flex-grow mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.smart_routing_router_model]])]),l("div",eot,[e[504]||(e[504]=l("label",{for:"smart_routing_models_description",class:"text-sm font-bold w-64 mt-1"},"Models with description:",-1)),z(o,{modelValue:i.configFile.smart_routing_models_description,"onUpdate:modelValue":e[17]||(e[17]=f=>i.configFile.smart_routing_models_description=f),onChange:e[18]||(e[18]=f=>r.settingsChanged=!0),"key-name":"Model Path","value-name":"Model description",placeholder:"Enter model name",class:"flex-grow"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",tot,[l("div",not,[l("button",{onClick:e[19]||(e[19]=$(f=>r.mainconf_collapsed=!r.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[505]||(e[505]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.mainconf_collapsed]]),k(l("div",null,e[506]||(e[506]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.mainconf_collapsed]]),e[507]||(e[507]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),l("div",{class:Le([{hidden:r.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",sot,[z(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rot,[l("tr",null,[e[509]||(e[509]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),l("td",null,[l("label",iot,[l("img",{src:i.configFile.app_custom_logo!=null&&i.configFile.app_custom_logo!=""?"/user_infos/"+i.configFile.app_custom_logo:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,oot)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...f)=>i.uploadLogo&&i.uploadLogo(...f))},null,32)]),l("td",aot,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=$(f=>i.resetLogo(),["stop"]))},e[508]||(e[508]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[511]||(e[511]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),l("td",lot,[l("div",cot,[k(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=f=>i.configFile.hardware_mode=f),onChange:e[23]||(e[23]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[l("option",{value:"cpu"},"CPU",-1),l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),l("option",{value:"nvidia"},"NVIDIA",-1),l("option",{value:"amd-noavx"},"AMD (No AVX)",-1),l("option",{value:"amd"},"AMD",-1),l("option",{value:"apple-intel"},"Apple Intel",-1),l("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[Ot,i.configFile.hardware_mode]])])])]),l("tr",null,[e[512]||(e[512]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),l("td",dot,[k(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>i.configFile.discussion_db_name=f),onChange:e[25]||(e[25]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.discussion_db_name]])])]),l("tr",null,[e[513]||(e[513]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),l("td",null,[l("div",uot,[k(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=f=>i.configFile.copy_to_clipboard_add_all_details=f),onChange:e[27]||(e[27]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[e[514]||(e[514]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),l("td",null,[l("div",pot,[k(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=f=>i.configFile.auto_show_browser=f),onChange:e[29]||(e[29]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_show_browser]])])])]),l("tr",null,[e[515]||(e[515]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),l("td",null,[l("div",fot,[k(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=f=>i.configFile.debug=f),onChange:e[31]||(e[31]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug]])])])]),l("tr",null,[e[516]||(e[516]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),l("td",null,[l("div",_ot,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[33]||(e[33]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[517]||(e[517]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),l("td",null,[l("div",mot,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[35]||(e[35]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[518]||(e[518]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),l("td",null,[l("div",hot,[k(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>i.configFile.debug_show_chunks=f),onChange:e[37]||(e[37]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_chunks]])])])]),l("tr",null,[e[519]||(e[519]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),l("td",null,[l("div",got,[k(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>i.configFile.debug_log_file_path=f),onChange:e[39]||(e[39]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.debug_log_file_path]])])])]),l("tr",null,[e[520]||(e[520]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),l("td",null,[l("div",bot,[k(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>i.configFile.show_news_panel=f),onChange:e[41]||(e[41]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.show_news_panel]])])])]),l("tr",null,[e[521]||(e[521]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),l("td",null,[l("div",yot,[k(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>i.configFile.auto_save=f),onChange:e[43]||(e[43]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_save]])])])]),l("tr",null,[e[522]||(e[522]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),l("td",null,[l("div",vot,[k(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>i.configFile.auto_update=f),onChange:e[45]||(e[45]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_update]])])])]),l("tr",null,[e[523]||(e[523]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),l("td",null,[l("div",Eot,[k(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>i.configFile.auto_title=f),onChange:e[47]||(e[47]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_title]])])])])])]),_:1}),z(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Sot,[l("tr",null,[e[525]||(e[525]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[l("select",{onChange:e[48]||(e[48]=(...f)=>i.handleTemplateSelection&&i.handleTemplateSelection(...f))},e[524]||(e[524]=[l("option",{value:"lollms"},"Lollms communication template",-1),l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),l("option",{value:"bare"},"Bare, useful when in chat mode",-1),l("option",{value:"llama3"},"LLama3 communication template",-1),l("option",{value:"mistral"},"Mistral communication template",-1),l("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),l("tr",null,[e[526]||(e[526]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=f=>i.configFile.start_header_id_template=f),onChange:e[50]||(e[50]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_header_id_template]])])]),l("tr",null,[e[527]||(e[527]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=f=>i.configFile.end_header_id_template=f),onChange:e[52]||(e[52]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_header_id_template]])])]),l("tr",null,[e[528]||(e[528]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=f=>i.configFile.start_user_header_id_template=f),onChange:e[54]||(e[54]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_user_header_id_template]])])]),l("tr",null,[e[529]||(e[529]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=f=>i.configFile.end_user_header_id_template=f),onChange:e[56]||(e[56]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_header_id_template]])])]),l("tr",null,[e[530]||(e[530]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=f=>i.configFile.end_user_message_id_template=f),onChange:e[58]||(e[58]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_message_id_template]])])]),l("tr",null,[e[531]||(e[531]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=f=>i.configFile.start_ai_header_id_template=f),onChange:e[60]||(e[60]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_ai_header_id_template]])])]),l("tr",null,[e[532]||(e[532]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=f=>i.configFile.end_ai_header_id_template=f),onChange:e[62]||(e[62]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_header_id_template]])])]),l("tr",null,[e[533]||(e[533]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=f=>i.configFile.end_ai_message_id_template=f),onChange:e[64]||(e[64]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_message_id_template]])])]),l("tr",null,[e[534]||(e[534]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),l("td",null,[k(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=f=>i.configFile.separator_template=f),onChange:e[66]||(e[66]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.separator_template]])])]),l("tr",null,[e[535]||(e[535]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=f=>i.configFile.system_message_template=f),onChange:e[68]||(e[68]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.system_message_template]])])]),l("tr",null,[e[536]||(e[536]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),l("td",null,[l("div",{innerHTML:i.full_template},null,8,Tot)])]),l("tr",null,[e[537]||(e[537]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),l("td",xot,[k(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=f=>i.configFile.use_continue_message=f),onChange:e[70]||(e[70]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_continue_message]])])])])]),_:1}),z(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cot,[l("tr",null,[e[538]||(e[538]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),l("td",wot,[k(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=f=>i.configFile.user_name=f),onChange:e[72]||(e[72]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.user_name]])])]),l("tr",null,[e[539]||(e[539]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),l("td",Rot,[k(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=f=>i.configFile.user_description=f),onChange:e[74]||(e[74]=f=>r.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.user_description]])])]),l("tr",null,[e[540]||(e[540]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),l("td",Aot,[k(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=f=>i.configFile.use_user_informations_in_discussion=f),onChange:e[76]||(e[76]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[e[541]||(e[541]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),l("td",Mot,[k(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=f=>i.configFile.use_model_name_in_discussions=f),onChange:e[78]||(e[78]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_model_name_in_discussions]])])]),l("tr",null,[e[543]||(e[543]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),l("td",null,[l("label",Not,[l("img",{src:i.configFile.user_avatar!=null&&i.configFile.user_avatar!=""?"/user_infos/"+i.configFile.user_avatar:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Oot)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...f)=>i.uploadAvatar&&i.uploadAvatar(...f))},null,32)]),l("td",Iot,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=$(f=>i.resetAvatar(),["stop"]))},e[542]||(e[542]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[544]||(e[544]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),l("td",null,[l("div",kot,[k(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=f=>i.configFile.use_user_name_in_discussions=f),onChange:e[82]||(e[82]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[e[545]||(e[545]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Dot,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=f=>i.configFile.max_n_predict=f),onChange:e[84]||(e[84]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])]),l("tr",null,[e[546]||(e[546]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Lot,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=f=>i.configFile.max_n_predict=f),onChange:e[86]||(e[86]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])])])]),_:1}),z(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pot,[l("tr",null,[e[547]||(e[547]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),l("td",Fot,[k(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=f=>i.configFile.turn_on_code_execution=f),onChange:e[88]||(e[88]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_execution]])])]),l("tr",null,[e[548]||(e[548]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),l("td",Uot,[k(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=f=>i.configFile.turn_on_code_validation=f),onChange:e[90]||(e[90]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_validation]])])]),l("tr",null,[e[549]||(e[549]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),l("td",Bot,[k(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=f=>i.configFile.turn_on_setting_update_validation=f),onChange:e[92]||(e[92]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[e[550]||(e[550]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),l("td",Got,[k(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=f=>i.configFile.turn_on_open_file_validation=f),onChange:e[94]||(e[94]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_open_file_validation]])])]),l("tr",null,[e[551]||(e[551]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),l("td",Vot,[k(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=f=>i.configFile.turn_on_send_file_validation=f),onChange:e[96]||(e[96]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_send_file_validation]])])])])]),_:1}),z(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zot,[l("tr",null,[e[552]||(e[552]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),l("td",null,[l("div",Hot,[k(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=f=>i.configFile.activate_skills_lib=f),onChange:e[98]||(e[98]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_skills_lib]])])])]),l("tr",null,[e[553]||(e[553]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),l("td",qot,[k(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>i.configFile.skills_lib_database_name=f),onChange:e[100]||(e[100]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.skills_lib_database_name]])])])])]),_:1}),z(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Yot,[l("tr",null,[e[554]||(e[554]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),l("td",null,[l("div",$ot,[k(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>i.configFile.pdf_latex_path=f),onChange:e[102]||(e[102]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.pdf_latex_path]])])])])])]),_:1}),z(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wot,[l("tr",null,[e[555]||(e[555]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),l("td",null,[l("div",Kot,[k(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>i.configFile.positive_boost=f),onChange:e[104]||(e[104]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.positive_boost]])])])]),l("tr",null,[e[556]||(e[556]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),l("td",null,[l("div",jot,[k(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>i.configFile.negative_boost=f),onChange:e[106]||(e[106]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_boost]])])])]),l("tr",null,[e[557]||(e[557]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),l("td",null,[l("div",Qot,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>i.configFile.fun_mode=f),onChange:e[108]||(e[108]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",Xot,[l("div",Zot,[l("button",{onClick:e[109]||(e[109]=$(f=>r.data_conf_collapsed=!r.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[558]||(e[558]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.data_conf_collapsed]]),k(l("div",null,e[559]||(e[559]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.data_conf_collapsed]]),e[560]||(e[560]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),l("div",{class:Le([{hidden:r.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Jot,[l("tr",null,[e[561]||(e[561]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),l("td",eat,[(T(!0),x(Fe,null,We(i.configFile.rag_databases,(f,y)=>(T(),x("div",{key:y,class:"flex items-center mb-2"},[k(l("input",{type:"text","onUpdate:modelValue":b=>i.configFile.rag_databases[y]=b,onChange:e[110]||(e[110]=b=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,tat),[[ae,i.configFile.rag_databases[y]]]),l("button",{onClick:b=>i.vectorize_folder(y),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,nat),l("button",{onClick:b=>i.select_folder(y),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,sat),l("button",{onClick:b=>i.removeDataSource(y),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,rat)]))),128)),l("button",{onClick:e[111]||(e[111]=(...f)=>i.addDataSource&&i.addDataSource(...f)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[e[563]||(e[563]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=f=>i.configFile.rag_vectorizer=f),onChange:e[113]||(e[113]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[l("option",{value:"semantic"},"Semantic Vectorizer",-1),l("option",{value:"tfidf"},"TFIDF Vectorizer",-1),l("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[Ot,i.configFile.rag_vectorizer]])])]),l("tr",null,[e[564]||(e[564]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=f=>i.configFile.rag_vectorizer_model=f),onChange:e[115]||(e[115]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:i.configFile.rag_vectorizer==="tfidf"},[i.configFile.rag_vectorizer==="semantic"?(T(),x("option",oat,"sentence-transformers/bert-base-nli-mean-tokens")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",aat,"bert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",lat,"bert-base-multilingual-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",cat,"bert-large-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",dat,"bert-large-uncased-whole-word-masking-finetuned-squad")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",uat,"distilbert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",pat,"roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",fat,"roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",_at,"xlm-roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",mat,"xlm-roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",hat,"albert-base-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",gat,"albert-large-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",bat,"albert-xlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",yat,"albert-xxlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",vat,"sentence-transformers/all-MiniLM-L6-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Eat,"sentence-transformers/all-MiniLM-L12-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Sat,"sentence-transformers/all-distilroberta-v1")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Tat,"sentence-transformers/all-mpnet-base-v2")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",xat,"text-embedding-ada-002")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",Cat,"text-embedding-babbage-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",wat,"text-embedding-curie-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",Rat,"text-embedding-davinci-001")):B("",!0),i.configFile.rag_vectorizer==="tfidf"?(T(),x("option",Aat,"No models available for TFIDF")):B("",!0)],40,iat),[[Ot,i.configFile.rag_vectorizer_model]])])]),l("tr",null,[e[565]||(e[565]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),l("td",null,[l("div",Mat,[k(l("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=f=>i.configFile.rag_vectorizer_openai_key=f),onChange:e[117]||(e[117]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_vectorizer_openai_key]])])])]),l("tr",null,[e[566]||(e[566]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),l("td",null,[k(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=f=>i.configFile.rag_chunk_size=f),onChange:e[119]||(e[119]=f=>r.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[120]||(e[120]=f=>i.configFile.rag_chunk_size=f),type:"number",onChange:e[121]||(e[121]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_chunk_size]])])]),l("tr",null,[e[567]||(e[567]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),l("td",null,[k(l("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=f=>i.configFile.rag_overlap=f),onChange:e[123]||(e[123]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_overlap]]),k(l("input",{"onUpdate:modelValue":e[124]||(e[124]=f=>i.configFile.rag_overlap=f),type:"number",onChange:e[125]||(e[125]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_overlap]])])]),l("tr",null,[e[568]||(e[568]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),l("td",null,[k(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=f=>i.configFile.rag_n_chunks=f),onChange:e[127]||(e[127]=f=>r.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_n_chunks]]),k(l("input",{"onUpdate:modelValue":e[128]||(e[128]=f=>i.configFile.rag_n_chunks=f),type:"number",onChange:e[129]||(e[129]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_n_chunks]])])]),l("tr",null,[e[569]||(e[569]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[130]||(e[130]=f=>i.configFile.rag_clean_chunks=f),type:"checkbox",onChange:e[131]||(e[131]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_clean_chunks]])])]),l("tr",null,[e[570]||(e[570]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[132]||(e[132]=f=>i.configFile.rag_follow_subfolders=f),type:"checkbox",onChange:e[133]||(e[133]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_follow_subfolders]])])]),l("tr",null,[e[571]||(e[571]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[134]||(e[134]=f=>i.configFile.rag_check_new_files_at_startup=f),type:"checkbox",onChange:e[135]||(e[135]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[e[572]||(e[572]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[136]||(e[136]=f=>i.configFile.rag_preprocess_chunks=f),type:"checkbox",onChange:e[137]||(e[137]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_preprocess_chunks]])])]),l("tr",null,[e[573]||(e[573]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[138]||(e[138]=f=>i.configFile.rag_activate_multi_hops=f),type:"checkbox",onChange:e[139]||(e[139]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_activate_multi_hops]])])]),l("tr",null,[e[574]||(e[574]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[140]||(e[140]=f=>i.configFile.contextual_summary=f),type:"checkbox",onChange:e[141]||(e[141]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.contextual_summary]])])]),l("tr",null,[e[575]||(e[575]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[142]||(e[142]=f=>i.configFile.rag_deactivate=f),type:"checkbox",onChange:e[143]||(e[143]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_deactivate]])])])])]),_:1}),z(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Nat,[l("tr",null,[e[576]||(e[576]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),l("td",null,[l("div",Oat,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[145]||(e[145]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[577]||(e[577]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),l("td",null,[l("div",Iat,[k(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>i.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[147]||(e[147]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[e[578]||(e[578]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),l("td",null,[l("div",kat,[k(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=f=>i.configFile.data_vectorization_build_keys_words=f),onChange:e[149]||(e[149]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[e[579]||(e[579]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),l("td",null,[l("div",Dat,[k(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=f=>i.configFile.data_vectorization_force_first_chunk=f),onChange:e[151]||(e[151]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[e[580]||(e[580]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),l("td",null,[l("div",Lat,[k(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=f=>i.configFile.data_vectorization_put_chunk_informations_into_context=f),onChange:e[153]||(e[153]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[e[582]||(e[582]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),l("td",null,[k(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=f=>i.configFile.data_vectorization_method=f),onChange:e[155]||(e[155]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),l("option",{value:"model_embedding"},"Model Embedding",-1),l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[Ot,i.configFile.data_vectorization_method]])])]),l("tr",null,[e[583]||(e[583]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),l("td",Pat,[k(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=f=>i.configFile.data_vectorization_sentense_transformer_model=f),onChange:e[157]||(e[157]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[e[585]||(e[585]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),l("td",null,[k(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=f=>i.configFile.data_visualization_method=f),onChange:e[159]||(e[159]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[l("option",{value:"PCA"},"PCA",-1),l("option",{value:"TSNE"},"TSNE",-1)]),544),[[Ot,i.configFile.data_visualization_method]])])]),l("tr",null,[e[586]||(e[586]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),l("td",null,[l("div",Fat,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[161]||(e[161]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[587]||(e[587]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=f=>i.configFile.data_vectorization_chunk_size=f),onChange:e[163]||(e[163]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[164]||(e[164]=f=>i.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[165]||(e[165]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[e[588]||(e[588]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=f=>i.configFile.data_vectorization_overlap_size=f),onChange:e[167]||(e[167]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[168]||(e[168]=f=>i.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[169]||(e[169]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[e[589]||(e[589]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=f=>i.configFile.data_vectorization_nb_chunks=f),onChange:e[171]||(e[171]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[172]||(e[172]=f=>i.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[173]||(e[173]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",Uat,[l("div",Bat,[l("button",{onClick:e[174]||(e[174]=$(f=>r.internet_conf_collapsed=!r.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[590]||(e[590]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.internet_conf_collapsed]]),k(l("div",null,e[591]||(e[591]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.internet_conf_collapsed]]),e[592]||(e[592]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),l("div",{class:Le([{hidden:r.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Gat,[l("tr",null,[e[593]||(e[593]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),l("td",null,[l("div",Vat,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>i.configFile.activate_internet_search=f),onChange:e[176]||(e[176]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_search]])])])]),l("tr",null,[e[594]||(e[594]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),l("td",null,[l("div",zat,[k(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=f=>i.configFile.activate_internet_pages_judgement=f),onChange:e[178]||(e[178]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[e[595]||(e[595]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),l("td",null,[l("div",Hat,[k(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=f=>i.configFile.internet_quick_search=f),onChange:e[180]||(e[180]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_quick_search]])])])]),l("tr",null,[e[596]||(e[596]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),l("td",null,[l("div",qat,[k(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=f=>i.configFile.internet_activate_search_decision=f),onChange:e[182]||(e[182]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_activate_search_decision]])])])]),l("tr",null,[e[597]||(e[597]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),l("td",null,[l("div",Yat,[k(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=f=>i.configFile.internet_vectorization_chunk_size=f),onChange:e[184]||(e[184]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[185]||(e[185]=f=>i.configFile.internet_vectorization_chunk_size=f),type:"number",onChange:e[186]||(e[186]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[e[598]||(e[598]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),l("td",null,[l("div",$at,[k(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=f=>i.configFile.internet_vectorization_overlap_size=f),onChange:e[188]||(e[188]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[189]||(e[189]=f=>i.configFile.internet_vectorization_overlap_size=f),type:"number",onChange:e[190]||(e[190]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[e[599]||(e[599]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),l("td",null,[l("div",Wat,[k(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=f=>i.configFile.internet_vectorization_nb_chunks=f),onChange:e[192]||(e[192]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[193]||(e[193]=f=>i.configFile.internet_vectorization_nb_chunks=f),type:"number",onChange:e[194]||(e[194]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[e[600]||(e[600]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),l("td",null,[l("div",Kat,[k(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=f=>i.configFile.internet_nb_search_pages=f),onChange:e[196]||(e[196]=f=>r.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_nb_search_pages]]),k(l("input",{"onUpdate:modelValue":e[197]||(e[197]=f=>i.configFile.internet_nb_search_pages=f),type:"number",onChange:e[198]||(e[198]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",jat,[l("div",Qat,[l("button",{onClick:e[199]||(e[199]=$(f=>r.servers_conf_collapsed=!r.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[601]||(e[601]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.servers_conf_collapsed]]),k(l("div",null,e[602]||(e[602]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.servers_conf_collapsed]]),e[603]||(e[603]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),l("div",{class:Le([{hidden:r.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Xat,[l("tr",null,[e[605]||(e[605]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),l("td",Zat,[k(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=f=>i.configFile.active_tts_service=f),onChange:e[201]||(e[201]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[l("option",{value:"None"},"None",-1),l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),l("option",{value:"xtts"},"XTTS",-1),l("option",{value:"parler-tts"},"Parler-TTS",-1),l("option",{value:"openai_tts"},"Open AI TTS",-1),l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),l("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[Ot,i.configFile.active_tts_service]])])]),l("tr",null,[e[607]||(e[607]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),l("td",Jat,[k(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=f=>i.configFile.active_stt_service=f),onChange:e[203]||(e[203]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[l("option",{value:"None"},"None",-1),l("option",{value:"whisper"},"Whisper",-1),l("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[Ot,i.configFile.active_stt_service]])])]),e[614]||(e[614]=l("tr",null,null,-1)),l("tr",null,[e[609]||(e[609]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),l("td",elt,[k(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=f=>i.configFile.active_tti_service=f),onChange:e[205]||(e[205]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[l("option",{value:"None"},"None",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"diffusers_client"},"Diffusers Client",-1),l("option",{value:"autosd"},"AUTO1111's SD",-1),l("option",{value:"dall-e"},"Open AI DALL-E",-1),l("option",{value:"midjourney"},"Midjourney",-1),l("option",{value:"comfyui"},"Comfyui",-1),l("option",{value:"fooocus"},"Fooocus",-1)]),544),[[Ot,i.configFile.active_tti_service]])])]),l("tr",null,[e[611]||(e[611]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),l("td",tlt,[k(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=f=>i.configFile.active_ttm_service=f),onChange:e[207]||(e[207]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[l("option",{value:"None"},"None",-1),l("option",{value:"musicgen"},"Music Gen",-1)]),544),[[Ot,i.configFile.active_ttm_service]])])]),l("tr",null,[e[613]||(e[613]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),l("td",nlt,[k(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=f=>i.configFile.active_ttv_service=f),onChange:e[209]||(e[209]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[l("option",{value:"None"},"None",-1),l("option",{value:"cog_video_x"},"Cog Video X",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"lumalab"},"Lumalab",-1)]),544),[[Ot,i.configFile.active_ttv_service]])])])])]),_:1}),z(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",slt,[l("tr",null,[e[615]||(e[615]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),l("td",null,[l("div",rlt,[k(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=f=>i.configFile.use_negative_prompt=f),onChange:e[211]||(e[211]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_negative_prompt]])])])]),l("tr",null,[e[616]||(e[616]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),l("td",null,[l("div",ilt,[k(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=f=>i.configFile.use_ai_generated_negative_prompt=f),onChange:e[213]||(e[213]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[e[617]||(e[617]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),l("td",null,[l("div",olt,[k(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=f=>i.configFile.negative_prompt_generation_prompt=f),onChange:e[215]||(e[215]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[e[618]||(e[618]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),l("td",null,[l("div",alt,[k(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=f=>i.configFile.default_negative_prompt=f),onChange:e[217]||(e[217]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.default_negative_prompt]])])])])])]),_:1}),z(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",llt,[l("tr",null,[e[619]||(e[619]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),l("td",clt,[k(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=f=>i.configFile.stt_listening_threshold=f),onChange:e[219]||(e[219]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_listening_threshold]])])]),l("tr",null,[e[620]||(e[620]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),l("td",dlt,[k(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=f=>i.configFile.stt_silence_duration=f),onChange:e[221]||(e[221]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_silence_duration]])])]),l("tr",null,[e[621]||(e[621]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),l("td",ult,[k(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=f=>i.configFile.stt_sound_threshold_percentage=f),onChange:e[223]||(e[223]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[e[622]||(e[622]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),l("td",plt,[k(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=f=>i.configFile.stt_gain=f),onChange:e[225]||(e[225]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_gain]])])]),l("tr",null,[e[623]||(e[623]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),l("td",flt,[k(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=f=>i.configFile.stt_rate=f),onChange:e[227]||(e[227]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_rate]])])]),l("tr",null,[e[624]||(e[624]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),l("td",_lt,[k(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=f=>i.configFile.stt_channels=f),onChange:e[229]||(e[229]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_channels]])])]),l("tr",null,[e[625]||(e[625]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),l("td",mlt,[k(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=f=>i.configFile.stt_buffer_size=f),onChange:e[231]||(e[231]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_buffer_size]])])]),l("tr",null,[e[626]||(e[626]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),l("td",null,[l("div",hlt,[k(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=f=>i.configFile.stt_activate_word_detection=f),onChange:e[233]||(e[233]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.stt_activate_word_detection]])])])]),l("tr",null,[e[627]||(e[627]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),l("td",null,[l("div",glt,[k(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=f=>i.configFile.stt_word_detection_file=f),onChange:e[235]||(e[235]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_word_detection_file]])])])])])]),_:1}),z(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",blt,[l("tr",null,[e[628]||(e[628]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),l("td",ylt,[k(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=f=>i.configFile.stt_input_device=f),onChange:e[237]||(e[237]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.snd_input_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_input_devices_indexes[y]},Y(f),9,vlt))),128))],544),[[Ot,i.configFile.stt_input_device]])])]),l("tr",null,[e[629]||(e[629]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),l("td",Elt,[k(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=f=>i.configFile.tts_output_device=f),onChange:e[239]||(e[239]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.snd_output_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_output_devices_indexes[y]},Y(f),9,Slt))),128))],544),[[Ot,i.configFile.tts_output_device]])])])])]),_:1}),z(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Tlt,[l("tr",null,[e[630]||(e[630]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),l("td",xlt,[k(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=f=>i.configFile.host=f),onChange:e[241]||(e[241]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.host]])])]),l("tr",null,[e[631]||(e[631]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),l("td",Clt,[z(c,{modelValue:i.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=f=>i.configFile.lollms_access_keys=f),onChange:e[243]||(e[243]=f=>r.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[e[632]||(e[632]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),l("td",wlt,[k(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=f=>i.configFile.port=f),onChange:e[245]||(e[245]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.port]])])]),l("tr",null,[e[633]||(e[633]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),l("td",Rlt,[k(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=f=>i.configFile.headless_server_mode=f),onChange:e[247]||(e[247]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.headless_server_mode]])])]),l("tr",null,[e[634]||(e[634]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),l("td",Alt,[k(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=f=>i.configFile.activate_lollms_server=f),onChange:e[249]||(e[249]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_server]])])]),l("tr",null,[e[635]||(e[635]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),l("td",Mlt,[k(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=f=>i.configFile.activate_lollms_rag_server=f),onChange:e[251]||(e[251]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_rag_server]])])]),l("tr",null,[e[636]||(e[636]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),l("td",Nlt,[k(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=f=>i.configFile.activate_lollms_tts_server=f),onChange:e[253]||(e[253]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tts_server]])])]),l("tr",null,[e[637]||(e[637]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),l("td",Olt,[k(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=f=>i.configFile.activate_lollms_stt_server=f),onChange:e[255]||(e[255]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_stt_server]])])]),l("tr",null,[e[638]||(e[638]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),l("td",Ilt,[k(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=f=>i.configFile.activate_lollms_tti_server=f),onChange:e[257]||(e[257]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tti_server]])])]),l("tr",null,[e[639]||(e[639]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),l("td",klt,[k(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=f=>i.configFile.activate_lollms_itt_server=f),onChange:e[259]||(e[259]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_itt_server]])])]),l("tr",null,[e[640]||(e[640]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),l("td",Dlt,[k(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=f=>i.configFile.activate_lollms_ttm_server=f),onChange:e[261]||(e[261]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[e[641]||(e[641]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),l("td",Llt,[k(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=f=>i.configFile.activate_ollama_emulator=f),onChange:e[263]||(e[263]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_ollama_emulator]])])]),l("tr",null,[e[642]||(e[642]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),l("td",Plt,[k(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=f=>i.configFile.activate_openai_emulator=f),onChange:e[265]||(e[265]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_openai_emulator]])])]),l("tr",null,[e[643]||(e[643]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),l("td",Flt,[k(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=f=>i.configFile.activate_mistralai_emulator=f),onChange:e[267]||(e[267]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_mistralai_emulator]])])])])]),_:1}),z(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ult,[l("tr",null,[e[644]||(e[644]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),l("td",null,[l("div",Blt,[k(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=f=>i.configFile.activate_audio_infos=f),onChange:e[269]||(e[269]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_audio_infos]])])])]),l("tr",null,[e[645]||(e[645]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),l("td",null,[l("div",Glt,[k(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=f=>i.configFile.audio_auto_send_input=f),onChange:e[271]||(e[271]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.audio_auto_send_input]])])])]),l("tr",null,[e[646]||(e[646]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),l("td",null,[k(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=f=>i.configFile.audio_silenceTimer=f),onChange:e[273]||(e[273]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_silenceTimer]]),k(l("input",{"onUpdate:modelValue":e[274]||(e[274]=f=>i.configFile.audio_silenceTimer=f),onChange:e[275]||(e[275]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_silenceTimer]])])]),l("tr",null,[e[647]||(e[647]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),l("td",null,[k(l("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=f=>i.configFile.audio_in_language=f),onChange:e[277]||(e[277]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.audioLanguages,f=>(T(),x("option",{key:f.code,value:f.code},Y(f.name),9,Vlt))),128))],544),[[Ot,i.configFile.audio_in_language]])])])])]),_:1}),z(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zlt,[l("tr",null,[e[648]||(e[648]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),l("td",null,[l("div",Hlt,[k(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=f=>i.configFile.whisper_activate=f),onChange:e[279]||(e[279]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.whisper_activate]])])])]),l("tr",null,[e[649]||(e[649]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...f)=>i.reinstallWhisperService&&i.reinstallWhisperService(...f))},"install whisper")])]),l("tr",null,[e[650]||(e[650]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),l("td",null,[l("div",qlt,[k(l("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=f=>i.configFile.whisper_model=f),onChange:e[282]||(e[282]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.whisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,Ylt))),128))],544),[[Ot,i.configFile.whisper_model]])])])])])]),_:1}),z(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",$lt,[l("tr",null,[e[651]||(e[651]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),l("td",null,[l("div",Wlt,[k(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=f=>i.configFile.openai_whisper_key=f),onChange:e[284]||(e[284]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_whisper_key]])])])]),l("tr",null,[e[652]||(e[652]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),l("td",null,[l("div",Klt,[k(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=f=>i.configFile.openai_whisper_model=f),onChange:e[286]||(e[286]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.openaiWhisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,jlt))),128))],544),[[Ot,i.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),z(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Qlt,[l("tr",null,[e[653]||(e[653]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),l("td",null,[l("div",Xlt,[k(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=f=>i.configFile.auto_speak=f),onChange:e[288]||(e[288]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_speak]])])])]),l("tr",null,[e[654]||(e[654]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),l("td",null,[k(l("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=f=>i.configFile.audio_pitch=f),onChange:e[290]||(e[290]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_pitch]]),k(l("input",{"onUpdate:modelValue":e[291]||(e[291]=f=>i.configFile.audio_pitch=f),onChange:e[292]||(e[292]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_pitch]])])]),l("tr",null,[e[655]||(e[655]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),l("td",null,[k(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=f=>i.configFile.audio_out_voice=f),onChange:e[294]||(e[294]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.audioVoices,f=>(T(),x("option",{key:f.name,value:f.name},Y(f.name),9,Zlt))),128))],544),[[Ot,i.configFile.audio_out_voice]])])])])]),_:1}),z(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Jlt,[l("tr",null,[e[656]||(e[656]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...f)=>i.reinstallXTTSService&&i.reinstallXTTSService(...f))},"install xtts service")])]),l("tr",null,[e[657]||(e[657]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("div",ect,[k(l("select",{"onUpdate:modelValue":e[296]||(e[296]=f=>i.xtts_current_language=f),onChange:e[297]||(e[297]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voice_languages,(f,y)=>(T(),x("option",{key:y,value:f},Y(y),9,tct))),128))],544),[[Ot,i.xtts_current_language]])])])]),l("tr",null,[e[658]||(e[658]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),l("td",null,[l("div",nct,[k(l("select",{"onUpdate:modelValue":e[298]||(e[298]=f=>i.xtts_current_voice=f),onChange:e[299]||(e[299]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voices,f=>(T(),x("option",{key:f,value:f},Y(f),9,sct))),128))],544),[[Ot,i.xtts_current_voice]])])])]),l("tr",null,[e[659]||(e[659]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),l("td",null,[l("div",rct,[k(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=f=>i.configFile.xtts_freq=f),onChange:e[301]||(e[301]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[e[660]||(e[660]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),l("td",null,[l("div",ict,[k(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=f=>i.configFile.auto_read=f),onChange:e[303]||(e[303]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_read]])])])]),l("tr",null,[e[661]||(e[661]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),l("td",null,[l("div",oct,[k(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=f=>i.configFile.xtts_stream_chunk_size=f),onChange:e[305]||(e[305]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[e[662]||(e[662]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),l("td",null,[l("div",act,[k(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=f=>i.configFile.xtts_temperature=f),onChange:e[307]||(e[307]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[e[663]||(e[663]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),l("td",null,[l("div",lct,[k(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=f=>i.configFile.xtts_length_penalty=f),onChange:e[309]||(e[309]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[664]||(e[664]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),l("td",null,[l("div",cct,[k(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=f=>i.configFile.xtts_repetition_penalty=f),onChange:e[311]||(e[311]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[665]||(e[665]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),l("td",null,[l("div",dct,[k(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=f=>i.configFile.xtts_top_k=f),onChange:e[313]||(e[313]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[e[666]||(e[666]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),l("td",null,[l("div",uct,[k(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=f=>i.configFile.xtts_top_p=f),onChange:e[315]||(e[315]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[e[667]||(e[667]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),l("td",null,[l("div",pct,[k(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=f=>i.configFile.xtts_speed=f),onChange:e[317]||(e[317]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[e[668]||(e[668]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),l("td",null,[l("div",fct,[k(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=f=>i.configFile.enable_text_splitting=f),onChange:e[319]||(e[319]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_text_splitting]])])])])])]),_:1}),z(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",_ct,[l("tr",null,[e[669]||(e[669]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),l("td",null,[l("div",mct,[k(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=f=>i.configFile.openai_tts_key=f),onChange:e[321]||(e[321]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_tts_key]])])])]),l("tr",null,[e[671]||(e[671]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),l("td",null,[l("div",hct,[k(l("select",{"onUpdate:modelValue":e[322]||(e[322]=f=>i.configFile.openai_tts_model=f),onChange:e[323]||(e[323]=f=>r.settingsChanged=!0)},e[670]||(e[670]=[l("option",null," tts-1 ",-1),l("option",null," tts-2 ",-1)]),544),[[Ot,i.configFile.openai_tts_model]])])])]),l("tr",null,[e[673]||(e[673]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),l("td",null,[l("div",gct,[k(l("select",{"onUpdate:modelValue":e[324]||(e[324]=f=>i.configFile.openai_tts_voice=f),onChange:e[325]||(e[325]=f=>r.settingsChanged=!0)},e[672]||(e[672]=[l("option",null," alloy ",-1),l("option",null," echo ",-1),l("option",null," fable ",-1),l("option",null," nova ",-1),l("option",null," shimmer ",-1)]),544),[[Ot,i.configFile.openai_tts_voice]])])])])])]),_:1}),z(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",bct,[l("tr",null,[e[674]||(e[674]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),l("td",null,[l("div",yct,[k(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=f=>i.configFile.elevenlabs_tts_key=f),onChange:e[327]||(e[327]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[e[675]||(e[675]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),l("td",null,[l("div",vct,[k(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=f=>i.configFile.elevenlabs_tts_model_id=f),onChange:e[329]||(e[329]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[e[676]||(e[676]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),l("td",null,[l("div",Ect,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=f=>i.configFile.elevenlabs_tts_voice_stability=f),onChange:e[331]||(e[331]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[e[677]||(e[677]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),l("td",null,[l("div",Sct,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=f=>i.configFile.elevenlabs_tts_voice_boost=f),onChange:e[333]||(e[333]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[e[678]||(e[678]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),l("td",null,[l("div",Tct,[k(l("select",{"onUpdate:modelValue":e[334]||(e[334]=f=>i.configFile.elevenlabs_tts_voice_id=f),onChange:e[335]||(e[335]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voices,f=>(T(),x("option",{key:f.voice_id,value:f.voice_id},Y(f.name),9,xct))),128))],544),[[Ot,i.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),z(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cct,[l("tr",null,[e[679]||(e[679]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),l("td",null,[l("div",wct,[k(l("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=f=>i.configFile.fish_tts_key=f),onChange:e[337]||(e[337]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_key]])])])]),l("tr",null,[e[680]||(e[680]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),l("td",null,[l("div",Rct,[k(l("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=f=>i.configFile.fish_tts_voice=f),onChange:e[339]||(e[339]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),z(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Act,[l("tr",null,[e[682]||(e[682]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),l("td",null,[l("div",Mct,[k(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=f=>i.configFile.enable_sd_service=f),onChange:e[341]||(e[341]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[684]||(e[684]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),l("td",null,[l("div",Nct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(...f)=>i.upgradeSDService&&i.upgradeSDService(...f))},"upgrade sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[345]||(e[345]=(...f)=>i.startSDService&&i.startSDService(...f))},"start sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[346]||(e[346]=(...f)=>i.showSD&&i.showSD(...f))},"show sd ui"),e[683]||(e[683]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),l("td",null,[l("div",Oct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service")])])]),l("tr",null,[e[685]||(e[685]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),l("td",null,[l("div",Ict,[k(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=f=>i.configFile.sd_base_url=f),onChange:e[349]||(e[349]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.sd_base_url]])])])])])]),_:1}),z(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",kct,[l("tr",null,[e[687]||(e[687]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),l("td",null,[l("div",Dct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...f)=>i.reinstallDiffusersService&&i.reinstallDiffusersService(...f))},"install diffusers service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[351]||(e[351]=(...f)=>i.upgradeDiffusersService&&i.upgradeDiffusersService(...f))},"upgrade diffusers service"),e[686]||(e[686]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),l("tr",null,[e[688]||(e[688]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),l("td",null,[l("div",Lct,[k(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=f=>i.configFile.diffusers_model=f),onChange:e[353]||(e[353]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_model]])])]),e[689]||(e[689]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pct,[l("tr",null,[e[690]||(e[690]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),l("td",null,[l("div",Fct,[k(l("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=f=>i.configFile.diffusers_client_base_url=f),onChange:e[355]||(e[355]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Uct,[l("tr",null,[e[692]||(e[692]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),l("td",null,[l("div",Bct,[k(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=f=>i.configFile.midjourney_key=f),onChange:e[357]||(e[357]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_key]])])])]),l("tr",null,[e[693]||(e[693]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),l("td",null,[l("div",Gct,[k(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=f=>i.configFile.midjourney_timeout=f),onChange:e[359]||(e[359]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_timeout]])])])]),l("tr",null,[e[694]||(e[694]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),l("td",null,[l("div",Vct,[k(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=f=>i.configFile.midjourney_retries=f),onChange:e[361]||(e[361]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_retries]])])])])])]),_:1}),z(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zct,[l("tr",null,[e[695]||(e[695]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),l("td",null,[l("div",Hct,[k(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=f=>i.configFile.dall_e_key=f),onChange:e[363]||(e[363]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.dall_e_key]])])])]),l("tr",null,[e[697]||(e[697]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),l("td",null,[l("div",qct,[k(l("select",{"onUpdate:modelValue":e[364]||(e[364]=f=>i.configFile.dall_e_generation_engine=f),onChange:e[365]||(e[365]=f=>r.settingsChanged=!0)},e[696]||(e[696]=[l("option",null," dall-e-2 ",-1),l("option",null," dall-e-3 ",-1)]),544),[[Ot,i.configFile.dall_e_generation_engine]])])])])])]),_:1}),z(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Yct,[l("tr",null,[e[699]||(e[699]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),l("td",null,[l("div",$ct,[k(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=f=>i.configFile.enable_comfyui_service=f),onChange:e[367]||(e[367]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[700]||(e[700]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),l("td",null,[l("div",Wct,[k(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=f=>i.configFile.comfyui_model=f),onChange:e[370]||(e[370]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.comfyui_models,(f,y)=>(T(),x("option",{key:f,value:f},Y(f),9,Kct))),128))],544),[[Ot,i.configFile.comfyui_model]])])])]),l("tr",null,[e[702]||(e[702]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),l("td",null,[l("div",jct,[k(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=f=>i.configFile.comfyui_model=f),onChange:e[372]||(e[372]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[704]||(e[704]=l("td",{style:{"min-width":"200px"}},null,-1)),l("td",null,[l("div",Qct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[374]||(e[374]=(...f)=>i.reinstallComfyUIService&&i.reinstallComfyUIService(...f))},"install comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[375]||(e[375]=(...f)=>i.upgradeComfyUIService&&i.upgradeComfyUIService(...f))},"upgrade comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[376]||(e[376]=(...f)=>i.startComfyUIService&&i.startComfyUIService(...f))},"start comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[377]||(e[377]=(...f)=>i.showComfyui&&i.showComfyui(...f))},"show comfyui"),e[703]||(e[703]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),l("tr",null,[e[705]||(e[705]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),l("td",null,[l("div",Xct,[k(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=f=>i.configFile.comfyui_base_url=f),onChange:e[379]||(e[379]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Zct,[l("tr",null,[e[707]||(e[707]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),l("td",null,[l("div",Jct,[k(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=f=>i.configFile.enable_ollama_service=f),onChange:e[381]||(e[381]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +`,"
")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[n].icon}`),this.$store.state.modelsZoo[n].icon):$n}catch{console.log("error")}if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Bs},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(n){console.log("Current xtts voice set to ",n),this.$store.state.config.xtts_current_language=n}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.xtts_current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(n){this.$store.state.config.discussion_db_name=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return rr(this.addModel.speed)},total_size_computed(){return rr(this.addModel.total_size)},downloaded_size_computed(){return rr(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Ue(()=>{Ve.replace()})},pc_collapsed(){Ue(()=>{Ve.replace()})},mc_collapsed(){Ue(()=>{Ve.replace()})},sc_collapsed(){Ue(()=>{Ve.replace()})},showConfirmation(){Ue(()=>{Ve.replace()})},mzl_collapsed(){Ue(()=>{Ve.replace()})},pzl_collapsed(){Ue(()=>{Ve.replace()})},ezl_collapsed(){Ue(()=>{Ve.replace()})},bzl_collapsed(){Ue(()=>{Ve.replace()})},all_collapsed(n){this.collapseAll(n),Ue(()=>{Ve.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Ue(()=>{Ve.replace()})},isLoading(){Ue(()=>{Ve.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Ue(()=>{Ve.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},pit={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},fit={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},_it={key:0,class:"flex gap-3 flex-1 items-center duration-75"},mit={key:1,class:"flex gap-3 flex-1 items-center"},hit={class:"flex gap-3 flex-1 items-center justify-end"},git={class:"flex gap-3 items-center"},bit={key:0,class:"flex gap-3 items-center"},yit={key:1,role:"status"},vit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Eit={class:"flex flex-row p-3"},Sit={class:"text-base font-semibold cursor-pointer select-none items-center"},Tit={class:"flex gap-2 items-center"},xit={key:0},Cit=["src"],wit={class:"font-bold font-large text-lg"},Rit={key:1},Ait={class:"flex gap-2 items-center"},Mit=["src"],Nit={class:"font-bold font-large text-lg"},Oit={class:"font-bold font-large text-lg"},Iit={class:"font-bold font-large text-lg"},kit={class:"mb-2"},Dit={class:"flex flex-col mx-2"},Lit={class:"p-2"},Pit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Fit={class:"mb-2"},Uit={class:"flex flex-col mx-2"},Bit={class:"p-2"},Git={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Vit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},zit=["src"],Hit={class:"flex flex-col mx-2"},qit={class:"p-2"},Yit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},$it={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wit={class:"flex flex-row p-3"},Kit={class:"flex flex-col mb-2 px-3 pb-2"},jit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qit={class:"flex flex-col space-y-4"},Xit={class:"flex items-center"},Zit={class:"flex items-center"},Jit={class:"flex items-center"},eot={class:"flex items-start"},tot={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},not={class:"flex flex-row p-3"},sot={class:"flex flex-col mb-2 px-3 pb-2"},rot={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},iot={for:"logo-upload"},oot=["src"],aot={style:{width:"10%"}},lot={class:"text-center items-center"},cot={class:"flex flex-row"},dot={style:{width:"100%"}},uot={class:"flex flex-row"},pot={class:"flex flex-row"},fot={class:"flex flex-row"},_ot={class:"flex flex-row"},mot={class:"flex flex-row"},hot={class:"flex flex-row"},got={class:"flex flex-row"},bot={class:"flex flex-row"},yot={class:"flex flex-row"},vot={class:"flex flex-row"},Eot={class:"flex flex-row"},Sot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Tot=["innerHTML"],xot={style:{width:"100%"}},Cot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wot={style:{width:"100%"}},Rot={style:{width:"100%"}},Aot={style:{width:"100%"}},Mot={style:{width:"100%"}},Not={for:"avatar-upload"},Oot=["src"],Iot={style:{width:"10%"}},kot={class:"flex flex-row"},Dot={style:{width:"100%"}},Lot={style:{width:"100%"}},Pot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fot={style:{width:"100%"}},Uot={style:{width:"100%"}},Bot={style:{width:"100%"}},Got={style:{width:"100%"}},Vot={style:{width:"100%"}},zot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hot={class:"flex flex-row"},qot={style:{width:"100%"}},Yot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},$ot={class:"flex flex-row"},Wot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Kot={class:"flex flex-row"},jot={class:"flex flex-row"},Qot={class:"flex flex-row"},Xot={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Zot={class:"flex flex-row p-3"},Jot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},eat={style:{width:"100%"}},tat=["onUpdate:modelValue"],nat=["onClick"],sat=["onClick"],rat=["onClick"],iat=["disabled"],oat={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},aat={key:1,value:"bert-base-uncased"},lat={key:2,value:"bert-base-multilingual-uncased"},cat={key:3,value:"bert-large-uncased"},dat={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},uat={key:5,value:"distilbert-base-uncased"},pat={key:6,value:"roberta-base"},fat={key:7,value:"roberta-large"},_at={key:8,value:"xlm-roberta-base"},mat={key:9,value:"xlm-roberta-large"},hat={key:10,value:"albert-base-v2"},gat={key:11,value:"albert-large-v2"},bat={key:12,value:"albert-xlarge-v2"},yat={key:13,value:"albert-xxlarge-v2"},vat={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},Eat={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},Sat={key:16,value:"sentence-transformers/all-distilroberta-v1"},Tat={key:17,value:"sentence-transformers/all-mpnet-base-v2"},xat={key:18,value:"text-embedding-ada-002"},Cat={key:19,value:"text-embedding-babbage-001"},wat={key:20,value:"text-embedding-curie-001"},Rat={key:21,value:"text-embedding-davinci-001"},Aat={key:22,disabled:""},Mat={class:"flex flex-row"},Nat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Oat={class:"flex flex-row"},Iat={class:"flex flex-row"},kat={class:"flex flex-row"},Dat={class:"flex flex-row"},Lat={class:"flex flex-row"},Pat={style:{width:"100%"}},Fat={class:"flex flex-row"},Uat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Bat={class:"flex flex-row p-3"},Gat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Vat={class:"flex flex-row"},zat={class:"flex flex-row"},Hat={class:"flex flex-row"},qat={class:"flex flex-row"},Yat={class:"flex flex-col"},$at={class:"flex flex-col"},Wat={class:"flex flex-col"},Kat={class:"flex flex-col"},jat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Qat={class:"flex flex-row p-3"},Xat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Zat={style:{width:"100%"}},Jat={style:{width:"100%"}},elt={style:{width:"100%"}},tlt={style:{width:"100%"}},nlt={style:{width:"100%"}},slt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rlt={class:"flex flex-row"},ilt={class:"flex flex-row"},olt={class:"flex flex-row"},alt={class:"flex flex-row"},llt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},clt={style:{width:"100%"}},dlt={style:{width:"100%"}},ult={style:{width:"100%"}},plt={style:{width:"100%"}},flt={style:{width:"100%"}},_lt={style:{width:"100%"}},mlt={style:{width:"100%"}},hlt={class:"flex flex-row"},glt={class:"flex flex-row"},blt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ylt={style:{width:"100%"}},vlt=["value"],Elt={style:{width:"100%"}},Slt=["value"],Tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xlt={style:{width:"100%"}},Clt={style:{width:"100%"}},wlt={style:{width:"100%"}},Rlt={style:{width:"100%"}},Alt={style:{width:"100%"}},Mlt={style:{width:"100%"}},Nlt={style:{width:"100%"}},Olt={style:{width:"100%"}},Ilt={style:{width:"100%"}},klt={style:{width:"100%"}},Dlt={style:{width:"100%"}},Llt={style:{width:"100%"}},Plt={style:{width:"100%"}},Flt={style:{width:"100%"}},Ult={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Blt={class:"flex flex-row"},Glt={class:"flex flex-row"},Vlt=["value"],zlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hlt={class:"flex flex-row"},qlt={class:"flex flex-row"},Ylt=["value"],$lt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Wlt={class:"flex flex-row"},Klt={class:"flex flex-row"},jlt=["value"],Qlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xlt={class:"flex flex-row"},Zlt=["value"],Jlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ect={class:"flex flex-row"},tct=["value"],nct={class:"flex flex-row"},sct=["value"],rct={class:"flex flex-row"},ict={class:"flex flex-row"},oct={class:"flex flex-row"},act={class:"flex flex-row"},lct={class:"flex flex-row"},cct={class:"flex flex-row"},dct={class:"flex flex-row"},uct={class:"flex flex-row"},pct={class:"flex flex-row"},fct={class:"flex flex-row"},_ct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},mct={class:"flex flex-row"},hct={class:"flex flex-row"},gct={class:"flex flex-row"},bct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},yct={class:"flex flex-row"},vct={class:"flex flex-row"},Ect={class:"flex flex-row"},Sct={class:"flex flex-row"},Tct={class:"flex flex-row"},xct=["value"],Cct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wct={class:"flex flex-row"},Rct={class:"flex flex-row"},Act={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Mct={class:"flex flex-row"},Nct={class:"flex flex-row"},Oct={class:"flex flex-row"},Ict={class:"flex flex-row"},kct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Dct={class:"flex flex-row"},Lct={class:"flex flex-row"},Pct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fct={class:"flex flex-row"},Uct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Bct={class:"flex flex-row"},Gct={class:"flex flex-row"},Vct={class:"flex flex-row"},zct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hct={class:"flex flex-row"},qct={class:"flex flex-row"},Yct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},$ct={class:"flex flex-row"},Wct={class:"flex flex-row"},Kct=["value"],jct={class:"flex flex-row"},Qct={class:"flex flex-row"},Xct={class:"flex flex-row"},Zct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Jct={class:"flex flex-row"},edt={class:"flex flex-row"},tdt={class:"flex flex-row"},ndt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},sdt={class:"flex flex-row"},rdt={class:"flex flex-row"},idt={class:"flex flex-row"},odt={class:"flex flex-col align-bottom"},adt={class:"relative"},ldt={class:"absolute right-0"},cdt={class:"flex flex-row"},ddt={class:"flex flex-row"},udt={class:"flex flex-row"},pdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fdt={class:"flex flex-row"},_dt={class:"flex flex-row"},mdt={class:"flex flex-row"},hdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},gdt={class:"flex flex-row"},bdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ydt={class:"flex flex-row"},vdt={class:"flex flex-row"},Edt={class:"flex flex-row"},Sdt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Tdt={class:"flex flex-row p-3"},xdt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Cdt={key:1,class:"mr-2"},wdt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Rdt={class:"flex gap-1 items-center"},Adt=["src"],Mdt={class:"font-bold font-large text-lg line-clamp-1"},Ndt={key:0,class:"mb-2"},Odt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Idt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},kdt={class:"flex flex-row p-3"},Ddt={class:"flex flex-row items-center"},Ldt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pdt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Fdt={key:2,class:"mr-2"},Udt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Bdt={class:"flex gap-1 items-center"},Gdt=["src"],Vdt={class:"font-bold font-large text-lg line-clamp-1"},zdt={class:"mx-2 mb-4"},Hdt={class:"relative"},qdt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Ydt={key:0},$dt={key:1},Wdt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Kdt={key:1,class:"mb-2"},jdt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Qdt={class:"mb-2"},Xdt={class:"p-2"},Zdt={class:"mb-3"},Jdt={key:0},eut={class:"mb-3"},tut={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},nut={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},sut={class:"w-full p-2"},rut={class:"flex justify-between mb-1"},iut={class:"text-sm font-medium text-blue-700 dark:text-white"},out=["title"],aut={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},lut={class:"flex justify-between mb-1"},cut={class:"text-base font-medium text-blue-700 dark:text-white"},dut={class:"text-sm font-medium text-blue-700 dark:text-white"},uut={class:"flex flex-grow"},put={class:"flex flex-row flex-grow gap-3"},fut={class:"p-2 text-center grow"},_ut={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},mut={class:"flex flex-row p-3 items-center"},hut={key:0,class:"mr-2"},gut={class:"mr-2 font-bold font-large text-lg line-clamp-1"},but={key:1,class:"mr-2"},yut={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},vut={key:0,class:"flex -space-x-4 items-center"},Eut={class:"group items-center flex flex-row"},Sut=["onClick"],Tut=["src","title"],xut=["onClick"],Cut={class:"mx-2 mb-4"},wut={class:"relative"},Rut={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Aut={key:0},Mut={key:1},Nut={key:0,class:"mx-2 mb-4"},Out={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iut=["selected"],kut={key:0,class:"mb-2"},Dut={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Lut={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Put={class:"flex flex-row"},Fut={class:"m-2"},Uut={class:"flex flex-row gap-2 items-center"},But={class:"m-2"},Gut={class:"m-2"},Vut={class:"flex flex-col align-bottom"},zut={class:"relative"},Hut={class:"absolute right-0"},qut={class:"m-2"},Yut={class:"flex flex-col align-bottom"},$ut={class:"relative"},Wut={class:"absolute right-0"},Kut={class:"m-2"},jut={class:"flex flex-col align-bottom"},Qut={class:"relative"},Xut={class:"absolute right-0"},Zut={class:"m-2"},Jut={class:"flex flex-col align-bottom"},ept={class:"relative"},tpt={class:"absolute right-0"},npt={class:"m-2"},spt={class:"flex flex-col align-bottom"},rpt={class:"relative"},ipt={class:"absolute right-0"},opt={class:"m-2"},apt={class:"flex flex-col align-bottom"},lpt={class:"relative"},cpt={class:"absolute right-0"};function dpt(n,e,t,s,r,i){const o=Je("DictManager"),a=Je("Card"),c=Je("StringListManager"),d=Je("BindingEntry"),u=Je("RadioOptions"),_=Je("model-entry"),m=Je("personality-entry"),h=Je("AddModelDialog"),g=Je("ChoiceDialog");return T(),x(Fe,null,[l("div",pit,[l("div",fit,[r.showConfirmation?(T(),x("div",_it,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=$(f=>r.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=$(f=>i.save_configuration(),["stop"]))},e[472]||(e[472]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),r.showConfirmation?B("",!0):(T(),x("div",mit,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>i.reset_configuration())},e[473]||(e[473]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=$(f=>r.all_collapsed=!r.all_collapsed,["stop"]))},e[474]||(e[474]=[l("i",{"data-feather":"list"},null,-1)]))])),l("div",hit,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=f=>i.api_get_req("clear_uploads").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>i.api_post_req("restart_program").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),r.has_updates?(T(),x("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>i.api_post_req("update_software").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[l("i",{"data-feather":"arrow-up-circle"},null,-1),l("i",{"data-feather":"alert-circle"},null,-1)]))):B("",!0),l("div",git,[r.settingsChanged?(T(),x("div",bit,[r.isLoading?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=$(f=>i.applyConfiguration(),["stop"]))},e[478]||(e[478]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),l("i",{"data-feather":"check"})],-1)]))),r.isLoading?B("",!0):(T(),x("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=$(f=>i.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),l("i",{"data-feather":"x"})],-1)])))])):B("",!0),r.isLoading?(T(),x("div",yit,[l("p",null,Y(r.loading_text),1),e[480]||(e[480]=l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[481]||(e[481]=l("span",{class:"sr-only"},"Loading...",-1))])):B("",!0)])])]),l("div",{class:Le(r.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",vit,[l("div",Eit,[l("button",{onClick:e[9]||(e[9]=$(f=>r.sc_collapsed=!r.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[482]||(e[482]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.sc_collapsed]]),k(l("div",null,e[483]||(e[483]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.sc_collapsed]]),e[486]||(e[486]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=l("div",{class:"mr-2"},"|",-1)),l("div",Sit,[l("div",Tit,[l("div",null,[i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length==1?(T(),x("div",xit,[(T(!0),x(Fe,null,We(i.vramUsage.gpus,f=>(T(),x("div",{class:"flex gap-2 items-center",key:f},[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Cit),l("p",wit,[l("div",null,Y(i.computedFileSize(f.used_vram))+" / "+Y(i.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%) ",1)])]))),128))])):B("",!0),i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length>1?(T(),x("div",Rit,[l("div",Ait,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Mit),l("p",Nit,[l("div",null,Y(i.vramUsage.gpus.length)+"x ",1)])])])):B("",!0)]),e[484]||(e[484]=l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Oit,[l("div",null,Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Iit,[l("div",null,Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Le([{hidden:r.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",kit,[e[490]||(e[490]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[l("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),Ze(" CPU Ram usage: ")],-1)),l("div",Dit,[l("div",null,[e[488]||(e[488]=l("b",null,"Avaliable ram: ",-1)),Ze(Y(i.ram_available_space),1)]),l("div",null,[e[489]||(e[489]=l("b",null,"Ram usage: ",-1)),Ze(" "+Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+")% ",1)])]),l("div",Lit,[l("div",Pit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.ram_percent_usage+"%;")},null,4)])])]),l("div",Fit,[e[493]||(e[493]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ze(" Disk usage: ")],-1)),l("div",Uit,[l("div",null,[e[491]||(e[491]=l("b",null,"Avaliable disk space: ",-1)),Ze(Y(i.disk_available_space),1)]),l("div",null,[e[492]||(e[492]=l("b",null,"Disk usage: ",-1)),Ze(" "+Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])]),l("div",Bit,[l("div",Git,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.disk_percent_usage+"%;")},null,4)])])]),(T(!0),x(Fe,null,We(i.vramUsage.gpus,f=>(T(),x("div",{class:"mb-2",key:f},[l("label",Vit,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,zit),e[494]||(e[494]=Ze(" GPU usage: "))]),l("div",Hit,[l("div",null,[e[495]||(e[495]=l("b",null,"Model: ",-1)),Ze(Y(f.gpu_model),1)]),l("div",null,[e[496]||(e[496]=l("b",null,"Avaliable vram: ",-1)),Ze(Y(this.computedFileSize(f.available_space)),1)]),l("div",null,[e[497]||(e[497]=l("b",null,"GPU usage: ",-1)),Ze(" "+Y(this.computedFileSize(f.used_vram))+" / "+Y(this.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%)",1)])]),l("div",qit,[l("div",Yit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",$it,[l("div",Wit,[l("button",{onClick:e[10]||(e[10]=$(f=>r.smartrouterconf_collapsed=!r.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[498]||(e[498]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.smartrouterconf_collapsed]]),k(l("div",null,e[499]||(e[499]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.smartrouterconf_collapsed]]),e[500]||(e[500]=l("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),l("div",{class:Le([{hidden:r.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Kit,[z(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("div",jit,[l("div",Qit,[l("div",Xit,[e[501]||(e[501]=l("label",{for:"use_smart_routing",class:"text-sm font-bold w-64"},"Use Smart Routing:",-1)),k(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=f=>i.configFile.use_smart_routing=f),onChange:e[12]||(e[12]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_smart_routing]])]),l("div",Zit,[e[502]||(e[502]=l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold w-64"},"Restore model after smart routing:",-1)),k(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=f=>i.configFile.restore_model_after_smart_routing=f),onChange:e[14]||(e[14]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.restore_model_after_smart_routing]])]),l("div",Jit,[e[503]||(e[503]=l("label",{for:"smart_routing_router_model",class:"text-sm font-bold w-64"},"Router Model:",-1)),k(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=f=>i.configFile.smart_routing_router_model=f),onChange:e[16]||(e[16]=f=>r.settingsChanged=!0),class:"flex-grow mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.smart_routing_router_model]])]),l("div",eot,[e[504]||(e[504]=l("label",{for:"smart_routing_models_description",class:"text-sm font-bold w-64 mt-1"},"Models with description:",-1)),z(o,{modelValue:i.configFile.smart_routing_models_description,"onUpdate:modelValue":e[17]||(e[17]=f=>i.configFile.smart_routing_models_description=f),onChange:e[18]||(e[18]=f=>r.settingsChanged=!0),"key-name":"Model Path","value-name":"Model description",placeholder:"Enter model name",class:"flex-grow"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",tot,[l("div",not,[l("button",{onClick:e[19]||(e[19]=$(f=>r.mainconf_collapsed=!r.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[505]||(e[505]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.mainconf_collapsed]]),k(l("div",null,e[506]||(e[506]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.mainconf_collapsed]]),e[507]||(e[507]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),l("div",{class:Le([{hidden:r.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",sot,[z(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rot,[l("tr",null,[e[509]||(e[509]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),l("td",null,[l("label",iot,[l("img",{src:i.configFile.app_custom_logo!=null&&i.configFile.app_custom_logo!=""?"/user_infos/"+i.configFile.app_custom_logo:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,oot)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...f)=>i.uploadLogo&&i.uploadLogo(...f))},null,32)]),l("td",aot,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=$(f=>i.resetLogo(),["stop"]))},e[508]||(e[508]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[511]||(e[511]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),l("td",lot,[l("div",cot,[k(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=f=>i.configFile.hardware_mode=f),onChange:e[23]||(e[23]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[l("option",{value:"cpu"},"CPU",-1),l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),l("option",{value:"nvidia"},"NVIDIA",-1),l("option",{value:"amd-noavx"},"AMD (No AVX)",-1),l("option",{value:"amd"},"AMD",-1),l("option",{value:"apple-intel"},"Apple Intel",-1),l("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[Ot,i.configFile.hardware_mode]])])])]),l("tr",null,[e[512]||(e[512]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),l("td",dot,[k(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>i.configFile.discussion_db_name=f),onChange:e[25]||(e[25]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.discussion_db_name]])])]),l("tr",null,[e[513]||(e[513]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),l("td",null,[l("div",uot,[k(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=f=>i.configFile.copy_to_clipboard_add_all_details=f),onChange:e[27]||(e[27]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[e[514]||(e[514]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),l("td",null,[l("div",pot,[k(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=f=>i.configFile.auto_show_browser=f),onChange:e[29]||(e[29]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_show_browser]])])])]),l("tr",null,[e[515]||(e[515]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),l("td",null,[l("div",fot,[k(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=f=>i.configFile.debug=f),onChange:e[31]||(e[31]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug]])])])]),l("tr",null,[e[516]||(e[516]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),l("td",null,[l("div",_ot,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[33]||(e[33]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[517]||(e[517]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),l("td",null,[l("div",mot,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[35]||(e[35]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[518]||(e[518]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),l("td",null,[l("div",hot,[k(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>i.configFile.debug_show_chunks=f),onChange:e[37]||(e[37]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_chunks]])])])]),l("tr",null,[e[519]||(e[519]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),l("td",null,[l("div",got,[k(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>i.configFile.debug_log_file_path=f),onChange:e[39]||(e[39]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.debug_log_file_path]])])])]),l("tr",null,[e[520]||(e[520]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),l("td",null,[l("div",bot,[k(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>i.configFile.show_news_panel=f),onChange:e[41]||(e[41]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.show_news_panel]])])])]),l("tr",null,[e[521]||(e[521]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),l("td",null,[l("div",yot,[k(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>i.configFile.auto_save=f),onChange:e[43]||(e[43]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_save]])])])]),l("tr",null,[e[522]||(e[522]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),l("td",null,[l("div",vot,[k(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>i.configFile.auto_update=f),onChange:e[45]||(e[45]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_update]])])])]),l("tr",null,[e[523]||(e[523]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),l("td",null,[l("div",Eot,[k(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>i.configFile.auto_title=f),onChange:e[47]||(e[47]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_title]])])])])])]),_:1}),z(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Sot,[l("tr",null,[e[525]||(e[525]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[l("select",{onChange:e[48]||(e[48]=(...f)=>i.handleTemplateSelection&&i.handleTemplateSelection(...f))},e[524]||(e[524]=[l("option",{value:"lollms"},"Lollms communication template",-1),l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),l("option",{value:"bare"},"Bare, useful when in chat mode",-1),l("option",{value:"llama3"},"LLama3 communication template",-1),l("option",{value:"mistral"},"Mistral communication template",-1),l("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),l("tr",null,[e[526]||(e[526]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=f=>i.configFile.start_header_id_template=f),onChange:e[50]||(e[50]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_header_id_template]])])]),l("tr",null,[e[527]||(e[527]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=f=>i.configFile.end_header_id_template=f),onChange:e[52]||(e[52]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_header_id_template]])])]),l("tr",null,[e[528]||(e[528]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=f=>i.configFile.start_user_header_id_template=f),onChange:e[54]||(e[54]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_user_header_id_template]])])]),l("tr",null,[e[529]||(e[529]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=f=>i.configFile.end_user_header_id_template=f),onChange:e[56]||(e[56]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_header_id_template]])])]),l("tr",null,[e[530]||(e[530]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=f=>i.configFile.end_user_message_id_template=f),onChange:e[58]||(e[58]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_message_id_template]])])]),l("tr",null,[e[531]||(e[531]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=f=>i.configFile.start_ai_header_id_template=f),onChange:e[60]||(e[60]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_ai_header_id_template]])])]),l("tr",null,[e[532]||(e[532]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=f=>i.configFile.end_ai_header_id_template=f),onChange:e[62]||(e[62]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_header_id_template]])])]),l("tr",null,[e[533]||(e[533]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=f=>i.configFile.end_ai_message_id_template=f),onChange:e[64]||(e[64]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_message_id_template]])])]),l("tr",null,[e[534]||(e[534]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),l("td",null,[k(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=f=>i.configFile.separator_template=f),onChange:e[66]||(e[66]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.separator_template]])])]),l("tr",null,[e[535]||(e[535]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=f=>i.configFile.system_message_template=f),onChange:e[68]||(e[68]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.system_message_template]])])]),l("tr",null,[e[536]||(e[536]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),l("td",null,[l("div",{innerHTML:i.full_template},null,8,Tot)])]),l("tr",null,[e[537]||(e[537]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),l("td",xot,[k(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=f=>i.configFile.use_continue_message=f),onChange:e[70]||(e[70]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_continue_message]])])])])]),_:1}),z(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cot,[l("tr",null,[e[538]||(e[538]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),l("td",wot,[k(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=f=>i.configFile.user_name=f),onChange:e[72]||(e[72]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.user_name]])])]),l("tr",null,[e[539]||(e[539]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),l("td",Rot,[k(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=f=>i.configFile.user_description=f),onChange:e[74]||(e[74]=f=>r.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.user_description]])])]),l("tr",null,[e[540]||(e[540]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),l("td",Aot,[k(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=f=>i.configFile.use_user_informations_in_discussion=f),onChange:e[76]||(e[76]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[e[541]||(e[541]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),l("td",Mot,[k(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=f=>i.configFile.use_model_name_in_discussions=f),onChange:e[78]||(e[78]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_model_name_in_discussions]])])]),l("tr",null,[e[543]||(e[543]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),l("td",null,[l("label",Not,[l("img",{src:i.configFile.user_avatar!=null&&i.configFile.user_avatar!=""?"/user_infos/"+i.configFile.user_avatar:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Oot)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...f)=>i.uploadAvatar&&i.uploadAvatar(...f))},null,32)]),l("td",Iot,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=$(f=>i.resetAvatar(),["stop"]))},e[542]||(e[542]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[544]||(e[544]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),l("td",null,[l("div",kot,[k(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=f=>i.configFile.use_user_name_in_discussions=f),onChange:e[82]||(e[82]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[e[545]||(e[545]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Dot,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=f=>i.configFile.max_n_predict=f),onChange:e[84]||(e[84]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])]),l("tr",null,[e[546]||(e[546]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Lot,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=f=>i.configFile.max_n_predict=f),onChange:e[86]||(e[86]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])])])]),_:1}),z(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pot,[l("tr",null,[e[547]||(e[547]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),l("td",Fot,[k(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=f=>i.configFile.turn_on_code_execution=f),onChange:e[88]||(e[88]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_execution]])])]),l("tr",null,[e[548]||(e[548]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),l("td",Uot,[k(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=f=>i.configFile.turn_on_code_validation=f),onChange:e[90]||(e[90]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_validation]])])]),l("tr",null,[e[549]||(e[549]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),l("td",Bot,[k(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=f=>i.configFile.turn_on_setting_update_validation=f),onChange:e[92]||(e[92]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[e[550]||(e[550]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),l("td",Got,[k(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=f=>i.configFile.turn_on_open_file_validation=f),onChange:e[94]||(e[94]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_open_file_validation]])])]),l("tr",null,[e[551]||(e[551]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),l("td",Vot,[k(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=f=>i.configFile.turn_on_send_file_validation=f),onChange:e[96]||(e[96]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_send_file_validation]])])])])]),_:1}),z(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zot,[l("tr",null,[e[552]||(e[552]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),l("td",null,[l("div",Hot,[k(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=f=>i.configFile.activate_skills_lib=f),onChange:e[98]||(e[98]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_skills_lib]])])])]),l("tr",null,[e[553]||(e[553]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),l("td",qot,[k(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>i.configFile.skills_lib_database_name=f),onChange:e[100]||(e[100]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.skills_lib_database_name]])])])])]),_:1}),z(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Yot,[l("tr",null,[e[554]||(e[554]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),l("td",null,[l("div",$ot,[k(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>i.configFile.pdf_latex_path=f),onChange:e[102]||(e[102]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.pdf_latex_path]])])])])])]),_:1}),z(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wot,[l("tr",null,[e[555]||(e[555]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),l("td",null,[l("div",Kot,[k(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>i.configFile.positive_boost=f),onChange:e[104]||(e[104]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.positive_boost]])])])]),l("tr",null,[e[556]||(e[556]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),l("td",null,[l("div",jot,[k(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>i.configFile.negative_boost=f),onChange:e[106]||(e[106]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_boost]])])])]),l("tr",null,[e[557]||(e[557]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),l("td",null,[l("div",Qot,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>i.configFile.fun_mode=f),onChange:e[108]||(e[108]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",Xot,[l("div",Zot,[l("button",{onClick:e[109]||(e[109]=$(f=>r.data_conf_collapsed=!r.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[558]||(e[558]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.data_conf_collapsed]]),k(l("div",null,e[559]||(e[559]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.data_conf_collapsed]]),e[560]||(e[560]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),l("div",{class:Le([{hidden:r.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Jot,[l("tr",null,[e[561]||(e[561]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),l("td",eat,[(T(!0),x(Fe,null,We(i.configFile.rag_databases,(f,y)=>(T(),x("div",{key:y,class:"flex items-center mb-2"},[k(l("input",{type:"text","onUpdate:modelValue":b=>i.configFile.rag_databases[y]=b,onChange:e[110]||(e[110]=b=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,tat),[[ae,i.configFile.rag_databases[y]]]),l("button",{onClick:b=>i.vectorize_folder(y),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,nat),l("button",{onClick:b=>i.select_folder(y),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,sat),l("button",{onClick:b=>i.removeDataSource(y),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,rat)]))),128)),l("button",{onClick:e[111]||(e[111]=(...f)=>i.addDataSource&&i.addDataSource(...f)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[e[563]||(e[563]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=f=>i.configFile.rag_vectorizer=f),onChange:e[113]||(e[113]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[l("option",{value:"semantic"},"Semantic Vectorizer",-1),l("option",{value:"tfidf"},"TFIDF Vectorizer",-1),l("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[Ot,i.configFile.rag_vectorizer]])])]),l("tr",null,[e[564]||(e[564]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=f=>i.configFile.rag_vectorizer_model=f),onChange:e[115]||(e[115]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:i.configFile.rag_vectorizer==="tfidf"},[i.configFile.rag_vectorizer==="semantic"?(T(),x("option",oat,"sentence-transformers/bert-base-nli-mean-tokens")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",aat,"bert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",lat,"bert-base-multilingual-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",cat,"bert-large-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",dat,"bert-large-uncased-whole-word-masking-finetuned-squad")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",uat,"distilbert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",pat,"roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",fat,"roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",_at,"xlm-roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",mat,"xlm-roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",hat,"albert-base-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",gat,"albert-large-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",bat,"albert-xlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",yat,"albert-xxlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",vat,"sentence-transformers/all-MiniLM-L6-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Eat,"sentence-transformers/all-MiniLM-L12-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Sat,"sentence-transformers/all-distilroberta-v1")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Tat,"sentence-transformers/all-mpnet-base-v2")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",xat,"text-embedding-ada-002")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",Cat,"text-embedding-babbage-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",wat,"text-embedding-curie-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",Rat,"text-embedding-davinci-001")):B("",!0),i.configFile.rag_vectorizer==="tfidf"?(T(),x("option",Aat,"No models available for TFIDF")):B("",!0)],40,iat),[[Ot,i.configFile.rag_vectorizer_model]])])]),l("tr",null,[e[565]||(e[565]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),l("td",null,[l("div",Mat,[k(l("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=f=>i.configFile.rag_vectorizer_openai_key=f),onChange:e[117]||(e[117]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_vectorizer_openai_key]])])])]),l("tr",null,[e[566]||(e[566]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),l("td",null,[k(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=f=>i.configFile.rag_chunk_size=f),onChange:e[119]||(e[119]=f=>r.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[120]||(e[120]=f=>i.configFile.rag_chunk_size=f),type:"number",onChange:e[121]||(e[121]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_chunk_size]])])]),l("tr",null,[e[567]||(e[567]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),l("td",null,[k(l("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=f=>i.configFile.rag_overlap=f),onChange:e[123]||(e[123]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_overlap]]),k(l("input",{"onUpdate:modelValue":e[124]||(e[124]=f=>i.configFile.rag_overlap=f),type:"number",onChange:e[125]||(e[125]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_overlap]])])]),l("tr",null,[e[568]||(e[568]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),l("td",null,[k(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=f=>i.configFile.rag_n_chunks=f),onChange:e[127]||(e[127]=f=>r.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_n_chunks]]),k(l("input",{"onUpdate:modelValue":e[128]||(e[128]=f=>i.configFile.rag_n_chunks=f),type:"number",onChange:e[129]||(e[129]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_n_chunks]])])]),l("tr",null,[e[569]||(e[569]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[130]||(e[130]=f=>i.configFile.rag_clean_chunks=f),type:"checkbox",onChange:e[131]||(e[131]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_clean_chunks]])])]),l("tr",null,[e[570]||(e[570]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[132]||(e[132]=f=>i.configFile.rag_follow_subfolders=f),type:"checkbox",onChange:e[133]||(e[133]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_follow_subfolders]])])]),l("tr",null,[e[571]||(e[571]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[134]||(e[134]=f=>i.configFile.rag_check_new_files_at_startup=f),type:"checkbox",onChange:e[135]||(e[135]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[e[572]||(e[572]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[136]||(e[136]=f=>i.configFile.rag_preprocess_chunks=f),type:"checkbox",onChange:e[137]||(e[137]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_preprocess_chunks]])])]),l("tr",null,[e[573]||(e[573]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[138]||(e[138]=f=>i.configFile.rag_activate_multi_hops=f),type:"checkbox",onChange:e[139]||(e[139]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_activate_multi_hops]])])]),l("tr",null,[e[574]||(e[574]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[140]||(e[140]=f=>i.configFile.contextual_summary=f),type:"checkbox",onChange:e[141]||(e[141]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.contextual_summary]])])]),l("tr",null,[e[575]||(e[575]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[142]||(e[142]=f=>i.configFile.rag_deactivate=f),type:"checkbox",onChange:e[143]||(e[143]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_deactivate]])])])])]),_:1}),z(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Nat,[l("tr",null,[e[576]||(e[576]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),l("td",null,[l("div",Oat,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[145]||(e[145]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[577]||(e[577]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),l("td",null,[l("div",Iat,[k(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>i.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[147]||(e[147]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[e[578]||(e[578]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),l("td",null,[l("div",kat,[k(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=f=>i.configFile.data_vectorization_build_keys_words=f),onChange:e[149]||(e[149]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[e[579]||(e[579]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),l("td",null,[l("div",Dat,[k(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=f=>i.configFile.data_vectorization_force_first_chunk=f),onChange:e[151]||(e[151]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[e[580]||(e[580]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),l("td",null,[l("div",Lat,[k(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=f=>i.configFile.data_vectorization_put_chunk_informations_into_context=f),onChange:e[153]||(e[153]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[e[582]||(e[582]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),l("td",null,[k(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=f=>i.configFile.data_vectorization_method=f),onChange:e[155]||(e[155]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),l("option",{value:"model_embedding"},"Model Embedding",-1),l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[Ot,i.configFile.data_vectorization_method]])])]),l("tr",null,[e[583]||(e[583]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),l("td",Pat,[k(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=f=>i.configFile.data_vectorization_sentense_transformer_model=f),onChange:e[157]||(e[157]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[e[585]||(e[585]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),l("td",null,[k(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=f=>i.configFile.data_visualization_method=f),onChange:e[159]||(e[159]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[l("option",{value:"PCA"},"PCA",-1),l("option",{value:"TSNE"},"TSNE",-1)]),544),[[Ot,i.configFile.data_visualization_method]])])]),l("tr",null,[e[586]||(e[586]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),l("td",null,[l("div",Fat,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[161]||(e[161]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[587]||(e[587]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=f=>i.configFile.data_vectorization_chunk_size=f),onChange:e[163]||(e[163]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[164]||(e[164]=f=>i.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[165]||(e[165]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[e[588]||(e[588]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=f=>i.configFile.data_vectorization_overlap_size=f),onChange:e[167]||(e[167]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[168]||(e[168]=f=>i.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[169]||(e[169]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[e[589]||(e[589]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=f=>i.configFile.data_vectorization_nb_chunks=f),onChange:e[171]||(e[171]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[172]||(e[172]=f=>i.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[173]||(e[173]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",Uat,[l("div",Bat,[l("button",{onClick:e[174]||(e[174]=$(f=>r.internet_conf_collapsed=!r.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[590]||(e[590]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.internet_conf_collapsed]]),k(l("div",null,e[591]||(e[591]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.internet_conf_collapsed]]),e[592]||(e[592]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),l("div",{class:Le([{hidden:r.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Gat,[l("tr",null,[e[593]||(e[593]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),l("td",null,[l("div",Vat,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>i.configFile.activate_internet_search=f),onChange:e[176]||(e[176]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_search]])])])]),l("tr",null,[e[594]||(e[594]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),l("td",null,[l("div",zat,[k(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=f=>i.configFile.activate_internet_pages_judgement=f),onChange:e[178]||(e[178]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[e[595]||(e[595]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),l("td",null,[l("div",Hat,[k(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=f=>i.configFile.internet_quick_search=f),onChange:e[180]||(e[180]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_quick_search]])])])]),l("tr",null,[e[596]||(e[596]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),l("td",null,[l("div",qat,[k(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=f=>i.configFile.internet_activate_search_decision=f),onChange:e[182]||(e[182]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_activate_search_decision]])])])]),l("tr",null,[e[597]||(e[597]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),l("td",null,[l("div",Yat,[k(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=f=>i.configFile.internet_vectorization_chunk_size=f),onChange:e[184]||(e[184]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[185]||(e[185]=f=>i.configFile.internet_vectorization_chunk_size=f),type:"number",onChange:e[186]||(e[186]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[e[598]||(e[598]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),l("td",null,[l("div",$at,[k(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=f=>i.configFile.internet_vectorization_overlap_size=f),onChange:e[188]||(e[188]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[189]||(e[189]=f=>i.configFile.internet_vectorization_overlap_size=f),type:"number",onChange:e[190]||(e[190]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[e[599]||(e[599]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),l("td",null,[l("div",Wat,[k(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=f=>i.configFile.internet_vectorization_nb_chunks=f),onChange:e[192]||(e[192]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[193]||(e[193]=f=>i.configFile.internet_vectorization_nb_chunks=f),type:"number",onChange:e[194]||(e[194]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[e[600]||(e[600]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),l("td",null,[l("div",Kat,[k(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=f=>i.configFile.internet_nb_search_pages=f),onChange:e[196]||(e[196]=f=>r.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_nb_search_pages]]),k(l("input",{"onUpdate:modelValue":e[197]||(e[197]=f=>i.configFile.internet_nb_search_pages=f),type:"number",onChange:e[198]||(e[198]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",jat,[l("div",Qat,[l("button",{onClick:e[199]||(e[199]=$(f=>r.servers_conf_collapsed=!r.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[601]||(e[601]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.servers_conf_collapsed]]),k(l("div",null,e[602]||(e[602]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.servers_conf_collapsed]]),e[603]||(e[603]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),l("div",{class:Le([{hidden:r.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Xat,[l("tr",null,[e[605]||(e[605]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),l("td",Zat,[k(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=f=>i.configFile.active_tts_service=f),onChange:e[201]||(e[201]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[l("option",{value:"None"},"None",-1),l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),l("option",{value:"xtts"},"XTTS",-1),l("option",{value:"parler-tts"},"Parler-TTS",-1),l("option",{value:"openai_tts"},"Open AI TTS",-1),l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),l("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[Ot,i.configFile.active_tts_service]])])]),l("tr",null,[e[607]||(e[607]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),l("td",Jat,[k(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=f=>i.configFile.active_stt_service=f),onChange:e[203]||(e[203]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[l("option",{value:"None"},"None",-1),l("option",{value:"whisper"},"Whisper",-1),l("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[Ot,i.configFile.active_stt_service]])])]),e[614]||(e[614]=l("tr",null,null,-1)),l("tr",null,[e[609]||(e[609]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),l("td",elt,[k(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=f=>i.configFile.active_tti_service=f),onChange:e[205]||(e[205]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[l("option",{value:"None"},"None",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"diffusers_client"},"Diffusers Client",-1),l("option",{value:"autosd"},"AUTO1111's SD",-1),l("option",{value:"dall-e"},"Open AI DALL-E",-1),l("option",{value:"midjourney"},"Midjourney",-1),l("option",{value:"comfyui"},"Comfyui",-1),l("option",{value:"fooocus"},"Fooocus",-1)]),544),[[Ot,i.configFile.active_tti_service]])])]),l("tr",null,[e[611]||(e[611]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),l("td",tlt,[k(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=f=>i.configFile.active_ttm_service=f),onChange:e[207]||(e[207]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[l("option",{value:"None"},"None",-1),l("option",{value:"musicgen"},"Music Gen",-1)]),544),[[Ot,i.configFile.active_ttm_service]])])]),l("tr",null,[e[613]||(e[613]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),l("td",nlt,[k(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=f=>i.configFile.active_ttv_service=f),onChange:e[209]||(e[209]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[l("option",{value:"None"},"None",-1),l("option",{value:"cog_video_x"},"Cog Video X",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"lumalab"},"Lumalab",-1)]),544),[[Ot,i.configFile.active_ttv_service]])])])])]),_:1}),z(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",slt,[l("tr",null,[e[615]||(e[615]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),l("td",null,[l("div",rlt,[k(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=f=>i.configFile.use_negative_prompt=f),onChange:e[211]||(e[211]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_negative_prompt]])])])]),l("tr",null,[e[616]||(e[616]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),l("td",null,[l("div",ilt,[k(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=f=>i.configFile.use_ai_generated_negative_prompt=f),onChange:e[213]||(e[213]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[e[617]||(e[617]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),l("td",null,[l("div",olt,[k(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=f=>i.configFile.negative_prompt_generation_prompt=f),onChange:e[215]||(e[215]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[e[618]||(e[618]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),l("td",null,[l("div",alt,[k(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=f=>i.configFile.default_negative_prompt=f),onChange:e[217]||(e[217]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.default_negative_prompt]])])])])])]),_:1}),z(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",llt,[l("tr",null,[e[619]||(e[619]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),l("td",clt,[k(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=f=>i.configFile.stt_listening_threshold=f),onChange:e[219]||(e[219]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_listening_threshold]])])]),l("tr",null,[e[620]||(e[620]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),l("td",dlt,[k(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=f=>i.configFile.stt_silence_duration=f),onChange:e[221]||(e[221]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_silence_duration]])])]),l("tr",null,[e[621]||(e[621]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),l("td",ult,[k(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=f=>i.configFile.stt_sound_threshold_percentage=f),onChange:e[223]||(e[223]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[e[622]||(e[622]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),l("td",plt,[k(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=f=>i.configFile.stt_gain=f),onChange:e[225]||(e[225]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_gain]])])]),l("tr",null,[e[623]||(e[623]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),l("td",flt,[k(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=f=>i.configFile.stt_rate=f),onChange:e[227]||(e[227]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_rate]])])]),l("tr",null,[e[624]||(e[624]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),l("td",_lt,[k(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=f=>i.configFile.stt_channels=f),onChange:e[229]||(e[229]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_channels]])])]),l("tr",null,[e[625]||(e[625]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),l("td",mlt,[k(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=f=>i.configFile.stt_buffer_size=f),onChange:e[231]||(e[231]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_buffer_size]])])]),l("tr",null,[e[626]||(e[626]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),l("td",null,[l("div",hlt,[k(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=f=>i.configFile.stt_activate_word_detection=f),onChange:e[233]||(e[233]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.stt_activate_word_detection]])])])]),l("tr",null,[e[627]||(e[627]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),l("td",null,[l("div",glt,[k(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=f=>i.configFile.stt_word_detection_file=f),onChange:e[235]||(e[235]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_word_detection_file]])])])])])]),_:1}),z(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",blt,[l("tr",null,[e[628]||(e[628]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),l("td",ylt,[k(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=f=>i.configFile.stt_input_device=f),onChange:e[237]||(e[237]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.snd_input_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_input_devices_indexes[y]},Y(f),9,vlt))),128))],544),[[Ot,i.configFile.stt_input_device]])])]),l("tr",null,[e[629]||(e[629]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),l("td",Elt,[k(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=f=>i.configFile.tts_output_device=f),onChange:e[239]||(e[239]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.snd_output_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_output_devices_indexes[y]},Y(f),9,Slt))),128))],544),[[Ot,i.configFile.tts_output_device]])])])])]),_:1}),z(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Tlt,[l("tr",null,[e[630]||(e[630]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),l("td",xlt,[k(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=f=>i.configFile.host=f),onChange:e[241]||(e[241]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.host]])])]),l("tr",null,[e[631]||(e[631]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),l("td",Clt,[z(c,{modelValue:i.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=f=>i.configFile.lollms_access_keys=f),onChange:e[243]||(e[243]=f=>r.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[e[632]||(e[632]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),l("td",wlt,[k(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=f=>i.configFile.port=f),onChange:e[245]||(e[245]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.port]])])]),l("tr",null,[e[633]||(e[633]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),l("td",Rlt,[k(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=f=>i.configFile.headless_server_mode=f),onChange:e[247]||(e[247]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.headless_server_mode]])])]),l("tr",null,[e[634]||(e[634]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),l("td",Alt,[k(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=f=>i.configFile.activate_lollms_server=f),onChange:e[249]||(e[249]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_server]])])]),l("tr",null,[e[635]||(e[635]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),l("td",Mlt,[k(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=f=>i.configFile.activate_lollms_rag_server=f),onChange:e[251]||(e[251]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_rag_server]])])]),l("tr",null,[e[636]||(e[636]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),l("td",Nlt,[k(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=f=>i.configFile.activate_lollms_tts_server=f),onChange:e[253]||(e[253]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tts_server]])])]),l("tr",null,[e[637]||(e[637]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),l("td",Olt,[k(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=f=>i.configFile.activate_lollms_stt_server=f),onChange:e[255]||(e[255]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_stt_server]])])]),l("tr",null,[e[638]||(e[638]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),l("td",Ilt,[k(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=f=>i.configFile.activate_lollms_tti_server=f),onChange:e[257]||(e[257]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tti_server]])])]),l("tr",null,[e[639]||(e[639]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),l("td",klt,[k(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=f=>i.configFile.activate_lollms_itt_server=f),onChange:e[259]||(e[259]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_itt_server]])])]),l("tr",null,[e[640]||(e[640]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),l("td",Dlt,[k(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=f=>i.configFile.activate_lollms_ttm_server=f),onChange:e[261]||(e[261]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[e[641]||(e[641]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),l("td",Llt,[k(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=f=>i.configFile.activate_ollama_emulator=f),onChange:e[263]||(e[263]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_ollama_emulator]])])]),l("tr",null,[e[642]||(e[642]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),l("td",Plt,[k(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=f=>i.configFile.activate_openai_emulator=f),onChange:e[265]||(e[265]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_openai_emulator]])])]),l("tr",null,[e[643]||(e[643]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),l("td",Flt,[k(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=f=>i.configFile.activate_mistralai_emulator=f),onChange:e[267]||(e[267]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_mistralai_emulator]])])])])]),_:1}),z(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ult,[l("tr",null,[e[644]||(e[644]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),l("td",null,[l("div",Blt,[k(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=f=>i.configFile.activate_audio_infos=f),onChange:e[269]||(e[269]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_audio_infos]])])])]),l("tr",null,[e[645]||(e[645]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),l("td",null,[l("div",Glt,[k(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=f=>i.configFile.audio_auto_send_input=f),onChange:e[271]||(e[271]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.audio_auto_send_input]])])])]),l("tr",null,[e[646]||(e[646]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),l("td",null,[k(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=f=>i.configFile.audio_silenceTimer=f),onChange:e[273]||(e[273]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_silenceTimer]]),k(l("input",{"onUpdate:modelValue":e[274]||(e[274]=f=>i.configFile.audio_silenceTimer=f),onChange:e[275]||(e[275]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_silenceTimer]])])]),l("tr",null,[e[647]||(e[647]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),l("td",null,[k(l("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=f=>i.configFile.audio_in_language=f),onChange:e[277]||(e[277]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.audioLanguages,f=>(T(),x("option",{key:f.code,value:f.code},Y(f.name),9,Vlt))),128))],544),[[Ot,i.configFile.audio_in_language]])])])])]),_:1}),z(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zlt,[l("tr",null,[e[648]||(e[648]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),l("td",null,[l("div",Hlt,[k(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=f=>i.configFile.whisper_activate=f),onChange:e[279]||(e[279]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.whisper_activate]])])])]),l("tr",null,[e[649]||(e[649]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...f)=>i.reinstallWhisperService&&i.reinstallWhisperService(...f))},"install whisper")])]),l("tr",null,[e[650]||(e[650]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),l("td",null,[l("div",qlt,[k(l("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=f=>i.configFile.whisper_model=f),onChange:e[282]||(e[282]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.whisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,Ylt))),128))],544),[[Ot,i.configFile.whisper_model]])])])])])]),_:1}),z(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",$lt,[l("tr",null,[e[651]||(e[651]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),l("td",null,[l("div",Wlt,[k(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=f=>i.configFile.openai_whisper_key=f),onChange:e[284]||(e[284]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_whisper_key]])])])]),l("tr",null,[e[652]||(e[652]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),l("td",null,[l("div",Klt,[k(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=f=>i.configFile.openai_whisper_model=f),onChange:e[286]||(e[286]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(i.openaiWhisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,jlt))),128))],544),[[Ot,i.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),z(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Qlt,[l("tr",null,[e[653]||(e[653]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),l("td",null,[l("div",Xlt,[k(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=f=>i.configFile.auto_speak=f),onChange:e[288]||(e[288]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_speak]])])])]),l("tr",null,[e[654]||(e[654]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),l("td",null,[k(l("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=f=>i.configFile.audio_pitch=f),onChange:e[290]||(e[290]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_pitch]]),k(l("input",{"onUpdate:modelValue":e[291]||(e[291]=f=>i.configFile.audio_pitch=f),onChange:e[292]||(e[292]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_pitch]])])]),l("tr",null,[e[655]||(e[655]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),l("td",null,[k(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=f=>i.configFile.audio_out_voice=f),onChange:e[294]||(e[294]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.audioVoices,f=>(T(),x("option",{key:f.name,value:f.name},Y(f.name),9,Zlt))),128))],544),[[Ot,i.configFile.audio_out_voice]])])])])]),_:1}),z(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Jlt,[l("tr",null,[e[656]||(e[656]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...f)=>i.reinstallXTTSService&&i.reinstallXTTSService(...f))},"install xtts service")])]),l("tr",null,[e[657]||(e[657]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("div",ect,[k(l("select",{"onUpdate:modelValue":e[296]||(e[296]=f=>i.xtts_current_language=f),onChange:e[297]||(e[297]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voice_languages,(f,y)=>(T(),x("option",{key:y,value:f},Y(y),9,tct))),128))],544),[[Ot,i.xtts_current_language]])])])]),l("tr",null,[e[658]||(e[658]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),l("td",null,[l("div",nct,[k(l("select",{"onUpdate:modelValue":e[298]||(e[298]=f=>i.xtts_current_voice=f),onChange:e[299]||(e[299]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voices,f=>(T(),x("option",{key:f,value:f},Y(f),9,sct))),128))],544),[[Ot,i.xtts_current_voice]])])])]),l("tr",null,[e[659]||(e[659]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),l("td",null,[l("div",rct,[k(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=f=>i.configFile.xtts_freq=f),onChange:e[301]||(e[301]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[e[660]||(e[660]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),l("td",null,[l("div",ict,[k(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=f=>i.configFile.auto_read=f),onChange:e[303]||(e[303]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_read]])])])]),l("tr",null,[e[661]||(e[661]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),l("td",null,[l("div",oct,[k(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=f=>i.configFile.xtts_stream_chunk_size=f),onChange:e[305]||(e[305]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[e[662]||(e[662]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),l("td",null,[l("div",act,[k(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=f=>i.configFile.xtts_temperature=f),onChange:e[307]||(e[307]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[e[663]||(e[663]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),l("td",null,[l("div",lct,[k(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=f=>i.configFile.xtts_length_penalty=f),onChange:e[309]||(e[309]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[664]||(e[664]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),l("td",null,[l("div",cct,[k(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=f=>i.configFile.xtts_repetition_penalty=f),onChange:e[311]||(e[311]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[665]||(e[665]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),l("td",null,[l("div",dct,[k(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=f=>i.configFile.xtts_top_k=f),onChange:e[313]||(e[313]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[e[666]||(e[666]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),l("td",null,[l("div",uct,[k(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=f=>i.configFile.xtts_top_p=f),onChange:e[315]||(e[315]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[e[667]||(e[667]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),l("td",null,[l("div",pct,[k(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=f=>i.configFile.xtts_speed=f),onChange:e[317]||(e[317]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[e[668]||(e[668]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),l("td",null,[l("div",fct,[k(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=f=>i.configFile.enable_text_splitting=f),onChange:e[319]||(e[319]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_text_splitting]])])])])])]),_:1}),z(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",_ct,[l("tr",null,[e[669]||(e[669]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),l("td",null,[l("div",mct,[k(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=f=>i.configFile.openai_tts_key=f),onChange:e[321]||(e[321]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_tts_key]])])])]),l("tr",null,[e[671]||(e[671]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),l("td",null,[l("div",hct,[k(l("select",{"onUpdate:modelValue":e[322]||(e[322]=f=>i.configFile.openai_tts_model=f),onChange:e[323]||(e[323]=f=>r.settingsChanged=!0)},e[670]||(e[670]=[l("option",null," tts-1 ",-1),l("option",null," tts-2 ",-1)]),544),[[Ot,i.configFile.openai_tts_model]])])])]),l("tr",null,[e[673]||(e[673]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),l("td",null,[l("div",gct,[k(l("select",{"onUpdate:modelValue":e[324]||(e[324]=f=>i.configFile.openai_tts_voice=f),onChange:e[325]||(e[325]=f=>r.settingsChanged=!0)},e[672]||(e[672]=[l("option",null," alloy ",-1),l("option",null," echo ",-1),l("option",null," fable ",-1),l("option",null," nova ",-1),l("option",null," shimmer ",-1)]),544),[[Ot,i.configFile.openai_tts_voice]])])])])])]),_:1}),z(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",bct,[l("tr",null,[e[674]||(e[674]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),l("td",null,[l("div",yct,[k(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=f=>i.configFile.elevenlabs_tts_key=f),onChange:e[327]||(e[327]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[e[675]||(e[675]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),l("td",null,[l("div",vct,[k(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=f=>i.configFile.elevenlabs_tts_model_id=f),onChange:e[329]||(e[329]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[e[676]||(e[676]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),l("td",null,[l("div",Ect,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=f=>i.configFile.elevenlabs_tts_voice_stability=f),onChange:e[331]||(e[331]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[e[677]||(e[677]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),l("td",null,[l("div",Sct,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=f=>i.configFile.elevenlabs_tts_voice_boost=f),onChange:e[333]||(e[333]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[e[678]||(e[678]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),l("td",null,[l("div",Tct,[k(l("select",{"onUpdate:modelValue":e[334]||(e[334]=f=>i.configFile.elevenlabs_tts_voice_id=f),onChange:e[335]||(e[335]=f=>r.settingsChanged=!0)},[(T(!0),x(Fe,null,We(r.voices,f=>(T(),x("option",{key:f.voice_id,value:f.voice_id},Y(f.name),9,xct))),128))],544),[[Ot,i.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),z(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cct,[l("tr",null,[e[679]||(e[679]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),l("td",null,[l("div",wct,[k(l("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=f=>i.configFile.fish_tts_key=f),onChange:e[337]||(e[337]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_key]])])])]),l("tr",null,[e[680]||(e[680]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),l("td",null,[l("div",Rct,[k(l("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=f=>i.configFile.fish_tts_voice=f),onChange:e[339]||(e[339]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),z(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Act,[l("tr",null,[e[682]||(e[682]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),l("td",null,[l("div",Mct,[k(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=f=>i.configFile.enable_sd_service=f),onChange:e[341]||(e[341]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[684]||(e[684]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),l("td",null,[l("div",Nct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(...f)=>i.upgradeSDService&&i.upgradeSDService(...f))},"upgrade sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[345]||(e[345]=(...f)=>i.startSDService&&i.startSDService(...f))},"start sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[346]||(e[346]=(...f)=>i.showSD&&i.showSD(...f))},"show sd ui"),e[683]||(e[683]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),l("td",null,[l("div",Oct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service")])])]),l("tr",null,[e[685]||(e[685]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),l("td",null,[l("div",Ict,[k(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=f=>i.configFile.sd_base_url=f),onChange:e[349]||(e[349]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.sd_base_url]])])])])])]),_:1}),z(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",kct,[l("tr",null,[e[687]||(e[687]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),l("td",null,[l("div",Dct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...f)=>i.reinstallDiffusersService&&i.reinstallDiffusersService(...f))},"install diffusers service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[351]||(e[351]=(...f)=>i.upgradeDiffusersService&&i.upgradeDiffusersService(...f))},"upgrade diffusers service"),e[686]||(e[686]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),l("tr",null,[e[688]||(e[688]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),l("td",null,[l("div",Lct,[k(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=f=>i.configFile.diffusers_model=f),onChange:e[353]||(e[353]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_model]])])]),e[689]||(e[689]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pct,[l("tr",null,[e[690]||(e[690]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),l("td",null,[l("div",Fct,[k(l("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=f=>i.configFile.diffusers_client_base_url=f),onChange:e[355]||(e[355]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Uct,[l("tr",null,[e[692]||(e[692]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),l("td",null,[l("div",Bct,[k(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=f=>i.configFile.midjourney_key=f),onChange:e[357]||(e[357]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_key]])])])]),l("tr",null,[e[693]||(e[693]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),l("td",null,[l("div",Gct,[k(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=f=>i.configFile.midjourney_timeout=f),onChange:e[359]||(e[359]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_timeout]])])])]),l("tr",null,[e[694]||(e[694]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),l("td",null,[l("div",Vct,[k(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=f=>i.configFile.midjourney_retries=f),onChange:e[361]||(e[361]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_retries]])])])])])]),_:1}),z(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zct,[l("tr",null,[e[695]||(e[695]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),l("td",null,[l("div",Hct,[k(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=f=>i.configFile.dall_e_key=f),onChange:e[363]||(e[363]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.dall_e_key]])])])]),l("tr",null,[e[697]||(e[697]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),l("td",null,[l("div",qct,[k(l("select",{"onUpdate:modelValue":e[364]||(e[364]=f=>i.configFile.dall_e_generation_engine=f),onChange:e[365]||(e[365]=f=>r.settingsChanged=!0)},e[696]||(e[696]=[l("option",null," dall-e-2 ",-1),l("option",null," dall-e-3 ",-1)]),544),[[Ot,i.configFile.dall_e_generation_engine]])])])])])]),_:1}),z(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Yct,[l("tr",null,[e[699]||(e[699]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),l("td",null,[l("div",$ct,[k(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=f=>i.configFile.enable_comfyui_service=f),onChange:e[367]||(e[367]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[700]||(e[700]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),l("td",null,[l("div",Wct,[k(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=f=>i.configFile.comfyui_model=f),onChange:e[370]||(e[370]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Fe,null,We(r.comfyui_models,(f,y)=>(T(),x("option",{key:f,value:f},Y(f),9,Kct))),128))],544),[[Ot,i.configFile.comfyui_model]])])])]),l("tr",null,[e[702]||(e[702]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),l("td",null,[l("div",jct,[k(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=f=>i.configFile.comfyui_model=f),onChange:e[372]||(e[372]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[704]||(e[704]=l("td",{style:{"min-width":"200px"}},null,-1)),l("td",null,[l("div",Qct,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[374]||(e[374]=(...f)=>i.reinstallComfyUIService&&i.reinstallComfyUIService(...f))},"install comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[375]||(e[375]=(...f)=>i.upgradeComfyUIService&&i.upgradeComfyUIService(...f))},"upgrade comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[376]||(e[376]=(...f)=>i.startComfyUIService&&i.startComfyUIService(...f))},"start comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[377]||(e[377]=(...f)=>i.showComfyui&&i.showComfyui(...f))},"show comfyui"),e[703]||(e[703]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),l("tr",null,[e[705]||(e[705]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),l("td",null,[l("div",Xct,[k(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=f=>i.configFile.comfyui_base_url=f),onChange:e[379]||(e[379]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Zct,[l("tr",null,[e[707]||(e[707]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),l("td",null,[l("div",Jct,[k(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=f=>i.configFile.enable_ollama_service=f),onChange:e[381]||(e[381]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it.
Here is how you can do that`))},e[706]||(e[706]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[708]||(e[708]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),l("td",null,[l("div",edt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[383]||(e[383]=(...f)=>i.reinstallOLLAMAService&&i.reinstallOLLAMAService(...f))},"install ollama service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[384]||(e[384]=(...f)=>i.startollamaService&&i.startollamaService(...f))},"start ollama service")])])]),l("tr",null,[e[709]||(e[709]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),l("td",null,[l("div",tdt,[k(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[385]||(e[385]=f=>i.configFile.ollama_base_url=f),onChange:e[386]||(e[386]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.ollama_base_url]])])])])])]),_:1}),z(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",ndt,[l("tr",null,[e[711]||(e[711]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),l("td",null,[l("div",sdt,[k(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[387]||(e[387]=f=>i.configFile.enable_vllm_service=f),onChange:e[388]||(e[388]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[389]||(e[389]=f=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding. @@ -239,13 +239,13 @@ If You are using windows, this will install wsl so you need to activate it. `?(this.message.content=this.message.content.slice(0,e)+"```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?Lft+this.avatar:(console.log("No avatar found"),Bs)},defaultImg(n){n.target.src=Bs},parseDate(n){let e=new Date(Date.parse(n)),s=Math.floor((new Date-e)/1e3);return s<=1?"just now":s<20?s+" seconds ago":s<40?"half a minute ago":s<60?"less than a minute ago":s<=90?"one minute ago":s<=3540?Math.round(s/60)+" minutes ago":s<=5400?"1 hour ago":s<=86400?Math.round(s/3600)+" hours ago":s<=129600?"1 day ago":s<604800?Math.round(s/86400)+" days ago":s<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(t/86400);if(!(isNaN(s)||s<0||s>=31))return s==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||s==1&&"Yesterday"||s<7&&s+" days ago"||s<31&&Math.ceil(s/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){Ue(()=>{Ve.replace()})},deleteMsgMode(){Ue(()=>{Ve.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Ue(()=>{Ve.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[s,r,i]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(r)+"m:"+o(i)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let s,r,i;[s,r,i]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(r)+"m:"+o(i)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let r=e.getTime()-n.getTime();const i=Math.floor(r/1e3),o=t/i;return Math.round(o)+" t/s"}}},Fft={class:"relative message w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Uft={class:"flex flex-row gap-2"},Bft={class:"flex-shrink-0"},Gft={class:"group/avatar"},Vft=["src","data-popover-target"],zft={class:"flex flex-col w-full flex-grow-0"},Hft={class:"flex flex-row flex-grow items-start"},qft={class:"flex flex-col mb-2"},Yft={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},$ft=["title"],Wft={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Kft={key:1},jft=["src"],Qft={class:"message-details"},Xft={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},Zft={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},Jft={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},e_t={class:"leading-5"},t_t={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},n_t={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},s_t={class:"list-none"},r_t={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},i_t={class:"flex-row justify-end mx-2"},o_t={class:"invisible group-hover:visible flex flex-row"},a_t={key:0},l_t={key:1},c_t={key:2},d_t={key:3},u_t={key:4,class:"flex items-center duration-75"},p_t={class:"flex flex-row items-center"},f_t={class:"flex flex-row items-center"},__t={key:6,class:"flex flex-row items-center"},m_t=["src"],h_t={class:"text-sm text-gray-400 mt-2"},g_t={class:"flex flex-row items-center gap-2"},b_t={key:0},y_t={class:"font-thin"},v_t={key:1},E_t={class:"font-thin"},S_t={key:2},T_t={class:"font-thin"},x_t={key:3},C_t=["title"],w_t={key:4},R_t=["title"],A_t={key:5},M_t=["title"],N_t={key:6},O_t=["title"];function I_t(n,e,t,s,r,i){var y;const o=Je("MarkdownRenderer"),a=Je("JsonViewer"),c=Je("DynamicUIRenderer"),d=Je("StatusIcon"),u=Je("StatusIndicator"),_=Je("Step"),m=Je("RenderHTMLJS"),h=Je("ToolbarButton"),g=Je("DropdownSubmenu"),f=Je("DropdownMenu");return T(),x("div",Fft,[l("div",Uft,[l("div",Bft,[l("div",Gft,[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=b=>i.defaultImg(b)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Vft)])]),l("div",zft,[l("div",Hft,[l("div",qft,[l("div",Yft,Y(t.message.sender),1),t.message.created_at?(T(),x("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+i.created_at_parsed},Y(i.created_at),9,$ft)):B("",!0)]),e[45]||(e[45]=l("div",{class:"flex-grow"},null,-1))]),l("div",Wft,[i.editMsgMode?B("",!0):(T(),at(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[t.message.open?k((T(),x("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=Jn($((...b)=>i.insertTab&&i.insertTab(...b),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=b=>t.message.content=b)}," ",544)),[[ae,t.message.content]]):B("",!0)]),t.message.metadata!==null?(T(),x("div",Kft,[(T(!0),x(Fe,null,We(((y=t.message.metadata)==null?void 0:y.filter(b=>b!=null&&b.hasOwnProperty("title")&&b.hasOwnProperty("content")))||[],(b,v)=>(T(),x("div",{key:"json-"+t.message.id+"-"+v,class:"json font-bold"},[(T(),at(a,{jsonFormText:b.title,jsonData:b.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):B("",!0),t.message.ui?(T(),at(c,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):B("",!0),r.audio_url!=null?(T(),x("audio",{controls:"",key:r.audio_url},[l("source",{src:r.audio_url,type:"audio/wav",ref:"audio_player"},null,8,jft),e[46]||(e[46]=Ze(" Your browser does not support the audio element. "))])):B("",!0),l("div",Qft,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),x("details",Xft,[l("summary",Zft,[l("div",Jft,[z(d,{status:t.message.status_message},null,8,["status"])]),l("dl",e_t,[e[47]||(e[47]=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),l("dt",t_t,[z(u,{status:t.message.status_message},null,8,["status"]),Ze(" "+Y(t.message.status_message),1)])])]),l("div",n_t,[l("ol",s_t,[(T(!0),x(Fe,null,We(t.message.steps,(b,v)=>(T(),x("li",{key:`step-${t.message.id}-${v}`,class:Le(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":b.done}]),style:Bt({animationDelay:`${v*100}ms`})},[z(_,{done:b.done,text:b.text,status:b.status,step_type:b.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):B("",!0),l("div",r_t,[(T(!0),x(Fe,null,We(t.message.html_js_s,(b,v)=>(T(),x("div",{key:`htmljs-${t.message.id}-${v}`,class:"font-bold animate-fadeIn",style:Bt({animationDelay:`${v*200}ms`})},[z(m,{htmlContent:b},null,8,["htmlContent"])],4))),128))])])]),l("div",i_t,[l("div",o_t,[i.editMsgMode?(T(),x("div",a_t,[z(h,{onClick:e[3]||(e[3]=$(b=>i.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),z(h,{onClick:$(i.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),z(f,{title:"Add Block"},{default:Ie(()=>[z(g,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(h,{onClick:e[4]||(e[4]=$(b=>i.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(h,{onClick:e[5]||(e[5]=$(b=>i.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(h,{onClick:e[6]||(e[6]=$(b=>i.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(h,{onClick:e[7]||(e[7]=$(b=>i.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(h,{onClick:e[8]||(e[8]=$(b=>i.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(h,{onClick:e[9]||(e[9]=$(b=>i.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(h,{onClick:e[10]||(e[10]=$(b=>i.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(h,{onClick:e[11]||(e[11]=$(b=>i.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(h,{onClick:e[12]||(e[12]=$(b=>i.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(h,{onClick:e[13]||(e[13]=$(b=>i.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(h,{onClick:e[14]||(e[14]=$(b=>i.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(g,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(h,{onClick:e[15]||(e[15]=$(b=>i.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(h,{onClick:e[16]||(e[16]=$(b=>i.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(h,{onClick:e[17]||(e[17]=$(b=>i.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(h,{onClick:e[18]||(e[18]=$(b=>i.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(h,{onClick:e[19]||(e[19]=$(b=>i.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(g,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(h,{onClick:e[20]||(e[20]=$(b=>i.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(h,{onClick:e[21]||(e[21]=$(b=>i.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(h,{onClick:e[22]||(e[22]=$(b=>i.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(h,{onClick:e[23]||(e[23]=$(b=>i.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(h,{onClick:e[24]||(e[24]=$(b=>i.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(g,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(h,{onClick:e[25]||(e[25]=$(b=>i.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(h,{onClick:e[26]||(e[26]=$(b=>i.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(h,{onClick:e[27]||(e[27]=$(b=>i.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(g,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(h,{onClick:e[28]||(e[28]=$(b=>i.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(h,{onClick:e[29]||(e[29]=$(b=>i.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(h,{onClick:e[30]||(e[30]=$(b=>i.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(g,{title:"Database",icon:"database"},{default:Ie(()=>[z(h,{onClick:e[31]||(e[31]=$(b=>i.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(h,{onClick:e[32]||(e[32]=$(b=>i.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(h,{onClick:e[33]||(e[33]=$(b=>i.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),x("div",l_t,[z(h,{onClick:e[34]||(e[34]=$(b=>i.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),z(h,{onClick:i.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!i.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),x("div",c_t,[z(h,{onClick:e[35]||(e[35]=$(b=>i.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),z(h,{onClick:e[36]||(e[36]=$(b=>i.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),z(h,{onClick:e[37]||(e[37]=$(b=>i.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):B("",!0),!i.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),x("div",d_t,[z(h,{onClick:i.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):B("",!0),r.deleteMsgMode?(T(),x("div",u_t,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=$(b=>r.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=$(b=>i.deleteMsg(),["stop"]))},e[49]||(e[49]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),!i.editMsgMode&&!r.deleteMsgMode?(T(),x("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=b=>r.deleteMsgMode=!0)},e[50]||(e[50]=[l("i",{"data-feather":"trash"},null,-1)]))):B("",!0),l("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=$(b=>i.rankUp(),["stop"]))},e[51]||(e[51]=[l("i",{"data-feather":"thumbs-up"},null,-1)])),l("div",p_t,[l("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=$(b=>i.rankDown(),["stop"]))},e[52]||(e[52]=[l("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),x("div",{key:0,class:Le(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},Y(t.message.rank),3)):B("",!0)]),l("div",f_t,[this.$store.state.config.active_tts_service!="None"?(T(),x("div",{key:0,class:Le(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":i.isTalking}]),title:"speak",onClick:e[43]||(e[43]=$(b=>i.speak(),["stop"]))},e[53]||(e[53]=[l("i",{"data-feather":"volume-2"},null,-1)]),2)):B("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),x("div",__t,[r.isSynthesizingVoice?(T(),x("img",{key:1,src:r.loading_svg},null,8,m_t)):(T(),x("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=$(b=>i.read(),["stop"]))},e[54]||(e[54]=[l("i",{"data-feather":"voicemail"},null,-1)])))])):B("",!0)])]),l("div",h_t,[l("div",g_t,[t.message.binding?(T(),x("p",b_t,[e[55]||(e[55]=Ze("Binding: ")),l("span",y_t,Y(t.message.binding),1)])):B("",!0),t.message.model?(T(),x("p",v_t,[e[56]||(e[56]=Ze("Model: ")),l("span",E_t,Y(t.message.model),1)])):B("",!0),t.message.seed?(T(),x("p",S_t,[e[57]||(e[57]=Ze("Seed: ")),l("span",T_t,Y(t.message.seed),1)])):B("",!0),t.message.nb_tokens?(T(),x("p",x_t,[e[58]||(e[58]=Ze("Number of tokens: ")),l("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},Y(t.message.nb_tokens),9,C_t)])):B("",!0),i.warmup_duration?(T(),x("p",w_t,[e[59]||(e[59]=Ze("Warmup duration: ")),l("span",{class:"font-thin",title:"Warmup duration: "+i.warmup_duration},Y(i.warmup_duration),9,R_t)])):B("",!0),i.time_spent?(T(),x("p",A_t,[e[60]||(e[60]=Ze("Generation duration: ")),l("span",{class:"font-thin",title:"Finished generating: "+i.time_spent},Y(i.time_spent),9,M_t)])):B("",!0),i.generation_rate?(T(),x("p",N_t,[e[61]||(e[61]=Ze("Rate: ")),l("span",{class:"font-thin",title:"Generation rate: "+i.generation_rate},Y(i.generation_rate),9,O_t)])):B("",!0)])])])])])}const _N=st(Pft,[["render",I_t]]);ne.defaults.baseURL="/";const k_t={components:{InteractiveMenu:W0},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Ue(()=>{Ve.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(s=>s.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=s=>{this.selectedFile=s.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};Ye.on("file_received",s=>{s.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file -`+s.error,4,!1),this.loading=!1,Ye.off("file_received")}),Ye.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Ue(()=>{Ve.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},D_t={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function L_t(n,e,t,s,r,i){const o=Je("InteractiveMenu");return r.loading?(T(),x("div",D_t,e[0]||(e[0]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),at(o,{key:1,commands:t.commandsList,execute_cmd:i.execute_cmd},null,8,["commands","execute_cmd"]))}const P_t=st(k_t,[["render",L_t],["__scopeId","data-v-1a32c141"]]),F_t="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",U_t="/",B_t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:P_t,ChatBarButton:DM},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:F_t,sendGlobe:fN,bUrl:U_t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const r=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",r),{name:t[0],value:t[0]||"default_value",icon:r,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let s of e)if(s.type.indexOf("image")!==-1){const r=s.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([r],o,{type:r.type});this.addFiles([a])}else if(s.kind==="file"){const r=s.getAsFile();t.push(r)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){ne.get("/download_files")},remove_file(n){ne.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){ne.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,s=24*1024;let r=0,i=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,c=r+a.byteLength>=n.size;Ye.emit("send_file_chunk",{filename:n.name,chunk:a,offset:r,isLastChunk:c,chunkIndex:i}),r+=a.byteLength,i++,c?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(r,r+s);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),Ye.emit("start_bidirectional_audio_stream"),Ue(()=>{Ve.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),Ye.emit("stop_bidirectional_audio_stream"),Ue(()=>{Ve.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return Ue(()=>{Ve.replace()}),sr(n)},removeItem(n){console.log("Removing ",n.name),ne.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await ne.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){Ye.emit("take_picture"),Ye.on("picture_taken",()=>{ne.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const s=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const r=e[t];this.filesList.push(r),this.isFileSentList.push(!1),this.send_file(r,()=>{t++,s()})};s()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ue(()=>{Ve.replace()})},loading(n,e){Ue(()=>{Ve.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let s=0;s{Ve.replace()}),console.log("Chatbar mounted"),Ye.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Ue(()=>{Ve.replace()})}},G_t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},V_t={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},z_t={class:"flex"},H_t=["title"],q_t={key:0},Y_t={class:"flex flex-col max-h-64"},$_t=["title"],W_t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},K_t={key:0,filesList:"",role:"status"},j_t={class:"flex flex-row items-center"},Q_t={class:"whitespace-nowrap"},X_t=["onClick"],Z_t={key:1,class:"flex mx-1 w-500"},J_t={class:"whitespace-nowrap flex flex-row gap-2"},emt={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},tmt={role:"status"},nmt=["src"],smt={class:"flex w-fit relative grow w-full"},rmt={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},imt={key:0,title:"Waiting for reply"},omt=["src"],amt={class:"w-fit"},lmt={class:"w-fit"},cmt={class:"relative grow m-0 p-0"},dmt={class:"m-0 p-0"},umt={class:"flex items-center space-x-3"},pmt={class:"relative inline-block"},fmt={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},_mt={class:"flex flex-col gap-2"};function mmt(n,e,t,s,r,i){const o=Je("ChatBarButton"),a=Je("PersonalitiesCommands");return T(),x("div",G_t,[r.filesList.length>0?(T(),x("div",V_t,[l("div",z_t,[l("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:r.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=$(c=>r.showfilesList=!r.showfilesList,["stop"]))},e[12]||(e[12]=[l("i",{"data-feather":"list"},null,-1)]),8,H_t)]),r.filesList.length>0&&r.showfilesList==!0?(T(),x("div",q_t,[l("div",Y_t,[z(Ir,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ie(()=>[(T(!0),x(Fe,null,We(r.filesList,(c,d)=>(T(),x("div",{key:d+"-"+c.name},[l("div",{class:"m-1",title:c.name},[l("div",W_t,[r.isFileSentList[d]?B("",!0):(T(),x("div",K_t,e[13]||(e[13]=[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),l("div",{class:Le(["line-clamp-1 w-3/5",r.isFileSentList[d]?"text-green-500":"text-red-200"])},Y(c.name),3),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),l("div",j_t,[l("p",Q_t,Y(i.computedFileSize(c.size)),1),l("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>i.removeItem(c)},e[14]||(e[14]=[l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,X_t)])])],8,$_t)]))),128))]),_:1})])])):B("",!0),r.filesList.length>0?(T(),x("div",Z_t,[l("div",J_t,[e[17]||(e[17]=l("p",{class:"font-bold"}," Total size: ",-1)),Ze(" "+Y(r.totalSize)+" ("+Y(r.filesList.length)+") ",1)]),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...c)=>i.clear_files&&i.clear_files(...c))},e[18]||(e[18]=[l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),l("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>i.download_files&&i.download_files(...c))},e[19]||(e[19]=[l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):B("",!0)])):B("",!0),r.selecting_model||r.selecting_binding?(T(),x("div",emt,[l("div",tmt,[l("img",{src:r.loader_v0,class:"w-50 h-50"},null,8,nmt),e[21]||(e[21]=l("span",{class:"sr-only"},"Selecting model...",-1))])])):B("",!0),l("div",smt,[l("div",rmt,[t.loading?(T(),x("div",imt,[l("img",{src:r.loader_v0},null,8,omt),e[22]||(e[22]=l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1))])):B("",!0),z(o,{onClick:i.toggleLeftPanel,class:Le({"text-red-500":i.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ie(()=>[k(l("div",null,e[23]||(e[23]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,i.leftPanelCollapsed]]),k(l("div",null,e[24]||(e[24]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,!i.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),l("div",amt,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),at(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:i.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",lmt,[i.isDataSourceNamesValid?(T(),at(a,{key:0,icon:"feather:book",commandsList:i.dataSourceNames,sendCommand:i.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",cmt,[l("form",dmt,[k(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>r.message=c),onPaste:e[4]||(e[4]=(...c)=>i.handlePaste&&i.handlePaste(...c)),onKeydown:e[5]||(e[5]=Jn($(c=>i.submitOnEnter(c),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[ae,r.message]])])]),l("div",umt,[t.loading?(T(),at(o,{key:0,onClick:i.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>e[25]||(e[25]=[l("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ie(()=>[e[26]||(e[26]=l("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),at(o,{key:1,onClick:i.submit,title:"Send"},{icon:Ie(()=>e[27]||(e[27]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),z(o,{onClick:i.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>e[28]||(e[28]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.startSpeechRecognition,class:Le({"text-red-500":r.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>e[29]||(e[29]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),at(o,{key:2,onClick:e[6]||(e[6]=c=>r.is_rt?i.stopRTCom:i.startRTCom),class:Le(r.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>e[30]||(e[30]=[Ze(" 🌟 ")])),_:1},8,["class"])):B("",!0),t.loading?B("",!0):(T(),x("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...c)=>i.hideSendMenu&&i.hideSendMenu(...c))},[l("div",pmt,[k(l("div",{onMouseenter:e[7]||(e[7]=(...c)=>i.showSendMenu&&i.showSendMenu(...c)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",fmt,[l("div",_mt,[z(o,{onClick:i.add_file,title:"Send file"},{icon:Ie(()=>e[31]||(e[31]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.takePicture,title:"Take picture"},{icon:Ie(()=>e[32]||(e[32]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.addWebLink,title:"Add web link"},{icon:Ie(()=>e[33]||(e[33]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[ht,r.isSendMenuVisible]]),l("div",{onMouseenter:e[9]||(e[9]=(...c)=>i.showSendMenu&&i.showSendMenu(...c))},[l("button",{onClick:e[8]||(e[8]=$((...c)=>n.toggleSendMenu&&n.toggleSendMenu(...c),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),z(o,{onClick:i.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>e[35]||(e[35]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>e[36]||(e[36]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.toggleRightPanel,class:Le({"text-red-500":!i.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ie(()=>[k(l("div",null,e[37]||(e[37]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,i.rightPanelCollapsed]]),k(l("div",null,e[38]||(e[38]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,!i.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...c)=>i.addFiles&&i.addFiles(...c)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=l("div",{class:"ml-auto gap-2"},null,-1))])])}const mN=st(B_t,[["render",mmt],["__scopeId","data-v-e3d676fa"]]),hmt={name:"WelcomeComponent",setup(){const n=KD();return{logoSrc:et(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Bs)}}},gmt={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},bmt={class:"text-center max-w-4xl"},ymt={class:"flex items-center justify-center gap-8 mb-12"},vmt={class:"relative w-24 h-24"},Emt=["src"],Smt={class:"flex flex-col items-start"},Tmt={class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"},xmt={class:"space-y-8 animate-fade-in-up"},Cmt={class:"text-4xl font-semibold text-gray-800 dark:text-gray-200"},wmt={class:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto"};function Rmt(n,e,t,s,r,i){return T(),x("div",gmt,[l("div",bmt,[l("div",ymt,[l("div",vmt,[l("img",{src:s.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,Emt)]),l("div",Smt,[l("h1",Tmt,Y(n.$store.state.theme_vars.lollms_title),1),e[0]||(e[0]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ",-1))])]),l("div",xmt,[l("h2",Cmt,Y(n.$store.state.theme_vars.lollms_welcome_short_message),1),l("p",wmt,Y(n.$store.state.theme_vars.lollms_welcome_message),1),e[1]||(e[1]=l("div",{class:"mt-12 space-y-6"},[l("p",{class:"text-lg text-gray-700 dark:text-gray-300"}," Discover the capabilities of L🌟LLMS: "),l("ul",{class:"text-left list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2"},[l("li",null,"Engage in natural language conversations"),l("li",null,"Generate creative content and ideas"),l("li",null,"Analyze complex data and provide insights"),l("li",null,"Assist with coding and technical tasks"),l("li",null,"Process and understand multimodal inputs")])],-1))])])])}const hN=st(hmt,[["render",Rmt],["__scopeId","data-v-9ac7c8e3"]]);var Amt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ou=function(){return ou=Object.assign||function(n){for(var e,t=1,s=arguments.length;t{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},Omt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Imt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},kmt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},Dmt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},Lmt={class:"w-full flex flex-row mt-4 text-center justify-center"},Pmt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},Fmt={class:"mb-4 w-full"},Umt={class:"w-full bg-bg-light dark:bg-bg-dark"};function Bmt(n,e,t,s,r,i){return r.show?(T(),x("div",Omt,[l("div",Imt,[l("div",kmt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",Dmt,[l("div",Lmt,[l("button",{type:"submit",onClick:e[1]||(e[1]=$((...o)=>i.submitForm&&i.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",Pmt,[l("form",Fmt,[l("table",Umt,[l("tr",null,[e[18]||(e[18]=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[ae,t.config.personality_conditioning]])])]),l("tr",null,[e[19]||(e[19]=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[ae,t.config.user_message_prefix]])])]),l("tr",null,[e[20]||(e[20]=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[ae,t.config.ai_message_prefix]])])]),l("tr",null,[e[21]||(e[21]=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[ae,t.config.link_text]])])]),l("tr",null,[e[22]||(e[22]=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[ae,t.config.welcome_message]])])]),l("tr",null,[e[23]||(e[23]=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1)),l("td",null,[k(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[ae,t.config.model_temperature]])])]),l("tr",null,[e[24]||(e[24]=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[ae,t.config.model_top_k]])])]),l("tr",null,[e[25]||(e[25]=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[ae,t.config.model_top_p]])])]),l("tr",null,[e[26]||(e[26]=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[ae,t.config.model_repeat_penalty]])])]),l("tr",null,[e[27]||(e[27]=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[ae,t.config.model_repeat_last_n]])])]),l("tr",null,[e[28]||(e[28]=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[ae,t.config.recommended_binding]])])]),l("tr",null,[e[29]||(e[29]=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[ae,t.config.recommended_model]])])]),l("tr",null,[e[30]||(e[30]=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[ae,t.config.dependencies]])])]),l("tr",null,[e[31]||(e[31]=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[ae,t.config.anti_prompts]])])])])])])])])])])):B("",!0)}const AN=st(Nmt,[["render",Bmt]]),Gmt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},Vmt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},zmt={class:"popup-container"},Hmt=["src"],qmt={class:"checkbox-container"};function Ymt(n,e,t,s,r,i){return T(),at(ir,{name:"fade"},{default:Ie(()=>[r.showPopup?(T(),x("div",Vmt,[l("div",zmt,[l("button",{onClick:e[0]||(e[0]=(...o)=>i.hide&&i.hide(...o)),class:"close-button"}," X "),l("iframe",{src:r.webpageUrl,class:"iframe-content"},null,8,Hmt),l("div",qmt,[k(l("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>i.save_configuration&&i.save_configuration(...o))},null,544),[[He,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):B("",!0)]),_:1})}const MN=st(Gmt,[["render",Ymt],["__scopeId","data-v-d504dfc9"]]),$mt="/assets/fastapi-BQj-rjUJ.png",Wmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Kmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",jmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",Qmt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",Xmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Zmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Jmt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",eht="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",tht="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",nht="/assets/robot-CQPaMbxU.svg",sht="/";ne.defaults.baseURL="/";const rht={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:C0,UniversalForm:yM},data(){return{bUrl:sht,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return console.log("asked for:",this.$store.state.mountedPers),this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ne.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(r=>r===n.full_path),s={client_id:this.$store.state.client_id,id:t};e=await ne.post("/select_personality",s),console.log("Generating message from ",e.data.status),Ye.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await ne.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{ne.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{ne.post("/set_active_personality_settings",t).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):this.$store.state.toast.showToast(`Did not get Personality settings responses. +`+s.error,4,!1),this.loading=!1,Ye.off("file_received")}),Ye.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Ue(()=>{Ve.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},D_t={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function L_t(n,e,t,s,r,i){const o=Je("InteractiveMenu");return r.loading?(T(),x("div",D_t,e[0]||(e[0]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),at(o,{key:1,commands:t.commandsList,execute_cmd:i.execute_cmd},null,8,["commands","execute_cmd"]))}const P_t=st(k_t,[["render",L_t],["__scopeId","data-v-1a32c141"]]),F_t="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",U_t="/",B_t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:P_t,ChatBarButton:DM},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:F_t,sendGlobe:fN,bUrl:U_t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const r=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",r),{name:t[0],value:t[0]||"default_value",icon:r,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let s of e)if(s.type.indexOf("image")!==-1){const r=s.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([r],o,{type:r.type});this.addFiles([a])}else if(s.kind==="file"){const r=s.getAsFile();t.push(r)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){ne.get("/download_files")},remove_file(n){ne.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){ne.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,s=24*1024;let r=0,i=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,c=r+a.byteLength>=n.size;Ye.emit("send_file_chunk",{filename:n.name,chunk:a,offset:r,isLastChunk:c,chunkIndex:i}),r+=a.byteLength,i++,c?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(r,r+s);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),Ye.emit("start_bidirectional_audio_stream"),Ue(()=>{Ve.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),Ye.emit("stop_bidirectional_audio_stream"),Ue(()=>{Ve.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return Ue(()=>{Ve.replace()}),rr(n)},removeItem(n){console.log("Removing ",n.name),ne.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await ne.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){Ye.emit("take_picture"),Ye.on("picture_taken",()=>{ne.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const s=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const r=e[t];this.filesList.push(r),this.isFileSentList.push(!1),this.send_file(r,()=>{t++,s()})};s()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ue(()=>{Ve.replace()})},loading(n,e){Ue(()=>{Ve.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let s=0;s{Ve.replace()}),console.log("Chatbar mounted"),Ye.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Ue(()=>{Ve.replace()})}},G_t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},V_t={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},z_t={class:"flex"},H_t=["title"],q_t={key:0},Y_t={class:"flex flex-col max-h-64"},$_t=["title"],W_t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},K_t={key:0,filesList:"",role:"status"},j_t={class:"flex flex-row items-center"},Q_t={class:"whitespace-nowrap"},X_t=["onClick"],Z_t={key:1,class:"flex mx-1 w-500"},J_t={class:"whitespace-nowrap flex flex-row gap-2"},emt={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},tmt={role:"status"},nmt=["src"],smt={class:"flex w-fit relative grow w-full"},rmt={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},imt={key:0,title:"Waiting for reply"},omt=["src"],amt={class:"w-fit"},lmt={class:"w-fit"},cmt={class:"relative grow m-0 p-0"},dmt={class:"m-0 p-0"},umt={class:"flex items-center space-x-3"},pmt={class:"relative inline-block"},fmt={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},_mt={class:"flex flex-col gap-2"};function mmt(n,e,t,s,r,i){const o=Je("ChatBarButton"),a=Je("PersonalitiesCommands");return T(),x("div",G_t,[r.filesList.length>0?(T(),x("div",V_t,[l("div",z_t,[l("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:r.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=$(c=>r.showfilesList=!r.showfilesList,["stop"]))},e[12]||(e[12]=[l("i",{"data-feather":"list"},null,-1)]),8,H_t)]),r.filesList.length>0&&r.showfilesList==!0?(T(),x("div",q_t,[l("div",Y_t,[z(Ir,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ie(()=>[(T(!0),x(Fe,null,We(r.filesList,(c,d)=>(T(),x("div",{key:d+"-"+c.name},[l("div",{class:"m-1",title:c.name},[l("div",W_t,[r.isFileSentList[d]?B("",!0):(T(),x("div",K_t,e[13]||(e[13]=[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),l("div",{class:Le(["line-clamp-1 w-3/5",r.isFileSentList[d]?"text-green-500":"text-red-200"])},Y(c.name),3),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),l("div",j_t,[l("p",Q_t,Y(i.computedFileSize(c.size)),1),l("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>i.removeItem(c)},e[14]||(e[14]=[l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,X_t)])])],8,$_t)]))),128))]),_:1})])])):B("",!0),r.filesList.length>0?(T(),x("div",Z_t,[l("div",J_t,[e[17]||(e[17]=l("p",{class:"font-bold"}," Total size: ",-1)),Ze(" "+Y(r.totalSize)+" ("+Y(r.filesList.length)+") ",1)]),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...c)=>i.clear_files&&i.clear_files(...c))},e[18]||(e[18]=[l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),l("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>i.download_files&&i.download_files(...c))},e[19]||(e[19]=[l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):B("",!0)])):B("",!0),r.selecting_model||r.selecting_binding?(T(),x("div",emt,[l("div",tmt,[l("img",{src:r.loader_v0,class:"w-50 h-50"},null,8,nmt),e[21]||(e[21]=l("span",{class:"sr-only"},"Selecting model...",-1))])])):B("",!0),l("div",smt,[l("div",rmt,[t.loading?(T(),x("div",imt,[l("img",{src:r.loader_v0},null,8,omt),e[22]||(e[22]=l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1))])):B("",!0),z(o,{onClick:i.toggleLeftPanel,class:Le({"text-red-500":i.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ie(()=>[k(l("div",null,e[23]||(e[23]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,i.leftPanelCollapsed]]),k(l("div",null,e[24]||(e[24]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,!i.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),l("div",amt,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),at(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:i.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",lmt,[i.isDataSourceNamesValid?(T(),at(a,{key:0,icon:"feather:book",commandsList:i.dataSourceNames,sendCommand:i.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",cmt,[l("form",dmt,[k(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>r.message=c),onPaste:e[4]||(e[4]=(...c)=>i.handlePaste&&i.handlePaste(...c)),onKeydown:e[5]||(e[5]=Jn($(c=>i.submitOnEnter(c),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[ae,r.message]])])]),l("div",umt,[t.loading?(T(),at(o,{key:0,onClick:i.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>e[25]||(e[25]=[l("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ie(()=>[e[26]||(e[26]=l("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),at(o,{key:1,onClick:i.submit,title:"Send"},{icon:Ie(()=>e[27]||(e[27]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),z(o,{onClick:i.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>e[28]||(e[28]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.startSpeechRecognition,class:Le({"text-red-500":r.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>e[29]||(e[29]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),at(o,{key:2,onClick:e[6]||(e[6]=c=>r.is_rt?i.stopRTCom:i.startRTCom),class:Le(r.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>e[30]||(e[30]=[Ze(" 🌟 ")])),_:1},8,["class"])):B("",!0),t.loading?B("",!0):(T(),x("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...c)=>i.hideSendMenu&&i.hideSendMenu(...c))},[l("div",pmt,[k(l("div",{onMouseenter:e[7]||(e[7]=(...c)=>i.showSendMenu&&i.showSendMenu(...c)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",fmt,[l("div",_mt,[z(o,{onClick:i.add_file,title:"Send file"},{icon:Ie(()=>e[31]||(e[31]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.takePicture,title:"Take picture"},{icon:Ie(()=>e[32]||(e[32]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.addWebLink,title:"Add web link"},{icon:Ie(()=>e[33]||(e[33]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[ht,r.isSendMenuVisible]]),l("div",{onMouseenter:e[9]||(e[9]=(...c)=>i.showSendMenu&&i.showSendMenu(...c))},[l("button",{onClick:e[8]||(e[8]=$((...c)=>n.toggleSendMenu&&n.toggleSendMenu(...c),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),z(o,{onClick:i.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>e[35]||(e[35]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>e[36]||(e[36]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.toggleRightPanel,class:Le({"text-red-500":!i.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ie(()=>[k(l("div",null,e[37]||(e[37]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,i.rightPanelCollapsed]]),k(l("div",null,e[38]||(e[38]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,!i.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...c)=>i.addFiles&&i.addFiles(...c)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=l("div",{class:"ml-auto gap-2"},null,-1))])])}const mN=st(B_t,[["render",mmt],["__scopeId","data-v-e3d676fa"]]),hmt={name:"WelcomeComponent",setup(){const n=KD(),e=it(""),t=it(""),s=et(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Bs),r=async()=>{try{const i=await ne.get("/get_news");e.value=i.data,document.getElementById("newsContent").innerHTML=e.value,document.getElementById("newsContainer").style.display="block"}catch(i){console.error("Failed to fetch latest news:",i),t.value="Unable to fetch the latest news. Please try again later.",document.getElementById("errorContainer").textContent=i,document.getElementById("errorContainer").style.display="block"}};return qs(()=>{r()}),{logoSrc:s,latestNews:e,error:t}}},gmt={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},bmt={class:"text-center max-w-4xl"},ymt={class:"flex items-center justify-center gap-8 mb-12"},vmt={class:"relative w-24 h-24"},Emt=["src"],Smt={class:"flex flex-col items-start"},Tmt={class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"},xmt={class:"space-y-8 animate-fade-in-up"},Cmt={class:"text-4xl font-semibold text-gray-800 dark:text-gray-200"},wmt={class:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto"};function Rmt(n,e,t,s,r,i){return T(),x("div",gmt,[l("div",bmt,[l("div",ymt,[l("div",vmt,[l("img",{src:s.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,Emt)]),l("div",Smt,[l("h1",Tmt,Y(n.$store.state.theme_vars.lollms_title),1),e[0]||(e[0]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ",-1))])]),l("div",xmt,[l("h2",Cmt,Y(n.$store.state.theme_vars.lollms_welcome_short_message),1),l("p",wmt,Y(n.$store.state.theme_vars.lollms_welcome_message),1)]),e[1]||(e[1]=l("div",{id:"newsContainer",class:"mt-12 p-6 bg-gray-100 dark:bg-gray-800 rounded-lg shadow-md animate-fade-in-up overflow-y-scroll",style:{display:"none"}},[l("h3",{class:"text-2xl font-semibold text-gray-800 dark:text-gray-200 mb-4"},"Latest LoLLMS News"),l("p",{id:"newsContent",class:"text-gray-600 dark:text-gray-300"})],-1)),e[2]||(e[2]=l("div",{id:"errorContainer",class:"mt-6 text-red-500 dark:text-red-400",style:{display:"none"}},null,-1))])])}const hN=st(hmt,[["render",Rmt],["__scopeId","data-v-3cdb05d5"]]);var Amt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ou=function(){return ou=Object.assign||function(n){for(var e,t=1,s=arguments.length;t{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},Omt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Imt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},kmt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},Dmt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},Lmt={class:"w-full flex flex-row mt-4 text-center justify-center"},Pmt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},Fmt={class:"mb-4 w-full"},Umt={class:"w-full bg-bg-light dark:bg-bg-dark"};function Bmt(n,e,t,s,r,i){return r.show?(T(),x("div",Omt,[l("div",Imt,[l("div",kmt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",Dmt,[l("div",Lmt,[l("button",{type:"submit",onClick:e[1]||(e[1]=$((...o)=>i.submitForm&&i.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",Pmt,[l("form",Fmt,[l("table",Umt,[l("tr",null,[e[18]||(e[18]=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[ae,t.config.personality_conditioning]])])]),l("tr",null,[e[19]||(e[19]=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[ae,t.config.user_message_prefix]])])]),l("tr",null,[e[20]||(e[20]=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[ae,t.config.ai_message_prefix]])])]),l("tr",null,[e[21]||(e[21]=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[ae,t.config.link_text]])])]),l("tr",null,[e[22]||(e[22]=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[ae,t.config.welcome_message]])])]),l("tr",null,[e[23]||(e[23]=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1)),l("td",null,[k(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[ae,t.config.model_temperature]])])]),l("tr",null,[e[24]||(e[24]=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[ae,t.config.model_top_k]])])]),l("tr",null,[e[25]||(e[25]=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[ae,t.config.model_top_p]])])]),l("tr",null,[e[26]||(e[26]=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[ae,t.config.model_repeat_penalty]])])]),l("tr",null,[e[27]||(e[27]=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[ae,t.config.model_repeat_last_n]])])]),l("tr",null,[e[28]||(e[28]=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[ae,t.config.recommended_binding]])])]),l("tr",null,[e[29]||(e[29]=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[ae,t.config.recommended_model]])])]),l("tr",null,[e[30]||(e[30]=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[ae,t.config.dependencies]])])]),l("tr",null,[e[31]||(e[31]=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[ae,t.config.anti_prompts]])])])])])])])])])])):B("",!0)}const AN=st(Nmt,[["render",Bmt]]),Gmt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},Vmt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},zmt={class:"popup-container"},Hmt=["src"],qmt={class:"checkbox-container"};function Ymt(n,e,t,s,r,i){return T(),at(or,{name:"fade"},{default:Ie(()=>[r.showPopup?(T(),x("div",Vmt,[l("div",zmt,[l("button",{onClick:e[0]||(e[0]=(...o)=>i.hide&&i.hide(...o)),class:"close-button"}," X "),l("iframe",{src:r.webpageUrl,class:"iframe-content"},null,8,Hmt),l("div",qmt,[k(l("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>i.save_configuration&&i.save_configuration(...o))},null,544),[[He,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):B("",!0)]),_:1})}const MN=st(Gmt,[["render",Ymt],["__scopeId","data-v-d504dfc9"]]),$mt="/assets/fastapi-BQj-rjUJ.png",Wmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Kmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",jmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",Qmt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",Xmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Zmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Jmt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",eht="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",tht="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",nht="/assets/robot-CQPaMbxU.svg",sht="/";ne.defaults.baseURL="/";const rht={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:C0,UniversalForm:yM},data(){return{bUrl:sht,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return console.log("asked for:",this.$store.state.mountedPers),this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ne.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(r=>r===n.full_path),s={client_id:this.$store.state.client_id,id:t};e=await ne.post("/select_personality",s),console.log("Generating message from ",e.data.status),Ye.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await ne.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{ne.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{ne.post("/set_active_personality_settings",t).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):this.$store.state.toast.showToast(`Did not get Personality settings responses. `+s,4,!1)})}catch(s){this.$store.state.toast.showToast(`Did not get Personality settings responses. Endpoint error: `+s.message,4,!1)}}):this.$store.state.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Ue(()=>{Ve.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=K0}}},iht={class:"relative group/item"},oht=["src","alt"],aht={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},lht={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},cht={class:"text-xs font-bold"};function dht(n,e,t,s,r,i){const o=Je("UniversalForm");return T(),x(Fe,null,[l("div",iht,[l("button",{onClick:e[1]||(e[1]=$((...a)=>i.onSettingsPersonality&&i.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:i.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>i.personalityImgPlacehodler&&i.personalityImgPlacehodler(...a)),alt:i.mountedPers.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,oht)]),l("div",aht,[l("button",{onClick:e[2]||(e[2]=$(a=>i.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),l("button",{onClick:e[3]||(e[3]=$(a=>i.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),l("button",lht,[l("span",cht,"+"+Y(i.mountedPersArr.length-1),1)])])]),z(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const NN=st(rht,[["render",dht]]),uht={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},pht={key:0,class:"absolute inset-0 pointer-events-none overflow-hidden"},fht={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},_ht={class:"mb-8 w-full"},mht={class:"text-5xl md:text-6xl font-bold text-amber-500 mb-2 hover:scale-105 transition-transform",style:{"text-shadow":`2px 2px 4px rgba(0,0,0,0.2), \r 2px 2px 0px white, \r -2px -2px 0px white, \r 2px -2px 0px white, \r - -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},hht={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},ght={class:"text-lg text-gray-700 dark:text-gray-300"},bht=["innerHTML"],yht={class:"animated-progressbar-bg"},vht={class:"w-full max-w-2xl"},Eht={role:"status",class:"w-full"},Sht={class:"text-xl text-gray-700 dark:text-gray-300"},Tht={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},xht={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},Cht={class:"logo-container"},wht=["src"],Rht={class:"toolbar discussion"},Aht={class:"toolbar-container"},Mht={class:"p-4 flex flex-wrap gap-2 items-center"},Nht={class:"relative"},Oht={class:"relative"},Iht={key:4,title:"Loading..",class:"flex justify-center"},kht={key:5,class:"flex justify-center space-x-4"},Dht={key:6,class:"flex flex-col space-y-2"},Lht={class:"relative inline-block"},Pht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Fht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Uht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Bht=["onClick","title"],Ght=["src","alt"],Vht=["title"],zht={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Hht=["onClick"],qht={class:"flex space-x-1"},Yht=["onClick"],$ht=["src","title"],Wht={class:"relative inline-block"},Kht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},jht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Qht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Xht=["onClick","title"],Zht=["src","alt"],Jht=["title"],egt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},tgt=["onClick"],ngt={class:"flex space-x-1"},sgt=["onClick"],rgt=["src","title"],igt={class:"relative inline-block"},ogt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},agt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},lgt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},cgt=["onClick","title"],dgt=["src","alt"],ugt=["title"],pgt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},fgt=["onClick"],_gt={class:"flex space-x-1"},mgt=["onClick"],hgt=["onClick"],ggt=["onClick"],bgt={class:"w-auto max-w-md mx-auto p-2"},ygt={class:"flex items-center"},vgt={class:"relative flex-grow"},Egt={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},Sgt={class:"flex flex-col space-y-2"},Tgt={key:0},xgt={key:1,class:"flex space-x-2"},Cgt={key:1,class:"flex space-x-2"},wgt={class:"flex space-x-2"},Rgt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Agt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Mgt={class:"flex flex-row panels-color"},Ngt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Ogt={key:0,class:"relative flex flex-col flex-grow"},Igt={class:"container pt-4 pb-50 mb-50 w-full"},kgt={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2"},Dgt={class:"overflow-x-auto flex-grow scrollbar-thin scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-600 scrollbar-track-gray-200 dark:scrollbar-track-gray-800 scrollbar-thumb-rounded-full scrollbar-track-rounded-full"},Lgt={class:"flex flex-nowrap gap-6 p-4 min-w-full"},Pgt=["title","onClick"],Fgt={class:"space-y-3"},Ugt=["title"],Bgt=["title"],Ggt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Vgt={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},zgt={class:"flex-1 flex flex-col min-h-0"},Hgt={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},qgt={class:"flex-1 h-[200px] overflow-y-auto scrollbar scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-500 scrollbar-track-gray-200 dark:scrollbar-track-gray-700 scrollbar-thin rounded-md"},Ygt={class:"text-base whitespace-pre-wrap"},$gt={class:"flex-1 overflow-y-auto"},Wgt={class:"space-y-4"},Kgt=["for"],jgt=["id","onUpdate:modelValue","placeholder"],Qgt=["id","onUpdate:modelValue"],Xgt=["id","onUpdate:modelValue"],Zgt=["id","onUpdate:modelValue"],Jgt={key:4,class:"border rounded-md overflow-hidden"},ebt={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},tbt=["id","onUpdate:modelValue"],nbt=["id","onUpdate:modelValue"],sbt=["value"],rbt={class:"mt-6 flex justify-end space-x-4"},ibt={key:0,class:"flex flex-row items-center justify-center h-10"},obt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},abt={ref:"isolatedContent",class:"h-full"},lbt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},cbt={class:"text-2xl animate-pulse mt-2 text-white"},dbt={id:"app"},ubt=n=>{const e=n.replace("[","").replace("]","").split("::"),t=e[0];if(e.length===1)return{label:t,type:"text",fullText:n};const s=e[1],r={label:t,type:s,fullText:n};switch(s){case"int":case"float":case"multiline":break;case"code":r.language=e[2]||"plaintext";break;case"options":r.options=e[2]?e[2].split(",").map(i=>i.trim()):[];break;default:r.type="text"}return r},pbt="/",fbt={setup(){},data(){return{interestingFacts:["Saïph, the new version of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","Did you know? The first computer programmer was a woman - Ada Lovelace!","Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.","LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.","Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.","Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.","Modern LLMs like GPT-4 can understand and generate multiple languages, code, and even analyze images.","LoLLMs supports multiple AI models and can perform tasks like code interpretation, image analysis, and internet searches.","The term 'transformer' in AI, which powers most modern LLMs, was introduced in the 'Attention is All You Need' paper in 2017.","LoLLMs can generate various types of diagrams, including SVG, Graphviz, and Mermaid diagrams.","The Python programming language was named after Monty Python.","LoLLMs features a built-in code interpreter that can execute multiple programming languages.","Quantum computers can perform calculations in minutes that would take classical computers thousands of years.","LoLLMs supports multimodal interactions, allowing users to work with both text and images.","The name Saïph in Arabic (سيف) means 'sword', symbolizing cutting-edge AI technology.",'
',"LoLLMs' version naming often contains clever easter eggs and references to AI advancements.","The 'Strawberry' version of LoLLMs was a playful nod to ChatGPT's internal codename for one of its versions.","The 'Saïph' version name was an intentional reference to Orion, anticipating OpenAI's rumored AGI-capable model codenamed 'Orion'.","LoLLMs' evolution can be traced through its version names: Warp, Starship, Robot, Brainwave, Strawberry, Feather and Saïph.","Each LoLLMs version name reflects either technological advancement or pays homage to significant developments in AI.","'Warp' and 'Starship' versions symbolized the quantum leap in AI capabilities and speed improvements.","'Robot' represented the system's growing autonomy and ability to perform complex tasks.","'Brainwave' highlighted the neural network aspects and cognitive capabilities of the system.","LoLLMs' version naming shows ParisNeo's keen awareness of industry trends and playful approach to development.","LoLLMs can generate and visualize mathematical equations using LaTeX, making it a powerful tool for scientific documentation.","The system's multimodel capabilities allow it to analyze medical images, architectural blueprints, and technical diagrams.","LoLLMs includes a unique feature called 'personality system' that allows it to adapt its communication style and expertise.","Did you know? LoLLMs can process and generate music notation using ABC notation or LilyPond formats.","LoLLMs supports over 2000 different AI models, making it one of the most versatile open-source AI platforms.","The system can generate realistic 3D scenes descriptions that can be rendered using tools like Blender.","LoLLMs features a unique 'model fusion' capability, combining strengths of different AI models for better results.","The platform includes specialized modules for scientific computing, allowing it to solve complex mathematical problems.","LoLLMs can analyze and generate code in over 20 programming languages, including rare ones like COBOL and Fortran.","The system includes advanced prompt engineering tools, helping users get better results from AI models.","LoLLMs can generate and interpret QR codes, making it useful for creating interactive marketing materials.","The platform supports real-time voice interaction through its advanced speech-to-text and text-to-speech capabilities.","LoLLMs can analyze satellite imagery for environmental monitoring and urban planning applications.","The system includes specialized modules for protein folding prediction and molecular visualization.","LoLLMs features a built-in 'ethical AI' framework that ensures responsible and bias-aware AI interactions.","The platform can generate realistic synthetic data while preserving privacy and maintaining statistical properties.","LoLLMs includes advanced natural language processing capabilities in over 100 languages.","The system can perform sentiment analysis on social media trends and customer feedback in real-time.","LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships.","The platform includes specialized tools for quantum computing simulation and algorithm development."],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:Kmt,animated_info:jmt,normal_mode:Xmt,fun_mode:Qmt,is_first_connection:!0,discord:Wmt,FastAPI:$mt,modelImgPlaceholder:$n,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",lastMessageHtml:"",defaultMessageHtml:` + -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},hht={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},ght={class:"text-lg text-gray-700 dark:text-gray-300"},bht=["innerHTML"],yht={class:"animated-progressbar-bg"},vht={class:"w-full max-w-2xl"},Eht={role:"status",class:"w-full"},Sht={class:"text-xl text-gray-700 dark:text-gray-300"},Tht={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},xht={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},Cht={class:"logo-container"},wht=["src"],Rht={class:"toolbar discussion"},Aht={class:"toolbar-container"},Mht={class:"p-4 flex flex-wrap gap-2 items-center"},Nht={class:"relative"},Oht={class:"relative"},Iht={key:4,title:"Loading..",class:"flex justify-center"},kht={key:5,class:"flex justify-center space-x-4"},Dht={key:6,class:"flex flex-col space-y-2"},Lht={class:"relative inline-block"},Pht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Fht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Uht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Bht=["onClick","title"],Ght=["src","alt"],Vht=["title"],zht={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Hht=["onClick"],qht={class:"flex space-x-1"},Yht=["onClick"],$ht=["src","title"],Wht={class:"relative inline-block"},Kht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},jht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Qht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Xht=["onClick","title"],Zht=["src","alt"],Jht=["title"],egt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},tgt=["onClick"],ngt={class:"flex space-x-1"},sgt=["onClick"],rgt=["src","title"],igt={class:"relative inline-block"},ogt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},agt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},lgt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},cgt=["onClick","title"],dgt=["src","alt"],ugt=["title"],pgt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},fgt=["onClick"],_gt={class:"flex space-x-1"},mgt=["onClick"],hgt=["onClick"],ggt=["onClick"],bgt={class:"w-auto max-w-md mx-auto p-2"},ygt={class:"flex items-center"},vgt={class:"relative flex-grow"},Egt={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},Sgt={class:"flex flex-col space-y-2"},Tgt={key:0},xgt={key:1,class:"flex space-x-2"},Cgt={key:1,class:"flex space-x-2"},wgt={class:"flex space-x-2"},Rgt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Agt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Mgt={class:"flex flex-row panels-color"},Ngt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Ogt={key:0,class:"relative flex flex-col flex-grow"},Igt={class:"container pt-4 pb-50 mb-50 w-full"},kgt={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2"},Dgt={class:"overflow-x-auto flex-grow scrollbar-thin scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-600 scrollbar-track-gray-200 dark:scrollbar-track-gray-800 scrollbar-thumb-rounded-full scrollbar-track-rounded-full"},Lgt={class:"flex flex-nowrap gap-6 p-4 min-w-full"},Pgt=["title","onClick"],Fgt={class:"space-y-3"},Ugt=["title"],Bgt=["title"],Ggt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Vgt={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},zgt={class:"flex-1 flex flex-col min-h-0"},Hgt={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},qgt={class:"flex-1 h-[200px] overflow-y-auto scrollbar scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-500 scrollbar-track-gray-200 dark:scrollbar-track-gray-700 scrollbar-thin rounded-md"},Ygt={class:"text-base whitespace-pre-wrap"},$gt={class:"flex-1 overflow-y-auto"},Wgt={class:"space-y-4"},Kgt=["for"],jgt=["id","onUpdate:modelValue","placeholder"],Qgt=["id","onUpdate:modelValue"],Xgt=["id","onUpdate:modelValue"],Zgt=["id","onUpdate:modelValue"],Jgt={key:4,class:"border rounded-md overflow-hidden"},ebt={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},tbt=["id","onUpdate:modelValue"],nbt=["id","onUpdate:modelValue"],sbt=["value"],rbt={class:"mt-6 flex justify-end space-x-4"},ibt={key:0,class:"flex flex-row items-center justify-center h-10"},obt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},abt={ref:"isolatedContent",class:"h-full"},lbt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},cbt={class:"text-2xl animate-pulse mt-2 text-white"},dbt={id:"app"},ubt=n=>{const e=n.replace("[","").replace("]","").split("::"),t=e[0];if(e.length===1)return{label:t,type:"text",fullText:n};const s=e[1],r={label:t,type:s,fullText:n};switch(s){case"int":case"float":case"multiline":break;case"code":r.language=e[2]||"plaintext";break;case"options":r.options=e[2]?e[2].split(",").map(i=>i.trim()):[];break;default:r.type="text"}return r},pbt="/",fbt={setup(){},data(){return{interestingFacts:["Saïph, the new version of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","Did you know? The first computer programmer was a woman - Ada Lovelace!","Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.","LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.","Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.","Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.","Modern LLMs like GPT-4 can understand and generate multiple languages, code, and even analyze images.","LoLLMs supports multiple AI models and can perform tasks like code interpretation, image analysis, and internet searches.","The term 'transformer' in AI, which powers most modern LLMs, was introduced in the 'Attention is All You Need' paper in 2017.","LoLLMs can generate various types of diagrams, including SVG, Graphviz, and Mermaid diagrams.","The Python programming language was named after Monty Python.","LoLLMs features a built-in code interpreter that can execute multiple programming languages.","Quantum computers can perform calculations in minutes that would take classical computers thousands of years.","LoLLMs supports multimodal interactions, allowing users to work with both text and images.","The name Saïph in Arabic (سيف) means 'sword', symbolizing cutting-edge AI technology.",'
',"LoLLMs' version naming often contains clever easter eggs and references to AI advancements.","The 'Strawberry' version of LoLLMs was a playful nod to ChatGPT's internal codename for one of its versions.","The 'Saïph' version name was an intentional reference to Orion, anticipating OpenAI's rumored AGI-capable model codenamed 'Orion'.","LoLLMs' evolution can be traced through its version names: Warp, Starship, Robot, Brainwave, Strawberry, Feather and Saïph.","Each LoLLMs version name reflects either technological advancement or pays homage to significant developments in AI.","'Warp' and 'Starship' versions symbolized the quantum leap in AI capabilities and speed improvements.","'Robot' represented the system's growing autonomy and ability to perform complex tasks.","'Brainwave' highlighted the neural network aspects and cognitive capabilities of the system.","LoLLMs' version naming shows ParisNeo's keen awareness of industry trends and playful approach to development.","LoLLMs can generate and visualize mathematical equations using LaTeX, making it a powerful tool for scientific documentation.","The system's multimodel capabilities allow it to analyze medical images, architectural blueprints, and technical diagrams.","LoLLMs includes a unique feature called 'personality system' that allows it to adapt its communication style and expertise.","Did you know? LoLLMs can process and generate music notation using ABC notation or LilyPond formats.","LoLLMs supports over 2000 different AI models, making it one of the most versatile open-source AI platforms.","The system can generate realistic 3D scenes descriptions that can be rendered using tools like Blender.","LoLLMs features a unique 'model fusion' capability, combining strengths of different AI models for better results.","The platform includes specialized modules for scientific computing, allowing it to solve complex mathematical problems.","LoLLMs can analyze and generate code in over 20 programming languages, including rare ones like COBOL and Fortran.","The system includes advanced prompt engineering tools, helping users get better results from AI models.","LoLLMs can generate and interpret QR codes, making it useful for creating interactive marketing materials.","The platform supports real-time voice interaction through its advanced speech-to-text and text-to-speech capabilities.","LoLLMs can analyze satellite imagery for environmental monitoring and urban planning applications.","The system includes specialized modules for protein folding prediction and molecular visualization.","LoLLMs features a built-in 'ethical AI' framework that ensures responsible and bias-aware AI interactions.","The platform can generate realistic synthetic data while preserving privacy and maintaining statistical properties.","LoLLMs includes advanced natural language processing capabilities in over 100 languages.","The system can perform sentiment analysis on social media trends and customer feedback in real-time.","LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships."],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:Kmt,animated_info:jmt,normal_mode:Xmt,fun_mode:Qmt,is_first_connection:!0,discord:Wmt,FastAPI:$mt,modelImgPlaceholder:$n,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",lastMessageHtml:"",defaultMessageHtml:` @@ -325,11 +325,11 @@ ${e} ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Ue(()=>{Ve.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const s=new FileReader;s.onload=r=>e(this.parseJsonObj(r.target.result)),s.onerror=r=>t(r),s.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+s+"."+r+"."+i+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(n,"markdown");u?(this.saveMarkdowntoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+s+"."+r+"."+i+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(n,"json");u?(this.saveJSONtoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(s=>s.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await ne.get("/get_versionID")).data.versionId;Ye.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ve.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";Ye.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=Ye.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=Ye.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,Ye.on("connected",this.socketIOConnected),Ye.on("disconnected",this.socketIODisconnected),console.log("Added events"),Ye.on("show_progress",this.show_progress),Ye.on("hide_progress",this.hide_progress),Ye.on("update_progress",this.update_progress),Ye.on("notification",this.notify),Ye.on("new_message",this.new_message),Ye.on("update_message",this.update_message),Ye.on("close_message",this.finalMsgEvent),Ye.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const s=this.list.findIndex(i=>i.id==t.discussion_id),r=this.list[s];r.title=t.title}),Ye.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ye.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),Ye.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ye.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.news=this.$refs.news,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),Ye.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Q0,Message:_N,ChatBox:mN,WelcomeComponent:hN,ChoiceDialog:j0,ProgressBar:x0,InputBox:Kpt,SkillsLibraryViewer:pN,PersonalityEditor:AN,PopupViewer:MN,ActionButton:IA,SocialIcon:kA,MountedPersonalities:NN},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Ue(()=>{Ve.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ue(()=>{Ve.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ue(()=>{Ve.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=ubt(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Bs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Bs},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...uL({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(t=>t.full_path===n)},prompts_list(){return this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return Ye.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Ue(()=>{Ve.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},_bt=Object.assign(fbt,{__name:"DiscussionsView",setup(n){return dr(()=>{RN()}),ne.defaults.baseURL="/",(e,t)=>(T(),x(Fe,null,[z(ir,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?B("",!0):(T(),x("div",uht,[e.$store.state.theme_vars.activate_dropping_animation?(T(),x("div",pht,[(T(),x(Fe,null,We(50,s=>l("div",{key:s,class:"absolute animate-fall animate-giggle",style:Bt({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},Y(e.$store.state.theme_vars.falling_object),5)),64))])):B("",!0),l("div",fht,[l("div",_ht,[l("div",mht,Y(e.$store.state.theme_vars.lollms_title),1),t[58]||(t[58]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[59]||(t[59]=l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),l("p",hht,Y(e.version_info),1),l("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...s)=>e.updateRandomFact&&e.updateRandomFact(...s))},[l("p",ght,[t[57]||(t[57]=l("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),l("span",{innerHTML:e.randomFact},null,8,bht)])]),l("div",yht,[l("div",{class:"animated-progressbar-fg",style:Bt({width:`${e.loading_progress}%`})},null,4),l("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:Bt({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},null,4)])]),l("div",vht,[l("div",Eht,[l("p",Sht,Y(e.loading_infos)+"... ",1),l("p",Tht,Y(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),z(ir,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),x("div",xht,[z(bt(Xd),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",Cht,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?bt(Bs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:bt(Bs),alt:"Logo",title:"LoLLMS WebUI"},null,8,wht)]),t[60]||(t[60]=l("div",{class:"flex flex-col justify-center"},[l("div",{class:"text-center p-2"},[l("div",{class:"text-md relative inline-block"},[l("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),l("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),l("div",Rht,[l("div",Aht,[l("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...s)=>e.createNewDiscussion&&e.createNewDiscussion(...s))},t[61]||(t[61]=[l("i",{"data-feather":"plus"},null,-1)])),e.loading?B("",!0):(T(),x("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...s)=>e.hideMenu&&e.hideMenu(...s))},[k(l("div",{onMouseenter:t[17]||(t[17]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Mht,[l("button",{class:Le(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=s=>e.isCheckbox=!e.isCheckbox)},t[62]||(t[62]=[l("i",{"data-feather":"check-square"},null,-1)]),2),l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=$(()=>{},["stop"]))},t[63]||(t[63]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=$(s=>e.database_selectorDialogVisible=!0,["stop"]))},t[64]||(t[64]=[l("i",{"data-feather":"database"},null,-1)])),l("div",Nht,[l("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=$(s=>e.$refs.fileDialog.click(),["stop"]))},t[65]||(t[65]=[l("i",{"data-feather":"log-in"},null,-1)]))]),l("div",Oht,[l("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?B("",!0):(T(),x("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=$(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[66]||(t[66]=[l("i",{"data-feather":"folder"},null,-1)])))]),e.loading?B("",!0):(T(),x("button",{key:0,type:"button",onClick:t[9]||(t[9]=$((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[67]||(t[67]=[l("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),x("button",{key:1,type:"button",onClick:t[10]||(t[10]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[l("i",{"data-feather":"check-circle"},null,-1)]))):B("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),x("button",{key:2,type:"button",onClick:t[11]||(t[11]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[l("i",{"data-feather":"x-octagon"},null,-1)]))):B("",!0),e.loading?B("",!0):(T(),x("button",{key:3,type:"button",onClick:t[12]||(t[12]=$((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[l("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),x("div",Iht,t[71]||(t[71]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),e.showSaveConfirmation?(T(),x("div",kht,[l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=$(s=>e.showSaveConfirmation=!1,["stop"]))},t[72]||(t[72]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=$(s=>e.save_configuration(),["stop"]))},t[73]||(t[73]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),e.isOpen?(T(),x("div",Dht,[l("button",{onClick:t[15]||(t[15]=(...s)=>e.importDiscussions&&e.importDiscussions(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),l("button",{onClick:t[16]||(t[16]=(...s)=>e.importChatGPT&&e.importChatGPT(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):B("",!0)])],544),[[ht,e.isMenuVisible]]),l("div",{onMouseenter:t[18]||(t[18]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"menu-hover-area"},t[74]||(t[74]=[l("button",{class:"w-8 h-8",title:"Toggle menu"},[l("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?B("",!0):(T(),x("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...s)=>e.hideBindingsMenu&&e.hideBindingsMenu(...s))},[l("div",Lht,[k(l("div",{onMouseenter:t[22]||(t[22]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Pht,[k(l("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=s=>e.bindingSearchQuery=s),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.bindingSearchQuery]])]),l("div",Fht,[(T(!0),x(Fe,null,We(e.filteredBindings,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",Uht,[l("button",{onClick:$(i=>e.setBinding(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[21]||(t[21]=(...i)=>bt($n)&&bt($n)(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.binding_name}])},null,42,Ght)],8,Bht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Vht)]),l("div",zht,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setBinding(s),["prevent"])},Y(s.name),9,Hht),l("div",qht,[l("button",{onClick:$(i=>e.showModelConfig(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[75]||(t[75]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Yht)])])]))),128))])],544),[[ht,e.isBindingsMenuVisible]]),l("div",{onMouseenter:t[24]||(t[24]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"bindings-hover-area"},[l("button",{onClick:t[23]||(t[23]=$(s=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,$ht)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...s)=>e.hideModelsMenu&&e.hideModelsMenu(...s))},[l("div",Wht,[k(l("div",{onMouseenter:t[28]||(t[28]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Kht,[k(l("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=s=>e.modelSearchQuery=s),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.modelSearchQuery]])]),l("div",jht,[(T(!0),x(Fe,null,We(e.filteredModels,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",Qht,[l("button",{onClick:$(i=>e.setModel(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[27]||(t[27]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.model_name}])},null,42,Zht)],8,Xht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Jht)]),l("div",egt,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setModel(s),["prevent"])},Y(s.name),9,tgt),l("div",ngt,[l("button",{onClick:$(i=>e.copyModelNameFrom(s.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[76]||(t[76]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,sgt)])])]))),128))])],544),[[ht,e.isModelsMenuVisible]]),l("div",{onMouseenter:t[30]||(t[30]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"models-hover-area"},[l("button",{onClick:t[29]||(t[29]=$(s=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,rgt)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...s)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...s))},[l("div",igt,[k(l("div",{onMouseenter:t[34]||(t[34]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",ogt,[k(l("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=s=>e.personalitySearchQuery=s),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.personalitySearchQuery]])]),l("div",agt,[(T(!0),x(Fe,null,We(e.filteredPersonalities,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",lgt,[l("button",{onClick:$(i=>e.onPersonalitySelected(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:bt(pbt)+s.avatar,onError:t[33]||(t[33]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(s.full_path)}])},null,42,dgt)],8,cgt),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,ugt)]),l("div",pgt,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.onPersonalitySelected(s),["prevent"])},Y(s.name),9,fgt),l("div",_gt,[l("button",{onClick:$(i=>e.unmountPersonality(s),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[77]||(t[77]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,mgt),l("button",{onClick:$(i=>e.remount_personality(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[78]||(t[78]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,hgt),l("button",{onClick:$(i=>e.handleOnTalk(s),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[79]||(t[79]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,ggt)])])]))),128))])],544),[[ht,e.isPersonalitiesMenuVisible]]),l("div",{onMouseenter:t[35]||(t[35]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"personalities-hover-area"},[z(NN,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),l("div",bgt,[l("form",{onSubmit:t[39]||(t[39]=$((...s)=>e.handleSearch&&e.handleSearch(...s),["prevent"])),class:"relative"},[l("div",ygt,[l("div",vgt,[k(l("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=s=>e.filterTitle=s),onKeyup:t[38]||(t[38]=Jn((...s)=>e.handleSearch&&e.handleSearch(...s),["enter"]))},null,544),[[ae,e.filterTitle]]),t[80]||(t[80]=l("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[l("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[81]||(t[81]=l("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[l("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),x("div",Egt,[l("div",Sgt,[e.selectedDiscussions.length>0?(T(),x("p",Tgt,"Selected: "+Y(e.selectedDiscussions.length),1)):B("",!0),e.selectedDiscussions.length>0?(T(),x("div",xgt,[e.showConfirmation?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=$(s=>e.showConfirmation=!0,["stop"]))},t[82]||(t[82]=[l("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),x("div",Cgt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=$((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},t[83]||(t[83]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=$(s=>e.showConfirmation=!1,["stop"]))},t[84]||(t[84]=[l("i",{"data-feather":"x"},null,-1)]))])):B("",!0)])):B("",!0),l("div",wgt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=$((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},t[85]||(t[85]=[l("i",{"data-feather":"codepen"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=$((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},t[86]||(t[86]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=$((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},t[87]||(t[87]=[l("i",{"data-feather":"bookmark"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=$((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},t[88]||(t[88]=[l("i",{"data-feather":"list"},null,-1)]))])])])):B("",!0),l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=$(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",Rgt,[l("div",{class:Le(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Le([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Fe,null,We(e.list,(s,r)=>(T(),at(Q0,{key:s.id,id:s.id,title:s.title,selected:e.currentDiscussion.id==s.id,loading:s.loading,isCheckbox:e.isCheckbox,checkBoxValue:s.checkBoxValue,onSelect:i=>e.selectDiscussion(s),onDelete:i=>e.deleteDiscussion(s.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0),e.list.length<1?(T(),x("div",Agt,t[89]||(t[89]=[l("p",{class:"px-3"},"No discussions are found",-1)]))):B("",!0),t[90]||(t[90]=l("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),l("div",Mgt,[l("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[l("p",Ngt,Y(e.formatted_database_name.replace("_"," ")),1)])])])):B("",!0)]),_:1}),e.isReady?(T(),x("div",Ogt,[l("div",{id:"messages-list",class:Le(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",Igt,[e.discussionArr.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Fe,null,We(e.discussionArr,(s,r)=>(T(),at(_N,{key:s.id,message:s,id:"msg-"+s.id,ref_for:!0,ref:"msg-"+s.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(s.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),x("div",kgt,[t[95]||(t[95]=l("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),l("div",Dgt,[l("div",Lgt,[(T(!0),x(Fe,null,We(e.personality.prompts_list,(s,r)=>(T(),x("div",{title:e.extractTitle(s),key:r,onClick:i=>e.handlePromptSelection(s),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[l("div",Fgt,[l("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(s)},Y(e.extractTitle(s)),9,Ugt),l("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},Y(e.getPromptContent(s)),9,Bgt)]),t[91]||(t[91]=l("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,Pgt))),128))])]),e.showPlaceholderModal?(T(),x("div",Ggt,[l("div",Vgt,[t[94]||(t[94]=l("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),l("div",zgt,[l("div",Hgt,[t[92]||(t[92]=l("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),l("div",qgt,[l("span",Ygt,Y(e.getPromptContent(e.previewPrompt)),1)])]),l("div",$gt,[l("div",Wgt,[(T(!0),x(Fe,null,We(e.parsedPlaceholders,(s,r)=>(T(),x("div",{key:s.fullText,class:"flex flex-col"},[l("label",{for:"placeholder-"+r,class:"text-sm font-medium mb-1"},Y(s.label),9,Kgt),s.type==="text"?k((T(),x("input",{key:0,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:s.label,onInput:t[49]||(t[49]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,jgt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="int"?k((T(),x("input",{key:1,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Qgt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="float"?k((T(),x("input",{key:2,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Xgt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="multiline"?k((T(),x("textarea",{key:3,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Zgt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="code"?(T(),x("div",Jgt,[l("div",ebt,Y(s.language||"Plain text"),1),k(l("textarea",{id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,tbt),[[ae,e.placeholderValues[r]]])])):B("",!0),s.type==="options"?k((T(),x("select",{key:5,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...i)=>e.updatePreview&&e.updatePreview(...i))},[t[93]||(t[93]=l("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),x(Fe,null,We(s.options,i=>(T(),x("option",{key:i,value:i},Y(i),9,sbt))),128))],40,nbt)),[[Ot,e.placeholderValues[r]]]):B("",!0)]))),128))])])]),l("div",rbt,[l("button",{onClick:t[55]||(t[55]=(...s)=>e.cancelPlaceholders&&e.cancelPlaceholders(...s)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),l("button",{onClick:t[56]||(t[56]=(...s)=>e.applyPlaceholders&&e.applyPlaceholders(...s)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):B("",!0)])):B("",!0)]),_:1})):B("",!0),e.currentDiscussion.id?B("",!0):(T(),at(hN,{key:1})),t[96]||(t[96]=l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1))]),t[97]||(t[97]=l("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),x("div",ibt,[z(mN,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):B("",!0)])):B("",!0),z(ir,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),x("div",obt,[l("div",abt,null,512)])):B("",!0)]),_:1}),z(j0,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),k(l("div",lbt,[z(x0,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",cbt,Y(e.loading_infos)+" ...",1)],512),[[ht,e.progress_visibility]]),z(AN,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",dbt,[z(MN,{ref:"news"},null,512)]),z(pN,{ref:"skills_lib"},null,512)],64))}}),mbt=st(_bt,[["__scopeId","data-v-49d898d3"]]);/** +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await ne.get("/get_versionID")).data.versionId;Ye.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ve.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";Ye.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=Ye.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=Ye.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,Ye.on("connected",this.socketIOConnected),Ye.on("disconnected",this.socketIODisconnected),console.log("Added events"),Ye.on("show_progress",this.show_progress),Ye.on("hide_progress",this.hide_progress),Ye.on("update_progress",this.update_progress),Ye.on("notification",this.notify),Ye.on("new_message",this.new_message),Ye.on("update_message",this.update_message),Ye.on("close_message",this.finalMsgEvent),Ye.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const s=this.list.findIndex(i=>i.id==t.discussion_id),r=this.list[s];r.title=t.title}),Ye.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ye.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),Ye.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ye.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.news=this.$refs.news,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),Ye.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Q0,Message:_N,ChatBox:mN,WelcomeComponent:hN,ChoiceDialog:j0,ProgressBar:x0,InputBox:Kpt,SkillsLibraryViewer:pN,PersonalityEditor:AN,PopupViewer:MN,ActionButton:IA,SocialIcon:kA,MountedPersonalities:NN},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Ue(()=>{Ve.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ue(()=>{Ve.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ue(()=>{Ve.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=ubt(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Bs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Bs},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...uL({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(t=>t.full_path===n)},prompts_list(){return this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return Ye.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Ue(()=>{Ve.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},_bt=Object.assign(fbt,{__name:"DiscussionsView",setup(n){return qs(()=>{RN()}),ne.defaults.baseURL="/",(e,t)=>(T(),x(Fe,null,[z(or,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?B("",!0):(T(),x("div",uht,[e.$store.state.theme_vars.activate_dropping_animation?(T(),x("div",pht,[(T(),x(Fe,null,We(50,s=>l("div",{key:s,class:"absolute animate-fall animate-giggle",style:Bt({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},Y(e.$store.state.theme_vars.falling_object),5)),64))])):B("",!0),l("div",fht,[l("div",_ht,[l("div",mht,Y(e.$store.state.theme_vars.lollms_title),1),t[58]||(t[58]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[59]||(t[59]=l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),l("p",hht,Y(e.version_info),1),l("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...s)=>e.updateRandomFact&&e.updateRandomFact(...s))},[l("p",ght,[t[57]||(t[57]=l("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),l("span",{innerHTML:e.randomFact},null,8,bht)])]),l("div",yht,[l("div",{class:"animated-progressbar-fg",style:Bt({width:`${e.loading_progress}%`})},null,4),l("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:Bt({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},null,4)])]),l("div",vht,[l("div",Eht,[l("p",Sht,Y(e.loading_infos)+"... ",1),l("p",Tht,Y(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),z(or,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),x("div",xht,[z(bt(Xd),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",Cht,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?bt(Bs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:bt(Bs),alt:"Logo",title:"LoLLMS WebUI"},null,8,wht)]),t[60]||(t[60]=l("div",{class:"flex flex-col justify-center"},[l("div",{class:"text-center p-2"},[l("div",{class:"text-md relative inline-block"},[l("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),l("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),l("div",Rht,[l("div",Aht,[l("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...s)=>e.createNewDiscussion&&e.createNewDiscussion(...s))},t[61]||(t[61]=[l("i",{"data-feather":"plus"},null,-1)])),e.loading?B("",!0):(T(),x("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...s)=>e.hideMenu&&e.hideMenu(...s))},[k(l("div",{onMouseenter:t[17]||(t[17]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Mht,[l("button",{class:Le(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=s=>e.isCheckbox=!e.isCheckbox)},t[62]||(t[62]=[l("i",{"data-feather":"check-square"},null,-1)]),2),l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=$(()=>{},["stop"]))},t[63]||(t[63]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=$(s=>e.database_selectorDialogVisible=!0,["stop"]))},t[64]||(t[64]=[l("i",{"data-feather":"database"},null,-1)])),l("div",Nht,[l("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=$(s=>e.$refs.fileDialog.click(),["stop"]))},t[65]||(t[65]=[l("i",{"data-feather":"log-in"},null,-1)]))]),l("div",Oht,[l("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?B("",!0):(T(),x("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=$(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[66]||(t[66]=[l("i",{"data-feather":"folder"},null,-1)])))]),e.loading?B("",!0):(T(),x("button",{key:0,type:"button",onClick:t[9]||(t[9]=$((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[67]||(t[67]=[l("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),x("button",{key:1,type:"button",onClick:t[10]||(t[10]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[l("i",{"data-feather":"check-circle"},null,-1)]))):B("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),x("button",{key:2,type:"button",onClick:t[11]||(t[11]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[l("i",{"data-feather":"x-octagon"},null,-1)]))):B("",!0),e.loading?B("",!0):(T(),x("button",{key:3,type:"button",onClick:t[12]||(t[12]=$((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[l("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),x("div",Iht,t[71]||(t[71]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),e.showSaveConfirmation?(T(),x("div",kht,[l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=$(s=>e.showSaveConfirmation=!1,["stop"]))},t[72]||(t[72]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=$(s=>e.save_configuration(),["stop"]))},t[73]||(t[73]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),e.isOpen?(T(),x("div",Dht,[l("button",{onClick:t[15]||(t[15]=(...s)=>e.importDiscussions&&e.importDiscussions(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),l("button",{onClick:t[16]||(t[16]=(...s)=>e.importChatGPT&&e.importChatGPT(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):B("",!0)])],544),[[ht,e.isMenuVisible]]),l("div",{onMouseenter:t[18]||(t[18]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"menu-hover-area"},t[74]||(t[74]=[l("button",{class:"w-8 h-8",title:"Toggle menu"},[l("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?B("",!0):(T(),x("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...s)=>e.hideBindingsMenu&&e.hideBindingsMenu(...s))},[l("div",Lht,[k(l("div",{onMouseenter:t[22]||(t[22]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Pht,[k(l("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=s=>e.bindingSearchQuery=s),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.bindingSearchQuery]])]),l("div",Fht,[(T(!0),x(Fe,null,We(e.filteredBindings,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",Uht,[l("button",{onClick:$(i=>e.setBinding(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[21]||(t[21]=(...i)=>bt($n)&&bt($n)(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.binding_name}])},null,42,Ght)],8,Bht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Vht)]),l("div",zht,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setBinding(s),["prevent"])},Y(s.name),9,Hht),l("div",qht,[l("button",{onClick:$(i=>e.showModelConfig(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[75]||(t[75]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Yht)])])]))),128))])],544),[[ht,e.isBindingsMenuVisible]]),l("div",{onMouseenter:t[24]||(t[24]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"bindings-hover-area"},[l("button",{onClick:t[23]||(t[23]=$(s=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,$ht)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...s)=>e.hideModelsMenu&&e.hideModelsMenu(...s))},[l("div",Wht,[k(l("div",{onMouseenter:t[28]||(t[28]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Kht,[k(l("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=s=>e.modelSearchQuery=s),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.modelSearchQuery]])]),l("div",jht,[(T(!0),x(Fe,null,We(e.filteredModels,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",Qht,[l("button",{onClick:$(i=>e.setModel(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[27]||(t[27]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.model_name}])},null,42,Zht)],8,Xht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Jht)]),l("div",egt,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setModel(s),["prevent"])},Y(s.name),9,tgt),l("div",ngt,[l("button",{onClick:$(i=>e.copyModelNameFrom(s.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[76]||(t[76]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,sgt)])])]))),128))])],544),[[ht,e.isModelsMenuVisible]]),l("div",{onMouseenter:t[30]||(t[30]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"models-hover-area"},[l("button",{onClick:t[29]||(t[29]=$(s=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,rgt)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...s)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...s))},[l("div",igt,[k(l("div",{onMouseenter:t[34]||(t[34]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",ogt,[k(l("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=s=>e.personalitySearchQuery=s),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.personalitySearchQuery]])]),l("div",agt,[(T(!0),x(Fe,null,We(e.filteredPersonalities,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",lgt,[l("button",{onClick:$(i=>e.onPersonalitySelected(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:bt(pbt)+s.avatar,onError:t[33]||(t[33]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(s.full_path)}])},null,42,dgt)],8,cgt),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,ugt)]),l("div",pgt,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.onPersonalitySelected(s),["prevent"])},Y(s.name),9,fgt),l("div",_gt,[l("button",{onClick:$(i=>e.unmountPersonality(s),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[77]||(t[77]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,mgt),l("button",{onClick:$(i=>e.remount_personality(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[78]||(t[78]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,hgt),l("button",{onClick:$(i=>e.handleOnTalk(s),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[79]||(t[79]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,ggt)])])]))),128))])],544),[[ht,e.isPersonalitiesMenuVisible]]),l("div",{onMouseenter:t[35]||(t[35]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"personalities-hover-area"},[z(NN,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),l("div",bgt,[l("form",{onSubmit:t[39]||(t[39]=$((...s)=>e.handleSearch&&e.handleSearch(...s),["prevent"])),class:"relative"},[l("div",ygt,[l("div",vgt,[k(l("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=s=>e.filterTitle=s),onKeyup:t[38]||(t[38]=Jn((...s)=>e.handleSearch&&e.handleSearch(...s),["enter"]))},null,544),[[ae,e.filterTitle]]),t[80]||(t[80]=l("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[l("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[81]||(t[81]=l("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[l("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),x("div",Egt,[l("div",Sgt,[e.selectedDiscussions.length>0?(T(),x("p",Tgt,"Selected: "+Y(e.selectedDiscussions.length),1)):B("",!0),e.selectedDiscussions.length>0?(T(),x("div",xgt,[e.showConfirmation?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=$(s=>e.showConfirmation=!0,["stop"]))},t[82]||(t[82]=[l("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),x("div",Cgt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=$((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},t[83]||(t[83]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=$(s=>e.showConfirmation=!1,["stop"]))},t[84]||(t[84]=[l("i",{"data-feather":"x"},null,-1)]))])):B("",!0)])):B("",!0),l("div",wgt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=$((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},t[85]||(t[85]=[l("i",{"data-feather":"codepen"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=$((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},t[86]||(t[86]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=$((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},t[87]||(t[87]=[l("i",{"data-feather":"bookmark"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=$((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},t[88]||(t[88]=[l("i",{"data-feather":"list"},null,-1)]))])])])):B("",!0),l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=$(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",Rgt,[l("div",{class:Le(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Le([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Fe,null,We(e.list,(s,r)=>(T(),at(Q0,{key:s.id,id:s.id,title:s.title,selected:e.currentDiscussion.id==s.id,loading:s.loading,isCheckbox:e.isCheckbox,checkBoxValue:s.checkBoxValue,onSelect:i=>e.selectDiscussion(s),onDelete:i=>e.deleteDiscussion(s.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0),e.list.length<1?(T(),x("div",Agt,t[89]||(t[89]=[l("p",{class:"px-3"},"No discussions are found",-1)]))):B("",!0),t[90]||(t[90]=l("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),l("div",Mgt,[l("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[l("p",Ngt,Y(e.formatted_database_name.replace("_"," ")),1)])])])):B("",!0)]),_:1}),e.isReady?(T(),x("div",Ogt,[l("div",{id:"messages-list",class:Le(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",Igt,[e.discussionArr.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Fe,null,We(e.discussionArr,(s,r)=>(T(),at(_N,{key:s.id,message:s,id:"msg-"+s.id,ref_for:!0,ref:"msg-"+s.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(s.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),x("div",kgt,[t[95]||(t[95]=l("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),l("div",Dgt,[l("div",Lgt,[(T(!0),x(Fe,null,We(e.personality.prompts_list,(s,r)=>(T(),x("div",{title:e.extractTitle(s),key:r,onClick:i=>e.handlePromptSelection(s),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[l("div",Fgt,[l("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(s)},Y(e.extractTitle(s)),9,Ugt),l("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},Y(e.getPromptContent(s)),9,Bgt)]),t[91]||(t[91]=l("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,Pgt))),128))])]),e.showPlaceholderModal?(T(),x("div",Ggt,[l("div",Vgt,[t[94]||(t[94]=l("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),l("div",zgt,[l("div",Hgt,[t[92]||(t[92]=l("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),l("div",qgt,[l("span",Ygt,Y(e.getPromptContent(e.previewPrompt)),1)])]),l("div",$gt,[l("div",Wgt,[(T(!0),x(Fe,null,We(e.parsedPlaceholders,(s,r)=>(T(),x("div",{key:s.fullText,class:"flex flex-col"},[l("label",{for:"placeholder-"+r,class:"text-sm font-medium mb-1"},Y(s.label),9,Kgt),s.type==="text"?k((T(),x("input",{key:0,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:s.label,onInput:t[49]||(t[49]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,jgt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="int"?k((T(),x("input",{key:1,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Qgt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="float"?k((T(),x("input",{key:2,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Xgt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="multiline"?k((T(),x("textarea",{key:3,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Zgt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="code"?(T(),x("div",Jgt,[l("div",ebt,Y(s.language||"Plain text"),1),k(l("textarea",{id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,tbt),[[ae,e.placeholderValues[r]]])])):B("",!0),s.type==="options"?k((T(),x("select",{key:5,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...i)=>e.updatePreview&&e.updatePreview(...i))},[t[93]||(t[93]=l("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),x(Fe,null,We(s.options,i=>(T(),x("option",{key:i,value:i},Y(i),9,sbt))),128))],40,nbt)),[[Ot,e.placeholderValues[r]]]):B("",!0)]))),128))])])]),l("div",rbt,[l("button",{onClick:t[55]||(t[55]=(...s)=>e.cancelPlaceholders&&e.cancelPlaceholders(...s)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),l("button",{onClick:t[56]||(t[56]=(...s)=>e.applyPlaceholders&&e.applyPlaceholders(...s)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):B("",!0)])):B("",!0)]),_:1})):B("",!0),e.currentDiscussion.id?B("",!0):(T(),at(hN,{key:1})),t[96]||(t[96]=l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1))]),t[97]||(t[97]=l("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),x("div",ibt,[z(mN,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):B("",!0)])):B("",!0),z(or,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),x("div",obt,[l("div",abt,null,512)])):B("",!0)]),_:1}),z(j0,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),k(l("div",lbt,[z(x0,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",cbt,Y(e.loading_infos)+" ...",1)],512),[[ht,e.progress_visibility]]),z(AN,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",dbt,[z(MN,{ref:"news"},null,512)]),z(pN,{ref:"skills_lib"},null,512)],64))}}),mbt=st(_bt,[["__scopeId","data-v-bf110ba3"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const ly="159",hbt=0,iC=1,gbt=2,ON=1,bbt=2,Cr=3,Fr=0,Zn=1,Js=2,hi=0,ia=1,oC=2,aC=3,lC=4,ybt=5,Yi=100,vbt=101,Ebt=102,cC=103,dC=104,Sbt=200,Tbt=201,xbt=202,Cbt=203,pb=204,fb=205,wbt=206,Rbt=207,Abt=208,Mbt=209,Nbt=210,Obt=211,Ibt=212,kbt=213,Dbt=214,Lbt=0,Pbt=1,Fbt=2,mu=3,Ubt=4,Bbt=5,Gbt=6,Vbt=7,cy=0,zbt=1,Hbt=2,gi=0,qbt=1,Ybt=2,$bt=3,Wbt=4,Kbt=5,uC="attached",jbt="detached",IN=300,ya=301,va=302,_b=303,mb=304,pp=306,Ea=1e3,gs=1001,hu=1002,gn=1003,hb=1004,kd=1005,Wn=1006,kN=1007,_o=1008,bi=1009,Qbt=1010,Xbt=1011,dy=1012,DN=1013,fi=1014,Mr=1015,Ql=1016,LN=1017,PN=1018,no=1020,Zbt=1021,bs=1023,Jbt=1024,e0t=1025,so=1026,Sa=1027,t0t=1028,FN=1029,n0t=1030,UN=1031,BN=1033,Hh=33776,qh=33777,Yh=33778,$h=33779,pC=35840,fC=35841,_C=35842,mC=35843,GN=36196,hC=37492,gC=37496,bC=37808,yC=37809,vC=37810,EC=37811,SC=37812,TC=37813,xC=37814,CC=37815,wC=37816,RC=37817,AC=37818,MC=37819,NC=37820,OC=37821,Wh=36492,IC=36494,kC=36495,s0t=36283,DC=36284,LC=36285,PC=36286,Xl=2300,Ta=2301,Kh=2302,FC=2400,UC=2401,BC=2402,r0t=2500,i0t=0,VN=1,gb=2,zN=3e3,ro=3001,o0t=3200,a0t=3201,uy=0,l0t=1,ys="",nn="srgb",Cn="srgb-linear",py="display-p3",fp="display-p3-linear",gu="linear",jt="srgb",bu="rec709",yu="p3",Ro=7680,GC=519,c0t=512,d0t=513,u0t=514,HN=515,p0t=516,f0t=517,_0t=518,m0t=519,bb=35044,VC="300 es",yb=1035,Nr=2e3,vu=2001;class Ha{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[s&255]+An[s>>8&255]+An[s>>16&255]+An[s>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function fy(n,e){return(n%e+e)%e}function h0t(n,e,t,s,r){return s+(n-e)*(r-s)/(t-e)}function g0t(n,e,t){return n!==e?(t-n)/(e-n):0}function Il(n,e,t){return(1-t)*n+t*e}function b0t(n,e,t,s){return Il(n,e,1-Math.exp(-t*s))}function y0t(n,e=1){return e-Math.abs(fy(n,e*2)-e)}function v0t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function E0t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function S0t(n,e){return n+Math.floor(Math.random()*(e-n+1))}function T0t(n,e){return n+Math.random()*(e-n)}function x0t(n){return n*(.5-Math.random())}function C0t(n){n!==void 0&&(zC=n);let e=zC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function w0t(n){return n*Ol}function R0t(n){return n*xa}function vb(n){return(n&n-1)===0&&n!==0}function A0t(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Eu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function M0t(n,e,t,s,r){const i=Math.cos,o=Math.sin,a=i(t/2),c=o(t/2),d=i((e+s)/2),u=o((e+s)/2),_=i((e-s)/2),m=o((e-s)/2),h=i((s-e)/2),g=o((s-e)/2);switch(r){case"XYX":n.set(a*u,c*_,c*m,a*d);break;case"YZY":n.set(c*m,a*u,c*_,a*d);break;case"ZXZ":n.set(c*_,c*m,a*u,a*d);break;case"XZX":n.set(a*u,c*g,c*h,a*d);break;case"YXY":n.set(c*h,a*u,c*g,a*d);break;case"ZYZ":n.set(c*g,c*h,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function er(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Gt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const N0t={DEG2RAD:Ol,RAD2DEG:xa,generateUUID:Gs,clamp:On,euclideanModulo:fy,mapLinear:h0t,inverseLerp:g0t,lerp:Il,damp:b0t,pingpong:y0t,smoothstep:v0t,smootherstep:E0t,randInt:S0t,randFloat:T0t,randFloatSpread:x0t,seededRandom:C0t,degToRad:w0t,radToDeg:R0t,isPowerOfTwo:vb,ceilPowerOfTwo:A0t,floorPowerOfTwo:Eu,setQuaternionFromProperEuler:M0t,normalize:Gt,denormalize:er};class Rt{constructor(e=0,t=0){Rt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,s=this.y,r=e.elements;return this.x=r[0]*t+r[3]*s+r[6],this.y=r[1]*t+r[4]*s+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y;return t*t+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const s=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*s-o*r+e.x,this.y=i*r+o*s+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Tt{constructor(e,t,s,r,i,o,a,c,d){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,s,r,i,o,a,c,d)}set(e,t,s,r,i,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=r,u[2]=a,u[3]=t,u[4]=i,u[5]=c,u[6]=s,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],this}extractBasis(e,t,s){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[3],c=s[6],d=s[1],u=s[4],_=s[7],m=s[2],h=s[5],g=s[8],f=r[0],y=r[3],b=r[6],v=r[1],E=r[4],S=r[7],R=r[2],w=r[5],A=r[8];return i[0]=o*f+a*v+c*R,i[3]=o*y+a*E+c*w,i[6]=o*b+a*S+c*A,i[1]=d*f+u*v+_*R,i[4]=d*y+u*E+_*w,i[7]=d*b+u*S+_*A,i[2]=m*f+h*v+g*R,i[5]=m*y+h*E+g*w,i[8]=m*b+h*S+g*A,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-s*i*u+s*a*c+r*i*d-r*o*c}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=u*o-a*d,m=a*c-u*i,h=d*i-o*c,g=t*_+s*m+r*h;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const f=1/g;return e[0]=_*f,e[1]=(r*d-u*s)*f,e[2]=(a*s-r*o)*f,e[3]=m*f,e[4]=(u*t-r*c)*f,e[5]=(r*i-a*t)*f,e[6]=h*f,e[7]=(s*c-d*t)*f,e[8]=(o*t-s*i)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,s,r,i,o,a){const c=Math.cos(i),d=Math.sin(i);return this.set(s*c,s*d,-s*(c*o+d*a)+o+e,-r*d,r*c,-r*(-d*o+c*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(jh.makeScale(e,t)),this}rotate(e){return this.premultiply(jh.makeRotation(-e)),this}translate(e,t){return this.premultiply(jh.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,s,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,s=e.elements;for(let r=0;r<9;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<9;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const jh=new Tt;function qN(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Zl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function O0t(){const n=Zl("canvas");return n.style.display="block",n}const HC={};function kl(n){n in HC||(HC[n]=!0,console.warn(n))}const qC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),YC=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:gu,primaries:bu,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:jt,primaries:bu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[fp]:{transfer:gu,primaries:yu,toReference:n=>n.applyMatrix3(YC),fromReference:n=>n.applyMatrix3(qC)},[py]:{transfer:jt,primaries:yu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(YC),fromReference:n=>n.applyMatrix3(qC).convertLinearToSRGB()}},I0t=new Set([Cn,fp]),Pt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!I0t.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const s=Hc[e].toReference,r=Hc[t].fromReference;return r(s(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===ys?gu:Hc[n].transfer}};function oa(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Qh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ao;class YN{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ao===void 0&&(Ao=Zl("canvas")),Ao.width=e.width,Ao.height=e.height;const s=Ao.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),t=Ao}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Zl("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const r=s.getImageData(0,0,e.width,e.height),i=r.data;for(let o=0;o0&&(s.userData=this.userData),t||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==IN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ea:e.x=e.x-Math.floor(e.x);break;case gs:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ea:e.y=e.y-Math.floor(e.y);break;case gs:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?ro:zN}set encoding(e){kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===ro?nn:ys}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=IN;xn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,t=0,s=0,r=1){Wt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=s,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,s,r){return this.x=e,this.y=t,this.z=s,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,s=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*s+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*s+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*s+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*s+o[11]*r+o[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,s,r,i;const c=e.elements,d=c[0],u=c[4],_=c[8],m=c[1],h=c[5],g=c[9],f=c[2],y=c[6],b=c[10];if(Math.abs(u-m)<.01&&Math.abs(_-f)<.01&&Math.abs(g-y)<.01){if(Math.abs(u+m)<.1&&Math.abs(_+f)<.1&&Math.abs(g+y)<.1&&Math.abs(d+h+b-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(d+1)/2,S=(h+1)/2,R=(b+1)/2,w=(u+m)/4,A=(_+f)/4,I=(g+y)/4;return E>S&&E>R?E<.01?(s=0,r=.707106781,i=.707106781):(s=Math.sqrt(E),r=w/s,i=A/s):S>R?S<.01?(s=.707106781,r=0,i=.707106781):(r=Math.sqrt(S),s=w/r,i=I/r):R<.01?(s=.707106781,r=.707106781,i=0):(i=Math.sqrt(R),s=A/i,r=I/i),this.set(s,r,i,t),this}let v=Math.sqrt((y-g)*(y-g)+(_-f)*(_-f)+(m-u)*(m-u));return Math.abs(v)<.001&&(v=1),this.x=(y-g)/v,this.y=(_-f)/v,this.z=(m-u)/v,this.w=Math.acos((d+h+b-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this.w=e.w+(t.w-e.w)*s,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class L0t extends Ha{constructor(e=1,t=1,s={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Wt(0,0,e,t),this.scissorTest=!1,this.viewport=new Wt(0,0,e,t);const r={width:e,height:t,depth:1};s.encoding!==void 0&&(kl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===ro?nn:ys),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Wn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new xn(r,s.mapping,s.wrapS,s.wrapT,s.magFilter,s.minFilter,s.format,s.type,s.anisotropy,s.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=s.generateMipmaps,this.texture.internalFormat=s.internalFormat,this.depthBuffer=s.depthBuffer,this.stencilBuffer=s.stencilBuffer,this.depthTexture=s.depthTexture,this.samples=s.samples}setSize(e,t,s=1){(this.width!==e||this.height!==t||this.depth!==s)&&(this.width=e,this.height=t,this.depth=s,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=s,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new $N(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends L0t{constructor(e=1,t=1,s={}){super(e,t,s),this.isWebGLRenderTarget=!0}}class WN extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=gs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class P0t extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=gs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Mi{constructor(e=0,t=0,s=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=s,this._w=r}static slerpFlat(e,t,s,r,i,o,a){let c=s[r+0],d=s[r+1],u=s[r+2],_=s[r+3];const m=i[o+0],h=i[o+1],g=i[o+2],f=i[o+3];if(a===0){e[t+0]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_;return}if(a===1){e[t+0]=m,e[t+1]=h,e[t+2]=g,e[t+3]=f;return}if(_!==f||c!==m||d!==h||u!==g){let y=1-a;const b=c*m+d*h+u*g+_*f,v=b>=0?1:-1,E=1-b*b;if(E>Number.EPSILON){const R=Math.sqrt(E),w=Math.atan2(R,b*v);y=Math.sin(y*w)/R,a=Math.sin(a*w)/R}const S=a*v;if(c=c*y+m*S,d=d*y+h*S,u=u*y+g*S,_=_*y+f*S,y===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+_*_);c*=R,d*=R,u*=R,_*=R}}e[t]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_}static multiplyQuaternionsFlat(e,t,s,r,i,o){const a=s[r],c=s[r+1],d=s[r+2],u=s[r+3],_=i[o],m=i[o+1],h=i[o+2],g=i[o+3];return e[t]=a*g+u*_+c*h-d*m,e[t+1]=c*g+u*m+d*_-a*h,e[t+2]=d*g+u*h+a*m-c*_,e[t+3]=u*g-a*_-c*m-d*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,s,r){return this._x=e,this._y=t,this._z=s,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const s=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(s/2),u=a(r/2),_=a(i/2),m=c(s/2),h=c(r/2),g=c(i/2);switch(o){case"XYZ":this._x=m*u*_+d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_-m*h*g;break;case"YXZ":this._x=m*u*_+d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_+m*h*g;break;case"ZXY":this._x=m*u*_-d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_-m*h*g;break;case"ZYX":this._x=m*u*_-d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_+m*h*g;break;case"YZX":this._x=m*u*_+d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_-m*h*g;break;case"XZY":this._x=m*u*_-d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_+m*h*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const s=t/2,r=Math.sin(s);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,s=t[0],r=t[4],i=t[8],o=t[1],a=t[5],c=t[9],d=t[2],u=t[6],_=t[10],m=s+a+_;if(m>0){const h=.5/Math.sqrt(m+1);this._w=.25/h,this._x=(u-c)*h,this._y=(i-d)*h,this._z=(o-r)*h}else if(s>a&&s>_){const h=2*Math.sqrt(1+s-a-_);this._w=(u-c)/h,this._x=.25*h,this._y=(r+o)/h,this._z=(i+d)/h}else if(a>_){const h=2*Math.sqrt(1+a-s-_);this._w=(i-d)/h,this._x=(r+o)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+_-s-a);this._w=(o-r)/h,this._x=(i+d)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let s=e.dot(t)+1;return sMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=s):(this._x=0,this._y=-e.z,this._z=e.y,this._w=s)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const s=this.angleTo(e);if(s===0)return this;const r=Math.min(1,t/s);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const s=e._x,r=e._y,i=e._z,o=e._w,a=t._x,c=t._y,d=t._z,u=t._w;return this._x=s*u+o*a+r*d-i*c,this._y=r*u+o*c+i*a-s*d,this._z=i*u+o*d+s*c-r*a,this._w=o*u-s*a-r*c-i*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const s=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+s*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=s,this._y=r,this._z=i,this;const c=1-a*a;if(c<=Number.EPSILON){const h=1-t;return this._w=h*o+t*this._w,this._x=h*s+t*this._x,this._y=h*r+t*this._y,this._z=h*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),_=Math.sin((1-t)*u)/d,m=Math.sin(t*u)/d;return this._w=o*_+this._w*m,this._x=s*_+this._x*m,this._y=r*_+this._y*m,this._z=i*_+this._z*m,this._onChangeCallback(),this}slerpQuaternions(e,t,s){return this.copy(e).slerp(t,s)}random(){const e=Math.random(),t=Math.sqrt(1-e),s=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),s*Math.sin(i),s*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ie{constructor(e=0,t=0,s=0){ie.prototype.isVector3=!0,this.x=e,this.y=t,this.z=s}set(e,t,s){return s===void 0&&(s=this.z),this.x=e,this.y=t,this.z=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion($C.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion($C.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*s+i[6]*r,this.y=i[1]*t+i[4]*s+i[7]*r,this.z=i[2]*t+i[5]*s+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,s=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*s+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*s+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*s+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*s+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,s=this.y,r=this.z,i=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*r-a*s),u=2*(a*t-i*r),_=2*(i*s-o*t);return this.x=t+c*d+o*_-a*u,this.y=s+c*u+a*d-i*_,this.z=r+c*_+i*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*s+i[8]*r,this.y=i[1]*t+i[5]*s+i[9]*r,this.z=i[2]*t+i[6]*s+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const s=e.x,r=e.y,i=e.z,o=t.x,a=t.y,c=t.z;return this.x=r*c-i*a,this.y=i*o-s*c,this.z=s*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const s=e.dot(this)/t;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return Zh.copy(this).projectOnVector(e),this.sub(Zh)}reflect(e){return this.sub(Zh.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y,r=this.z-e.z;return t*t+s*s+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,s){const r=Math.sin(t)*e;return this.x=r*Math.sin(s),this.y=Math.cos(t)*e,this.z=r*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,s){return this.x=e*Math.sin(t),this.y=s,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),s=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=s,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,s=Math.sqrt(1-e**2);return this.x=s*Math.cos(t),this.y=s*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Zh=new ie,$C=new Mi;class Gr{constructor(e=new ie(1/0,1/0,1/0),t=new ie(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,s=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Is),Is.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,s;return e.normal.x>0?(t=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),t<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ol),Yc.subVectors(this.max,ol),Mo.subVectors(e.a,ol),No.subVectors(e.b,ol),Oo.subVectors(e.c,ol),Kr.subVectors(No,Mo),jr.subVectors(Oo,No),Di.subVectors(Mo,Oo);let t=[0,-Kr.z,Kr.y,0,-jr.z,jr.y,0,-Di.z,Di.y,Kr.z,0,-Kr.x,jr.z,0,-jr.x,Di.z,0,-Di.x,-Kr.y,Kr.x,0,-jr.y,jr.x,0,-Di.y,Di.x,0];return!Jh(t,Mo,No,Oo,Yc)||(t=[1,0,0,0,1,0,0,0,1],!Jh(t,Mo,No,Oo,Yc))?!1:($c.crossVectors(Kr,jr),t=[$c.x,$c.y,$c.z],Jh(t,Mo,No,Oo,Yc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Is).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Is).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(br[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),br[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),br[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),br[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),br[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),br[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),br[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),br[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(br),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const br=[new ie,new ie,new ie,new ie,new ie,new ie,new ie,new ie],Is=new ie,qc=new Gr,Mo=new ie,No=new ie,Oo=new ie,Kr=new ie,jr=new ie,Di=new ie,ol=new ie,Yc=new ie,$c=new ie,Li=new ie;function Jh(n,e,t,s,r){for(let i=0,o=n.length-3;i<=o;i+=3){Li.fromArray(n,i);const a=r.x*Math.abs(Li.x)+r.y*Math.abs(Li.y)+r.z*Math.abs(Li.z),c=e.dot(Li),d=t.dot(Li),u=s.dot(Li);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const F0t=new Gr,al=new ie,eg=new ie;class fr{constructor(e=new ie,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const s=this.center;t!==void 0?s.copy(t):F0t.setFromPoints(e).getCenter(s);let r=0;for(let i=0,o=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);const t=al.lengthSq();if(t>this.radius*this.radius){const s=Math.sqrt(t),r=(s-this.radius)*.5;this.center.addScaledVector(al,r/s),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(eg.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(eg)),this.expandByPoint(al.copy(e.center).sub(eg))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const yr=new ie,tg=new ie,Wc=new ie,Qr=new ie,ng=new ie,Kc=new ie,sg=new ie;class _p{constructor(e=new ie,t=new ie(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,yr)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const s=t.dot(this.direction);return s<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,s)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=yr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(yr.copy(this.origin).addScaledVector(this.direction,t),yr.distanceToSquared(e))}distanceSqToSegment(e,t,s,r){tg.copy(e).add(t).multiplyScalar(.5),Wc.copy(t).sub(e).normalize(),Qr.copy(this.origin).sub(tg);const i=e.distanceTo(t)*.5,o=-this.direction.dot(Wc),a=Qr.dot(this.direction),c=-Qr.dot(Wc),d=Qr.lengthSq(),u=Math.abs(1-o*o);let _,m,h,g;if(u>0)if(_=o*c-a,m=o*a-c,g=i*u,_>=0)if(m>=-g)if(m<=g){const f=1/u;_*=f,m*=f,h=_*(_+o*m+2*a)+m*(o*_+m+2*c)+d}else m=i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m=-i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m<=-g?(_=Math.max(0,-(-o*i+a)),m=_>0?-i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d):m<=g?(_=0,m=Math.min(Math.max(-i,-c),i),h=m*(m+2*c)+d):(_=Math.max(0,-(o*i+a)),m=_>0?i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d);else m=o>0?-i:i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;return s&&s.copy(this.origin).addScaledVector(this.direction,_),r&&r.copy(tg).addScaledVector(Wc,m),h}intersectSphere(e,t){yr.subVectors(e.center,this.origin);const s=yr.dot(this.direction),r=yr.dot(yr)-s*s,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=s-o,c=s+o;return c<0?null:a<0?this.at(c,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const s=-(this.origin.dot(e.normal)+e.constant)/t;return s>=0?s:null}intersectPlane(e,t){const s=this.distanceToPlane(e);return s===null?null:this.at(s,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let s,r,i,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,_=1/this.direction.z,m=this.origin;return d>=0?(s=(e.min.x-m.x)*d,r=(e.max.x-m.x)*d):(s=(e.max.x-m.x)*d,r=(e.min.x-m.x)*d),u>=0?(i=(e.min.y-m.y)*u,o=(e.max.y-m.y)*u):(i=(e.max.y-m.y)*u,o=(e.min.y-m.y)*u),s>o||i>r||((i>s||isNaN(s))&&(s=i),(o=0?(a=(e.min.z-m.z)*_,c=(e.max.z-m.z)*_):(a=(e.max.z-m.z)*_,c=(e.min.z-m.z)*_),s>c||a>r)||((a>s||s!==s)&&(s=a),(c=0?s:r,t)}intersectsBox(e){return this.intersectBox(e,yr)!==null}intersectTriangle(e,t,s,r,i){ng.subVectors(t,e),Kc.subVectors(s,e),sg.crossVectors(ng,Kc);let o=this.direction.dot(sg),a;if(o>0){if(r)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Qr.subVectors(this.origin,e);const c=a*this.direction.dot(Kc.crossVectors(Qr,Kc));if(c<0)return null;const d=a*this.direction.dot(ng.cross(Qr));if(d<0||c+d>o)return null;const u=-a*Qr.dot(sg);return u<0?null:this.at(u/o,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y){xt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y)}set(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y){const b=this.elements;return b[0]=e,b[4]=t,b[8]=s,b[12]=r,b[1]=i,b[5]=o,b[9]=a,b[13]=c,b[2]=d,b[6]=u,b[10]=_,b[14]=m,b[3]=h,b[7]=g,b[11]=f,b[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new xt().fromArray(this.elements)}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],t[9]=s[9],t[10]=s[10],t[11]=s[11],t[12]=s[12],t[13]=s[13],t[14]=s[14],t[15]=s[15],this}copyPosition(e){const t=this.elements,s=e.elements;return t[12]=s[12],t[13]=s[13],t[14]=s[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,s){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,t,s){return this.set(e.x,t.x,s.x,0,e.y,t.y,s.y,0,e.z,t.z,s.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,s=e.elements,r=1/Io.setFromMatrixColumn(e,0).length(),i=1/Io.setFromMatrixColumn(e,1).length(),o=1/Io.setFromMatrixColumn(e,2).length();return t[0]=s[0]*r,t[1]=s[1]*r,t[2]=s[2]*r,t[3]=0,t[4]=s[4]*i,t[5]=s[5]*i,t[6]=s[6]*i,t[7]=0,t[8]=s[8]*o,t[9]=s[9]*o,t[10]=s[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,s=e.x,r=e.y,i=e.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(r),d=Math.sin(r),u=Math.cos(i),_=Math.sin(i);if(e.order==="XYZ"){const m=o*u,h=o*_,g=a*u,f=a*_;t[0]=c*u,t[4]=-c*_,t[8]=d,t[1]=h+g*d,t[5]=m-f*d,t[9]=-a*c,t[2]=f-m*d,t[6]=g+h*d,t[10]=o*c}else if(e.order==="YXZ"){const m=c*u,h=c*_,g=d*u,f=d*_;t[0]=m+f*a,t[4]=g*a-h,t[8]=o*d,t[1]=o*_,t[5]=o*u,t[9]=-a,t[2]=h*a-g,t[6]=f+m*a,t[10]=o*c}else if(e.order==="ZXY"){const m=c*u,h=c*_,g=d*u,f=d*_;t[0]=m-f*a,t[4]=-o*_,t[8]=g+h*a,t[1]=h+g*a,t[5]=o*u,t[9]=f-m*a,t[2]=-o*d,t[6]=a,t[10]=o*c}else if(e.order==="ZYX"){const m=o*u,h=o*_,g=a*u,f=a*_;t[0]=c*u,t[4]=g*d-h,t[8]=m*d+f,t[1]=c*_,t[5]=f*d+m,t[9]=h*d-g,t[2]=-d,t[6]=a*c,t[10]=o*c}else if(e.order==="YZX"){const m=o*c,h=o*d,g=a*c,f=a*d;t[0]=c*u,t[4]=f-m*_,t[8]=g*_+h,t[1]=_,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=h*_+g,t[10]=m-f*_}else if(e.order==="XZY"){const m=o*c,h=o*d,g=a*c,f=a*d;t[0]=c*u,t[4]=-_,t[8]=d*u,t[1]=m*_+f,t[5]=o*u,t[9]=h*_-g,t[2]=g*_-h,t[6]=a*u,t[10]=f*_+m}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(U0t,e,B0t)}lookAt(e,t,s){const r=this.elements;return ns.subVectors(e,t),ns.lengthSq()===0&&(ns.z=1),ns.normalize(),Xr.crossVectors(s,ns),Xr.lengthSq()===0&&(Math.abs(s.z)===1?ns.x+=1e-4:ns.z+=1e-4,ns.normalize(),Xr.crossVectors(s,ns)),Xr.normalize(),jc.crossVectors(ns,Xr),r[0]=Xr.x,r[4]=jc.x,r[8]=ns.x,r[1]=Xr.y,r[5]=jc.y,r[9]=ns.y,r[2]=Xr.z,r[6]=jc.z,r[10]=ns.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[4],c=s[8],d=s[12],u=s[1],_=s[5],m=s[9],h=s[13],g=s[2],f=s[6],y=s[10],b=s[14],v=s[3],E=s[7],S=s[11],R=s[15],w=r[0],A=r[4],I=r[8],C=r[12],M=r[1],G=r[5],V=r[9],ee=r[13],O=r[2],H=r[6],q=r[10],L=r[14],W=r[3],se=r[7],oe=r[11],ye=r[15];return i[0]=o*w+a*M+c*O+d*W,i[4]=o*A+a*G+c*H+d*se,i[8]=o*I+a*V+c*q+d*oe,i[12]=o*C+a*ee+c*L+d*ye,i[1]=u*w+_*M+m*O+h*W,i[5]=u*A+_*G+m*H+h*se,i[9]=u*I+_*V+m*q+h*oe,i[13]=u*C+_*ee+m*L+h*ye,i[2]=g*w+f*M+y*O+b*W,i[6]=g*A+f*G+y*H+b*se,i[10]=g*I+f*V+y*q+b*oe,i[14]=g*C+f*ee+y*L+b*ye,i[3]=v*w+E*M+S*O+R*W,i[7]=v*A+E*G+S*H+R*se,i[11]=v*I+E*V+S*q+R*oe,i[15]=v*C+E*ee+S*L+R*ye,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],s=e[4],r=e[8],i=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],_=e[6],m=e[10],h=e[14],g=e[3],f=e[7],y=e[11],b=e[15];return g*(+i*c*_-r*d*_-i*a*m+s*d*m+r*a*h-s*c*h)+f*(+t*c*h-t*d*m+i*o*m-r*o*h+r*d*u-i*c*u)+y*(+t*d*_-t*a*h-i*o*_+s*o*h+i*a*u-s*d*u)+b*(-r*a*u-t*c*_+t*a*m+r*o*_-s*o*m+s*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,s){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=s),this}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=e[9],m=e[10],h=e[11],g=e[12],f=e[13],y=e[14],b=e[15],v=_*y*d-f*m*d+f*c*h-a*y*h-_*c*b+a*m*b,E=g*m*d-u*y*d-g*c*h+o*y*h+u*c*b-o*m*b,S=u*f*d-g*_*d+g*a*h-o*f*h-u*a*b+o*_*b,R=g*_*c-u*f*c-g*a*m+o*f*m+u*a*y-o*_*y,w=t*v+s*E+r*S+i*R;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/w;return e[0]=v*A,e[1]=(f*m*i-_*y*i-f*r*h+s*y*h+_*r*b-s*m*b)*A,e[2]=(a*y*i-f*c*i+f*r*d-s*y*d-a*r*b+s*c*b)*A,e[3]=(_*c*i-a*m*i-_*r*d+s*m*d+a*r*h-s*c*h)*A,e[4]=E*A,e[5]=(u*y*i-g*m*i+g*r*h-t*y*h-u*r*b+t*m*b)*A,e[6]=(g*c*i-o*y*i-g*r*d+t*y*d+o*r*b-t*c*b)*A,e[7]=(o*m*i-u*c*i+u*r*d-t*m*d-o*r*h+t*c*h)*A,e[8]=S*A,e[9]=(g*_*i-u*f*i-g*s*h+t*f*h+u*s*b-t*_*b)*A,e[10]=(o*f*i-g*a*i+g*s*d-t*f*d-o*s*b+t*a*b)*A,e[11]=(u*a*i-o*_*i-u*s*d+t*_*d+o*s*h-t*a*h)*A,e[12]=R*A,e[13]=(u*f*r-g*_*r+g*s*m-t*f*m-u*s*y+t*_*y)*A,e[14]=(g*a*r-o*f*r-g*s*c+t*f*c+o*s*y-t*a*y)*A,e[15]=(o*_*r-u*a*r+u*s*c-t*_*c-o*s*m+t*a*m)*A,this}scale(e){const t=this.elements,s=e.x,r=e.y,i=e.z;return t[0]*=s,t[4]*=r,t[8]*=i,t[1]*=s,t[5]*=r,t[9]*=i,t[2]*=s,t[6]*=r,t[10]*=i,t[3]*=s,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],s=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,s,r))}makeTranslation(e,t,s){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,s,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,t,-s,0,0,s,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,0,s,0,0,1,0,0,-s,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,0,s,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const s=Math.cos(t),r=Math.sin(t),i=1-s,o=e.x,a=e.y,c=e.z,d=i*o,u=i*a;return this.set(d*o+s,d*a-r*c,d*c+r*a,0,d*a+r*c,u*a+s,u*c-r*o,0,d*c-r*a,u*c+r*o,i*c*c+s,0,0,0,0,1),this}makeScale(e,t,s){return this.set(e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,t,s,r,i,o){return this.set(1,s,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,s){const r=this.elements,i=t._x,o=t._y,a=t._z,c=t._w,d=i+i,u=o+o,_=a+a,m=i*d,h=i*u,g=i*_,f=o*u,y=o*_,b=a*_,v=c*d,E=c*u,S=c*_,R=s.x,w=s.y,A=s.z;return r[0]=(1-(f+b))*R,r[1]=(h+S)*R,r[2]=(g-E)*R,r[3]=0,r[4]=(h-S)*w,r[5]=(1-(m+b))*w,r[6]=(y+v)*w,r[7]=0,r[8]=(g+E)*A,r[9]=(y-v)*A,r[10]=(1-(m+f))*A,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,s){const r=this.elements;let i=Io.set(r[0],r[1],r[2]).length();const o=Io.set(r[4],r[5],r[6]).length(),a=Io.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ks.copy(this);const d=1/i,u=1/o,_=1/a;return ks.elements[0]*=d,ks.elements[1]*=d,ks.elements[2]*=d,ks.elements[4]*=u,ks.elements[5]*=u,ks.elements[6]*=u,ks.elements[8]*=_,ks.elements[9]*=_,ks.elements[10]*=_,t.setFromRotationMatrix(ks),s.x=i,s.y=o,s.z=a,this}makePerspective(e,t,s,r,i,o,a=Nr){const c=this.elements,d=2*i/(t-e),u=2*i/(s-r),_=(t+e)/(t-e),m=(s+r)/(s-r);let h,g;if(a===Nr)h=-(o+i)/(o-i),g=-2*o*i/(o-i);else if(a===vu)h=-o/(o-i),g=-o*i/(o-i);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=_,c[12]=0,c[1]=0,c[5]=u,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=g,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,s,r,i,o,a=Nr){const c=this.elements,d=1/(t-e),u=1/(s-r),_=1/(o-i),m=(t+e)*d,h=(s+r)*u;let g,f;if(a===Nr)g=(o+i)*_,f=-2*_;else if(a===vu)g=i*_,f=-1*_;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-m,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=f,c[14]=-g,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,s=e.elements;for(let r=0;r<16;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<16;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e[t+9]=s[9],e[t+10]=s[10],e[t+11]=s[11],e[t+12]=s[12],e[t+13]=s[13],e[t+14]=s[14],e[t+15]=s[15],e}}const Io=new ie,ks=new xt,U0t=new ie(0,0,0),B0t=new ie(1,1,1),Xr=new ie,jc=new ie,ns=new ie,WC=new xt,KC=new Mi;class mp{constructor(e=0,t=0,s=0,r=mp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=s,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,s,r=this._order){return this._x=e,this._y=t,this._z=s,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,s=!0){const r=e.elements,i=r[0],o=r[4],a=r[8],c=r[1],d=r[5],u=r[9],_=r[2],m=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(m,d),this._z=0);break;case"YXZ":this._x=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-_,i),this._z=0);break;case"ZXY":this._x=Math.asin(On(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-_,h),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,i));break;case"ZYX":this._y=Math.asin(-On(_,-1,1)),Math.abs(_)<.9999999?(this._x=Math.atan2(m,h),this._z=Math.atan2(c,i)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(On(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-_,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(m,d),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,s){return WC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(WC,t,s)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return KC.setFromEuler(this),this.setFromQuaternion(KC,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}mp.DEFAULT_ORDER="XYZ";class KN{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let s=0;s0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function i(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let d=0,u=c.length;d0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(s.geometries=a),c.length>0&&(s.materials=c),d.length>0&&(s.textures=d),u.length>0&&(s.images=u),_.length>0&&(s.shapes=_),m.length>0&&(s.skeletons=m),h.length>0&&(s.animations=h),g.length>0&&(s.nodes=g)}return s.object=r,s;function o(a){const c=[];for(const d in a){const u=a[d];delete u.metadata,c.push(u)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let s=0;s0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,s,r,i){Ds.subVectors(r,t),Er.subVectors(s,t),rg.subVectors(e,t);const o=Ds.dot(Ds),a=Ds.dot(Er),c=Ds.dot(rg),d=Er.dot(Er),u=Er.dot(rg),_=o*d-a*a;if(_===0)return i.set(-2,-1,-1);const m=1/_,h=(d*c-a*u)*m,g=(o*u-a*c)*m;return i.set(1-h-g,g,h)}static containsPoint(e,t,s,r){return this.getBarycoord(e,t,s,r,Sr),Sr.x>=0&&Sr.y>=0&&Sr.x+Sr.y<=1}static getUV(e,t,s,r,i,o,a,c){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),this.getInterpolation(e,t,s,r,i,o,a,c)}static getInterpolation(e,t,s,r,i,o,a,c){return this.getBarycoord(e,t,s,r,Sr),c.setScalar(0),c.addScaledVector(i,Sr.x),c.addScaledVector(o,Sr.y),c.addScaledVector(a,Sr.z),c}static isFrontFacing(e,t,s,r){return Ds.subVectors(s,t),Er.subVectors(e,t),Ds.cross(Er).dot(r)<0}set(e,t,s){return this.a.copy(e),this.b.copy(t),this.c.copy(s),this}setFromPointsAndIndices(e,t,s,r){return this.a.copy(e[t]),this.b.copy(e[s]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,s,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,s),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ds.subVectors(this.c,this.b),Er.subVectors(this.a,this.b),Ds.cross(Er).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fs.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Fs.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,s,r,i){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}getInterpolation(e,t,s,r,i){return Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}containsPoint(e){return Fs.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fs.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const s=this.a,r=this.b,i=this.c;let o,a;Do.subVectors(r,s),Lo.subVectors(i,s),ig.subVectors(e,s);const c=Do.dot(ig),d=Lo.dot(ig);if(c<=0&&d<=0)return t.copy(s);og.subVectors(e,r);const u=Do.dot(og),_=Lo.dot(og);if(u>=0&&_<=u)return t.copy(r);const m=c*_-u*d;if(m<=0&&c>=0&&u<=0)return o=c/(c-u),t.copy(s).addScaledVector(Do,o);ag.subVectors(e,i);const h=Do.dot(ag),g=Lo.dot(ag);if(g>=0&&h<=g)return t.copy(i);const f=h*d-c*g;if(f<=0&&d>=0&&g<=0)return a=d/(d-g),t.copy(s).addScaledVector(Lo,a);const y=u*g-h*_;if(y<=0&&_-u>=0&&h-g>=0)return JC.subVectors(i,r),a=(_-u)/(_-u+(h-g)),t.copy(r).addScaledVector(JC,a);const b=1/(y+f+m);return o=f*b,a=m*b,t.copy(s).addScaledVector(Do,o).addScaledVector(Lo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const jN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zr={h:0,s:0,l:0},Zc={h:0,s:0,l:0};function lg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,s)}set(e,t,s){if(t===void 0&&s===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Pt.toWorkingColorSpace(this,t),this}setRGB(e,t,s,r=Pt.workingColorSpace){return this.r=e,this.g=t,this.b=s,Pt.toWorkingColorSpace(this,r),this}setHSL(e,t,s,r=Pt.workingColorSpace){if(e=fy(e,1),t=On(t,0,1),s=On(s,0,1),t===0)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+t):s+t-s*t,o=2*s-i;this.r=lg(o,i,e+1/3),this.g=lg(o,i,e),this.b=lg(o,i,e-1/3)}return Pt.toWorkingColorSpace(this,r),this}setStyle(e,t=nn){function s(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const i=r[1],o=i.length;if(o===3)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(i,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const s=jN[e.toLowerCase()];return s!==void 0?this.setHex(s,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=oa(e.r),this.g=oa(e.g),this.b=oa(e.b),this}copyLinearToSRGB(e){return this.r=Qh(e.r),this.g=Qh(e.g),this.b=Qh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Pt.fromWorkingColorSpace(Mn.copy(this),e),Math.round(On(Mn.r*255,0,255))*65536+Math.round(On(Mn.g*255,0,255))*256+Math.round(On(Mn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Pt.workingColorSpace){Pt.fromWorkingColorSpace(Mn.copy(this),t);const s=Mn.r,r=Mn.g,i=Mn.b,o=Math.max(s,r,i),a=Math.min(s,r,i);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const _=o-a;switch(d=u<=.5?_/(o+a):_/(2-o-a),o){case s:c=(r-i)/_+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const s=e[t];if(s===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(s):r&&r.isVector3&&s&&s.isVector3?r.copy(s):this[t]=s}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const s={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.color&&this.color.isColor&&(s.color=this.color.getHex()),this.roughness!==void 0&&(s.roughness=this.roughness),this.metalness!==void 0&&(s.metalness=this.metalness),this.sheen!==void 0&&(s.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(s.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(s.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(s.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(s.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(s.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(s.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(s.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(s.shininess=this.shininess),this.clearcoat!==void 0&&(s.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(s.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(s.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(s.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(s.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,s.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(s.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(s.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(s.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(s.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(s.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(s.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(s.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(s.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(s.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(s.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(s.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(s.lightMap=this.lightMap.toJSON(e).uuid,s.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(s.aoMap=this.aoMap.toJSON(e).uuid,s.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(s.bumpMap=this.bumpMap.toJSON(e).uuid,s.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(s.normalMap=this.normalMap.toJSON(e).uuid,s.normalMapType=this.normalMapType,s.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(s.displacementMap=this.displacementMap.toJSON(e).uuid,s.displacementScale=this.displacementScale,s.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(s.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(s.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(s.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(s.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(s.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(s.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(s.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(s.combine=this.combine)),this.envMapIntensity!==void 0&&(s.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(s.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(s.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(s.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(s.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(s.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(s.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(s.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(s.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(s.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(s.size=this.size),this.shadowSide!==null&&(s.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(s.sizeAttenuation=this.sizeAttenuation),this.blending!==ia&&(s.blending=this.blending),this.side!==Fr&&(s.side=this.side),this.vertexColors===!0&&(s.vertexColors=!0),this.opacity<1&&(s.opacity=this.opacity),this.transparent===!0&&(s.transparent=!0),this.blendSrc!==pb&&(s.blendSrc=this.blendSrc),this.blendDst!==fb&&(s.blendDst=this.blendDst),this.blendEquation!==Yi&&(s.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(s.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(s.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(s.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(s.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(s.blendAlpha=this.blendAlpha),this.depthFunc!==mu&&(s.depthFunc=this.depthFunc),this.depthTest===!1&&(s.depthTest=this.depthTest),this.depthWrite===!1&&(s.depthWrite=this.depthWrite),this.colorWrite===!1&&(s.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(s.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==GC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ro&&(s.stencilFail=this.stencilFail),this.stencilZFail!==Ro&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==Ro&&(s.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(s.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(s.rotation=this.rotation),this.polygonOffset===!0&&(s.polygonOffset=!0),this.polygonOffsetFactor!==0&&(s.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(s.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(s.linewidth=this.linewidth),this.dashSize!==void 0&&(s.dashSize=this.dashSize),this.gapSize!==void 0&&(s.gapSize=this.gapSize),this.scale!==void 0&&(s.scale=this.scale),this.dithering===!0&&(s.dithering=!0),this.alphaTest>0&&(s.alphaTest=this.alphaTest),this.alphaHash===!0&&(s.alphaHash=!0),this.alphaToCoverage===!0&&(s.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(s.premultipliedAlpha=!0),this.forceSinglePass===!0&&(s.forceSinglePass=!0),this.wireframe===!0&&(s.wireframe=!0),this.wireframeLinewidth>1&&(s.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(s.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(s.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(s.flatShading=!0),this.visible===!1&&(s.visible=!1),this.toneMapped===!1&&(s.toneMapped=!1),this.fog===!1&&(s.fog=!1),Object.keys(this.userData).length>0&&(s.userData=this.userData);function r(i){const o=[];for(const a in i){const c=i[a];delete c.metadata,o.push(c)}return o}if(t){const i=r(e.textures),o=r(e.images);i.length>0&&(s.textures=i),o.length>0&&(s.images=o)}return s}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let s=null;if(t!==null){const r=t.length;s=new Array(r);for(let i=0;i!==r;++i)s[i]=t[i].clone()}return this.clippingPlanes=s,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class _i extends Vs{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=cy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const rn=new ie,Jc=new Rt;class zn{constructor(e,t,s=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=s,this.usage=bb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Mr,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,s){e*=this.itemSize,s*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const d in c)c[d]!==void 0&&(e[d]=c[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const s=this.attributes;for(const c in s){const d=s[c];e.data.attributes[c]=d.toJSON(e.data)}const r={};let i=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let _=0,m=d.length;_0&&(r[c]=u,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const s=e.index;s!==null&&this.setIndex(s.clone(t));const r=e.attributes;for(const d in r){const u=r[d];this.setAttribute(d,u.clone(t))}const i=e.morphAttributes;for(const d in i){const u=[],_=i[d];for(let m=0,h=_.length;m0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i(e.far-e.near)**2))&&(ew.copy(i).invert(),Pi.copy(e.ray).applyMatrix4(ew),!(s.boundingBox!==null&&Pi.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,t,Pi)))}_computeIntersections(e,t,s){let r;const i=this.geometry,o=this.material,a=i.index,c=i.attributes.position,d=i.attributes.uv,u=i.attributes.uv1,_=i.attributes.normal,m=i.groups,h=i.drawRange;if(a!==null)if(Array.isArray(o))for(let g=0,f=m.length;gt.far?null:{distance:d,point:od.clone(),object:n}}function ad(n,e,t,s,r,i,o,a,c,d){n.getVertexPosition(a,Fo),n.getVertexPosition(c,Uo),n.getVertexPosition(d,Bo);const u=W0t(n,e,t,s,Fo,Uo,Bo,id);if(u){r&&(nd.fromBufferAttribute(r,a),sd.fromBufferAttribute(r,c),rd.fromBufferAttribute(r,d),u.uv=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt)),i&&(nd.fromBufferAttribute(i,a),sd.fromBufferAttribute(i,c),rd.fromBufferAttribute(i,d),u.uv1=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt),u.uv2=u.uv1),o&&(nw.fromBufferAttribute(o,a),sw.fromBufferAttribute(o,c),rw.fromBufferAttribute(o,d),u.normal=Fs.getInterpolation(id,Fo,Uo,Bo,nw,sw,rw,new ie),u.normal.dot(s.direction)>0&&u.normal.multiplyScalar(-1));const _={a,b:c,c:d,normal:new ie,materialIndex:0};Fs.getNormal(Fo,Uo,Bo,_.normal),u.face=_}return u}class yi extends _r{constructor(e=1,t=1,s=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:s,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const c=[],d=[],u=[],_=[];let m=0,h=0;g("z","y","x",-1,-1,s,t,e,o,i,0),g("z","y","x",1,-1,s,t,-e,o,i,1),g("x","z","y",1,1,e,s,t,r,o,2),g("x","z","y",1,-1,e,s,-t,r,o,3),g("x","y","z",1,-1,e,t,s,r,i,4),g("x","y","z",-1,-1,e,t,-s,r,i,5),this.setIndex(c),this.setAttribute("position",new kr(d,3)),this.setAttribute("normal",new kr(u,3)),this.setAttribute("uv",new kr(_,2));function g(f,y,b,v,E,S,R,w,A,I,C){const M=S/A,G=R/I,V=S/2,ee=R/2,O=w/2,H=A+1,q=I+1;let L=0,W=0;const se=new ie;for(let oe=0;oe0?1:-1,u.push(se.x,se.y,se.z),_.push(xe/A),_.push(1-oe/I),L+=1}}for(let oe=0;oe>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[s&255]+An[s>>8&255]+An[s>>16&255]+An[s>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function fy(n,e){return(n%e+e)%e}function h0t(n,e,t,s,r){return s+(n-e)*(r-s)/(t-e)}function g0t(n,e,t){return n!==e?(t-n)/(e-n):0}function Il(n,e,t){return(1-t)*n+t*e}function b0t(n,e,t,s){return Il(n,e,1-Math.exp(-t*s))}function y0t(n,e=1){return e-Math.abs(fy(n,e*2)-e)}function v0t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function E0t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function S0t(n,e){return n+Math.floor(Math.random()*(e-n+1))}function T0t(n,e){return n+Math.random()*(e-n)}function x0t(n){return n*(.5-Math.random())}function C0t(n){n!==void 0&&(zC=n);let e=zC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function w0t(n){return n*Ol}function R0t(n){return n*xa}function vb(n){return(n&n-1)===0&&n!==0}function A0t(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Eu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function M0t(n,e,t,s,r){const i=Math.cos,o=Math.sin,a=i(t/2),c=o(t/2),d=i((e+s)/2),u=o((e+s)/2),_=i((e-s)/2),m=o((e-s)/2),h=i((s-e)/2),g=o((s-e)/2);switch(r){case"XYX":n.set(a*u,c*_,c*m,a*d);break;case"YZY":n.set(c*m,a*u,c*_,a*d);break;case"ZXZ":n.set(c*_,c*m,a*u,a*d);break;case"XZX":n.set(a*u,c*g,c*h,a*d);break;case"YXY":n.set(c*h,a*u,c*g,a*d);break;case"ZYZ":n.set(c*g,c*h,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function tr(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Gt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const N0t={DEG2RAD:Ol,RAD2DEG:xa,generateUUID:Gs,clamp:On,euclideanModulo:fy,mapLinear:h0t,inverseLerp:g0t,lerp:Il,damp:b0t,pingpong:y0t,smoothstep:v0t,smootherstep:E0t,randInt:S0t,randFloat:T0t,randFloatSpread:x0t,seededRandom:C0t,degToRad:w0t,radToDeg:R0t,isPowerOfTwo:vb,ceilPowerOfTwo:A0t,floorPowerOfTwo:Eu,setQuaternionFromProperEuler:M0t,normalize:Gt,denormalize:tr};class Rt{constructor(e=0,t=0){Rt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,s=this.y,r=e.elements;return this.x=r[0]*t+r[3]*s+r[6],this.y=r[1]*t+r[4]*s+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y;return t*t+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const s=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*s-o*r+e.x,this.y=i*r+o*s+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Tt{constructor(e,t,s,r,i,o,a,c,d){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,s,r,i,o,a,c,d)}set(e,t,s,r,i,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=r,u[2]=a,u[3]=t,u[4]=i,u[5]=c,u[6]=s,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],this}extractBasis(e,t,s){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[3],c=s[6],d=s[1],u=s[4],_=s[7],m=s[2],h=s[5],g=s[8],f=r[0],y=r[3],b=r[6],v=r[1],E=r[4],S=r[7],R=r[2],w=r[5],A=r[8];return i[0]=o*f+a*v+c*R,i[3]=o*y+a*E+c*w,i[6]=o*b+a*S+c*A,i[1]=d*f+u*v+_*R,i[4]=d*y+u*E+_*w,i[7]=d*b+u*S+_*A,i[2]=m*f+h*v+g*R,i[5]=m*y+h*E+g*w,i[8]=m*b+h*S+g*A,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-s*i*u+s*a*c+r*i*d-r*o*c}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=u*o-a*d,m=a*c-u*i,h=d*i-o*c,g=t*_+s*m+r*h;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const f=1/g;return e[0]=_*f,e[1]=(r*d-u*s)*f,e[2]=(a*s-r*o)*f,e[3]=m*f,e[4]=(u*t-r*c)*f,e[5]=(r*i-a*t)*f,e[6]=h*f,e[7]=(s*c-d*t)*f,e[8]=(o*t-s*i)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,s,r,i,o,a){const c=Math.cos(i),d=Math.sin(i);return this.set(s*c,s*d,-s*(c*o+d*a)+o+e,-r*d,r*c,-r*(-d*o+c*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(jh.makeScale(e,t)),this}rotate(e){return this.premultiply(jh.makeRotation(-e)),this}translate(e,t){return this.premultiply(jh.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,s,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,s=e.elements;for(let r=0;r<9;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<9;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const jh=new Tt;function qN(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Zl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function O0t(){const n=Zl("canvas");return n.style.display="block",n}const HC={};function kl(n){n in HC||(HC[n]=!0,console.warn(n))}const qC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),YC=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:gu,primaries:bu,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:jt,primaries:bu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[fp]:{transfer:gu,primaries:yu,toReference:n=>n.applyMatrix3(YC),fromReference:n=>n.applyMatrix3(qC)},[py]:{transfer:jt,primaries:yu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(YC),fromReference:n=>n.applyMatrix3(qC).convertLinearToSRGB()}},I0t=new Set([Cn,fp]),Pt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!I0t.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const s=Hc[e].toReference,r=Hc[t].fromReference;return r(s(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===ys?gu:Hc[n].transfer}};function oa(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Qh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ao;class YN{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ao===void 0&&(Ao=Zl("canvas")),Ao.width=e.width,Ao.height=e.height;const s=Ao.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),t=Ao}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Zl("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const r=s.getImageData(0,0,e.width,e.height),i=r.data;for(let o=0;o0&&(s.userData=this.userData),t||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==IN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ea:e.x=e.x-Math.floor(e.x);break;case gs:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ea:e.y=e.y-Math.floor(e.y);break;case gs:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?ro:zN}set encoding(e){kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===ro?nn:ys}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=IN;xn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,t=0,s=0,r=1){Wt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=s,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,s,r){return this.x=e,this.y=t,this.z=s,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,s=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*s+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*s+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*s+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*s+o[11]*r+o[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,s,r,i;const c=e.elements,d=c[0],u=c[4],_=c[8],m=c[1],h=c[5],g=c[9],f=c[2],y=c[6],b=c[10];if(Math.abs(u-m)<.01&&Math.abs(_-f)<.01&&Math.abs(g-y)<.01){if(Math.abs(u+m)<.1&&Math.abs(_+f)<.1&&Math.abs(g+y)<.1&&Math.abs(d+h+b-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(d+1)/2,S=(h+1)/2,R=(b+1)/2,w=(u+m)/4,A=(_+f)/4,I=(g+y)/4;return E>S&&E>R?E<.01?(s=0,r=.707106781,i=.707106781):(s=Math.sqrt(E),r=w/s,i=A/s):S>R?S<.01?(s=.707106781,r=0,i=.707106781):(r=Math.sqrt(S),s=w/r,i=I/r):R<.01?(s=.707106781,r=.707106781,i=0):(i=Math.sqrt(R),s=A/i,r=I/i),this.set(s,r,i,t),this}let v=Math.sqrt((y-g)*(y-g)+(_-f)*(_-f)+(m-u)*(m-u));return Math.abs(v)<.001&&(v=1),this.x=(y-g)/v,this.y=(_-f)/v,this.z=(m-u)/v,this.w=Math.acos((d+h+b-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this.w=e.w+(t.w-e.w)*s,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class L0t extends Ha{constructor(e=1,t=1,s={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Wt(0,0,e,t),this.scissorTest=!1,this.viewport=new Wt(0,0,e,t);const r={width:e,height:t,depth:1};s.encoding!==void 0&&(kl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===ro?nn:ys),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Wn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new xn(r,s.mapping,s.wrapS,s.wrapT,s.magFilter,s.minFilter,s.format,s.type,s.anisotropy,s.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=s.generateMipmaps,this.texture.internalFormat=s.internalFormat,this.depthBuffer=s.depthBuffer,this.stencilBuffer=s.stencilBuffer,this.depthTexture=s.depthTexture,this.samples=s.samples}setSize(e,t,s=1){(this.width!==e||this.height!==t||this.depth!==s)&&(this.width=e,this.height=t,this.depth=s,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=s,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new $N(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends L0t{constructor(e=1,t=1,s={}){super(e,t,s),this.isWebGLRenderTarget=!0}}class WN extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=gs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class P0t extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=gs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Mi{constructor(e=0,t=0,s=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=s,this._w=r}static slerpFlat(e,t,s,r,i,o,a){let c=s[r+0],d=s[r+1],u=s[r+2],_=s[r+3];const m=i[o+0],h=i[o+1],g=i[o+2],f=i[o+3];if(a===0){e[t+0]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_;return}if(a===1){e[t+0]=m,e[t+1]=h,e[t+2]=g,e[t+3]=f;return}if(_!==f||c!==m||d!==h||u!==g){let y=1-a;const b=c*m+d*h+u*g+_*f,v=b>=0?1:-1,E=1-b*b;if(E>Number.EPSILON){const R=Math.sqrt(E),w=Math.atan2(R,b*v);y=Math.sin(y*w)/R,a=Math.sin(a*w)/R}const S=a*v;if(c=c*y+m*S,d=d*y+h*S,u=u*y+g*S,_=_*y+f*S,y===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+_*_);c*=R,d*=R,u*=R,_*=R}}e[t]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_}static multiplyQuaternionsFlat(e,t,s,r,i,o){const a=s[r],c=s[r+1],d=s[r+2],u=s[r+3],_=i[o],m=i[o+1],h=i[o+2],g=i[o+3];return e[t]=a*g+u*_+c*h-d*m,e[t+1]=c*g+u*m+d*_-a*h,e[t+2]=d*g+u*h+a*m-c*_,e[t+3]=u*g-a*_-c*m-d*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,s,r){return this._x=e,this._y=t,this._z=s,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const s=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(s/2),u=a(r/2),_=a(i/2),m=c(s/2),h=c(r/2),g=c(i/2);switch(o){case"XYZ":this._x=m*u*_+d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_-m*h*g;break;case"YXZ":this._x=m*u*_+d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_+m*h*g;break;case"ZXY":this._x=m*u*_-d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_-m*h*g;break;case"ZYX":this._x=m*u*_-d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_+m*h*g;break;case"YZX":this._x=m*u*_+d*h*g,this._y=d*h*_+m*u*g,this._z=d*u*g-m*h*_,this._w=d*u*_-m*h*g;break;case"XZY":this._x=m*u*_-d*h*g,this._y=d*h*_-m*u*g,this._z=d*u*g+m*h*_,this._w=d*u*_+m*h*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const s=t/2,r=Math.sin(s);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,s=t[0],r=t[4],i=t[8],o=t[1],a=t[5],c=t[9],d=t[2],u=t[6],_=t[10],m=s+a+_;if(m>0){const h=.5/Math.sqrt(m+1);this._w=.25/h,this._x=(u-c)*h,this._y=(i-d)*h,this._z=(o-r)*h}else if(s>a&&s>_){const h=2*Math.sqrt(1+s-a-_);this._w=(u-c)/h,this._x=.25*h,this._y=(r+o)/h,this._z=(i+d)/h}else if(a>_){const h=2*Math.sqrt(1+a-s-_);this._w=(i-d)/h,this._x=(r+o)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+_-s-a);this._w=(o-r)/h,this._x=(i+d)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let s=e.dot(t)+1;return sMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=s):(this._x=0,this._y=-e.z,this._z=e.y,this._w=s)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const s=this.angleTo(e);if(s===0)return this;const r=Math.min(1,t/s);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const s=e._x,r=e._y,i=e._z,o=e._w,a=t._x,c=t._y,d=t._z,u=t._w;return this._x=s*u+o*a+r*d-i*c,this._y=r*u+o*c+i*a-s*d,this._z=i*u+o*d+s*c-r*a,this._w=o*u-s*a-r*c-i*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const s=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+s*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=s,this._y=r,this._z=i,this;const c=1-a*a;if(c<=Number.EPSILON){const h=1-t;return this._w=h*o+t*this._w,this._x=h*s+t*this._x,this._y=h*r+t*this._y,this._z=h*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),_=Math.sin((1-t)*u)/d,m=Math.sin(t*u)/d;return this._w=o*_+this._w*m,this._x=s*_+this._x*m,this._y=r*_+this._y*m,this._z=i*_+this._z*m,this._onChangeCallback(),this}slerpQuaternions(e,t,s){return this.copy(e).slerp(t,s)}random(){const e=Math.random(),t=Math.sqrt(1-e),s=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),s*Math.sin(i),s*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ie{constructor(e=0,t=0,s=0){ie.prototype.isVector3=!0,this.x=e,this.y=t,this.z=s}set(e,t,s){return s===void 0&&(s=this.z),this.x=e,this.y=t,this.z=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion($C.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion($C.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*s+i[6]*r,this.y=i[1]*t+i[4]*s+i[7]*r,this.z=i[2]*t+i[5]*s+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,s=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*s+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*s+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*s+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*s+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,s=this.y,r=this.z,i=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*r-a*s),u=2*(a*t-i*r),_=2*(i*s-o*t);return this.x=t+c*d+o*_-a*u,this.y=s+c*u+a*d-i*_,this.z=r+c*_+i*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*s+i[8]*r,this.y=i[1]*t+i[5]*s+i[9]*r,this.z=i[2]*t+i[6]*s+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const s=e.x,r=e.y,i=e.z,o=t.x,a=t.y,c=t.z;return this.x=r*c-i*a,this.y=i*o-s*c,this.z=s*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const s=e.dot(this)/t;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return Zh.copy(this).projectOnVector(e),this.sub(Zh)}reflect(e){return this.sub(Zh.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y,r=this.z-e.z;return t*t+s*s+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,s){const r=Math.sin(t)*e;return this.x=r*Math.sin(s),this.y=Math.cos(t)*e,this.z=r*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,s){return this.x=e*Math.sin(t),this.y=s,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),s=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=s,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,s=Math.sqrt(1-e**2);return this.x=s*Math.cos(t),this.y=s*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Zh=new ie,$C=new Mi;class Gr{constructor(e=new ie(1/0,1/0,1/0),t=new ie(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,s=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Is),Is.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,s;return e.normal.x>0?(t=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),t<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ol),Yc.subVectors(this.max,ol),Mo.subVectors(e.a,ol),No.subVectors(e.b,ol),Oo.subVectors(e.c,ol),Kr.subVectors(No,Mo),jr.subVectors(Oo,No),Di.subVectors(Mo,Oo);let t=[0,-Kr.z,Kr.y,0,-jr.z,jr.y,0,-Di.z,Di.y,Kr.z,0,-Kr.x,jr.z,0,-jr.x,Di.z,0,-Di.x,-Kr.y,Kr.x,0,-jr.y,jr.x,0,-Di.y,Di.x,0];return!Jh(t,Mo,No,Oo,Yc)||(t=[1,0,0,0,1,0,0,0,1],!Jh(t,Mo,No,Oo,Yc))?!1:($c.crossVectors(Kr,jr),t=[$c.x,$c.y,$c.z],Jh(t,Mo,No,Oo,Yc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Is).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Is).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(br[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),br[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),br[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),br[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),br[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),br[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),br[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),br[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(br),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const br=[new ie,new ie,new ie,new ie,new ie,new ie,new ie,new ie],Is=new ie,qc=new Gr,Mo=new ie,No=new ie,Oo=new ie,Kr=new ie,jr=new ie,Di=new ie,ol=new ie,Yc=new ie,$c=new ie,Li=new ie;function Jh(n,e,t,s,r){for(let i=0,o=n.length-3;i<=o;i+=3){Li.fromArray(n,i);const a=r.x*Math.abs(Li.x)+r.y*Math.abs(Li.y)+r.z*Math.abs(Li.z),c=e.dot(Li),d=t.dot(Li),u=s.dot(Li);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const F0t=new Gr,al=new ie,eg=new ie;class fr{constructor(e=new ie,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const s=this.center;t!==void 0?s.copy(t):F0t.setFromPoints(e).getCenter(s);let r=0;for(let i=0,o=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);const t=al.lengthSq();if(t>this.radius*this.radius){const s=Math.sqrt(t),r=(s-this.radius)*.5;this.center.addScaledVector(al,r/s),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(eg.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(eg)),this.expandByPoint(al.copy(e.center).sub(eg))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const yr=new ie,tg=new ie,Wc=new ie,Qr=new ie,ng=new ie,Kc=new ie,sg=new ie;class _p{constructor(e=new ie,t=new ie(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,yr)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const s=t.dot(this.direction);return s<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,s)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=yr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(yr.copy(this.origin).addScaledVector(this.direction,t),yr.distanceToSquared(e))}distanceSqToSegment(e,t,s,r){tg.copy(e).add(t).multiplyScalar(.5),Wc.copy(t).sub(e).normalize(),Qr.copy(this.origin).sub(tg);const i=e.distanceTo(t)*.5,o=-this.direction.dot(Wc),a=Qr.dot(this.direction),c=-Qr.dot(Wc),d=Qr.lengthSq(),u=Math.abs(1-o*o);let _,m,h,g;if(u>0)if(_=o*c-a,m=o*a-c,g=i*u,_>=0)if(m>=-g)if(m<=g){const f=1/u;_*=f,m*=f,h=_*(_+o*m+2*a)+m*(o*_+m+2*c)+d}else m=i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m=-i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m<=-g?(_=Math.max(0,-(-o*i+a)),m=_>0?-i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d):m<=g?(_=0,m=Math.min(Math.max(-i,-c),i),h=m*(m+2*c)+d):(_=Math.max(0,-(o*i+a)),m=_>0?i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d);else m=o>0?-i:i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;return s&&s.copy(this.origin).addScaledVector(this.direction,_),r&&r.copy(tg).addScaledVector(Wc,m),h}intersectSphere(e,t){yr.subVectors(e.center,this.origin);const s=yr.dot(this.direction),r=yr.dot(yr)-s*s,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=s-o,c=s+o;return c<0?null:a<0?this.at(c,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const s=-(this.origin.dot(e.normal)+e.constant)/t;return s>=0?s:null}intersectPlane(e,t){const s=this.distanceToPlane(e);return s===null?null:this.at(s,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let s,r,i,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,_=1/this.direction.z,m=this.origin;return d>=0?(s=(e.min.x-m.x)*d,r=(e.max.x-m.x)*d):(s=(e.max.x-m.x)*d,r=(e.min.x-m.x)*d),u>=0?(i=(e.min.y-m.y)*u,o=(e.max.y-m.y)*u):(i=(e.max.y-m.y)*u,o=(e.min.y-m.y)*u),s>o||i>r||((i>s||isNaN(s))&&(s=i),(o=0?(a=(e.min.z-m.z)*_,c=(e.max.z-m.z)*_):(a=(e.max.z-m.z)*_,c=(e.min.z-m.z)*_),s>c||a>r)||((a>s||s!==s)&&(s=a),(c=0?s:r,t)}intersectsBox(e){return this.intersectBox(e,yr)!==null}intersectTriangle(e,t,s,r,i){ng.subVectors(t,e),Kc.subVectors(s,e),sg.crossVectors(ng,Kc);let o=this.direction.dot(sg),a;if(o>0){if(r)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Qr.subVectors(this.origin,e);const c=a*this.direction.dot(Kc.crossVectors(Qr,Kc));if(c<0)return null;const d=a*this.direction.dot(ng.cross(Qr));if(d<0||c+d>o)return null;const u=-a*Qr.dot(sg);return u<0?null:this.at(u/o,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y){xt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y)}set(e,t,s,r,i,o,a,c,d,u,_,m,h,g,f,y){const b=this.elements;return b[0]=e,b[4]=t,b[8]=s,b[12]=r,b[1]=i,b[5]=o,b[9]=a,b[13]=c,b[2]=d,b[6]=u,b[10]=_,b[14]=m,b[3]=h,b[7]=g,b[11]=f,b[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new xt().fromArray(this.elements)}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],t[9]=s[9],t[10]=s[10],t[11]=s[11],t[12]=s[12],t[13]=s[13],t[14]=s[14],t[15]=s[15],this}copyPosition(e){const t=this.elements,s=e.elements;return t[12]=s[12],t[13]=s[13],t[14]=s[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,s){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,t,s){return this.set(e.x,t.x,s.x,0,e.y,t.y,s.y,0,e.z,t.z,s.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,s=e.elements,r=1/Io.setFromMatrixColumn(e,0).length(),i=1/Io.setFromMatrixColumn(e,1).length(),o=1/Io.setFromMatrixColumn(e,2).length();return t[0]=s[0]*r,t[1]=s[1]*r,t[2]=s[2]*r,t[3]=0,t[4]=s[4]*i,t[5]=s[5]*i,t[6]=s[6]*i,t[7]=0,t[8]=s[8]*o,t[9]=s[9]*o,t[10]=s[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,s=e.x,r=e.y,i=e.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(r),d=Math.sin(r),u=Math.cos(i),_=Math.sin(i);if(e.order==="XYZ"){const m=o*u,h=o*_,g=a*u,f=a*_;t[0]=c*u,t[4]=-c*_,t[8]=d,t[1]=h+g*d,t[5]=m-f*d,t[9]=-a*c,t[2]=f-m*d,t[6]=g+h*d,t[10]=o*c}else if(e.order==="YXZ"){const m=c*u,h=c*_,g=d*u,f=d*_;t[0]=m+f*a,t[4]=g*a-h,t[8]=o*d,t[1]=o*_,t[5]=o*u,t[9]=-a,t[2]=h*a-g,t[6]=f+m*a,t[10]=o*c}else if(e.order==="ZXY"){const m=c*u,h=c*_,g=d*u,f=d*_;t[0]=m-f*a,t[4]=-o*_,t[8]=g+h*a,t[1]=h+g*a,t[5]=o*u,t[9]=f-m*a,t[2]=-o*d,t[6]=a,t[10]=o*c}else if(e.order==="ZYX"){const m=o*u,h=o*_,g=a*u,f=a*_;t[0]=c*u,t[4]=g*d-h,t[8]=m*d+f,t[1]=c*_,t[5]=f*d+m,t[9]=h*d-g,t[2]=-d,t[6]=a*c,t[10]=o*c}else if(e.order==="YZX"){const m=o*c,h=o*d,g=a*c,f=a*d;t[0]=c*u,t[4]=f-m*_,t[8]=g*_+h,t[1]=_,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=h*_+g,t[10]=m-f*_}else if(e.order==="XZY"){const m=o*c,h=o*d,g=a*c,f=a*d;t[0]=c*u,t[4]=-_,t[8]=d*u,t[1]=m*_+f,t[5]=o*u,t[9]=h*_-g,t[2]=g*_-h,t[6]=a*u,t[10]=f*_+m}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(U0t,e,B0t)}lookAt(e,t,s){const r=this.elements;return ns.subVectors(e,t),ns.lengthSq()===0&&(ns.z=1),ns.normalize(),Xr.crossVectors(s,ns),Xr.lengthSq()===0&&(Math.abs(s.z)===1?ns.x+=1e-4:ns.z+=1e-4,ns.normalize(),Xr.crossVectors(s,ns)),Xr.normalize(),jc.crossVectors(ns,Xr),r[0]=Xr.x,r[4]=jc.x,r[8]=ns.x,r[1]=Xr.y,r[5]=jc.y,r[9]=ns.y,r[2]=Xr.z,r[6]=jc.z,r[10]=ns.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[4],c=s[8],d=s[12],u=s[1],_=s[5],m=s[9],h=s[13],g=s[2],f=s[6],y=s[10],b=s[14],v=s[3],E=s[7],S=s[11],R=s[15],w=r[0],A=r[4],I=r[8],C=r[12],M=r[1],G=r[5],V=r[9],ee=r[13],O=r[2],H=r[6],q=r[10],L=r[14],W=r[3],se=r[7],oe=r[11],ye=r[15];return i[0]=o*w+a*M+c*O+d*W,i[4]=o*A+a*G+c*H+d*se,i[8]=o*I+a*V+c*q+d*oe,i[12]=o*C+a*ee+c*L+d*ye,i[1]=u*w+_*M+m*O+h*W,i[5]=u*A+_*G+m*H+h*se,i[9]=u*I+_*V+m*q+h*oe,i[13]=u*C+_*ee+m*L+h*ye,i[2]=g*w+f*M+y*O+b*W,i[6]=g*A+f*G+y*H+b*se,i[10]=g*I+f*V+y*q+b*oe,i[14]=g*C+f*ee+y*L+b*ye,i[3]=v*w+E*M+S*O+R*W,i[7]=v*A+E*G+S*H+R*se,i[11]=v*I+E*V+S*q+R*oe,i[15]=v*C+E*ee+S*L+R*ye,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],s=e[4],r=e[8],i=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],_=e[6],m=e[10],h=e[14],g=e[3],f=e[7],y=e[11],b=e[15];return g*(+i*c*_-r*d*_-i*a*m+s*d*m+r*a*h-s*c*h)+f*(+t*c*h-t*d*m+i*o*m-r*o*h+r*d*u-i*c*u)+y*(+t*d*_-t*a*h-i*o*_+s*o*h+i*a*u-s*d*u)+b*(-r*a*u-t*c*_+t*a*m+r*o*_-s*o*m+s*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,s){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=s),this}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=e[9],m=e[10],h=e[11],g=e[12],f=e[13],y=e[14],b=e[15],v=_*y*d-f*m*d+f*c*h-a*y*h-_*c*b+a*m*b,E=g*m*d-u*y*d-g*c*h+o*y*h+u*c*b-o*m*b,S=u*f*d-g*_*d+g*a*h-o*f*h-u*a*b+o*_*b,R=g*_*c-u*f*c-g*a*m+o*f*m+u*a*y-o*_*y,w=t*v+s*E+r*S+i*R;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/w;return e[0]=v*A,e[1]=(f*m*i-_*y*i-f*r*h+s*y*h+_*r*b-s*m*b)*A,e[2]=(a*y*i-f*c*i+f*r*d-s*y*d-a*r*b+s*c*b)*A,e[3]=(_*c*i-a*m*i-_*r*d+s*m*d+a*r*h-s*c*h)*A,e[4]=E*A,e[5]=(u*y*i-g*m*i+g*r*h-t*y*h-u*r*b+t*m*b)*A,e[6]=(g*c*i-o*y*i-g*r*d+t*y*d+o*r*b-t*c*b)*A,e[7]=(o*m*i-u*c*i+u*r*d-t*m*d-o*r*h+t*c*h)*A,e[8]=S*A,e[9]=(g*_*i-u*f*i-g*s*h+t*f*h+u*s*b-t*_*b)*A,e[10]=(o*f*i-g*a*i+g*s*d-t*f*d-o*s*b+t*a*b)*A,e[11]=(u*a*i-o*_*i-u*s*d+t*_*d+o*s*h-t*a*h)*A,e[12]=R*A,e[13]=(u*f*r-g*_*r+g*s*m-t*f*m-u*s*y+t*_*y)*A,e[14]=(g*a*r-o*f*r-g*s*c+t*f*c+o*s*y-t*a*y)*A,e[15]=(o*_*r-u*a*r+u*s*c-t*_*c-o*s*m+t*a*m)*A,this}scale(e){const t=this.elements,s=e.x,r=e.y,i=e.z;return t[0]*=s,t[4]*=r,t[8]*=i,t[1]*=s,t[5]*=r,t[9]*=i,t[2]*=s,t[6]*=r,t[10]*=i,t[3]*=s,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],s=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,s,r))}makeTranslation(e,t,s){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,s,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,t,-s,0,0,s,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,0,s,0,0,1,0,0,-s,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,0,s,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const s=Math.cos(t),r=Math.sin(t),i=1-s,o=e.x,a=e.y,c=e.z,d=i*o,u=i*a;return this.set(d*o+s,d*a-r*c,d*c+r*a,0,d*a+r*c,u*a+s,u*c-r*o,0,d*c-r*a,u*c+r*o,i*c*c+s,0,0,0,0,1),this}makeScale(e,t,s){return this.set(e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,t,s,r,i,o){return this.set(1,s,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,s){const r=this.elements,i=t._x,o=t._y,a=t._z,c=t._w,d=i+i,u=o+o,_=a+a,m=i*d,h=i*u,g=i*_,f=o*u,y=o*_,b=a*_,v=c*d,E=c*u,S=c*_,R=s.x,w=s.y,A=s.z;return r[0]=(1-(f+b))*R,r[1]=(h+S)*R,r[2]=(g-E)*R,r[3]=0,r[4]=(h-S)*w,r[5]=(1-(m+b))*w,r[6]=(y+v)*w,r[7]=0,r[8]=(g+E)*A,r[9]=(y-v)*A,r[10]=(1-(m+f))*A,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,s){const r=this.elements;let i=Io.set(r[0],r[1],r[2]).length();const o=Io.set(r[4],r[5],r[6]).length(),a=Io.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ks.copy(this);const d=1/i,u=1/o,_=1/a;return ks.elements[0]*=d,ks.elements[1]*=d,ks.elements[2]*=d,ks.elements[4]*=u,ks.elements[5]*=u,ks.elements[6]*=u,ks.elements[8]*=_,ks.elements[9]*=_,ks.elements[10]*=_,t.setFromRotationMatrix(ks),s.x=i,s.y=o,s.z=a,this}makePerspective(e,t,s,r,i,o,a=Nr){const c=this.elements,d=2*i/(t-e),u=2*i/(s-r),_=(t+e)/(t-e),m=(s+r)/(s-r);let h,g;if(a===Nr)h=-(o+i)/(o-i),g=-2*o*i/(o-i);else if(a===vu)h=-o/(o-i),g=-o*i/(o-i);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=_,c[12]=0,c[1]=0,c[5]=u,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=g,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,s,r,i,o,a=Nr){const c=this.elements,d=1/(t-e),u=1/(s-r),_=1/(o-i),m=(t+e)*d,h=(s+r)*u;let g,f;if(a===Nr)g=(o+i)*_,f=-2*_;else if(a===vu)g=i*_,f=-1*_;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-m,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=f,c[14]=-g,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,s=e.elements;for(let r=0;r<16;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<16;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e[t+9]=s[9],e[t+10]=s[10],e[t+11]=s[11],e[t+12]=s[12],e[t+13]=s[13],e[t+14]=s[14],e[t+15]=s[15],e}}const Io=new ie,ks=new xt,U0t=new ie(0,0,0),B0t=new ie(1,1,1),Xr=new ie,jc=new ie,ns=new ie,WC=new xt,KC=new Mi;class mp{constructor(e=0,t=0,s=0,r=mp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=s,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,s,r=this._order){return this._x=e,this._y=t,this._z=s,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,s=!0){const r=e.elements,i=r[0],o=r[4],a=r[8],c=r[1],d=r[5],u=r[9],_=r[2],m=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(m,d),this._z=0);break;case"YXZ":this._x=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-_,i),this._z=0);break;case"ZXY":this._x=Math.asin(On(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-_,h),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,i));break;case"ZYX":this._y=Math.asin(-On(_,-1,1)),Math.abs(_)<.9999999?(this._x=Math.atan2(m,h),this._z=Math.atan2(c,i)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(On(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-_,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(m,d),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,s){return WC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(WC,t,s)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return KC.setFromEuler(this),this.setFromQuaternion(KC,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}mp.DEFAULT_ORDER="XYZ";class KN{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let s=0;s0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function i(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let d=0,u=c.length;d0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(s.geometries=a),c.length>0&&(s.materials=c),d.length>0&&(s.textures=d),u.length>0&&(s.images=u),_.length>0&&(s.shapes=_),m.length>0&&(s.skeletons=m),h.length>0&&(s.animations=h),g.length>0&&(s.nodes=g)}return s.object=r,s;function o(a){const c=[];for(const d in a){const u=a[d];delete u.metadata,c.push(u)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let s=0;s0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,s,r,i){Ds.subVectors(r,t),Er.subVectors(s,t),rg.subVectors(e,t);const o=Ds.dot(Ds),a=Ds.dot(Er),c=Ds.dot(rg),d=Er.dot(Er),u=Er.dot(rg),_=o*d-a*a;if(_===0)return i.set(-2,-1,-1);const m=1/_,h=(d*c-a*u)*m,g=(o*u-a*c)*m;return i.set(1-h-g,g,h)}static containsPoint(e,t,s,r){return this.getBarycoord(e,t,s,r,Sr),Sr.x>=0&&Sr.y>=0&&Sr.x+Sr.y<=1}static getUV(e,t,s,r,i,o,a,c){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),this.getInterpolation(e,t,s,r,i,o,a,c)}static getInterpolation(e,t,s,r,i,o,a,c){return this.getBarycoord(e,t,s,r,Sr),c.setScalar(0),c.addScaledVector(i,Sr.x),c.addScaledVector(o,Sr.y),c.addScaledVector(a,Sr.z),c}static isFrontFacing(e,t,s,r){return Ds.subVectors(s,t),Er.subVectors(e,t),Ds.cross(Er).dot(r)<0}set(e,t,s){return this.a.copy(e),this.b.copy(t),this.c.copy(s),this}setFromPointsAndIndices(e,t,s,r){return this.a.copy(e[t]),this.b.copy(e[s]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,s,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,s),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ds.subVectors(this.c,this.b),Er.subVectors(this.a,this.b),Ds.cross(Er).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fs.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Fs.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,s,r,i){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}getInterpolation(e,t,s,r,i){return Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}containsPoint(e){return Fs.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fs.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const s=this.a,r=this.b,i=this.c;let o,a;Do.subVectors(r,s),Lo.subVectors(i,s),ig.subVectors(e,s);const c=Do.dot(ig),d=Lo.dot(ig);if(c<=0&&d<=0)return t.copy(s);og.subVectors(e,r);const u=Do.dot(og),_=Lo.dot(og);if(u>=0&&_<=u)return t.copy(r);const m=c*_-u*d;if(m<=0&&c>=0&&u<=0)return o=c/(c-u),t.copy(s).addScaledVector(Do,o);ag.subVectors(e,i);const h=Do.dot(ag),g=Lo.dot(ag);if(g>=0&&h<=g)return t.copy(i);const f=h*d-c*g;if(f<=0&&d>=0&&g<=0)return a=d/(d-g),t.copy(s).addScaledVector(Lo,a);const y=u*g-h*_;if(y<=0&&_-u>=0&&h-g>=0)return JC.subVectors(i,r),a=(_-u)/(_-u+(h-g)),t.copy(r).addScaledVector(JC,a);const b=1/(y+f+m);return o=f*b,a=m*b,t.copy(s).addScaledVector(Do,o).addScaledVector(Lo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const jN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zr={h:0,s:0,l:0},Zc={h:0,s:0,l:0};function lg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,s)}set(e,t,s){if(t===void 0&&s===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Pt.toWorkingColorSpace(this,t),this}setRGB(e,t,s,r=Pt.workingColorSpace){return this.r=e,this.g=t,this.b=s,Pt.toWorkingColorSpace(this,r),this}setHSL(e,t,s,r=Pt.workingColorSpace){if(e=fy(e,1),t=On(t,0,1),s=On(s,0,1),t===0)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+t):s+t-s*t,o=2*s-i;this.r=lg(o,i,e+1/3),this.g=lg(o,i,e),this.b=lg(o,i,e-1/3)}return Pt.toWorkingColorSpace(this,r),this}setStyle(e,t=nn){function s(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const i=r[1],o=i.length;if(o===3)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(i,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const s=jN[e.toLowerCase()];return s!==void 0?this.setHex(s,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=oa(e.r),this.g=oa(e.g),this.b=oa(e.b),this}copyLinearToSRGB(e){return this.r=Qh(e.r),this.g=Qh(e.g),this.b=Qh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Pt.fromWorkingColorSpace(Mn.copy(this),e),Math.round(On(Mn.r*255,0,255))*65536+Math.round(On(Mn.g*255,0,255))*256+Math.round(On(Mn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Pt.workingColorSpace){Pt.fromWorkingColorSpace(Mn.copy(this),t);const s=Mn.r,r=Mn.g,i=Mn.b,o=Math.max(s,r,i),a=Math.min(s,r,i);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const _=o-a;switch(d=u<=.5?_/(o+a):_/(2-o-a),o){case s:c=(r-i)/_+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const s=e[t];if(s===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(s):r&&r.isVector3&&s&&s.isVector3?r.copy(s):this[t]=s}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const s={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.color&&this.color.isColor&&(s.color=this.color.getHex()),this.roughness!==void 0&&(s.roughness=this.roughness),this.metalness!==void 0&&(s.metalness=this.metalness),this.sheen!==void 0&&(s.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(s.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(s.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(s.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(s.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(s.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(s.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(s.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(s.shininess=this.shininess),this.clearcoat!==void 0&&(s.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(s.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(s.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(s.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(s.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,s.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(s.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(s.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(s.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(s.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(s.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(s.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(s.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(s.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(s.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(s.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(s.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(s.lightMap=this.lightMap.toJSON(e).uuid,s.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(s.aoMap=this.aoMap.toJSON(e).uuid,s.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(s.bumpMap=this.bumpMap.toJSON(e).uuid,s.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(s.normalMap=this.normalMap.toJSON(e).uuid,s.normalMapType=this.normalMapType,s.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(s.displacementMap=this.displacementMap.toJSON(e).uuid,s.displacementScale=this.displacementScale,s.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(s.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(s.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(s.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(s.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(s.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(s.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(s.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(s.combine=this.combine)),this.envMapIntensity!==void 0&&(s.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(s.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(s.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(s.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(s.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(s.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(s.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(s.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(s.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(s.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(s.size=this.size),this.shadowSide!==null&&(s.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(s.sizeAttenuation=this.sizeAttenuation),this.blending!==ia&&(s.blending=this.blending),this.side!==Fr&&(s.side=this.side),this.vertexColors===!0&&(s.vertexColors=!0),this.opacity<1&&(s.opacity=this.opacity),this.transparent===!0&&(s.transparent=!0),this.blendSrc!==pb&&(s.blendSrc=this.blendSrc),this.blendDst!==fb&&(s.blendDst=this.blendDst),this.blendEquation!==Yi&&(s.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(s.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(s.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(s.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(s.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(s.blendAlpha=this.blendAlpha),this.depthFunc!==mu&&(s.depthFunc=this.depthFunc),this.depthTest===!1&&(s.depthTest=this.depthTest),this.depthWrite===!1&&(s.depthWrite=this.depthWrite),this.colorWrite===!1&&(s.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(s.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==GC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ro&&(s.stencilFail=this.stencilFail),this.stencilZFail!==Ro&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==Ro&&(s.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(s.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(s.rotation=this.rotation),this.polygonOffset===!0&&(s.polygonOffset=!0),this.polygonOffsetFactor!==0&&(s.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(s.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(s.linewidth=this.linewidth),this.dashSize!==void 0&&(s.dashSize=this.dashSize),this.gapSize!==void 0&&(s.gapSize=this.gapSize),this.scale!==void 0&&(s.scale=this.scale),this.dithering===!0&&(s.dithering=!0),this.alphaTest>0&&(s.alphaTest=this.alphaTest),this.alphaHash===!0&&(s.alphaHash=!0),this.alphaToCoverage===!0&&(s.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(s.premultipliedAlpha=!0),this.forceSinglePass===!0&&(s.forceSinglePass=!0),this.wireframe===!0&&(s.wireframe=!0),this.wireframeLinewidth>1&&(s.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(s.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(s.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(s.flatShading=!0),this.visible===!1&&(s.visible=!1),this.toneMapped===!1&&(s.toneMapped=!1),this.fog===!1&&(s.fog=!1),Object.keys(this.userData).length>0&&(s.userData=this.userData);function r(i){const o=[];for(const a in i){const c=i[a];delete c.metadata,o.push(c)}return o}if(t){const i=r(e.textures),o=r(e.images);i.length>0&&(s.textures=i),o.length>0&&(s.images=o)}return s}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let s=null;if(t!==null){const r=t.length;s=new Array(r);for(let i=0;i!==r;++i)s[i]=t[i].clone()}return this.clippingPlanes=s,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class _i extends Vs{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=cy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const rn=new ie,Jc=new Rt;class zn{constructor(e,t,s=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=s,this.usage=bb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Mr,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,s){e*=this.itemSize,s*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const d in c)c[d]!==void 0&&(e[d]=c[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const s=this.attributes;for(const c in s){const d=s[c];e.data.attributes[c]=d.toJSON(e.data)}const r={};let i=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let _=0,m=d.length;_0&&(r[c]=u,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const s=e.index;s!==null&&this.setIndex(s.clone(t));const r=e.attributes;for(const d in r){const u=r[d];this.setAttribute(d,u.clone(t))}const i=e.morphAttributes;for(const d in i){const u=[],_=i[d];for(let m=0,h=_.length;m0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i(e.far-e.near)**2))&&(ew.copy(i).invert(),Pi.copy(e.ray).applyMatrix4(ew),!(s.boundingBox!==null&&Pi.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,t,Pi)))}_computeIntersections(e,t,s){let r;const i=this.geometry,o=this.material,a=i.index,c=i.attributes.position,d=i.attributes.uv,u=i.attributes.uv1,_=i.attributes.normal,m=i.groups,h=i.drawRange;if(a!==null)if(Array.isArray(o))for(let g=0,f=m.length;gt.far?null:{distance:d,point:od.clone(),object:n}}function ad(n,e,t,s,r,i,o,a,c,d){n.getVertexPosition(a,Fo),n.getVertexPosition(c,Uo),n.getVertexPosition(d,Bo);const u=W0t(n,e,t,s,Fo,Uo,Bo,id);if(u){r&&(nd.fromBufferAttribute(r,a),sd.fromBufferAttribute(r,c),rd.fromBufferAttribute(r,d),u.uv=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt)),i&&(nd.fromBufferAttribute(i,a),sd.fromBufferAttribute(i,c),rd.fromBufferAttribute(i,d),u.uv1=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt),u.uv2=u.uv1),o&&(nw.fromBufferAttribute(o,a),sw.fromBufferAttribute(o,c),rw.fromBufferAttribute(o,d),u.normal=Fs.getInterpolation(id,Fo,Uo,Bo,nw,sw,rw,new ie),u.normal.dot(s.direction)>0&&u.normal.multiplyScalar(-1));const _={a,b:c,c:d,normal:new ie,materialIndex:0};Fs.getNormal(Fo,Uo,Bo,_.normal),u.face=_}return u}class yi extends _r{constructor(e=1,t=1,s=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:s,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const c=[],d=[],u=[],_=[];let m=0,h=0;g("z","y","x",-1,-1,s,t,e,o,i,0),g("z","y","x",1,-1,s,t,-e,o,i,1),g("x","z","y",1,1,e,s,t,r,o,2),g("x","z","y",1,-1,e,s,-t,r,o,3),g("x","y","z",1,-1,e,t,s,r,i,4),g("x","y","z",-1,-1,e,t,-s,r,i,5),this.setIndex(c),this.setAttribute("position",new kr(d,3)),this.setAttribute("normal",new kr(u,3)),this.setAttribute("uv",new kr(_,2));function g(f,y,b,v,E,S,R,w,A,I,C){const M=S/A,G=R/I,V=S/2,ee=R/2,O=w/2,H=A+1,q=I+1;let L=0,W=0;const se=new ie;for(let oe=0;oe0?1:-1,u.push(se.x,se.y,se.z),_.push(xe/A),_.push(1-oe/I),L+=1}}for(let oe=0;oe #include #include -}`,Et={alphahash_fragment:syt,alphahash_pars_fragment:ryt,alphamap_fragment:iyt,alphamap_pars_fragment:oyt,alphatest_fragment:ayt,alphatest_pars_fragment:lyt,aomap_fragment:cyt,aomap_pars_fragment:dyt,batching_pars_vertex:uyt,batching_vertex:pyt,begin_vertex:fyt,beginnormal_vertex:_yt,bsdfs:myt,iridescence_fragment:hyt,bumpmap_pars_fragment:gyt,clipping_planes_fragment:byt,clipping_planes_pars_fragment:yyt,clipping_planes_pars_vertex:vyt,clipping_planes_vertex:Eyt,color_fragment:Syt,color_pars_fragment:Tyt,color_pars_vertex:xyt,color_vertex:Cyt,common:wyt,cube_uv_reflection_fragment:Ryt,defaultnormal_vertex:Ayt,displacementmap_pars_vertex:Myt,displacementmap_vertex:Nyt,emissivemap_fragment:Oyt,emissivemap_pars_fragment:Iyt,colorspace_fragment:kyt,colorspace_pars_fragment:Dyt,envmap_fragment:Lyt,envmap_common_pars_fragment:Pyt,envmap_pars_fragment:Fyt,envmap_pars_vertex:Uyt,envmap_physical_pars_fragment:Qyt,envmap_vertex:Byt,fog_vertex:Gyt,fog_pars_vertex:Vyt,fog_fragment:zyt,fog_pars_fragment:Hyt,gradientmap_pars_fragment:qyt,lightmap_fragment:Yyt,lightmap_pars_fragment:$yt,lights_lambert_fragment:Wyt,lights_lambert_pars_fragment:Kyt,lights_pars_begin:jyt,lights_toon_fragment:Xyt,lights_toon_pars_fragment:Zyt,lights_phong_fragment:Jyt,lights_phong_pars_fragment:evt,lights_physical_fragment:tvt,lights_physical_pars_fragment:nvt,lights_fragment_begin:svt,lights_fragment_maps:rvt,lights_fragment_end:ivt,logdepthbuf_fragment:ovt,logdepthbuf_pars_fragment:avt,logdepthbuf_pars_vertex:lvt,logdepthbuf_vertex:cvt,map_fragment:dvt,map_pars_fragment:uvt,map_particle_fragment:pvt,map_particle_pars_fragment:fvt,metalnessmap_fragment:_vt,metalnessmap_pars_fragment:mvt,morphcolor_vertex:hvt,morphnormal_vertex:gvt,morphtarget_pars_vertex:bvt,morphtarget_vertex:yvt,normal_fragment_begin:vvt,normal_fragment_maps:Evt,normal_pars_fragment:Svt,normal_pars_vertex:Tvt,normal_vertex:xvt,normalmap_pars_fragment:Cvt,clearcoat_normal_fragment_begin:wvt,clearcoat_normal_fragment_maps:Rvt,clearcoat_pars_fragment:Avt,iridescence_pars_fragment:Mvt,opaque_fragment:Nvt,packing:Ovt,premultiplied_alpha_fragment:Ivt,project_vertex:kvt,dithering_fragment:Dvt,dithering_pars_fragment:Lvt,roughnessmap_fragment:Pvt,roughnessmap_pars_fragment:Fvt,shadowmap_pars_fragment:Uvt,shadowmap_pars_vertex:Bvt,shadowmap_vertex:Gvt,shadowmask_pars_fragment:Vvt,skinbase_vertex:zvt,skinning_pars_vertex:Hvt,skinning_vertex:qvt,skinnormal_vertex:Yvt,specularmap_fragment:$vt,specularmap_pars_fragment:Wvt,tonemapping_fragment:Kvt,tonemapping_pars_fragment:jvt,transmission_fragment:Qvt,transmission_pars_fragment:Xvt,uv_pars_fragment:Zvt,uv_pars_vertex:Jvt,uv_vertex:eEt,worldpos_vertex:tEt,background_vert:nEt,background_frag:sEt,backgroundCube_vert:rEt,backgroundCube_frag:iEt,cube_vert:oEt,cube_frag:aEt,depth_vert:lEt,depth_frag:cEt,distanceRGBA_vert:dEt,distanceRGBA_frag:uEt,equirect_vert:pEt,equirect_frag:fEt,linedashed_vert:_Et,linedashed_frag:mEt,meshbasic_vert:hEt,meshbasic_frag:gEt,meshlambert_vert:bEt,meshlambert_frag:yEt,meshmatcap_vert:vEt,meshmatcap_frag:EEt,meshnormal_vert:SEt,meshnormal_frag:TEt,meshphong_vert:xEt,meshphong_frag:CEt,meshphysical_vert:wEt,meshphysical_frag:REt,meshtoon_vert:AEt,meshtoon_frag:MEt,points_vert:NEt,points_frag:OEt,shadow_vert:IEt,shadow_frag:kEt,sprite_vert:DEt,sprite_frag:LEt},$e={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Tt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Tt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Tt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Tt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Tt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Tt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Tt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Tt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Tt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0},uvTransform:{value:new Tt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Zs={basic:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:Et.meshbasic_vert,fragmentShader:Et.meshbasic_frag},lambert:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:Et.meshlambert_vert,fragmentShader:Et.meshlambert_frag},phong:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:Et.meshphong_vert,fragmentShader:Et.meshphong_frag},standard:{uniforms:Fn([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Et.meshphysical_vert,fragmentShader:Et.meshphysical_frag},toon:{uniforms:Fn([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:Et.meshtoon_vert,fragmentShader:Et.meshtoon_frag},matcap:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:Et.meshmatcap_vert,fragmentShader:Et.meshmatcap_frag},points:{uniforms:Fn([$e.points,$e.fog]),vertexShader:Et.points_vert,fragmentShader:Et.points_frag},dashed:{uniforms:Fn([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Et.linedashed_vert,fragmentShader:Et.linedashed_frag},depth:{uniforms:Fn([$e.common,$e.displacementmap]),vertexShader:Et.depth_vert,fragmentShader:Et.depth_frag},normal:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:Et.meshnormal_vert,fragmentShader:Et.meshnormal_frag},sprite:{uniforms:Fn([$e.sprite,$e.fog]),vertexShader:Et.sprite_vert,fragmentShader:Et.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Et.background_vert,fragmentShader:Et.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Et.backgroundCube_vert,fragmentShader:Et.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Et.cube_vert,fragmentShader:Et.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Et.equirect_vert,fragmentShader:Et.equirect_frag},distanceRGBA:{uniforms:Fn([$e.common,$e.displacementmap,{referencePosition:{value:new ie},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Et.distanceRGBA_vert,fragmentShader:Et.distanceRGBA_frag},shadow:{uniforms:Fn([$e.lights,$e.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:Et.shadow_vert,fragmentShader:Et.shadow_frag}};Zs.physical={uniforms:Fn([Zs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Tt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Tt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Tt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Tt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Tt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Tt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:Et.meshphysical_vert,fragmentShader:Et.meshphysical_frag};const cd={r:0,b:0,g:0};function PEt(n,e,t,s,r,i,o){const a=new pt(0);let c=i===!0?0:1,d,u,_=null,m=0,h=null;function g(y,b){let v=!1,E=b.isScene===!0?b.background:null;E&&E.isTexture&&(E=(b.backgroundBlurriness>0?t:e).get(E)),E===null?f(a,c):E&&E.isColor&&(f(E,1),v=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?s.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&s.buffers.color.setClear(0,0,0,0,o),(n.autoClear||v)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),E&&(E.isCubeTexture||E.mapping===pp)?(u===void 0&&(u=new Vn(new yi(1,1,1),new ho({name:"BackgroundCubeMaterial",uniforms:Ca(Zs.backgroundCube.uniforms),vertexShader:Zs.backgroundCube.vertexShader,fragmentShader:Zs.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,w,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),u.material.uniforms.envMap.value=E,u.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=b.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=b.backgroundIntensity,u.material.toneMapped=Pt.getTransfer(E.colorSpace)!==jt,(_!==E||m!==E.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,_=E,m=E.version,h=n.toneMapping),u.layers.enableAll(),y.unshift(u,u.geometry,u.material,0,0,null)):E&&E.isTexture&&(d===void 0&&(d=new Vn(new my(2,2),new ho({name:"BackgroundMaterial",uniforms:Ca(Zs.background.uniforms),vertexShader:Zs.background.vertexShader,fragmentShader:Zs.background.fragmentShader,side:Fr,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(d)),d.material.uniforms.t2D.value=E,d.material.uniforms.backgroundIntensity.value=b.backgroundIntensity,d.material.toneMapped=Pt.getTransfer(E.colorSpace)!==jt,E.matrixAutoUpdate===!0&&E.updateMatrix(),d.material.uniforms.uvTransform.value.copy(E.matrix),(_!==E||m!==E.version||h!==n.toneMapping)&&(d.material.needsUpdate=!0,_=E,m=E.version,h=n.toneMapping),d.layers.enableAll(),y.unshift(d,d.geometry,d.material,0,0,null))}function f(y,b){y.getRGB(cd,ZN(n)),s.buffers.color.setClear(cd.r,cd.g,cd.b,b,o)}return{getClearColor:function(){return a},setClearColor:function(y,b=1){a.set(y),c=b,f(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(y){c=y,f(a,c)},render:g}}function FEt(n,e,t,s){const r=n.getParameter(n.MAX_VERTEX_ATTRIBS),i=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||i!==null,a={},c=y(null);let d=c,u=!1;function _(O,H,q,L,W){let se=!1;if(o){const oe=f(L,q,H);d!==oe&&(d=oe,h(d.object)),se=b(O,L,q,W),se&&v(O,L,q,W)}else{const oe=H.wireframe===!0;(d.geometry!==L.id||d.program!==q.id||d.wireframe!==oe)&&(d.geometry=L.id,d.program=q.id,d.wireframe=oe,se=!0)}W!==null&&t.update(W,n.ELEMENT_ARRAY_BUFFER),(se||u)&&(u=!1,I(O,H,q,L),W!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(W).buffer))}function m(){return s.isWebGL2?n.createVertexArray():i.createVertexArrayOES()}function h(O){return s.isWebGL2?n.bindVertexArray(O):i.bindVertexArrayOES(O)}function g(O){return s.isWebGL2?n.deleteVertexArray(O):i.deleteVertexArrayOES(O)}function f(O,H,q){const L=q.wireframe===!0;let W=a[O.id];W===void 0&&(W={},a[O.id]=W);let se=W[H.id];se===void 0&&(se={},W[H.id]=se);let oe=se[L];return oe===void 0&&(oe=y(m()),se[L]=oe),oe}function y(O){const H=[],q=[],L=[];for(let W=0;W=0){const Ee=W[xe];let Oe=se[xe];if(Oe===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Oe=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Oe=O.instanceColor)),Ee===void 0||Ee.attribute!==Oe||Oe&&Ee.data!==Oe.data)return!0;oe++}return d.attributesNum!==oe||d.index!==L}function v(O,H,q,L){const W={},se=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){let Ee=se[xe];Ee===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Ee=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Ee=O.instanceColor));const Oe={};Oe.attribute=Ee,Ee&&Ee.data&&(Oe.data=Ee.data),W[xe]=Oe,oe++}d.attributes=W,d.attributesNum=oe,d.index=L}function E(){const O=d.newAttributes;for(let H=0,q=O.length;H=0){let ce=W[ye];if(ce===void 0&&(ye==="instanceMatrix"&&O.instanceMatrix&&(ce=O.instanceMatrix),ye==="instanceColor"&&O.instanceColor&&(ce=O.instanceColor)),ce!==void 0){const Ee=ce.normalized,Oe=ce.itemSize,De=t.get(ce);if(De===void 0)continue;const Q=De.buffer,fe=De.type,_e=De.bytesPerElement,Ae=s.isWebGL2===!0&&(fe===n.INT||fe===n.UNSIGNED_INT||ce.gpuType===DN);if(ce.isInterleavedBufferAttribute){const Be=ce.data,te=Be.stride,U=ce.offset;if(Be.isInstancedInterleavedBuffer){for(let P=0;P0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const c=i(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,_=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_TEXTURE_SIZE),g=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),f=n.getParameter(n.MAX_VERTEX_ATTRIBS),y=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),b=n.getParameter(n.MAX_VARYING_VECTORS),v=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),E=m>0,S=o||e.has("OES_texture_float"),R=E&&S,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:r,getMaxPrecision:i,precision:a,logarithmicDepthBuffer:u,maxTextures:_,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:f,maxVertexUniforms:y,maxVaryings:b,maxFragmentUniforms:v,vertexTextures:E,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:w}}function GEt(n){const e=this;let t=null,s=0,r=!1,i=!1;const o=new Vi,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(_,m){const h=_.length!==0||m||s!==0||r;return r=m,s=_.length,h},this.beginShadows=function(){i=!0,u(null)},this.endShadows=function(){i=!1},this.setGlobalState=function(_,m){t=u(_,m,0)},this.setState=function(_,m,h){const g=_.clippingPlanes,f=_.clipIntersection,y=_.clipShadows,b=n.get(_);if(!r||g===null||g.length===0||i&&!y)i?u(null):d();else{const v=i?0:s,E=v*4;let S=b.clippingState||null;c.value=S,S=u(g,m,E,h);for(let R=0;R!==E;++R)S[R]=t[R];b.clippingState=S,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=v}};function d(){c.value!==t&&(c.value=t,c.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function u(_,m,h,g){const f=_!==null?_.length:0;let y=null;if(f!==0){if(y=c.value,g!==!0||y===null){const b=h+f*4,v=m.matrixWorldInverse;a.getNormalMatrix(v),(y===null||y.length0){const d=new J0t(c.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",r),t(d.texture,o.mapping)}else return null}}return o}function r(o){const a=o.target;a.removeEventListener("dispose",r);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function i(){e=new WeakMap}return{get:s,dispose:i}}class hy extends JN{constructor(e=-1,t=1,s=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=s,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,s,r,i,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=s,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=s-e,o=s+e,a=r+t,c=r-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=d*this.view.offsetX,o=i+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const jo=4,iw=[.125,.215,.35,.446,.526,.582],$i=20,pg=new hy,ow=new pt;let fg=null,_g=0,mg=0;const zi=(1+Math.sqrt(5))/2,zo=1/zi,aw=[new ie(1,1,1),new ie(-1,1,1),new ie(1,1,-1),new ie(-1,1,-1),new ie(0,zi,zo),new ie(0,zi,-zo),new ie(zo,0,zi),new ie(-zo,0,zi),new ie(zi,zo,0),new ie(-zi,zo,0)];class lw{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,s=.1,r=100){fg=this._renderer.getRenderTarget(),_g=this._renderer.getActiveCubeFace(),mg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,s,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=uw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=dw(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(r),f&&u.render(g,a),u.render(e,a)}g.geometry.dispose(),g.material.dispose(),u.toneMapping=m,u.autoClear=_,e.background=y}_textureToCubeUV(e,t){const s=this._renderer,r=e.mapping===ya||e.mapping===va;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=uw()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=dw());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new Vn(this._lodPlanes[0],i),a=i.uniforms;a.envMap.value=e;const c=this._cubeSize;dd(t,0,0,3*c,2*c),s.setRenderTarget(t),s.render(o,pg)}_applyPMREM(e){const t=this._renderer,s=t.autoClear;t.autoClear=!1;for(let r=1;r$i&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${y} samples when the maximum is set to ${$i}`);const b=[];let v=0;for(let A=0;A<$i;++A){const I=A/f,C=Math.exp(-I*I/2);b.push(C),A===0?v+=C:AE-jo?r-E+jo:0),w=4*(this._cubeSize-S);dd(t,R,w,3*S,2*S),c.setRenderTarget(t),c.render(_,pg)}}function zEt(n){const e=[],t=[],s=[];let r=n;const i=n-jo+1+iw.length;for(let o=0;on-jo?c=iw[o-n+jo-1]:o===0&&(c=0),s.push(c);const d=1/(a-2),u=-d,_=1+d,m=[u,u,_,u,_,_,u,u,_,_,u,_],h=6,g=6,f=3,y=2,b=1,v=new Float32Array(f*g*h),E=new Float32Array(y*g*h),S=new Float32Array(b*g*h);for(let w=0;w2?0:-1,C=[A,I,0,A+2/3,I,0,A+2/3,I+1,0,A,I,0,A+2/3,I+1,0,A,I+1,0];v.set(C,f*g*w),E.set(m,y*g*w);const M=[w,w,w,w,w,w];S.set(M,b*g*w)}const R=new _r;R.setAttribute("position",new zn(v,f)),R.setAttribute("uv",new zn(E,y)),R.setAttribute("faceIndex",new zn(S,b)),e.push(R),r>jo&&r--}return{lodPlanes:e,sizeLods:t,sigmas:s}}function cw(n,e,t){const s=new mo(n,e,t);return s.texture.mapping=pp,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function dd(n,e,t,s,r){n.viewport.set(e,t,s,r),n.scissor.set(e,t,s,r)}function HEt(n,e,t){const s=new Float32Array($i),r=new ie(0,1,0);return new ho({name:"SphericalGaussianBlur",defines:{n:$i,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:s},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:gy(),fragmentShader:` +}`,Et={alphahash_fragment:syt,alphahash_pars_fragment:ryt,alphamap_fragment:iyt,alphamap_pars_fragment:oyt,alphatest_fragment:ayt,alphatest_pars_fragment:lyt,aomap_fragment:cyt,aomap_pars_fragment:dyt,batching_pars_vertex:uyt,batching_vertex:pyt,begin_vertex:fyt,beginnormal_vertex:_yt,bsdfs:myt,iridescence_fragment:hyt,bumpmap_pars_fragment:gyt,clipping_planes_fragment:byt,clipping_planes_pars_fragment:yyt,clipping_planes_pars_vertex:vyt,clipping_planes_vertex:Eyt,color_fragment:Syt,color_pars_fragment:Tyt,color_pars_vertex:xyt,color_vertex:Cyt,common:wyt,cube_uv_reflection_fragment:Ryt,defaultnormal_vertex:Ayt,displacementmap_pars_vertex:Myt,displacementmap_vertex:Nyt,emissivemap_fragment:Oyt,emissivemap_pars_fragment:Iyt,colorspace_fragment:kyt,colorspace_pars_fragment:Dyt,envmap_fragment:Lyt,envmap_common_pars_fragment:Pyt,envmap_pars_fragment:Fyt,envmap_pars_vertex:Uyt,envmap_physical_pars_fragment:Qyt,envmap_vertex:Byt,fog_vertex:Gyt,fog_pars_vertex:Vyt,fog_fragment:zyt,fog_pars_fragment:Hyt,gradientmap_pars_fragment:qyt,lightmap_fragment:Yyt,lightmap_pars_fragment:$yt,lights_lambert_fragment:Wyt,lights_lambert_pars_fragment:Kyt,lights_pars_begin:jyt,lights_toon_fragment:Xyt,lights_toon_pars_fragment:Zyt,lights_phong_fragment:Jyt,lights_phong_pars_fragment:evt,lights_physical_fragment:tvt,lights_physical_pars_fragment:nvt,lights_fragment_begin:svt,lights_fragment_maps:rvt,lights_fragment_end:ivt,logdepthbuf_fragment:ovt,logdepthbuf_pars_fragment:avt,logdepthbuf_pars_vertex:lvt,logdepthbuf_vertex:cvt,map_fragment:dvt,map_pars_fragment:uvt,map_particle_fragment:pvt,map_particle_pars_fragment:fvt,metalnessmap_fragment:_vt,metalnessmap_pars_fragment:mvt,morphcolor_vertex:hvt,morphnormal_vertex:gvt,morphtarget_pars_vertex:bvt,morphtarget_vertex:yvt,normal_fragment_begin:vvt,normal_fragment_maps:Evt,normal_pars_fragment:Svt,normal_pars_vertex:Tvt,normal_vertex:xvt,normalmap_pars_fragment:Cvt,clearcoat_normal_fragment_begin:wvt,clearcoat_normal_fragment_maps:Rvt,clearcoat_pars_fragment:Avt,iridescence_pars_fragment:Mvt,opaque_fragment:Nvt,packing:Ovt,premultiplied_alpha_fragment:Ivt,project_vertex:kvt,dithering_fragment:Dvt,dithering_pars_fragment:Lvt,roughnessmap_fragment:Pvt,roughnessmap_pars_fragment:Fvt,shadowmap_pars_fragment:Uvt,shadowmap_pars_vertex:Bvt,shadowmap_vertex:Gvt,shadowmask_pars_fragment:Vvt,skinbase_vertex:zvt,skinning_pars_vertex:Hvt,skinning_vertex:qvt,skinnormal_vertex:Yvt,specularmap_fragment:$vt,specularmap_pars_fragment:Wvt,tonemapping_fragment:Kvt,tonemapping_pars_fragment:jvt,transmission_fragment:Qvt,transmission_pars_fragment:Xvt,uv_pars_fragment:Zvt,uv_pars_vertex:Jvt,uv_vertex:eEt,worldpos_vertex:tEt,background_vert:nEt,background_frag:sEt,backgroundCube_vert:rEt,backgroundCube_frag:iEt,cube_vert:oEt,cube_frag:aEt,depth_vert:lEt,depth_frag:cEt,distanceRGBA_vert:dEt,distanceRGBA_frag:uEt,equirect_vert:pEt,equirect_frag:fEt,linedashed_vert:_Et,linedashed_frag:mEt,meshbasic_vert:hEt,meshbasic_frag:gEt,meshlambert_vert:bEt,meshlambert_frag:yEt,meshmatcap_vert:vEt,meshmatcap_frag:EEt,meshnormal_vert:SEt,meshnormal_frag:TEt,meshphong_vert:xEt,meshphong_frag:CEt,meshphysical_vert:wEt,meshphysical_frag:REt,meshtoon_vert:AEt,meshtoon_frag:MEt,points_vert:NEt,points_frag:OEt,shadow_vert:IEt,shadow_frag:kEt,sprite_vert:DEt,sprite_frag:LEt},$e={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Tt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Tt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Tt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Tt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Tt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Tt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Tt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Tt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Tt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0},uvTransform:{value:new Tt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Js={basic:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:Et.meshbasic_vert,fragmentShader:Et.meshbasic_frag},lambert:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:Et.meshlambert_vert,fragmentShader:Et.meshlambert_frag},phong:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:Et.meshphong_vert,fragmentShader:Et.meshphong_frag},standard:{uniforms:Fn([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Et.meshphysical_vert,fragmentShader:Et.meshphysical_frag},toon:{uniforms:Fn([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:Et.meshtoon_vert,fragmentShader:Et.meshtoon_frag},matcap:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:Et.meshmatcap_vert,fragmentShader:Et.meshmatcap_frag},points:{uniforms:Fn([$e.points,$e.fog]),vertexShader:Et.points_vert,fragmentShader:Et.points_frag},dashed:{uniforms:Fn([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Et.linedashed_vert,fragmentShader:Et.linedashed_frag},depth:{uniforms:Fn([$e.common,$e.displacementmap]),vertexShader:Et.depth_vert,fragmentShader:Et.depth_frag},normal:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:Et.meshnormal_vert,fragmentShader:Et.meshnormal_frag},sprite:{uniforms:Fn([$e.sprite,$e.fog]),vertexShader:Et.sprite_vert,fragmentShader:Et.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Et.background_vert,fragmentShader:Et.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Et.backgroundCube_vert,fragmentShader:Et.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Et.cube_vert,fragmentShader:Et.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Et.equirect_vert,fragmentShader:Et.equirect_frag},distanceRGBA:{uniforms:Fn([$e.common,$e.displacementmap,{referencePosition:{value:new ie},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Et.distanceRGBA_vert,fragmentShader:Et.distanceRGBA_frag},shadow:{uniforms:Fn([$e.lights,$e.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:Et.shadow_vert,fragmentShader:Et.shadow_frag}};Js.physical={uniforms:Fn([Js.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Tt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Tt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Tt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Tt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Tt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Tt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:Et.meshphysical_vert,fragmentShader:Et.meshphysical_frag};const cd={r:0,b:0,g:0};function PEt(n,e,t,s,r,i,o){const a=new pt(0);let c=i===!0?0:1,d,u,_=null,m=0,h=null;function g(y,b){let v=!1,E=b.isScene===!0?b.background:null;E&&E.isTexture&&(E=(b.backgroundBlurriness>0?t:e).get(E)),E===null?f(a,c):E&&E.isColor&&(f(E,1),v=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?s.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&s.buffers.color.setClear(0,0,0,0,o),(n.autoClear||v)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),E&&(E.isCubeTexture||E.mapping===pp)?(u===void 0&&(u=new Vn(new yi(1,1,1),new ho({name:"BackgroundCubeMaterial",uniforms:Ca(Js.backgroundCube.uniforms),vertexShader:Js.backgroundCube.vertexShader,fragmentShader:Js.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,w,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),u.material.uniforms.envMap.value=E,u.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=b.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=b.backgroundIntensity,u.material.toneMapped=Pt.getTransfer(E.colorSpace)!==jt,(_!==E||m!==E.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,_=E,m=E.version,h=n.toneMapping),u.layers.enableAll(),y.unshift(u,u.geometry,u.material,0,0,null)):E&&E.isTexture&&(d===void 0&&(d=new Vn(new my(2,2),new ho({name:"BackgroundMaterial",uniforms:Ca(Js.background.uniforms),vertexShader:Js.background.vertexShader,fragmentShader:Js.background.fragmentShader,side:Fr,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(d)),d.material.uniforms.t2D.value=E,d.material.uniforms.backgroundIntensity.value=b.backgroundIntensity,d.material.toneMapped=Pt.getTransfer(E.colorSpace)!==jt,E.matrixAutoUpdate===!0&&E.updateMatrix(),d.material.uniforms.uvTransform.value.copy(E.matrix),(_!==E||m!==E.version||h!==n.toneMapping)&&(d.material.needsUpdate=!0,_=E,m=E.version,h=n.toneMapping),d.layers.enableAll(),y.unshift(d,d.geometry,d.material,0,0,null))}function f(y,b){y.getRGB(cd,ZN(n)),s.buffers.color.setClear(cd.r,cd.g,cd.b,b,o)}return{getClearColor:function(){return a},setClearColor:function(y,b=1){a.set(y),c=b,f(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(y){c=y,f(a,c)},render:g}}function FEt(n,e,t,s){const r=n.getParameter(n.MAX_VERTEX_ATTRIBS),i=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||i!==null,a={},c=y(null);let d=c,u=!1;function _(O,H,q,L,W){let se=!1;if(o){const oe=f(L,q,H);d!==oe&&(d=oe,h(d.object)),se=b(O,L,q,W),se&&v(O,L,q,W)}else{const oe=H.wireframe===!0;(d.geometry!==L.id||d.program!==q.id||d.wireframe!==oe)&&(d.geometry=L.id,d.program=q.id,d.wireframe=oe,se=!0)}W!==null&&t.update(W,n.ELEMENT_ARRAY_BUFFER),(se||u)&&(u=!1,I(O,H,q,L),W!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(W).buffer))}function m(){return s.isWebGL2?n.createVertexArray():i.createVertexArrayOES()}function h(O){return s.isWebGL2?n.bindVertexArray(O):i.bindVertexArrayOES(O)}function g(O){return s.isWebGL2?n.deleteVertexArray(O):i.deleteVertexArrayOES(O)}function f(O,H,q){const L=q.wireframe===!0;let W=a[O.id];W===void 0&&(W={},a[O.id]=W);let se=W[H.id];se===void 0&&(se={},W[H.id]=se);let oe=se[L];return oe===void 0&&(oe=y(m()),se[L]=oe),oe}function y(O){const H=[],q=[],L=[];for(let W=0;W=0){const Ee=W[xe];let Oe=se[xe];if(Oe===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Oe=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Oe=O.instanceColor)),Ee===void 0||Ee.attribute!==Oe||Oe&&Ee.data!==Oe.data)return!0;oe++}return d.attributesNum!==oe||d.index!==L}function v(O,H,q,L){const W={},se=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){let Ee=se[xe];Ee===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Ee=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Ee=O.instanceColor));const Oe={};Oe.attribute=Ee,Ee&&Ee.data&&(Oe.data=Ee.data),W[xe]=Oe,oe++}d.attributes=W,d.attributesNum=oe,d.index=L}function E(){const O=d.newAttributes;for(let H=0,q=O.length;H=0){let ce=W[ye];if(ce===void 0&&(ye==="instanceMatrix"&&O.instanceMatrix&&(ce=O.instanceMatrix),ye==="instanceColor"&&O.instanceColor&&(ce=O.instanceColor)),ce!==void 0){const Ee=ce.normalized,Oe=ce.itemSize,De=t.get(ce);if(De===void 0)continue;const Q=De.buffer,fe=De.type,_e=De.bytesPerElement,Ae=s.isWebGL2===!0&&(fe===n.INT||fe===n.UNSIGNED_INT||ce.gpuType===DN);if(ce.isInterleavedBufferAttribute){const Be=ce.data,te=Be.stride,U=ce.offset;if(Be.isInstancedInterleavedBuffer){for(let P=0;P0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const c=i(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,_=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_TEXTURE_SIZE),g=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),f=n.getParameter(n.MAX_VERTEX_ATTRIBS),y=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),b=n.getParameter(n.MAX_VARYING_VECTORS),v=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),E=m>0,S=o||e.has("OES_texture_float"),R=E&&S,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:r,getMaxPrecision:i,precision:a,logarithmicDepthBuffer:u,maxTextures:_,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:f,maxVertexUniforms:y,maxVaryings:b,maxFragmentUniforms:v,vertexTextures:E,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:w}}function GEt(n){const e=this;let t=null,s=0,r=!1,i=!1;const o=new Vi,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(_,m){const h=_.length!==0||m||s!==0||r;return r=m,s=_.length,h},this.beginShadows=function(){i=!0,u(null)},this.endShadows=function(){i=!1},this.setGlobalState=function(_,m){t=u(_,m,0)},this.setState=function(_,m,h){const g=_.clippingPlanes,f=_.clipIntersection,y=_.clipShadows,b=n.get(_);if(!r||g===null||g.length===0||i&&!y)i?u(null):d();else{const v=i?0:s,E=v*4;let S=b.clippingState||null;c.value=S,S=u(g,m,E,h);for(let R=0;R!==E;++R)S[R]=t[R];b.clippingState=S,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=v}};function d(){c.value!==t&&(c.value=t,c.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function u(_,m,h,g){const f=_!==null?_.length:0;let y=null;if(f!==0){if(y=c.value,g!==!0||y===null){const b=h+f*4,v=m.matrixWorldInverse;a.getNormalMatrix(v),(y===null||y.length0){const d=new J0t(c.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",r),t(d.texture,o.mapping)}else return null}}return o}function r(o){const a=o.target;a.removeEventListener("dispose",r);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function i(){e=new WeakMap}return{get:s,dispose:i}}class hy extends JN{constructor(e=-1,t=1,s=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=s,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,s,r,i,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=s,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=s-e,o=s+e,a=r+t,c=r-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=d*this.view.offsetX,o=i+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const jo=4,iw=[.125,.215,.35,.446,.526,.582],$i=20,pg=new hy,ow=new pt;let fg=null,_g=0,mg=0;const zi=(1+Math.sqrt(5))/2,zo=1/zi,aw=[new ie(1,1,1),new ie(-1,1,1),new ie(1,1,-1),new ie(-1,1,-1),new ie(0,zi,zo),new ie(0,zi,-zo),new ie(zo,0,zi),new ie(-zo,0,zi),new ie(zi,zo,0),new ie(-zi,zo,0)];class lw{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,s=.1,r=100){fg=this._renderer.getRenderTarget(),_g=this._renderer.getActiveCubeFace(),mg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,s,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=uw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=dw(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(r),f&&u.render(g,a),u.render(e,a)}g.geometry.dispose(),g.material.dispose(),u.toneMapping=m,u.autoClear=_,e.background=y}_textureToCubeUV(e,t){const s=this._renderer,r=e.mapping===ya||e.mapping===va;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=uw()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=dw());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new Vn(this._lodPlanes[0],i),a=i.uniforms;a.envMap.value=e;const c=this._cubeSize;dd(t,0,0,3*c,2*c),s.setRenderTarget(t),s.render(o,pg)}_applyPMREM(e){const t=this._renderer,s=t.autoClear;t.autoClear=!1;for(let r=1;r$i&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${y} samples when the maximum is set to ${$i}`);const b=[];let v=0;for(let A=0;A<$i;++A){const I=A/f,C=Math.exp(-I*I/2);b.push(C),A===0?v+=C:AE-jo?r-E+jo:0),w=4*(this._cubeSize-S);dd(t,R,w,3*S,2*S),c.setRenderTarget(t),c.render(_,pg)}}function zEt(n){const e=[],t=[],s=[];let r=n;const i=n-jo+1+iw.length;for(let o=0;on-jo?c=iw[o-n+jo-1]:o===0&&(c=0),s.push(c);const d=1/(a-2),u=-d,_=1+d,m=[u,u,_,u,_,_,u,u,_,_,u,_],h=6,g=6,f=3,y=2,b=1,v=new Float32Array(f*g*h),E=new Float32Array(y*g*h),S=new Float32Array(b*g*h);for(let w=0;w2?0:-1,C=[A,I,0,A+2/3,I,0,A+2/3,I+1,0,A,I,0,A+2/3,I+1,0,A,I+1,0];v.set(C,f*g*w),E.set(m,y*g*w);const M=[w,w,w,w,w,w];S.set(M,b*g*w)}const R=new _r;R.setAttribute("position",new zn(v,f)),R.setAttribute("uv",new zn(E,y)),R.setAttribute("faceIndex",new zn(S,b)),e.push(R),r>jo&&r--}return{lodPlanes:e,sizeLods:t,sigmas:s}}function cw(n,e,t){const s=new mo(n,e,t);return s.texture.mapping=pp,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function dd(n,e,t,s,r){n.viewport.set(e,t,s,r),n.scissor.set(e,t,s,r)}function HEt(n,e,t){const s=new Float32Array($i),r=new ie(0,1,0);return new ho({name:"SphericalGaussianBlur",defines:{n:$i,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:s},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:gy(),fragmentShader:` precision mediump float; precision mediump int; @@ -3941,7 +3941,7 @@ precision `+n.precision+" int;";return n.precision==="highp"?e+=` Program Info Log: `+V+` `+L+` -`+W)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(ee===""||O==="")&&(q=!1);q&&(G.diagnostics={runnable:H,programLog:V,vertexShader:{log:ee,prefix:y},fragmentShader:{log:O,prefix:b}})}r.deleteShader(R),r.deleteShader(w),I=new Dd(r,f),C=XSt(r,f)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let C;this.getAttributes=function(){return C===void 0&&A(this),C};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=r.getProgramParameter(f,HSt)),M},this.destroy=function(){s.releaseStatesOfProgram(this),r.deleteProgram(f),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=qSt++,this.cacheKey=e,this.usedTimes=1,this.program=f,this.vertexShader=R,this.fragmentShader=w,this}let c1t=0;class d1t{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,s=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(r)===!1&&(o.add(r),r.usedTimes++),o.has(i)===!1&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const s of t)s.usedTimes--,s.usedTimes===0&&this.shaderCache.delete(s.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let s=t.get(e);return s===void 0&&(s=new Set,t.set(e,s)),s}_getShaderStage(e){const t=this.shaderCache;let s=t.get(e);return s===void 0&&(s=new u1t(e),t.set(e,s)),s}}class u1t{constructor(e){this.id=c1t++,this.code=e,this.usedTimes=0}}function p1t(n,e,t,s,r,i,o){const a=new KN,c=new d1t,d=[],u=r.isWebGL2,_=r.logarithmicDepthBuffer,m=r.vertexTextures;let h=r.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function f(C){return C===0?"uv":`uv${C}`}function y(C,M,G,V,ee){const O=V.fog,H=ee.geometry,q=C.isMeshStandardMaterial?V.environment:null,L=(C.isMeshStandardMaterial?t:e).get(C.envMap||q),W=L&&L.mapping===pp?L.image.height:null,se=g[C.type];C.precision!==null&&(h=r.getMaxPrecision(C.precision),h!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",h,"instead."));const oe=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ye=oe!==void 0?oe.length:0;let xe=0;H.morphAttributes.position!==void 0&&(xe=1),H.morphAttributes.normal!==void 0&&(xe=2),H.morphAttributes.color!==void 0&&(xe=3);let ce,Ee,Oe,De;if(se){const wn=Zs[se];ce=wn.vertexShader,Ee=wn.fragmentShader}else ce=C.vertexShader,Ee=C.fragmentShader,c.update(C),Oe=c.getVertexShaderID(C),De=c.getFragmentShaderID(C);const Q=n.getRenderTarget(),fe=ee.isInstancedMesh===!0,_e=ee.isBatchedMesh===!0,Ae=!!C.map,Be=!!C.matcap,te=!!L,U=!!C.aoMap,P=!!C.lightMap,Z=!!C.bumpMap,de=!!C.normalMap,pe=!!C.displacementMap,he=!!C.emissiveMap,le=!!C.metalnessMap,Me=!!C.roughnessMap,Re=C.anisotropy>0,ge=C.clearcoat>0,D=C.iridescence>0,N=C.sheen>0,K=C.transmission>0,me=Re&&!!C.anisotropyMap,j=ge&&!!C.clearcoatMap,re=ge&&!!C.clearcoatNormalMap,Ce=ge&&!!C.clearcoatRoughnessMap,we=D&&!!C.iridescenceMap,ke=D&&!!C.iridescenceThicknessMap,Ke=N&&!!C.sheenColorMap,lt=N&&!!C.sheenRoughnessMap,Pe=!!C.specularMap,Mt=!!C.specularColorMap,tt=!!C.specularIntensityMap,nt=K&&!!C.transmissionMap,ze=K&&!!C.thicknessMap,je=!!C.gradientMap,_t=!!C.alphaMap,J=C.alphaTest>0,Qe=!!C.alphaHash,Ge=!!C.extensions,Ne=!!H.attributes.uv1,qe=!!H.attributes.uv2,dt=!!H.attributes.uv3;let Nt=gi;return C.toneMapped&&(Q===null||Q.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:u,shaderID:se,shaderType:C.type,shaderName:C.name,vertexShader:ce,fragmentShader:Ee,defines:C.defines,customVertexShaderID:Oe,customFragmentShaderID:De,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:h,batching:_e,instancing:fe,instancingColor:fe&&ee.instanceColor!==null,supportsVertexTextures:m,outputColorSpace:Q===null?n.outputColorSpace:Q.isXRRenderTarget===!0?Q.texture.colorSpace:Cn,map:Ae,matcap:Be,envMap:te,envMapMode:te&&L.mapping,envMapCubeUVHeight:W,aoMap:U,lightMap:P,bumpMap:Z,normalMap:de,displacementMap:m&&pe,emissiveMap:he,normalMapObjectSpace:de&&C.normalMapType===l0t,normalMapTangentSpace:de&&C.normalMapType===uy,metalnessMap:le,roughnessMap:Me,anisotropy:Re,anisotropyMap:me,clearcoat:ge,clearcoatMap:j,clearcoatNormalMap:re,clearcoatRoughnessMap:Ce,iridescence:D,iridescenceMap:we,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:Ke,sheenRoughnessMap:lt,specularMap:Pe,specularColorMap:Mt,specularIntensityMap:tt,transmission:K,transmissionMap:nt,thicknessMap:ze,gradientMap:je,opaque:C.transparent===!1&&C.blending===ia,alphaMap:_t,alphaTest:J,alphaHash:Qe,combine:C.combine,mapUv:Ae&&f(C.map.channel),aoMapUv:U&&f(C.aoMap.channel),lightMapUv:P&&f(C.lightMap.channel),bumpMapUv:Z&&f(C.bumpMap.channel),normalMapUv:de&&f(C.normalMap.channel),displacementMapUv:pe&&f(C.displacementMap.channel),emissiveMapUv:he&&f(C.emissiveMap.channel),metalnessMapUv:le&&f(C.metalnessMap.channel),roughnessMapUv:Me&&f(C.roughnessMap.channel),anisotropyMapUv:me&&f(C.anisotropyMap.channel),clearcoatMapUv:j&&f(C.clearcoatMap.channel),clearcoatNormalMapUv:re&&f(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&f(C.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&f(C.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&f(C.iridescenceThicknessMap.channel),sheenColorMapUv:Ke&&f(C.sheenColorMap.channel),sheenRoughnessMapUv:lt&&f(C.sheenRoughnessMap.channel),specularMapUv:Pe&&f(C.specularMap.channel),specularColorMapUv:Mt&&f(C.specularColorMap.channel),specularIntensityMapUv:tt&&f(C.specularIntensityMap.channel),transmissionMapUv:nt&&f(C.transmissionMap.channel),thicknessMapUv:ze&&f(C.thicknessMap.channel),alphaMapUv:_t&&f(C.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(de||Re),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:qe,vertexUv3s:dt,pointsUvs:ee.isPoints===!0&&!!H.attributes.uv&&(Ae||_t),fog:!!O,useFog:C.fog===!0,fogExp2:O&&O.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:_,skinning:ee.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ye,morphTextureStride:xe,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:C.dithering,shadowMapEnabled:n.shadowMap.enabled&&G.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ae&&C.map.isVideoTexture===!0&&Pt.getTransfer(C.map.colorSpace)===jt,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===Js,flipSided:C.side===Zn,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Ge&&C.extensions.derivatives===!0,extensionFragDepth:Ge&&C.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||s.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||s.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||s.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:s.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function b(C){const M=[];if(C.shaderID?M.push(C.shaderID):(M.push(C.customVertexShaderID),M.push(C.customFragmentShaderID)),C.defines!==void 0)for(const G in C.defines)M.push(G),M.push(C.defines[G]);return C.isRawShaderMaterial===!1&&(v(M,C),E(M,C),M.push(n.outputColorSpace)),M.push(C.customProgramCacheKey),M.join()}function v(C,M){C.push(M.precision),C.push(M.outputColorSpace),C.push(M.envMapMode),C.push(M.envMapCubeUVHeight),C.push(M.mapUv),C.push(M.alphaMapUv),C.push(M.lightMapUv),C.push(M.aoMapUv),C.push(M.bumpMapUv),C.push(M.normalMapUv),C.push(M.displacementMapUv),C.push(M.emissiveMapUv),C.push(M.metalnessMapUv),C.push(M.roughnessMapUv),C.push(M.anisotropyMapUv),C.push(M.clearcoatMapUv),C.push(M.clearcoatNormalMapUv),C.push(M.clearcoatRoughnessMapUv),C.push(M.iridescenceMapUv),C.push(M.iridescenceThicknessMapUv),C.push(M.sheenColorMapUv),C.push(M.sheenRoughnessMapUv),C.push(M.specularMapUv),C.push(M.specularColorMapUv),C.push(M.specularIntensityMapUv),C.push(M.transmissionMapUv),C.push(M.thicknessMapUv),C.push(M.combine),C.push(M.fogExp2),C.push(M.sizeAttenuation),C.push(M.morphTargetsCount),C.push(M.morphAttributeCount),C.push(M.numDirLights),C.push(M.numPointLights),C.push(M.numSpotLights),C.push(M.numSpotLightMaps),C.push(M.numHemiLights),C.push(M.numRectAreaLights),C.push(M.numDirLightShadows),C.push(M.numPointLightShadows),C.push(M.numSpotLightShadows),C.push(M.numSpotLightShadowsWithMaps),C.push(M.numLightProbes),C.push(M.shadowMapType),C.push(M.toneMapping),C.push(M.numClippingPlanes),C.push(M.numClipIntersection),C.push(M.depthPacking)}function E(C,M){a.disableAll(),M.isWebGL2&&a.enable(0),M.supportsVertexTextures&&a.enable(1),M.instancing&&a.enable(2),M.instancingColor&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),C.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.useLegacyLights&&a.enable(10),M.doubleSided&&a.enable(11),M.flipSided&&a.enable(12),M.useDepthPacking&&a.enable(13),M.dithering&&a.enable(14),M.transmission&&a.enable(15),M.sheen&&a.enable(16),M.opaque&&a.enable(17),M.pointsUvs&&a.enable(18),M.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function S(C){const M=g[C.type];let G;if(M){const V=Zs[M];G=j0t.clone(V.uniforms)}else G=C.uniforms;return G}function R(C,M){let G;for(let V=0,ee=d.length;V0?s.push(b):h.transparent===!0?r.push(b):t.push(b)}function c(_,m,h,g,f,y){const b=o(_,m,h,g,f,y);h.transmission>0?s.unshift(b):h.transparent===!0?r.unshift(b):t.unshift(b)}function d(_,m){t.length>1&&t.sort(_||_1t),s.length>1&&s.sort(m||xw),r.length>1&&r.sort(m||xw)}function u(){for(let _=e,m=n.length;_=i.length?(o=new Cw,i.push(o)):o=i[r],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function h1t(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new ie,color:new pt};break;case"SpotLight":t={position:new ie,direction:new ie,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new ie,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new ie,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new ie,halfWidth:new ie,halfHeight:new ie};break}return n[e.id]=t,t}}}function g1t(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let b1t=0;function y1t(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function v1t(n,e){const t=new h1t,s=g1t(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)r.probe.push(new ie);const i=new ie,o=new xt,a=new xt;function c(u,_){let m=0,h=0,g=0;for(let V=0;V<9;V++)r.probe[V].set(0,0,0);let f=0,y=0,b=0,v=0,E=0,S=0,R=0,w=0,A=0,I=0,C=0;u.sort(y1t);const M=_===!0?Math.PI:1;for(let V=0,ee=u.length;V0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_FLOAT_1,r.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_HALF_1,r.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=m,r.ambient[1]=h,r.ambient[2]=g;const G=r.hash;(G.directionalLength!==f||G.pointLength!==y||G.spotLength!==b||G.rectAreaLength!==v||G.hemiLength!==E||G.numDirectionalShadows!==S||G.numPointShadows!==R||G.numSpotShadows!==w||G.numSpotMaps!==A||G.numLightProbes!==C)&&(r.directional.length=f,r.spot.length=b,r.rectArea.length=v,r.point.length=y,r.hemi.length=E,r.directionalShadow.length=S,r.directionalShadowMap.length=S,r.pointShadow.length=R,r.pointShadowMap.length=R,r.spotShadow.length=w,r.spotShadowMap.length=w,r.directionalShadowMatrix.length=S,r.pointShadowMatrix.length=R,r.spotLightMatrix.length=w+A-I,r.spotLightMap.length=A,r.numSpotLightShadowsWithMaps=I,r.numLightProbes=C,G.directionalLength=f,G.pointLength=y,G.spotLength=b,G.rectAreaLength=v,G.hemiLength=E,G.numDirectionalShadows=S,G.numPointShadows=R,G.numSpotShadows=w,G.numSpotMaps=A,G.numLightProbes=C,r.version=b1t++)}function d(u,_){let m=0,h=0,g=0,f=0,y=0;const b=_.matrixWorldInverse;for(let v=0,E=u.length;v=a.length?(c=new ww(n,e),a.push(c)):c=a[o],c}function r(){t=new WeakMap}return{get:s,dispose:r}}class S1t extends Vs{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=o0t,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class T1t extends Vs{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const x1t=`void main() { +`+W)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(ee===""||O==="")&&(q=!1);q&&(G.diagnostics={runnable:H,programLog:V,vertexShader:{log:ee,prefix:y},fragmentShader:{log:O,prefix:b}})}r.deleteShader(R),r.deleteShader(w),I=new Dd(r,f),C=XSt(r,f)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let C;this.getAttributes=function(){return C===void 0&&A(this),C};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=r.getProgramParameter(f,HSt)),M},this.destroy=function(){s.releaseStatesOfProgram(this),r.deleteProgram(f),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=qSt++,this.cacheKey=e,this.usedTimes=1,this.program=f,this.vertexShader=R,this.fragmentShader=w,this}let c1t=0;class d1t{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,s=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(r)===!1&&(o.add(r),r.usedTimes++),o.has(i)===!1&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const s of t)s.usedTimes--,s.usedTimes===0&&this.shaderCache.delete(s.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let s=t.get(e);return s===void 0&&(s=new Set,t.set(e,s)),s}_getShaderStage(e){const t=this.shaderCache;let s=t.get(e);return s===void 0&&(s=new u1t(e),t.set(e,s)),s}}class u1t{constructor(e){this.id=c1t++,this.code=e,this.usedTimes=0}}function p1t(n,e,t,s,r,i,o){const a=new KN,c=new d1t,d=[],u=r.isWebGL2,_=r.logarithmicDepthBuffer,m=r.vertexTextures;let h=r.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function f(C){return C===0?"uv":`uv${C}`}function y(C,M,G,V,ee){const O=V.fog,H=ee.geometry,q=C.isMeshStandardMaterial?V.environment:null,L=(C.isMeshStandardMaterial?t:e).get(C.envMap||q),W=L&&L.mapping===pp?L.image.height:null,se=g[C.type];C.precision!==null&&(h=r.getMaxPrecision(C.precision),h!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",h,"instead."));const oe=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ye=oe!==void 0?oe.length:0;let xe=0;H.morphAttributes.position!==void 0&&(xe=1),H.morphAttributes.normal!==void 0&&(xe=2),H.morphAttributes.color!==void 0&&(xe=3);let ce,Ee,Oe,De;if(se){const wn=Js[se];ce=wn.vertexShader,Ee=wn.fragmentShader}else ce=C.vertexShader,Ee=C.fragmentShader,c.update(C),Oe=c.getVertexShaderID(C),De=c.getFragmentShaderID(C);const Q=n.getRenderTarget(),fe=ee.isInstancedMesh===!0,_e=ee.isBatchedMesh===!0,Ae=!!C.map,Be=!!C.matcap,te=!!L,U=!!C.aoMap,P=!!C.lightMap,Z=!!C.bumpMap,de=!!C.normalMap,pe=!!C.displacementMap,he=!!C.emissiveMap,le=!!C.metalnessMap,Me=!!C.roughnessMap,Re=C.anisotropy>0,ge=C.clearcoat>0,D=C.iridescence>0,N=C.sheen>0,K=C.transmission>0,me=Re&&!!C.anisotropyMap,j=ge&&!!C.clearcoatMap,re=ge&&!!C.clearcoatNormalMap,Ce=ge&&!!C.clearcoatRoughnessMap,we=D&&!!C.iridescenceMap,ke=D&&!!C.iridescenceThicknessMap,Ke=N&&!!C.sheenColorMap,lt=N&&!!C.sheenRoughnessMap,Pe=!!C.specularMap,Mt=!!C.specularColorMap,tt=!!C.specularIntensityMap,nt=K&&!!C.transmissionMap,ze=K&&!!C.thicknessMap,je=!!C.gradientMap,_t=!!C.alphaMap,J=C.alphaTest>0,Qe=!!C.alphaHash,Ge=!!C.extensions,Ne=!!H.attributes.uv1,qe=!!H.attributes.uv2,dt=!!H.attributes.uv3;let Nt=gi;return C.toneMapped&&(Q===null||Q.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:u,shaderID:se,shaderType:C.type,shaderName:C.name,vertexShader:ce,fragmentShader:Ee,defines:C.defines,customVertexShaderID:Oe,customFragmentShaderID:De,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:h,batching:_e,instancing:fe,instancingColor:fe&&ee.instanceColor!==null,supportsVertexTextures:m,outputColorSpace:Q===null?n.outputColorSpace:Q.isXRRenderTarget===!0?Q.texture.colorSpace:Cn,map:Ae,matcap:Be,envMap:te,envMapMode:te&&L.mapping,envMapCubeUVHeight:W,aoMap:U,lightMap:P,bumpMap:Z,normalMap:de,displacementMap:m&&pe,emissiveMap:he,normalMapObjectSpace:de&&C.normalMapType===l0t,normalMapTangentSpace:de&&C.normalMapType===uy,metalnessMap:le,roughnessMap:Me,anisotropy:Re,anisotropyMap:me,clearcoat:ge,clearcoatMap:j,clearcoatNormalMap:re,clearcoatRoughnessMap:Ce,iridescence:D,iridescenceMap:we,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:Ke,sheenRoughnessMap:lt,specularMap:Pe,specularColorMap:Mt,specularIntensityMap:tt,transmission:K,transmissionMap:nt,thicknessMap:ze,gradientMap:je,opaque:C.transparent===!1&&C.blending===ia,alphaMap:_t,alphaTest:J,alphaHash:Qe,combine:C.combine,mapUv:Ae&&f(C.map.channel),aoMapUv:U&&f(C.aoMap.channel),lightMapUv:P&&f(C.lightMap.channel),bumpMapUv:Z&&f(C.bumpMap.channel),normalMapUv:de&&f(C.normalMap.channel),displacementMapUv:pe&&f(C.displacementMap.channel),emissiveMapUv:he&&f(C.emissiveMap.channel),metalnessMapUv:le&&f(C.metalnessMap.channel),roughnessMapUv:Me&&f(C.roughnessMap.channel),anisotropyMapUv:me&&f(C.anisotropyMap.channel),clearcoatMapUv:j&&f(C.clearcoatMap.channel),clearcoatNormalMapUv:re&&f(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&f(C.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&f(C.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&f(C.iridescenceThicknessMap.channel),sheenColorMapUv:Ke&&f(C.sheenColorMap.channel),sheenRoughnessMapUv:lt&&f(C.sheenRoughnessMap.channel),specularMapUv:Pe&&f(C.specularMap.channel),specularColorMapUv:Mt&&f(C.specularColorMap.channel),specularIntensityMapUv:tt&&f(C.specularIntensityMap.channel),transmissionMapUv:nt&&f(C.transmissionMap.channel),thicknessMapUv:ze&&f(C.thicknessMap.channel),alphaMapUv:_t&&f(C.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(de||Re),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:qe,vertexUv3s:dt,pointsUvs:ee.isPoints===!0&&!!H.attributes.uv&&(Ae||_t),fog:!!O,useFog:C.fog===!0,fogExp2:O&&O.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:_,skinning:ee.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ye,morphTextureStride:xe,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:C.dithering,shadowMapEnabled:n.shadowMap.enabled&&G.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ae&&C.map.isVideoTexture===!0&&Pt.getTransfer(C.map.colorSpace)===jt,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===er,flipSided:C.side===Zn,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Ge&&C.extensions.derivatives===!0,extensionFragDepth:Ge&&C.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||s.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||s.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||s.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:s.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function b(C){const M=[];if(C.shaderID?M.push(C.shaderID):(M.push(C.customVertexShaderID),M.push(C.customFragmentShaderID)),C.defines!==void 0)for(const G in C.defines)M.push(G),M.push(C.defines[G]);return C.isRawShaderMaterial===!1&&(v(M,C),E(M,C),M.push(n.outputColorSpace)),M.push(C.customProgramCacheKey),M.join()}function v(C,M){C.push(M.precision),C.push(M.outputColorSpace),C.push(M.envMapMode),C.push(M.envMapCubeUVHeight),C.push(M.mapUv),C.push(M.alphaMapUv),C.push(M.lightMapUv),C.push(M.aoMapUv),C.push(M.bumpMapUv),C.push(M.normalMapUv),C.push(M.displacementMapUv),C.push(M.emissiveMapUv),C.push(M.metalnessMapUv),C.push(M.roughnessMapUv),C.push(M.anisotropyMapUv),C.push(M.clearcoatMapUv),C.push(M.clearcoatNormalMapUv),C.push(M.clearcoatRoughnessMapUv),C.push(M.iridescenceMapUv),C.push(M.iridescenceThicknessMapUv),C.push(M.sheenColorMapUv),C.push(M.sheenRoughnessMapUv),C.push(M.specularMapUv),C.push(M.specularColorMapUv),C.push(M.specularIntensityMapUv),C.push(M.transmissionMapUv),C.push(M.thicknessMapUv),C.push(M.combine),C.push(M.fogExp2),C.push(M.sizeAttenuation),C.push(M.morphTargetsCount),C.push(M.morphAttributeCount),C.push(M.numDirLights),C.push(M.numPointLights),C.push(M.numSpotLights),C.push(M.numSpotLightMaps),C.push(M.numHemiLights),C.push(M.numRectAreaLights),C.push(M.numDirLightShadows),C.push(M.numPointLightShadows),C.push(M.numSpotLightShadows),C.push(M.numSpotLightShadowsWithMaps),C.push(M.numLightProbes),C.push(M.shadowMapType),C.push(M.toneMapping),C.push(M.numClippingPlanes),C.push(M.numClipIntersection),C.push(M.depthPacking)}function E(C,M){a.disableAll(),M.isWebGL2&&a.enable(0),M.supportsVertexTextures&&a.enable(1),M.instancing&&a.enable(2),M.instancingColor&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),C.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.useLegacyLights&&a.enable(10),M.doubleSided&&a.enable(11),M.flipSided&&a.enable(12),M.useDepthPacking&&a.enable(13),M.dithering&&a.enable(14),M.transmission&&a.enable(15),M.sheen&&a.enable(16),M.opaque&&a.enable(17),M.pointsUvs&&a.enable(18),M.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function S(C){const M=g[C.type];let G;if(M){const V=Js[M];G=j0t.clone(V.uniforms)}else G=C.uniforms;return G}function R(C,M){let G;for(let V=0,ee=d.length;V0?s.push(b):h.transparent===!0?r.push(b):t.push(b)}function c(_,m,h,g,f,y){const b=o(_,m,h,g,f,y);h.transmission>0?s.unshift(b):h.transparent===!0?r.unshift(b):t.unshift(b)}function d(_,m){t.length>1&&t.sort(_||_1t),s.length>1&&s.sort(m||xw),r.length>1&&r.sort(m||xw)}function u(){for(let _=e,m=n.length;_=i.length?(o=new Cw,i.push(o)):o=i[r],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function h1t(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new ie,color:new pt};break;case"SpotLight":t={position:new ie,direction:new ie,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new ie,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new ie,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new ie,halfWidth:new ie,halfHeight:new ie};break}return n[e.id]=t,t}}}function g1t(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let b1t=0;function y1t(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function v1t(n,e){const t=new h1t,s=g1t(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)r.probe.push(new ie);const i=new ie,o=new xt,a=new xt;function c(u,_){let m=0,h=0,g=0;for(let V=0;V<9;V++)r.probe[V].set(0,0,0);let f=0,y=0,b=0,v=0,E=0,S=0,R=0,w=0,A=0,I=0,C=0;u.sort(y1t);const M=_===!0?Math.PI:1;for(let V=0,ee=u.length;V0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_FLOAT_1,r.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_HALF_1,r.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=m,r.ambient[1]=h,r.ambient[2]=g;const G=r.hash;(G.directionalLength!==f||G.pointLength!==y||G.spotLength!==b||G.rectAreaLength!==v||G.hemiLength!==E||G.numDirectionalShadows!==S||G.numPointShadows!==R||G.numSpotShadows!==w||G.numSpotMaps!==A||G.numLightProbes!==C)&&(r.directional.length=f,r.spot.length=b,r.rectArea.length=v,r.point.length=y,r.hemi.length=E,r.directionalShadow.length=S,r.directionalShadowMap.length=S,r.pointShadow.length=R,r.pointShadowMap.length=R,r.spotShadow.length=w,r.spotShadowMap.length=w,r.directionalShadowMatrix.length=S,r.pointShadowMatrix.length=R,r.spotLightMatrix.length=w+A-I,r.spotLightMap.length=A,r.numSpotLightShadowsWithMaps=I,r.numLightProbes=C,G.directionalLength=f,G.pointLength=y,G.spotLength=b,G.rectAreaLength=v,G.hemiLength=E,G.numDirectionalShadows=S,G.numPointShadows=R,G.numSpotShadows=w,G.numSpotMaps=A,G.numLightProbes=C,r.version=b1t++)}function d(u,_){let m=0,h=0,g=0,f=0,y=0;const b=_.matrixWorldInverse;for(let v=0,E=u.length;v=a.length?(c=new ww(n,e),a.push(c)):c=a[o],c}function r(){t=new WeakMap}return{get:s,dispose:r}}class S1t extends Vs{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=o0t,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class T1t extends Vs{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const x1t=`void main() { gl_Position = vec4( position, 1.0 ); }`,C1t=`uniform sampler2D shadow_pass; uniform vec2 resolution; @@ -3969,11 +3969,11 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function w1t(n,e,t){let s=new _y;const r=new Rt,i=new Rt,o=new Wt,a=new S1t({depthPacking:a0t}),c=new T1t,d={},u=t.maxTextureSize,_={[Fr]:Zn,[Zn]:Fr,[Js]:Js},m=new ho({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:x1t,fragmentShader:C1t}),h=m.clone();h.defines.HORIZONTAL_PASS=1;const g=new _r;g.setAttribute("position",new zn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const f=new Vn(g,m),y=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=ON;let b=this.type;this.render=function(R,w,A){if(y.enabled===!1||y.autoUpdate===!1&&y.needsUpdate===!1||R.length===0)return;const I=n.getRenderTarget(),C=n.getActiveCubeFace(),M=n.getActiveMipmapLevel(),G=n.state;G.setBlending(hi),G.buffers.color.setClear(1,1,1,1),G.buffers.depth.setTest(!0),G.setScissorTest(!1);const V=b!==Cr&&this.type===Cr,ee=b===Cr&&this.type!==Cr;for(let O=0,H=R.length;Ou||r.y>u)&&(r.x>u&&(i.x=Math.floor(u/W.x),r.x=i.x*W.x,L.mapSize.x=i.x),r.y>u&&(i.y=Math.floor(u/W.y),r.y=i.y*W.y,L.mapSize.y=i.y)),L.map===null||V===!0||ee===!0){const oe=this.type!==Cr?{minFilter:gn,magFilter:gn}:{};L.map!==null&&L.map.dispose(),L.map=new mo(r.x,r.y,oe),L.map.texture.name=q.name+".shadowMap",L.camera.updateProjectionMatrix()}n.setRenderTarget(L.map),n.clear();const se=L.getViewportCount();for(let oe=0;oe0||w.map&&w.alphaTest>0){const G=C.uuid,V=w.uuid;let ee=d[G];ee===void 0&&(ee={},d[G]=ee);let O=ee[V];O===void 0&&(O=C.clone(),ee[V]=O),C=O}if(C.visible=w.visible,C.wireframe=w.wireframe,I===Cr?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:_[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,A.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const G=n.properties.get(C);G.light=A}return C}function S(R,w,A,I,C){if(R.visible===!1)return;if(R.layers.test(w.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&C===Cr)&&(!R.frustumCulled||s.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const V=e.update(R),ee=R.material;if(Array.isArray(ee)){const O=V.groups;for(let H=0,q=O.length;H=1):oe.indexOf("OpenGL ES")!==-1&&(se=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),W=se>=2);let ye=null,xe={};const ce=n.getParameter(n.SCISSOR_BOX),Ee=n.getParameter(n.VIEWPORT),Oe=new Wt().fromArray(ce),De=new Wt().fromArray(Ee);function Q(J,Qe,Ge,Ne){const qe=new Uint8Array(4),dt=n.createTexture();n.bindTexture(J,dt),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),g=new WeakMap;let f;const y=new WeakMap;let b=!1;try{b=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(D,N){return b?new OffscreenCanvas(D,N):Zl("canvas")}function E(D,N,K,me){let j=1;if((D.width>me||D.height>me)&&(j=me/Math.max(D.width,D.height)),j<1||N===!0)if(typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&D instanceof ImageBitmap){const re=N?Eu:Math.floor,Ce=re(j*D.width),we=re(j*D.height);f===void 0&&(f=v(Ce,we));const ke=K?v(Ce,we):f;return ke.width=Ce,ke.height=we,ke.getContext("2d").drawImage(D,0,0,Ce,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+D.width+"x"+D.height+") to ("+Ce+"x"+we+")."),ke}else return"data"in D&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+D.width+"x"+D.height+")."),D;return D}function S(D){return vb(D.width)&&vb(D.height)}function R(D){return a?!1:D.wrapS!==gs||D.wrapT!==gs||D.minFilter!==gn&&D.minFilter!==Wn}function w(D,N){return D.generateMipmaps&&N&&D.minFilter!==gn&&D.minFilter!==Wn}function A(D){n.generateMipmap(D)}function I(D,N,K,me,j=!1){if(a===!1)return N;if(D!==null){if(n[D]!==void 0)return n[D];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+D+"'")}let re=N;if(N===n.RED&&(K===n.FLOAT&&(re=n.R32F),K===n.HALF_FLOAT&&(re=n.R16F),K===n.UNSIGNED_BYTE&&(re=n.R8)),N===n.RED_INTEGER&&(K===n.UNSIGNED_BYTE&&(re=n.R8UI),K===n.UNSIGNED_SHORT&&(re=n.R16UI),K===n.UNSIGNED_INT&&(re=n.R32UI),K===n.BYTE&&(re=n.R8I),K===n.SHORT&&(re=n.R16I),K===n.INT&&(re=n.R32I)),N===n.RG&&(K===n.FLOAT&&(re=n.RG32F),K===n.HALF_FLOAT&&(re=n.RG16F),K===n.UNSIGNED_BYTE&&(re=n.RG8)),N===n.RGBA){const Ce=j?gu:Pt.getTransfer(me);K===n.FLOAT&&(re=n.RGBA32F),K===n.HALF_FLOAT&&(re=n.RGBA16F),K===n.UNSIGNED_BYTE&&(re=Ce===jt?n.SRGB8_ALPHA8:n.RGBA8),K===n.UNSIGNED_SHORT_4_4_4_4&&(re=n.RGBA4),K===n.UNSIGNED_SHORT_5_5_5_1&&(re=n.RGB5_A1)}return(re===n.R16F||re===n.R32F||re===n.RG16F||re===n.RG32F||re===n.RGBA16F||re===n.RGBA32F)&&e.get("EXT_color_buffer_float"),re}function C(D,N,K){return w(D,K)===!0||D.isFramebufferTexture&&D.minFilter!==gn&&D.minFilter!==Wn?Math.log2(Math.max(N.width,N.height))+1:D.mipmaps!==void 0&&D.mipmaps.length>0?D.mipmaps.length:D.isCompressedTexture&&Array.isArray(D.image)?N.mipmaps.length:1}function M(D){return D===gn||D===hb||D===kd?n.NEAREST:n.LINEAR}function G(D){const N=D.target;N.removeEventListener("dispose",G),ee(N),N.isVideoTexture&&g.delete(N)}function V(D){const N=D.target;N.removeEventListener("dispose",V),H(N)}function ee(D){const N=s.get(D);if(N.__webglInit===void 0)return;const K=D.source,me=y.get(K);if(me){const j=me[N.__cacheKey];j.usedTimes--,j.usedTimes===0&&O(D),Object.keys(me).length===0&&y.delete(K)}s.remove(D)}function O(D){const N=s.get(D);n.deleteTexture(N.__webglTexture);const K=D.source,me=y.get(K);delete me[N.__cacheKey],o.memory.textures--}function H(D){const N=D.texture,K=s.get(D),me=s.get(N);if(me.__webglTexture!==void 0&&(n.deleteTexture(me.__webglTexture),o.memory.textures--),D.depthTexture&&D.depthTexture.dispose(),D.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(K.__webglFramebuffer[j]))for(let re=0;re=c&&console.warn("THREE.WebGLTextures: Trying to use "+D+" texture units while this GPU supports only "+c),q+=1,D}function se(D){const N=[];return N.push(D.wrapS),N.push(D.wrapT),N.push(D.wrapR||0),N.push(D.magFilter),N.push(D.minFilter),N.push(D.anisotropy),N.push(D.internalFormat),N.push(D.format),N.push(D.type),N.push(D.generateMipmaps),N.push(D.premultiplyAlpha),N.push(D.flipY),N.push(D.unpackAlignment),N.push(D.colorSpace),N.join()}function oe(D,N){const K=s.get(D);if(D.isVideoTexture&&Re(D),D.isRenderTargetTexture===!1&&D.version>0&&K.__version!==D.version){const me=D.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(K,D,N);return}}t.bindTexture(n.TEXTURE_2D,K.__webglTexture,n.TEXTURE0+N)}function ye(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,K.__webglTexture,n.TEXTURE0+N)}function xe(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_3D,K.__webglTexture,n.TEXTURE0+N)}function ce(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){Ae(K,D,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,K.__webglTexture,n.TEXTURE0+N)}const Ee={[Ea]:n.REPEAT,[gs]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},Oe={[gn]:n.NEAREST,[hb]:n.NEAREST_MIPMAP_NEAREST,[kd]:n.NEAREST_MIPMAP_LINEAR,[Wn]:n.LINEAR,[kN]:n.LINEAR_MIPMAP_NEAREST,[_o]:n.LINEAR_MIPMAP_LINEAR},De={[c0t]:n.NEVER,[m0t]:n.ALWAYS,[d0t]:n.LESS,[HN]:n.LEQUAL,[u0t]:n.EQUAL,[_0t]:n.GEQUAL,[p0t]:n.GREATER,[f0t]:n.NOTEQUAL};function Q(D,N,K){if(K?(n.texParameteri(D,n.TEXTURE_WRAP_S,Ee[N.wrapS]),n.texParameteri(D,n.TEXTURE_WRAP_T,Ee[N.wrapT]),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,Ee[N.wrapR]),n.texParameteri(D,n.TEXTURE_MAG_FILTER,Oe[N.magFilter]),n.texParameteri(D,n.TEXTURE_MIN_FILTER,Oe[N.minFilter])):(n.texParameteri(D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==gs||N.wrapT!==gs)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(D,n.TEXTURE_MAG_FILTER,M(N.magFilter)),n.texParameteri(D,n.TEXTURE_MIN_FILTER,M(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Wn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(D,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(D,n.TEXTURE_COMPARE_FUNC,De[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const me=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==kd&&N.minFilter!==_o||N.type===Mr&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Ql&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||s.get(N).__currentAnisotropy)&&(n.texParameterf(D,me.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,r.getMaxAnisotropy())),s.get(N).__currentAnisotropy=N.anisotropy)}}function fe(D,N){let K=!1;D.__webglInit===void 0&&(D.__webglInit=!0,N.addEventListener("dispose",G));const me=N.source;let j=y.get(me);j===void 0&&(j={},y.set(me,j));const re=se(N);if(re!==D.__cacheKey){j[re]===void 0&&(j[re]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,K=!0),j[re].usedTimes++;const Ce=j[D.__cacheKey];Ce!==void 0&&(j[D.__cacheKey].usedTimes--,Ce.usedTimes===0&&O(N)),D.__cacheKey=re,D.__webglTexture=j[re].texture}return K}function _e(D,N,K){let me=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(me=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(me=n.TEXTURE_3D);const j=fe(D,N),re=N.source;t.bindTexture(me,D.__webglTexture,n.TEXTURE0+K);const Ce=s.get(re);if(re.version!==Ce.__version||j===!0){t.activeTexture(n.TEXTURE0+K);const we=Pt.getPrimaries(Pt.workingColorSpace),ke=N.colorSpace===ys?null:Pt.getPrimaries(N.colorSpace),Ke=N.colorSpace===ys||we===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ke);const lt=R(N)&&S(N.image)===!1;let Pe=E(N.image,lt,!1,u);Pe=ge(N,Pe);const Mt=S(Pe)||a,tt=i.convert(N.format,N.colorSpace);let nt=i.convert(N.type),ze=I(N.internalFormat,tt,nt,N.colorSpace,N.isVideoTexture);Q(me,N,Mt);let je;const _t=N.mipmaps,J=a&&N.isVideoTexture!==!0&&ze!==GN,Qe=Ce.__version===void 0||j===!0,Ge=C(N,Pe,Mt);if(N.isDepthTexture)ze=n.DEPTH_COMPONENT,a?N.type===Mr?ze=n.DEPTH_COMPONENT32F:N.type===fi?ze=n.DEPTH_COMPONENT24:N.type===no?ze=n.DEPTH24_STENCIL8:ze=n.DEPTH_COMPONENT16:N.type===Mr&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===so&&ze===n.DEPTH_COMPONENT&&N.type!==dy&&N.type!==fi&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=fi,nt=i.convert(N.type)),N.format===Sa&&ze===n.DEPTH_COMPONENT&&(ze=n.DEPTH_STENCIL,N.type!==no&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=no,nt=i.convert(N.type))),Qe&&(J?t.texStorage2D(n.TEXTURE_2D,1,ze,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,tt,nt,null));else if(N.isDataTexture)if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne>=1,qe>>=1}}else if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne0&&Qe++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Qe,je,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(lt){_t?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,nt,ze,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,je,Pe[Ne].width,Pe[Ne].height,0,nt,ze,Pe[Ne].data);for(let qe=0;qe>re),Pe=Math.max(1,N.height>>re);j===n.TEXTURE_3D||j===n.TEXTURE_2D_ARRAY?t.texImage3D(j,re,ke,lt,Pe,N.depth,0,Ce,we,null):t.texImage2D(j,re,ke,lt,Pe,0,Ce,we,null)}t.bindFramebuffer(n.FRAMEBUFFER,D),Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,0,le(N)):(j===n.TEXTURE_2D||j>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&j<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,re),t.bindFramebuffer(n.FRAMEBUFFER,null)}function te(D,N,K){if(n.bindRenderbuffer(n.RENDERBUFFER,D),N.depthBuffer&&!N.stencilBuffer){let me=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(K||Me(N)){const j=N.depthTexture;j&&j.isDepthTexture&&(j.type===Mr?me=n.DEPTH_COMPONENT32F:j.type===fi&&(me=n.DEPTH_COMPONENT24));const re=le(N);Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,re,me,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,re,me,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,me,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,D)}else if(N.depthBuffer&&N.stencilBuffer){const me=le(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,D)}else{const me=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let j=0;j0){K.__webglFramebuffer[we]=[];for(let ke=0;ke0){K.__webglFramebuffer=[];for(let we=0;we0&&Me(D)===!1){const we=re?N:[N];K.__webglMultisampledFramebuffer=n.createFramebuffer(),K.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,K.__webglMultisampledFramebuffer);for(let ke=0;ke0)for(let ke=0;ke0)for(let ke=0;ke0&&Me(D)===!1){const N=D.isWebGLMultipleRenderTargets?D.texture:[D.texture],K=D.width,me=D.height;let j=n.COLOR_BUFFER_BIT;const re=[],Ce=D.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,we=s.get(D),ke=D.isWebGLMultipleRenderTargets===!0;if(ke)for(let Ke=0;Ke0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function Re(D){const N=o.render.frame;g.get(D)!==N&&(g.set(D,N),D.update())}function ge(D,N){const K=D.colorSpace,me=D.format,j=D.type;return D.isCompressedTexture===!0||D.isVideoTexture===!0||D.format===yb||K!==Cn&&K!==ys&&(Pt.getTransfer(K)===jt?a===!1?e.has("EXT_sRGB")===!0&&me===bs?(D.format=yb,D.minFilter=Wn,D.generateMipmaps=!1):N=YN.sRGBToLinear(N):(me!==bs||j!==bi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",K)),N}this.allocateTextureUnit=W,this.resetTextureUnits=L,this.setTexture2D=oe,this.setTexture2DArray=ye,this.setTexture3D=xe,this.setTextureCube=ce,this.rebindTextures=Z,this.setupRenderTarget=de,this.updateRenderTargetMipmap=pe,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=P,this.setupFrameBufferTexture=Be,this.useMultisampledRTT=Me}function M1t(n,e,t){const s=t.isWebGL2;function r(i,o=ys){let a;const c=Pt.getTransfer(o);if(i===bi)return n.UNSIGNED_BYTE;if(i===LN)return n.UNSIGNED_SHORT_4_4_4_4;if(i===PN)return n.UNSIGNED_SHORT_5_5_5_1;if(i===Qbt)return n.BYTE;if(i===Xbt)return n.SHORT;if(i===dy)return n.UNSIGNED_SHORT;if(i===DN)return n.INT;if(i===fi)return n.UNSIGNED_INT;if(i===Mr)return n.FLOAT;if(i===Ql)return s?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(i===Zbt)return n.ALPHA;if(i===bs)return n.RGBA;if(i===Jbt)return n.LUMINANCE;if(i===e0t)return n.LUMINANCE_ALPHA;if(i===so)return n.DEPTH_COMPONENT;if(i===Sa)return n.DEPTH_STENCIL;if(i===yb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(i===t0t)return n.RED;if(i===FN)return n.RED_INTEGER;if(i===n0t)return n.RG;if(i===UN)return n.RG_INTEGER;if(i===BN)return n.RGBA_INTEGER;if(i===Hh||i===qh||i===Yh||i===$h)if(c===jt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===Hh)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===qh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Yh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===$h)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===Hh)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===qh)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Yh)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===$h)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===pC||i===fC||i===_C||i===mC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===pC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===fC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===_C)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===mC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===GN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(i===hC||i===gC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===hC)return c===jt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===gC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===bC||i===yC||i===vC||i===EC||i===SC||i===TC||i===xC||i===CC||i===wC||i===RC||i===AC||i===MC||i===NC||i===OC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===bC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===yC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===vC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===EC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===SC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===TC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===xC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===CC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===wC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===RC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===AC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===MC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===NC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===OC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===Wh||i===IC||i===kC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===Wh)return c===jt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===IC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===kC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===s0t||i===DC||i===LC||i===PC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===Wh)return a.COMPRESSED_RED_RGTC1_EXT;if(i===DC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===LC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===PC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===no?s?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[i]!==void 0?n[i]:null}return{convert:r}}class N1t extends Gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class ji extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const O1t={type:"move"};class gg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new ji,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new ji,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ie,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ie),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new ji,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ie,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ie),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const s of e.hand.values())this._getHandJoint(t,s)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,s){let r=null,i=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const f of e.hand.values()){const y=t.getJointPose(f,s),b=this._getHandJoint(d,f);y!==null&&(b.matrix.fromArray(y.transform.matrix),b.matrix.decompose(b.position,b.rotation,b.scale),b.matrixWorldNeedsUpdate=!0,b.jointRadius=y.radius),b.visible=y!==null}const u=d.joints["index-finger-tip"],_=d.joints["thumb-tip"],m=u.position.distanceTo(_.position),h=.02,g=.005;d.inputState.pinching&&m>h+g?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&m<=h-g&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,s),i!==null&&(c.matrix.fromArray(i.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,i.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(i.linearVelocity)):c.hasLinearVelocity=!1,i.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(i.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(r=t.getPose(e.targetRaySpace,s),r===null&&i!==null&&(r=i),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(O1t)))}return a!==null&&(a.visible=r!==null),c!==null&&(c.visible=i!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const s=new ji;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[t.jointName]=s,e.add(s)}return e.joints[t.jointName]}}class I1t extends Ha{constructor(e,t){super();const s=this;let r=null,i=1,o=null,a="local-floor",c=1,d=null,u=null,_=null,m=null,h=null,g=null;const f=t.getContextAttributes();let y=null,b=null;const v=[],E=[],S=new Rt;let R=null;const w=new Gn;w.layers.enable(1),w.viewport=new Wt;const A=new Gn;A.layers.enable(2),A.viewport=new Wt;const I=[w,A],C=new N1t;C.layers.enable(1),C.layers.enable(2);let M=null,G=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getGripSpace()},this.getHand=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getHandSpace()};function V(ce){const Ee=E.indexOf(ce.inputSource);if(Ee===-1)return;const Oe=v[Ee];Oe!==void 0&&(Oe.update(ce.inputSource,ce.frame,d||o),Oe.dispatchEvent({type:ce.type,data:ce.inputSource}))}function ee(){r.removeEventListener("select",V),r.removeEventListener("selectstart",V),r.removeEventListener("selectend",V),r.removeEventListener("squeeze",V),r.removeEventListener("squeezestart",V),r.removeEventListener("squeezeend",V),r.removeEventListener("end",ee),r.removeEventListener("inputsourceschange",O);for(let ce=0;ce=0&&(E[De]=null,v[De].disconnect(Oe))}for(let Ee=0;Ee=E.length){E.push(Oe),De=fe;break}else if(E[fe]===null){E[fe]=Oe,De=fe;break}if(De===-1)break}const Q=v[De];Q&&Q.connect(Oe)}}const H=new ie,q=new ie;function L(ce,Ee,Oe){H.setFromMatrixPosition(Ee.matrixWorld),q.setFromMatrixPosition(Oe.matrixWorld);const De=H.distanceTo(q),Q=Ee.projectionMatrix.elements,fe=Oe.projectionMatrix.elements,_e=Q[14]/(Q[10]-1),Ae=Q[14]/(Q[10]+1),Be=(Q[9]+1)/Q[5],te=(Q[9]-1)/Q[5],U=(Q[8]-1)/Q[0],P=(fe[8]+1)/fe[0],Z=_e*U,de=_e*P,pe=De/(-U+P),he=pe*-U;Ee.matrixWorld.decompose(ce.position,ce.quaternion,ce.scale),ce.translateX(he),ce.translateZ(pe),ce.matrixWorld.compose(ce.position,ce.quaternion,ce.scale),ce.matrixWorldInverse.copy(ce.matrixWorld).invert();const le=_e+pe,Me=Ae+pe,Re=Z-he,ge=de+(De-he),D=Be*Ae/Me*le,N=te*Ae/Me*le;ce.projectionMatrix.makePerspective(Re,ge,D,N,le,Me),ce.projectionMatrixInverse.copy(ce.projectionMatrix).invert()}function W(ce,Ee){Ee===null?ce.matrixWorld.copy(ce.matrix):ce.matrixWorld.multiplyMatrices(Ee.matrixWorld,ce.matrix),ce.matrixWorldInverse.copy(ce.matrixWorld).invert()}this.updateCamera=function(ce){if(r===null)return;C.near=A.near=w.near=ce.near,C.far=A.far=w.far=ce.far,(M!==C.near||G!==C.far)&&(r.updateRenderState({depthNear:C.near,depthFar:C.far}),M=C.near,G=C.far);const Ee=ce.parent,Oe=C.cameras;W(C,Ee);for(let De=0;De0&&(y.alphaTest.value=b.alphaTest);const v=e.get(b).envMap;if(v&&(y.envMap.value=v,y.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,y.reflectivity.value=b.reflectivity,y.ior.value=b.ior,y.refractionRatio.value=b.refractionRatio),b.lightMap){y.lightMap.value=b.lightMap;const E=n._useLegacyLights===!0?Math.PI:1;y.lightMapIntensity.value=b.lightMapIntensity*E,t(b.lightMap,y.lightMapTransform)}b.aoMap&&(y.aoMap.value=b.aoMap,y.aoMapIntensity.value=b.aoMapIntensity,t(b.aoMap,y.aoMapTransform))}function o(y,b){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,b.map&&(y.map.value=b.map,t(b.map,y.mapTransform))}function a(y,b){y.dashSize.value=b.dashSize,y.totalSize.value=b.dashSize+b.gapSize,y.scale.value=b.scale}function c(y,b,v,E){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,y.size.value=b.size*v,y.scale.value=E*.5,b.map&&(y.map.value=b.map,t(b.map,y.uvTransform)),b.alphaMap&&(y.alphaMap.value=b.alphaMap,t(b.alphaMap,y.alphaMapTransform)),b.alphaTest>0&&(y.alphaTest.value=b.alphaTest)}function d(y,b){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,y.rotation.value=b.rotation,b.map&&(y.map.value=b.map,t(b.map,y.mapTransform)),b.alphaMap&&(y.alphaMap.value=b.alphaMap,t(b.alphaMap,y.alphaMapTransform)),b.alphaTest>0&&(y.alphaTest.value=b.alphaTest)}function u(y,b){y.specular.value.copy(b.specular),y.shininess.value=Math.max(b.shininess,1e-4)}function _(y,b){b.gradientMap&&(y.gradientMap.value=b.gradientMap)}function m(y,b){y.metalness.value=b.metalness,b.metalnessMap&&(y.metalnessMap.value=b.metalnessMap,t(b.metalnessMap,y.metalnessMapTransform)),y.roughness.value=b.roughness,b.roughnessMap&&(y.roughnessMap.value=b.roughnessMap,t(b.roughnessMap,y.roughnessMapTransform)),e.get(b).envMap&&(y.envMapIntensity.value=b.envMapIntensity)}function h(y,b,v){y.ior.value=b.ior,b.sheen>0&&(y.sheenColor.value.copy(b.sheenColor).multiplyScalar(b.sheen),y.sheenRoughness.value=b.sheenRoughness,b.sheenColorMap&&(y.sheenColorMap.value=b.sheenColorMap,t(b.sheenColorMap,y.sheenColorMapTransform)),b.sheenRoughnessMap&&(y.sheenRoughnessMap.value=b.sheenRoughnessMap,t(b.sheenRoughnessMap,y.sheenRoughnessMapTransform))),b.clearcoat>0&&(y.clearcoat.value=b.clearcoat,y.clearcoatRoughness.value=b.clearcoatRoughness,b.clearcoatMap&&(y.clearcoatMap.value=b.clearcoatMap,t(b.clearcoatMap,y.clearcoatMapTransform)),b.clearcoatRoughnessMap&&(y.clearcoatRoughnessMap.value=b.clearcoatRoughnessMap,t(b.clearcoatRoughnessMap,y.clearcoatRoughnessMapTransform)),b.clearcoatNormalMap&&(y.clearcoatNormalMap.value=b.clearcoatNormalMap,t(b.clearcoatNormalMap,y.clearcoatNormalMapTransform),y.clearcoatNormalScale.value.copy(b.clearcoatNormalScale),b.side===Zn&&y.clearcoatNormalScale.value.negate())),b.iridescence>0&&(y.iridescence.value=b.iridescence,y.iridescenceIOR.value=b.iridescenceIOR,y.iridescenceThicknessMinimum.value=b.iridescenceThicknessRange[0],y.iridescenceThicknessMaximum.value=b.iridescenceThicknessRange[1],b.iridescenceMap&&(y.iridescenceMap.value=b.iridescenceMap,t(b.iridescenceMap,y.iridescenceMapTransform)),b.iridescenceThicknessMap&&(y.iridescenceThicknessMap.value=b.iridescenceThicknessMap,t(b.iridescenceThicknessMap,y.iridescenceThicknessMapTransform))),b.transmission>0&&(y.transmission.value=b.transmission,y.transmissionSamplerMap.value=v.texture,y.transmissionSamplerSize.value.set(v.width,v.height),b.transmissionMap&&(y.transmissionMap.value=b.transmissionMap,t(b.transmissionMap,y.transmissionMapTransform)),y.thickness.value=b.thickness,b.thicknessMap&&(y.thicknessMap.value=b.thicknessMap,t(b.thicknessMap,y.thicknessMapTransform)),y.attenuationDistance.value=b.attenuationDistance,y.attenuationColor.value.copy(b.attenuationColor)),b.anisotropy>0&&(y.anisotropyVector.value.set(b.anisotropy*Math.cos(b.anisotropyRotation),b.anisotropy*Math.sin(b.anisotropyRotation)),b.anisotropyMap&&(y.anisotropyMap.value=b.anisotropyMap,t(b.anisotropyMap,y.anisotropyMapTransform))),y.specularIntensity.value=b.specularIntensity,y.specularColor.value.copy(b.specularColor),b.specularColorMap&&(y.specularColorMap.value=b.specularColorMap,t(b.specularColorMap,y.specularColorMapTransform)),b.specularIntensityMap&&(y.specularIntensityMap.value=b.specularIntensityMap,t(b.specularIntensityMap,y.specularIntensityMapTransform))}function g(y,b){b.matcap&&(y.matcap.value=b.matcap)}function f(y,b){const v=e.get(b).light;y.referencePosition.value.setFromMatrixPosition(v.matrixWorld),y.nearDistance.value=v.shadow.camera.near,y.farDistance.value=v.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:r}}function D1t(n,e,t,s){let r={},i={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(v,E){const S=E.program;s.uniformBlockBinding(v,S)}function d(v,E){let S=r[v.id];S===void 0&&(g(v),S=u(v),r[v.id]=S,v.addEventListener("dispose",y));const R=E.program;s.updateUBOMapping(v,R);const w=e.render.frame;i[v.id]!==w&&(m(v),i[v.id]=w)}function u(v){const E=_();v.__bindingPointIndex=E;const S=n.createBuffer(),R=v.__size,w=v.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,R,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,E,S),S}function _(){for(let v=0;v0){w=S%R;const V=R-w;w!==0&&V-M.boundary<0&&(S+=R-w,C.__offset=S)}S+=M.storage}return w=S%R,w>0&&(S+=R-w),v.__size=S,v.__cache={},this}function f(v){const E={boundary:0,storage:0};return typeof v=="number"?(E.boundary=4,E.storage=4):v.isVector2?(E.boundary=8,E.storage=8):v.isVector3||v.isColor?(E.boundary=16,E.storage=12):v.isVector4?(E.boundary=16,E.storage=16):v.isMatrix3?(E.boundary=48,E.storage=48):v.isMatrix4?(E.boundary=64,E.storage=64):v.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",v),E}function y(v){const E=v.target;E.removeEventListener("dispose",y);const S=o.indexOf(E.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(r[E.id]),delete r[E.id],delete i[E.id]}function b(){for(const v in r)n.deleteBuffer(r[v]);o=[],r={},i={}}return{bind:c,update:d,dispose:b}}class lO{constructor(e={}){const{canvas:t=O0t(),context:s=null,depth:r=!0,stencil:i=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:_=!1}=e;this.isWebGLRenderer=!0;let m;s!==null?m=s.getContextAttributes().alpha:m=o;const h=new Uint32Array(4),g=new Int32Array(4);let f=null,y=null;const b=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=gi,this.toneMappingExposure=1;const E=this;let S=!1,R=0,w=0,A=null,I=-1,C=null;const M=new Wt,G=new Wt;let V=null;const ee=new pt(0);let O=0,H=t.width,q=t.height,L=1,W=null,se=null;const oe=new Wt(0,0,H,q),ye=new Wt(0,0,H,q);let xe=!1;const ce=new _y;let Ee=!1,Oe=!1,De=null;const Q=new xt,fe=new Rt,_e=new ie,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Be(){return A===null?L:1}let te=s;function U(F,ue){for(let ve=0;ve{function Xe(){if(Se.forEach(function(rt){he.get(rt).currentProgram.isReady()&&Se.delete(rt)}),Se.size===0){be(F);return}setTimeout(Xe,10)}P.get("KHR_parallel_shader_compile")!==null?Xe():setTimeout(Xe,10)})};let Nt=null;function dn(F){Nt&&Nt(F)}function wn(){Rn.stop()}function qt(){Rn.start()}const Rn=new tO;Rn.setAnimationLoop(dn),typeof self<"u"&&Rn.setContext(self),this.setAnimationLoop=function(F){Nt=F,je.setAnimationLoop(F),F===null?Rn.stop():Rn.start()},je.addEventListener("sessionstart",wn),je.addEventListener("sessionend",qt),this.render=function(F,ue){if(ue!==void 0&&ue.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),ue.parent===null&&ue.matrixWorldAutoUpdate===!0&&ue.updateMatrixWorld(),je.enabled===!0&&je.isPresenting===!0&&(je.cameraAutoUpdate===!0&&je.updateCamera(ue),ue=je.getCamera()),F.isScene===!0&&F.onBeforeRender(E,F,ue,A),y=re.get(F,v.length),y.init(),v.push(y),Q.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),ce.setFromProjectionMatrix(Q),Oe=this.localClippingEnabled,Ee=Ce.init(this.clippingPlanes,Oe),f=j.get(F,b.length),f.init(),b.push(f),Os(F,ue,0,E.sortObjects),f.finish(),E.sortObjects===!0&&f.sort(W,se),this.info.render.frame++,Ee===!0&&Ce.beginShadows();const ve=y.state.shadowsArray;if(we.render(ve,F,ue),Ee===!0&&Ce.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(f,F),y.setupLights(E._useLegacyLights),ue.isArrayCamera){const Se=ue.cameras;for(let be=0,Xe=Se.length;be0?y=v[v.length-1]:y=null,b.pop(),b.length>0?f=b[b.length-1]:f=null};function Os(F,ue,ve,Se){if(F.visible===!1)return;if(F.layers.test(ue.layers)){if(F.isGroup)ve=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ue);else if(F.isLight)y.pushLight(F),F.castShadow&&y.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||ce.intersectsSprite(F)){Se&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Q);const rt=N.update(F),ct=F.material;ct.visible&&f.push(F,rt,ct,ve,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||ce.intersectsObject(F))){const rt=N.update(F),ct=F.material;if(Se&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(rt.boundingSphere===null&&rt.computeBoundingSphere(),_e.copy(rt.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Q)),Array.isArray(ct)){const ut=rt.groups;for(let vt=0,mt=ut.length;vt0&&Iy(be,Xe,ue,ve),Se&&de.viewport(M.copy(Se)),be.length>0&&ja(be,ue,ve),Xe.length>0&&ja(Xe,ue,ve),rt.length>0&&ja(rt,ue,ve),de.buffers.depth.setTest(!0),de.buffers.depth.setMask(!0),de.buffers.color.setMask(!0),de.setPolygonOffset(!1)}function Iy(F,ue,ve,Se){if((ve.isScene===!0?ve.overrideMaterial:null)!==null)return;const Xe=Z.isWebGL2;De===null&&(De=new mo(1,1,{generateMipmaps:!0,type:P.has("EXT_color_buffer_half_float")?Ql:bi,minFilter:_o,samples:Xe?4:0})),E.getDrawingBufferSize(fe),Xe?De.setSize(fe.x,fe.y):De.setSize(Eu(fe.x),Eu(fe.y));const rt=E.getRenderTarget();E.setRenderTarget(De),E.getClearColor(ee),O=E.getClearAlpha(),O<1&&E.setClearColor(16777215,.5),E.clear();const ct=E.toneMapping;E.toneMapping=gi,ja(F,ve,Se),le.updateMultisampleRenderTarget(De),le.updateRenderTargetMipmap(De);let ut=!1;for(let vt=0,mt=ue.length;vt0),gt=!!ve.morphAttributes.position,tn=!!ve.morphAttributes.normal,qn=!!ve.morphAttributes.color;let un=gi;Se.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(un=E.toneMapping);const Ws=ve.morphAttributes.position||ve.morphAttributes.normal||ve.morphAttributes.color,Qt=Ws!==void 0?Ws.length:0,St=he.get(Se),hc=y.state.lights;if(Ee===!0&&(Oe===!0||F!==C)){const ts=F===C&&Se.id===I;Ce.setState(Se,F,ts)}let Zt=!1;Se.version===St.__version?(St.needsLights&&St.lightsStateVersion!==hc.state.version||St.outputColorSpace!==ct||be.isBatchedMesh&&St.batching===!1||!be.isBatchedMesh&&St.batching===!0||be.isInstancedMesh&&St.instancing===!1||!be.isInstancedMesh&&St.instancing===!0||be.isSkinnedMesh&&St.skinning===!1||!be.isSkinnedMesh&&St.skinning===!0||be.isInstancedMesh&&St.instancingColor===!0&&be.instanceColor===null||be.isInstancedMesh&&St.instancingColor===!1&&be.instanceColor!==null||St.envMap!==ut||Se.fog===!0&&St.fog!==Xe||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ce.numPlanes||St.numIntersection!==Ce.numIntersection)||St.vertexAlphas!==vt||St.vertexTangents!==mt||St.morphTargets!==gt||St.morphNormals!==tn||St.morphColors!==qn||St.toneMapping!==un||Z.isWebGL2===!0&&St.morphTargetsCount!==Qt)&&(Zt=!0):(Zt=!0,St.__version=Se.version);let zr=St.currentProgram;Zt===!0&&(zr=Qa(Se,ue,be));let xp=!1,Eo=!1,gc=!1;const yn=zr.getUniforms(),Hr=St.uniforms;if(de.useProgram(zr.program)&&(xp=!0,Eo=!0,gc=!0),Se.id!==I&&(I=Se.id,Eo=!0),xp||C!==F){yn.setValue(te,"projectionMatrix",F.projectionMatrix),yn.setValue(te,"viewMatrix",F.matrixWorldInverse);const ts=yn.map.cameraPosition;ts!==void 0&&ts.setValue(te,_e.setFromMatrixPosition(F.matrixWorld)),Z.logarithmicDepthBuffer&&yn.setValue(te,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&yn.setValue(te,"isOrthographic",F.isOrthographicCamera===!0),C!==F&&(C=F,Eo=!0,gc=!0)}if(be.isSkinnedMesh){yn.setOptional(te,be,"bindMatrix"),yn.setOptional(te,be,"bindMatrixInverse");const ts=be.skeleton;ts&&(Z.floatVertexTextures?(ts.boneTexture===null&&ts.computeBoneTexture(),yn.setValue(te,"boneTexture",ts.boneTexture,le)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}be.isBatchedMesh&&(yn.setOptional(te,be,"batchingTexture"),yn.setValue(te,"batchingTexture",be._matricesTexture,le));const bc=ve.morphAttributes;if((bc.position!==void 0||bc.normal!==void 0||bc.color!==void 0&&Z.isWebGL2===!0)&&Ke.update(be,ve,zr),(Eo||St.receiveShadow!==be.receiveShadow)&&(St.receiveShadow=be.receiveShadow,yn.setValue(te,"receiveShadow",be.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Hr.envMap.value=ut,Hr.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),Eo&&(yn.setValue(te,"toneMappingExposure",E.toneMappingExposure),St.needsLights&&Dy(Hr,gc),Xe&&Se.fog===!0&&me.refreshFogUniforms(Hr,Xe),me.refreshMaterialUniforms(Hr,Se,L,q,De),Dd.upload(te,Sp(St),Hr,le)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(Dd.upload(te,Sp(St),Hr,le),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&yn.setValue(te,"center",be.center),yn.setValue(te,"modelViewMatrix",be.modelViewMatrix),yn.setValue(te,"normalMatrix",be.normalMatrix),yn.setValue(te,"modelMatrix",be.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const ts=Se.uniformsGroups;for(let yc=0,Py=ts.length;yc0&&le.useMultisampledRTT(F)===!1?be=he.get(F).__webglMultisampledFramebuffer:Array.isArray(mt)?be=mt[ve]:be=mt,M.copy(F.viewport),G.copy(F.scissor),V=F.scissorTest}else M.copy(oe).multiplyScalar(L).floor(),G.copy(ye).multiplyScalar(L).floor(),V=xe;if(de.bindFramebuffer(te.FRAMEBUFFER,be)&&Z.drawBuffers&&Se&&de.drawBuffers(F,be),de.viewport(M),de.scissor(G),de.setScissorTest(V),Xe){const ut=he.get(F.texture);te.framebufferTexture2D(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,te.TEXTURE_CUBE_MAP_POSITIVE_X+ue,ut.__webglTexture,ve)}else if(rt){const ut=he.get(F.texture),vt=ue||0;te.framebufferTextureLayer(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,ut.__webglTexture,ve||0,vt)}I=-1},this.readRenderTargetPixels=function(F,ue,ve,Se,be,Xe,rt){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ct=he.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&rt!==void 0&&(ct=ct[rt]),ct){de.bindFramebuffer(te.FRAMEBUFFER,ct);try{const ut=F.texture,vt=ut.format,mt=ut.type;if(vt!==bs&&Mt.convert(vt)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=mt===Ql&&(P.has("EXT_color_buffer_half_float")||Z.isWebGL2&&P.has("EXT_color_buffer_float"));if(mt!==bi&&Mt.convert(mt)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_TYPE)&&!(mt===Mr&&(Z.isWebGL2||P.has("OES_texture_float")||P.has("WEBGL_color_buffer_float")))&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ue>=0&&ue<=F.width-Se&&ve>=0&&ve<=F.height-be&&te.readPixels(ue,ve,Se,be,Mt.convert(vt),Mt.convert(mt),Xe)}finally{const ut=A!==null?he.get(A).__webglFramebuffer:null;de.bindFramebuffer(te.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,ue,ve=0){const Se=Math.pow(2,-ve),be=Math.floor(ue.image.width*Se),Xe=Math.floor(ue.image.height*Se);le.setTexture2D(ue,0),te.copyTexSubImage2D(te.TEXTURE_2D,ve,0,0,F.x,F.y,be,Xe),de.unbindTexture()},this.copyTextureToTexture=function(F,ue,ve,Se=0){const be=ue.image.width,Xe=ue.image.height,rt=Mt.convert(ve.format),ct=Mt.convert(ve.type);le.setTexture2D(ve,0),te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,ve.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ve.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,ve.unpackAlignment),ue.isDataTexture?te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,be,Xe,rt,ct,ue.image.data):ue.isCompressedTexture?te.compressedTexSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,ue.mipmaps[0].width,ue.mipmaps[0].height,rt,ue.mipmaps[0].data):te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,rt,ct,ue.image),Se===0&&ve.generateMipmaps&&te.generateMipmap(te.TEXTURE_2D),de.unbindTexture()},this.copyTextureToTexture3D=function(F,ue,ve,Se,be=0){if(E.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Xe=F.max.x-F.min.x+1,rt=F.max.y-F.min.y+1,ct=F.max.z-F.min.z+1,ut=Mt.convert(Se.format),vt=Mt.convert(Se.type);let mt;if(Se.isData3DTexture)le.setTexture3D(Se,0),mt=te.TEXTURE_3D;else if(Se.isDataArrayTexture)le.setTexture2DArray(Se,0),mt=te.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Se.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Se.unpackAlignment);const gt=te.getParameter(te.UNPACK_ROW_LENGTH),tn=te.getParameter(te.UNPACK_IMAGE_HEIGHT),qn=te.getParameter(te.UNPACK_SKIP_PIXELS),un=te.getParameter(te.UNPACK_SKIP_ROWS),Ws=te.getParameter(te.UNPACK_SKIP_IMAGES),Qt=ve.isCompressedTexture?ve.mipmaps[0]:ve.image;te.pixelStorei(te.UNPACK_ROW_LENGTH,Qt.width),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,Qt.height),te.pixelStorei(te.UNPACK_SKIP_PIXELS,F.min.x),te.pixelStorei(te.UNPACK_SKIP_ROWS,F.min.y),te.pixelStorei(te.UNPACK_SKIP_IMAGES,F.min.z),ve.isDataTexture||ve.isData3DTexture?te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,vt,Qt.data):ve.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),te.compressedTexSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,Qt.data)):te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,vt,Qt),te.pixelStorei(te.UNPACK_ROW_LENGTH,gt),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,tn),te.pixelStorei(te.UNPACK_SKIP_PIXELS,qn),te.pixelStorei(te.UNPACK_SKIP_ROWS,un),te.pixelStorei(te.UNPACK_SKIP_IMAGES,Ws),be===0&&Se.generateMipmaps&&te.generateMipmap(mt),de.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?le.setTextureCube(F,0):F.isData3DTexture?le.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?le.setTexture2DArray(F,0):le.setTexture2D(F,0),de.unbindTexture()},this.resetState=function(){R=0,w=0,A=null,de.reset(),tt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Nr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===py?"display-p3":"srgb",t.unpackColorSpace=Pt.workingColorSpace===fp?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?ro:zN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===ro?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class L1t extends lO{}L1t.prototype.isWebGL1Renderer=!0;class P1t extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class F1t{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=bb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Gs()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,s){e*=this.stride,s*=t.stride;for(let r=0,i=this.stride;rc)continue;m.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(m);Ie.far||t.push({distance:I,point:_.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}else{const b=Math.max(0,o.start),v=Math.min(y.count,o.start+o.count);for(let E=b,S=v-1;Ec)continue;m.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(m);we.far||t.push({distance:w,point:_.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,s=Object.keys(t);if(s.length>0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;ir.far)return;i.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class Ey extends Vs{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=uy,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vr extends Ey{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class zw extends Vs{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=uy,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=cy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function hd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function W1t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K1t(n){function e(r,i){return n[r]-n[i]}const t=n.length,s=new Array(t);for(let r=0;r!==t;++r)s[r]=r;return s.sort(e),s}function Hw(n,e,t){const s=n.length,r=new n.constructor(s);for(let i=0,o=0;o!==s;++i){const a=t[i]*e;for(let c=0;c!==e;++c)r[o++]=n[a+c]}return r}function pO(n,e,t,s){let r=1,i=n[0];for(;i!==void 0&&i[s]===void 0;)i=n[r++];if(i===void 0)return;let o=i[s];if(o!==void 0)if(Array.isArray(o))do o=i[s],o!==void 0&&(e.push(i.time),t.push.apply(t,o)),i=n[r++];while(i!==void 0);else if(o.toArray!==void 0)do o=i[s],o!==void 0&&(e.push(i.time),o.toArray(t,t.length)),i=n[r++];while(i!==void 0);else do o=i[s],o!==void 0&&(e.push(i.time),t.push(o)),i=n[r++];while(i!==void 0)}class fc{constructor(e,t,s,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new t.constructor(s),this.sampleValues=t,this.valueSize=s,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let s=this._cachedIndex,r=t[s],i=t[s-1];e:{t:{let o;n:{s:if(!(e=i)){const a=t[1];e=i)break t}o=s,s=0;break n}break e}for(;s>>1;et;)--o;if(++o,i!==0||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const a=this.getValueSize();this.times=s.slice(i,o),this.values=this.values.slice(i*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const s=this.times,r=this.values,i=s.length;i===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==i;a++){const c=s[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),e=!1;break}if(o!==null&&o>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,o),e=!1;break}o=c}if(r!==void 0&&W1t(r))for(let a=0,c=r.length;a!==c;++a){const d=r[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),s=this.getValueSize(),r=this.getInterpolation()===Kh,i=e.length-1;let o=1;for(let a=1;a0){e[o]=e[i];for(let a=i*s,c=o*s,d=0;d!==s;++d)t[c+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*s)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),s=this.constructor,r=new s(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}mr.prototype.TimeBufferType=Float32Array;mr.prototype.ValueBufferType=Float32Array;mr.prototype.DefaultInterpolation=Ta;class Ya extends mr{}Ya.prototype.ValueTypeName="bool";Ya.prototype.ValueBufferType=Array;Ya.prototype.DefaultInterpolation=Xl;Ya.prototype.InterpolantFactoryMethodLinear=void 0;Ya.prototype.InterpolantFactoryMethodSmooth=void 0;class fO extends mr{}fO.prototype.ValueTypeName="color";class wa extends mr{}wa.prototype.ValueTypeName="number";class Z1t extends fc{constructor(e,t,s,r){super(e,t,s,r)}interpolate_(e,t,s,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(s-t)/(r-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Mi.slerpFlat(i,0,o,d-a,o,d,c);return i}}class go extends mr{InterpolantFactoryMethodLinear(e){return new Z1t(this.times,this.values,this.getValueSize(),e)}}go.prototype.ValueTypeName="quaternion";go.prototype.DefaultInterpolation=Ta;go.prototype.InterpolantFactoryMethodSmooth=void 0;class $a extends mr{}$a.prototype.ValueTypeName="string";$a.prototype.ValueBufferType=Array;$a.prototype.DefaultInterpolation=Xl;$a.prototype.InterpolantFactoryMethodLinear=void 0;$a.prototype.InterpolantFactoryMethodSmooth=void 0;class Ra extends mr{}Ra.prototype.ValueTypeName="vector";class J1t{constructor(e,t=-1,s,r=r0t){this.name=e,this.tracks=s,this.duration=t,this.blendMode=r,this.uuid=Gs(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],s=e.tracks,r=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)t.push(tTt(s[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],s=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=s.length;i!==o;++i)t.push(mr.toJSON(s[i]));return r}static CreateFromMorphTargetSequence(e,t,s,r){const i=t.length,o=[];for(let a=0;a1){const _=u[1];let m=r[_];m||(r[_]=m=[]),m.push(d)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,s));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const s=function(_,m,h,g,f){if(h.length!==0){const y=[],b=[];pO(h,y,b,g),y.length!==0&&f.push(new _(m,y,b))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let _=0;_{t&&t(i),this.manager.itemEnd(e)},0),i;if(Tr[e]!==void 0){Tr[e].push({onLoad:t,onProgress:s,onError:r});return}Tr[e]=[],Tr[e].push({onLoad:t,onProgress:s,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,c=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=Tr[e],_=d.body.getReader(),m=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),h=m?parseInt(m):0,g=h!==0;let f=0;const y=new ReadableStream({start(b){v();function v(){_.read().then(({done:E,value:S})=>{if(E)b.close();else{f+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:g,loaded:f,total:h});for(let w=0,A=u.length;w{switch(c){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const _=/charset="?([^;"\s]*)"?/i.exec(a),m=_&&_[1]?_[1].toLowerCase():void 0,h=new TextDecoder(m);return d.arrayBuffer().then(g=>h.decode(g))}}}).then(d=>{Aa.add(e,d);const u=Tr[e];delete Tr[e];for(let _=0,m=u.length;_{const u=Tr[e];if(u===void 0)throw this.manager.itemError(e),d;delete Tr[e];for(let _=0,m=u.length;_{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class iTt extends Wa{constructor(e){super(e)}load(e,t,s,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a=Zl("img");function c(){u(),Aa.add(e,this),t&&t(this),i.manager.itemEnd(e)}function d(_){u(),r&&r(_),i.manager.itemError(e),i.manager.itemEnd(e)}function u(){a.removeEventListener("load",c,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",c,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class mO extends Wa{constructor(e){super(e)}load(e,t,s,r){const i=new xn,o=new iTt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){i.image=a,i.needsUpdate=!0,t!==void 0&&t(i)},s,r),i}}class gp extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Eg=new xt,qw=new ie,Yw=new ie;class Sy{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new _y,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new Wt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,s=this.matrix;qw.setFromMatrixPosition(e.matrixWorld),t.position.copy(qw),Yw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Yw),t.updateMatrixWorld(),Eg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Eg),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply(Eg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class oTt extends Sy{constructor(){super(new Gn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,s=xa*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;(s!==t.fov||r!==t.aspect||i!==t.far)&&(t.fov=s,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class aTt extends gp{constructor(e,t,s=0,r=Math.PI/3,i=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=s,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new oTt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const $w=new xt,pl=new ie,Sg=new ie;class lTt extends Sy{constructor(){super(new Gn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new Wt(2,1,1,1),new Wt(0,1,1,1),new Wt(3,1,1,1),new Wt(1,1,1,1),new Wt(3,0,1,1),new Wt(1,0,1,1)],this._cubeDirections=[new ie(1,0,0),new ie(-1,0,0),new ie(0,0,1),new ie(0,0,-1),new ie(0,1,0),new ie(0,-1,0)],this._cubeUps=[new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,0,1),new ie(0,0,-1)]}updateMatrices(e,t=0){const s=this.camera,r=this.matrix,i=e.distance||s.far;i!==s.far&&(s.far=i,s.updateProjectionMatrix()),pl.setFromMatrixPosition(e.matrixWorld),s.position.copy(pl),Sg.copy(s.position),Sg.add(this._cubeDirections[t]),s.up.copy(this._cubeUps[t]),s.lookAt(Sg),s.updateMatrixWorld(),r.makeTranslation(-pl.x,-pl.y,-pl.z),$w.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix($w)}}class cTt extends gp{constructor(e,t,s=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=r,this.shadow=new lTt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class dTt extends Sy{constructor(){super(new hy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class hO extends gp{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new dTt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class uTt extends gp{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Dl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let s=0,r=e.length;s"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,s,r){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(c){Aa.add(e,c),t&&t(c),i.manager.itemEnd(e)}).catch(function(c){r&&r(c),i.manager.itemError(e),i.manager.itemEnd(e)}),i.manager.itemStart(e)}}const Ty="\\[\\]\\.:\\/",fTt=new RegExp("["+Ty+"]","g"),xy="[^"+Ty+"]",_Tt="[^"+Ty.replace("\\.","")+"]",mTt=/((?:WC+[\/:])*)/.source.replace("WC",xy),hTt=/(WCOD+)?/.source.replace("WCOD",_Tt),gTt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",xy),bTt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",xy),yTt=new RegExp("^"+mTt+hTt+gTt+bTt+"$"),vTt=["material","materials","bones","map"];class ETt{constructor(e,t,s){const r=s||Ut.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const s=this._targetGroup.nCachedObjects_,r=this._bindings[s];r!==void 0&&r.getValue(e,t)}setValue(e,t){const s=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=s.length;r!==i;++r)s[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].unbind()}}class Ut{constructor(e,t,s){this.path=t,this.parsedPath=s||Ut.parseTrackName(t),this.node=Ut.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,s){return e&&e.isAnimationObjectGroup?new Ut.Composite(e,t,s):new Ut(e,t,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(fTt,"")}static parseTrackName(e){const t=yTt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const s={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=s.nodeName&&s.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){const i=s.nodeName.substring(r+1);vTt.indexOf(i)!==-1&&(s.nodeName=s.nodeName.substring(0,r),s.objectName=i)}if(s.propertyName===null||s.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return s}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const s=e.skeleton.getBoneByName(t);if(s!==void 0)return s}if(e.children){const s=function(i){for(let o=0;o=2.0 are supported."));return}const d=new ext(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[_]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+_+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(s,r)}parseAsync(e,t){const s=this;return new Promise(function(r,i){s.parse(e,t,r,i)})}}function TTt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const wt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class xTt{constructor(e){this.parser=e,this.name=wt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let s=0,r=t.length;s=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,o)}}class FTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return s.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class UTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return s.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class BTt{constructor(e){this.name=wt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,s=t.bufferViews[e];if(s.extensions&&s.extensions[this.name]){const r=s.extensions[this.name],i=this.parser.getDependency("buffer",r.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(a){const c=r.byteOffset||0,d=r.byteLength||0,u=r.count,_=r.byteStride,m=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,_,m,r.mode,r.filter).then(function(h){return h.buffer}):o.ready.then(function(){const h=new ArrayBuffer(u*_);return o.decodeGltfBuffer(new Uint8Array(h),u,_,m,r.mode,r.filter),h})})}else return null}}class GTt{constructor(e){this.name=wt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,s=t.nodes[e];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const r=t.meshes[s.mesh];for(const d of r.primitives)if(d.mode!==ms.TRIANGLES&&d.mode!==ms.TRIANGLE_STRIP&&d.mode!==ms.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=s.extensions[this.name].attributes,a=[],c={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(c[d]=u,c[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),_=u.isGroup?u.children:[u],m=d[0].count,h=[];for(const g of _){const f=new xt,y=new ie,b=new Mi,v=new ie(1,1,1),E=new H1t(g.geometry,g.material,m);for(let S=0;S0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const JTt=new xt;class ext{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new TTt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,r=!1,i=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,r=navigator.userAgent.indexOf("Firefox")>-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||r&&i<98?this.textureLoader=new mO(this.options.manager):this.textureLoader=new pTt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new _O(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const s=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(o){const a={scene:o[0][r.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:r.asset,parser:s,userData:{}};return Ui(i,a,r),di(a,r),Promise.all(s._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],s=this.json.meshes||[];for(let r=0,i=t.length;r{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())i(u,a.children[d])};return i(s,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let s=0;s=2&&y.setY(C,w[A*c+1]),c>=3&&y.setZ(C,w[A*c+2]),c>=4&&y.setW(C,w[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return y})}loadTexture(e){const t=this.json,s=this.options,i=t.textures[e].source,o=t.images[i];let a=this.textureLoader;if(o.uri){const c=s.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,i,a)}loadTextureImage(e,t,s){const r=this,i=this.json,o=i.textures[e],a=i.images[t],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(t,s).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const m=(i.samplers||{})[o.sampler]||{};return u.magFilter=jw[m.magFilter]||Wn,u.minFilter=jw[m.minFilter]||_o,u.wrapS=Qw[m.wrapS]||Ea,u.wrapT=Qw[m.wrapT]||Ea,r.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,t){const s=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(_=>_.clone());const o=r.images[e],a=self.URL||self.webkitURL;let c=o.uri||"",d=!1;if(o.bufferView!==void 0)c=s.getDependency("bufferView",o.bufferView).then(function(_){d=!0;const m=new Blob([_],{type:o.mimeType});return c=a.createObjectURL(m),c});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(_){return new Promise(function(m,h){let g=m;t.isImageBitmapLoader===!0&&(g=function(f){const y=new xn(f);y.needsUpdate=!0,m(y)}),t.load(Dl.resolveURL(_,i.path),g,void 0,h)})}).then(function(_){return d===!0&&a.revokeObjectURL(c),_.userData.mimeType=o.mimeType||ZTt(o.uri),_}).catch(function(_){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),_});return this.sourceCache[e]=u,u}assignTexture(e,t,s,r){const i=this;return this.getDependency("texture",s.index).then(function(o){if(!o)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(o=o.clone(),o.channel=s.texCoord),i.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=i.associations.get(o);o=i.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),i.associations.set(o,c)}}return r!==void 0&&(o.colorSpace=r),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let s=e.material;const r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new uO,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,c.sizeAttenuation=!1,this.cache.add(a,c)),s=c}else if(e.isLine){const a="LineBasicMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new dO,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,this.cache.add(a,c)),s=c}if(r||i||o){let a="ClonedMaterial:"+s.uuid+":";r&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=s.clone(),i&&(c.vertexColors=!0),o&&(c.flatShading=!0),r&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(a,c),this.associations.set(c,this.associations.get(s))),s=c}e.material=s}getMaterialType(){return Ey}loadMaterial(e){const t=this,s=this.json,r=this.extensions,i=s.materials[e];let o;const a={},c=i.extensions||{},d=[];if(c[wt.KHR_MATERIALS_UNLIT]){const _=r[wt.KHR_MATERIALS_UNLIT];o=_.getMaterialType(),d.push(_.extendParams(a,i,t))}else{const _=i.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(_.baseColorFactor)){const m=_.baseColorFactor;a.color.setRGB(m[0],m[1],m[2],Cn),a.opacity=m[3]}_.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",_.baseColorTexture,nn)),a.metalness=_.metallicFactor!==void 0?_.metallicFactor:1,a.roughness=_.roughnessFactor!==void 0?_.roughnessFactor:1,_.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",_.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",_.metallicRoughnessTexture))),o=this._invokeOne(function(m){return m.getMaterialType&&m.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(m){return m.extendMaterialParams&&m.extendMaterialParams(e,a)})))}i.doubleSided===!0&&(a.side=Js);const u=i.alphaMode||xg.OPAQUE;if(u===xg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===xg.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new Rt(1,1),i.normalTexture.scale!==void 0)){const _=i.normalTexture.scale;a.normalScale.set(_,_)}if(i.occlusionTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&o!==_i){const _=i.emissiveFactor;a.emissive=new pt().setRGB(_[0],_[1],_[2],Cn)}return i.emissiveTexture!==void 0&&o!==_i&&d.push(t.assignTexture(a,"emissiveMap",i.emissiveTexture,nn)),Promise.all(d).then(function(){const _=new o(a);return i.name&&(_.name=i.name),di(_,i),t.associations.set(_,{materials:e}),i.extensions&&Ui(r,_,i),_})}createUniqueName(e){const t=Ut.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,s=this.extensions,r=this.primitiveCache;function i(a){return s[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(c){return Xw(c,a,t)})}const o=[];for(let a=0,c=e.length;a0&&QTt(b,i),b.name=t.createUniqueName(i.name||"mesh_"+e),di(b,i),y.extensions&&Ui(r,b,y),t.assignFinalMaterial(b),_.push(b)}for(let h=0,g=_.length;h1?u=new ji:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let _=0,m=d.length;_{const _=new Map;for(const[m,h]of r.associations)(m instanceof Vs||m instanceof xn)&&_.set(m,h);return u.traverse(m=>{const h=r.associations.get(m);h!=null&&_.set(m,h)}),_};return r.associations=d(i),i})}_createAnimationTracks(e,t,s,r,i){const o=[],a=e.name?e.name:e.uuid,c=[];Jr[i.path]===Jr.weights?e.traverse(function(m){m.morphTargetInfluences&&c.push(m.name?m.name:m.uuid)}):c.push(a);let d;switch(Jr[i.path]){case Jr.weights:d=wa;break;case Jr.rotation:d=go;break;case Jr.position:case Jr.scale:d=Ra;break;default:switch(s.itemSize){case 1:d=wa;break;case 2:case 3:default:d=Ra;break}break}const u=r.interpolation!==void 0?WTt[r.interpolation]:Ta,_=this._getArrayFromAccessor(s);for(let m=0,h=c.length;m{Ve.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,Ye.emit("stop_webcam_video_stream"),Ue(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},sxt=["src"],rxt=["src"],ixt={class:"controls"},oxt={key:2};function axt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isVideoActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,sxt)):B("",!0),r.isVideoActive&&r.imageDataUrl==null?(T(),x("p",{key:1,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,rxt)):B("",!0),l("div",ixt,[r.isVideoActive?B("",!0):(T(),x("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>i.startVideoStream&&i.startVideoStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"video"},null,-1)]))),r.isVideoActive?(T(),x("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>i.stopVideoStream&&i.stopVideoStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"video"},null,-1)]))):B("",!0),r.isVideoActive?(T(),x("span",oxt,"FPS: "+Y(r.frameRate),1)):B("",!0)])],36)}const lxt=st(nxt,[["render",axt]]),cxt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){Ye.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ue(()=>{Ve.replace()})},stopAudioStream(){Ye.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ue(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},dxt=["src"],uxt={class:"controls"};function pxt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isAudioActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,dxt)):B("",!0),l("div",uxt,[r.isAudioActive?B("",!0):(T(),x("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>i.startAudioStream&&i.startAudioStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"mic"},null,-1)]))),r.isAudioActive?(T(),x("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>i.stopAudioStream&&i.stopAudioStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"mic"},null,-1)]))):B("",!0)])],36)}const fxt=st(cxt,[["render",pxt]]),_xt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:lxt,AudioFrame:fxt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ue(()=>{Ve.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new P1t,this.camera=new Gn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new lO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new yi,e=new zw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube);const t=new uTt(4210752),s=new hO(16777215,.5);s.position.set(0,1,0),this.scene.add(t),this.scene.add(s),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new STt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new yi,t=new mO().load(n),s=new _i({map:t});this.cube=new Vn(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new yi,e=new zw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},mxt={ref:"webglContainer"},hxt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},gxt={key:0,class:"text-center"},bxt={key:1,class:"text-center"},yxt={class:"floating-frame2"},vxt=["innerHTML"];function Ext(n,e,t,s,r,i){const o=Je("VideoFrame"),a=Je("AudioFrame");return T(),x(Fe,null,[l("div",mxt,null,512),l("div",hxt,[!r.activePersonality||!r.activePersonality.scene_path?(T(),x("div",gxt," Personality does not have a 3d avatar. ")):B("",!0),!r.activePersonality||!r.activePersonality.avatar||r.activePersonality.avatar===""?(T(),x("div",bxt," Personality does not have an avatar. ")):B("",!0),l("div",yxt,[l("div",{innerHTML:n.htmlContent},null,8,vxt)])]),z(o,{ref:"video_frame"},null,512),z(a,{ref:"audio_frame"},null,512)],64)}const Sxt=st(_xt,[["render",Ext]]);let gd;const Txt=new Uint8Array(16);function xxt(){if(!gd&&(gd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gd(Txt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function Cxt(n,e=0){return vn[n[e+0]]+vn[n[e+1]]+vn[n[e+2]]+vn[n[e+3]]+"-"+vn[n[e+4]]+vn[n[e+5]]+"-"+vn[n[e+6]]+vn[n[e+7]]+"-"+vn[n[e+8]]+vn[n[e+9]]+"-"+vn[n[e+10]]+vn[n[e+11]]+vn[n[e+12]]+vn[n[e+13]]+vn[n[e+14]]+vn[n[e+15]]}const wxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zw={randomUUID:wxt};function Dr(n,e,t){if(Zw.randomUUID&&!e&&!n)return Zw.randomUUID();n=n||{};const s=n.random||(n.rng||xxt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Cxt(s)}class io{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function w1t(n,e,t){let s=new _y;const r=new Rt,i=new Rt,o=new Wt,a=new S1t({depthPacking:a0t}),c=new T1t,d={},u=t.maxTextureSize,_={[Fr]:Zn,[Zn]:Fr,[er]:er},m=new ho({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:x1t,fragmentShader:C1t}),h=m.clone();h.defines.HORIZONTAL_PASS=1;const g=new _r;g.setAttribute("position",new zn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const f=new Vn(g,m),y=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=ON;let b=this.type;this.render=function(R,w,A){if(y.enabled===!1||y.autoUpdate===!1&&y.needsUpdate===!1||R.length===0)return;const I=n.getRenderTarget(),C=n.getActiveCubeFace(),M=n.getActiveMipmapLevel(),G=n.state;G.setBlending(hi),G.buffers.color.setClear(1,1,1,1),G.buffers.depth.setTest(!0),G.setScissorTest(!1);const V=b!==Cr&&this.type===Cr,ee=b===Cr&&this.type!==Cr;for(let O=0,H=R.length;Ou||r.y>u)&&(r.x>u&&(i.x=Math.floor(u/W.x),r.x=i.x*W.x,L.mapSize.x=i.x),r.y>u&&(i.y=Math.floor(u/W.y),r.y=i.y*W.y,L.mapSize.y=i.y)),L.map===null||V===!0||ee===!0){const oe=this.type!==Cr?{minFilter:gn,magFilter:gn}:{};L.map!==null&&L.map.dispose(),L.map=new mo(r.x,r.y,oe),L.map.texture.name=q.name+".shadowMap",L.camera.updateProjectionMatrix()}n.setRenderTarget(L.map),n.clear();const se=L.getViewportCount();for(let oe=0;oe0||w.map&&w.alphaTest>0){const G=C.uuid,V=w.uuid;let ee=d[G];ee===void 0&&(ee={},d[G]=ee);let O=ee[V];O===void 0&&(O=C.clone(),ee[V]=O),C=O}if(C.visible=w.visible,C.wireframe=w.wireframe,I===Cr?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:_[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,A.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const G=n.properties.get(C);G.light=A}return C}function S(R,w,A,I,C){if(R.visible===!1)return;if(R.layers.test(w.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&C===Cr)&&(!R.frustumCulled||s.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const V=e.update(R),ee=R.material;if(Array.isArray(ee)){const O=V.groups;for(let H=0,q=O.length;H=1):oe.indexOf("OpenGL ES")!==-1&&(se=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),W=se>=2);let ye=null,xe={};const ce=n.getParameter(n.SCISSOR_BOX),Ee=n.getParameter(n.VIEWPORT),Oe=new Wt().fromArray(ce),De=new Wt().fromArray(Ee);function Q(J,Qe,Ge,Ne){const qe=new Uint8Array(4),dt=n.createTexture();n.bindTexture(J,dt),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),g=new WeakMap;let f;const y=new WeakMap;let b=!1;try{b=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(D,N){return b?new OffscreenCanvas(D,N):Zl("canvas")}function E(D,N,K,me){let j=1;if((D.width>me||D.height>me)&&(j=me/Math.max(D.width,D.height)),j<1||N===!0)if(typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&D instanceof ImageBitmap){const re=N?Eu:Math.floor,Ce=re(j*D.width),we=re(j*D.height);f===void 0&&(f=v(Ce,we));const ke=K?v(Ce,we):f;return ke.width=Ce,ke.height=we,ke.getContext("2d").drawImage(D,0,0,Ce,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+D.width+"x"+D.height+") to ("+Ce+"x"+we+")."),ke}else return"data"in D&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+D.width+"x"+D.height+")."),D;return D}function S(D){return vb(D.width)&&vb(D.height)}function R(D){return a?!1:D.wrapS!==gs||D.wrapT!==gs||D.minFilter!==gn&&D.minFilter!==Wn}function w(D,N){return D.generateMipmaps&&N&&D.minFilter!==gn&&D.minFilter!==Wn}function A(D){n.generateMipmap(D)}function I(D,N,K,me,j=!1){if(a===!1)return N;if(D!==null){if(n[D]!==void 0)return n[D];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+D+"'")}let re=N;if(N===n.RED&&(K===n.FLOAT&&(re=n.R32F),K===n.HALF_FLOAT&&(re=n.R16F),K===n.UNSIGNED_BYTE&&(re=n.R8)),N===n.RED_INTEGER&&(K===n.UNSIGNED_BYTE&&(re=n.R8UI),K===n.UNSIGNED_SHORT&&(re=n.R16UI),K===n.UNSIGNED_INT&&(re=n.R32UI),K===n.BYTE&&(re=n.R8I),K===n.SHORT&&(re=n.R16I),K===n.INT&&(re=n.R32I)),N===n.RG&&(K===n.FLOAT&&(re=n.RG32F),K===n.HALF_FLOAT&&(re=n.RG16F),K===n.UNSIGNED_BYTE&&(re=n.RG8)),N===n.RGBA){const Ce=j?gu:Pt.getTransfer(me);K===n.FLOAT&&(re=n.RGBA32F),K===n.HALF_FLOAT&&(re=n.RGBA16F),K===n.UNSIGNED_BYTE&&(re=Ce===jt?n.SRGB8_ALPHA8:n.RGBA8),K===n.UNSIGNED_SHORT_4_4_4_4&&(re=n.RGBA4),K===n.UNSIGNED_SHORT_5_5_5_1&&(re=n.RGB5_A1)}return(re===n.R16F||re===n.R32F||re===n.RG16F||re===n.RG32F||re===n.RGBA16F||re===n.RGBA32F)&&e.get("EXT_color_buffer_float"),re}function C(D,N,K){return w(D,K)===!0||D.isFramebufferTexture&&D.minFilter!==gn&&D.minFilter!==Wn?Math.log2(Math.max(N.width,N.height))+1:D.mipmaps!==void 0&&D.mipmaps.length>0?D.mipmaps.length:D.isCompressedTexture&&Array.isArray(D.image)?N.mipmaps.length:1}function M(D){return D===gn||D===hb||D===kd?n.NEAREST:n.LINEAR}function G(D){const N=D.target;N.removeEventListener("dispose",G),ee(N),N.isVideoTexture&&g.delete(N)}function V(D){const N=D.target;N.removeEventListener("dispose",V),H(N)}function ee(D){const N=s.get(D);if(N.__webglInit===void 0)return;const K=D.source,me=y.get(K);if(me){const j=me[N.__cacheKey];j.usedTimes--,j.usedTimes===0&&O(D),Object.keys(me).length===0&&y.delete(K)}s.remove(D)}function O(D){const N=s.get(D);n.deleteTexture(N.__webglTexture);const K=D.source,me=y.get(K);delete me[N.__cacheKey],o.memory.textures--}function H(D){const N=D.texture,K=s.get(D),me=s.get(N);if(me.__webglTexture!==void 0&&(n.deleteTexture(me.__webglTexture),o.memory.textures--),D.depthTexture&&D.depthTexture.dispose(),D.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(K.__webglFramebuffer[j]))for(let re=0;re=c&&console.warn("THREE.WebGLTextures: Trying to use "+D+" texture units while this GPU supports only "+c),q+=1,D}function se(D){const N=[];return N.push(D.wrapS),N.push(D.wrapT),N.push(D.wrapR||0),N.push(D.magFilter),N.push(D.minFilter),N.push(D.anisotropy),N.push(D.internalFormat),N.push(D.format),N.push(D.type),N.push(D.generateMipmaps),N.push(D.premultiplyAlpha),N.push(D.flipY),N.push(D.unpackAlignment),N.push(D.colorSpace),N.join()}function oe(D,N){const K=s.get(D);if(D.isVideoTexture&&Re(D),D.isRenderTargetTexture===!1&&D.version>0&&K.__version!==D.version){const me=D.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(K,D,N);return}}t.bindTexture(n.TEXTURE_2D,K.__webglTexture,n.TEXTURE0+N)}function ye(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,K.__webglTexture,n.TEXTURE0+N)}function xe(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_3D,K.__webglTexture,n.TEXTURE0+N)}function ce(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){Ae(K,D,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,K.__webglTexture,n.TEXTURE0+N)}const Ee={[Ea]:n.REPEAT,[gs]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},Oe={[gn]:n.NEAREST,[hb]:n.NEAREST_MIPMAP_NEAREST,[kd]:n.NEAREST_MIPMAP_LINEAR,[Wn]:n.LINEAR,[kN]:n.LINEAR_MIPMAP_NEAREST,[_o]:n.LINEAR_MIPMAP_LINEAR},De={[c0t]:n.NEVER,[m0t]:n.ALWAYS,[d0t]:n.LESS,[HN]:n.LEQUAL,[u0t]:n.EQUAL,[_0t]:n.GEQUAL,[p0t]:n.GREATER,[f0t]:n.NOTEQUAL};function Q(D,N,K){if(K?(n.texParameteri(D,n.TEXTURE_WRAP_S,Ee[N.wrapS]),n.texParameteri(D,n.TEXTURE_WRAP_T,Ee[N.wrapT]),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,Ee[N.wrapR]),n.texParameteri(D,n.TEXTURE_MAG_FILTER,Oe[N.magFilter]),n.texParameteri(D,n.TEXTURE_MIN_FILTER,Oe[N.minFilter])):(n.texParameteri(D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==gs||N.wrapT!==gs)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(D,n.TEXTURE_MAG_FILTER,M(N.magFilter)),n.texParameteri(D,n.TEXTURE_MIN_FILTER,M(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Wn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(D,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(D,n.TEXTURE_COMPARE_FUNC,De[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const me=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==kd&&N.minFilter!==_o||N.type===Mr&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Ql&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||s.get(N).__currentAnisotropy)&&(n.texParameterf(D,me.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,r.getMaxAnisotropy())),s.get(N).__currentAnisotropy=N.anisotropy)}}function fe(D,N){let K=!1;D.__webglInit===void 0&&(D.__webglInit=!0,N.addEventListener("dispose",G));const me=N.source;let j=y.get(me);j===void 0&&(j={},y.set(me,j));const re=se(N);if(re!==D.__cacheKey){j[re]===void 0&&(j[re]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,K=!0),j[re].usedTimes++;const Ce=j[D.__cacheKey];Ce!==void 0&&(j[D.__cacheKey].usedTimes--,Ce.usedTimes===0&&O(N)),D.__cacheKey=re,D.__webglTexture=j[re].texture}return K}function _e(D,N,K){let me=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(me=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(me=n.TEXTURE_3D);const j=fe(D,N),re=N.source;t.bindTexture(me,D.__webglTexture,n.TEXTURE0+K);const Ce=s.get(re);if(re.version!==Ce.__version||j===!0){t.activeTexture(n.TEXTURE0+K);const we=Pt.getPrimaries(Pt.workingColorSpace),ke=N.colorSpace===ys?null:Pt.getPrimaries(N.colorSpace),Ke=N.colorSpace===ys||we===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ke);const lt=R(N)&&S(N.image)===!1;let Pe=E(N.image,lt,!1,u);Pe=ge(N,Pe);const Mt=S(Pe)||a,tt=i.convert(N.format,N.colorSpace);let nt=i.convert(N.type),ze=I(N.internalFormat,tt,nt,N.colorSpace,N.isVideoTexture);Q(me,N,Mt);let je;const _t=N.mipmaps,J=a&&N.isVideoTexture!==!0&&ze!==GN,Qe=Ce.__version===void 0||j===!0,Ge=C(N,Pe,Mt);if(N.isDepthTexture)ze=n.DEPTH_COMPONENT,a?N.type===Mr?ze=n.DEPTH_COMPONENT32F:N.type===fi?ze=n.DEPTH_COMPONENT24:N.type===no?ze=n.DEPTH24_STENCIL8:ze=n.DEPTH_COMPONENT16:N.type===Mr&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===so&&ze===n.DEPTH_COMPONENT&&N.type!==dy&&N.type!==fi&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=fi,nt=i.convert(N.type)),N.format===Sa&&ze===n.DEPTH_COMPONENT&&(ze=n.DEPTH_STENCIL,N.type!==no&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=no,nt=i.convert(N.type))),Qe&&(J?t.texStorage2D(n.TEXTURE_2D,1,ze,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,tt,nt,null));else if(N.isDataTexture)if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne>=1,qe>>=1}}else if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne0&&Qe++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Qe,je,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(lt){_t?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,nt,ze,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,je,Pe[Ne].width,Pe[Ne].height,0,nt,ze,Pe[Ne].data);for(let qe=0;qe>re),Pe=Math.max(1,N.height>>re);j===n.TEXTURE_3D||j===n.TEXTURE_2D_ARRAY?t.texImage3D(j,re,ke,lt,Pe,N.depth,0,Ce,we,null):t.texImage2D(j,re,ke,lt,Pe,0,Ce,we,null)}t.bindFramebuffer(n.FRAMEBUFFER,D),Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,0,le(N)):(j===n.TEXTURE_2D||j>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&j<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,re),t.bindFramebuffer(n.FRAMEBUFFER,null)}function te(D,N,K){if(n.bindRenderbuffer(n.RENDERBUFFER,D),N.depthBuffer&&!N.stencilBuffer){let me=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(K||Me(N)){const j=N.depthTexture;j&&j.isDepthTexture&&(j.type===Mr?me=n.DEPTH_COMPONENT32F:j.type===fi&&(me=n.DEPTH_COMPONENT24));const re=le(N);Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,re,me,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,re,me,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,me,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,D)}else if(N.depthBuffer&&N.stencilBuffer){const me=le(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,D)}else{const me=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let j=0;j0){K.__webglFramebuffer[we]=[];for(let ke=0;ke0){K.__webglFramebuffer=[];for(let we=0;we0&&Me(D)===!1){const we=re?N:[N];K.__webglMultisampledFramebuffer=n.createFramebuffer(),K.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,K.__webglMultisampledFramebuffer);for(let ke=0;ke0)for(let ke=0;ke0)for(let ke=0;ke0&&Me(D)===!1){const N=D.isWebGLMultipleRenderTargets?D.texture:[D.texture],K=D.width,me=D.height;let j=n.COLOR_BUFFER_BIT;const re=[],Ce=D.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,we=s.get(D),ke=D.isWebGLMultipleRenderTargets===!0;if(ke)for(let Ke=0;Ke0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function Re(D){const N=o.render.frame;g.get(D)!==N&&(g.set(D,N),D.update())}function ge(D,N){const K=D.colorSpace,me=D.format,j=D.type;return D.isCompressedTexture===!0||D.isVideoTexture===!0||D.format===yb||K!==Cn&&K!==ys&&(Pt.getTransfer(K)===jt?a===!1?e.has("EXT_sRGB")===!0&&me===bs?(D.format=yb,D.minFilter=Wn,D.generateMipmaps=!1):N=YN.sRGBToLinear(N):(me!==bs||j!==bi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",K)),N}this.allocateTextureUnit=W,this.resetTextureUnits=L,this.setTexture2D=oe,this.setTexture2DArray=ye,this.setTexture3D=xe,this.setTextureCube=ce,this.rebindTextures=Z,this.setupRenderTarget=de,this.updateRenderTargetMipmap=pe,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=P,this.setupFrameBufferTexture=Be,this.useMultisampledRTT=Me}function M1t(n,e,t){const s=t.isWebGL2;function r(i,o=ys){let a;const c=Pt.getTransfer(o);if(i===bi)return n.UNSIGNED_BYTE;if(i===LN)return n.UNSIGNED_SHORT_4_4_4_4;if(i===PN)return n.UNSIGNED_SHORT_5_5_5_1;if(i===Qbt)return n.BYTE;if(i===Xbt)return n.SHORT;if(i===dy)return n.UNSIGNED_SHORT;if(i===DN)return n.INT;if(i===fi)return n.UNSIGNED_INT;if(i===Mr)return n.FLOAT;if(i===Ql)return s?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(i===Zbt)return n.ALPHA;if(i===bs)return n.RGBA;if(i===Jbt)return n.LUMINANCE;if(i===e0t)return n.LUMINANCE_ALPHA;if(i===so)return n.DEPTH_COMPONENT;if(i===Sa)return n.DEPTH_STENCIL;if(i===yb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(i===t0t)return n.RED;if(i===FN)return n.RED_INTEGER;if(i===n0t)return n.RG;if(i===UN)return n.RG_INTEGER;if(i===BN)return n.RGBA_INTEGER;if(i===Hh||i===qh||i===Yh||i===$h)if(c===jt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===Hh)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===qh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Yh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===$h)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===Hh)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===qh)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Yh)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===$h)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===pC||i===fC||i===_C||i===mC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===pC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===fC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===_C)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===mC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===GN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(i===hC||i===gC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===hC)return c===jt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===gC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===bC||i===yC||i===vC||i===EC||i===SC||i===TC||i===xC||i===CC||i===wC||i===RC||i===AC||i===MC||i===NC||i===OC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===bC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===yC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===vC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===EC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===SC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===TC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===xC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===CC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===wC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===RC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===AC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===MC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===NC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===OC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===Wh||i===IC||i===kC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===Wh)return c===jt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===IC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===kC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===s0t||i===DC||i===LC||i===PC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===Wh)return a.COMPRESSED_RED_RGTC1_EXT;if(i===DC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===LC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===PC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===no?s?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[i]!==void 0?n[i]:null}return{convert:r}}class N1t extends Gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class ji extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const O1t={type:"move"};class gg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new ji,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new ji,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ie,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ie),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new ji,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ie,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ie),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const s of e.hand.values())this._getHandJoint(t,s)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,s){let r=null,i=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const f of e.hand.values()){const y=t.getJointPose(f,s),b=this._getHandJoint(d,f);y!==null&&(b.matrix.fromArray(y.transform.matrix),b.matrix.decompose(b.position,b.rotation,b.scale),b.matrixWorldNeedsUpdate=!0,b.jointRadius=y.radius),b.visible=y!==null}const u=d.joints["index-finger-tip"],_=d.joints["thumb-tip"],m=u.position.distanceTo(_.position),h=.02,g=.005;d.inputState.pinching&&m>h+g?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&m<=h-g&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,s),i!==null&&(c.matrix.fromArray(i.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,i.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(i.linearVelocity)):c.hasLinearVelocity=!1,i.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(i.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(r=t.getPose(e.targetRaySpace,s),r===null&&i!==null&&(r=i),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(O1t)))}return a!==null&&(a.visible=r!==null),c!==null&&(c.visible=i!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const s=new ji;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[t.jointName]=s,e.add(s)}return e.joints[t.jointName]}}class I1t extends Ha{constructor(e,t){super();const s=this;let r=null,i=1,o=null,a="local-floor",c=1,d=null,u=null,_=null,m=null,h=null,g=null;const f=t.getContextAttributes();let y=null,b=null;const v=[],E=[],S=new Rt;let R=null;const w=new Gn;w.layers.enable(1),w.viewport=new Wt;const A=new Gn;A.layers.enable(2),A.viewport=new Wt;const I=[w,A],C=new N1t;C.layers.enable(1),C.layers.enable(2);let M=null,G=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getGripSpace()},this.getHand=function(ce){let Ee=v[ce];return Ee===void 0&&(Ee=new gg,v[ce]=Ee),Ee.getHandSpace()};function V(ce){const Ee=E.indexOf(ce.inputSource);if(Ee===-1)return;const Oe=v[Ee];Oe!==void 0&&(Oe.update(ce.inputSource,ce.frame,d||o),Oe.dispatchEvent({type:ce.type,data:ce.inputSource}))}function ee(){r.removeEventListener("select",V),r.removeEventListener("selectstart",V),r.removeEventListener("selectend",V),r.removeEventListener("squeeze",V),r.removeEventListener("squeezestart",V),r.removeEventListener("squeezeend",V),r.removeEventListener("end",ee),r.removeEventListener("inputsourceschange",O);for(let ce=0;ce=0&&(E[De]=null,v[De].disconnect(Oe))}for(let Ee=0;Ee=E.length){E.push(Oe),De=fe;break}else if(E[fe]===null){E[fe]=Oe,De=fe;break}if(De===-1)break}const Q=v[De];Q&&Q.connect(Oe)}}const H=new ie,q=new ie;function L(ce,Ee,Oe){H.setFromMatrixPosition(Ee.matrixWorld),q.setFromMatrixPosition(Oe.matrixWorld);const De=H.distanceTo(q),Q=Ee.projectionMatrix.elements,fe=Oe.projectionMatrix.elements,_e=Q[14]/(Q[10]-1),Ae=Q[14]/(Q[10]+1),Be=(Q[9]+1)/Q[5],te=(Q[9]-1)/Q[5],U=(Q[8]-1)/Q[0],P=(fe[8]+1)/fe[0],Z=_e*U,de=_e*P,pe=De/(-U+P),he=pe*-U;Ee.matrixWorld.decompose(ce.position,ce.quaternion,ce.scale),ce.translateX(he),ce.translateZ(pe),ce.matrixWorld.compose(ce.position,ce.quaternion,ce.scale),ce.matrixWorldInverse.copy(ce.matrixWorld).invert();const le=_e+pe,Me=Ae+pe,Re=Z-he,ge=de+(De-he),D=Be*Ae/Me*le,N=te*Ae/Me*le;ce.projectionMatrix.makePerspective(Re,ge,D,N,le,Me),ce.projectionMatrixInverse.copy(ce.projectionMatrix).invert()}function W(ce,Ee){Ee===null?ce.matrixWorld.copy(ce.matrix):ce.matrixWorld.multiplyMatrices(Ee.matrixWorld,ce.matrix),ce.matrixWorldInverse.copy(ce.matrixWorld).invert()}this.updateCamera=function(ce){if(r===null)return;C.near=A.near=w.near=ce.near,C.far=A.far=w.far=ce.far,(M!==C.near||G!==C.far)&&(r.updateRenderState({depthNear:C.near,depthFar:C.far}),M=C.near,G=C.far);const Ee=ce.parent,Oe=C.cameras;W(C,Ee);for(let De=0;De0&&(y.alphaTest.value=b.alphaTest);const v=e.get(b).envMap;if(v&&(y.envMap.value=v,y.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,y.reflectivity.value=b.reflectivity,y.ior.value=b.ior,y.refractionRatio.value=b.refractionRatio),b.lightMap){y.lightMap.value=b.lightMap;const E=n._useLegacyLights===!0?Math.PI:1;y.lightMapIntensity.value=b.lightMapIntensity*E,t(b.lightMap,y.lightMapTransform)}b.aoMap&&(y.aoMap.value=b.aoMap,y.aoMapIntensity.value=b.aoMapIntensity,t(b.aoMap,y.aoMapTransform))}function o(y,b){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,b.map&&(y.map.value=b.map,t(b.map,y.mapTransform))}function a(y,b){y.dashSize.value=b.dashSize,y.totalSize.value=b.dashSize+b.gapSize,y.scale.value=b.scale}function c(y,b,v,E){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,y.size.value=b.size*v,y.scale.value=E*.5,b.map&&(y.map.value=b.map,t(b.map,y.uvTransform)),b.alphaMap&&(y.alphaMap.value=b.alphaMap,t(b.alphaMap,y.alphaMapTransform)),b.alphaTest>0&&(y.alphaTest.value=b.alphaTest)}function d(y,b){y.diffuse.value.copy(b.color),y.opacity.value=b.opacity,y.rotation.value=b.rotation,b.map&&(y.map.value=b.map,t(b.map,y.mapTransform)),b.alphaMap&&(y.alphaMap.value=b.alphaMap,t(b.alphaMap,y.alphaMapTransform)),b.alphaTest>0&&(y.alphaTest.value=b.alphaTest)}function u(y,b){y.specular.value.copy(b.specular),y.shininess.value=Math.max(b.shininess,1e-4)}function _(y,b){b.gradientMap&&(y.gradientMap.value=b.gradientMap)}function m(y,b){y.metalness.value=b.metalness,b.metalnessMap&&(y.metalnessMap.value=b.metalnessMap,t(b.metalnessMap,y.metalnessMapTransform)),y.roughness.value=b.roughness,b.roughnessMap&&(y.roughnessMap.value=b.roughnessMap,t(b.roughnessMap,y.roughnessMapTransform)),e.get(b).envMap&&(y.envMapIntensity.value=b.envMapIntensity)}function h(y,b,v){y.ior.value=b.ior,b.sheen>0&&(y.sheenColor.value.copy(b.sheenColor).multiplyScalar(b.sheen),y.sheenRoughness.value=b.sheenRoughness,b.sheenColorMap&&(y.sheenColorMap.value=b.sheenColorMap,t(b.sheenColorMap,y.sheenColorMapTransform)),b.sheenRoughnessMap&&(y.sheenRoughnessMap.value=b.sheenRoughnessMap,t(b.sheenRoughnessMap,y.sheenRoughnessMapTransform))),b.clearcoat>0&&(y.clearcoat.value=b.clearcoat,y.clearcoatRoughness.value=b.clearcoatRoughness,b.clearcoatMap&&(y.clearcoatMap.value=b.clearcoatMap,t(b.clearcoatMap,y.clearcoatMapTransform)),b.clearcoatRoughnessMap&&(y.clearcoatRoughnessMap.value=b.clearcoatRoughnessMap,t(b.clearcoatRoughnessMap,y.clearcoatRoughnessMapTransform)),b.clearcoatNormalMap&&(y.clearcoatNormalMap.value=b.clearcoatNormalMap,t(b.clearcoatNormalMap,y.clearcoatNormalMapTransform),y.clearcoatNormalScale.value.copy(b.clearcoatNormalScale),b.side===Zn&&y.clearcoatNormalScale.value.negate())),b.iridescence>0&&(y.iridescence.value=b.iridescence,y.iridescenceIOR.value=b.iridescenceIOR,y.iridescenceThicknessMinimum.value=b.iridescenceThicknessRange[0],y.iridescenceThicknessMaximum.value=b.iridescenceThicknessRange[1],b.iridescenceMap&&(y.iridescenceMap.value=b.iridescenceMap,t(b.iridescenceMap,y.iridescenceMapTransform)),b.iridescenceThicknessMap&&(y.iridescenceThicknessMap.value=b.iridescenceThicknessMap,t(b.iridescenceThicknessMap,y.iridescenceThicknessMapTransform))),b.transmission>0&&(y.transmission.value=b.transmission,y.transmissionSamplerMap.value=v.texture,y.transmissionSamplerSize.value.set(v.width,v.height),b.transmissionMap&&(y.transmissionMap.value=b.transmissionMap,t(b.transmissionMap,y.transmissionMapTransform)),y.thickness.value=b.thickness,b.thicknessMap&&(y.thicknessMap.value=b.thicknessMap,t(b.thicknessMap,y.thicknessMapTransform)),y.attenuationDistance.value=b.attenuationDistance,y.attenuationColor.value.copy(b.attenuationColor)),b.anisotropy>0&&(y.anisotropyVector.value.set(b.anisotropy*Math.cos(b.anisotropyRotation),b.anisotropy*Math.sin(b.anisotropyRotation)),b.anisotropyMap&&(y.anisotropyMap.value=b.anisotropyMap,t(b.anisotropyMap,y.anisotropyMapTransform))),y.specularIntensity.value=b.specularIntensity,y.specularColor.value.copy(b.specularColor),b.specularColorMap&&(y.specularColorMap.value=b.specularColorMap,t(b.specularColorMap,y.specularColorMapTransform)),b.specularIntensityMap&&(y.specularIntensityMap.value=b.specularIntensityMap,t(b.specularIntensityMap,y.specularIntensityMapTransform))}function g(y,b){b.matcap&&(y.matcap.value=b.matcap)}function f(y,b){const v=e.get(b).light;y.referencePosition.value.setFromMatrixPosition(v.matrixWorld),y.nearDistance.value=v.shadow.camera.near,y.farDistance.value=v.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:r}}function D1t(n,e,t,s){let r={},i={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(v,E){const S=E.program;s.uniformBlockBinding(v,S)}function d(v,E){let S=r[v.id];S===void 0&&(g(v),S=u(v),r[v.id]=S,v.addEventListener("dispose",y));const R=E.program;s.updateUBOMapping(v,R);const w=e.render.frame;i[v.id]!==w&&(m(v),i[v.id]=w)}function u(v){const E=_();v.__bindingPointIndex=E;const S=n.createBuffer(),R=v.__size,w=v.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,R,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,E,S),S}function _(){for(let v=0;v0){w=S%R;const V=R-w;w!==0&&V-M.boundary<0&&(S+=R-w,C.__offset=S)}S+=M.storage}return w=S%R,w>0&&(S+=R-w),v.__size=S,v.__cache={},this}function f(v){const E={boundary:0,storage:0};return typeof v=="number"?(E.boundary=4,E.storage=4):v.isVector2?(E.boundary=8,E.storage=8):v.isVector3||v.isColor?(E.boundary=16,E.storage=12):v.isVector4?(E.boundary=16,E.storage=16):v.isMatrix3?(E.boundary=48,E.storage=48):v.isMatrix4?(E.boundary=64,E.storage=64):v.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",v),E}function y(v){const E=v.target;E.removeEventListener("dispose",y);const S=o.indexOf(E.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(r[E.id]),delete r[E.id],delete i[E.id]}function b(){for(const v in r)n.deleteBuffer(r[v]);o=[],r={},i={}}return{bind:c,update:d,dispose:b}}class lO{constructor(e={}){const{canvas:t=O0t(),context:s=null,depth:r=!0,stencil:i=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:_=!1}=e;this.isWebGLRenderer=!0;let m;s!==null?m=s.getContextAttributes().alpha:m=o;const h=new Uint32Array(4),g=new Int32Array(4);let f=null,y=null;const b=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=gi,this.toneMappingExposure=1;const E=this;let S=!1,R=0,w=0,A=null,I=-1,C=null;const M=new Wt,G=new Wt;let V=null;const ee=new pt(0);let O=0,H=t.width,q=t.height,L=1,W=null,se=null;const oe=new Wt(0,0,H,q),ye=new Wt(0,0,H,q);let xe=!1;const ce=new _y;let Ee=!1,Oe=!1,De=null;const Q=new xt,fe=new Rt,_e=new ie,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Be(){return A===null?L:1}let te=s;function U(F,ue){for(let ve=0;ve{function Xe(){if(Se.forEach(function(rt){he.get(rt).currentProgram.isReady()&&Se.delete(rt)}),Se.size===0){be(F);return}setTimeout(Xe,10)}P.get("KHR_parallel_shader_compile")!==null?Xe():setTimeout(Xe,10)})};let Nt=null;function dn(F){Nt&&Nt(F)}function wn(){Rn.stop()}function qt(){Rn.start()}const Rn=new tO;Rn.setAnimationLoop(dn),typeof self<"u"&&Rn.setContext(self),this.setAnimationLoop=function(F){Nt=F,je.setAnimationLoop(F),F===null?Rn.stop():Rn.start()},je.addEventListener("sessionstart",wn),je.addEventListener("sessionend",qt),this.render=function(F,ue){if(ue!==void 0&&ue.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),ue.parent===null&&ue.matrixWorldAutoUpdate===!0&&ue.updateMatrixWorld(),je.enabled===!0&&je.isPresenting===!0&&(je.cameraAutoUpdate===!0&&je.updateCamera(ue),ue=je.getCamera()),F.isScene===!0&&F.onBeforeRender(E,F,ue,A),y=re.get(F,v.length),y.init(),v.push(y),Q.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),ce.setFromProjectionMatrix(Q),Oe=this.localClippingEnabled,Ee=Ce.init(this.clippingPlanes,Oe),f=j.get(F,b.length),f.init(),b.push(f),Os(F,ue,0,E.sortObjects),f.finish(),E.sortObjects===!0&&f.sort(W,se),this.info.render.frame++,Ee===!0&&Ce.beginShadows();const ve=y.state.shadowsArray;if(we.render(ve,F,ue),Ee===!0&&Ce.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(f,F),y.setupLights(E._useLegacyLights),ue.isArrayCamera){const Se=ue.cameras;for(let be=0,Xe=Se.length;be0?y=v[v.length-1]:y=null,b.pop(),b.length>0?f=b[b.length-1]:f=null};function Os(F,ue,ve,Se){if(F.visible===!1)return;if(F.layers.test(ue.layers)){if(F.isGroup)ve=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ue);else if(F.isLight)y.pushLight(F),F.castShadow&&y.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||ce.intersectsSprite(F)){Se&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Q);const rt=N.update(F),ct=F.material;ct.visible&&f.push(F,rt,ct,ve,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||ce.intersectsObject(F))){const rt=N.update(F),ct=F.material;if(Se&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(rt.boundingSphere===null&&rt.computeBoundingSphere(),_e.copy(rt.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Q)),Array.isArray(ct)){const ut=rt.groups;for(let vt=0,mt=ut.length;vt0&&Iy(be,Xe,ue,ve),Se&&de.viewport(M.copy(Se)),be.length>0&&ja(be,ue,ve),Xe.length>0&&ja(Xe,ue,ve),rt.length>0&&ja(rt,ue,ve),de.buffers.depth.setTest(!0),de.buffers.depth.setMask(!0),de.buffers.color.setMask(!0),de.setPolygonOffset(!1)}function Iy(F,ue,ve,Se){if((ve.isScene===!0?ve.overrideMaterial:null)!==null)return;const Xe=Z.isWebGL2;De===null&&(De=new mo(1,1,{generateMipmaps:!0,type:P.has("EXT_color_buffer_half_float")?Ql:bi,minFilter:_o,samples:Xe?4:0})),E.getDrawingBufferSize(fe),Xe?De.setSize(fe.x,fe.y):De.setSize(Eu(fe.x),Eu(fe.y));const rt=E.getRenderTarget();E.setRenderTarget(De),E.getClearColor(ee),O=E.getClearAlpha(),O<1&&E.setClearColor(16777215,.5),E.clear();const ct=E.toneMapping;E.toneMapping=gi,ja(F,ve,Se),le.updateMultisampleRenderTarget(De),le.updateRenderTargetMipmap(De);let ut=!1;for(let vt=0,mt=ue.length;vt0),gt=!!ve.morphAttributes.position,tn=!!ve.morphAttributes.normal,qn=!!ve.morphAttributes.color;let un=gi;Se.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(un=E.toneMapping);const Ks=ve.morphAttributes.position||ve.morphAttributes.normal||ve.morphAttributes.color,Qt=Ks!==void 0?Ks.length:0,St=he.get(Se),hc=y.state.lights;if(Ee===!0&&(Oe===!0||F!==C)){const ts=F===C&&Se.id===I;Ce.setState(Se,F,ts)}let Zt=!1;Se.version===St.__version?(St.needsLights&&St.lightsStateVersion!==hc.state.version||St.outputColorSpace!==ct||be.isBatchedMesh&&St.batching===!1||!be.isBatchedMesh&&St.batching===!0||be.isInstancedMesh&&St.instancing===!1||!be.isInstancedMesh&&St.instancing===!0||be.isSkinnedMesh&&St.skinning===!1||!be.isSkinnedMesh&&St.skinning===!0||be.isInstancedMesh&&St.instancingColor===!0&&be.instanceColor===null||be.isInstancedMesh&&St.instancingColor===!1&&be.instanceColor!==null||St.envMap!==ut||Se.fog===!0&&St.fog!==Xe||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ce.numPlanes||St.numIntersection!==Ce.numIntersection)||St.vertexAlphas!==vt||St.vertexTangents!==mt||St.morphTargets!==gt||St.morphNormals!==tn||St.morphColors!==qn||St.toneMapping!==un||Z.isWebGL2===!0&&St.morphTargetsCount!==Qt)&&(Zt=!0):(Zt=!0,St.__version=Se.version);let zr=St.currentProgram;Zt===!0&&(zr=Qa(Se,ue,be));let xp=!1,Eo=!1,gc=!1;const yn=zr.getUniforms(),Hr=St.uniforms;if(de.useProgram(zr.program)&&(xp=!0,Eo=!0,gc=!0),Se.id!==I&&(I=Se.id,Eo=!0),xp||C!==F){yn.setValue(te,"projectionMatrix",F.projectionMatrix),yn.setValue(te,"viewMatrix",F.matrixWorldInverse);const ts=yn.map.cameraPosition;ts!==void 0&&ts.setValue(te,_e.setFromMatrixPosition(F.matrixWorld)),Z.logarithmicDepthBuffer&&yn.setValue(te,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&yn.setValue(te,"isOrthographic",F.isOrthographicCamera===!0),C!==F&&(C=F,Eo=!0,gc=!0)}if(be.isSkinnedMesh){yn.setOptional(te,be,"bindMatrix"),yn.setOptional(te,be,"bindMatrixInverse");const ts=be.skeleton;ts&&(Z.floatVertexTextures?(ts.boneTexture===null&&ts.computeBoneTexture(),yn.setValue(te,"boneTexture",ts.boneTexture,le)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}be.isBatchedMesh&&(yn.setOptional(te,be,"batchingTexture"),yn.setValue(te,"batchingTexture",be._matricesTexture,le));const bc=ve.morphAttributes;if((bc.position!==void 0||bc.normal!==void 0||bc.color!==void 0&&Z.isWebGL2===!0)&&Ke.update(be,ve,zr),(Eo||St.receiveShadow!==be.receiveShadow)&&(St.receiveShadow=be.receiveShadow,yn.setValue(te,"receiveShadow",be.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Hr.envMap.value=ut,Hr.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),Eo&&(yn.setValue(te,"toneMappingExposure",E.toneMappingExposure),St.needsLights&&Dy(Hr,gc),Xe&&Se.fog===!0&&me.refreshFogUniforms(Hr,Xe),me.refreshMaterialUniforms(Hr,Se,L,q,De),Dd.upload(te,Sp(St),Hr,le)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(Dd.upload(te,Sp(St),Hr,le),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&yn.setValue(te,"center",be.center),yn.setValue(te,"modelViewMatrix",be.modelViewMatrix),yn.setValue(te,"normalMatrix",be.normalMatrix),yn.setValue(te,"modelMatrix",be.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const ts=Se.uniformsGroups;for(let yc=0,Py=ts.length;yc0&&le.useMultisampledRTT(F)===!1?be=he.get(F).__webglMultisampledFramebuffer:Array.isArray(mt)?be=mt[ve]:be=mt,M.copy(F.viewport),G.copy(F.scissor),V=F.scissorTest}else M.copy(oe).multiplyScalar(L).floor(),G.copy(ye).multiplyScalar(L).floor(),V=xe;if(de.bindFramebuffer(te.FRAMEBUFFER,be)&&Z.drawBuffers&&Se&&de.drawBuffers(F,be),de.viewport(M),de.scissor(G),de.setScissorTest(V),Xe){const ut=he.get(F.texture);te.framebufferTexture2D(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,te.TEXTURE_CUBE_MAP_POSITIVE_X+ue,ut.__webglTexture,ve)}else if(rt){const ut=he.get(F.texture),vt=ue||0;te.framebufferTextureLayer(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,ut.__webglTexture,ve||0,vt)}I=-1},this.readRenderTargetPixels=function(F,ue,ve,Se,be,Xe,rt){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ct=he.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&rt!==void 0&&(ct=ct[rt]),ct){de.bindFramebuffer(te.FRAMEBUFFER,ct);try{const ut=F.texture,vt=ut.format,mt=ut.type;if(vt!==bs&&Mt.convert(vt)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=mt===Ql&&(P.has("EXT_color_buffer_half_float")||Z.isWebGL2&&P.has("EXT_color_buffer_float"));if(mt!==bi&&Mt.convert(mt)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_TYPE)&&!(mt===Mr&&(Z.isWebGL2||P.has("OES_texture_float")||P.has("WEBGL_color_buffer_float")))&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ue>=0&&ue<=F.width-Se&&ve>=0&&ve<=F.height-be&&te.readPixels(ue,ve,Se,be,Mt.convert(vt),Mt.convert(mt),Xe)}finally{const ut=A!==null?he.get(A).__webglFramebuffer:null;de.bindFramebuffer(te.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,ue,ve=0){const Se=Math.pow(2,-ve),be=Math.floor(ue.image.width*Se),Xe=Math.floor(ue.image.height*Se);le.setTexture2D(ue,0),te.copyTexSubImage2D(te.TEXTURE_2D,ve,0,0,F.x,F.y,be,Xe),de.unbindTexture()},this.copyTextureToTexture=function(F,ue,ve,Se=0){const be=ue.image.width,Xe=ue.image.height,rt=Mt.convert(ve.format),ct=Mt.convert(ve.type);le.setTexture2D(ve,0),te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,ve.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ve.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,ve.unpackAlignment),ue.isDataTexture?te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,be,Xe,rt,ct,ue.image.data):ue.isCompressedTexture?te.compressedTexSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,ue.mipmaps[0].width,ue.mipmaps[0].height,rt,ue.mipmaps[0].data):te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,rt,ct,ue.image),Se===0&&ve.generateMipmaps&&te.generateMipmap(te.TEXTURE_2D),de.unbindTexture()},this.copyTextureToTexture3D=function(F,ue,ve,Se,be=0){if(E.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Xe=F.max.x-F.min.x+1,rt=F.max.y-F.min.y+1,ct=F.max.z-F.min.z+1,ut=Mt.convert(Se.format),vt=Mt.convert(Se.type);let mt;if(Se.isData3DTexture)le.setTexture3D(Se,0),mt=te.TEXTURE_3D;else if(Se.isDataArrayTexture)le.setTexture2DArray(Se,0),mt=te.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Se.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Se.unpackAlignment);const gt=te.getParameter(te.UNPACK_ROW_LENGTH),tn=te.getParameter(te.UNPACK_IMAGE_HEIGHT),qn=te.getParameter(te.UNPACK_SKIP_PIXELS),un=te.getParameter(te.UNPACK_SKIP_ROWS),Ks=te.getParameter(te.UNPACK_SKIP_IMAGES),Qt=ve.isCompressedTexture?ve.mipmaps[0]:ve.image;te.pixelStorei(te.UNPACK_ROW_LENGTH,Qt.width),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,Qt.height),te.pixelStorei(te.UNPACK_SKIP_PIXELS,F.min.x),te.pixelStorei(te.UNPACK_SKIP_ROWS,F.min.y),te.pixelStorei(te.UNPACK_SKIP_IMAGES,F.min.z),ve.isDataTexture||ve.isData3DTexture?te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,vt,Qt.data):ve.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),te.compressedTexSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,Qt.data)):te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,rt,ct,ut,vt,Qt),te.pixelStorei(te.UNPACK_ROW_LENGTH,gt),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,tn),te.pixelStorei(te.UNPACK_SKIP_PIXELS,qn),te.pixelStorei(te.UNPACK_SKIP_ROWS,un),te.pixelStorei(te.UNPACK_SKIP_IMAGES,Ks),be===0&&Se.generateMipmaps&&te.generateMipmap(mt),de.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?le.setTextureCube(F,0):F.isData3DTexture?le.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?le.setTexture2DArray(F,0):le.setTexture2D(F,0),de.unbindTexture()},this.resetState=function(){R=0,w=0,A=null,de.reset(),tt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Nr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===py?"display-p3":"srgb",t.unpackColorSpace=Pt.workingColorSpace===fp?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?ro:zN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===ro?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class L1t extends lO{}L1t.prototype.isWebGL1Renderer=!0;class P1t extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class F1t{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=bb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Gs()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,s){e*=this.stride,s*=t.stride;for(let r=0,i=this.stride;rc)continue;m.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(m);Ie.far||t.push({distance:I,point:_.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}else{const b=Math.max(0,o.start),v=Math.min(y.count,o.start+o.count);for(let E=b,S=v-1;Ec)continue;m.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(m);we.far||t.push({distance:w,point:_.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,s=Object.keys(t);if(s.length>0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;ir.far)return;i.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class Ey extends Vs{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=uy,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vr extends Ey{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class zw extends Vs{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=uy,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=cy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function hd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function W1t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K1t(n){function e(r,i){return n[r]-n[i]}const t=n.length,s=new Array(t);for(let r=0;r!==t;++r)s[r]=r;return s.sort(e),s}function Hw(n,e,t){const s=n.length,r=new n.constructor(s);for(let i=0,o=0;o!==s;++i){const a=t[i]*e;for(let c=0;c!==e;++c)r[o++]=n[a+c]}return r}function pO(n,e,t,s){let r=1,i=n[0];for(;i!==void 0&&i[s]===void 0;)i=n[r++];if(i===void 0)return;let o=i[s];if(o!==void 0)if(Array.isArray(o))do o=i[s],o!==void 0&&(e.push(i.time),t.push.apply(t,o)),i=n[r++];while(i!==void 0);else if(o.toArray!==void 0)do o=i[s],o!==void 0&&(e.push(i.time),o.toArray(t,t.length)),i=n[r++];while(i!==void 0);else do o=i[s],o!==void 0&&(e.push(i.time),t.push(o)),i=n[r++];while(i!==void 0)}class fc{constructor(e,t,s,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new t.constructor(s),this.sampleValues=t,this.valueSize=s,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let s=this._cachedIndex,r=t[s],i=t[s-1];e:{t:{let o;n:{s:if(!(e=i)){const a=t[1];e=i)break t}o=s,s=0;break n}break e}for(;s>>1;et;)--o;if(++o,i!==0||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const a=this.getValueSize();this.times=s.slice(i,o),this.values=this.values.slice(i*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const s=this.times,r=this.values,i=s.length;i===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==i;a++){const c=s[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),e=!1;break}if(o!==null&&o>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,o),e=!1;break}o=c}if(r!==void 0&&W1t(r))for(let a=0,c=r.length;a!==c;++a){const d=r[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),s=this.getValueSize(),r=this.getInterpolation()===Kh,i=e.length-1;let o=1;for(let a=1;a0){e[o]=e[i];for(let a=i*s,c=o*s,d=0;d!==s;++d)t[c+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*s)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),s=this.constructor,r=new s(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}mr.prototype.TimeBufferType=Float32Array;mr.prototype.ValueBufferType=Float32Array;mr.prototype.DefaultInterpolation=Ta;class Ya extends mr{}Ya.prototype.ValueTypeName="bool";Ya.prototype.ValueBufferType=Array;Ya.prototype.DefaultInterpolation=Xl;Ya.prototype.InterpolantFactoryMethodLinear=void 0;Ya.prototype.InterpolantFactoryMethodSmooth=void 0;class fO extends mr{}fO.prototype.ValueTypeName="color";class wa extends mr{}wa.prototype.ValueTypeName="number";class Z1t extends fc{constructor(e,t,s,r){super(e,t,s,r)}interpolate_(e,t,s,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(s-t)/(r-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Mi.slerpFlat(i,0,o,d-a,o,d,c);return i}}class go extends mr{InterpolantFactoryMethodLinear(e){return new Z1t(this.times,this.values,this.getValueSize(),e)}}go.prototype.ValueTypeName="quaternion";go.prototype.DefaultInterpolation=Ta;go.prototype.InterpolantFactoryMethodSmooth=void 0;class $a extends mr{}$a.prototype.ValueTypeName="string";$a.prototype.ValueBufferType=Array;$a.prototype.DefaultInterpolation=Xl;$a.prototype.InterpolantFactoryMethodLinear=void 0;$a.prototype.InterpolantFactoryMethodSmooth=void 0;class Ra extends mr{}Ra.prototype.ValueTypeName="vector";class J1t{constructor(e,t=-1,s,r=r0t){this.name=e,this.tracks=s,this.duration=t,this.blendMode=r,this.uuid=Gs(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],s=e.tracks,r=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)t.push(tTt(s[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],s=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=s.length;i!==o;++i)t.push(mr.toJSON(s[i]));return r}static CreateFromMorphTargetSequence(e,t,s,r){const i=t.length,o=[];for(let a=0;a1){const _=u[1];let m=r[_];m||(r[_]=m=[]),m.push(d)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,s));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const s=function(_,m,h,g,f){if(h.length!==0){const y=[],b=[];pO(h,y,b,g),y.length!==0&&f.push(new _(m,y,b))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let _=0;_{t&&t(i),this.manager.itemEnd(e)},0),i;if(Tr[e]!==void 0){Tr[e].push({onLoad:t,onProgress:s,onError:r});return}Tr[e]=[],Tr[e].push({onLoad:t,onProgress:s,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,c=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=Tr[e],_=d.body.getReader(),m=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),h=m?parseInt(m):0,g=h!==0;let f=0;const y=new ReadableStream({start(b){v();function v(){_.read().then(({done:E,value:S})=>{if(E)b.close();else{f+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:g,loaded:f,total:h});for(let w=0,A=u.length;w{switch(c){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const _=/charset="?([^;"\s]*)"?/i.exec(a),m=_&&_[1]?_[1].toLowerCase():void 0,h=new TextDecoder(m);return d.arrayBuffer().then(g=>h.decode(g))}}}).then(d=>{Aa.add(e,d);const u=Tr[e];delete Tr[e];for(let _=0,m=u.length;_{const u=Tr[e];if(u===void 0)throw this.manager.itemError(e),d;delete Tr[e];for(let _=0,m=u.length;_{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class iTt extends Wa{constructor(e){super(e)}load(e,t,s,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a=Zl("img");function c(){u(),Aa.add(e,this),t&&t(this),i.manager.itemEnd(e)}function d(_){u(),r&&r(_),i.manager.itemError(e),i.manager.itemEnd(e)}function u(){a.removeEventListener("load",c,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",c,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class mO extends Wa{constructor(e){super(e)}load(e,t,s,r){const i=new xn,o=new iTt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){i.image=a,i.needsUpdate=!0,t!==void 0&&t(i)},s,r),i}}class gp extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Eg=new xt,qw=new ie,Yw=new ie;class Sy{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new _y,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new Wt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,s=this.matrix;qw.setFromMatrixPosition(e.matrixWorld),t.position.copy(qw),Yw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Yw),t.updateMatrixWorld(),Eg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Eg),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply(Eg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class oTt extends Sy{constructor(){super(new Gn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,s=xa*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;(s!==t.fov||r!==t.aspect||i!==t.far)&&(t.fov=s,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class aTt extends gp{constructor(e,t,s=0,r=Math.PI/3,i=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=s,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new oTt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const $w=new xt,pl=new ie,Sg=new ie;class lTt extends Sy{constructor(){super(new Gn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new Wt(2,1,1,1),new Wt(0,1,1,1),new Wt(3,1,1,1),new Wt(1,1,1,1),new Wt(3,0,1,1),new Wt(1,0,1,1)],this._cubeDirections=[new ie(1,0,0),new ie(-1,0,0),new ie(0,0,1),new ie(0,0,-1),new ie(0,1,0),new ie(0,-1,0)],this._cubeUps=[new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,0,1),new ie(0,0,-1)]}updateMatrices(e,t=0){const s=this.camera,r=this.matrix,i=e.distance||s.far;i!==s.far&&(s.far=i,s.updateProjectionMatrix()),pl.setFromMatrixPosition(e.matrixWorld),s.position.copy(pl),Sg.copy(s.position),Sg.add(this._cubeDirections[t]),s.up.copy(this._cubeUps[t]),s.lookAt(Sg),s.updateMatrixWorld(),r.makeTranslation(-pl.x,-pl.y,-pl.z),$w.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix($w)}}class cTt extends gp{constructor(e,t,s=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=r,this.shadow=new lTt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class dTt extends Sy{constructor(){super(new hy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class hO extends gp{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new dTt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class uTt extends gp{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Dl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let s=0,r=e.length;s"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,s,r){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(c){Aa.add(e,c),t&&t(c),i.manager.itemEnd(e)}).catch(function(c){r&&r(c),i.manager.itemError(e),i.manager.itemEnd(e)}),i.manager.itemStart(e)}}const Ty="\\[\\]\\.:\\/",fTt=new RegExp("["+Ty+"]","g"),xy="[^"+Ty+"]",_Tt="[^"+Ty.replace("\\.","")+"]",mTt=/((?:WC+[\/:])*)/.source.replace("WC",xy),hTt=/(WCOD+)?/.source.replace("WCOD",_Tt),gTt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",xy),bTt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",xy),yTt=new RegExp("^"+mTt+hTt+gTt+bTt+"$"),vTt=["material","materials","bones","map"];class ETt{constructor(e,t,s){const r=s||Ut.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const s=this._targetGroup.nCachedObjects_,r=this._bindings[s];r!==void 0&&r.getValue(e,t)}setValue(e,t){const s=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=s.length;r!==i;++r)s[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].unbind()}}class Ut{constructor(e,t,s){this.path=t,this.parsedPath=s||Ut.parseTrackName(t),this.node=Ut.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,s){return e&&e.isAnimationObjectGroup?new Ut.Composite(e,t,s):new Ut(e,t,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(fTt,"")}static parseTrackName(e){const t=yTt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const s={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=s.nodeName&&s.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){const i=s.nodeName.substring(r+1);vTt.indexOf(i)!==-1&&(s.nodeName=s.nodeName.substring(0,r),s.objectName=i)}if(s.propertyName===null||s.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return s}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const s=e.skeleton.getBoneByName(t);if(s!==void 0)return s}if(e.children){const s=function(i){for(let o=0;o=2.0 are supported."));return}const d=new ext(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[_]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+_+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(s,r)}parseAsync(e,t){const s=this;return new Promise(function(r,i){s.parse(e,t,r,i)})}}function TTt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const wt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class xTt{constructor(e){this.parser=e,this.name=wt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let s=0,r=t.length;s=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,o)}}class FTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return s.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class UTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return s.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class BTt{constructor(e){this.name=wt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,s=t.bufferViews[e];if(s.extensions&&s.extensions[this.name]){const r=s.extensions[this.name],i=this.parser.getDependency("buffer",r.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(a){const c=r.byteOffset||0,d=r.byteLength||0,u=r.count,_=r.byteStride,m=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,_,m,r.mode,r.filter).then(function(h){return h.buffer}):o.ready.then(function(){const h=new ArrayBuffer(u*_);return o.decodeGltfBuffer(new Uint8Array(h),u,_,m,r.mode,r.filter),h})})}else return null}}class GTt{constructor(e){this.name=wt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,s=t.nodes[e];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const r=t.meshes[s.mesh];for(const d of r.primitives)if(d.mode!==ms.TRIANGLES&&d.mode!==ms.TRIANGLE_STRIP&&d.mode!==ms.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=s.extensions[this.name].attributes,a=[],c={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(c[d]=u,c[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),_=u.isGroup?u.children:[u],m=d[0].count,h=[];for(const g of _){const f=new xt,y=new ie,b=new Mi,v=new ie(1,1,1),E=new H1t(g.geometry,g.material,m);for(let S=0;S0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const JTt=new xt;class ext{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new TTt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,r=!1,i=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,r=navigator.userAgent.indexOf("Firefox")>-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||r&&i<98?this.textureLoader=new mO(this.options.manager):this.textureLoader=new pTt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new _O(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const s=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(o){const a={scene:o[0][r.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:r.asset,parser:s,userData:{}};return Ui(i,a,r),di(a,r),Promise.all(s._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],s=this.json.meshes||[];for(let r=0,i=t.length;r{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())i(u,a.children[d])};return i(s,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let s=0;s=2&&y.setY(C,w[A*c+1]),c>=3&&y.setZ(C,w[A*c+2]),c>=4&&y.setW(C,w[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return y})}loadTexture(e){const t=this.json,s=this.options,i=t.textures[e].source,o=t.images[i];let a=this.textureLoader;if(o.uri){const c=s.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,i,a)}loadTextureImage(e,t,s){const r=this,i=this.json,o=i.textures[e],a=i.images[t],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(t,s).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const m=(i.samplers||{})[o.sampler]||{};return u.magFilter=jw[m.magFilter]||Wn,u.minFilter=jw[m.minFilter]||_o,u.wrapS=Qw[m.wrapS]||Ea,u.wrapT=Qw[m.wrapT]||Ea,r.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,t){const s=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(_=>_.clone());const o=r.images[e],a=self.URL||self.webkitURL;let c=o.uri||"",d=!1;if(o.bufferView!==void 0)c=s.getDependency("bufferView",o.bufferView).then(function(_){d=!0;const m=new Blob([_],{type:o.mimeType});return c=a.createObjectURL(m),c});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(_){return new Promise(function(m,h){let g=m;t.isImageBitmapLoader===!0&&(g=function(f){const y=new xn(f);y.needsUpdate=!0,m(y)}),t.load(Dl.resolveURL(_,i.path),g,void 0,h)})}).then(function(_){return d===!0&&a.revokeObjectURL(c),_.userData.mimeType=o.mimeType||ZTt(o.uri),_}).catch(function(_){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),_});return this.sourceCache[e]=u,u}assignTexture(e,t,s,r){const i=this;return this.getDependency("texture",s.index).then(function(o){if(!o)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(o=o.clone(),o.channel=s.texCoord),i.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=i.associations.get(o);o=i.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),i.associations.set(o,c)}}return r!==void 0&&(o.colorSpace=r),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let s=e.material;const r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new uO,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,c.sizeAttenuation=!1,this.cache.add(a,c)),s=c}else if(e.isLine){const a="LineBasicMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new dO,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,this.cache.add(a,c)),s=c}if(r||i||o){let a="ClonedMaterial:"+s.uuid+":";r&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=s.clone(),i&&(c.vertexColors=!0),o&&(c.flatShading=!0),r&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(a,c),this.associations.set(c,this.associations.get(s))),s=c}e.material=s}getMaterialType(){return Ey}loadMaterial(e){const t=this,s=this.json,r=this.extensions,i=s.materials[e];let o;const a={},c=i.extensions||{},d=[];if(c[wt.KHR_MATERIALS_UNLIT]){const _=r[wt.KHR_MATERIALS_UNLIT];o=_.getMaterialType(),d.push(_.extendParams(a,i,t))}else{const _=i.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(_.baseColorFactor)){const m=_.baseColorFactor;a.color.setRGB(m[0],m[1],m[2],Cn),a.opacity=m[3]}_.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",_.baseColorTexture,nn)),a.metalness=_.metallicFactor!==void 0?_.metallicFactor:1,a.roughness=_.roughnessFactor!==void 0?_.roughnessFactor:1,_.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",_.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",_.metallicRoughnessTexture))),o=this._invokeOne(function(m){return m.getMaterialType&&m.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(m){return m.extendMaterialParams&&m.extendMaterialParams(e,a)})))}i.doubleSided===!0&&(a.side=er);const u=i.alphaMode||xg.OPAQUE;if(u===xg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===xg.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new Rt(1,1),i.normalTexture.scale!==void 0)){const _=i.normalTexture.scale;a.normalScale.set(_,_)}if(i.occlusionTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&o!==_i){const _=i.emissiveFactor;a.emissive=new pt().setRGB(_[0],_[1],_[2],Cn)}return i.emissiveTexture!==void 0&&o!==_i&&d.push(t.assignTexture(a,"emissiveMap",i.emissiveTexture,nn)),Promise.all(d).then(function(){const _=new o(a);return i.name&&(_.name=i.name),di(_,i),t.associations.set(_,{materials:e}),i.extensions&&Ui(r,_,i),_})}createUniqueName(e){const t=Ut.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,s=this.extensions,r=this.primitiveCache;function i(a){return s[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(c){return Xw(c,a,t)})}const o=[];for(let a=0,c=e.length;a0&&QTt(b,i),b.name=t.createUniqueName(i.name||"mesh_"+e),di(b,i),y.extensions&&Ui(r,b,y),t.assignFinalMaterial(b),_.push(b)}for(let h=0,g=_.length;h1?u=new ji:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let _=0,m=d.length;_{const _=new Map;for(const[m,h]of r.associations)(m instanceof Vs||m instanceof xn)&&_.set(m,h);return u.traverse(m=>{const h=r.associations.get(m);h!=null&&_.set(m,h)}),_};return r.associations=d(i),i})}_createAnimationTracks(e,t,s,r,i){const o=[],a=e.name?e.name:e.uuid,c=[];Jr[i.path]===Jr.weights?e.traverse(function(m){m.morphTargetInfluences&&c.push(m.name?m.name:m.uuid)}):c.push(a);let d;switch(Jr[i.path]){case Jr.weights:d=wa;break;case Jr.rotation:d=go;break;case Jr.position:case Jr.scale:d=Ra;break;default:switch(s.itemSize){case 1:d=wa;break;case 2:case 3:default:d=Ra;break}break}const u=r.interpolation!==void 0?WTt[r.interpolation]:Ta,_=this._getArrayFromAccessor(s);for(let m=0,h=c.length;m{Ve.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,Ye.emit("stop_webcam_video_stream"),Ue(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},sxt=["src"],rxt=["src"],ixt={class:"controls"},oxt={key:2};function axt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isVideoActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,sxt)):B("",!0),r.isVideoActive&&r.imageDataUrl==null?(T(),x("p",{key:1,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,rxt)):B("",!0),l("div",ixt,[r.isVideoActive?B("",!0):(T(),x("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>i.startVideoStream&&i.startVideoStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"video"},null,-1)]))),r.isVideoActive?(T(),x("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>i.stopVideoStream&&i.stopVideoStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"video"},null,-1)]))):B("",!0),r.isVideoActive?(T(),x("span",oxt,"FPS: "+Y(r.frameRate),1)):B("",!0)])],36)}const lxt=st(nxt,[["render",axt]]),cxt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){Ye.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ue(()=>{Ve.replace()})},stopAudioStream(){Ye.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ue(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},dxt=["src"],uxt={class:"controls"};function pxt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isAudioActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,dxt)):B("",!0),l("div",uxt,[r.isAudioActive?B("",!0):(T(),x("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>i.startAudioStream&&i.startAudioStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"mic"},null,-1)]))),r.isAudioActive?(T(),x("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>i.stopAudioStream&&i.stopAudioStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"mic"},null,-1)]))):B("",!0)])],36)}const fxt=st(cxt,[["render",pxt]]),_xt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:lxt,AudioFrame:fxt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ue(()=>{Ve.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new P1t,this.camera=new Gn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new lO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new yi,e=new zw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube);const t=new uTt(4210752),s=new hO(16777215,.5);s.position.set(0,1,0),this.scene.add(t),this.scene.add(s),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new STt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new yi,t=new mO().load(n),s=new _i({map:t});this.cube=new Vn(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new yi,e=new zw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},mxt={ref:"webglContainer"},hxt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},gxt={key:0,class:"text-center"},bxt={key:1,class:"text-center"},yxt={class:"floating-frame2"},vxt=["innerHTML"];function Ext(n,e,t,s,r,i){const o=Je("VideoFrame"),a=Je("AudioFrame");return T(),x(Fe,null,[l("div",mxt,null,512),l("div",hxt,[!r.activePersonality||!r.activePersonality.scene_path?(T(),x("div",gxt," Personality does not have a 3d avatar. ")):B("",!0),!r.activePersonality||!r.activePersonality.avatar||r.activePersonality.avatar===""?(T(),x("div",bxt," Personality does not have an avatar. ")):B("",!0),l("div",yxt,[l("div",{innerHTML:n.htmlContent},null,8,vxt)])]),z(o,{ref:"video_frame"},null,512),z(a,{ref:"audio_frame"},null,512)],64)}const Sxt=st(_xt,[["render",Ext]]);let gd;const Txt=new Uint8Array(16);function xxt(){if(!gd&&(gd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gd(Txt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function Cxt(n,e=0){return vn[n[e+0]]+vn[n[e+1]]+vn[n[e+2]]+vn[n[e+3]]+"-"+vn[n[e+4]]+vn[n[e+5]]+"-"+vn[n[e+6]]+vn[n[e+7]]+"-"+vn[n[e+8]]+vn[n[e+9]]+"-"+vn[n[e+10]]+vn[n[e+11]]+vn[n[e+12]]+vn[n[e+13]]+vn[n[e+14]]+vn[n[e+15]]}const wxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zw={randomUUID:wxt};function Dr(n,e,t){if(Zw.randomUUID&&!e&&!n)return Zw.randomUUID();n=n||{};const s=n.random||(n.rng||xxt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Cxt(s)}class io{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const s=this._listeners.indexOf(t);s>=0&&this._listeners.splice(s,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. -Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const s=this.proxies.indexOf(t);s>=0&&this.proxies.splice(s,1)}}class Vt extends io{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class kn extends io{constructor(e){super(),this.entity=e}emit(e){let t=!1;const s=()=>[t=!0];for(const r of Array.from(this.listeners.values()))if(r(e,s,this.entity),t)return{prevented:!0};return{prevented:!1}}}class yO extends io{execute(e,t){let s=e;for(const r of this.listeners)s=r(s,t);return s}}class ds extends yO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class Rxt extends io{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const s of this.listeners)t.push(s(e,this.entity));return t}}function Qs(){const n=Symbol(),e=new Map,t=new Set,s=(c,d)=>{d instanceof io&&d.registerProxy(n,()=>{var u,_;return(_=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&_!==void 0?_:[]})},r=c=>{const d=new io;e.set(c,d),t.forEach(u=>s(c,u[c]))},i=c=>{t.add(c);for(const d of e.keys())s(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof io&&c[d].unregisterProxy(n);t.delete(c)},a=()=>{t.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?i:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||r(d),e.get(d))}})}class Jw{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Vt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class vO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),this.from=e,this.to=t}}function wb(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>[t,e(s)]))}class EO{constructor(){this._title="",this.id=Dr(),this.events={loaded:new Vt(this),beforeAddInput:new kn(this),addInput:new Vt(this),beforeRemoveInput:new kn(this),removeInput:new Vt(this),beforeAddOutput:new kn(this),addOutput:new Vt(this),beforeRemoveOutput:new kn(this),removeOutput:new Vt(this),beforeTitleChanged:new kn(this),titleChanged:new Vt(this),update:new Vt(this)},this.hooks={beforeLoad:new ds(this),afterSave:new ds(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,s])=>{this.inputs[t]&&(this.inputs[t].load(s),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,s])=>{this.outputs[t]&&(this.outputs[t].load(s),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=wb(this.inputs,r=>r.save()),t=wb(this.outputs,r=>r.save()),s={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(s)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,s){s.isInput=e==="input",s.nodeId=this.id,s.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:s}))}addInterface(e,t,s){const r=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,i=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return r.emit(s).prevented?!1:(o[t]=s,this.initializeIntf(e,t,s),i.emit(s),!0)}removeInterface(e,t){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,r=e==="input"?this.events.removeInput:this.events.removeOutput,i=e==="input"?this.inputs[t]:this.outputs[t];if(!i||s.emit(i).prevented)return!1;if(i.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===i||a.to===i).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return i.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],r.emit(i),!0}}let SO=class extends EO{load(e){super.load(e)}save(){return super.save()}};function Ka(n){return class extends SO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(s,r)=>n.calculate.call(this,s,r):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(s=>{const r=t[s]();e==="input"?this.addInput(s,r):this.addOutput(s,r)})}}}class en{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Dr(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Vt(this),beforeSetValue:new kn(this),setValue:new Vt(this),updated:new Vt(this)},this.hooks={load:new ds(this),save:new ds(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Ma="__baklava_SubgraphInputNode",Na="__baklava_SubgraphOutputNode";class TO extends SO{constructor(){super(),this.graphInterfaceId=Dr()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class Cy extends TO{constructor(){super(...arguments),this.type=Ma,this.inputs={name:new en("Name","Input")},this.outputs={placeholder:new en("Value",void 0)}}static isGraphInputNode(e){return e.type===Ma}}class wy extends TO{constructor(){super(...arguments),this.type=Na,this.inputs={name:new en("Name","Output"),placeholder:new en("Value",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Na}}class _c{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new kn(this),addNode:new Vt(this),beforeRemoveNode:new kn(this),removeNode:new Vt(this),beforeAddConnection:new kn(this),addConnection:new Vt(this),checkConnection:new kn(this),beforeRemoveConnection:new kn(this),removeConnection:new Vt(this)},this.hooks={save:new ds(this),load:new ds(this),checkConnection:new Rxt(this)},this.nodeEvents=Qs(),this.nodeHooks=Qs(),this.connectionEvents=Qs(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(s=>t.includes(s.from)||t.includes(s.to)).forEach(s=>this.removeConnection(s)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const s=this.checkConnection(e,t);if(!s.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const i of s.connectionsInDanger){const o=this.connections.find(a=>a.id===i.id);o&&this.removeConnection(o)}const r=new Jw(s.dummyConnection.from,s.dummyConnection.to);return this.internalAddConnection(r),r}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const s=this.findNodeById(e.nodeId),r=this.findNodeById(t.nodeId);if(s&&r&&s===r)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const i=this.hooks.checkConnection.execute({from:e,to:t});if(i.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(i.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new vO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const s in t.inputs){const r=t.inputs[s];if(r.id===e)return r}for(const s in t.outputs){const r=t.outputs[s];if(r.id===e)return r}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let s=this.connections.length-1;s>=0;s--)this.removeConnection(this.connections[s]);for(let s=this.nodes.length-1;s>=0;s--)this.removeNode(this.nodes[s]);this.id=e.id;for(const s of e.nodes){const r=this.editor.nodeTypes.get(s.type);if(!r){t.push(`Node type ${s.type} is not registered`);continue}const i=new r.type;this.addNode(i),i.load(s)}for(const s of e.connections){const r=this.findNodeInterface(s.from),i=this.findNodeInterface(s.to);if(r)if(i){const o=new Jw(r,i);o.id=s.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${s.to}`);continue}else{t.push(`Could not find interface with id ${s.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const Jl="__baklava_GraphNode-";function Oa(n){return Jl+n.id}const Axt=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function Mxt(n){return class extends EO{constructor(){super(...arguments),this.type=Oa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,s)=>{var r;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!s.engine||typeof s.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const i=s.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)i.set(c.nodeInterfaceId,t[c.id]);const o=await s.engine.runGraph(this.subgraph,i,s.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(r=o.get(c.nodeId))===null||r===void 0?void 0:r.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(s=>s.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new en("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,s){const r=new en(t.name,void 0);return new Proxy(r,{get:(i,o)=>{var a,c,d;if(Axt.includes(o)||o in i||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(i,o);let u;if(s){const h=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(g=>Cy.isGraphInputNode(g)&&g.graphInterfaceId===t.id);u=h==null?void 0:h.outputs.placeholder.id}else{const h=(c=this.subgraph)===null||c===void 0?void 0:c.nodes.find(g=>wy.isGraphOutputNode(g)&&g.graphInterfaceId===t.id);u=h==null?void 0:h.inputs.placeholder.id}const _=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(h=>{var g;return u===((g=s?h.from:h.to)===null||g===void 0?void 0:g.id)}),m=s?_==null?void 0:_.to:_==null?void 0:_.from;if(m)return Reflect.get(m,o)}})}}}class bp{static fromGraph(e,t){return new bp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Oa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this._name="Subgraph",this.events={nameChanged:new Vt(this),updated:new Vt(this)},this.hooks={beforeLoad:new ds(this),afterSave:new ds(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,s=m=>{const h=Dr();return t.set(m,h),h},r=m=>{const h=t.get(m);if(!h)throw new Error(`Unable to create graph from template: Could not map old id ${m} to new id`);return h},i=m=>wb(m,h=>({id:s(h.id),templateId:h.id,value:h.value})),o=this.nodes.map(m=>({...m,id:s(m.id),inputs:i(m.inputs),outputs:i(m.outputs)})),a=this.connections.map(m=>({id:s(m.id),from:r(m.from),to:r(m.to)})),c=this.inputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),d=this.outputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),u={id:Dr(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new _c(this.editor)),e.load(u).forEach(m=>console.warn(m)),e.template=this,e}}class Nxt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new Vt(this),beforeRegisterNodeType:new kn(this),registerNodeType:new Vt(this),beforeUnregisterNodeType:new kn(this),unregisterNodeType:new Vt(this),beforeAddGraphTemplate:new kn(this),addGraphTemplate:new Vt(this),beforeRemoveGraphTemplate:new kn(this),removeGraphTemplate:new Vt(this),registerGraph:new Vt(this),unregisterGraph:new Vt(this)},this.hooks={save:new ds(this),load:new ds(this)},this.graphTemplateEvents=Qs(),this.graphTemplateHooks=Qs(),this.graphEvents=Qs(),this.graphHooks=Qs(),this.nodeEvents=Qs(),this.nodeHooks=Qs(),this.connectionEvents=Qs(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new _c(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(Cy),this.registerNodeType(wy)}registerNodeType(e,t){var s,r;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const i=new e;this._nodeTypes.set(i.type,{type:e,category:(s=t==null?void 0:t.category)!==null&&s!==void 0?s:"default",title:(r=t==null?void 0:t.title)!==null&&r!==void 0?r:i.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=Mxt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Oa(e);for(const s of[this.graph,...this.graphs.values()]){const r=s.nodes.filter(i=>i.type===t);for(const i of r)s.removeNode(i)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(s=>{const r=new bp(s,this);this.addGraphTemplate(r)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(s=>console.warn(s)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function Oxt(n,e){const t=new Map;e.graphs.forEach(s=>{s.nodes.forEach(r=>t.set(r.id,r))}),n.forEach((s,r)=>{const i=t.get(r);i&&s.forEach((o,a)=>{const c=i.outputs[a];c&&(c.value=o)})})}class xO extends Error{constructor(){super("Cycle detected")}}function Ixt(n){return typeof n=="string"}function CO(n,e){const t=new Map,s=new Map,r=new Map;let i,o;if(n instanceof _c)i=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");i=n,o=e}i.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),i.forEach(d=>{const u=o.filter(m=>m.from&&t.get(m.from.id)===d.id),_=new Set(u.map(m=>t.get(m.to.id)).filter(Ixt));s.set(d.id,_),r.set(d,u)});const a=i.slice();o.forEach(d=>{const u=a.findIndex(_=>t.get(d.to.id)===_.id);u>=0&&a.splice(u,1)});const c=[];for(;a.length>0;){const d=a.pop();c.push(d);const u=s.get(d.id);for(;u.size>0;){const _=u.values().next().value;if(u.delete(_),Array.from(s.values()).every(m=>!m.has(_))){const m=i.find(h=>h.id===_);a.push(m)}}}if(Array.from(s.values()).some(d=>d.size>0))throw new xO;return{calculationOrder:c,connectionsFromNode:r,interfaceIdToNodeId:t}}function kxt(n,e){try{return CO(n,e),!1}catch(t){if(t instanceof xO)return!0;throw t}}var Yn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Yn||(Yn={}));class Dxt{get status(){return this.isRunning?Yn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new kn(this),afterRun:new Vt(this),statusChange:new Vt(this),beforeNodeCalculation:new Vt(this),afterNodeCalculation:new Vt(this)},this.hooks={gatherCalculationData:new ds(this),transferData:new yO},this.recalculateOrder=!0,this.internalStatus=Yn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,s)=>{s.graph&&!s.graph.loading&&s.graph.activeTransactions===0&&this.internalOnChange(s,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Yn.Stopped&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Yn.Idle&&(this.internalStatus=Yn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Yn.Paused&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Yn.Idle||this.internalStatus===Yn.Paused)&&(this.internalStatus=Yn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const s=await this.execute(e,...t);return this.events.afterRun.emit(s),s}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};e=i}if(t.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};t=i}const s=new vO(e,t);let r=this.editor.graph.connections.slice();return t.allowMultipleConnections||(r=r.filter(i=>i.to!==t)),r.push(s),kxt(this.editor.graph.nodes,r)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(i=>i.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(s=>{if(!(s in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${s}"`)})}internalOnChange(e,t){this.internalStatus===Yn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const s of e)for(const r of[...Object.values(s.inputs),...Object.values(s.outputs)])if(r.templateId===t)return r;return null}}class Lxt extends Dxt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,s){this.order.has(e.id)||this.order.set(e.id,CO(e));const{calculationOrder:r,connectionsFromNode:i}=this.order.get(e.id),o=new Map;for(const a of r){const c={};Object.entries(a.inputs).forEach(([u,_])=>{c[u]=this.getInterfaceValue(t,_.id)}),this.events.beforeNodeCalculation.emit({inputValues:c,node:a});let d;if(a.calculate)d=await a.calculate(c,{globalValues:s,engine:this});else{d={};for(const[u,_]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,_.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),i.has(a)&&i.get(a).forEach(u=>{var _;const m=(_=Object.entries(a.outputs).find(([,g])=>g.id===u.from.id))===null||_===void 0?void 0:_[0];if(!m)throw new Error(`Could not find key for interface ${u.from.id} +Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const s=this.proxies.indexOf(t);s>=0&&this.proxies.splice(s,1)}}class Vt extends io{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class kn extends io{constructor(e){super(),this.entity=e}emit(e){let t=!1;const s=()=>[t=!0];for(const r of Array.from(this.listeners.values()))if(r(e,s,this.entity),t)return{prevented:!0};return{prevented:!1}}}class yO extends io{execute(e,t){let s=e;for(const r of this.listeners)s=r(s,t);return s}}class ds extends yO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class Rxt extends io{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const s of this.listeners)t.push(s(e,this.entity));return t}}function Xs(){const n=Symbol(),e=new Map,t=new Set,s=(c,d)=>{d instanceof io&&d.registerProxy(n,()=>{var u,_;return(_=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&_!==void 0?_:[]})},r=c=>{const d=new io;e.set(c,d),t.forEach(u=>s(c,u[c]))},i=c=>{t.add(c);for(const d of e.keys())s(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof io&&c[d].unregisterProxy(n);t.delete(c)},a=()=>{t.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?i:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||r(d),e.get(d))}})}class Jw{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Vt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class vO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),this.from=e,this.to=t}}function wb(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>[t,e(s)]))}class EO{constructor(){this._title="",this.id=Dr(),this.events={loaded:new Vt(this),beforeAddInput:new kn(this),addInput:new Vt(this),beforeRemoveInput:new kn(this),removeInput:new Vt(this),beforeAddOutput:new kn(this),addOutput:new Vt(this),beforeRemoveOutput:new kn(this),removeOutput:new Vt(this),beforeTitleChanged:new kn(this),titleChanged:new Vt(this),update:new Vt(this)},this.hooks={beforeLoad:new ds(this),afterSave:new ds(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,s])=>{this.inputs[t]&&(this.inputs[t].load(s),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,s])=>{this.outputs[t]&&(this.outputs[t].load(s),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=wb(this.inputs,r=>r.save()),t=wb(this.outputs,r=>r.save()),s={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(s)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,s){s.isInput=e==="input",s.nodeId=this.id,s.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:s}))}addInterface(e,t,s){const r=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,i=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return r.emit(s).prevented?!1:(o[t]=s,this.initializeIntf(e,t,s),i.emit(s),!0)}removeInterface(e,t){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,r=e==="input"?this.events.removeInput:this.events.removeOutput,i=e==="input"?this.inputs[t]:this.outputs[t];if(!i||s.emit(i).prevented)return!1;if(i.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===i||a.to===i).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return i.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],r.emit(i),!0}}let SO=class extends EO{load(e){super.load(e)}save(){return super.save()}};function Ka(n){return class extends SO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(s,r)=>n.calculate.call(this,s,r):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(s=>{const r=t[s]();e==="input"?this.addInput(s,r):this.addOutput(s,r)})}}}class en{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Dr(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Vt(this),beforeSetValue:new kn(this),setValue:new Vt(this),updated:new Vt(this)},this.hooks={load:new ds(this),save:new ds(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Ma="__baklava_SubgraphInputNode",Na="__baklava_SubgraphOutputNode";class TO extends SO{constructor(){super(),this.graphInterfaceId=Dr()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class Cy extends TO{constructor(){super(...arguments),this.type=Ma,this.inputs={name:new en("Name","Input")},this.outputs={placeholder:new en("Value",void 0)}}static isGraphInputNode(e){return e.type===Ma}}class wy extends TO{constructor(){super(...arguments),this.type=Na,this.inputs={name:new en("Name","Output"),placeholder:new en("Value",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Na}}class _c{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new kn(this),addNode:new Vt(this),beforeRemoveNode:new kn(this),removeNode:new Vt(this),beforeAddConnection:new kn(this),addConnection:new Vt(this),checkConnection:new kn(this),beforeRemoveConnection:new kn(this),removeConnection:new Vt(this)},this.hooks={save:new ds(this),load:new ds(this),checkConnection:new Rxt(this)},this.nodeEvents=Xs(),this.nodeHooks=Xs(),this.connectionEvents=Xs(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(s=>t.includes(s.from)||t.includes(s.to)).forEach(s=>this.removeConnection(s)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const s=this.checkConnection(e,t);if(!s.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const i of s.connectionsInDanger){const o=this.connections.find(a=>a.id===i.id);o&&this.removeConnection(o)}const r=new Jw(s.dummyConnection.from,s.dummyConnection.to);return this.internalAddConnection(r),r}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const s=this.findNodeById(e.nodeId),r=this.findNodeById(t.nodeId);if(s&&r&&s===r)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const i=this.hooks.checkConnection.execute({from:e,to:t});if(i.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(i.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new vO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const s in t.inputs){const r=t.inputs[s];if(r.id===e)return r}for(const s in t.outputs){const r=t.outputs[s];if(r.id===e)return r}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let s=this.connections.length-1;s>=0;s--)this.removeConnection(this.connections[s]);for(let s=this.nodes.length-1;s>=0;s--)this.removeNode(this.nodes[s]);this.id=e.id;for(const s of e.nodes){const r=this.editor.nodeTypes.get(s.type);if(!r){t.push(`Node type ${s.type} is not registered`);continue}const i=new r.type;this.addNode(i),i.load(s)}for(const s of e.connections){const r=this.findNodeInterface(s.from),i=this.findNodeInterface(s.to);if(r)if(i){const o=new Jw(r,i);o.id=s.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${s.to}`);continue}else{t.push(`Could not find interface with id ${s.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const Jl="__baklava_GraphNode-";function Oa(n){return Jl+n.id}const Axt=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function Mxt(n){return class extends EO{constructor(){super(...arguments),this.type=Oa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,s)=>{var r;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!s.engine||typeof s.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const i=s.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)i.set(c.nodeInterfaceId,t[c.id]);const o=await s.engine.runGraph(this.subgraph,i,s.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(r=o.get(c.nodeId))===null||r===void 0?void 0:r.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(s=>s.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new en("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,s){const r=new en(t.name,void 0);return new Proxy(r,{get:(i,o)=>{var a,c,d;if(Axt.includes(o)||o in i||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(i,o);let u;if(s){const h=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(g=>Cy.isGraphInputNode(g)&&g.graphInterfaceId===t.id);u=h==null?void 0:h.outputs.placeholder.id}else{const h=(c=this.subgraph)===null||c===void 0?void 0:c.nodes.find(g=>wy.isGraphOutputNode(g)&&g.graphInterfaceId===t.id);u=h==null?void 0:h.inputs.placeholder.id}const _=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(h=>{var g;return u===((g=s?h.from:h.to)===null||g===void 0?void 0:g.id)}),m=s?_==null?void 0:_.to:_==null?void 0:_.from;if(m)return Reflect.get(m,o)}})}}}class bp{static fromGraph(e,t){return new bp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Oa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this._name="Subgraph",this.events={nameChanged:new Vt(this),updated:new Vt(this)},this.hooks={beforeLoad:new ds(this),afterSave:new ds(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,s=m=>{const h=Dr();return t.set(m,h),h},r=m=>{const h=t.get(m);if(!h)throw new Error(`Unable to create graph from template: Could not map old id ${m} to new id`);return h},i=m=>wb(m,h=>({id:s(h.id),templateId:h.id,value:h.value})),o=this.nodes.map(m=>({...m,id:s(m.id),inputs:i(m.inputs),outputs:i(m.outputs)})),a=this.connections.map(m=>({id:s(m.id),from:r(m.from),to:r(m.to)})),c=this.inputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),d=this.outputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),u={id:Dr(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new _c(this.editor)),e.load(u).forEach(m=>console.warn(m)),e.template=this,e}}class Nxt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new Vt(this),beforeRegisterNodeType:new kn(this),registerNodeType:new Vt(this),beforeUnregisterNodeType:new kn(this),unregisterNodeType:new Vt(this),beforeAddGraphTemplate:new kn(this),addGraphTemplate:new Vt(this),beforeRemoveGraphTemplate:new kn(this),removeGraphTemplate:new Vt(this),registerGraph:new Vt(this),unregisterGraph:new Vt(this)},this.hooks={save:new ds(this),load:new ds(this)},this.graphTemplateEvents=Xs(),this.graphTemplateHooks=Xs(),this.graphEvents=Xs(),this.graphHooks=Xs(),this.nodeEvents=Xs(),this.nodeHooks=Xs(),this.connectionEvents=Xs(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new _c(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(Cy),this.registerNodeType(wy)}registerNodeType(e,t){var s,r;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const i=new e;this._nodeTypes.set(i.type,{type:e,category:(s=t==null?void 0:t.category)!==null&&s!==void 0?s:"default",title:(r=t==null?void 0:t.title)!==null&&r!==void 0?r:i.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=Mxt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Oa(e);for(const s of[this.graph,...this.graphs.values()]){const r=s.nodes.filter(i=>i.type===t);for(const i of r)s.removeNode(i)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(s=>{const r=new bp(s,this);this.addGraphTemplate(r)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(s=>console.warn(s)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function Oxt(n,e){const t=new Map;e.graphs.forEach(s=>{s.nodes.forEach(r=>t.set(r.id,r))}),n.forEach((s,r)=>{const i=t.get(r);i&&s.forEach((o,a)=>{const c=i.outputs[a];c&&(c.value=o)})})}class xO extends Error{constructor(){super("Cycle detected")}}function Ixt(n){return typeof n=="string"}function CO(n,e){const t=new Map,s=new Map,r=new Map;let i,o;if(n instanceof _c)i=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");i=n,o=e}i.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),i.forEach(d=>{const u=o.filter(m=>m.from&&t.get(m.from.id)===d.id),_=new Set(u.map(m=>t.get(m.to.id)).filter(Ixt));s.set(d.id,_),r.set(d,u)});const a=i.slice();o.forEach(d=>{const u=a.findIndex(_=>t.get(d.to.id)===_.id);u>=0&&a.splice(u,1)});const c=[];for(;a.length>0;){const d=a.pop();c.push(d);const u=s.get(d.id);for(;u.size>0;){const _=u.values().next().value;if(u.delete(_),Array.from(s.values()).every(m=>!m.has(_))){const m=i.find(h=>h.id===_);a.push(m)}}}if(Array.from(s.values()).some(d=>d.size>0))throw new xO;return{calculationOrder:c,connectionsFromNode:r,interfaceIdToNodeId:t}}function kxt(n,e){try{return CO(n,e),!1}catch(t){if(t instanceof xO)return!0;throw t}}var Yn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Yn||(Yn={}));class Dxt{get status(){return this.isRunning?Yn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new kn(this),afterRun:new Vt(this),statusChange:new Vt(this),beforeNodeCalculation:new Vt(this),afterNodeCalculation:new Vt(this)},this.hooks={gatherCalculationData:new ds(this),transferData:new yO},this.recalculateOrder=!0,this.internalStatus=Yn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,s)=>{s.graph&&!s.graph.loading&&s.graph.activeTransactions===0&&this.internalOnChange(s,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Yn.Stopped&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Yn.Idle&&(this.internalStatus=Yn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Yn.Paused&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Yn.Idle||this.internalStatus===Yn.Paused)&&(this.internalStatus=Yn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const s=await this.execute(e,...t);return this.events.afterRun.emit(s),s}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};e=i}if(t.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};t=i}const s=new vO(e,t);let r=this.editor.graph.connections.slice();return t.allowMultipleConnections||(r=r.filter(i=>i.to!==t)),r.push(s),kxt(this.editor.graph.nodes,r)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(i=>i.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(s=>{if(!(s in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${s}"`)})}internalOnChange(e,t){this.internalStatus===Yn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const s of e)for(const r of[...Object.values(s.inputs),...Object.values(s.outputs)])if(r.templateId===t)return r;return null}}class Lxt extends Dxt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,s){this.order.has(e.id)||this.order.set(e.id,CO(e));const{calculationOrder:r,connectionsFromNode:i}=this.order.get(e.id),o=new Map;for(const a of r){const c={};Object.entries(a.inputs).forEach(([u,_])=>{c[u]=this.getInterfaceValue(t,_.id)}),this.events.beforeNodeCalculation.emit({inputValues:c,node:a});let d;if(a.calculate)d=await a.calculate(c,{globalValues:s,engine:this});else{d={};for(const[u,_]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,_.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),i.has(a)&&i.get(a).forEach(u=>{var _;const m=(_=Object.entries(a.outputs).find(([,g])=>g.id===u.from.id))===null||_===void 0?void 0:_[0];if(!m)throw new Error(`Could not find key for interface ${u.from.id} This is likely a Baklava internal issue. Please report it on GitHub.`);const h=this.hooks.transferData.execute(d[m],u);u.to.allowMultipleConnections?t.has(u.to.id)?t.get(u.to.id).push(h):t.set(u.to.id,[h]):t.set(u.to.id,h)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const s of e.nodes)Object.values(s.inputs).forEach(r=>{r.connectionCount===0&&t.set(r.id,r.value)}),s.calculate||Object.values(s.outputs).forEach(r=>{t.set(r.id,r.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const Pxt=["INPUT","TEXTAREA","SELECT"];function wO(n){return Pxt.includes(n.tagName)}let Rb=null;function Fxt(n){Rb=n}function us(){if(!Rb)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Rb}}function Ns(){const{viewModel:n}=us();return{graph:Bd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function RO(n){const{graph:e}=Ns(),t=ot(null),s=ot(null);return{dragging:et(()=>!!t.value),onPointerDown:c=>{t.value={x:c.pageX,y:c.pageY},s.value={x:n.value.x,y:n.value.y}},onPointerMove:c=>{if(t.value){const d=c.pageX-t.value.x,u=c.pageY-t.value.y;n.value.x=s.value.x+d/e.value.scaling,n.value.y=s.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,s.value=null}}}function AO(n,e,t){if(!e.template)return!1;if(Oa(e.template)===t)return!0;const s=n.graphTemplates.find(i=>Oa(i)===t);return s?s.nodes.filter(i=>i.type.startsWith(Jl)).some(i=>AO(n,e,i.type)):!1}function MO(n){return et(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,r])=>r.category)),s=[];for(const r of t.values()){let i=e.filter(([,o])=>o.category===r);n.value.displayedGraph.template?i=i.filter(([o])=>!AO(n.value.editor,n.value.displayedGraph,o)):i=i.filter(([o])=>![Ma,Na].includes(o)),i.length>0&&s.push({name:r,nodeTypes:Object.fromEntries(i)})}return s.sort((r,i)=>r.name==="default"?-1:i.name==="default"||r.name>i.name?1:-1),s})}function NO(){const{graph:n}=Ns();return{transform:(t,s)=>{const r=t/n.value.scaling-n.value.panning.x,i=s/n.value.scaling-n.value.panning.y;return[r,i]}}}function Uxt(){const{graph:n}=Ns();let e=[],t=-1,s={x:0,y:0};const r=et(()=>n.value.panning),i=RO(r),o=et(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(h,g,f)=>{const y=[h/n.value.scaling-n.value.panning.x,g/n.value.scaling-n.value.panning.y],b=[h/f-n.value.panning.x,g/f-n.value.panning.y],v=[b[0]-y[0],b[1]-y[1]];n.value.panning.x+=v[0],n.value.panning.y+=v[1],n.value.scaling=f},c=h=>{h.preventDefault();let g=h.deltaY;h.deltaMode===1&&(g*=32);const f=n.value.scaling*(1-g/3e3);a(h.offsetX,h.offsetY,f)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...i,onPointerDown:h=>{if(e.push(h),i.onPointerDown(h),e.length===2){const{ax:g,ay:f,bx:y,by:b}=d();s={x:g+(y-g)/2,y:f+(b-f)/2}}},onPointerMove:h=>{for(let g=0;g0){const R=n.value.scaling*(1+(S-t)/500);a(s.x,s.y,R)}t=S}else i.onPointerMove(h)},onPointerUp:h=>{e=e.filter(g=>g.pointerId!==h.pointerId),t=-1,i.onPointerUp()},onMouseWheel:c}}var vs=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(vs||{});const OO=Symbol();function Bxt(){const{graph:n}=Ns(),e=ot(null),t=ot(null),s=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},r=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(c=>c.to===t.value);t.value.isInput&&a?(e.value={status:vs.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:vs.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},i=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const c=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?vs.ALLOWED:vs.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=vs.NONE,n.value.connections.forEach(c=>{c.isInDanger=!1}))};return na(OO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:r,onMouseUp:i,hoveredOver:o}}function Gxt(n){const e=ot(!1),t=ot(0),s=ot(0),r=MO(n),{transform:i}=NO(),o=et(()=>{let u=[];const _={};for(const h of r.value){const g=Object.entries(h.nodeTypes).map(([f,y])=>({label:y.title,value:"addNode:"+f}));h.name==="default"?u=g:_[h.name]=g}const m=[...Object.entries(_).map(([h,g])=>({label:h,submenu:g}))];return m.length>0&&u.length>0&&m.push({isDivider:!0}),m.push(...u),m}),a=et(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){const _=u.target;if(!(_ instanceof Element)||wO(_))return;u.preventDefault(),e.value=!0;const m=_.getBoundingClientRect(),g=_.closest(".baklava-editor").getBoundingClientRect();t.value=m.x+u.offsetX-g.x,s.value=m.y+u.offsetY-g.y}function d(u){if(u.startsWith("addNode:")){const _=u.substring(8),m=n.value.editor.nodeTypes.get(_);if(!m)return;const h=Hn(new m.type);n.value.displayedGraph.addNode(h);const[g,f]=i(t.value,s.value);h.position.x=g,h.position.y=f}else if(u.startsWith("command:")){const _=u.substring(8);n.value.commandHandler.canExecuteCommand(_)&&n.value.commandHandler.executeCommand(_)}}return{show:e,x:t,y:s,items:a,open:c,onClick:d}}const Ld="START_SELECTION_BOX";function Vxt(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=et(()=>t.value.nodes),r=ot(!1),i=ot(!1),o=ot([0,0]),a=ot([0,0]);Tn(e,()=>{e.value.commandHandler.hasCommand(Ld)||(e.value.commandHandler.registerCommand(Ld,{canExecute:()=>!0,execute(){r.value=!0}}),e.value.commandHandler.registerHotkey(["b"],Ld))},{immediate:!0});function c(b){return[b.clientX-n.value.getBoundingClientRect().left,b.clientY-n.value.getBoundingClientRect().top]}function d(b){return r.value?(i.value=!0,r.value=!1,o.value=c(b),a.value=c(b),document.addEventListener("pointermove",u),document.addEventListener("pointerup",_),!0):!1}function u(b){o.value=c(b)}function _(b){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",_),o.value=c(b),i.value=!1;const v=m();for(const E of v)e.value.displayedGraph.selectedNodes.push(E)}function m(){const b=h(),E=document.querySelector(".baklava-editor").getBoundingClientRect();return s.value.filter(S=>{const R=g(S,E);return f(b,R)})}function h(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function g(b,v){const E=document.getElementById(b.id),S=E?E.getBoundingClientRect():{x:0,y:0,width:0,height:0},R=S.x-v.left,w=S.y-v.top;return{left:R,top:w,right:R+S.width,bottom:w+S.height}}function f(b,v){return b.leftv.left&&b.topv.top}function y(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return Hn({startSelection:r,isSelecting:i,start:o,end:a,onPointerDown:d,getStyles:y})}const zxt=cn({setup(){const{viewModel:n}=us(),{graph:e}=Ns();return{styles:et(()=>{const s=n.value.settings.background,r=e.value.panning.x*e.value.scaling,i=e.value.panning.y*e.value.scaling,o=e.value.scaling*s.gridSize,a=o/s.gridDivision,c=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>s.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${r}px top ${i}px`,backgroundSize:`${c} ${d}`}})}}}),sn=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t};function Hxt(n,e,t,s,r,i){return T(),x("div",{class:"background",style:Bt(n.styles)},null,4)}const qxt=sn(zxt,[["render",Hxt]]);function Yxt(n){return y2()?(mI(n),!0):!1}function Ry(n){return typeof n=="function"?n():bt(n)}const IO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $xt=Object.prototype.toString,Wxt=n=>$xt.call(n)==="[object Object]",Pd=()=>{},Kxt=jxt();function jxt(){var n,e;return IO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Qxt(n,e,t=!1){return e.reduce((s,r)=>(r in n&&(!t||n[r]!==void 0)&&(s[r]=n[r]),s),{})}function Xxt(n,e={}){if(!pn(n))return qI(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const s in n.value)t[s]=HI(()=>({get(){return n.value[s]},set(r){var i;if((i=Ry(e.replaceRef))!=null?i:!0)if(Array.isArray(n.value)){const a=[...n.value];a[s]=r,n.value=a}else{const a={...n.value,[s]:r};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[s]=r}}));return t}function bl(n){var e;const t=Ry(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Ay=IO?window:void 0;function Ll(...n){let e,t,s,r;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,s,r]=n,e=Ay):[e,t,s,r]=n,!e)return Pd;Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,_,m,h)=>(u.addEventListener(_,m,h),()=>u.removeEventListener(_,m,h)),c=Tn(()=>[bl(e),Ry(r)],([u,_])=>{if(o(),!u)return;const m=Wxt(_)?{..._}:_;i.push(...t.flatMap(h=>s.map(g=>a(u,h,g,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return Yxt(d),d}let e2=!1;function kO(n,e,t={}){const{window:s=Ay,ignore:r=[],capture:i=!0,detectIframe:o=!1}=t;if(!s)return Pd;Kxt&&!e2&&(e2=!0,Array.from(s.document.body.children).forEach(m=>m.addEventListener("click",Pd)),s.document.documentElement.addEventListener("click",Pd));let a=!0;const c=m=>r.some(h=>{if(typeof h=="string")return Array.from(s.document.querySelectorAll(h)).some(g=>g===m.target||m.composedPath().includes(g));{const g=bl(h);return g&&(m.target===g||m.composedPath().includes(g))}}),u=[Ll(s,"click",m=>{const h=bl(n);if(!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(a=!c(m)),!a){a=!0;return}e(m)}},{passive:!0,capture:i}),Ll(s,"pointerdown",m=>{const h=bl(n);a=!c(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),o&&Ll(s,"blur",m=>{setTimeout(()=>{var h;const g=bl(n);((h=s.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const DO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Zxt=Object.keys(DO);function Jxt(n={}){const{target:e=Ay}=n,t=ot(!1),s=ot(n.initialValue||{});Object.assign(s.value,DO,s.value);const r=i=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(i.pointerType))&&(s.value=Qxt(i,Zxt,!1))};if(e){const i={passive:!0};Ll(e,["pointerdown","pointermove","pointerup"],r,i),Ll(e,"pointerleave",()=>t.value=!1,i)}return{...Xxt(s),isInside:t}}const eCt=["onMouseenter","onMouseleave","onClick"],tCt={class:"flex-fill"},nCt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},sCt=l("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[l("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),rCt=[sCt],My=cn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,s=e;let r=null;const i=ot(null),o=ot(-1),a=ot(0),c=ot({x:!1,y:!1}),d=et(()=>t.flippable&&(c.value.x||t.isFlipped.x)),u=et(()=>t.flippable&&(c.value.y||t.isFlipped.y)),_=et(()=>{const v={};return t.isNested||(v.top=(u.value?t.y-a.value:t.y)+"px",v.left=t.x+"px"),v}),m=et(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),h=et(()=>t.items.map(v=>({...v,hover:!1})));Tn([()=>t.y,()=>t.items],()=>{var v,E,S,R;a.value=t.items.length*30;const w=((E=(v=i.value)==null?void 0:v.parentElement)==null?void 0:E.offsetWidth)??0,A=((R=(S=i.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!t.isNested&&t.x>w*.75,c.value.y=!t.isNested&&t.y+a.value>A-20}),kO(i,()=>{t.modelValue&&s("update:modelValue",!1)});const g=v=>{!v.submenu&&v.value&&(s("click",v.value),s("update:modelValue",!1))},f=v=>{s("click",v),o.value=-1,t.isNested||s("update:modelValue",!1)},y=(v,E)=>{t.items[E].submenu&&(o.value=E,r!==null&&(clearTimeout(r),r=null))},b=(v,E)=>{t.items[E].submenu&&(r=window.setTimeout(()=>{o.value=-1,r=null},200))};return(v,E)=>{const S=Je("ContextMenu",!0);return T(),at(ir,{name:"slide-fade"},{default:Ie(()=>[k(l("div",{ref_key:"el",ref:i,class:Le(["baklava-context-menu",m.value]),style:Bt(_.value)},[(T(!0),x(Fe,null,We(h.value,(R,w)=>(T(),x(Fe,null,[R.isDivider?(T(),x("div",{key:`d-${w}`,class:"divider"})):(T(),x("div",{key:`i-${w}`,class:Le(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>y(A,w),onMouseleave:A=>b(A,w),onClick:$(A=>g(R),["stop","prevent"])},[l("div",tCt,Y(R.label),1),R.submenu?(T(),x("div",nCt,rCt)):B("",!0),R.submenu?(T(),at(S,{key:1,"model-value":o.value===w,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:v.flippable,onClick:f},null,8,["model-value","items","is-flipped","flippable"])):B("",!0)],42,eCt))],64))),256))],6),[[ht,v.modelValue]])]),_:1})}}}),iCt={},oCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},aCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),lCt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),cCt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),dCt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),uCt=[aCt,lCt,cCt,dCt];function pCt(n,e){return T(),x("svg",oCt,uCt)}const LO=sn(iCt,[["render",pCt]]),fCt=["id"],_Ct={key:0,class:"__tooltip"},mCt={key:2,class:"align-middle"},t2=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(y,b=100)=>{const v=typeof(y==null?void 0:y.toString)=="function"?String(y):"";return v.length>b?v.slice(0,b)+"...":v},t=n,{viewModel:s}=us(),{hoveredOver:r,temporaryConnection:i}=os(OO),o=ot(null),a=et(()=>t.intf.connectionCount>0),c=ot(!1),d=et(()=>s.value.settings.displayValueOnHover&&c.value),u=et(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),_=et(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),m=()=>{c.value=!0,r(t.intf)},h=()=>{c.value=!1,r(void 0)},g=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},f=()=>{const y=s.value.displayedGraph.sidebar;y.nodeId=t.node.id,y.optionName=t.intf.name,y.visible=!0};return dr(g),nc(g),(y,b)=>{var v;return T(),x("div",{id:y.intf.id,ref_key:"el",ref:o,class:Le(["baklava-node-interface",u.value])},[y.intf.port?(T(),x("div",{key:0,class:Le(["__port",{"--selected":((v=bt(i))==null?void 0:v.from)===y.intf}]),onPointerover:m,onPointerout:h},[on(y.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),x("span",_Ct,Y(e(y.intf.value)),1)):B("",!0)])],34)):B("",!0),_.value?(T(),at(Pu(y.intf.component),{key:1,modelValue:y.intf.value,"onUpdate:modelValue":b[0]||(b[0]=E=>y.intf.value=E),node:y.node,intf:y.intf,onOpenSidebar:f},null,40,["modelValue","node","intf"])):(T(),x("span",mCt,Y(y.intf.name),1))],10,fCt)}}}),hCt=["id","data-node-type"],gCt={class:"__title-label"},bCt={class:"__menu"},yCt={class:"__outputs"},vCt={class:"__inputs"},ECt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,s=e,{viewModel:r}=us(),{graph:i,switchGraph:o}=Ns(),a=ot(null),c=ot(!1),d=ot(""),u=ot(null),_=ot(!1),m=ot(!1),h=et(()=>{const V=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Jl)&&V.push({value:"editSubgraph",label:"Edit Subgraph"}),V}),g=et(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),f=et(()=>({"--reverse-y":t.node.reverseY??r.value.settings.nodes.reverseY})),y=et(()=>{var V,ee;return{top:`${((V=t.node.position)==null?void 0:V.y)??0}px`,left:`${((ee=t.node.position)==null?void 0:ee.x)??0}px`,"--width":`${t.node.width??r.value.settings.nodes.defaultWidth}px`}}),b=et(()=>Object.values(t.node.inputs).filter(V=>!V.hidden)),v=et(()=>Object.values(t.node.outputs).filter(V=>!V.hidden)),E=()=>{s("select")},S=V=>{t.selected||E(),s("start-drag",V)},R=()=>{m.value=!0},w=async V=>{var ee;switch(V){case"delete":i.value.removeNode(t.node);break;case"rename":d.value=t.node.title,c.value=!0,await Ue(),(ee=u.value)==null||ee.focus();break;case"editSubgraph":o(t.node.template);break}},A=()=>{t.node.title=d.value,c.value=!1},I=()=>{a.value&&r.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=V=>{_.value=!0,V.preventDefault()},M=V=>{if(!_.value)return;const ee=t.node.width+V.movementX/i.value.scaling,O=r.value.settings.nodes.minWidth,H=r.value.settings.nodes.maxWidth;t.node.width=Math.max(O,Math.min(H,ee))},G=()=>{_.value=!1};return dr(()=>{I(),window.addEventListener("mousemove",M),window.addEventListener("mouseup",G)}),nc(I),La(()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",G)}),(V,ee)=>(T(),x("div",{id:V.node.id,ref_key:"el",ref:a,class:Le(["baklava-node",g.value]),style:Bt(y.value),"data-node-type":V.node.type,onPointerdown:E},[bt(r).settings.nodes.resizable?(T(),x("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):B("",!0),on(V.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:$(S,["self","stop"])},[c.value?k((T(),x("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ee[1]||(ee[1]=O=>d.value=O),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:A,onKeydown:Jn(A,["enter"])},null,544)),[[ae,d.value]]):(T(),x(Fe,{key:0},[l("div",gCt,Y(V.node.title),1),l("div",bCt,[z(LO,{class:"--clickable",onClick:R}),z(bt(My),{modelValue:m.value,"onUpdate:modelValue":ee[0]||(ee[0]=O=>m.value=O),x:0,y:0,items:h.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),on(V.$slots,"content",{},()=>[l("div",{class:Le(["__content",f.value]),onKeydown:ee[2]||(ee[2]=Jn($(()=>{},["stop"]),["delete"]))},[l("div",yCt,[(T(!0),x(Fe,null,We(v.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"output",node:V.node,intf:O},()=>[z(t2,{node:V.node,intf:O},null,8,["node","intf"])])),128))]),l("div",vCt,[(T(!0),x(Fe,null,We(b.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"input",node:V.node,intf:O},()=>[z(t2,{node:V.node,intf:O},null,8,["node","intf"])])),128))])],34)])],46,hCt))}}),SCt=cn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:vs.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=(o,a)=>{const c=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[c,d]},r=et(()=>{const[o,a]=s(n.x1,n.y1),[c,d]=s(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${c} ${d}`;{const u=.3*Math.abs(o-c);return`M ${o} ${a} C ${o+u} ${a}, ${c-u} ${d}, ${c} ${d}`}}),i=et(()=>({"--temporary":n.isTemporary,"--allowed":n.state===vs.ALLOWED,"--forbidden":n.state===vs.FORBIDDEN}));return{d:r,classes:i}}}),TCt=["d"];function xCt(n,e,t,s,r,i){return T(),x("path",{class:Le(["baklava-connection",n.classes]),d:n.d},null,10,TCt)}const PO=sn(SCt,[["render",xCt]]);function CCt(n){return document.getElementById(n.id)}function Ia(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const wCt=cn({components:{"connection-view":PO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ns();let t;const s=ot({x1:0,y1:0,x2:0,y2:0}),r=et(()=>n.connection.isInDanger?vs.FORBIDDEN:vs.NONE),i=et(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=et(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],c=()=>{const d=Ia(n.connection.from),u=Ia(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{c()}),t.observe(d.node),t.observe(u.node)));const[_,m]=a(d),[h,g]=a(u);s.value={x1:_,y1:m,x2:h,y2:g}};return dr(async()=>{await Ue(),c()}),La(()=>{t&&t.disconnect()}),Tn([i,o],()=>c(),{deep:!0}),{d:s,state:r}}});function RCt(n,e,t,s,r,i){const o=Je("connection-view");return T(),at(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const ACt=sn(wCt,[["render",RCt]]);function Su(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const MCt=cn({components:{"connection-view":PO},props:{connection:{type:Object,required:!0}},setup(n){const e=et(()=>n.connection?n.connection.status:vs.NONE);return{d:et(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const s=Su(Ia(n.connection.from)),r=n.connection.to?Su(Ia(n.connection.to)):[n.connection.mx||s[0],n.connection.my||s[1]];return n.connection.from.isInput?{input:r,output:s}:{input:s,output:r}}),status:e}}});function NCt(n,e,t,s,r,i){const o=Je("connection-view");return T(),at(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const OCt=sn(MCt,[["render",NCt]]),ICt=cn({setup(){const{viewModel:n}=us(),{graph:e}=Ns(),t=ot(null),s=Bd(n.value.settings.sidebar,"width"),r=et(()=>n.value.settings.sidebar.resizable),i=et(()=>{const _=e.value.sidebar.nodeId;return e.value.nodes.find(m=>m.id===_)}),o=et(()=>({width:`${s.value}px`})),a=et(()=>i.value?[...Object.values(i.value.inputs),...Object.values(i.value.outputs)].filter(m=>m.displayInSidebar&&m.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=_=>{var m,h;const g=((h=(m=t.value)==null?void 0:m.parentElement)==null?void 0:h.getBoundingClientRect().width)??500;let f=s.value-_.movementX;f<300?f=300:f>.9*g&&(f=.9*g),s.value=f};return{el:t,graph:e,resizable:r,node:i,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),kCt={class:"__header"},DCt={class:"__node-name"};function LCt(n,e,t,s,r,i){return T(),x("div",{ref:"el",class:Le(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:Bt(n.styles)},[n.resizable?(T(),x("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):B("",!0),l("div",kCt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),l("div",DCt,[l("b",null,Y(n.node?n.node.title:""),1)])]),(T(!0),x(Fe,null,We(n.displayedInterfaces,o=>(T(),x("div",{key:o.id,class:"__interface"},[(T(),at(Pu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const PCt=sn(ICt,[["render",LCt]]),FCt=cn({__name:"Minimap",setup(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=ot(null),r=ot(!1);let i,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var w,A;if(!i)return;i.canvas.width=s.value.offsetWidth,i.canvas.height=s.value.offsetHeight;const I=new Map,C=new Map;for(const O of t.value.nodes){const H=CCt(O),q=(H==null?void 0:H.offsetWidth)??0,L=(H==null?void 0:H.offsetHeight)??0,W=((w=O.position)==null?void 0:w.x)??0,se=((A=O.position)==null?void 0:A.y)??0;I.set(O,{x1:W,y1:se,x2:W+q,y2:se+L}),C.set(O,H)}const M={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const O of I.values())O.x1M.x2&&(M.x2=O.x2),O.y2>M.y2&&(M.y2=O.y2);const G=50;M.x1-=G,M.y1-=G,M.x2+=G,M.y2+=G,a=M;const V=i.canvas.width/i.canvas.height,ee=(a.x2-a.x1)/(a.y2-a.y1);if(V>ee){const O=(V-ee)*(a.y2-a.y1)*.5;a.x1-=O,a.x2+=O}else{const O=a.x2-a.x1,H=a.y2-a.y1,q=(O-V*H)/V*.5;a.y1-=q,a.y2+=q}i.clearRect(0,0,i.canvas.width,i.canvas.height),i.strokeStyle="white";for(const O of t.value.connections){const[H,q]=Su(Ia(O.from)),[L,W]=Su(Ia(O.to)),[se,oe]=u(H,q),[ye,xe]=u(L,W);if(i.beginPath(),i.moveTo(se,oe),e.value.settings.useStraightConnections)i.lineTo(ye,xe);else{const ce=.3*Math.abs(se-ye);i.bezierCurveTo(se+ce,oe,ye-ce,xe,ye,xe)}i.stroke()}i.strokeStyle="lightgray";for(const[O,H]of I.entries()){const[q,L]=u(H.x1,H.y1),[W,se]=u(H.x2,H.y2);i.fillStyle=m(C.get(O)),i.beginPath(),i.rect(q,L,W-q,se-L),i.fill(),i.stroke()}if(r.value){const O=g(),[H,q]=u(O.x1,O.y1),[L,W]=u(O.x2,O.y2);i.fillStyle="rgba(255, 255, 255, 0.2)",i.fillRect(H,q,L-H,W-q)}},u=(w,A)=>[(w-a.x1)/(a.x2-a.x1)*i.canvas.width,(A-a.y1)/(a.y2-a.y1)*i.canvas.height],_=(w,A)=>[w*(a.x2-a.x1)/i.canvas.width+a.x1,A*(a.y2-a.y1)/i.canvas.height+a.y1],m=w=>{if(w){const A=w.querySelector(".__content");if(A){const C=h(A);if(C)return C}const I=h(w);if(I)return I}return"gray"},h=w=>{const A=getComputedStyle(w).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},g=()=>{const w=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,I=w/t.value.scaling-t.value.panning.x,C=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:I,y2:C}},f=w=>{w.button===0&&(o=!0,y(w))},y=w=>{if(o){const[A,I]=_(w.offsetX,w.offsetY),C=g(),M=(C.x2-C.x1)/2,G=(C.y2-C.y1)/2;t.value.panning.x=-(A-M),t.value.panning.y=-(I-G)}},b=()=>{o=!1},v=()=>{r.value=!0},E=()=>{r.value=!1,b()};Tn([r,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const S=et(()=>t.value.nodes.map(w=>w.position)),R=et(()=>t.value.nodes.map(w=>w.width));return Tn([S,R],()=>{d()},{deep:!0}),dr(()=>{i=s.value.getContext("2d"),i.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),La(()=>{clearInterval(c)}),(w,A)=>(T(),x("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:v,onMouseleave:E,onMousedown:$(f,["self"]),onMousemove:$(y,["self"]),onMouseup:b,onContextmenu:A[0]||(A[0]=$(()=>{},["stop","prevent"]))},null,544))}}),UCt=cn({components:{ContextMenu:My,VerticalDots:LO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=us(),{switchGraph:t}=Ns(),s=ot(!1),r=et(()=>n.type.startsWith(Jl));return{showContextMenu:s,hasContextMenu:r,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:c=>{const d=n.type.substring(Jl.length),u=e.value.editor.graphTemplates.find(_=>_.id===d);if(u)switch(c){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),BCt=["data-node-type"],GCt={class:"__title"},VCt={class:"__title-label"},zCt={key:0,class:"__menu"};function HCt(n,e,t,s,r,i){const o=Je("vertical-dots"),a=Je("context-menu");return T(),x("div",{class:"baklava-node --palette","data-node-type":n.type},[l("div",GCt,[l("div",VCt,Y(n.title),1),n.hasContextMenu?(T(),x("div",zCt,[z(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=$(()=>{},["stop","prevent"])),onClick:$(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),z(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>n.showContextMenu=c),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=$(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):B("",!0)])],8,BCt)}const n2=sn(UCt,[["render",HCt]]),qCt={key:0},YCt=cn({__name:"NodePalette",setup(n){const{viewModel:e}=us(),{x:t,y:s}=Jxt(),{transform:r}=NO(),i=MO(e),o=os("editorEl"),a=ot(null),c=et(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:_}=o.value.getBoundingClientRect();return{top:`${s.value-_}px`,left:`${t.value-u}px`}}),d=(u,_)=>{a.value={type:u,nodeInformation:_};const m=()=>{const h=Hn(new _.type);e.value.displayedGraph.addNode(h);const g=o.value.getBoundingClientRect(),[f,y]=r(t.value-g.left,s.value-g.top);h.position.x=f,h.position.y=y,a.value=null,document.removeEventListener("pointerup",m)};document.addEventListener("pointerup",m)};return(u,_)=>(T(),x(Fe,null,[l("div",{class:"baklava-node-palette",onContextmenu:_[0]||(_[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Fe,null,We(bt(i),m=>(T(),x("section",{key:m.name},[m.name!=="default"?(T(),x("h1",qCt,Y(m.name),1)):B("",!0),(T(!0),x(Fe,null,We(m.nodeTypes,(h,g)=>(T(),at(n2,{key:g,type:g,title:h.title,onPointerdown:f=>d(g,h)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),z(ir,{name:"fade"},{default:Ie(()=>[a.value?(T(),x("div",{key:0,class:"baklava-dragged-node",style:Bt(c.value)},[z(n2,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):B("",!0)]),_:1})],64))}});let bd;const $Ct=new Uint8Array(16);function WCt(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd($Ct)}const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function KCt(n,e=0){return En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]}const jCt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s2={randomUUID:jCt};function Tu(n,e,t){if(s2.randomUUID&&!e&&!n)return s2.randomUUID();n=n||{};const s=n.random||(n.rng||WCt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,KCt(s)}const ec="SAVE_SUBGRAPH";function QCt(n,e){const t=()=>{const s=n.value;if(!s.template)throw new Error("Graph template property not set");s.template.update(s.save()),s.template.panning=s.panning,s.template.scaling=s.scaling};e.registerCommand(ec,{canExecute:()=>{var s;return n.value!==((s=n.value.editor)==null?void 0:s.graph)},execute:t})}const XCt={},ZCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},JCt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),ewt=[JCt];function twt(n,e){return T(),x("svg",ZCt,ewt)}const nwt=sn(XCt,[["render",twt]]),swt=cn({components:{"i-arrow":nwt},props:{intf:{type:Object,required:!0}},setup(n){const e=ot(null),t=ot(!1),s=et(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),r=et(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),i=o=>{n.intf.value=typeof o=="string"?o:o.value};return kO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:s,selectedText:r,setSelected:i}}}),rwt=["title"],iwt={class:"__selected"},owt={class:"__text"},awt={class:"__icon"},lwt={class:"__dropdown"},cwt={class:"item --header"},dwt=["onClick"];function uwt(n,e,t,s,r,i){const o=Je("i-arrow");return T(),x("div",{ref:"el",class:Le(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[l("div",iwt,[l("div",owt,Y(n.selectedText),1),l("div",awt,[z(o)])]),z(ir,{name:"slide-fade"},{default:Ie(()=>[k(l("div",lwt,[l("div",cwt,Y(n.intf.name),1),(T(!0),x(Fe,null,We(n.intf.items,(a,c)=>(T(),x("div",{key:c,class:Le(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},Y(typeof a=="string"?a:a.text),11,dwt))),128))],512),[[ht,n.open]])]),_:1})],10,rwt)}const pwt=sn(swt,[["render",uwt]]);class fwt extends en{constructor(e,t,s){super(e,t),this.component=Iu(pwt),this.items=s}}const _wt=cn({props:{intf:{type:Object,required:!0}}});function mwt(n,e,t,s,r,i){return T(),x("div",null,Y(n.intf.value),1)}const hwt=sn(_wt,[["render",mwt]]);class gwt extends en{constructor(e,t){super(e,t),this.component=Iu(hwt),this.setPort(!1)}}const bwt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:et({get:()=>n.modelValue,set:s=>{e("update:modelValue",s)}})}}}),ywt=["placeholder","title"];function vwt(n,e,t,s,r,i){return T(),x("div",null,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,ywt),[[ae,n.v]])])}const Ewt=sn(bwt,[["render",vwt]]);class mc extends en{constructor(){super(...arguments),this.component=Iu(Ewt)}}class FO extends Cy{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new mc("Name","Input").setPort(!1)},this.outputs={placeholder:new en("Connection",void 0)}}}class UO extends wy{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new mc("Name","Output").setPort(!1),placeholder:new en("Connection",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)}}}const BO="CREATE_SUBGRAPH",r2=[Ma,Na];function Swt(n,e,t){const s=()=>n.value.selectedNodes.filter(i=>!r2.includes(i.type)).length>0,r=()=>{const{viewModel:i}=us(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(C=>!r2.includes(C.type)),d=c.flatMap(C=>Object.values(C.inputs)),u=c.flatMap(C=>Object.values(C.outputs)),_=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),m=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),h=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),g=c.map(C=>C.save()),f=h.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),y=new Map,{xLeft:b,xRight:v,yTop:E}=Twt(c);for(const[C,M]of _.entries()){const G=new FO;G.inputs.name.value=M.to.name,g.push({...G.save(),position:{x:v-i.value.settings.nodes.defaultWidth-100,y:E+C*200}}),f.push({id:Tu(),from:G.outputs.placeholder.id,to:M.to.id}),y.set(M.to.id,G.graphInterfaceId)}for(const[C,M]of m.entries()){const G=new UO;G.inputs.name.value=M.from.name,g.push({...G.save(),position:{x:b+100,y:E+C*200}}),f.push({id:Tu(),from:M.from.id,to:G.inputs.placeholder.id}),y.set(M.from.id,G.graphInterfaceId)}const S=Hn(new bp({connections:f,nodes:g,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Oa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=Hn(new R.type);o.addNode(w);const A=Math.round(c.map(C=>C.position.x).reduce((C,M)=>C+M,0)/c.length),I=Math.round(c.map(C=>C.position.y).reduce((C,M)=>C+M,0)/c.length);w.position.x=A,w.position.y=I,_.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[y.get(C.to.id)])}),m.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[y.get(C.from.id)],C.to)}),c.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(ec)&&e.executeCommand(ec),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(BO,{canExecute:s,execute:r})}function Twt(n){const e=n.reduce((r,i)=>{const o=i.position.x;return o{const o=i.position.y;return o{const o=i.position.x+i.width;return o>r?o:r},-1/0),xRight:e,yTop:t}}class i2{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const s=new t.type;e.addNode(s),s.load(this.nodeState),this.nodeId=s.id}removeNode(e){const t=e.nodes.find(s=>s.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class o2{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const s=t;this.connectionState={id:s.id,from:s.from.id,to:s.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),s=e.findNodeInterface(this.connectionState.to);if(!t||!s)return;const r=e.addConnection(t,s);r&&(r.id=this.connectionState.id),this.connectionId=r==null?void 0:r.id}removeConnection(e){const t=e.connections.find(s=>s.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class xwt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!i.value)if(a.value)c.value.push(y);else for(o.value!==r.value.length-1&&(r.value=r.value.slice(0,o.value+1)),r.value.push(y),o.value++;r.value.length>s.value;)r.value.shift()},u=()=>{a.value=!0},_=()=>{a.value=!1,c.value.length>0&&(d(new xwt(c.value)),c.value=[])},m=()=>r.value.length!==0&&o.value!==-1,h=()=>{m()&&(i.value=!0,r.value[o.value--].undo(n.value),i.value=!1)},g=()=>r.value.length!==0&&o.value{g()&&(i.value=!0,r.value[++o.value].redo(n.value),i.value=!1)};return Tn(n,(y,b)=>{b&&(b.events.addNode.unsubscribe(t),b.events.removeNode.unsubscribe(t),b.events.addConnection.unsubscribe(t),b.events.removeConnection.unsubscribe(t)),y&&(y.events.addNode.subscribe(t,v=>{d(new i2("addNode",v.id))}),y.events.removeNode.subscribe(t,v=>{d(new i2("removeNode",v.save()))}),y.events.addConnection.subscribe(t,v=>{d(new o2("addConnection",v.id))}),y.events.removeConnection.subscribe(t,v=>{d(new o2("removeConnection",v))}))},{immediate:!0}),e.registerCommand(Ab,{canExecute:m,execute:h}),e.registerCommand(Mb,{canExecute:g,execute:f}),e.registerCommand(Ny,{canExecute:()=>!a.value,execute:u}),e.registerCommand(Oy,{canExecute:()=>a.value,execute:_}),e.registerHotkey(["Control","z"],Ab),e.registerHotkey(["Control","y"],Mb),Hn({maxSteps:s})}const Nb="DELETE_NODES";function wwt(n,e){e.registerCommand(Nb,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(Ny);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const s=n.value.selectedNodes[t];n.value.removeNode(s)}e.executeCommand(Oy)}}),e.registerHotkey(["Delete"],Nb)}const GO="SWITCH_TO_MAIN_GRAPH";function Rwt(n,e,t){e.registerCommand(GO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(ec),t(n.value.editor.graph)}})}function Awt(n,e,t){wwt(n,e),Swt(n,e,t),QCt(n,e),Rwt(n,e,t)}const Ob="COPY",Ib="PASTE",Mwt="CLEAR_CLIPBOARD";function Nwt(n,e,t){const s=Symbol("ClipboardToken"),r=ot(""),i=ot(""),o=et(()=>!r.value),a=()=>{r.value="",i.value=""},c=()=>{const _=n.value.selectedNodes.flatMap(h=>[...Object.values(h.inputs),...Object.values(h.outputs)]),m=n.value.connections.filter(h=>_.includes(h.from)||_.includes(h.to)).map(h=>({from:h.from.id,to:h.to.id}));i.value=JSON.stringify(m),r.value=JSON.stringify(n.value.selectedNodes.map(h=>h.save()))},d=(_,m,h)=>{for(const g of _){let f;if((!h||h==="input")&&(f=Object.values(g.inputs).find(y=>y.id===m)),!f&&(!h||h==="output")&&(f=Object.values(g.outputs).find(y=>y.id===m)),f)return f}},u=()=>{if(o.value)return;const _=new Map,m=JSON.parse(r.value),h=JSON.parse(i.value),g=[],f=[],y=n.value;t.executeCommand(Ny);for(const b of m){const v=e.value.nodeTypes.get(b.type);if(!v){console.warn(`Node type ${b.type} not registered`);return}const E=new v.type,S=E.id;g.push(E),E.hooks.beforeLoad.subscribe(s,R=>{const w=R;return w.position&&(w.position.x+=100,w.position.y+=100),E.hooks.beforeLoad.unsubscribe(s),w}),y.addNode(E),E.load({...b,id:S}),E.id=S,_.set(b.id,S);for(const R of Object.values(E.inputs)){const w=Tu();_.set(R.id,w),R.id=w}for(const R of Object.values(E.outputs)){const w=Tu();_.set(R.id,w),R.id=w}}for(const b of h){const v=d(g,_.get(b.from),"output"),E=d(g,_.get(b.to),"input");if(!v||!E)continue;const S=y.addConnection(v,E);S&&f.push(S)}return n.value.selectedNodes=g,t.executeCommand(Oy),{newNodes:g,newConnections:f}};return t.registerCommand(Ob,{canExecute:()=>n.value.selectedNodes.length>0,execute:c}),t.registerHotkey(["Control","c"],Ob),t.registerCommand(Ib,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],Ib),t.registerCommand(Mwt,{canExecute:()=>!0,execute:a}),Hn({isEmpty:o})}const Owt="OPEN_SIDEBAR";function Iwt(n,e){e.registerCommand(Owt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function kwt(n,e){Iwt(n,e)}const Dwt={},Lwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Pwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Fwt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),Uwt=[Pwt,Fwt];function Bwt(n,e){return T(),x("svg",Lwt,Uwt)}const Gwt=sn(Dwt,[["render",Bwt]]),Vwt={},zwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Hwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),qwt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),Ywt=[Hwt,qwt];function $wt(n,e){return T(),x("svg",zwt,Ywt)}const Wwt=sn(Vwt,[["render",$wt]]),Kwt={},jwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Qwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Xwt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Zwt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),Jwt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),e2t=[Qwt,Xwt,Zwt,Jwt];function t2t(n,e){return T(),x("svg",jwt,e2t)}const n2t=sn(Kwt,[["render",t2t]]),s2t={},r2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},i2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o2t=l("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),a2t=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),l2t=[i2t,o2t,a2t];function c2t(n,e){return T(),x("svg",r2t,l2t)}const d2t=sn(s2t,[["render",c2t]]),u2t={},p2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},f2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),_2t=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),m2t=l("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),h2t=[f2t,_2t,m2t];function g2t(n,e){return T(),x("svg",p2t,h2t)}const b2t=sn(u2t,[["render",g2t]]),y2t={},v2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},E2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),S2t=l("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),T2t=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),x2t=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),C2t=[E2t,S2t,T2t,x2t];function w2t(n,e){return T(),x("svg",v2t,C2t)}const R2t=sn(y2t,[["render",w2t]]),A2t={},M2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},N2t=Zi('',6),O2t=[N2t];function I2t(n,e){return T(),x("svg",M2t,O2t)}const k2t=sn(A2t,[["render",I2t]]),D2t={},L2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},P2t=Zi('',18),F2t=[P2t];function U2t(n,e){return T(),x("svg",L2t,F2t)}const B2t=sn(D2t,[["render",U2t]]),G2t={},V2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},z2t=Zi('',6),H2t=[z2t];function q2t(n,e){return T(),x("svg",V2t,H2t)}const Y2t=sn(G2t,[["render",q2t]]),$2t=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=us();return{viewModel:n}}}),W2t=["disabled","title"];function K2t(n,e,t,s,r,i){return T(),x("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),at(Pu(n.icon),{key:0})):(T(),x(Fe,{key:1},[Ze(Y(n.title),1)],64))],8,W2t)}const j2t=sn($2t,[["render",K2t]]),Q2t=cn({components:{ToolbarButton:j2t},setup(){const{viewModel:n}=us();return{isSubgraph:et(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Ob,title:"Copy",icon:b2t},{command:Ib,title:"Paste",icon:d2t},{command:Nb,title:"Delete selected nodes",icon:Y2t},{command:Ab,title:"Undo",icon:Gwt},{command:Mb,title:"Redo",icon:Wwt},{command:Ld,title:"Box Select",icon:B2t},{command:BO,title:"Create Subgraph",icon:k2t}],subgraphCommands:[{command:ec,title:"Save Subgraph",icon:R2t},{command:GO,title:"Back to Main Graph",icon:n2t}]}}});function X2t(n,e,t,s,r,i){const o=Je("toolbar-button");return T(),x("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Fe,null,We(n.commands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),x(Fe,{key:0},We(n.subgraphCommands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):B("",!0)],32)}const Z2t=sn(Q2t,[["render",X2t]]),J2t={class:"connections-container"},eRt=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),s=Bd(e,"viewModel");Fxt(s);const r=ot(null);na("editorEl",r);const i=et(()=>e.viewModel.displayedGraph.nodes),o=et(()=>e.viewModel.displayedGraph.nodes.map(I=>RO(Bd(I,"position")))),a=et(()=>e.viewModel.displayedGraph.connections),c=et(()=>e.viewModel.displayedGraph.selectedNodes),d=Uxt(),u=Bxt(),_=Gxt(s),m=Vxt(r),h=et(()=>({...d.styles.value})),g=ot(0);e.viewModel.editor.hooks.load.subscribe(t,I=>(g.value++,I));const f=I=>{d.onPointerMove(I),u.onMouseMove(I)},y=I=>{if(I.button===0){if(m.onPointerDown(I))return;I.target===r.value&&(R(),d.onPointerDown(I)),u.onMouseDown()}},b=I=>{d.onPointerUp(I),u.onMouseUp()},v=I=>{I.key==="Tab"&&I.preventDefault(),e.viewModel.commandHandler.handleKeyDown(I)},E=I=>{e.viewModel.commandHandler.handleKeyUp(I)},S=I=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||R(),e.viewModel.displayedGraph.selectedNodes.push(I)},R=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=I=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const M=i.value.indexOf(C),G=o.value[M];G.onPointerDown(I),document.addEventListener("pointermove",G.onPointerMove)}document.addEventListener("pointerup",A)},A=()=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const C=i.value.indexOf(I),M=o.value[C];M.onPointerUp(),document.removeEventListener("pointermove",M.onPointerMove)}document.removeEventListener("pointerup",A)};return(I,C)=>(T(),x("div",{ref_key:"el",ref:r,tabindex:"-1",class:Le(["baklava-editor",{"baklava-ignore-mouse":!!bt(u).temporaryConnection.value||bt(d).dragging.value,"--temporary-connection":!!bt(u).temporaryConnection.value,"--start-selection-box":bt(m).startSelection}]),onPointermove:$(f,["self"]),onPointerdown:y,onPointerup:b,onWheel:C[1]||(C[1]=$((...M)=>bt(d).onMouseWheel&&bt(d).onMouseWheel(...M),["self"])),onKeydown:v,onKeyup:E,onContextmenu:C[2]||(C[2]=(...M)=>bt(_).open&&bt(_).open(...M))},[on(I.$slots,"background",{},()=>[z(qxt)]),on(I.$slots,"toolbar",{},()=>[I.viewModel.settings.toolbar.enabled?(T(),at(Z2t,{key:0})):B("",!0)]),on(I.$slots,"palette",{},()=>[I.viewModel.settings.palette.enabled?(T(),at(YCt,{key:0})):B("",!0)]),(T(),x("svg",J2t,[(T(!0),x(Fe,null,We(a.value,M=>(T(),x("g",{key:M.id+g.value.toString()},[on(I.$slots,"connection",{connection:M},()=>[z(ACt,{connection:M},null,8,["connection"])])]))),128)),on(I.$slots,"temporaryConnection",{temporaryConnection:bt(u).temporaryConnection.value},()=>[bt(u).temporaryConnection.value?(T(),at(OCt,{key:0,connection:bt(u).temporaryConnection.value},null,8,["connection"])):B("",!0)])])),l("div",{class:"node-container",style:Bt(h.value)},[z(Ir,{name:"fade"},{default:Ie(()=>[(T(!0),x(Fe,null,We(i.value,(M,G)=>on(I.$slots,"node",{key:M.id+g.value.toString(),node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},()=>[z(ECt,{node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),on(I.$slots,"sidebar",{},()=>[I.viewModel.settings.sidebar.enabled?(T(),at(PCt,{key:0})):B("",!0)]),on(I.$slots,"minimap",{},()=>[I.viewModel.settings.enableMinimap?(T(),at(FCt,{key:0})):B("",!0)]),on(I.$slots,"contextMenu",{contextMenu:bt(_)},()=>[I.viewModel.settings.contextMenu.enabled?(T(),at(My,{key:0,modelValue:bt(_).show.value,"onUpdate:modelValue":C[0]||(C[0]=M=>bt(_).show.value=M),items:bt(_).items.value,x:bt(_).x.value,y:bt(_).y.value,onClick:bt(_).onClick},null,8,["modelValue","items","x","y","onClick"])):B("",!0)]),bt(m).isSelecting?(T(),x("div",{key:0,class:"selection-box",style:Bt(bt(m).getStyles())},null,4)):B("",!0)],34))}});function tRt(n){const e=ot([]),t=ot([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&wO(document.activeElement))&&t.value.forEach(a=>{var c,d;a.keys.every(u=>e.value.includes(u))&&((c=a.options)!=null&&c.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,c)=>{t.value.push({keys:o,commandName:a,options:c})}}}const nRt=()=>{const n=ot(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},s=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...c)},r=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(c)},i=tRt(s);return Hn({hasCommand:e,registerCommand:t,executeCommand:s,canExecuteCommand:r,...i})},sRt=n=>!(n instanceof _c);function rRt(n,e){return{switchGraph:s=>{let r;if(sRt(s))r=new _c(n.value),s.createGraph(r);else{if(s!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");r=s}e.value&&e.value!==n.value.graph&&e.value.destroy(),r.panning=r.panning??s.panning??{x:0,y:0},r.scaling=r.scaling??s.scaling??1,r.selectedNodes=r.selectedNodes??[],r.sidebar=r.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=r}}}function iRt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const oRt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function aRt(n){const e=ot(new Nxt),t=Symbol("ViewModelToken"),s=ot(null),r=UI(s),{switchGraph:i}=rRt(e,s),o=et(()=>r.value&&r.value!==e.value.graph),a=Hn(oRt()),c=nRt(),d=Cwt(r,c),u=Nwt(r,e,c),_={renderNode:new ds(null),renderInterface:new ds(null)};return Awt(r,c,i),kwt(r,c),Tn(e,(m,h)=>{h&&(h.events.registerGraph.unsubscribe(t),h.graphEvents.beforeAddNode.unsubscribe(t),m.nodeHooks.beforeLoad.unsubscribe(t),m.nodeHooks.afterSave.unsubscribe(t),m.graphTemplateHooks.beforeLoad.unsubscribe(t),m.graphTemplateHooks.afterSave.unsubscribe(t),m.graph.hooks.load.unsubscribe(t),m.graph.hooks.save.unsubscribe(t)),m&&(m.nodeHooks.beforeLoad.subscribe(t,(g,f)=>(f.position=g.position??{x:0,y:0},f.width=g.width??a.nodes.defaultWidth,f.twoColumn=g.twoColumn??!1,g)),m.nodeHooks.afterSave.subscribe(t,(g,f)=>(g.position=f.position,g.width=f.width,g.twoColumn=f.twoColumn,g)),m.graphTemplateHooks.beforeLoad.subscribe(t,(g,f)=>(f.panning=g.panning,f.scaling=g.scaling,g)),m.graphTemplateHooks.afterSave.subscribe(t,(g,f)=>(g.panning=f.panning,g.scaling=f.scaling,g)),m.graph.hooks.load.subscribe(t,(g,f)=>(f.panning=g.panning,f.scaling=g.scaling,g)),m.graph.hooks.save.subscribe(t,(g,f)=>(g.panning=f.panning,g.scaling=f.scaling,g)),m.graphEvents.beforeAddNode.subscribe(t,g=>iRt(g,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(FO,{category:"Subgraphs"}),e.value.registerNodeType(UO,{category:"Subgraphs"}),i(m.graph))},{immediate:!0}),Hn({editor:e,displayedGraph:r,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:_,switchGraph:i})}const lRt=Ka({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new en("Request",""),agent_name:()=>new fwt("Personality","",Ps.state.config.personalities).setPort(!1)},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),cRt=Ka({type:"RAGNode",title:"RAG",inputs:{request:()=>new en("Prompt",""),document_path:()=>new mc("Document path","").setPort(!1)},outputs:{prompt:()=>new en("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await ne.get("/rag",{params:{text:n,doc_path:e}})).data}catch(s){console.error(s)}return{response:t}}}),a2=Ka({type:"Task",title:"Task",inputs:{description:()=>new mc("Task description","").setPort(!1)},outputs:{prompt:()=>new en("Prompt")},calculate({description:n}){return{prompt:n}}}),l2=Ka({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new en("Input","")},outputs:{response:()=>new gwt("Text","")},async calculate({request:n}){}}),c2=Ka({type:"LLMNode",title:"LLM",inputs:{request:()=>new en("Request","")},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),dRt=Ka({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new en("Question",""),outputs:()=>new mc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new en("Response","")}}),uRt=cn({components:{"baklava-editor":eRt},setup(){const n=aRt(),e=new Lxt(n.editor);n.editor.registerNodeType(lRt),n.editor.registerNodeType(a2),n.editor.registerNodeType(cRt),n.editor.registerNodeType(l2),n.editor.registerNodeType(c2),n.editor.registerNodeType(dRt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),Oxt(a,n.editor),e.resume()}),e.start();function s(a,c,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const r=s(a2,300,140),i=s(c2,550,140),o=s(l2,850,140);return n.displayedGraph.addConnection(r.outputs.prompt,i.inputs.request),n.displayedGraph.addConnection(i.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),pRt={style:{width:"100vw",height:"100vh"}};function fRt(n,e,t,s,r,i){const o=Je("baklava-editor");return T(),x("div",pRt,[z(o,{"view-model":n.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const _Rt=st(uRt,[["render",fRt]]),mRt={},hRt={style:{width:"100vw",height:"100vh"}},gRt=["src"];function bRt(n,e,t,s,r,i){return T(),x("div",hRt,[l("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,gRt)])}const yRt=st(mRt,[["render",bRt]]),vRt={},ERt={style:{width:"100vw",height:"100vh"}},SRt=["src"];function TRt(n,e,t,s,r,i){return T(),x("div",ERt,[l("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,SRt)])}const xRt=st(vRt,[["render",TRt]]),CRt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},wRt={class:"app-card flex flex-col h-full"},RRt={class:"flex-grow"},ARt={class:"flex items-center mb-4"},MRt=["src"],NRt={class:"font-bold text-xl text-gray-800"},ORt={class:"text-sm text-gray-600"},IRt={class:"text-sm text-gray-600"},kRt={class:"text-sm text-gray-600"},DRt={class:"text-sm text-gray-600"},LRt={class:"text-sm text-gray-600"},PRt={class:"mb-4"},FRt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},URt={class:"text-sm text-gray-600 mb-2"},BRt={key:0,class:"mb-4"},GRt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},VRt={class:"mt-auto pt-4 border-t"},zRt={class:"flex justify-between items-center flex-wrap"},HRt=["title"],qRt=["fill"];function YRt(n,e,t,s,r,i){return T(),x("div",wRt,[l("div",RRt,[l("div",ARt,[l("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,MRt),l("div",null,[l("h3",NRt,Y(t.app.name),1),l("p",ORt,"Author: "+Y(t.app.author),1),l("p",IRt,"Version: "+Y(t.app.version),1),l("p",kRt,"Category: "+Y(t.app.category),1),l("p",DRt,"Creation date: "+Y(i.formatDate(t.app.creation_date)),1),l("p",LRt,"Last update: "+Y(i.formatDate(t.app.last_update_date)),1),l("p",{class:Le(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},Y(t.app.is_public?"Public App":"Local App"),3)])]),l("div",PRt,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",FRt,Y(t.app.description),1)]),l("p",URt,"AI Model: "+Y(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),x("div",BRt,[e[11]||(e[11]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),l("p",GRt,Y(t.app.disclaimer),1)])):B("",!0)]),l("div",VRt,[l("div",zRt,[l("button",{onClick:e[0]||(e[0]=$(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,qRt))],8,HRt),t.app.installed?(T(),x("button",{key:0,onClick:e[1]||(e[1]=$(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),x("button",{key:1,onClick:e[2]||(e[2]=$(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),x("button",{key:2,onClick:e[3]||(e[3]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),x("button",{key:3,onClick:e[4]||(e[4]=$(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):B("",!0),l("button",{onClick:e[5]||(e[5]=$(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),x("button",{key:4,onClick:e[6]||(e[6]=$(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):B("",!0),t.app.installed?(T(),x("button",{key:5,onClick:e[7]||(e[7]=$(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):B("",!0),t.app.has_server&&t.app.installed?(T(),x("button",{key:6,onClick:e[8]||(e[8]=$(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):B("",!0),t.app.has_update?(T(),x("button",{key:7,onClick:e[9]||(e[9]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):B("",!0)])])])}const $Rt=st(CRt,[["render",YRt],["__scopeId","data-v-ae134649"]]),WRt={components:{AppCard:$Rt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,s=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&s})},sortedAndFilteredApps(){return[...this.filteredApps].sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=this.getDateValue(n.creation_date)-this.getDateValue(e.creation_date);break;case"update":t=this.getDateValue(n.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{getDateValue(n){if(!n)return 0;const e=new Date(n);return isNaN(e.getTime())?0:e.getTime()},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const Pxt=["INPUT","TEXTAREA","SELECT"];function wO(n){return Pxt.includes(n.tagName)}let Rb=null;function Fxt(n){Rb=n}function us(){if(!Rb)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Rb}}function Ns(){const{viewModel:n}=us();return{graph:Bd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function RO(n){const{graph:e}=Ns(),t=it(null),s=it(null);return{dragging:et(()=>!!t.value),onPointerDown:c=>{t.value={x:c.pageX,y:c.pageY},s.value={x:n.value.x,y:n.value.y}},onPointerMove:c=>{if(t.value){const d=c.pageX-t.value.x,u=c.pageY-t.value.y;n.value.x=s.value.x+d/e.value.scaling,n.value.y=s.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,s.value=null}}}function AO(n,e,t){if(!e.template)return!1;if(Oa(e.template)===t)return!0;const s=n.graphTemplates.find(i=>Oa(i)===t);return s?s.nodes.filter(i=>i.type.startsWith(Jl)).some(i=>AO(n,e,i.type)):!1}function MO(n){return et(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,r])=>r.category)),s=[];for(const r of t.values()){let i=e.filter(([,o])=>o.category===r);n.value.displayedGraph.template?i=i.filter(([o])=>!AO(n.value.editor,n.value.displayedGraph,o)):i=i.filter(([o])=>![Ma,Na].includes(o)),i.length>0&&s.push({name:r,nodeTypes:Object.fromEntries(i)})}return s.sort((r,i)=>r.name==="default"?-1:i.name==="default"||r.name>i.name?1:-1),s})}function NO(){const{graph:n}=Ns();return{transform:(t,s)=>{const r=t/n.value.scaling-n.value.panning.x,i=s/n.value.scaling-n.value.panning.y;return[r,i]}}}function Uxt(){const{graph:n}=Ns();let e=[],t=-1,s={x:0,y:0};const r=et(()=>n.value.panning),i=RO(r),o=et(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(h,g,f)=>{const y=[h/n.value.scaling-n.value.panning.x,g/n.value.scaling-n.value.panning.y],b=[h/f-n.value.panning.x,g/f-n.value.panning.y],v=[b[0]-y[0],b[1]-y[1]];n.value.panning.x+=v[0],n.value.panning.y+=v[1],n.value.scaling=f},c=h=>{h.preventDefault();let g=h.deltaY;h.deltaMode===1&&(g*=32);const f=n.value.scaling*(1-g/3e3);a(h.offsetX,h.offsetY,f)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...i,onPointerDown:h=>{if(e.push(h),i.onPointerDown(h),e.length===2){const{ax:g,ay:f,bx:y,by:b}=d();s={x:g+(y-g)/2,y:f+(b-f)/2}}},onPointerMove:h=>{for(let g=0;g0){const R=n.value.scaling*(1+(S-t)/500);a(s.x,s.y,R)}t=S}else i.onPointerMove(h)},onPointerUp:h=>{e=e.filter(g=>g.pointerId!==h.pointerId),t=-1,i.onPointerUp()},onMouseWheel:c}}var vs=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(vs||{});const OO=Symbol();function Bxt(){const{graph:n}=Ns(),e=it(null),t=it(null),s=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},r=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(c=>c.to===t.value);t.value.isInput&&a?(e.value={status:vs.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:vs.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},i=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const c=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?vs.ALLOWED:vs.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=vs.NONE,n.value.connections.forEach(c=>{c.isInDanger=!1}))};return na(OO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:r,onMouseUp:i,hoveredOver:o}}function Gxt(n){const e=it(!1),t=it(0),s=it(0),r=MO(n),{transform:i}=NO(),o=et(()=>{let u=[];const _={};for(const h of r.value){const g=Object.entries(h.nodeTypes).map(([f,y])=>({label:y.title,value:"addNode:"+f}));h.name==="default"?u=g:_[h.name]=g}const m=[...Object.entries(_).map(([h,g])=>({label:h,submenu:g}))];return m.length>0&&u.length>0&&m.push({isDivider:!0}),m.push(...u),m}),a=et(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){const _=u.target;if(!(_ instanceof Element)||wO(_))return;u.preventDefault(),e.value=!0;const m=_.getBoundingClientRect(),g=_.closest(".baklava-editor").getBoundingClientRect();t.value=m.x+u.offsetX-g.x,s.value=m.y+u.offsetY-g.y}function d(u){if(u.startsWith("addNode:")){const _=u.substring(8),m=n.value.editor.nodeTypes.get(_);if(!m)return;const h=Hn(new m.type);n.value.displayedGraph.addNode(h);const[g,f]=i(t.value,s.value);h.position.x=g,h.position.y=f}else if(u.startsWith("command:")){const _=u.substring(8);n.value.commandHandler.canExecuteCommand(_)&&n.value.commandHandler.executeCommand(_)}}return{show:e,x:t,y:s,items:a,open:c,onClick:d}}const Ld="START_SELECTION_BOX";function Vxt(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=et(()=>t.value.nodes),r=it(!1),i=it(!1),o=it([0,0]),a=it([0,0]);Tn(e,()=>{e.value.commandHandler.hasCommand(Ld)||(e.value.commandHandler.registerCommand(Ld,{canExecute:()=>!0,execute(){r.value=!0}}),e.value.commandHandler.registerHotkey(["b"],Ld))},{immediate:!0});function c(b){return[b.clientX-n.value.getBoundingClientRect().left,b.clientY-n.value.getBoundingClientRect().top]}function d(b){return r.value?(i.value=!0,r.value=!1,o.value=c(b),a.value=c(b),document.addEventListener("pointermove",u),document.addEventListener("pointerup",_),!0):!1}function u(b){o.value=c(b)}function _(b){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",_),o.value=c(b),i.value=!1;const v=m();for(const E of v)e.value.displayedGraph.selectedNodes.push(E)}function m(){const b=h(),E=document.querySelector(".baklava-editor").getBoundingClientRect();return s.value.filter(S=>{const R=g(S,E);return f(b,R)})}function h(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function g(b,v){const E=document.getElementById(b.id),S=E?E.getBoundingClientRect():{x:0,y:0,width:0,height:0},R=S.x-v.left,w=S.y-v.top;return{left:R,top:w,right:R+S.width,bottom:w+S.height}}function f(b,v){return b.leftv.left&&b.topv.top}function y(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return Hn({startSelection:r,isSelecting:i,start:o,end:a,onPointerDown:d,getStyles:y})}const zxt=cn({setup(){const{viewModel:n}=us(),{graph:e}=Ns();return{styles:et(()=>{const s=n.value.settings.background,r=e.value.panning.x*e.value.scaling,i=e.value.panning.y*e.value.scaling,o=e.value.scaling*s.gridSize,a=o/s.gridDivision,c=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>s.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${r}px top ${i}px`,backgroundSize:`${c} ${d}`}})}}}),sn=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t};function Hxt(n,e,t,s,r,i){return T(),x("div",{class:"background",style:Bt(n.styles)},null,4)}const qxt=sn(zxt,[["render",Hxt]]);function Yxt(n){return y2()?(mI(n),!0):!1}function Ry(n){return typeof n=="function"?n():bt(n)}const IO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $xt=Object.prototype.toString,Wxt=n=>$xt.call(n)==="[object Object]",Pd=()=>{},Kxt=jxt();function jxt(){var n,e;return IO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Qxt(n,e,t=!1){return e.reduce((s,r)=>(r in n&&(!t||n[r]!==void 0)&&(s[r]=n[r]),s),{})}function Xxt(n,e={}){if(!pn(n))return qI(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const s in n.value)t[s]=HI(()=>({get(){return n.value[s]},set(r){var i;if((i=Ry(e.replaceRef))!=null?i:!0)if(Array.isArray(n.value)){const a=[...n.value];a[s]=r,n.value=a}else{const a={...n.value,[s]:r};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[s]=r}}));return t}function bl(n){var e;const t=Ry(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Ay=IO?window:void 0;function Ll(...n){let e,t,s,r;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,s,r]=n,e=Ay):[e,t,s,r]=n,!e)return Pd;Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,_,m,h)=>(u.addEventListener(_,m,h),()=>u.removeEventListener(_,m,h)),c=Tn(()=>[bl(e),Ry(r)],([u,_])=>{if(o(),!u)return;const m=Wxt(_)?{..._}:_;i.push(...t.flatMap(h=>s.map(g=>a(u,h,g,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return Yxt(d),d}let e2=!1;function kO(n,e,t={}){const{window:s=Ay,ignore:r=[],capture:i=!0,detectIframe:o=!1}=t;if(!s)return Pd;Kxt&&!e2&&(e2=!0,Array.from(s.document.body.children).forEach(m=>m.addEventListener("click",Pd)),s.document.documentElement.addEventListener("click",Pd));let a=!0;const c=m=>r.some(h=>{if(typeof h=="string")return Array.from(s.document.querySelectorAll(h)).some(g=>g===m.target||m.composedPath().includes(g));{const g=bl(h);return g&&(m.target===g||m.composedPath().includes(g))}}),u=[Ll(s,"click",m=>{const h=bl(n);if(!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(a=!c(m)),!a){a=!0;return}e(m)}},{passive:!0,capture:i}),Ll(s,"pointerdown",m=>{const h=bl(n);a=!c(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),o&&Ll(s,"blur",m=>{setTimeout(()=>{var h;const g=bl(n);((h=s.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const DO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Zxt=Object.keys(DO);function Jxt(n={}){const{target:e=Ay}=n,t=it(!1),s=it(n.initialValue||{});Object.assign(s.value,DO,s.value);const r=i=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(i.pointerType))&&(s.value=Qxt(i,Zxt,!1))};if(e){const i={passive:!0};Ll(e,["pointerdown","pointermove","pointerup"],r,i),Ll(e,"pointerleave",()=>t.value=!1,i)}return{...Xxt(s),isInside:t}}const eCt=["onMouseenter","onMouseleave","onClick"],tCt={class:"flex-fill"},nCt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},sCt=l("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[l("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),rCt=[sCt],My=cn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,s=e;let r=null;const i=it(null),o=it(-1),a=it(0),c=it({x:!1,y:!1}),d=et(()=>t.flippable&&(c.value.x||t.isFlipped.x)),u=et(()=>t.flippable&&(c.value.y||t.isFlipped.y)),_=et(()=>{const v={};return t.isNested||(v.top=(u.value?t.y-a.value:t.y)+"px",v.left=t.x+"px"),v}),m=et(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),h=et(()=>t.items.map(v=>({...v,hover:!1})));Tn([()=>t.y,()=>t.items],()=>{var v,E,S,R;a.value=t.items.length*30;const w=((E=(v=i.value)==null?void 0:v.parentElement)==null?void 0:E.offsetWidth)??0,A=((R=(S=i.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!t.isNested&&t.x>w*.75,c.value.y=!t.isNested&&t.y+a.value>A-20}),kO(i,()=>{t.modelValue&&s("update:modelValue",!1)});const g=v=>{!v.submenu&&v.value&&(s("click",v.value),s("update:modelValue",!1))},f=v=>{s("click",v),o.value=-1,t.isNested||s("update:modelValue",!1)},y=(v,E)=>{t.items[E].submenu&&(o.value=E,r!==null&&(clearTimeout(r),r=null))},b=(v,E)=>{t.items[E].submenu&&(r=window.setTimeout(()=>{o.value=-1,r=null},200))};return(v,E)=>{const S=Je("ContextMenu",!0);return T(),at(or,{name:"slide-fade"},{default:Ie(()=>[k(l("div",{ref_key:"el",ref:i,class:Le(["baklava-context-menu",m.value]),style:Bt(_.value)},[(T(!0),x(Fe,null,We(h.value,(R,w)=>(T(),x(Fe,null,[R.isDivider?(T(),x("div",{key:`d-${w}`,class:"divider"})):(T(),x("div",{key:`i-${w}`,class:Le(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>y(A,w),onMouseleave:A=>b(A,w),onClick:$(A=>g(R),["stop","prevent"])},[l("div",tCt,Y(R.label),1),R.submenu?(T(),x("div",nCt,rCt)):B("",!0),R.submenu?(T(),at(S,{key:1,"model-value":o.value===w,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:v.flippable,onClick:f},null,8,["model-value","items","is-flipped","flippable"])):B("",!0)],42,eCt))],64))),256))],6),[[ht,v.modelValue]])]),_:1})}}}),iCt={},oCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},aCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),lCt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),cCt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),dCt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),uCt=[aCt,lCt,cCt,dCt];function pCt(n,e){return T(),x("svg",oCt,uCt)}const LO=sn(iCt,[["render",pCt]]),fCt=["id"],_Ct={key:0,class:"__tooltip"},mCt={key:2,class:"align-middle"},t2=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(y,b=100)=>{const v=typeof(y==null?void 0:y.toString)=="function"?String(y):"";return v.length>b?v.slice(0,b)+"...":v},t=n,{viewModel:s}=us(),{hoveredOver:r,temporaryConnection:i}=os(OO),o=it(null),a=et(()=>t.intf.connectionCount>0),c=it(!1),d=et(()=>s.value.settings.displayValueOnHover&&c.value),u=et(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),_=et(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),m=()=>{c.value=!0,r(t.intf)},h=()=>{c.value=!1,r(void 0)},g=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},f=()=>{const y=s.value.displayedGraph.sidebar;y.nodeId=t.node.id,y.optionName=t.intf.name,y.visible=!0};return qs(g),nc(g),(y,b)=>{var v;return T(),x("div",{id:y.intf.id,ref_key:"el",ref:o,class:Le(["baklava-node-interface",u.value])},[y.intf.port?(T(),x("div",{key:0,class:Le(["__port",{"--selected":((v=bt(i))==null?void 0:v.from)===y.intf}]),onPointerover:m,onPointerout:h},[on(y.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),x("span",_Ct,Y(e(y.intf.value)),1)):B("",!0)])],34)):B("",!0),_.value?(T(),at(Pu(y.intf.component),{key:1,modelValue:y.intf.value,"onUpdate:modelValue":b[0]||(b[0]=E=>y.intf.value=E),node:y.node,intf:y.intf,onOpenSidebar:f},null,40,["modelValue","node","intf"])):(T(),x("span",mCt,Y(y.intf.name),1))],10,fCt)}}}),hCt=["id","data-node-type"],gCt={class:"__title-label"},bCt={class:"__menu"},yCt={class:"__outputs"},vCt={class:"__inputs"},ECt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,s=e,{viewModel:r}=us(),{graph:i,switchGraph:o}=Ns(),a=it(null),c=it(!1),d=it(""),u=it(null),_=it(!1),m=it(!1),h=et(()=>{const V=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Jl)&&V.push({value:"editSubgraph",label:"Edit Subgraph"}),V}),g=et(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),f=et(()=>({"--reverse-y":t.node.reverseY??r.value.settings.nodes.reverseY})),y=et(()=>{var V,ee;return{top:`${((V=t.node.position)==null?void 0:V.y)??0}px`,left:`${((ee=t.node.position)==null?void 0:ee.x)??0}px`,"--width":`${t.node.width??r.value.settings.nodes.defaultWidth}px`}}),b=et(()=>Object.values(t.node.inputs).filter(V=>!V.hidden)),v=et(()=>Object.values(t.node.outputs).filter(V=>!V.hidden)),E=()=>{s("select")},S=V=>{t.selected||E(),s("start-drag",V)},R=()=>{m.value=!0},w=async V=>{var ee;switch(V){case"delete":i.value.removeNode(t.node);break;case"rename":d.value=t.node.title,c.value=!0,await Ue(),(ee=u.value)==null||ee.focus();break;case"editSubgraph":o(t.node.template);break}},A=()=>{t.node.title=d.value,c.value=!1},I=()=>{a.value&&r.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=V=>{_.value=!0,V.preventDefault()},M=V=>{if(!_.value)return;const ee=t.node.width+V.movementX/i.value.scaling,O=r.value.settings.nodes.minWidth,H=r.value.settings.nodes.maxWidth;t.node.width=Math.max(O,Math.min(H,ee))},G=()=>{_.value=!1};return qs(()=>{I(),window.addEventListener("mousemove",M),window.addEventListener("mouseup",G)}),nc(I),La(()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",G)}),(V,ee)=>(T(),x("div",{id:V.node.id,ref_key:"el",ref:a,class:Le(["baklava-node",g.value]),style:Bt(y.value),"data-node-type":V.node.type,onPointerdown:E},[bt(r).settings.nodes.resizable?(T(),x("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):B("",!0),on(V.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:$(S,["self","stop"])},[c.value?k((T(),x("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ee[1]||(ee[1]=O=>d.value=O),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:A,onKeydown:Jn(A,["enter"])},null,544)),[[ae,d.value]]):(T(),x(Fe,{key:0},[l("div",gCt,Y(V.node.title),1),l("div",bCt,[z(LO,{class:"--clickable",onClick:R}),z(bt(My),{modelValue:m.value,"onUpdate:modelValue":ee[0]||(ee[0]=O=>m.value=O),x:0,y:0,items:h.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),on(V.$slots,"content",{},()=>[l("div",{class:Le(["__content",f.value]),onKeydown:ee[2]||(ee[2]=Jn($(()=>{},["stop"]),["delete"]))},[l("div",yCt,[(T(!0),x(Fe,null,We(v.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"output",node:V.node,intf:O},()=>[z(t2,{node:V.node,intf:O},null,8,["node","intf"])])),128))]),l("div",vCt,[(T(!0),x(Fe,null,We(b.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"input",node:V.node,intf:O},()=>[z(t2,{node:V.node,intf:O},null,8,["node","intf"])])),128))])],34)])],46,hCt))}}),SCt=cn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:vs.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=(o,a)=>{const c=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[c,d]},r=et(()=>{const[o,a]=s(n.x1,n.y1),[c,d]=s(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${c} ${d}`;{const u=.3*Math.abs(o-c);return`M ${o} ${a} C ${o+u} ${a}, ${c-u} ${d}, ${c} ${d}`}}),i=et(()=>({"--temporary":n.isTemporary,"--allowed":n.state===vs.ALLOWED,"--forbidden":n.state===vs.FORBIDDEN}));return{d:r,classes:i}}}),TCt=["d"];function xCt(n,e,t,s,r,i){return T(),x("path",{class:Le(["baklava-connection",n.classes]),d:n.d},null,10,TCt)}const PO=sn(SCt,[["render",xCt]]);function CCt(n){return document.getElementById(n.id)}function Ia(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const wCt=cn({components:{"connection-view":PO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ns();let t;const s=it({x1:0,y1:0,x2:0,y2:0}),r=et(()=>n.connection.isInDanger?vs.FORBIDDEN:vs.NONE),i=et(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=et(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],c=()=>{const d=Ia(n.connection.from),u=Ia(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{c()}),t.observe(d.node),t.observe(u.node)));const[_,m]=a(d),[h,g]=a(u);s.value={x1:_,y1:m,x2:h,y2:g}};return qs(async()=>{await Ue(),c()}),La(()=>{t&&t.disconnect()}),Tn([i,o],()=>c(),{deep:!0}),{d:s,state:r}}});function RCt(n,e,t,s,r,i){const o=Je("connection-view");return T(),at(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const ACt=sn(wCt,[["render",RCt]]);function Su(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const MCt=cn({components:{"connection-view":PO},props:{connection:{type:Object,required:!0}},setup(n){const e=et(()=>n.connection?n.connection.status:vs.NONE);return{d:et(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const s=Su(Ia(n.connection.from)),r=n.connection.to?Su(Ia(n.connection.to)):[n.connection.mx||s[0],n.connection.my||s[1]];return n.connection.from.isInput?{input:r,output:s}:{input:s,output:r}}),status:e}}});function NCt(n,e,t,s,r,i){const o=Je("connection-view");return T(),at(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const OCt=sn(MCt,[["render",NCt]]),ICt=cn({setup(){const{viewModel:n}=us(),{graph:e}=Ns(),t=it(null),s=Bd(n.value.settings.sidebar,"width"),r=et(()=>n.value.settings.sidebar.resizable),i=et(()=>{const _=e.value.sidebar.nodeId;return e.value.nodes.find(m=>m.id===_)}),o=et(()=>({width:`${s.value}px`})),a=et(()=>i.value?[...Object.values(i.value.inputs),...Object.values(i.value.outputs)].filter(m=>m.displayInSidebar&&m.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=_=>{var m,h;const g=((h=(m=t.value)==null?void 0:m.parentElement)==null?void 0:h.getBoundingClientRect().width)??500;let f=s.value-_.movementX;f<300?f=300:f>.9*g&&(f=.9*g),s.value=f};return{el:t,graph:e,resizable:r,node:i,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),kCt={class:"__header"},DCt={class:"__node-name"};function LCt(n,e,t,s,r,i){return T(),x("div",{ref:"el",class:Le(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:Bt(n.styles)},[n.resizable?(T(),x("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):B("",!0),l("div",kCt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),l("div",DCt,[l("b",null,Y(n.node?n.node.title:""),1)])]),(T(!0),x(Fe,null,We(n.displayedInterfaces,o=>(T(),x("div",{key:o.id,class:"__interface"},[(T(),at(Pu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const PCt=sn(ICt,[["render",LCt]]),FCt=cn({__name:"Minimap",setup(n){const{viewModel:e}=us(),{graph:t}=Ns(),s=it(null),r=it(!1);let i,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var w,A;if(!i)return;i.canvas.width=s.value.offsetWidth,i.canvas.height=s.value.offsetHeight;const I=new Map,C=new Map;for(const O of t.value.nodes){const H=CCt(O),q=(H==null?void 0:H.offsetWidth)??0,L=(H==null?void 0:H.offsetHeight)??0,W=((w=O.position)==null?void 0:w.x)??0,se=((A=O.position)==null?void 0:A.y)??0;I.set(O,{x1:W,y1:se,x2:W+q,y2:se+L}),C.set(O,H)}const M={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const O of I.values())O.x1M.x2&&(M.x2=O.x2),O.y2>M.y2&&(M.y2=O.y2);const G=50;M.x1-=G,M.y1-=G,M.x2+=G,M.y2+=G,a=M;const V=i.canvas.width/i.canvas.height,ee=(a.x2-a.x1)/(a.y2-a.y1);if(V>ee){const O=(V-ee)*(a.y2-a.y1)*.5;a.x1-=O,a.x2+=O}else{const O=a.x2-a.x1,H=a.y2-a.y1,q=(O-V*H)/V*.5;a.y1-=q,a.y2+=q}i.clearRect(0,0,i.canvas.width,i.canvas.height),i.strokeStyle="white";for(const O of t.value.connections){const[H,q]=Su(Ia(O.from)),[L,W]=Su(Ia(O.to)),[se,oe]=u(H,q),[ye,xe]=u(L,W);if(i.beginPath(),i.moveTo(se,oe),e.value.settings.useStraightConnections)i.lineTo(ye,xe);else{const ce=.3*Math.abs(se-ye);i.bezierCurveTo(se+ce,oe,ye-ce,xe,ye,xe)}i.stroke()}i.strokeStyle="lightgray";for(const[O,H]of I.entries()){const[q,L]=u(H.x1,H.y1),[W,se]=u(H.x2,H.y2);i.fillStyle=m(C.get(O)),i.beginPath(),i.rect(q,L,W-q,se-L),i.fill(),i.stroke()}if(r.value){const O=g(),[H,q]=u(O.x1,O.y1),[L,W]=u(O.x2,O.y2);i.fillStyle="rgba(255, 255, 255, 0.2)",i.fillRect(H,q,L-H,W-q)}},u=(w,A)=>[(w-a.x1)/(a.x2-a.x1)*i.canvas.width,(A-a.y1)/(a.y2-a.y1)*i.canvas.height],_=(w,A)=>[w*(a.x2-a.x1)/i.canvas.width+a.x1,A*(a.y2-a.y1)/i.canvas.height+a.y1],m=w=>{if(w){const A=w.querySelector(".__content");if(A){const C=h(A);if(C)return C}const I=h(w);if(I)return I}return"gray"},h=w=>{const A=getComputedStyle(w).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},g=()=>{const w=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,I=w/t.value.scaling-t.value.panning.x,C=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:I,y2:C}},f=w=>{w.button===0&&(o=!0,y(w))},y=w=>{if(o){const[A,I]=_(w.offsetX,w.offsetY),C=g(),M=(C.x2-C.x1)/2,G=(C.y2-C.y1)/2;t.value.panning.x=-(A-M),t.value.panning.y=-(I-G)}},b=()=>{o=!1},v=()=>{r.value=!0},E=()=>{r.value=!1,b()};Tn([r,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const S=et(()=>t.value.nodes.map(w=>w.position)),R=et(()=>t.value.nodes.map(w=>w.width));return Tn([S,R],()=>{d()},{deep:!0}),qs(()=>{i=s.value.getContext("2d"),i.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),La(()=>{clearInterval(c)}),(w,A)=>(T(),x("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:v,onMouseleave:E,onMousedown:$(f,["self"]),onMousemove:$(y,["self"]),onMouseup:b,onContextmenu:A[0]||(A[0]=$(()=>{},["stop","prevent"]))},null,544))}}),UCt=cn({components:{ContextMenu:My,VerticalDots:LO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=us(),{switchGraph:t}=Ns(),s=it(!1),r=et(()=>n.type.startsWith(Jl));return{showContextMenu:s,hasContextMenu:r,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:c=>{const d=n.type.substring(Jl.length),u=e.value.editor.graphTemplates.find(_=>_.id===d);if(u)switch(c){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),BCt=["data-node-type"],GCt={class:"__title"},VCt={class:"__title-label"},zCt={key:0,class:"__menu"};function HCt(n,e,t,s,r,i){const o=Je("vertical-dots"),a=Je("context-menu");return T(),x("div",{class:"baklava-node --palette","data-node-type":n.type},[l("div",GCt,[l("div",VCt,Y(n.title),1),n.hasContextMenu?(T(),x("div",zCt,[z(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=$(()=>{},["stop","prevent"])),onClick:$(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),z(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>n.showContextMenu=c),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=$(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):B("",!0)])],8,BCt)}const n2=sn(UCt,[["render",HCt]]),qCt={key:0},YCt=cn({__name:"NodePalette",setup(n){const{viewModel:e}=us(),{x:t,y:s}=Jxt(),{transform:r}=NO(),i=MO(e),o=os("editorEl"),a=it(null),c=et(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:_}=o.value.getBoundingClientRect();return{top:`${s.value-_}px`,left:`${t.value-u}px`}}),d=(u,_)=>{a.value={type:u,nodeInformation:_};const m=()=>{const h=Hn(new _.type);e.value.displayedGraph.addNode(h);const g=o.value.getBoundingClientRect(),[f,y]=r(t.value-g.left,s.value-g.top);h.position.x=f,h.position.y=y,a.value=null,document.removeEventListener("pointerup",m)};document.addEventListener("pointerup",m)};return(u,_)=>(T(),x(Fe,null,[l("div",{class:"baklava-node-palette",onContextmenu:_[0]||(_[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Fe,null,We(bt(i),m=>(T(),x("section",{key:m.name},[m.name!=="default"?(T(),x("h1",qCt,Y(m.name),1)):B("",!0),(T(!0),x(Fe,null,We(m.nodeTypes,(h,g)=>(T(),at(n2,{key:g,type:g,title:h.title,onPointerdown:f=>d(g,h)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),z(or,{name:"fade"},{default:Ie(()=>[a.value?(T(),x("div",{key:0,class:"baklava-dragged-node",style:Bt(c.value)},[z(n2,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):B("",!0)]),_:1})],64))}});let bd;const $Ct=new Uint8Array(16);function WCt(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd($Ct)}const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function KCt(n,e=0){return En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]}const jCt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s2={randomUUID:jCt};function Tu(n,e,t){if(s2.randomUUID&&!e&&!n)return s2.randomUUID();n=n||{};const s=n.random||(n.rng||WCt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,KCt(s)}const ec="SAVE_SUBGRAPH";function QCt(n,e){const t=()=>{const s=n.value;if(!s.template)throw new Error("Graph template property not set");s.template.update(s.save()),s.template.panning=s.panning,s.template.scaling=s.scaling};e.registerCommand(ec,{canExecute:()=>{var s;return n.value!==((s=n.value.editor)==null?void 0:s.graph)},execute:t})}const XCt={},ZCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},JCt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),ewt=[JCt];function twt(n,e){return T(),x("svg",ZCt,ewt)}const nwt=sn(XCt,[["render",twt]]),swt=cn({components:{"i-arrow":nwt},props:{intf:{type:Object,required:!0}},setup(n){const e=it(null),t=it(!1),s=et(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),r=et(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),i=o=>{n.intf.value=typeof o=="string"?o:o.value};return kO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:s,selectedText:r,setSelected:i}}}),rwt=["title"],iwt={class:"__selected"},owt={class:"__text"},awt={class:"__icon"},lwt={class:"__dropdown"},cwt={class:"item --header"},dwt=["onClick"];function uwt(n,e,t,s,r,i){const o=Je("i-arrow");return T(),x("div",{ref:"el",class:Le(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[l("div",iwt,[l("div",owt,Y(n.selectedText),1),l("div",awt,[z(o)])]),z(or,{name:"slide-fade"},{default:Ie(()=>[k(l("div",lwt,[l("div",cwt,Y(n.intf.name),1),(T(!0),x(Fe,null,We(n.intf.items,(a,c)=>(T(),x("div",{key:c,class:Le(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},Y(typeof a=="string"?a:a.text),11,dwt))),128))],512),[[ht,n.open]])]),_:1})],10,rwt)}const pwt=sn(swt,[["render",uwt]]);class fwt extends en{constructor(e,t,s){super(e,t),this.component=Iu(pwt),this.items=s}}const _wt=cn({props:{intf:{type:Object,required:!0}}});function mwt(n,e,t,s,r,i){return T(),x("div",null,Y(n.intf.value),1)}const hwt=sn(_wt,[["render",mwt]]);class gwt extends en{constructor(e,t){super(e,t),this.component=Iu(hwt),this.setPort(!1)}}const bwt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:et({get:()=>n.modelValue,set:s=>{e("update:modelValue",s)}})}}}),ywt=["placeholder","title"];function vwt(n,e,t,s,r,i){return T(),x("div",null,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,ywt),[[ae,n.v]])])}const Ewt=sn(bwt,[["render",vwt]]);class mc extends en{constructor(){super(...arguments),this.component=Iu(Ewt)}}class FO extends Cy{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new mc("Name","Input").setPort(!1)},this.outputs={placeholder:new en("Connection",void 0)}}}class UO extends wy{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new mc("Name","Output").setPort(!1),placeholder:new en("Connection",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)}}}const BO="CREATE_SUBGRAPH",r2=[Ma,Na];function Swt(n,e,t){const s=()=>n.value.selectedNodes.filter(i=>!r2.includes(i.type)).length>0,r=()=>{const{viewModel:i}=us(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(C=>!r2.includes(C.type)),d=c.flatMap(C=>Object.values(C.inputs)),u=c.flatMap(C=>Object.values(C.outputs)),_=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),m=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),h=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),g=c.map(C=>C.save()),f=h.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),y=new Map,{xLeft:b,xRight:v,yTop:E}=Twt(c);for(const[C,M]of _.entries()){const G=new FO;G.inputs.name.value=M.to.name,g.push({...G.save(),position:{x:v-i.value.settings.nodes.defaultWidth-100,y:E+C*200}}),f.push({id:Tu(),from:G.outputs.placeholder.id,to:M.to.id}),y.set(M.to.id,G.graphInterfaceId)}for(const[C,M]of m.entries()){const G=new UO;G.inputs.name.value=M.from.name,g.push({...G.save(),position:{x:b+100,y:E+C*200}}),f.push({id:Tu(),from:M.from.id,to:G.inputs.placeholder.id}),y.set(M.from.id,G.graphInterfaceId)}const S=Hn(new bp({connections:f,nodes:g,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Oa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=Hn(new R.type);o.addNode(w);const A=Math.round(c.map(C=>C.position.x).reduce((C,M)=>C+M,0)/c.length),I=Math.round(c.map(C=>C.position.y).reduce((C,M)=>C+M,0)/c.length);w.position.x=A,w.position.y=I,_.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[y.get(C.to.id)])}),m.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[y.get(C.from.id)],C.to)}),c.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(ec)&&e.executeCommand(ec),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(BO,{canExecute:s,execute:r})}function Twt(n){const e=n.reduce((r,i)=>{const o=i.position.x;return o{const o=i.position.y;return o{const o=i.position.x+i.width;return o>r?o:r},-1/0),xRight:e,yTop:t}}class i2{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const s=new t.type;e.addNode(s),s.load(this.nodeState),this.nodeId=s.id}removeNode(e){const t=e.nodes.find(s=>s.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class o2{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const s=t;this.connectionState={id:s.id,from:s.from.id,to:s.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),s=e.findNodeInterface(this.connectionState.to);if(!t||!s)return;const r=e.addConnection(t,s);r&&(r.id=this.connectionState.id),this.connectionId=r==null?void 0:r.id}removeConnection(e){const t=e.connections.find(s=>s.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class xwt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!i.value)if(a.value)c.value.push(y);else for(o.value!==r.value.length-1&&(r.value=r.value.slice(0,o.value+1)),r.value.push(y),o.value++;r.value.length>s.value;)r.value.shift()},u=()=>{a.value=!0},_=()=>{a.value=!1,c.value.length>0&&(d(new xwt(c.value)),c.value=[])},m=()=>r.value.length!==0&&o.value!==-1,h=()=>{m()&&(i.value=!0,r.value[o.value--].undo(n.value),i.value=!1)},g=()=>r.value.length!==0&&o.value{g()&&(i.value=!0,r.value[++o.value].redo(n.value),i.value=!1)};return Tn(n,(y,b)=>{b&&(b.events.addNode.unsubscribe(t),b.events.removeNode.unsubscribe(t),b.events.addConnection.unsubscribe(t),b.events.removeConnection.unsubscribe(t)),y&&(y.events.addNode.subscribe(t,v=>{d(new i2("addNode",v.id))}),y.events.removeNode.subscribe(t,v=>{d(new i2("removeNode",v.save()))}),y.events.addConnection.subscribe(t,v=>{d(new o2("addConnection",v.id))}),y.events.removeConnection.subscribe(t,v=>{d(new o2("removeConnection",v))}))},{immediate:!0}),e.registerCommand(Ab,{canExecute:m,execute:h}),e.registerCommand(Mb,{canExecute:g,execute:f}),e.registerCommand(Ny,{canExecute:()=>!a.value,execute:u}),e.registerCommand(Oy,{canExecute:()=>a.value,execute:_}),e.registerHotkey(["Control","z"],Ab),e.registerHotkey(["Control","y"],Mb),Hn({maxSteps:s})}const Nb="DELETE_NODES";function wwt(n,e){e.registerCommand(Nb,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(Ny);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const s=n.value.selectedNodes[t];n.value.removeNode(s)}e.executeCommand(Oy)}}),e.registerHotkey(["Delete"],Nb)}const GO="SWITCH_TO_MAIN_GRAPH";function Rwt(n,e,t){e.registerCommand(GO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(ec),t(n.value.editor.graph)}})}function Awt(n,e,t){wwt(n,e),Swt(n,e,t),QCt(n,e),Rwt(n,e,t)}const Ob="COPY",Ib="PASTE",Mwt="CLEAR_CLIPBOARD";function Nwt(n,e,t){const s=Symbol("ClipboardToken"),r=it(""),i=it(""),o=et(()=>!r.value),a=()=>{r.value="",i.value=""},c=()=>{const _=n.value.selectedNodes.flatMap(h=>[...Object.values(h.inputs),...Object.values(h.outputs)]),m=n.value.connections.filter(h=>_.includes(h.from)||_.includes(h.to)).map(h=>({from:h.from.id,to:h.to.id}));i.value=JSON.stringify(m),r.value=JSON.stringify(n.value.selectedNodes.map(h=>h.save()))},d=(_,m,h)=>{for(const g of _){let f;if((!h||h==="input")&&(f=Object.values(g.inputs).find(y=>y.id===m)),!f&&(!h||h==="output")&&(f=Object.values(g.outputs).find(y=>y.id===m)),f)return f}},u=()=>{if(o.value)return;const _=new Map,m=JSON.parse(r.value),h=JSON.parse(i.value),g=[],f=[],y=n.value;t.executeCommand(Ny);for(const b of m){const v=e.value.nodeTypes.get(b.type);if(!v){console.warn(`Node type ${b.type} not registered`);return}const E=new v.type,S=E.id;g.push(E),E.hooks.beforeLoad.subscribe(s,R=>{const w=R;return w.position&&(w.position.x+=100,w.position.y+=100),E.hooks.beforeLoad.unsubscribe(s),w}),y.addNode(E),E.load({...b,id:S}),E.id=S,_.set(b.id,S);for(const R of Object.values(E.inputs)){const w=Tu();_.set(R.id,w),R.id=w}for(const R of Object.values(E.outputs)){const w=Tu();_.set(R.id,w),R.id=w}}for(const b of h){const v=d(g,_.get(b.from),"output"),E=d(g,_.get(b.to),"input");if(!v||!E)continue;const S=y.addConnection(v,E);S&&f.push(S)}return n.value.selectedNodes=g,t.executeCommand(Oy),{newNodes:g,newConnections:f}};return t.registerCommand(Ob,{canExecute:()=>n.value.selectedNodes.length>0,execute:c}),t.registerHotkey(["Control","c"],Ob),t.registerCommand(Ib,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],Ib),t.registerCommand(Mwt,{canExecute:()=>!0,execute:a}),Hn({isEmpty:o})}const Owt="OPEN_SIDEBAR";function Iwt(n,e){e.registerCommand(Owt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function kwt(n,e){Iwt(n,e)}const Dwt={},Lwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Pwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Fwt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),Uwt=[Pwt,Fwt];function Bwt(n,e){return T(),x("svg",Lwt,Uwt)}const Gwt=sn(Dwt,[["render",Bwt]]),Vwt={},zwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Hwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),qwt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),Ywt=[Hwt,qwt];function $wt(n,e){return T(),x("svg",zwt,Ywt)}const Wwt=sn(Vwt,[["render",$wt]]),Kwt={},jwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Qwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Xwt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Zwt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),Jwt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),e2t=[Qwt,Xwt,Zwt,Jwt];function t2t(n,e){return T(),x("svg",jwt,e2t)}const n2t=sn(Kwt,[["render",t2t]]),s2t={},r2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},i2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o2t=l("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),a2t=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),l2t=[i2t,o2t,a2t];function c2t(n,e){return T(),x("svg",r2t,l2t)}const d2t=sn(s2t,[["render",c2t]]),u2t={},p2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},f2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),_2t=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),m2t=l("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),h2t=[f2t,_2t,m2t];function g2t(n,e){return T(),x("svg",p2t,h2t)}const b2t=sn(u2t,[["render",g2t]]),y2t={},v2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},E2t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),S2t=l("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),T2t=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),x2t=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),C2t=[E2t,S2t,T2t,x2t];function w2t(n,e){return T(),x("svg",v2t,C2t)}const R2t=sn(y2t,[["render",w2t]]),A2t={},M2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},N2t=Zi('',6),O2t=[N2t];function I2t(n,e){return T(),x("svg",M2t,O2t)}const k2t=sn(A2t,[["render",I2t]]),D2t={},L2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},P2t=Zi('',18),F2t=[P2t];function U2t(n,e){return T(),x("svg",L2t,F2t)}const B2t=sn(D2t,[["render",U2t]]),G2t={},V2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},z2t=Zi('',6),H2t=[z2t];function q2t(n,e){return T(),x("svg",V2t,H2t)}const Y2t=sn(G2t,[["render",q2t]]),$2t=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=us();return{viewModel:n}}}),W2t=["disabled","title"];function K2t(n,e,t,s,r,i){return T(),x("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),at(Pu(n.icon),{key:0})):(T(),x(Fe,{key:1},[Ze(Y(n.title),1)],64))],8,W2t)}const j2t=sn($2t,[["render",K2t]]),Q2t=cn({components:{ToolbarButton:j2t},setup(){const{viewModel:n}=us();return{isSubgraph:et(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Ob,title:"Copy",icon:b2t},{command:Ib,title:"Paste",icon:d2t},{command:Nb,title:"Delete selected nodes",icon:Y2t},{command:Ab,title:"Undo",icon:Gwt},{command:Mb,title:"Redo",icon:Wwt},{command:Ld,title:"Box Select",icon:B2t},{command:BO,title:"Create Subgraph",icon:k2t}],subgraphCommands:[{command:ec,title:"Save Subgraph",icon:R2t},{command:GO,title:"Back to Main Graph",icon:n2t}]}}});function X2t(n,e,t,s,r,i){const o=Je("toolbar-button");return T(),x("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Fe,null,We(n.commands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),x(Fe,{key:0},We(n.subgraphCommands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):B("",!0)],32)}const Z2t=sn(Q2t,[["render",X2t]]),J2t={class:"connections-container"},eRt=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),s=Bd(e,"viewModel");Fxt(s);const r=it(null);na("editorEl",r);const i=et(()=>e.viewModel.displayedGraph.nodes),o=et(()=>e.viewModel.displayedGraph.nodes.map(I=>RO(Bd(I,"position")))),a=et(()=>e.viewModel.displayedGraph.connections),c=et(()=>e.viewModel.displayedGraph.selectedNodes),d=Uxt(),u=Bxt(),_=Gxt(s),m=Vxt(r),h=et(()=>({...d.styles.value})),g=it(0);e.viewModel.editor.hooks.load.subscribe(t,I=>(g.value++,I));const f=I=>{d.onPointerMove(I),u.onMouseMove(I)},y=I=>{if(I.button===0){if(m.onPointerDown(I))return;I.target===r.value&&(R(),d.onPointerDown(I)),u.onMouseDown()}},b=I=>{d.onPointerUp(I),u.onMouseUp()},v=I=>{I.key==="Tab"&&I.preventDefault(),e.viewModel.commandHandler.handleKeyDown(I)},E=I=>{e.viewModel.commandHandler.handleKeyUp(I)},S=I=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||R(),e.viewModel.displayedGraph.selectedNodes.push(I)},R=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=I=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const M=i.value.indexOf(C),G=o.value[M];G.onPointerDown(I),document.addEventListener("pointermove",G.onPointerMove)}document.addEventListener("pointerup",A)},A=()=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const C=i.value.indexOf(I),M=o.value[C];M.onPointerUp(),document.removeEventListener("pointermove",M.onPointerMove)}document.removeEventListener("pointerup",A)};return(I,C)=>(T(),x("div",{ref_key:"el",ref:r,tabindex:"-1",class:Le(["baklava-editor",{"baklava-ignore-mouse":!!bt(u).temporaryConnection.value||bt(d).dragging.value,"--temporary-connection":!!bt(u).temporaryConnection.value,"--start-selection-box":bt(m).startSelection}]),onPointermove:$(f,["self"]),onPointerdown:y,onPointerup:b,onWheel:C[1]||(C[1]=$((...M)=>bt(d).onMouseWheel&&bt(d).onMouseWheel(...M),["self"])),onKeydown:v,onKeyup:E,onContextmenu:C[2]||(C[2]=(...M)=>bt(_).open&&bt(_).open(...M))},[on(I.$slots,"background",{},()=>[z(qxt)]),on(I.$slots,"toolbar",{},()=>[I.viewModel.settings.toolbar.enabled?(T(),at(Z2t,{key:0})):B("",!0)]),on(I.$slots,"palette",{},()=>[I.viewModel.settings.palette.enabled?(T(),at(YCt,{key:0})):B("",!0)]),(T(),x("svg",J2t,[(T(!0),x(Fe,null,We(a.value,M=>(T(),x("g",{key:M.id+g.value.toString()},[on(I.$slots,"connection",{connection:M},()=>[z(ACt,{connection:M},null,8,["connection"])])]))),128)),on(I.$slots,"temporaryConnection",{temporaryConnection:bt(u).temporaryConnection.value},()=>[bt(u).temporaryConnection.value?(T(),at(OCt,{key:0,connection:bt(u).temporaryConnection.value},null,8,["connection"])):B("",!0)])])),l("div",{class:"node-container",style:Bt(h.value)},[z(Ir,{name:"fade"},{default:Ie(()=>[(T(!0),x(Fe,null,We(i.value,(M,G)=>on(I.$slots,"node",{key:M.id+g.value.toString(),node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},()=>[z(ECt,{node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),on(I.$slots,"sidebar",{},()=>[I.viewModel.settings.sidebar.enabled?(T(),at(PCt,{key:0})):B("",!0)]),on(I.$slots,"minimap",{},()=>[I.viewModel.settings.enableMinimap?(T(),at(FCt,{key:0})):B("",!0)]),on(I.$slots,"contextMenu",{contextMenu:bt(_)},()=>[I.viewModel.settings.contextMenu.enabled?(T(),at(My,{key:0,modelValue:bt(_).show.value,"onUpdate:modelValue":C[0]||(C[0]=M=>bt(_).show.value=M),items:bt(_).items.value,x:bt(_).x.value,y:bt(_).y.value,onClick:bt(_).onClick},null,8,["modelValue","items","x","y","onClick"])):B("",!0)]),bt(m).isSelecting?(T(),x("div",{key:0,class:"selection-box",style:Bt(bt(m).getStyles())},null,4)):B("",!0)],34))}});function tRt(n){const e=it([]),t=it([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&wO(document.activeElement))&&t.value.forEach(a=>{var c,d;a.keys.every(u=>e.value.includes(u))&&((c=a.options)!=null&&c.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,c)=>{t.value.push({keys:o,commandName:a,options:c})}}}const nRt=()=>{const n=it(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},s=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...c)},r=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(c)},i=tRt(s);return Hn({hasCommand:e,registerCommand:t,executeCommand:s,canExecuteCommand:r,...i})},sRt=n=>!(n instanceof _c);function rRt(n,e){return{switchGraph:s=>{let r;if(sRt(s))r=new _c(n.value),s.createGraph(r);else{if(s!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");r=s}e.value&&e.value!==n.value.graph&&e.value.destroy(),r.panning=r.panning??s.panning??{x:0,y:0},r.scaling=r.scaling??s.scaling??1,r.selectedNodes=r.selectedNodes??[],r.sidebar=r.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=r}}}function iRt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const oRt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function aRt(n){const e=it(new Nxt),t=Symbol("ViewModelToken"),s=it(null),r=UI(s),{switchGraph:i}=rRt(e,s),o=et(()=>r.value&&r.value!==e.value.graph),a=Hn(oRt()),c=nRt(),d=Cwt(r,c),u=Nwt(r,e,c),_={renderNode:new ds(null),renderInterface:new ds(null)};return Awt(r,c,i),kwt(r,c),Tn(e,(m,h)=>{h&&(h.events.registerGraph.unsubscribe(t),h.graphEvents.beforeAddNode.unsubscribe(t),m.nodeHooks.beforeLoad.unsubscribe(t),m.nodeHooks.afterSave.unsubscribe(t),m.graphTemplateHooks.beforeLoad.unsubscribe(t),m.graphTemplateHooks.afterSave.unsubscribe(t),m.graph.hooks.load.unsubscribe(t),m.graph.hooks.save.unsubscribe(t)),m&&(m.nodeHooks.beforeLoad.subscribe(t,(g,f)=>(f.position=g.position??{x:0,y:0},f.width=g.width??a.nodes.defaultWidth,f.twoColumn=g.twoColumn??!1,g)),m.nodeHooks.afterSave.subscribe(t,(g,f)=>(g.position=f.position,g.width=f.width,g.twoColumn=f.twoColumn,g)),m.graphTemplateHooks.beforeLoad.subscribe(t,(g,f)=>(f.panning=g.panning,f.scaling=g.scaling,g)),m.graphTemplateHooks.afterSave.subscribe(t,(g,f)=>(g.panning=f.panning,g.scaling=f.scaling,g)),m.graph.hooks.load.subscribe(t,(g,f)=>(f.panning=g.panning,f.scaling=g.scaling,g)),m.graph.hooks.save.subscribe(t,(g,f)=>(g.panning=f.panning,g.scaling=f.scaling,g)),m.graphEvents.beforeAddNode.subscribe(t,g=>iRt(g,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(FO,{category:"Subgraphs"}),e.value.registerNodeType(UO,{category:"Subgraphs"}),i(m.graph))},{immediate:!0}),Hn({editor:e,displayedGraph:r,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:_,switchGraph:i})}const lRt=Ka({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new en("Request",""),agent_name:()=>new fwt("Personality","",Ps.state.config.personalities).setPort(!1)},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),cRt=Ka({type:"RAGNode",title:"RAG",inputs:{request:()=>new en("Prompt",""),document_path:()=>new mc("Document path","").setPort(!1)},outputs:{prompt:()=>new en("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await ne.get("/rag",{params:{text:n,doc_path:e}})).data}catch(s){console.error(s)}return{response:t}}}),a2=Ka({type:"Task",title:"Task",inputs:{description:()=>new mc("Task description","").setPort(!1)},outputs:{prompt:()=>new en("Prompt")},calculate({description:n}){return{prompt:n}}}),l2=Ka({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new en("Input","")},outputs:{response:()=>new gwt("Text","")},async calculate({request:n}){}}),c2=Ka({type:"LLMNode",title:"LLM",inputs:{request:()=>new en("Request","")},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),dRt=Ka({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new en("Question",""),outputs:()=>new mc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new en("Response","")}}),uRt=cn({components:{"baklava-editor":eRt},setup(){const n=aRt(),e=new Lxt(n.editor);n.editor.registerNodeType(lRt),n.editor.registerNodeType(a2),n.editor.registerNodeType(cRt),n.editor.registerNodeType(l2),n.editor.registerNodeType(c2),n.editor.registerNodeType(dRt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),Oxt(a,n.editor),e.resume()}),e.start();function s(a,c,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const r=s(a2,300,140),i=s(c2,550,140),o=s(l2,850,140);return n.displayedGraph.addConnection(r.outputs.prompt,i.inputs.request),n.displayedGraph.addConnection(i.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),pRt={style:{width:"100vw",height:"100vh"}};function fRt(n,e,t,s,r,i){const o=Je("baklava-editor");return T(),x("div",pRt,[z(o,{"view-model":n.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const _Rt=st(uRt,[["render",fRt]]),mRt={},hRt={style:{width:"100vw",height:"100vh"}},gRt=["src"];function bRt(n,e,t,s,r,i){return T(),x("div",hRt,[l("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,gRt)])}const yRt=st(mRt,[["render",bRt]]),vRt={},ERt={style:{width:"100vw",height:"100vh"}},SRt=["src"];function TRt(n,e,t,s,r,i){return T(),x("div",ERt,[l("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,SRt)])}const xRt=st(vRt,[["render",TRt]]),CRt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},wRt={class:"app-card flex flex-col h-full"},RRt={class:"flex-grow"},ARt={class:"flex items-center mb-4"},MRt=["src"],NRt={class:"font-bold text-xl text-gray-800"},ORt={class:"text-sm text-gray-600"},IRt={class:"text-sm text-gray-600"},kRt={class:"text-sm text-gray-600"},DRt={class:"text-sm text-gray-600"},LRt={class:"text-sm text-gray-600"},PRt={class:"mb-4"},FRt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},URt={class:"text-sm text-gray-600 mb-2"},BRt={key:0,class:"mb-4"},GRt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},VRt={class:"mt-auto pt-4 border-t"},zRt={class:"flex justify-between items-center flex-wrap"},HRt=["title"],qRt=["fill"];function YRt(n,e,t,s,r,i){return T(),x("div",wRt,[l("div",RRt,[l("div",ARt,[l("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,MRt),l("div",null,[l("h3",NRt,Y(t.app.name),1),l("p",ORt,"Author: "+Y(t.app.author),1),l("p",IRt,"Version: "+Y(t.app.version),1),l("p",kRt,"Category: "+Y(t.app.category),1),l("p",DRt,"Creation date: "+Y(i.formatDate(t.app.creation_date)),1),l("p",LRt,"Last update: "+Y(i.formatDate(t.app.last_update_date)),1),l("p",{class:Le(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},Y(t.app.is_public?"Public App":"Local App"),3)])]),l("div",PRt,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",FRt,Y(t.app.description),1)]),l("p",URt,"AI Model: "+Y(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),x("div",BRt,[e[11]||(e[11]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),l("p",GRt,Y(t.app.disclaimer),1)])):B("",!0)]),l("div",VRt,[l("div",zRt,[l("button",{onClick:e[0]||(e[0]=$(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,qRt))],8,HRt),t.app.installed?(T(),x("button",{key:0,onClick:e[1]||(e[1]=$(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),x("button",{key:1,onClick:e[2]||(e[2]=$(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),x("button",{key:2,onClick:e[3]||(e[3]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),x("button",{key:3,onClick:e[4]||(e[4]=$(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):B("",!0),l("button",{onClick:e[5]||(e[5]=$(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),x("button",{key:4,onClick:e[6]||(e[6]=$(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):B("",!0),t.app.installed?(T(),x("button",{key:5,onClick:e[7]||(e[7]=$(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):B("",!0),t.app.has_server&&t.app.installed?(T(),x("button",{key:6,onClick:e[8]||(e[8]=$(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):B("",!0),t.app.has_update?(T(),x("button",{key:7,onClick:e[9]||(e[9]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):B("",!0)])])])}const $Rt=st(CRt,[["render",YRt],["__scopeId","data-v-ae134649"]]),WRt={components:{AppCard:$Rt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,s=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&s})},sortedAndFilteredApps(){return[...this.filteredApps].sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=this.getDateValue(n.creation_date)-this.getDateValue(e.creation_date);break;case"update":t=this.getDateValue(n.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{getDateValue(n){if(!n)return 0;const e=new Date(n);return isNaN(e.getTime())?0:e.getTime()},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. This may take some time the first time as some libraries need to be installed.`),ne.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var s,r;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((r=(s=t.response)==null?void 0:s.data)==null?void 0:r.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const s=await ne.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=s.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(s){console.error("Error uploading app:",s),this.error=((t=(e=s.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await ne.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await ne.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await ne.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await ne.get(`/apps/${n.folder_name}/README.md`);this.appCode=kt(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await ne.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await ne.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await ne.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await ne.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await ne.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],s=t&&t.match(/filename="?(.+)"?/i),r=s?s[1]:"app.zip",i=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.download=r,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},KRt={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},jRt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},QRt={class:"flex flex-wrap items-center justify-between gap-4"},XRt={class:"flex items-center space-x-4"},ZRt=["disabled"],JRt={key:0},eAt={key:1,class:"error"},tAt={class:"relative flex-grow max-w-md"},nAt={class:"flex items-center space-x-4"},sAt=["value"],rAt={class:"flex items-center space-x-4"},iAt={for:"installed-only",class:"font-semibold"},oAt={for:"installed-only",class:"font-semibold"},aAt={class:"flex items-center space-x-4"},lAt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},cAt={key:1,class:"pb-20"},dAt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},uAt={class:"text-2xl font-bold mb-4"},pAt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},fAt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},_At={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},mAt={class:"flex justify-between items-center mb-4"},hAt={class:"text-2xl font-bold"},gAt=["srcdoc"],bAt={key:1,class:"text-center text-red-500"};function yAt(n,e,t,s,r,i){const o=Je("app-card");return T(),x("div",KRt,[l("nav",jRt,[l("div",QRt,[l("div",XRt,[l("button",{onClick:e[0]||(e[0]=(...a)=>i.fetchGithubApps&&i.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Ze(" Refresh ")])),l("button",{onClick:e[1]||(e[1]=(...a)=>i.openAppsFolder&&i.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),Ze(" Open Folder ")])),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>i.onFileSelected&&i.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>i.triggerFileInput&&i.triggerFileInput(...a)),disabled:r.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},Y(r.isUploading?"Uploading...":"Upload App"),9,ZRt)]),r.message?(T(),x("p",JRt,Y(r.message),1)):B("",!0),r.error?(T(),x("p",eAt,Y(r.error),1)):B("",!0),l("div",tAt,[k(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>r.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[ae,r.searchQuery]]),e[13]||(e[13]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",nAt,[e[15]||(e[15]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>r.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=l("option",{value:"all"},"All Categories",-1)),(T(!0),x(Fe,null,We(i.categories,a=>(T(),x("option",{key:a,value:a},Y(a),9,sAt))),128))],512),[[Ot,r.selectedCategory]])]),l("div",rAt,[l("label",iAt,[k(l("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>r.showOnlyInstalled=a),class:"mr-2"},null,512),[[He,r.showOnlyInstalled]]),e[16]||(e[16]=Ze(" Show only installed apps "))]),l("label",oAt,[k(l("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>r.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[He,r.showOnlyUnInstalled]]),e[17]||(e[17]=Ze(" Show only non installed apps "))])]),l("div",aAt,[e[19]||(e[19]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>r.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[Ot,r.sortBy]]),l("button",{onClick:e[9]||(e[9]=(...a)=>i.toggleSortOrder&&i.toggleSortOrder(...a)),class:"btn btn-secondary"},Y(r.sortOrder==="asc"?"↑":"↓"),1)])])]),r.loading?(T(),x("div",lAt,e[20]||(e[20]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),x("div",cAt,[e[21]||(e[21]=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),l("div",dAt,[(T(!0),x(Fe,null,We(i.favoriteApps,a=>(T(),at(o,{key:a.appName,app:a,onToggleFavorite:i.toggleFavorite,onInstall:i.installApp,onUninstall:i.uninstallApp,onDelete:i.deleteApp,onEdit:i.editApp,onDownload:i.downloadApp,onHelp:i.handleAppClick,onOpen:i.openApp,onStartServer:i.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),l("h2",uAt,Y(i.currentCategoryName)+" ("+Y(i.sortedAndFilteredApps.length)+")",1),l("div",pAt,[(T(!0),x(Fe,null,We(i.sortedAndFilteredApps,a=>(T(),at(o,{key:a.name,app:a,onToggleFavorite:i.toggleFavorite,onInstall:i.installApp,onUninstall:i.uninstallApp,onDelete:i.deleteApp,onEdit:i.editApp,onDownload:i.downloadApp,onHelp:i.handleAppClick,onOpen:i.openApp,onStartServer:i.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),r.selectedApp?(T(),x("div",fAt,[l("div",_At,[l("div",mAt,[l("h2",hAt,Y(r.selectedApp.name),1),l("button",{onClick:e[10]||(e[10]=(...a)=>i.backToZoo&&i.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),r.appCode?(T(),x("iframe",{key:0,srcdoc:r.appCode,class:"flex-grow border-none"},null,8,gAt)):(T(),x("p",bAt,"Please install this app to view its code."))])])):B("",!0),r.message?(T(),x("div",{key:3,class:Le(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":r.successMessage,"bg-red-100 text-red-800":!r.successMessage}])},Y(r.message),3)):B("",!0)])}const vAt=st(WRt,[["render",yAt]]),EAt={components:{PersonalityEntry:dN},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredPersonalities(){return[...this.filteredApps].sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=this.getDateValue(n.creation_date)-this.getDateValue(e.creation_date);break;case"update":t=this.getDateValue(n.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{getDateValue(n){if(!n)return 0;const e=new Date(n);return isNaN(e.getTime())?0:e.getTime()},async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: `+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);Ue(()=>{feather.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: @@ -3994,4 +3994,4 @@ You have the freedom to give, sell, or keep the personas you create for yourself The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ne.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality -`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await ne.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},SAt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},TAt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},xAt={class:"flex flex-wrap items-center justify-between gap-4"},CAt={key:0},wAt={key:1,class:"error"},RAt={class:"relative flex-grow max-w-md"},AAt={class:"flex items-center space-x-4"},MAt=["value"],NAt={class:"flex items-center space-x-4"},OAt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},IAt={key:1},kAt={class:"container mx-auto px-4 flex flex-column pb-20"},DAt={key:0},LAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},PAt={class:"container mx-auto px-4 flex flex-column pb-20"},FAt={class:"text-2xl font-bold my-8"},UAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},BAt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},GAt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},VAt={class:"flex justify-between items-center mb-4"},zAt={class:"text-2xl font-bold"},HAt=["srcdoc"],qAt={key:1,class:"text-center text-red-500"};function YAt(n,e,t,s,r,i){const o=Je("personality-entry");return T(),x("div",SAt,[l("nav",TAt,[l("div",xAt,[r.message?(T(),x("p",CAt,Y(r.message),1)):B("",!0),r.error?(T(),x("p",wAt,Y(r.error),1)):B("",!0),l("div",RAt,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>r.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[ae,r.searchQuery]]),e[5]||(e[5]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",AAt,[e[7]||(e[7]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>r.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=l("option",{value:"all"},"All Categories",-1)),(T(!0),x(Fe,null,We(i.categories,a=>(T(),x("option",{key:a,value:a},Y(a),9,MAt))),128))],512),[[Ot,r.selectedCategory]])]),l("div",NAt,[e[9]||(e[9]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>r.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[Ot,r.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>i.toggleSortOrder&&i.toggleSortOrder(...a)),class:"btn btn-secondary"},Y(r.sortOrder==="asc"?"↑":"↓"),1)])])]),r.loading?(T(),x("div",OAt,e[10]||(e[10]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),x("div",IAt,[l("div",kAt,[i.favoriteApps.length>0&&!r.searchQuery?(T(),x("div",DAt,[e[11]||(e[11]=l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),l("div",LAt,[(T(!0),x(Fe,null,We(i.favoriteApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"on-toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):B("",!0)]),l("div",PAt,[l("h2",FAt,Y(i.currentCategoryName)+" ("+Y(i.sortedAndFilteredPersonalities.length)+")",1),l("div",UAt,[(T(!0),x(Fe,null,We(i.sortedAndFilteredPersonalities,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),r.selectedApp?(T(),x("div",BAt,[l("div",GAt,[l("div",VAt,[l("h2",zAt,Y(r.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),r.appCode?(T(),x("iframe",{key:0,srcdoc:r.appCode,class:"flex-grow border-none"},null,8,HAt)):(T(),x("p",qAt,"Please install this app to view its code."))])])):B("",!0),r.message?(T(),x("div",{key:3,class:Le(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":r.successMessage,"bg-red-100 text-red-800":!r.successMessage}])},Y(r.message),3)):B("",!0),e[12]||(e[12]=l("div",{class:"h-20"},null,-1))])}const $At=st(EAt,[["render",YAt],["__scopeId","data-v-f8c39e0b"]]),WAt=H3({history:E3("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:vAt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:$At},{path:"/auto_sd_view/",name:"AutoSD",component:xRt},{path:"/comfyui_view/",name:"ComfyUI",component:yRt},{path:"/playground/",name:"playground",component:jet},{path:"/extensions/",name:"extensions",component:rtt},{path:"/help_view/",name:"help_view",component:Ktt},{path:"/settings/",name:"settings",component:upt},{path:"/training/",name:"training",component:xpt},{path:"/quantizing/",name:"quantizing",component:Npt},{path:"/",name:"discussions",component:mbt},{path:"/interactive/",name:"interactive",component:Sxt},{path:"/nodes/",name:"nodes",component:_Rt}]}),yp=FD(NXe);function KAt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ps=dL({state(){return{theme_vars:{lollms_title:"LoLLMS",falling_object:"L",activate_dropping_animation:!1,lollms_welcome_short_message:"Welcome to LoLLMS WebUI",lollms_welcome_message:"Embark on a journey through the realm of advanced AI with LoLLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence."},personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{updatePersonality(n,e){const t=n.personalities.findIndex(s=>s.full_path===e.full_path);t!==-1?n.personalities[t]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setThemeVars(n,e){n.theme_vars=e},setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getThemeVars(n){return n.theme_vars},getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await ne.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await VO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Ks("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await ne.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await ne.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await ne.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("languages",s),n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("language",r),n("setLanguage",r),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",r)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await ne.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id});const s=t.data;n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id});const r=t.data;n("setLanguage",r)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Ks("get_all_personalities"),s=Object.keys(t);for(let r=0;r{let d=!1;for(const _ of this.state.config.personalities)_.includes(i+"/"+c.folder)&&(d=!0);let u={};return u=c,u.category=i,u.full_path=i+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((r,i)=>r.name.localeCompare(i.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let r=0;ra.full_path==i);if(o>=0){let a=KAt(this.state.personalities[o]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else t.push(r),console.log("Couldn't load personality : ",i)}for(let r=t.length-1;r>=0;r--)this.state.config.personalities.splice(t[r],1),this.state.config.active_personality_id>t[r]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e);const s=this.state.personalities[this.state.personalities.findIndex(r=>r.full_path==this.state.config.personalities[this.state.config.active_personality_id])];console.log("Setting current mounted personality: ",s),this.state.mountedPers=s},async refreshBindings({commit:n}){let e=await Ks("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(s=>s.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(s=>s.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){const t=(await ne.get("/get_available_models")).data;n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Ks("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){let e=await Ks("list_models"),t=await Ks("get_active_model");t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),this.state.modelsZoo.map(r=>{r.isInstalled=e.includes(r.name)}),this.state.installedModels=this.state.modelsZoo.filter(r=>r.isInstalled);const s=this.state.modelsZoo.findIndex(r=>r.name==this.state.config.model_name);s!=-1&&n("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Ks("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Ks("ram_usage")},async refreshVramUsage({commit:n}){const e=await Ks("vram_usage"),t=[];if(e.nb_gpus>0){for(let r=0;r{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},SAt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},TAt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},xAt={class:"flex flex-wrap items-center justify-between gap-4"},CAt={key:0},wAt={key:1,class:"error"},RAt={class:"relative flex-grow max-w-md"},AAt={class:"flex items-center space-x-4"},MAt=["value"],NAt={class:"flex items-center space-x-4"},OAt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},IAt={key:1},kAt={class:"container mx-auto px-4 flex flex-column pb-20"},DAt={key:0},LAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},PAt={class:"container mx-auto px-4 flex flex-column pb-20"},FAt={class:"text-2xl font-bold my-8"},UAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},BAt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},GAt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},VAt={class:"flex justify-between items-center mb-4"},zAt={class:"text-2xl font-bold"},HAt=["srcdoc"],qAt={key:1,class:"text-center text-red-500"};function YAt(n,e,t,s,r,i){const o=Je("personality-entry");return T(),x("div",SAt,[l("nav",TAt,[l("div",xAt,[r.message?(T(),x("p",CAt,Y(r.message),1)):B("",!0),r.error?(T(),x("p",wAt,Y(r.error),1)):B("",!0),l("div",RAt,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>r.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[ae,r.searchQuery]]),e[5]||(e[5]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",AAt,[e[7]||(e[7]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>r.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=l("option",{value:"all"},"All Categories",-1)),(T(!0),x(Fe,null,We(i.categories,a=>(T(),x("option",{key:a,value:a},Y(a),9,MAt))),128))],512),[[Ot,r.selectedCategory]])]),l("div",NAt,[e[9]||(e[9]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>r.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[Ot,r.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>i.toggleSortOrder&&i.toggleSortOrder(...a)),class:"btn btn-secondary"},Y(r.sortOrder==="asc"?"↑":"↓"),1)])])]),r.loading?(T(),x("div",OAt,e[10]||(e[10]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),x("div",IAt,[l("div",kAt,[i.favoriteApps.length>0&&!r.searchQuery?(T(),x("div",DAt,[e[11]||(e[11]=l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),l("div",LAt,[(T(!0),x(Fe,null,We(i.favoriteApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"on-toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):B("",!0)]),l("div",PAt,[l("h2",FAt,Y(i.currentCategoryName)+" ("+Y(i.sortedAndFilteredPersonalities.length)+")",1),l("div",UAt,[(T(!0),x(Fe,null,We(i.sortedAndFilteredPersonalities,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),r.selectedApp?(T(),x("div",BAt,[l("div",GAt,[l("div",VAt,[l("h2",zAt,Y(r.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),r.appCode?(T(),x("iframe",{key:0,srcdoc:r.appCode,class:"flex-grow border-none"},null,8,HAt)):(T(),x("p",qAt,"Please install this app to view its code."))])])):B("",!0),r.message?(T(),x("div",{key:3,class:Le(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":r.successMessage,"bg-red-100 text-red-800":!r.successMessage}])},Y(r.message),3)):B("",!0),e[12]||(e[12]=l("div",{class:"h-20"},null,-1))])}const $At=st(EAt,[["render",YAt],["__scopeId","data-v-f8c39e0b"]]),WAt=H3({history:E3("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:vAt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:$At},{path:"/auto_sd_view/",name:"AutoSD",component:xRt},{path:"/comfyui_view/",name:"ComfyUI",component:yRt},{path:"/playground/",name:"playground",component:jet},{path:"/extensions/",name:"extensions",component:rtt},{path:"/help_view/",name:"help_view",component:Ktt},{path:"/settings/",name:"settings",component:upt},{path:"/training/",name:"training",component:xpt},{path:"/quantizing/",name:"quantizing",component:Npt},{path:"/",name:"discussions",component:mbt},{path:"/interactive/",name:"interactive",component:Sxt},{path:"/nodes/",name:"nodes",component:_Rt}]}),yp=FD(NXe);function KAt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ps=dL({state(){return{theme_vars:{lollms_title:"LoLLMS",falling_object:"L",activate_dropping_animation:!1,lollms_welcome_short_message:"Welcome to LoLLMS WebUI",lollms_welcome_message:"Embark on a journey through the realm of advanced AI with LoLLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence."},personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{updatePersonality(n,e){const t=n.personalities.findIndex(s=>s.full_path===e.full_path);t!==-1?n.personalities[t]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setThemeVars(n,e){n.theme_vars=e},setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getThemeVars(n){return n.theme_vars},getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await ne.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await VO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await js("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await ne.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await ne.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await ne.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("languages",s),n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("language",r),n("setLanguage",r),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",r)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await ne.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id});const s=t.data;n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id});const r=t.data;n("setLanguage",r)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await js("get_all_personalities"),s=Object.keys(t);for(let r=0;r{let d=!1;for(const _ of this.state.config.personalities)_.includes(i+"/"+c.folder)&&(d=!0);let u={};return u=c,u.category=i,u.full_path=i+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((r,i)=>r.name.localeCompare(i.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let r=0;ra.full_path==i);if(o>=0){let a=KAt(this.state.personalities[o]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else t.push(r),console.log("Couldn't load personality : ",i)}for(let r=t.length-1;r>=0;r--)this.state.config.personalities.splice(t[r],1),this.state.config.active_personality_id>t[r]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e);const s=this.state.personalities[this.state.personalities.findIndex(r=>r.full_path==this.state.config.personalities[this.state.config.active_personality_id])];console.log("Setting current mounted personality: ",s),this.state.mountedPers=s},async refreshBindings({commit:n}){let e=await js("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(s=>s.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(s=>s.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){const t=(await ne.get("/get_available_models")).data;n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await js("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){let e=await js("list_models"),t=await js("get_active_model");t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),this.state.modelsZoo.map(r=>{r.isInstalled=e.includes(r.name)}),this.state.installedModels=this.state.modelsZoo.filter(r=>r.isInstalled);const s=this.state.modelsZoo.findIndex(r=>r.name==this.state.config.model_name);s!=-1&&n("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await js("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await js("ram_usage")},async refreshVramUsage({commit:n}){const e=await js("vram_usage"),t=[];if(e.nb_gpus>0){for(let r=0;r - License: see project LICENSE - Touched: 2022 -*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.katex-display{display:inline-block;margin:0}.katex{display:inline-block;white-space:nowrap}.inline-latex{display:inline!important}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.topbar-container[data-v-5cfc6bf7]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-5cfc6bf7]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-5cfc6bf7]{transform:translateY(-100%)}.topbar-content[data-v-5cfc6bf7]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-5cfc6bf7]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-5cfc6bf7]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-5cfc6bf7]{transform:scale(1.2)}.placeholder[data-v-5cfc6bf7]{height:10px}.toolbar-button[data-v-5cfc6bf7]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-5cfc6bf7]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-5cfc6bf7]{position:relative;width:100%}.hover-zone[data-v-5cfc6bf7]{opacity:0}.error[data-v-5cfc6bf7]{color:red;margin-left:1rem}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-ee2144e6]{font-size:24px;animation:pulsate-ee2144e6 1.5s infinite}@keyframes pulsate-ee2144e6{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-ee2144e6],.list-enter-active[data-v-ee2144e6],.list-leave-active[data-v-ee2144e6]{transition:all .5s ease}.list-enter-from[data-v-ee2144e6]{transform:translatey(-30px)}.list-leave-to[data-v-ee2144e6]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-ee2144e6]{position:absolute}.bounce-enter-active[data-v-ee2144e6]{animation:bounce-in-ee2144e6 .5s}.bounce-leave-active[data-v-ee2144e6]{animation:bounce-in-ee2144e6 .5s reverse}@keyframes bounce-in-ee2144e6{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-ee2144e6]{background-color:#0ff}.hover[data-v-ee2144e6]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-ee2144e6]{font-weight:700}.control-buttons[data-v-d1a87267]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-d1a87267]{transform:translate(0)}.control-buttons-inner[data-v-d1a87267]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-9ac7c8e3{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-9ac7c8e3{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-9ac7c8e3{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-9ac7c8e3]{animation:rolling-ball-9ac7c8e3 4s infinite ease-in-out,bounce-9ac7c8e3 1s infinite ease-in-out}.animate-fade-in-up[data-v-9ac7c8e3]{animation:fade-in-up-9ac7c8e3 1.5s ease-out}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}@keyframes giggle-49d898d3{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-49d898d3]{animation:giggle-49d898d3 1.5s infinite ease-in-out}.custom-scrollbar[data-v-49d898d3]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-49d898d3]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-49d898d3]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-49d898d3]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-49d898d3{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-49d898d3]{animation:custom-pulse-49d898d3 2s infinite}.slide-right-enter-active[data-v-49d898d3],.slide-right-leave-active[data-v-49d898d3]{transition:transform .3s ease}.slide-right-enter[data-v-49d898d3],.slide-right-leave-to[data-v-49d898d3]{transform:translate(-100%)}.slide-left-enter-active[data-v-49d898d3],.slide-left-leave-active[data-v-49d898d3]{transition:transform .3s ease}.slide-left-enter[data-v-49d898d3],.slide-left-leave-to[data-v-49d898d3]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-49d898d3]{animation:fade-and-fly-enter-49d898d3 .5s ease}.fade-and-fly-leave-active[data-v-49d898d3]{animation:fade-and-fly-leave-49d898d3 .5s ease}@keyframes fade-and-fly-enter-49d898d3{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-49d898d3{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-49d898d3],.list-enter-active[data-v-49d898d3],.list-leave-active[data-v-49d898d3]{transition:all .5s ease}.list-enter-from[data-v-49d898d3]{transform:translatey(-30px)}.list-leave-to[data-v-49d898d3]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-49d898d3]{position:absolute}@keyframes float-49d898d3{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-49d898d3]{animation:float-49d898d3 linear infinite}@keyframes star-move-49d898d3{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-49d898d3]{animation:star-move-49d898d3 linear infinite}@keyframes fall-49d898d3{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-49d898d3]{animation:fall-49d898d3 linear infinite}@keyframes glow-49d898d3{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-49d898d3]{animation:glow-49d898d3 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-49d898d3{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-49d898d3{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-49d898d3]{animation:roll-49d898d3 4s linear infinite}.toolbar[data-v-49d898d3]{position:relative;width:100%}.toolbar-container[data-v-49d898d3]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-49d898d3]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-49d898d3]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-49d898d3]{position:relative}.expandable-menu[data-v-49d898d3]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-49d898d3],.menu-visible[data-v-49d898d3]{display:flex}.menu-item[data-v-49d898d3]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-49d898d3]:hover{background-color:#f0f0f0}.dot[data-v-49d898d3]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-49d898d3]{background-color:green}.dot-red[data-v-49d898d3]{background-color:red}.animate-pulse[data-v-49d898d3]{animation:pulse-49d898d3 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-49d898d3{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-49d898d3]{position:relative;width:48px;height:48px}.logo-image[data-v-49d898d3]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-49d898d3{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-49d898d3]{animation:bounce-49d898d3 1s infinite}@keyframes roll-and-bounce-49d898d3{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-49d898d3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-f8c39e0b]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-\[400px\]{height:400px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-\[500px\]{width:500px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-blue-100{--scrollbar-track: #E1EFFE !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-blue-500{--scrollbar-thumb: #3F83F8 !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.discussion-toolbox{display:flex;--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));align-items:center;gap:.5rem;border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.group:hover .discussion-toolbox{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.discussion-toolbox:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-blue-500\/20:hover{--tw-gradient-from: rgb(63 131 248 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:to-purple-500\/20:hover{--tw-gradient-to: rgb(144 97 249 / .2) var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-400\/30:hover:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-400\/30:hover:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .3) var(--tw-gradient-to-position)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:mr-4{margin-right:1rem}.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/assets/index-gzgffzab.css b/web/dist/assets/index-gzgffzab.css new file mode 100644 index 00000000..fa00b394 --- /dev/null +++ b/web/dist/assets/index-gzgffzab.css @@ -0,0 +1,8 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";.hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: Tokyo-night-Dark + origin: https://github.com/enkia/tokyo-night-vscode-theme + Description: Original highlight.js style + Author: (c) Henri Vandersleyen + License: see project LICENSE + Touched: 2022 +*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.katex-display{display:inline-block;margin:0}.katex{display:inline-block;white-space:nowrap}.inline-latex{display:inline!important}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.topbar-container[data-v-5cfc6bf7]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-5cfc6bf7]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-5cfc6bf7]{transform:translateY(-100%)}.topbar-content[data-v-5cfc6bf7]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-5cfc6bf7]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-5cfc6bf7]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-5cfc6bf7]{transform:scale(1.2)}.placeholder[data-v-5cfc6bf7]{height:10px}.toolbar-button[data-v-5cfc6bf7]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-5cfc6bf7]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-5cfc6bf7]{position:relative;width:100%}.hover-zone[data-v-5cfc6bf7]{opacity:0}.error[data-v-5cfc6bf7]{color:red;margin-left:1rem}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-ee2144e6]{font-size:24px;animation:pulsate-ee2144e6 1.5s infinite}@keyframes pulsate-ee2144e6{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-ee2144e6],.list-enter-active[data-v-ee2144e6],.list-leave-active[data-v-ee2144e6]{transition:all .5s ease}.list-enter-from[data-v-ee2144e6]{transform:translatey(-30px)}.list-leave-to[data-v-ee2144e6]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-ee2144e6]{position:absolute}.bounce-enter-active[data-v-ee2144e6]{animation:bounce-in-ee2144e6 .5s}.bounce-leave-active[data-v-ee2144e6]{animation:bounce-in-ee2144e6 .5s reverse}@keyframes bounce-in-ee2144e6{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-ee2144e6]{background-color:#0ff}.hover[data-v-ee2144e6]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-ee2144e6]{font-weight:700}.control-buttons[data-v-d1a87267]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-d1a87267]{transform:translate(0)}.control-buttons-inner[data-v-d1a87267]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-3cdb05d5{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-3cdb05d5{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-3cdb05d5{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-3cdb05d5]{animation:rolling-ball-3cdb05d5 4s infinite ease-in-out,bounce-3cdb05d5 1s infinite ease-in-out}.animate-fade-in-up[data-v-3cdb05d5]{animation:fade-in-up-3cdb05d5 1.5s ease-out}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}@keyframes giggle-bf110ba3{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-bf110ba3]{animation:giggle-bf110ba3 1.5s infinite ease-in-out}.custom-scrollbar[data-v-bf110ba3]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-bf110ba3]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-bf110ba3]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-bf110ba3]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-bf110ba3{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-bf110ba3]{animation:custom-pulse-bf110ba3 2s infinite}.slide-right-enter-active[data-v-bf110ba3],.slide-right-leave-active[data-v-bf110ba3]{transition:transform .3s ease}.slide-right-enter[data-v-bf110ba3],.slide-right-leave-to[data-v-bf110ba3]{transform:translate(-100%)}.slide-left-enter-active[data-v-bf110ba3],.slide-left-leave-active[data-v-bf110ba3]{transition:transform .3s ease}.slide-left-enter[data-v-bf110ba3],.slide-left-leave-to[data-v-bf110ba3]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-bf110ba3]{animation:fade-and-fly-enter-bf110ba3 .5s ease}.fade-and-fly-leave-active[data-v-bf110ba3]{animation:fade-and-fly-leave-bf110ba3 .5s ease}@keyframes fade-and-fly-enter-bf110ba3{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-bf110ba3{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-bf110ba3],.list-enter-active[data-v-bf110ba3],.list-leave-active[data-v-bf110ba3]{transition:all .5s ease}.list-enter-from[data-v-bf110ba3]{transform:translatey(-30px)}.list-leave-to[data-v-bf110ba3]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-bf110ba3]{position:absolute}@keyframes float-bf110ba3{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-bf110ba3]{animation:float-bf110ba3 linear infinite}@keyframes star-move-bf110ba3{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-bf110ba3]{animation:star-move-bf110ba3 linear infinite}@keyframes fall-bf110ba3{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-bf110ba3]{animation:fall-bf110ba3 linear infinite}@keyframes glow-bf110ba3{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-bf110ba3]{animation:glow-bf110ba3 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-bf110ba3{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-bf110ba3{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-bf110ba3]{animation:roll-bf110ba3 4s linear infinite}.toolbar[data-v-bf110ba3]{position:relative;width:100%}.toolbar-container[data-v-bf110ba3]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-bf110ba3]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-bf110ba3]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-bf110ba3]{position:relative}.expandable-menu[data-v-bf110ba3]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-bf110ba3],.menu-visible[data-v-bf110ba3]{display:flex}.menu-item[data-v-bf110ba3]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-bf110ba3]:hover{background-color:#f0f0f0}.dot[data-v-bf110ba3]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-bf110ba3]{background-color:green}.dot-red[data-v-bf110ba3]{background-color:red}.animate-pulse[data-v-bf110ba3]{animation:pulse-bf110ba3 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-bf110ba3{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-bf110ba3]{position:relative;width:48px;height:48px}.logo-image[data-v-bf110ba3]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-bf110ba3{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-bf110ba3]{animation:bounce-bf110ba3 1s infinite}@keyframes roll-and-bounce-bf110ba3{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-bf110ba3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-f8c39e0b]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-\[400px\]{height:400px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-\[500px\]{width:500px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-blue-100{--scrollbar-track: #E1EFFE !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-blue-500{--scrollbar-thumb: #3F83F8 !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.discussion-toolbox{display:flex;--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));align-items:center;gap:.5rem;border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.group:hover .discussion-toolbox{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.discussion-toolbox:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-blue-500\/20:hover{--tw-gradient-from: rgb(63 131 248 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:to-purple-500\/20:hover{--tw-gradient-to: rgb(144 97 249 / .2) var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-400\/30:hover:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-400\/30:hover:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .3) var(--tw-gradient-to-position)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:mr-4{margin-right:1rem}.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/index.html b/web/dist/index.html index e273c1c6..a967eb8d 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - - + +
diff --git a/web/src/components/WelcomeComponent.vue b/web/src/components/WelcomeComponent.vue index 24d6a1f0..bbf3450a 100644 --- a/web/src/components/WelcomeComponent.vue +++ b/web/src/components/WelcomeComponent.vue @@ -1,102 +1,120 @@ - - - - \ No newline at end of file +} + +.animate-rolling-ball { + animation: rolling-ball 4s infinite ease-in-out, bounce 1s infinite ease-in-out; +} + +.animate-fade-in-up { + animation: fade-in-up 1.5s ease-out; +} + diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue index decb17fe..4f25f70e 100644 --- a/web/src/views/DiscussionsView.vue +++ b/web/src/views/DiscussionsView.vue @@ -1308,7 +1308,6 @@ export default { "LoLLMs includes advanced natural language processing capabilities in over 100 languages.", "The system can perform sentiment analysis on social media trends and customer feedback in real-time.", "LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships.", - "The platform includes specialized tools for quantum computing simulation and algorithm development." ], randomFact: "",